2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.60a.
5
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6
# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7
# This configure script is free software; the Free Software Foundation
8
# gives unlimited permission to copy, distribute and modify it.
9
## --------------------- ##
10
## M4sh Initialization. ##
11
## --------------------- ##
13
# Be Bourne compatible
14
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18
# is contrary to our usage. Disable this feature.
19
alias -g '${1+"$@"}'='"$@"'
22
case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
24
BIN_SH=xpg4; export BIN_SH # for Tru64
25
DUALCASE=1; export DUALCASE # for MKS sh
29
# Avoid depending upon Character Ranges.
30
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33
as_cr_digits='0123456789'
34
as_cr_alnum=$as_cr_Letters$as_cr_digits
36
# The user is always right.
37
if test "${PATH_SEPARATOR+set}" != set; then
38
echo "#! /bin/sh" >conf$$.sh
39
echo "exit 0" >>conf$$.sh
41
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49
# Support unset when possible.
50
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
58
# We need space, tab and new line, in precisely that order. Quoting is
59
# there to prevent editors from complaining about space-tab.
60
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
61
# splitting by setting IFS to empty value.)
66
# Find who we are. Look in the path if we contain no directory separator.
68
*[\\/]* ) as_myself=$0 ;;
69
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
73
test -z "$as_dir" && as_dir=.
74
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
80
# We did not find ourselves, most probably we were run as `sh COMMAND'
81
# in which case we are not to be found in the path.
82
if test "x$as_myself" = x; then
85
if test ! -f "$as_myself"; then
86
echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
90
# Work around bugs in pre-3.0 UWIN ksh.
91
for as_var in ENV MAIL MAILPATH
92
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
100
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
101
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
104
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
105
eval $as_var=C; export $as_var
107
($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
111
# Required to use basename.
112
if expr a : '\(a\)' >/dev/null 2>&1 &&
113
test "X`expr 00001 : '.*\(...\)'`" = X001; then
119
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126
# Name of the executable.
127
as_me=`$as_basename -- "$0" ||
128
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
129
X"$0" : 'X\(//\)$' \| \
130
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
132
sed '/^.*\/\([^/][^/]*\)\/*$/{
150
if test "x$CONFIG_SHELL" = x; then
151
if (eval ":") 2>/dev/null; then
157
if test $as_have_required = yes && (eval ":
167
as_func_ret_success () {
170
as_func_ret_failure () {
175
if as_func_success; then
179
echo as_func_success failed.
182
if as_func_failure; then
184
echo as_func_failure succeeded.
187
if as_func_ret_success; then
191
echo as_func_ret_success failed.
194
if as_func_ret_failure; then
196
echo as_func_ret_failure succeeded.
199
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
203
echo positional parameters were not saved.
206
test \$exitcode = 0) || { (exit 1); exit 1; }
211
test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
212
test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
213
") 2> /dev/null; then
217
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
218
for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221
test -z "$as_dir" && as_dir=.
224
for as_base in sh bash ksh sh5; do
225
as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232
for as_shell in $as_candidate_shells $SHELL; do
233
# Try only shells that exist, to save several forks.
234
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
235
{ ("$as_shell") 2> /dev/null <<\_ASEOF
236
# Be Bourne compatible
237
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
240
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
241
# is contrary to our usage. Disable this feature.
242
alias -g '${1+"$@"}'='"$@"'
245
case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
247
BIN_SH=xpg4; export BIN_SH # for Tru64
248
DUALCASE=1; export DUALCASE # for MKS sh
253
CONFIG_SHELL=$as_shell
255
if { "$as_shell" 2> /dev/null <<\_ASEOF
256
# Be Bourne compatible
257
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
261
# is contrary to our usage. Disable this feature.
262
alias -g '${1+"$@"}'='"$@"'
265
case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
267
BIN_SH=xpg4; export BIN_SH # for Tru64
268
DUALCASE=1; export DUALCASE # for MKS sh
280
as_func_ret_success () {
283
as_func_ret_failure () {
288
if as_func_success; then
292
echo as_func_success failed.
295
if as_func_failure; then
297
echo as_func_failure succeeded.
300
if as_func_ret_success; then
304
echo as_func_ret_success failed.
307
if as_func_ret_failure; then
309
echo as_func_ret_failure succeeded.
312
if ( set x; as_func_ret_success y && test x = "$1" ); then
316
echo positional parameters were not saved.
319
test $exitcode = 0) || { (exit 1); exit 1; }
324
test "x$as_lineno_1" != "x$as_lineno_2" &&
325
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
336
if test "x$CONFIG_SHELL" != x; then
337
for as_var in BASH_ENV ENV
338
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
341
exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
345
if test $as_have_required = no; then
346
echo This script requires a shell more modern than all the
347
echo shells that I found on your system. Please install a
348
echo modern shell, or manually run the script under such a
349
echo shell if you do have one.
350
{ (exit 1); exit 1; }
360
(eval "as_func_return () {
369
as_func_ret_success () {
372
as_func_ret_failure () {
377
if as_func_success; then
381
echo as_func_success failed.
384
if as_func_failure; then
386
echo as_func_failure succeeded.
389
if as_func_ret_success; then
393
echo as_func_ret_success failed.
396
if as_func_ret_failure; then
398
echo as_func_ret_failure succeeded.
401
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
405
echo positional parameters were not saved.
408
test \$exitcode = 0") || {
409
echo No shell found that supports shell functions.
410
echo Please tell autoconf@gnu.org about your system,
411
echo including any error possibly output before this
419
test "x$as_lineno_1" != "x$as_lineno_2" &&
420
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
422
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
423
# uniformly replaced by the line number. The first 'sed' inserts a
424
# line-number line after each line using $LINENO; the second 'sed'
425
# does the real work. The second script uses 'N' to pair each
426
# line-number line with the line containing $LINENO, and appends
427
# trailing '-' during substitution so that $LINENO is not a special
429
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
430
# scripts with optimization help from Paolo Bonzini. Blame Lee
431
# E. McMahon (1931-1989) for sed's syntax. :-)
443
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
447
chmod +x "$as_me.lineno" ||
448
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
449
{ (exit 1); exit 1; }; }
451
# Don't try to exec as it changes $[0], causing all sort of problems
452
# (the dirname of $[0] is not the place where we might find the
453
# original and so on. Autoconf is especially sensitive to this).
455
# Exit status is that of the last command.
460
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
466
ECHO_C= ECHO_N= ECHO_T=
470
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
477
if expr a : '\(a\)' >/dev/null 2>&1 &&
478
test "X`expr 00001 : '.*\(...\)'`" = X001; then
484
rm -f conf$$ conf$$.exe conf$$.file
485
if test -d conf$$.dir; then
486
rm -f conf$$.dir/conf$$.file
492
if ln -s conf$$.file conf$$ 2>/dev/null; then
494
# ... but there are two gotchas:
495
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497
# In both cases, we have to default to `cp -p'.
498
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500
elif ln conf$$.file conf$$ 2>/dev/null; then
505
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506
rmdir conf$$.dir 2>/dev/null
508
if mkdir -p . 2>/dev/null; then
511
test -d ./-p && rmdir ./-p
515
# Find out whether ``test -x'' works. Don't use a zero-byte file, as
516
# systems may use methods other than mode bits to determine executability.
517
cat >conf$$.file <<_ASEOF
522
if test -x conf$$.file >/dev/null 2>&1; then
523
as_executable_p="test -x"
529
# Sed expression to map a string onto a valid CPP name.
530
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
532
# Sed expression to map a string onto a valid variable name.
533
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
# Check that we are running under the correct shell.
539
SHELL=${CONFIG_SHELL-/bin/sh}
543
# Remove one level of quotation (which was required for Make).
544
ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
549
if test "X$1" = X--no-reexec; then
550
# Discard the --no-reexec flag, and continue.
552
elif test "X$1" = X--fallback-echo; then
553
# Avoid inline document here, it may be left over
555
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
556
# Yippee, $echo works!
559
# Restart under the correct shell.
560
exec $SHELL "$0" --no-reexec ${1+"$@"}
563
if test "X$1" = X--fallback-echo; then
564
# used as fallback echo
572
# The HP-UX ksh and POSIX shell print the target directory to stdout
574
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
576
if test -z "$ECHO"; then
577
if test "X${echo_test_string+set}" != Xset; then
578
# find a string as large as possible, as long as the shell can cope with it
579
for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
580
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
581
if (echo_test_string=`eval $cmd`) 2>/dev/null &&
582
echo_test_string=`eval $cmd` &&
583
(test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
590
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
591
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
592
test "X$echo_testing_string" = "X$echo_test_string"; then
595
# The Solaris, AIX, and Digital Unix default echo programs unquote
596
# backslashes. This makes it impossible to quote backslashes using
597
# echo "$something" | sed 's/\\/\\\\/g'
599
# So, first we look for a working echo in the user's PATH.
601
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
602
for dir in $PATH /usr/ucb; do
604
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
605
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
606
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
607
test "X$echo_testing_string" = "X$echo_test_string"; then
614
if test "X$echo" = Xecho; then
615
# We didn't find a better echo, so look for alternatives.
616
if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
617
echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
618
test "X$echo_testing_string" = "X$echo_test_string"; then
619
# This shell has a builtin print -r that does the trick.
621
elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
622
test "X$CONFIG_SHELL" != X/bin/ksh; then
623
# If we have ksh, try running configure again with it.
624
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
625
export ORIGINAL_CONFIG_SHELL
626
CONFIG_SHELL=/bin/ksh
628
exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
632
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
633
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
634
test "X$echo_testing_string" = "X$echo_test_string"; then
637
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
638
test "X$echo_testing_string" = 'X\t' &&
639
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
640
test "X$echo_testing_string" = "X$echo_test_string"; then
641
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
643
SHELL="$CONFIG_SHELL"
645
echo="$CONFIG_SHELL $0 --fallback-echo"
646
elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
647
test "X$echo_testing_string" = 'X\t' &&
648
echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
649
test "X$echo_testing_string" = "X$echo_test_string"; then
650
echo="$CONFIG_SHELL $0 --fallback-echo"
652
# maybe with a smaller string...
655
for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
656
if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
663
if test "$prev" != 'sed 50q "$0"'; then
664
echo_test_string=`eval $prev`
665
export echo_test_string
666
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
668
# Oops. We lost completely, so just stick with echo.
677
# Copy echo and quote the copy suitably for passing to libtool from
678
# the Makefile, instead of quoting the original, which is used later.
680
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
681
ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
687
tagnames=${tagnames+${tagnames},}CXX
689
tagnames=${tagnames+${tagnames},}F77
691
exec 7<&0 </dev/null 6>&1
694
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
695
# so uname gets run too.
696
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
701
ac_default_prefix=/usr/local
703
ac_config_libobj_dir=.
709
SHELL=${CONFIG_SHELL-/bin/sh}
711
# Identity of this package.
718
ac_unique_file="trampoline_r/trampoline_r.h.in"
719
# Factoring default headers for most tests.
720
ac_includes_default="\
722
#ifdef HAVE_SYS_TYPES_H
723
# include <sys/types.h>
725
#ifdef HAVE_SYS_STAT_H
726
# include <sys/stat.h>
732
# ifdef HAVE_STDLIB_H
737
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
742
#ifdef HAVE_STRINGS_H
743
# include <strings.h>
745
#ifdef HAVE_INTTYPES_H
746
# include <inttypes.h>
764
program_transform_name
836
ac_precious_vars='build_alias
850
ac_subdirs_all='vacall_r trampoline_r'
852
# Initialize some variables set by options.
854
ac_init_version=false
855
# The variables have the same names as the options, with
856
# dashes changed to underlines.
864
program_transform_name=s,x,x,
872
# Installation directory options.
873
# These are left unexpanded so users can "make install exec_prefix=/foo"
874
# and all the variables that are supposed to be based on exec_prefix
875
# by default will actually change.
876
# Use braces instead of parens because sh, perl, etc. also accept them.
877
# (The list follows the same order as the GNU Coding Standards.)
878
bindir='${exec_prefix}/bin'
879
sbindir='${exec_prefix}/sbin'
880
libexecdir='${exec_prefix}/libexec'
881
datarootdir='${prefix}/share'
882
datadir='${datarootdir}'
883
sysconfdir='${prefix}/etc'
884
sharedstatedir='${prefix}/com'
885
localstatedir='${prefix}/var'
886
includedir='${prefix}/include'
887
oldincludedir='/usr/include'
888
docdir='${datarootdir}/doc/${PACKAGE}'
889
infodir='${datarootdir}/info'
894
libdir='${exec_prefix}/lib'
895
localedir='${datarootdir}/locale'
896
mandir='${datarootdir}/man'
902
# If the previous option needs an argument, assign it.
903
if test -n "$ac_prev"; then
904
eval $ac_prev=\$ac_option
910
*=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
914
# Accept the important Cygnus configure options, so we can diagnose typos.
916
case $ac_dashdash$ac_option in
920
-bindir | --bindir | --bindi | --bind | --bin | --bi)
922
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
925
-build | --build | --buil | --bui | --bu)
926
ac_prev=build_alias ;;
927
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
928
build_alias=$ac_optarg ;;
930
-cache-file | --cache-file | --cache-fil | --cache-fi \
931
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
932
ac_prev=cache_file ;;
933
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
934
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
935
cache_file=$ac_optarg ;;
938
cache_file=config.cache ;;
940
-datadir | --datadir | --datadi | --datad)
942
-datadir=* | --datadir=* | --datadi=* | --datad=*)
943
datadir=$ac_optarg ;;
945
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
946
| --dataroo | --dataro | --datar)
947
ac_prev=datarootdir ;;
948
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
949
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
950
datarootdir=$ac_optarg ;;
952
-disable-* | --disable-*)
953
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
954
# Reject names that are not valid shell variable names.
955
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
956
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
957
{ (exit 1); exit 1; }; }
958
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
959
eval enable_$ac_feature=no ;;
961
-docdir | --docdir | --docdi | --doc | --do)
963
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
966
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
968
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
971
-enable-* | --enable-*)
972
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
973
# Reject names that are not valid shell variable names.
974
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
975
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
976
{ (exit 1); exit 1; }; }
977
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
978
eval enable_$ac_feature=\$ac_optarg ;;
980
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
981
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
982
| --exec | --exe | --ex)
983
ac_prev=exec_prefix ;;
984
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
985
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
986
| --exec=* | --exe=* | --ex=*)
987
exec_prefix=$ac_optarg ;;
989
-gas | --gas | --ga | --g)
990
# Obsolete; use --with-gas.
993
-help | --help | --hel | --he | -h)
995
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
996
ac_init_help=recursive ;;
997
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
998
ac_init_help=short ;;
1000
-host | --host | --hos | --ho)
1001
ac_prev=host_alias ;;
1002
-host=* | --host=* | --hos=* | --ho=*)
1003
host_alias=$ac_optarg ;;
1005
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1007
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1009
htmldir=$ac_optarg ;;
1011
-includedir | --includedir | --includedi | --included | --include \
1012
| --includ | --inclu | --incl | --inc)
1013
ac_prev=includedir ;;
1014
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1015
| --includ=* | --inclu=* | --incl=* | --inc=*)
1016
includedir=$ac_optarg ;;
1018
-infodir | --infodir | --infodi | --infod | --info | --inf)
1020
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1021
infodir=$ac_optarg ;;
1023
-libdir | --libdir | --libdi | --libd)
1025
-libdir=* | --libdir=* | --libdi=* | --libd=*)
1026
libdir=$ac_optarg ;;
1028
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1029
| --libexe | --libex | --libe)
1030
ac_prev=libexecdir ;;
1031
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1032
| --libexe=* | --libex=* | --libe=*)
1033
libexecdir=$ac_optarg ;;
1035
-localedir | --localedir | --localedi | --localed | --locale)
1036
ac_prev=localedir ;;
1037
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1038
localedir=$ac_optarg ;;
1040
-localstatedir | --localstatedir | --localstatedi | --localstated \
1041
| --localstate | --localstat | --localsta | --localst | --locals)
1042
ac_prev=localstatedir ;;
1043
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1044
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1045
localstatedir=$ac_optarg ;;
1047
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1049
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1050
mandir=$ac_optarg ;;
1052
-nfp | --nfp | --nf)
1053
# Obsolete; use --without-fp.
1056
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
1057
| --no-cr | --no-c | -n)
1060
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
1061
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1064
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1065
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1066
| --oldin | --oldi | --old | --ol | --o)
1067
ac_prev=oldincludedir ;;
1068
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1069
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1070
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1071
oldincludedir=$ac_optarg ;;
1073
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1075
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1076
prefix=$ac_optarg ;;
1078
-program-prefix | --program-prefix | --program-prefi | --program-pref \
1079
| --program-pre | --program-pr | --program-p)
1080
ac_prev=program_prefix ;;
1081
-program-prefix=* | --program-prefix=* | --program-prefi=* \
1082
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1083
program_prefix=$ac_optarg ;;
1085
-program-suffix | --program-suffix | --program-suffi | --program-suff \
1086
| --program-suf | --program-su | --program-s)
1087
ac_prev=program_suffix ;;
1088
-program-suffix=* | --program-suffix=* | --program-suffi=* \
1089
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1090
program_suffix=$ac_optarg ;;
1092
-program-transform-name | --program-transform-name \
1093
| --program-transform-nam | --program-transform-na \
1094
| --program-transform-n | --program-transform- \
1095
| --program-transform | --program-transfor \
1096
| --program-transfo | --program-transf \
1097
| --program-trans | --program-tran \
1098
| --progr-tra | --program-tr | --program-t)
1099
ac_prev=program_transform_name ;;
1100
-program-transform-name=* | --program-transform-name=* \
1101
| --program-transform-nam=* | --program-transform-na=* \
1102
| --program-transform-n=* | --program-transform-=* \
1103
| --program-transform=* | --program-transfor=* \
1104
| --program-transfo=* | --program-transf=* \
1105
| --program-trans=* | --program-tran=* \
1106
| --progr-tra=* | --program-tr=* | --program-t=*)
1107
program_transform_name=$ac_optarg ;;
1109
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1111
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1112
pdfdir=$ac_optarg ;;
1114
-psdir | --psdir | --psdi | --psd | --ps)
1116
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1119
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1120
| -silent | --silent | --silen | --sile | --sil)
1123
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1125
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1127
sbindir=$ac_optarg ;;
1129
-sharedstatedir | --sharedstatedir | --sharedstatedi \
1130
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1131
| --sharedst | --shareds | --shared | --share | --shar \
1133
ac_prev=sharedstatedir ;;
1134
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1135
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1136
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1138
sharedstatedir=$ac_optarg ;;
1140
-site | --site | --sit)
1142
-site=* | --site=* | --sit=*)
1145
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1147
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1148
srcdir=$ac_optarg ;;
1150
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1151
| --syscon | --sysco | --sysc | --sys | --sy)
1152
ac_prev=sysconfdir ;;
1153
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1154
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1155
sysconfdir=$ac_optarg ;;
1157
-target | --target | --targe | --targ | --tar | --ta | --t)
1158
ac_prev=target_alias ;;
1159
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1160
target_alias=$ac_optarg ;;
1162
-v | -verbose | --verbose | --verbos | --verbo | --verb)
1165
-version | --version | --versio | --versi | --vers | -V)
1166
ac_init_version=: ;;
1169
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1170
# Reject names that are not valid shell variable names.
1171
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1172
{ echo "$as_me: error: invalid package name: $ac_package" >&2
1173
{ (exit 1); exit 1; }; }
1174
ac_package=`echo $ac_package| sed 's/-/_/g'`
1175
eval with_$ac_package=\$ac_optarg ;;
1177
-without-* | --without-*)
1178
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1179
# Reject names that are not valid shell variable names.
1180
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1181
{ echo "$as_me: error: invalid package name: $ac_package" >&2
1182
{ (exit 1); exit 1; }; }
1183
ac_package=`echo $ac_package | sed 's/-/_/g'`
1184
eval with_$ac_package=no ;;
1187
# Obsolete; use --with-x.
1190
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1191
| --x-incl | --x-inc | --x-in | --x-i)
1192
ac_prev=x_includes ;;
1193
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1194
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1195
x_includes=$ac_optarg ;;
1197
-x-libraries | --x-libraries | --x-librarie | --x-librari \
1198
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1199
ac_prev=x_libraries ;;
1200
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1201
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1202
x_libraries=$ac_optarg ;;
1204
-*) { echo "$as_me: error: unrecognized option: $ac_option
1205
Try \`$0 --help' for more information." >&2
1206
{ (exit 1); exit 1; }; }
1210
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1211
# Reject names that are not valid shell variable names.
1212
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1213
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1214
{ (exit 1); exit 1; }; }
1215
eval $ac_envvar=\$ac_optarg
1216
export $ac_envvar ;;
1219
# FIXME: should be removed in autoconf 3.0.
1220
echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1221
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1222
echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1223
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1229
if test -n "$ac_prev"; then
1230
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1231
{ echo "$as_me: error: missing argument to $ac_option" >&2
1232
{ (exit 1); exit 1; }; }
1235
# Be sure to have absolute directory names.
1236
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1237
datadir sysconfdir sharedstatedir localstatedir includedir \
1238
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1239
libdir localedir mandir
1241
eval ac_val=\$$ac_var
1243
[\\/$]* | ?:[\\/]* ) continue;;
1244
NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1246
{ echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1247
{ (exit 1); exit 1; }; }
1250
# There might be people who depend on the old broken behavior: `$host'
1251
# used to hold the argument of --host etc.
1252
# FIXME: To remove some day.
1255
target=$target_alias
1257
# FIXME: To remove some day.
1258
if test "x$host_alias" != x; then
1259
if test "x$build_alias" = x; then
1260
cross_compiling=maybe
1261
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1262
If a cross compiler is detected then cross compile mode will be used." >&2
1263
elif test "x$build_alias" != "x$host_alias"; then
1269
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1271
test "$silent" = yes && exec 6>/dev/null
1274
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1275
ac_ls_di=`ls -di .` &&
1276
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1277
{ echo "$as_me: error: Working directory cannot be determined" >&2
1278
{ (exit 1); exit 1; }; }
1279
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1280
{ echo "$as_me: error: pwd does not report name of working directory" >&2
1281
{ (exit 1); exit 1; }; }
1284
# Find the source files, if location was not specified.
1285
if test -z "$srcdir"; then
1286
ac_srcdir_defaulted=yes
1287
# Try the directory containing this script, then the parent directory.
1288
ac_confdir=`$as_dirname -- "$0" ||
1289
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1290
X"$0" : 'X\(//\)[^/]' \| \
1291
X"$0" : 'X\(//\)$' \| \
1292
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1294
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1312
if test ! -r "$srcdir/$ac_unique_file"; then
1316
ac_srcdir_defaulted=no
1318
if test ! -r "$srcdir/$ac_unique_file"; then
1319
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1320
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1321
{ (exit 1); exit 1; }; }
1323
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1325
cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1326
{ (exit 1); exit 1; }; }
1328
# When building in place, set srcdir=.
1329
if test "$ac_abs_confdir" = "$ac_pwd"; then
1332
# Remove unnecessary trailing slashes from srcdir.
1333
# Double slashes in file names in object file debugging info
1334
# mess up M-x gdb in Emacs.
1336
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1338
for ac_var in $ac_precious_vars; do
1339
eval ac_env_${ac_var}_set=\${${ac_var}+set}
1340
eval ac_env_${ac_var}_value=\$${ac_var}
1341
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1342
eval ac_cv_env_${ac_var}_value=\$${ac_var}
1346
# Report the --help message.
1348
if test "$ac_init_help" = "long"; then
1349
# Omit some internal or obsolete options to make the list less imposing.
1350
# This message is too long to be a string in the A/UX 3.1 sh.
1352
\`configure' configures this package to adapt to many kinds of systems.
1354
Usage: $0 [OPTION]... [VAR=VALUE]...
1356
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1357
VAR=VALUE. See below for descriptions of some of the useful variables.
1359
Defaults for the options are specified in brackets.
1362
-h, --help display this help and exit
1363
--help=short display options specific to this package
1364
--help=recursive display the short help of all the included packages
1365
-V, --version display version information and exit
1366
-q, --quiet, --silent do not print \`checking...' messages
1367
--cache-file=FILE cache test results in FILE [disabled]
1368
-C, --config-cache alias for \`--cache-file=config.cache'
1369
-n, --no-create do not create output files
1370
--srcdir=DIR find the sources in DIR [configure dir or \`..']
1372
Installation directories:
1373
--prefix=PREFIX install architecture-independent files in PREFIX
1374
[$ac_default_prefix]
1375
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1378
By default, \`make install' will install all the files in
1379
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1380
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1381
for instance \`--prefix=\$HOME'.
1383
For better control, use the options below.
1385
Fine tuning of the installation directories:
1386
--bindir=DIR user executables [EPREFIX/bin]
1387
--sbindir=DIR system admin executables [EPREFIX/sbin]
1388
--libexecdir=DIR program executables [EPREFIX/libexec]
1389
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1390
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1391
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1392
--libdir=DIR object code libraries [EPREFIX/lib]
1393
--includedir=DIR C header files [PREFIX/include]
1394
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1395
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1396
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1397
--infodir=DIR info documentation [DATAROOTDIR/info]
1398
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1399
--mandir=DIR man documentation [DATAROOTDIR/man]
1400
--docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1401
--htmldir=DIR html documentation [DOCDIR]
1402
--dvidir=DIR dvi documentation [DOCDIR]
1403
--pdfdir=DIR pdf documentation [DOCDIR]
1404
--psdir=DIR ps documentation [DOCDIR]
1410
--build=BUILD configure for building on BUILD [guessed]
1411
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1415
if test -n "$ac_init_help"; then
1420
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1421
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1422
--enable-shared[=PKGS] build shared libraries [default=no]
1423
--enable-static[=PKGS] build static libraries [default=yes]
1424
--enable-fast-install[=PKGS]
1425
optimize for fast installation [default=yes]
1426
--disable-libtool-lock avoid locking (might break parallel builds)
1429
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1430
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1431
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
1432
--with-pic try to use only PIC/non-PIC objects [default=use
1434
--with-tags[=TAGS] include additional configurations [automatic]
1436
Some influential environment variables:
1437
CC C compiler command
1438
CFLAGS C compiler flags
1439
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1440
nonstandard directory <lib dir>
1441
CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1442
you have headers in a nonstandard directory <include dir>
1444
CXX C++ compiler command
1445
CXXFLAGS C++ compiler flags
1446
CXXCPP C++ preprocessor
1447
F77 Fortran 77 compiler command
1448
FFLAGS Fortran 77 compiler flags
1450
Use these variables to override the choices made by `configure' or to help
1451
it to find libraries and programs with nonstandard names/locations.
1457
if test "$ac_init_help" = "recursive"; then
1458
# If there are subdirs, report their specific --help.
1459
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1460
test -d "$ac_dir" || continue
1464
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1466
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1467
# A ".." for each directory in $ac_dir_suffix.
1468
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1469
case $ac_top_builddir_sub in
1470
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1471
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1474
ac_abs_top_builddir=$ac_pwd
1475
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1476
# for backward compatibility:
1477
ac_top_builddir=$ac_top_build_prefix
1480
.) # We are building in place.
1482
ac_top_srcdir=$ac_top_builddir_sub
1483
ac_abs_top_srcdir=$ac_pwd ;;
1484
[\\/]* | ?:[\\/]* ) # Absolute name.
1485
ac_srcdir=$srcdir$ac_dir_suffix;
1486
ac_top_srcdir=$srcdir
1487
ac_abs_top_srcdir=$srcdir ;;
1489
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1490
ac_top_srcdir=$ac_top_build_prefix$srcdir
1491
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1493
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1495
cd "$ac_dir" || { ac_status=$?; continue; }
1496
# Check for guested configure.
1497
if test -f "$ac_srcdir/configure.gnu"; then
1499
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
1500
elif test -f "$ac_srcdir/configure"; then
1502
$SHELL "$ac_srcdir/configure" --help=recursive
1504
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1506
cd "$ac_pwd" || { ac_status=$?; break; }
1510
test -n "$ac_init_help" && exit $ac_status
1511
if $ac_init_version; then
1514
generated by GNU Autoconf 2.60a
1516
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1517
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1518
This configure script is free software; the Free Software Foundation
1519
gives unlimited permission to copy, distribute and modify it.
1523
cat >config.log <<_ACEOF
1524
This file contains any messages produced by compilers while
1525
running configure, to aid debugging if configure makes a mistake.
1527
It was created by $as_me, which was
1528
generated by GNU Autoconf 2.60a. Invocation command line was
1540
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1541
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1542
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1543
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1544
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1546
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1547
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1549
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1550
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1551
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1552
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1553
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1554
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1555
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1559
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1563
test -z "$as_dir" && as_dir=.
1564
echo "PATH: $as_dir"
1580
# Keep a trace of the command line.
1581
# Strip out --no-create and --no-recursion so they do not pile up.
1582
# Strip out --silent because we don't want to record it for future runs.
1583
# Also quote any args containing shell meta-characters.
1584
# Make two passes to allow for proper duplicate-argument suppression.
1588
ac_must_keep_next=false
1594
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1595
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1596
| -silent | --silent | --silen | --sile | --sil)
1599
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1602
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1604
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1605
if test $ac_must_keep_next = true; then
1606
ac_must_keep_next=false # Got value, back to normal.
1609
*=* | --config-cache | -C | -disable-* | --disable-* \
1610
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1611
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1612
| -with-* | --with-* | -without-* | --without-* | --x)
1613
case "$ac_configure_args0 " in
1614
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1617
-* ) ac_must_keep_next=true ;;
1620
ac_configure_args="$ac_configure_args '$ac_arg'"
1625
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1626
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1628
# When interrupted or exit'd, cleanup temporary files, and complete
1629
# config.log. We remove comments because anyway the quotes in there
1630
# would cause problems or look ugly.
1631
# WARNING: Use '\'' to represent an apostrophe within the trap.
1632
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1633
trap 'exit_status=$?
1634
# Save into config.log some information that might help in debugging.
1639
## ---------------- ##
1640
## Cache variables. ##
1641
## ---------------- ##
1644
# The following way of writing the cache mishandles newlines in values,
1646
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1647
eval ac_val=\$$ac_var
1651
*_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1652
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1655
_ | IFS | as_nl) ;; #(
1656
*) $as_unset $ac_var ;;
1661
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1662
*${as_nl}ac_space=\ *)
1664
"s/'\''/'\''\\\\'\'''\''/g;
1665
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1668
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1676
## ----------------- ##
1677
## Output variables. ##
1678
## ----------------- ##
1681
for ac_var in $ac_subst_vars
1683
eval ac_val=\$$ac_var
1685
*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1687
echo "$ac_var='\''$ac_val'\''"
1691
if test -n "$ac_subst_files"; then
1693
## ------------------- ##
1694
## File substitutions. ##
1695
## ------------------- ##
1698
for ac_var in $ac_subst_files
1700
eval ac_val=\$$ac_var
1702
*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1704
echo "$ac_var='\''$ac_val'\''"
1709
if test -s confdefs.h; then
1719
test "$ac_signal" != 0 &&
1720
echo "$as_me: caught signal $ac_signal"
1721
echo "$as_me: exit $exit_status"
1723
rm -f core *.core core.conftest.* &&
1724
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1727
for ac_signal in 1 2 13 15; do
1728
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1732
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1733
rm -f -r conftest* confdefs.h
1735
# Predefined preprocessor variables.
1737
cat >>confdefs.h <<_ACEOF
1738
#define PACKAGE_NAME "$PACKAGE_NAME"
1742
cat >>confdefs.h <<_ACEOF
1743
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1747
cat >>confdefs.h <<_ACEOF
1748
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1752
cat >>confdefs.h <<_ACEOF
1753
#define PACKAGE_STRING "$PACKAGE_STRING"
1757
cat >>confdefs.h <<_ACEOF
1758
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1762
# Let the site file select an alternate cache file if it wants to.
1763
# Prefer explicitly selected file to automatically selected ones.
1764
if test -n "$CONFIG_SITE"; then
1765
set x "$CONFIG_SITE"
1766
elif test "x$prefix" != xNONE; then
1767
set x "$prefix/share/config.site" "$prefix/etc/config.site"
1769
set x "$ac_default_prefix/share/config.site" \
1770
"$ac_default_prefix/etc/config.site"
1775
if test -r "$ac_site_file"; then
1776
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1777
echo "$as_me: loading site script $ac_site_file" >&6;}
1778
sed 's/^/| /' "$ac_site_file" >&5
1783
if test -r "$cache_file"; then
1784
# Some versions of bash will fail to source /dev/null (special
1785
# files actually), so we avoid doing that.
1786
if test -f "$cache_file"; then
1787
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
1788
echo "$as_me: loading cache $cache_file" >&6;}
1790
[\\/]* | ?:[\\/]* ) . "$cache_file";;
1791
*) . "./$cache_file";;
1795
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
1796
echo "$as_me: creating cache $cache_file" >&6;}
1800
# Check that the precious variables saved in the cache have kept the same
1802
ac_cache_corrupted=false
1803
for ac_var in $ac_precious_vars; do
1804
eval ac_old_set=\$ac_cv_env_${ac_var}_set
1805
eval ac_new_set=\$ac_env_${ac_var}_set
1806
eval ac_old_val=\$ac_cv_env_${ac_var}_value
1807
eval ac_new_val=\$ac_env_${ac_var}_value
1808
case $ac_old_set,$ac_new_set in
1810
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1811
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1812
ac_cache_corrupted=: ;;
1814
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1815
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1816
ac_cache_corrupted=: ;;
1819
if test "x$ac_old_val" != "x$ac_new_val"; then
1820
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1821
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1822
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1823
echo "$as_me: former value: $ac_old_val" >&2;}
1824
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1825
echo "$as_me: current value: $ac_new_val" >&2;}
1826
ac_cache_corrupted=:
1829
# Pass precious variables to config.status.
1830
if test "$ac_new_set" = set; then
1832
*\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1833
*) ac_arg=$ac_var=$ac_new_val ;;
1835
case " $ac_configure_args " in
1836
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1837
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1841
if $ac_cache_corrupted; then
1842
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1843
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1844
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1845
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1846
{ (exit 1); exit 1; }; }
1866
ac_cpp='$CPP $CPPFLAGS'
1867
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1868
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1869
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1873
ac_cpp='$CPP $CPPFLAGS'
1874
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1875
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1876
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1877
if test -n "$ac_tool_prefix"; then
1878
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1879
set dummy ${ac_tool_prefix}gcc; ac_word=$2
1880
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1881
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1882
if test "${ac_cv_prog_CC+set}" = set; then
1883
echo $ECHO_N "(cached) $ECHO_C" >&6
1885
if test -n "$CC"; then
1886
ac_cv_prog_CC="$CC" # Let the user override the test.
1888
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1892
test -z "$as_dir" && as_dir=.
1893
for ac_exec_ext in '' $ac_executable_extensions; do
1894
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1895
ac_cv_prog_CC="${ac_tool_prefix}gcc"
1896
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1906
if test -n "$CC"; then
1907
{ echo "$as_me:$LINENO: result: $CC" >&5
1908
echo "${ECHO_T}$CC" >&6; }
1910
{ echo "$as_me:$LINENO: result: no" >&5
1911
echo "${ECHO_T}no" >&6; }
1916
if test -z "$ac_cv_prog_CC"; then
1918
# Extract the first word of "gcc", so it can be a program name with args.
1919
set dummy gcc; ac_word=$2
1920
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1921
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1922
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1923
echo $ECHO_N "(cached) $ECHO_C" >&6
1925
if test -n "$ac_ct_CC"; then
1926
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1928
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1932
test -z "$as_dir" && as_dir=.
1933
for ac_exec_ext in '' $ac_executable_extensions; do
1934
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1935
ac_cv_prog_ac_ct_CC="gcc"
1936
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1945
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1946
if test -n "$ac_ct_CC"; then
1947
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1948
echo "${ECHO_T}$ac_ct_CC" >&6; }
1950
{ echo "$as_me:$LINENO: result: no" >&5
1951
echo "${ECHO_T}no" >&6; }
1954
if test "x$ac_ct_CC" = x; then
1957
case $cross_compiling:$ac_tool_warned in
1959
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1960
whose name does not start with the host triplet. If you think this
1961
configuration is useful to you, please write to autoconf@gnu.org." >&5
1962
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1963
whose name does not start with the host triplet. If you think this
1964
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1965
ac_tool_warned=yes ;;
1973
if test -z "$CC"; then
1974
if test -n "$ac_tool_prefix"; then
1975
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1976
set dummy ${ac_tool_prefix}cc; ac_word=$2
1977
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1978
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1979
if test "${ac_cv_prog_CC+set}" = set; then
1980
echo $ECHO_N "(cached) $ECHO_C" >&6
1982
if test -n "$CC"; then
1983
ac_cv_prog_CC="$CC" # Let the user override the test.
1985
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1989
test -z "$as_dir" && as_dir=.
1990
for ac_exec_ext in '' $ac_executable_extensions; do
1991
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1992
ac_cv_prog_CC="${ac_tool_prefix}cc"
1993
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2003
if test -n "$CC"; then
2004
{ echo "$as_me:$LINENO: result: $CC" >&5
2005
echo "${ECHO_T}$CC" >&6; }
2007
{ echo "$as_me:$LINENO: result: no" >&5
2008
echo "${ECHO_T}no" >&6; }
2014
if test -z "$CC"; then
2015
# Extract the first word of "cc", so it can be a program name with args.
2016
set dummy cc; ac_word=$2
2017
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2018
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2019
if test "${ac_cv_prog_CC+set}" = set; then
2020
echo $ECHO_N "(cached) $ECHO_C" >&6
2022
if test -n "$CC"; then
2023
ac_cv_prog_CC="$CC" # Let the user override the test.
2026
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2030
test -z "$as_dir" && as_dir=.
2031
for ac_exec_ext in '' $ac_executable_extensions; do
2032
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2033
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2034
ac_prog_rejected=yes
2038
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2045
if test $ac_prog_rejected = yes; then
2046
# We found a bogon in the path, so make sure we never use it.
2047
set dummy $ac_cv_prog_CC
2049
if test $# != 0; then
2050
# We chose a different compiler from the bogus one.
2051
# However, it has the same basename, so the bogon will be chosen
2052
# first if we set CC to just the basename; use the full file name.
2054
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2060
if test -n "$CC"; then
2061
{ echo "$as_me:$LINENO: result: $CC" >&5
2062
echo "${ECHO_T}$CC" >&6; }
2064
{ echo "$as_me:$LINENO: result: no" >&5
2065
echo "${ECHO_T}no" >&6; }
2070
if test -z "$CC"; then
2071
if test -n "$ac_tool_prefix"; then
2072
for ac_prog in cl.exe
2074
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2075
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2076
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2077
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2078
if test "${ac_cv_prog_CC+set}" = set; then
2079
echo $ECHO_N "(cached) $ECHO_C" >&6
2081
if test -n "$CC"; then
2082
ac_cv_prog_CC="$CC" # Let the user override the test.
2084
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2088
test -z "$as_dir" && as_dir=.
2089
for ac_exec_ext in '' $ac_executable_extensions; do
2090
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2091
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2092
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2102
if test -n "$CC"; then
2103
{ echo "$as_me:$LINENO: result: $CC" >&5
2104
echo "${ECHO_T}$CC" >&6; }
2106
{ echo "$as_me:$LINENO: result: no" >&5
2107
echo "${ECHO_T}no" >&6; }
2111
test -n "$CC" && break
2114
if test -z "$CC"; then
2116
for ac_prog in cl.exe
2118
# Extract the first word of "$ac_prog", so it can be a program name with args.
2119
set dummy $ac_prog; ac_word=$2
2120
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2121
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2122
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2123
echo $ECHO_N "(cached) $ECHO_C" >&6
2125
if test -n "$ac_ct_CC"; then
2126
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2128
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2132
test -z "$as_dir" && as_dir=.
2133
for ac_exec_ext in '' $ac_executable_extensions; do
2134
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2135
ac_cv_prog_ac_ct_CC="$ac_prog"
2136
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2145
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2146
if test -n "$ac_ct_CC"; then
2147
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2148
echo "${ECHO_T}$ac_ct_CC" >&6; }
2150
{ echo "$as_me:$LINENO: result: no" >&5
2151
echo "${ECHO_T}no" >&6; }
2155
test -n "$ac_ct_CC" && break
2158
if test "x$ac_ct_CC" = x; then
2161
case $cross_compiling:$ac_tool_warned in
2163
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2164
whose name does not start with the host triplet. If you think this
2165
configuration is useful to you, please write to autoconf@gnu.org." >&5
2166
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2167
whose name does not start with the host triplet. If you think this
2168
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2169
ac_tool_warned=yes ;;
2178
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2179
See \`config.log' for more details." >&5
2180
echo "$as_me: error: no acceptable C compiler found in \$PATH
2181
See \`config.log' for more details." >&2;}
2182
{ (exit 1); exit 1; }; }
2184
# Provide some information about the compiler.
2185
echo "$as_me:$LINENO: checking for C compiler version" >&5
2186
ac_compiler=`set X $ac_compile; echo $2`
2187
{ (ac_try="$ac_compiler --version >&5"
2189
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2190
*) ac_try_echo=$ac_try;;
2192
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2193
(eval "$ac_compiler --version >&5") 2>&5
2195
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2196
(exit $ac_status); }
2197
{ (ac_try="$ac_compiler -v >&5"
2199
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2200
*) ac_try_echo=$ac_try;;
2202
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2203
(eval "$ac_compiler -v >&5") 2>&5
2205
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2206
(exit $ac_status); }
2207
{ (ac_try="$ac_compiler -V >&5"
2209
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2210
*) ac_try_echo=$ac_try;;
2212
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2213
(eval "$ac_compiler -V >&5") 2>&5
2215
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2216
(exit $ac_status); }
2218
cat >conftest.$ac_ext <<_ACEOF
2221
cat confdefs.h >>conftest.$ac_ext
2222
cat >>conftest.$ac_ext <<_ACEOF
2223
/* end confdefs.h. */
2233
ac_clean_files_save=$ac_clean_files
2234
ac_clean_files="$ac_clean_files a.out a.exe b.out"
2235
# Try to create an executable without -o first, disregard a.out.
2236
# It will help us diagnose broken compilers, and finding out an intuition
2238
{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2239
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2240
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2242
# List of possible output files, starting from the most likely.
2243
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2244
# only as a last resort. b.out is created by i960 compilers.
2245
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2247
# The IRIX 6 linker writes into existing files which may not be
2248
# executable, retaining their permissions. Remove them first so a
2249
# subsequent execution test works.
2251
for ac_file in $ac_files
2254
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2255
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
2260
if { (ac_try="$ac_link_default"
2262
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2263
*) ac_try_echo=$ac_try;;
2265
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2266
(eval "$ac_link_default") 2>&5
2268
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269
(exit $ac_status); }; then
2270
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2271
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2272
# in a Makefile. We should not override ac_cv_exeext if it was cached,
2273
# so that the user can short-circuit this test for compilers unknown to
2275
for ac_file in $ac_files ''
2277
test -f "$ac_file" || continue
2279
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2282
# We found the default executable, but exeext='' is most
2286
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2288
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2290
# We set ac_cv_exeext here because the later test for it is not
2291
# safe: cross compilers may not add the suffix if given an `-o'
2292
# argument, so we may need to know it at that point already.
2293
# Even if this section looks crufty: it has the advantage of
2300
test "$ac_cv_exeext" = no && ac_cv_exeext=
2306
{ echo "$as_me:$LINENO: result: $ac_file" >&5
2307
echo "${ECHO_T}$ac_file" >&6; }
2308
if test -z "$ac_file"; then
2309
echo "$as_me: failed program was:" >&5
2310
sed 's/^/| /' conftest.$ac_ext >&5
2312
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2313
See \`config.log' for more details." >&5
2314
echo "$as_me: error: C compiler cannot create executables
2315
See \`config.log' for more details." >&2;}
2316
{ (exit 77); exit 77; }; }
2319
ac_exeext=$ac_cv_exeext
2321
# Check that the compiler produces executables we can run. If not, either
2322
# the compiler is broken, or we cross compile.
2323
{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2324
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2325
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2326
# If not cross compiling, check that we can run a simple program.
2327
if test "$cross_compiling" != yes; then
2328
if { ac_try='./$ac_file'
2329
{ (case "(($ac_try" in
2330
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2331
*) ac_try_echo=$ac_try;;
2333
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2334
(eval "$ac_try") 2>&5
2336
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2337
(exit $ac_status); }; }; then
2340
if test "$cross_compiling" = maybe; then
2343
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2344
If you meant to cross compile, use \`--host'.
2345
See \`config.log' for more details." >&5
2346
echo "$as_me: error: cannot run C compiled programs.
2347
If you meant to cross compile, use \`--host'.
2348
See \`config.log' for more details." >&2;}
2349
{ (exit 1); exit 1; }; }
2353
{ echo "$as_me:$LINENO: result: yes" >&5
2354
echo "${ECHO_T}yes" >&6; }
2356
rm -f a.out a.exe conftest$ac_cv_exeext b.out
2357
ac_clean_files=$ac_clean_files_save
2358
# Check that the compiler produces executables we can run. If not, either
2359
# the compiler is broken, or we cross compile.
2360
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2361
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2362
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2363
echo "${ECHO_T}$cross_compiling" >&6; }
2365
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2366
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2367
if { (ac_try="$ac_link"
2369
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2370
*) ac_try_echo=$ac_try;;
2372
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2373
(eval "$ac_link") 2>&5
2375
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376
(exit $ac_status); }; then
2377
# If both `conftest.exe' and `conftest' are `present' (well, observable)
2378
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2379
# work properly (i.e., refer to `conftest.exe'), while it won't with
2381
for ac_file in conftest.exe conftest conftest.*; do
2382
test -f "$ac_file" || continue
2384
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2385
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2391
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2392
See \`config.log' for more details." >&5
2393
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2394
See \`config.log' for more details." >&2;}
2395
{ (exit 1); exit 1; }; }
2398
rm -f conftest$ac_cv_exeext
2399
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2400
echo "${ECHO_T}$ac_cv_exeext" >&6; }
2402
rm -f conftest.$ac_ext
2403
EXEEXT=$ac_cv_exeext
2405
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2406
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2407
if test "${ac_cv_objext+set}" = set; then
2408
echo $ECHO_N "(cached) $ECHO_C" >&6
2410
cat >conftest.$ac_ext <<_ACEOF
2413
cat confdefs.h >>conftest.$ac_ext
2414
cat >>conftest.$ac_ext <<_ACEOF
2415
/* end confdefs.h. */
2425
rm -f conftest.o conftest.obj
2426
if { (ac_try="$ac_compile"
2428
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2429
*) ac_try_echo=$ac_try;;
2431
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2432
(eval "$ac_compile") 2>&5
2434
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435
(exit $ac_status); }; then
2436
for ac_file in conftest.o conftest.obj conftest.*; do
2437
test -f "$ac_file" || continue;
2439
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2440
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2445
echo "$as_me: failed program was:" >&5
2446
sed 's/^/| /' conftest.$ac_ext >&5
2448
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2449
See \`config.log' for more details." >&5
2450
echo "$as_me: error: cannot compute suffix of object files: cannot compile
2451
See \`config.log' for more details." >&2;}
2452
{ (exit 1); exit 1; }; }
2455
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2457
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2458
echo "${ECHO_T}$ac_cv_objext" >&6; }
2459
OBJEXT=$ac_cv_objext
2461
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2462
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2463
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2464
echo $ECHO_N "(cached) $ECHO_C" >&6
2466
cat >conftest.$ac_ext <<_ACEOF
2469
cat confdefs.h >>conftest.$ac_ext
2470
cat >>conftest.$ac_ext <<_ACEOF
2471
/* end confdefs.h. */
2484
rm -f conftest.$ac_objext
2485
if { (ac_try="$ac_compile"
2487
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2488
*) ac_try_echo=$ac_try;;
2490
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2491
(eval "$ac_compile") 2>conftest.er1
2493
grep -v '^ *+' conftest.er1 >conftest.err
2495
cat conftest.err >&5
2496
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497
(exit $ac_status); } &&
2498
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2499
{ (case "(($ac_try" in
2500
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2501
*) ac_try_echo=$ac_try;;
2503
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2504
(eval "$ac_try") 2>&5
2506
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507
(exit $ac_status); }; } &&
2508
{ ac_try='test -s conftest.$ac_objext'
2509
{ (case "(($ac_try" in
2510
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2511
*) ac_try_echo=$ac_try;;
2513
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2514
(eval "$ac_try") 2>&5
2516
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2517
(exit $ac_status); }; }; then
2520
echo "$as_me: failed program was:" >&5
2521
sed 's/^/| /' conftest.$ac_ext >&5
2526
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2527
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2530
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2531
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2532
GCC=`test $ac_compiler_gnu = yes && echo yes`
2533
ac_test_CFLAGS=${CFLAGS+set}
2534
ac_save_CFLAGS=$CFLAGS
2535
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2536
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2537
if test "${ac_cv_prog_cc_g+set}" = set; then
2538
echo $ECHO_N "(cached) $ECHO_C" >&6
2540
ac_save_c_werror_flag=$ac_c_werror_flag
2541
ac_c_werror_flag=yes
2544
cat >conftest.$ac_ext <<_ACEOF
2547
cat confdefs.h >>conftest.$ac_ext
2548
cat >>conftest.$ac_ext <<_ACEOF
2549
/* end confdefs.h. */
2559
rm -f conftest.$ac_objext
2560
if { (ac_try="$ac_compile"
2562
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2563
*) ac_try_echo=$ac_try;;
2565
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2566
(eval "$ac_compile") 2>conftest.er1
2568
grep -v '^ *+' conftest.er1 >conftest.err
2570
cat conftest.err >&5
2571
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572
(exit $ac_status); } &&
2573
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2574
{ (case "(($ac_try" in
2575
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2576
*) ac_try_echo=$ac_try;;
2578
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2579
(eval "$ac_try") 2>&5
2581
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582
(exit $ac_status); }; } &&
2583
{ ac_try='test -s conftest.$ac_objext'
2584
{ (case "(($ac_try" in
2585
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2586
*) ac_try_echo=$ac_try;;
2588
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2589
(eval "$ac_try") 2>&5
2591
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592
(exit $ac_status); }; }; then
2595
echo "$as_me: failed program was:" >&5
2596
sed 's/^/| /' conftest.$ac_ext >&5
2599
cat >conftest.$ac_ext <<_ACEOF
2602
cat confdefs.h >>conftest.$ac_ext
2603
cat >>conftest.$ac_ext <<_ACEOF
2604
/* end confdefs.h. */
2614
rm -f conftest.$ac_objext
2615
if { (ac_try="$ac_compile"
2617
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2618
*) ac_try_echo=$ac_try;;
2620
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2621
(eval "$ac_compile") 2>conftest.er1
2623
grep -v '^ *+' conftest.er1 >conftest.err
2625
cat conftest.err >&5
2626
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627
(exit $ac_status); } &&
2628
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2629
{ (case "(($ac_try" in
2630
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2631
*) ac_try_echo=$ac_try;;
2633
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2634
(eval "$ac_try") 2>&5
2636
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637
(exit $ac_status); }; } &&
2638
{ ac_try='test -s conftest.$ac_objext'
2639
{ (case "(($ac_try" in
2640
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2641
*) ac_try_echo=$ac_try;;
2643
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2644
(eval "$ac_try") 2>&5
2646
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647
(exit $ac_status); }; }; then
2650
echo "$as_me: failed program was:" >&5
2651
sed 's/^/| /' conftest.$ac_ext >&5
2653
ac_c_werror_flag=$ac_save_c_werror_flag
2655
cat >conftest.$ac_ext <<_ACEOF
2658
cat confdefs.h >>conftest.$ac_ext
2659
cat >>conftest.$ac_ext <<_ACEOF
2660
/* end confdefs.h. */
2670
rm -f conftest.$ac_objext
2671
if { (ac_try="$ac_compile"
2673
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2674
*) ac_try_echo=$ac_try;;
2676
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2677
(eval "$ac_compile") 2>conftest.er1
2679
grep -v '^ *+' conftest.er1 >conftest.err
2681
cat conftest.err >&5
2682
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2683
(exit $ac_status); } &&
2684
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2685
{ (case "(($ac_try" in
2686
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2687
*) ac_try_echo=$ac_try;;
2689
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2690
(eval "$ac_try") 2>&5
2692
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693
(exit $ac_status); }; } &&
2694
{ ac_try='test -s conftest.$ac_objext'
2695
{ (case "(($ac_try" in
2696
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2697
*) ac_try_echo=$ac_try;;
2699
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2700
(eval "$ac_try") 2>&5
2702
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703
(exit $ac_status); }; }; then
2706
echo "$as_me: failed program was:" >&5
2707
sed 's/^/| /' conftest.$ac_ext >&5
2712
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2715
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2718
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2719
ac_c_werror_flag=$ac_save_c_werror_flag
2721
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2722
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2723
if test "$ac_test_CFLAGS" = set; then
2724
CFLAGS=$ac_save_CFLAGS
2725
elif test $ac_cv_prog_cc_g = yes; then
2726
if test "$GCC" = yes; then
2732
if test "$GCC" = yes; then
2738
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2739
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2740
if test "${ac_cv_prog_cc_c89+set}" = set; then
2741
echo $ECHO_N "(cached) $ECHO_C" >&6
2743
ac_cv_prog_cc_c89=no
2745
cat >conftest.$ac_ext <<_ACEOF
2748
cat confdefs.h >>conftest.$ac_ext
2749
cat >>conftest.$ac_ext <<_ACEOF
2750
/* end confdefs.h. */
2753
#include <sys/types.h>
2754
#include <sys/stat.h>
2755
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2756
struct buf { int x; };
2757
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2758
static char *e (p, i)
2764
static char *f (char * (*g) (char **, int), char **p, ...)
2769
s = g (p, va_arg (v,int));
2774
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2775
function prototypes and stuff, but not '\xHH' hex character constants.
2776
These don't provoke an error unfortunately, instead are silently treated
2777
as 'x'. The following induces an error, until -std is added to get
2778
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2779
array size at least. It's necessary to write '\x00'==0 to get something
2780
that's true only with -std. */
2781
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2783
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2784
inside strings and character constants. */
2786
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2788
int test (int i, double x);
2789
struct s1 {int (*f) (int a);};
2790
struct s2 {int (*f) (double a);};
2791
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2797
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2802
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2803
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2805
CC="$ac_save_CC $ac_arg"
2806
rm -f conftest.$ac_objext
2807
if { (ac_try="$ac_compile"
2809
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2810
*) ac_try_echo=$ac_try;;
2812
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2813
(eval "$ac_compile") 2>conftest.er1
2815
grep -v '^ *+' conftest.er1 >conftest.err
2817
cat conftest.err >&5
2818
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2819
(exit $ac_status); } &&
2820
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2821
{ (case "(($ac_try" in
2822
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2823
*) ac_try_echo=$ac_try;;
2825
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2826
(eval "$ac_try") 2>&5
2828
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829
(exit $ac_status); }; } &&
2830
{ ac_try='test -s conftest.$ac_objext'
2831
{ (case "(($ac_try" in
2832
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2833
*) ac_try_echo=$ac_try;;
2835
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2836
(eval "$ac_try") 2>&5
2838
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839
(exit $ac_status); }; }; then
2840
ac_cv_prog_cc_c89=$ac_arg
2842
echo "$as_me: failed program was:" >&5
2843
sed 's/^/| /' conftest.$ac_ext >&5
2848
rm -f core conftest.err conftest.$ac_objext
2849
test "x$ac_cv_prog_cc_c89" != "xno" && break
2851
rm -f conftest.$ac_ext
2856
case "x$ac_cv_prog_cc_c89" in
2858
{ echo "$as_me:$LINENO: result: none needed" >&5
2859
echo "${ECHO_T}none needed" >&6; } ;;
2861
{ echo "$as_me:$LINENO: result: unsupported" >&5
2862
echo "${ECHO_T}unsupported" >&6; } ;;
2864
CC="$CC $ac_cv_prog_cc_c89"
2865
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2866
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2871
ac_cpp='$CPP $CPPFLAGS'
2872
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2873
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2874
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2877
ac_cpp='$CPP $CPPFLAGS'
2878
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2879
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2880
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2881
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2882
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2883
# On Suns, sometimes $CPP names a directory.
2884
if test -n "$CPP" && test -d "$CPP"; then
2887
if test -z "$CPP"; then
2888
if test "${ac_cv_prog_CPP+set}" = set; then
2889
echo $ECHO_N "(cached) $ECHO_C" >&6
2891
# Double quotes because CPP needs to be expanded
2892
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2895
for ac_c_preproc_warn_flag in '' yes
2897
# Use a header file that comes with gcc, so configuring glibc
2898
# with a fresh cross-compiler works.
2899
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2900
# <limits.h> exists even on freestanding compilers.
2901
# On the NeXT, cc -E runs the code through the compiler's parser,
2902
# not just through cpp. "Syntax error" is here to catch this case.
2903
cat >conftest.$ac_ext <<_ACEOF
2906
cat confdefs.h >>conftest.$ac_ext
2907
cat >>conftest.$ac_ext <<_ACEOF
2908
/* end confdefs.h. */
2910
# include <limits.h>
2912
# include <assert.h>
2916
if { (ac_try="$ac_cpp conftest.$ac_ext"
2918
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2919
*) ac_try_echo=$ac_try;;
2921
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2922
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2924
grep -v '^ *+' conftest.er1 >conftest.err
2926
cat conftest.err >&5
2927
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2928
(exit $ac_status); } >/dev/null; then
2929
if test -s conftest.err; then
2930
ac_cpp_err=$ac_c_preproc_warn_flag
2931
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2938
if test -z "$ac_cpp_err"; then
2941
echo "$as_me: failed program was:" >&5
2942
sed 's/^/| /' conftest.$ac_ext >&5
2944
# Broken: fails on valid input.
2948
rm -f conftest.err conftest.$ac_ext
2950
# OK, works on sane cases. Now check whether nonexistent headers
2951
# can be detected and how.
2952
cat >conftest.$ac_ext <<_ACEOF
2955
cat confdefs.h >>conftest.$ac_ext
2956
cat >>conftest.$ac_ext <<_ACEOF
2957
/* end confdefs.h. */
2958
#include <ac_nonexistent.h>
2960
if { (ac_try="$ac_cpp conftest.$ac_ext"
2962
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2963
*) ac_try_echo=$ac_try;;
2965
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2966
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2968
grep -v '^ *+' conftest.er1 >conftest.err
2970
cat conftest.err >&5
2971
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972
(exit $ac_status); } >/dev/null; then
2973
if test -s conftest.err; then
2974
ac_cpp_err=$ac_c_preproc_warn_flag
2975
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2982
if test -z "$ac_cpp_err"; then
2983
# Broken: success on invalid input.
2986
echo "$as_me: failed program was:" >&5
2987
sed 's/^/| /' conftest.$ac_ext >&5
2989
# Passes both tests.
2994
rm -f conftest.err conftest.$ac_ext
2997
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2998
rm -f conftest.err conftest.$ac_ext
2999
if $ac_preproc_ok; then
3011
{ echo "$as_me:$LINENO: result: $CPP" >&5
3012
echo "${ECHO_T}$CPP" >&6; }
3014
for ac_c_preproc_warn_flag in '' yes
3016
# Use a header file that comes with gcc, so configuring glibc
3017
# with a fresh cross-compiler works.
3018
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3019
# <limits.h> exists even on freestanding compilers.
3020
# On the NeXT, cc -E runs the code through the compiler's parser,
3021
# not just through cpp. "Syntax error" is here to catch this case.
3022
cat >conftest.$ac_ext <<_ACEOF
3025
cat confdefs.h >>conftest.$ac_ext
3026
cat >>conftest.$ac_ext <<_ACEOF
3027
/* end confdefs.h. */
3029
# include <limits.h>
3031
# include <assert.h>
3035
if { (ac_try="$ac_cpp conftest.$ac_ext"
3037
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3038
*) ac_try_echo=$ac_try;;
3040
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3041
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3043
grep -v '^ *+' conftest.er1 >conftest.err
3045
cat conftest.err >&5
3046
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047
(exit $ac_status); } >/dev/null; then
3048
if test -s conftest.err; then
3049
ac_cpp_err=$ac_c_preproc_warn_flag
3050
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3057
if test -z "$ac_cpp_err"; then
3060
echo "$as_me: failed program was:" >&5
3061
sed 's/^/| /' conftest.$ac_ext >&5
3063
# Broken: fails on valid input.
3067
rm -f conftest.err conftest.$ac_ext
3069
# OK, works on sane cases. Now check whether nonexistent headers
3070
# can be detected and how.
3071
cat >conftest.$ac_ext <<_ACEOF
3074
cat confdefs.h >>conftest.$ac_ext
3075
cat >>conftest.$ac_ext <<_ACEOF
3076
/* end confdefs.h. */
3077
#include <ac_nonexistent.h>
3079
if { (ac_try="$ac_cpp conftest.$ac_ext"
3081
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3082
*) ac_try_echo=$ac_try;;
3084
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3085
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3087
grep -v '^ *+' conftest.er1 >conftest.err
3089
cat conftest.err >&5
3090
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091
(exit $ac_status); } >/dev/null; then
3092
if test -s conftest.err; then
3093
ac_cpp_err=$ac_c_preproc_warn_flag
3094
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3101
if test -z "$ac_cpp_err"; then
3102
# Broken: success on invalid input.
3105
echo "$as_me: failed program was:" >&5
3106
sed 's/^/| /' conftest.$ac_ext >&5
3108
# Passes both tests.
3113
rm -f conftest.err conftest.$ac_ext
3116
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3117
rm -f conftest.err conftest.$ac_ext
3118
if $ac_preproc_ok; then
3121
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3122
See \`config.log' for more details." >&5
3123
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3124
See \`config.log' for more details." >&2;}
3125
{ (exit 1); exit 1; }; }
3129
ac_cpp='$CPP $CPPFLAGS'
3130
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3131
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3132
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3136
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3137
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3138
if test "${ac_cv_path_GREP+set}" = set; then
3139
echo $ECHO_N "(cached) $ECHO_C" >&6
3141
# Extract the first word of "grep ggrep" to use in msg output
3142
if test -z "$GREP"; then
3143
set dummy grep ggrep; ac_prog_name=$2
3144
if test "${ac_cv_path_GREP+set}" = set; then
3145
echo $ECHO_N "(cached) $ECHO_C" >&6
3147
ac_path_GREP_found=false
3148
# Loop through the user's path and test for each of PROGNAME-LIST
3149
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3150
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3153
test -z "$as_dir" && as_dir=.
3154
for ac_prog in grep ggrep; do
3155
for ac_exec_ext in '' $ac_executable_extensions; do
3156
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3157
{ test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3158
# Check for GNU ac_path_GREP and select it if it is found.
3159
# Check for GNU $ac_path_GREP
3160
case `"$ac_path_GREP" --version 2>&1` in
3162
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3165
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3168
cat "conftest.in" "conftest.in" >"conftest.tmp"
3169
mv "conftest.tmp" "conftest.in"
3170
cp "conftest.in" "conftest.nl"
3171
echo 'GREP' >> "conftest.nl"
3172
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3173
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3174
ac_count=`expr $ac_count + 1`
3175
if test $ac_count -gt ${ac_path_GREP_max-0}; then
3176
# Best one so far, save it but keep looking for a better one
3177
ac_cv_path_GREP="$ac_path_GREP"
3178
ac_path_GREP_max=$ac_count
3180
# 10*(2^10) chars as input seems more than enough
3181
test $ac_count -gt 10 && break
3183
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3187
$ac_path_GREP_found && break 3
3197
GREP="$ac_cv_path_GREP"
3198
if test -z "$GREP"; then
3199
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3200
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3201
{ (exit 1); exit 1; }; }
3205
ac_cv_path_GREP=$GREP
3210
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3211
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3212
GREP="$ac_cv_path_GREP"
3215
{ echo "$as_me:$LINENO: checking for egrep" >&5
3216
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3217
if test "${ac_cv_path_EGREP+set}" = set; then
3218
echo $ECHO_N "(cached) $ECHO_C" >&6
3220
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3221
then ac_cv_path_EGREP="$GREP -E"
3223
# Extract the first word of "egrep" to use in msg output
3224
if test -z "$EGREP"; then
3225
set dummy egrep; ac_prog_name=$2
3226
if test "${ac_cv_path_EGREP+set}" = set; then
3227
echo $ECHO_N "(cached) $ECHO_C" >&6
3229
ac_path_EGREP_found=false
3230
# Loop through the user's path and test for each of PROGNAME-LIST
3231
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3232
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3235
test -z "$as_dir" && as_dir=.
3236
for ac_prog in egrep; do
3237
for ac_exec_ext in '' $ac_executable_extensions; do
3238
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3239
{ test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3240
# Check for GNU ac_path_EGREP and select it if it is found.
3241
# Check for GNU $ac_path_EGREP
3242
case `"$ac_path_EGREP" --version 2>&1` in
3244
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3247
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3250
cat "conftest.in" "conftest.in" >"conftest.tmp"
3251
mv "conftest.tmp" "conftest.in"
3252
cp "conftest.in" "conftest.nl"
3253
echo 'EGREP' >> "conftest.nl"
3254
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3255
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3256
ac_count=`expr $ac_count + 1`
3257
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3258
# Best one so far, save it but keep looking for a better one
3259
ac_cv_path_EGREP="$ac_path_EGREP"
3260
ac_path_EGREP_max=$ac_count
3262
# 10*(2^10) chars as input seems more than enough
3263
test $ac_count -gt 10 && break
3265
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3269
$ac_path_EGREP_found && break 3
3279
EGREP="$ac_cv_path_EGREP"
3280
if test -z "$EGREP"; then
3281
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3282
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3283
{ (exit 1); exit 1; }; }
3287
ac_cv_path_EGREP=$EGREP
3293
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3294
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3295
EGREP="$ac_cv_path_EGREP"
3298
if test $ac_cv_c_compiler_gnu = yes; then
3299
{ echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3300
echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
3301
if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3302
echo $ECHO_N "(cached) $ECHO_C" >&6
3304
ac_pattern="Autoconf.*'x'"
3305
cat >conftest.$ac_ext <<_ACEOF
3308
cat confdefs.h >>conftest.$ac_ext
3309
cat >>conftest.$ac_ext <<_ACEOF
3310
/* end confdefs.h. */
3314
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3315
$EGREP "$ac_pattern" >/dev/null 2>&1; then
3316
ac_cv_prog_gcc_traditional=yes
3318
ac_cv_prog_gcc_traditional=no
3323
if test $ac_cv_prog_gcc_traditional = no; then
3324
cat >conftest.$ac_ext <<_ACEOF
3327
cat confdefs.h >>conftest.$ac_ext
3328
cat >>conftest.$ac_ext <<_ACEOF
3329
/* end confdefs.h. */
3333
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3334
$EGREP "$ac_pattern" >/dev/null 2>&1; then
3335
ac_cv_prog_gcc_traditional=yes
3341
{ echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3342
echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
3343
if test $ac_cv_prog_gcc_traditional = yes; then
3344
CC="$CC -traditional"
3349
{ echo "$as_me:$LINENO: checking whether using GNU C" >&5
3350
echo $ECHO_N "checking whether using GNU C... $ECHO_C" >&6; }
3351
if test "${cl_cv_prog_cc_gcc+set}" = set; then
3352
echo $ECHO_N "(cached) $ECHO_C" >&6
3355
cat >conftest.$ac_ext <<_ACEOF
3358
cat confdefs.h >>conftest.$ac_ext
3359
cat >>conftest.$ac_ext <<_ACEOF
3360
/* end confdefs.h. */
3366
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3367
$EGREP "yes" >/dev/null 2>&1; then
3368
cl_cv_prog_cc_gcc=yes
3370
cl_cv_prog_cc_gcc=no
3376
{ echo "$as_me:$LINENO: result: $cl_cv_prog_cc_gcc" >&5
3377
echo "${ECHO_T}$cl_cv_prog_cc_gcc" >&6; }
3378
if test $cl_cv_prog_cc_gcc = yes; then
3380
GCC_X_NONE='-x none'
3386
# Extract the first word of "ranlib", so it can be a program name with args.
3387
set dummy ranlib; ac_word=$2
3388
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3389
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3390
if test "${ac_cv_prog_RANLIB+set}" = set; then
3391
echo $ECHO_N "(cached) $ECHO_C" >&6
3393
if test -n "$RANLIB"; then
3394
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3396
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3400
test -z "$as_dir" && as_dir=.
3401
for ac_exec_ext in '' $ac_executable_extensions; do
3402
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3403
ac_cv_prog_RANLIB="ranlib"
3404
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3411
test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB="true"
3414
RANLIB=$ac_cv_prog_RANLIB
3415
if test -n "$RANLIB"; then
3416
{ echo "$as_me:$LINENO: result: $RANLIB" >&5
3417
echo "${ECHO_T}$RANLIB" >&6; }
3419
{ echo "$as_me:$LINENO: result: no" >&5
3420
echo "${ECHO_T}no" >&6; }
3424
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3425
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3426
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3427
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3428
echo $ECHO_N "(cached) $ECHO_C" >&6
3430
cat >conftest.make <<\_ACEOF
3433
@echo '@@@%%%=$(MAKE)=@@@%%%'
3435
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3436
case `${MAKE-make} -f conftest.make 2>/dev/null` in
3438
eval ac_cv_prog_make_${ac_make}_set=yes;;
3440
eval ac_cv_prog_make_${ac_make}_set=no;;
3444
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3445
{ echo "$as_me:$LINENO: result: yes" >&5
3446
echo "${ECHO_T}yes" >&6; }
3449
{ echo "$as_me:$LINENO: result: no" >&5
3450
echo "${ECHO_T}no" >&6; }
3451
SET_MAKE="MAKE=${MAKE-make}"
3454
# Find a good install program. We prefer a C program (faster),
3455
# so one script is as good as another. But avoid the broken or
3456
# incompatible versions:
3457
# SysV /etc/install, /usr/sbin/install
3458
# SunOS /usr/etc/install
3459
# IRIX /sbin/install
3461
# AFS /usr/afsws/bin/install, which mis-handles nonexistent args
3462
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3463
# ./install, which can be erroneously created by make from ./install.sh.
3464
{ echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
3465
echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6; }
3466
if test -z "$INSTALL"; then
3467
if test "${cl_cv_path_install+set}" = set; then
3468
echo $ECHO_N "(cached) $ECHO_C" >&6
3470
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3471
for ac_dir in $PATH; do
3472
# Account for people who put trailing slashes in PATH elements.
3474
/|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3476
# OSF1 and SCO ODT 3.0 have their own names for install.
3477
# Don't use installbsd from OSF since it installs stuff as root
3479
for ac_prog in ginstall scoinst install; do
3480
if test -f $ac_dir/$ac_prog; then
3481
if test $ac_prog = install &&
3482
grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3483
# AIX install. It has an incompatible calling convention.
3486
cl_cv_path_install="$ac_dir/$ac_prog -c"
3495
# As a last resort, use the absolute pathname of cp.
3496
if test -z "$cl_cv_path_install"; then
3497
cl_cv_path_install="cp"
3498
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3499
for ac_dir in $PATH; do
3500
if test -f $ac_dir/cp; then
3501
cl_cv_path_install="$ac_dir/cp"
3509
INSTALL="$cl_cv_path_install"
3511
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
3512
echo "${ECHO_T}$INSTALL" >&6; }
3513
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3514
# It thinks the first close brace ends the variable substitution.
3515
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='$(INSTALL)'
3516
if test -z "$INSTALL_DATA"; then
3518
cp | */cp ) INSTALL_DATA='$(INSTALL)' ;;
3519
* ) INSTALL_DATA='$(INSTALL) -m 644' ;;
3523
{ echo "$as_me:$LINENO: checking how to copy files" >&5
3524
echo $ECHO_N "checking how to copy files... $ECHO_C" >&6; }
3525
if test "${cl_cv_prog_cp+set}" = set; then
3526
echo $ECHO_N "(cached) $ECHO_C" >&6
3529
echo "blabla" > conftest.x
3530
err=`/bin/sh -c "cp -p conftest.x conftest.y 2>&1"`
3531
if test -z "$err"; then
3532
cl_cv_prog_cp='cp -p'
3539
{ echo "$as_me:$LINENO: result: $cl_cv_prog_cp" >&5
3540
echo "${ECHO_T}$cl_cv_prog_cp" >&6; }
3543
{ echo "$as_me:$LINENO: checking how to make hard links" >&5
3544
echo $ECHO_N "checking how to make hard links... $ECHO_C" >&6; }
3545
if test "${cl_cv_prog_LN+set}" = set; then
3546
echo $ECHO_N "(cached) $ECHO_C" >&6
3549
rm -f conftestdata conftestfile
3550
echo data > conftestfile
3551
if ln conftestfile conftestdata 2>/dev/null; then
3554
cl_cv_prog_LN="$cl_cv_prog_cp"
3556
rm -f conftestdata conftestfile
3559
{ echo "$as_me:$LINENO: result: $cl_cv_prog_LN" >&5
3560
echo "${ECHO_T}$cl_cv_prog_LN" >&6; }
3563
{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
3564
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3565
if test "${cl_cv_prog_LN_S+set}" = set; then
3566
echo $ECHO_N "(cached) $ECHO_C" >&6
3570
if ln -s X conftestdata 2>/dev/null; then
3571
cl_cv_prog_LN_S="ln -s"
3573
cl_cv_prog_LN_S="$cl_cv_prog_LN"
3578
if test "$cl_cv_prog_LN_S" = "ln -s"; then
3579
{ echo "$as_me:$LINENO: result: yes" >&5
3580
echo "${ECHO_T}yes" >&6; }
3582
{ echo "$as_me:$LINENO: result: no" >&5
3583
echo "${ECHO_T}no" >&6; }
3585
LN_S="$cl_cv_prog_LN_S"
3587
ac_aux_dir=${srcdir}/../build-aux
3588
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
3589
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
3590
# Make sure we can run config.sub.
3591
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3592
{ { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3593
echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3594
{ (exit 1); exit 1; }; }
3596
{ echo "$as_me:$LINENO: checking build system type" >&5
3597
echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3598
if test "${ac_cv_build+set}" = set; then
3599
echo $ECHO_N "(cached) $ECHO_C" >&6
3601
ac_build_alias=$build_alias
3602
test "x$ac_build_alias" = x &&
3603
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3604
test "x$ac_build_alias" = x &&
3605
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3606
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3607
{ (exit 1); exit 1; }; }
3608
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3609
{ { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3610
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3611
{ (exit 1); exit 1; }; }
3614
{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3615
echo "${ECHO_T}$ac_cv_build" >&6; }
3616
case $ac_cv_build in
3618
*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3619
echo "$as_me: error: invalid value of canonical build" >&2;}
3620
{ (exit 1); exit 1; }; };;
3623
ac_save_IFS=$IFS; IFS='-'
3629
# Remember, the first character of IFS is used to create $*,
3630
# except with old shells:
3633
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3636
{ echo "$as_me:$LINENO: checking host system type" >&5
3637
echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3638
if test "${ac_cv_host+set}" = set; then
3639
echo $ECHO_N "(cached) $ECHO_C" >&6
3641
if test "x$host_alias" = x; then
3642
ac_cv_host=$ac_cv_build
3644
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3645
{ { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3646
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3647
{ (exit 1); exit 1; }; }
3651
{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3652
echo "${ECHO_T}$ac_cv_host" >&6; }
3655
*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3656
echo "$as_me: error: invalid value of canonical host" >&2;}
3657
{ (exit 1); exit 1; }; };;
3660
ac_save_IFS=$IFS; IFS='-'
3666
# Remember, the first character of IFS is used to create $*,
3667
# except with old shells:
3670
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3679
alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] )
3682
hppa1.0 | hppa1.1 | hppa2.0* | hppa64 )
3686
host_cpu_abi=powerpc
3688
c1 | c2 | c32 | c34 | c38 | c4 )
3695
{ echo "$as_me:$LINENO: checking for 64-bit MIPS" >&5
3696
echo $ECHO_N "checking for 64-bit MIPS... $ECHO_C" >&6; }
3697
if test "${cl_cv_host_mips64+set}" = set; then
3698
echo $ECHO_N "(cached) $ECHO_C" >&6
3701
cat >conftest.$ac_ext <<_ACEOF
3704
cat confdefs.h >>conftest.$ac_ext
3705
cat >>conftest.$ac_ext <<_ACEOF
3706
/* end confdefs.h. */
3707
#if defined(_MIPS_SZLONG)
3708
#if (_MIPS_SZLONG == 64)
3709
/* We should also check for (_MIPS_SZPTR == 64), but gcc keeps this at 32. */
3715
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3716
$EGREP "yes" >/dev/null 2>&1; then
3717
cl_cv_host_mips64=yes
3719
cl_cv_host_mips64=no
3725
{ echo "$as_me:$LINENO: result: $cl_cv_host_mips64" >&5
3726
echo "${ECHO_T}$cl_cv_host_mips64" >&6; }
3727
if test $cl_cv_host_mips64 = yes; then
3730
{ echo "$as_me:$LINENO: checking for MIPS with n32 ABI" >&5
3731
echo $ECHO_N "checking for MIPS with n32 ABI... $ECHO_C" >&6; }
3732
if test "${cl_cv_host_mipsn32+set}" = set; then
3733
echo $ECHO_N "(cached) $ECHO_C" >&6
3736
cat >conftest.$ac_ext <<_ACEOF
3739
cat confdefs.h >>conftest.$ac_ext
3740
cat >>conftest.$ac_ext <<_ACEOF
3741
/* end confdefs.h. */
3747
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3748
$EGREP "yes" >/dev/null 2>&1; then
3749
cl_cv_host_mipsn32=yes
3751
cl_cv_host_mipsn32=no
3757
{ echo "$as_me:$LINENO: result: $cl_cv_host_mipsn32" >&5
3758
echo "${ECHO_T}$cl_cv_host_mipsn32" >&6; }
3759
if test $cl_cv_host_mipsn32 = yes; then
3760
host_cpu_abi=mipsn32
3767
{ echo "$as_me:$LINENO: checking for 64-bit PowerPC" >&5
3768
echo $ECHO_N "checking for 64-bit PowerPC... $ECHO_C" >&6; }
3769
if test "${cl_cv_host_powerpc64+set}" = set; then
3770
echo $ECHO_N "(cached) $ECHO_C" >&6
3773
cat >conftest.$ac_ext <<_ACEOF
3776
cat confdefs.h >>conftest.$ac_ext
3777
cat >>conftest.$ac_ext <<_ACEOF
3778
/* end confdefs.h. */
3779
#if defined(__powerpc64__) || defined(_ARCH_PPC64)
3784
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3785
$EGREP "yes" >/dev/null 2>&1; then
3786
cl_cv_host_powerpc64=yes
3788
cl_cv_host_powerpc64=no
3794
{ echo "$as_me:$LINENO: result: $cl_cv_host_powerpc64" >&5
3795
echo "${ECHO_T}$cl_cv_host_powerpc64" >&6; }
3796
if test $cl_cv_host_powerpc64 = yes; then
3797
host_cpu_abi=powerpc64
3799
host_cpu_abi=powerpc
3803
{ echo "$as_me:$LINENO: checking for 64-bit SPARC" >&5
3804
echo $ECHO_N "checking for 64-bit SPARC... $ECHO_C" >&6; }
3805
if test "${cl_cv_host_sparc64+set}" = set; then
3806
echo $ECHO_N "(cached) $ECHO_C" >&6
3809
cat >conftest.$ac_ext <<_ACEOF
3812
cat confdefs.h >>conftest.$ac_ext
3813
cat >>conftest.$ac_ext <<_ACEOF
3814
/* end confdefs.h. */
3815
#if defined(__sparcv9) || defined(__arch64__)
3820
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3821
$EGREP "yes" >/dev/null 2>&1; then
3822
cl_cv_host_sparc64=yes
3824
cl_cv_host_sparc64=no
3830
{ echo "$as_me:$LINENO: result: $cl_cv_host_sparc64" >&5
3831
echo "${ECHO_T}$cl_cv_host_sparc64" >&6; }
3832
if test $cl_cv_host_sparc64 = yes; then
3833
host_cpu_abi=sparc64
3839
{ echo "$as_me:$LINENO: checking for 64-bit x86_64" >&5
3840
echo $ECHO_N "checking for 64-bit x86_64... $ECHO_C" >&6; }
3841
if test "${cl_cv_host_x86_64+set}" = set; then
3842
echo $ECHO_N "(cached) $ECHO_C" >&6
3845
cat >conftest.$ac_ext <<_ACEOF
3848
cat confdefs.h >>conftest.$ac_ext
3849
cat >>conftest.$ac_ext <<_ACEOF
3850
/* end confdefs.h. */
3851
#if defined(__LP64__) || defined(__x86_64__) || defined(__amd64__)
3856
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3857
$EGREP "yes" >/dev/null 2>&1; then
3858
cl_cv_host_x86_64=yes
3860
cl_cv_host_x86_64=no
3866
{ echo "$as_me:$LINENO: result: $cl_cv_host_x86_64" >&5
3867
echo "${ECHO_T}$cl_cv_host_x86_64" >&6; }
3868
if test $cl_cv_host_x86_64 = yes; then
3875
host_cpu_abi=$host_cpu
3879
cat >> confdefs.h <<EOF
3880
#ifndef __${host_cpu_abi}__
3881
#define __${host_cpu_abi}__ 1
3886
# Check whether --enable-shared was given.
3887
if test "${enable_shared+set}" = set; then
3888
enableval=$enable_shared; p=${PACKAGE-default}
3890
yes) enable_shared=yes ;;
3891
no) enable_shared=no ;;
3894
# Look at the argument we got. We use all the common list separators.
3895
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3896
for pkg in $enableval; do
3898
if test "X$pkg" = "X$p"; then
3911
# Check whether --enable-static was given.
3912
if test "${enable_static+set}" = set; then
3913
enableval=$enable_static; p=${PACKAGE-default}
3915
yes) enable_static=yes ;;
3916
no) enable_static=no ;;
3919
# Look at the argument we got. We use all the common list separators.
3920
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3921
for pkg in $enableval; do
3923
if test "X$pkg" = "X$p"; then
3935
# Check whether --enable-fast-install was given.
3936
if test "${enable_fast_install+set}" = set; then
3937
enableval=$enable_fast_install; p=${PACKAGE-default}
3939
yes) enable_fast_install=yes ;;
3940
no) enable_fast_install=no ;;
3942
enable_fast_install=no
3943
# Look at the argument we got. We use all the common list separators.
3944
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3945
for pkg in $enableval; do
3947
if test "X$pkg" = "X$p"; then
3948
enable_fast_install=yes
3955
enable_fast_install=yes
3959
{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3960
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3961
if test "${lt_cv_path_SED+set}" = set; then
3962
echo $ECHO_N "(cached) $ECHO_C" >&6
3964
# Loop through the user's path and test for sed and gsed.
3965
# Then use that list of sed's as ones to test for truncation.
3966
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3970
test -z "$as_dir" && as_dir=.
3971
for lt_ac_prog in sed gsed; do
3972
for ac_exec_ext in '' $ac_executable_extensions; do
3973
if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3974
lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3981
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3982
# along with /bin/sed that truncates output.
3983
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3984
test ! -f $lt_ac_sed && continue
3985
cat /dev/null > conftest.in
3987
echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3988
# Check for GNU sed and select it if it is found.
3989
if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3990
lt_cv_path_SED=$lt_ac_sed
3994
cat conftest.in conftest.in >conftest.tmp
3995
mv conftest.tmp conftest.in
3996
cp conftest.in conftest.nl
3998
$lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3999
cmp -s conftest.out conftest.nl || break
4000
# 10000 chars as input seems more than enough
4001
test $lt_ac_count -gt 10 && break
4002
lt_ac_count=`expr $lt_ac_count + 1`
4003
if test $lt_ac_count -gt $lt_ac_max; then
4004
lt_ac_max=$lt_ac_count
4005
lt_cv_path_SED=$lt_ac_sed
4013
{ echo "$as_me:$LINENO: result: $SED" >&5
4014
echo "${ECHO_T}$SED" >&6; }
4017
# Check whether --with-gnu-ld was given.
4018
if test "${with_gnu_ld+set}" = set; then
4019
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4025
if test "$GCC" = yes; then
4026
# Check if gcc -print-prog-name=ld gives a path.
4027
{ echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4028
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4031
# gcc leaves a trailing carriage return which upsets mingw
4032
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4034
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4037
# Accept absolute paths.
4039
re_direlt='/[^/][^/]*/\.\./'
4040
# Canonicalize the pathname of ld
4041
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4042
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4043
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4045
test -z "$LD" && LD="$ac_prog"
4048
# If it fails, then pretend we aren't using GCC.
4052
# If it is relative, then search for the first ld in PATH.
4056
elif test "$with_gnu_ld" = yes; then
4057
{ echo "$as_me:$LINENO: checking for GNU ld" >&5
4058
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4060
{ echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4061
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4063
if test "${lt_cv_path_LD+set}" = set; then
4064
echo $ECHO_N "(cached) $ECHO_C" >&6
4066
if test -z "$LD"; then
4067
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4068
for ac_dir in $PATH; do
4070
test -z "$ac_dir" && ac_dir=.
4071
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4072
lt_cv_path_LD="$ac_dir/$ac_prog"
4073
# Check to see if the program is GNU ld. I'd rather use --version,
4074
# but apparently some variants of GNU ld only accept -v.
4075
# Break only if it was the GNU/non-GNU ld that we prefer.
4076
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4077
*GNU* | *'with BFD'*)
4078
test "$with_gnu_ld" != no && break
4081
test "$with_gnu_ld" != yes && break
4088
lt_cv_path_LD="$LD" # Let the user override the test with a path.
4093
if test -n "$LD"; then
4094
{ echo "$as_me:$LINENO: result: $LD" >&5
4095
echo "${ECHO_T}$LD" >&6; }
4097
{ echo "$as_me:$LINENO: result: no" >&5
4098
echo "${ECHO_T}no" >&6; }
4100
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4101
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4102
{ (exit 1); exit 1; }; }
4103
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4104
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4105
if test "${lt_cv_prog_gnu_ld+set}" = set; then
4106
echo $ECHO_N "(cached) $ECHO_C" >&6
4108
# I'd rather use --version here, but apparently some GNU lds only accept -v.
4109
case `$LD -v 2>&1 </dev/null` in
4110
*GNU* | *'with BFD'*)
4111
lt_cv_prog_gnu_ld=yes
4114
lt_cv_prog_gnu_ld=no
4118
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4119
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4120
with_gnu_ld=$lt_cv_prog_gnu_ld
4123
{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4124
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4125
if test "${lt_cv_ld_reload_flag+set}" = set; then
4126
echo $ECHO_N "(cached) $ECHO_C" >&6
4128
lt_cv_ld_reload_flag='-r'
4130
{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4131
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4132
reload_flag=$lt_cv_ld_reload_flag
4133
case $reload_flag in
4135
*) reload_flag=" $reload_flag" ;;
4137
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4140
if test "$GCC" = yes; then
4141
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4143
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4148
{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4149
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4150
if test "${lt_cv_path_NM+set}" = set; then
4151
echo $ECHO_N "(cached) $ECHO_C" >&6
4153
if test -n "$NM"; then
4154
# Let the user override the test.
4157
lt_nm_to_check="${ac_tool_prefix}nm"
4158
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4159
lt_nm_to_check="$lt_nm_to_check nm"
4161
for lt_tmp_nm in $lt_nm_to_check; do
4162
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4163
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4165
test -z "$ac_dir" && ac_dir=.
4166
tmp_nm="$ac_dir/$lt_tmp_nm"
4167
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4168
# Check to see if the nm accepts a BSD-compat flag.
4169
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4170
# nm: unknown option "B" ignored
4171
# Tru64's nm complains that /dev/null is an invalid object file
4172
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4173
*/dev/null* | *'Invalid file or object type'*)
4174
lt_cv_path_NM="$tmp_nm -B"
4178
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4180
lt_cv_path_NM="$tmp_nm -p"
4184
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4185
continue # so that we can try to find one that supports BSD flags
4194
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4197
{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4198
echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4201
{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4202
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4203
if test "${lt_cv_deplibs_check_method+set}" = set; then
4204
echo $ECHO_N "(cached) $ECHO_C" >&6
4206
lt_cv_file_magic_cmd='$MAGIC_CMD'
4207
lt_cv_file_magic_test_file=
4208
lt_cv_deplibs_check_method='unknown'
4209
# Need to set the preceding variable on all platforms that support
4210
# interlibrary dependencies.
4211
# 'none' -- dependencies not supported.
4212
# `unknown' -- same as none, but documents that we really don't know.
4213
# 'pass_all' -- all dependencies passed with no checks.
4214
# 'test_compile' -- check by making test program.
4215
# 'file_magic [[regex]]' -- check by looking for files in library path
4216
# which responds to the $file_magic_cmd with a given extended regex.
4217
# If you have `file' or equivalent on your system and you're not sure
4218
# whether `pass_all' will *always* work, you probably want this one.
4222
lt_cv_deplibs_check_method=pass_all
4226
lt_cv_deplibs_check_method=pass_all
4230
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4231
lt_cv_file_magic_cmd='/usr/bin/file -L'
4232
lt_cv_file_magic_test_file=/shlib/libc.so
4236
# func_win32_libid is a shell function defined in ltmain.sh
4237
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4238
lt_cv_file_magic_cmd='func_win32_libid'
4242
# Base MSYS/MinGW do not provide the 'file' command needed by
4243
# func_win32_libid shell function, so use a weaker test based on 'objdump'.
4244
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4245
lt_cv_file_magic_cmd='$OBJDUMP -f'
4248
darwin* | rhapsody*)
4249
lt_cv_deplibs_check_method=pass_all
4252
freebsd* | kfreebsd*-gnu | dragonfly*)
4253
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4256
# Not sure whether the presence of OpenBSD here was a mistake.
4257
# Let's accept both of them until this is cleared up.
4258
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4259
lt_cv_file_magic_cmd=/usr/bin/file
4260
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4264
lt_cv_deplibs_check_method=pass_all
4269
lt_cv_deplibs_check_method=pass_all
4272
hpux10.20* | hpux11*)
4273
lt_cv_file_magic_cmd=/usr/bin/file
4276
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4277
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4280
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4281
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4284
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4285
lt_cv_file_magic_test_file=/usr/lib/libc.sl
4291
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4292
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4295
irix5* | irix6* | nonstopux*)
4297
*-32|*"-32 ") libmagic=32-bit;;
4298
*-n32|*"-n32 ") libmagic=N32;;
4299
*-64|*"-64 ") libmagic=64-bit;;
4300
*) libmagic=never-match;;
4302
lt_cv_deplibs_check_method=pass_all
4305
# This must be Linux ELF.
4307
lt_cv_deplibs_check_method=pass_all
4311
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4312
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4314
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4319
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4320
lt_cv_file_magic_cmd=/usr/bin/file
4321
lt_cv_file_magic_test_file=/usr/lib/libnls.so
4325
lt_cv_deplibs_check_method=unknown
4329
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4330
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4332
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4336
osf3* | osf4* | osf5*)
4337
lt_cv_deplibs_check_method=pass_all
4341
lt_cv_deplibs_check_method=pass_all
4345
case $host_vendor in
4347
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]'
4348
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4351
lt_cv_deplibs_check_method=pass_all
4354
lt_cv_file_magic_cmd='/bin/file'
4355
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4358
lt_cv_file_magic_cmd='/bin/file'
4359
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4360
lt_cv_file_magic_test_file=/lib/libc.so
4363
lt_cv_deplibs_check_method=pass_all
4366
lt_cv_deplibs_check_method=pass_all
4371
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4372
lt_cv_deplibs_check_method=pass_all
4377
{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4378
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4379
file_magic_cmd=$lt_cv_file_magic_cmd
4380
deplibs_check_method=$lt_cv_deplibs_check_method
4381
test -z "$deplibs_check_method" && deplibs_check_method=unknown
4386
# If no C compiler was specified, use CC.
4389
# If no C compiler flags were specified, use CFLAGS.
4390
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4392
# Allow CC to be a program name with arguments.
4395
# Check whether --enable-libtool-lock was given.
4396
if test "${enable_libtool_lock+set}" = set; then
4397
enableval=$enable_libtool_lock;
4400
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4402
# Some flags need to be propagated to the compiler or linker for good
4406
# Find out which ABI we are using.
4407
echo 'int i;' > conftest.$ac_ext
4408
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4409
(eval $ac_compile) 2>&5
4411
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4412
(exit $ac_status); }; then
4413
case `/usr/bin/file conftest.$ac_objext` in
4425
# Find out which ABI we are using.
4426
echo '#line 4426 "configure"' > conftest.$ac_ext
4427
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4428
(eval $ac_compile) 2>&5
4430
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4431
(exit $ac_status); }; then
4432
if test "$lt_cv_prog_gnu_ld" = yes; then
4433
case `/usr/bin/file conftest.$ac_objext` in
4435
LD="${LD-ld} -melf32bsmip"
4438
LD="${LD-ld} -melf32bmipn32"
4441
LD="${LD-ld} -melf64bmip"
4445
case `/usr/bin/file conftest.$ac_objext` in
4461
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4462
# Find out which ABI we are using.
4463
echo 'int i;' > conftest.$ac_ext
4464
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4465
(eval $ac_compile) 2>&5
4467
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4468
(exit $ac_status); }; then
4469
case `/usr/bin/file conftest.o` in
4473
LD="${LD-ld} -m elf_i386"
4475
ppc64-*linux*|powerpc64-*linux*)
4476
LD="${LD-ld} -m elf32ppclinux"
4479
LD="${LD-ld} -m elf_s390"
4482
LD="${LD-ld} -m elf32_sparc"
4489
LD="${LD-ld} -m elf_x86_64"
4491
ppc*-*linux*|powerpc*-*linux*)
4492
LD="${LD-ld} -m elf64ppc"
4495
LD="${LD-ld} -m elf64_s390"
4498
LD="${LD-ld} -m elf64_sparc"
4508
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
4509
SAVE_CFLAGS="$CFLAGS"
4510
CFLAGS="$CFLAGS -belf"
4511
{ echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4512
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4513
if test "${lt_cv_cc_needs_belf+set}" = set; then
4514
echo $ECHO_N "(cached) $ECHO_C" >&6
4517
ac_cpp='$CPP $CPPFLAGS'
4518
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4519
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4520
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4522
cat >conftest.$ac_ext <<_ACEOF
4525
cat confdefs.h >>conftest.$ac_ext
4526
cat >>conftest.$ac_ext <<_ACEOF
4527
/* end confdefs.h. */
4537
rm -f conftest.$ac_objext conftest$ac_exeext
4538
if { (ac_try="$ac_link"
4540
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4541
*) ac_try_echo=$ac_try;;
4543
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4544
(eval "$ac_link") 2>conftest.er1
4546
grep -v '^ *+' conftest.er1 >conftest.err
4548
cat conftest.err >&5
4549
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550
(exit $ac_status); } &&
4551
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4552
{ (case "(($ac_try" in
4553
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4554
*) ac_try_echo=$ac_try;;
4556
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4557
(eval "$ac_try") 2>&5
4559
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4560
(exit $ac_status); }; } &&
4561
{ ac_try='test -s conftest$ac_exeext'
4562
{ (case "(($ac_try" in
4563
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4564
*) ac_try_echo=$ac_try;;
4566
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4567
(eval "$ac_try") 2>&5
4569
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4570
(exit $ac_status); }; }; then
4571
lt_cv_cc_needs_belf=yes
4573
echo "$as_me: failed program was:" >&5
4574
sed 's/^/| /' conftest.$ac_ext >&5
4576
lt_cv_cc_needs_belf=no
4579
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4580
conftest$ac_exeext conftest.$ac_ext
4582
ac_cpp='$CPP $CPPFLAGS'
4583
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4584
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4585
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4588
{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4589
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4590
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4591
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4592
CFLAGS="$SAVE_CFLAGS"
4596
# Find out which ABI we are using.
4597
echo 'int i;' > conftest.$ac_ext
4598
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4599
(eval $ac_compile) 2>&5
4601
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602
(exit $ac_status); }; then
4603
case `/usr/bin/file conftest.o` in
4605
case $lt_cv_prog_gnu_ld in
4606
yes*) LD="${LD-ld} -m elf64_sparc" ;;
4607
*) LD="${LD-ld} -64" ;;
4618
need_locks="$enable_libtool_lock"
4621
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4622
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4623
if test "${ac_cv_header_stdc+set}" = set; then
4624
echo $ECHO_N "(cached) $ECHO_C" >&6
4626
cat >conftest.$ac_ext <<_ACEOF
4629
cat confdefs.h >>conftest.$ac_ext
4630
cat >>conftest.$ac_ext <<_ACEOF
4631
/* end confdefs.h. */
4645
rm -f conftest.$ac_objext
4646
if { (ac_try="$ac_compile"
4648
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4649
*) ac_try_echo=$ac_try;;
4651
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4652
(eval "$ac_compile") 2>conftest.er1
4654
grep -v '^ *+' conftest.er1 >conftest.err
4656
cat conftest.err >&5
4657
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4658
(exit $ac_status); } &&
4659
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4660
{ (case "(($ac_try" in
4661
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4662
*) ac_try_echo=$ac_try;;
4664
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4665
(eval "$ac_try") 2>&5
4667
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4668
(exit $ac_status); }; } &&
4669
{ ac_try='test -s conftest.$ac_objext'
4670
{ (case "(($ac_try" in
4671
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4672
*) ac_try_echo=$ac_try;;
4674
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4675
(eval "$ac_try") 2>&5
4677
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4678
(exit $ac_status); }; }; then
4679
ac_cv_header_stdc=yes
4681
echo "$as_me: failed program was:" >&5
4682
sed 's/^/| /' conftest.$ac_ext >&5
4684
ac_cv_header_stdc=no
4687
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4689
if test $ac_cv_header_stdc = yes; then
4690
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4691
cat >conftest.$ac_ext <<_ACEOF
4694
cat confdefs.h >>conftest.$ac_ext
4695
cat >>conftest.$ac_ext <<_ACEOF
4696
/* end confdefs.h. */
4700
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4701
$EGREP "memchr" >/dev/null 2>&1; then
4704
ac_cv_header_stdc=no
4710
if test $ac_cv_header_stdc = yes; then
4711
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4712
cat >conftest.$ac_ext <<_ACEOF
4715
cat confdefs.h >>conftest.$ac_ext
4716
cat >>conftest.$ac_ext <<_ACEOF
4717
/* end confdefs.h. */
4721
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4722
$EGREP "free" >/dev/null 2>&1; then
4725
ac_cv_header_stdc=no
4731
if test $ac_cv_header_stdc = yes; then
4732
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4733
if test "$cross_compiling" = yes; then
4736
cat >conftest.$ac_ext <<_ACEOF
4739
cat confdefs.h >>conftest.$ac_ext
4740
cat >>conftest.$ac_ext <<_ACEOF
4741
/* end confdefs.h. */
4744
#if ((' ' & 0x0FF) == 0x020)
4745
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4746
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4748
# define ISLOWER(c) \
4749
(('a' <= (c) && (c) <= 'i') \
4750
|| ('j' <= (c) && (c) <= 'r') \
4751
|| ('s' <= (c) && (c) <= 'z'))
4752
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4755
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4760
for (i = 0; i < 256; i++)
4761
if (XOR (islower (i), ISLOWER (i))
4762
|| toupper (i) != TOUPPER (i))
4767
rm -f conftest$ac_exeext
4768
if { (ac_try="$ac_link"
4770
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4771
*) ac_try_echo=$ac_try;;
4773
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4774
(eval "$ac_link") 2>&5
4776
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4778
{ (case "(($ac_try" in
4779
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4780
*) ac_try_echo=$ac_try;;
4782
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4783
(eval "$ac_try") 2>&5
4785
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4786
(exit $ac_status); }; }; then
4789
echo "$as_me: program exited with status $ac_status" >&5
4790
echo "$as_me: failed program was:" >&5
4791
sed 's/^/| /' conftest.$ac_ext >&5
4794
ac_cv_header_stdc=no
4796
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4802
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4803
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4804
if test $ac_cv_header_stdc = yes; then
4806
cat >>confdefs.h <<\_ACEOF
4807
#define STDC_HEADERS 1
4812
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4822
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4823
inttypes.h stdint.h unistd.h
4825
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4826
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4827
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4828
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4829
echo $ECHO_N "(cached) $ECHO_C" >&6
4831
cat >conftest.$ac_ext <<_ACEOF
4834
cat confdefs.h >>conftest.$ac_ext
4835
cat >>conftest.$ac_ext <<_ACEOF
4836
/* end confdefs.h. */
4837
$ac_includes_default
4839
#include <$ac_header>
4841
rm -f conftest.$ac_objext
4842
if { (ac_try="$ac_compile"
4844
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4845
*) ac_try_echo=$ac_try;;
4847
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4848
(eval "$ac_compile") 2>conftest.er1
4850
grep -v '^ *+' conftest.er1 >conftest.err
4852
cat conftest.err >&5
4853
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4854
(exit $ac_status); } &&
4855
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4856
{ (case "(($ac_try" in
4857
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4858
*) ac_try_echo=$ac_try;;
4860
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4861
(eval "$ac_try") 2>&5
4863
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4864
(exit $ac_status); }; } &&
4865
{ ac_try='test -s conftest.$ac_objext'
4866
{ (case "(($ac_try" in
4867
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4868
*) ac_try_echo=$ac_try;;
4870
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4871
(eval "$ac_try") 2>&5
4873
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874
(exit $ac_status); }; }; then
4875
eval "$as_ac_Header=yes"
4877
echo "$as_me: failed program was:" >&5
4878
sed 's/^/| /' conftest.$ac_ext >&5
4880
eval "$as_ac_Header=no"
4883
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4885
ac_res=`eval echo '${'$as_ac_Header'}'`
4886
{ echo "$as_me:$LINENO: result: $ac_res" >&5
4887
echo "${ECHO_T}$ac_res" >&6; }
4888
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4889
cat >>confdefs.h <<_ACEOF
4890
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4899
for ac_header in dlfcn.h
4901
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4902
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4903
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4904
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4905
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4906
echo $ECHO_N "(cached) $ECHO_C" >&6
4908
ac_res=`eval echo '${'$as_ac_Header'}'`
4909
{ echo "$as_me:$LINENO: result: $ac_res" >&5
4910
echo "${ECHO_T}$ac_res" >&6; }
4912
# Is the header compilable?
4913
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4914
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4915
cat >conftest.$ac_ext <<_ACEOF
4918
cat confdefs.h >>conftest.$ac_ext
4919
cat >>conftest.$ac_ext <<_ACEOF
4920
/* end confdefs.h. */
4921
$ac_includes_default
4922
#include <$ac_header>
4924
rm -f conftest.$ac_objext
4925
if { (ac_try="$ac_compile"
4927
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4928
*) ac_try_echo=$ac_try;;
4930
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4931
(eval "$ac_compile") 2>conftest.er1
4933
grep -v '^ *+' conftest.er1 >conftest.err
4935
cat conftest.err >&5
4936
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4937
(exit $ac_status); } &&
4938
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4939
{ (case "(($ac_try" in
4940
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4941
*) ac_try_echo=$ac_try;;
4943
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4944
(eval "$ac_try") 2>&5
4946
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4947
(exit $ac_status); }; } &&
4948
{ ac_try='test -s conftest.$ac_objext'
4949
{ (case "(($ac_try" in
4950
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4951
*) ac_try_echo=$ac_try;;
4953
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4954
(eval "$ac_try") 2>&5
4956
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4957
(exit $ac_status); }; }; then
4958
ac_header_compiler=yes
4960
echo "$as_me: failed program was:" >&5
4961
sed 's/^/| /' conftest.$ac_ext >&5
4963
ac_header_compiler=no
4966
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4967
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4968
echo "${ECHO_T}$ac_header_compiler" >&6; }
4970
# Is the header present?
4971
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4972
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4973
cat >conftest.$ac_ext <<_ACEOF
4976
cat confdefs.h >>conftest.$ac_ext
4977
cat >>conftest.$ac_ext <<_ACEOF
4978
/* end confdefs.h. */
4979
#include <$ac_header>
4981
if { (ac_try="$ac_cpp conftest.$ac_ext"
4983
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4984
*) ac_try_echo=$ac_try;;
4986
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4987
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4989
grep -v '^ *+' conftest.er1 >conftest.err
4991
cat conftest.err >&5
4992
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993
(exit $ac_status); } >/dev/null; then
4994
if test -s conftest.err; then
4995
ac_cpp_err=$ac_c_preproc_warn_flag
4996
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5003
if test -z "$ac_cpp_err"; then
5004
ac_header_preproc=yes
5006
echo "$as_me: failed program was:" >&5
5007
sed 's/^/| /' conftest.$ac_ext >&5
5009
ac_header_preproc=no
5012
rm -f conftest.err conftest.$ac_ext
5013
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5014
echo "${ECHO_T}$ac_header_preproc" >&6; }
5016
# So? What about this header?
5017
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5019
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5020
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5021
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5022
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5023
ac_header_preproc=yes
5026
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5027
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5028
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5029
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5030
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5031
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5032
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5033
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5034
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5035
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5036
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5037
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5041
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5042
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5043
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5044
echo $ECHO_N "(cached) $ECHO_C" >&6
5046
eval "$as_ac_Header=\$ac_header_preproc"
5048
ac_res=`eval echo '${'$as_ac_Header'}'`
5049
{ echo "$as_me:$LINENO: result: $ac_res" >&5
5050
echo "${ECHO_T}$ac_res" >&6; }
5053
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5054
cat >>confdefs.h <<_ACEOF
5055
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5063
ac_cpp='$CXXCPP $CPPFLAGS'
5064
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5065
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5066
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5067
if test -z "$CXX"; then
5068
if test -n "$CCC"; then
5071
if test -n "$ac_tool_prefix"; then
5072
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5074
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5075
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5076
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5077
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5078
if test "${ac_cv_prog_CXX+set}" = set; then
5079
echo $ECHO_N "(cached) $ECHO_C" >&6
5081
if test -n "$CXX"; then
5082
ac_cv_prog_CXX="$CXX" # Let the user override the test.
5084
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5088
test -z "$as_dir" && as_dir=.
5089
for ac_exec_ext in '' $ac_executable_extensions; do
5090
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5091
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5092
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5102
if test -n "$CXX"; then
5103
{ echo "$as_me:$LINENO: result: $CXX" >&5
5104
echo "${ECHO_T}$CXX" >&6; }
5106
{ echo "$as_me:$LINENO: result: no" >&5
5107
echo "${ECHO_T}no" >&6; }
5111
test -n "$CXX" && break
5114
if test -z "$CXX"; then
5116
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5118
# Extract the first word of "$ac_prog", so it can be a program name with args.
5119
set dummy $ac_prog; ac_word=$2
5120
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5121
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5122
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5123
echo $ECHO_N "(cached) $ECHO_C" >&6
5125
if test -n "$ac_ct_CXX"; then
5126
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5128
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5132
test -z "$as_dir" && as_dir=.
5133
for ac_exec_ext in '' $ac_executable_extensions; do
5134
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5135
ac_cv_prog_ac_ct_CXX="$ac_prog"
5136
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5145
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5146
if test -n "$ac_ct_CXX"; then
5147
{ echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5148
echo "${ECHO_T}$ac_ct_CXX" >&6; }
5150
{ echo "$as_me:$LINENO: result: no" >&5
5151
echo "${ECHO_T}no" >&6; }
5155
test -n "$ac_ct_CXX" && break
5158
if test "x$ac_ct_CXX" = x; then
5161
case $cross_compiling:$ac_tool_warned in
5163
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5164
whose name does not start with the host triplet. If you think this
5165
configuration is useful to you, please write to autoconf@gnu.org." >&5
5166
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5167
whose name does not start with the host triplet. If you think this
5168
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5169
ac_tool_warned=yes ;;
5177
# Provide some information about the compiler.
5178
echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5179
ac_compiler=`set X $ac_compile; echo $2`
5180
{ (ac_try="$ac_compiler --version >&5"
5182
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5183
*) ac_try_echo=$ac_try;;
5185
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5186
(eval "$ac_compiler --version >&5") 2>&5
5188
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5189
(exit $ac_status); }
5190
{ (ac_try="$ac_compiler -v >&5"
5192
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5193
*) ac_try_echo=$ac_try;;
5195
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5196
(eval "$ac_compiler -v >&5") 2>&5
5198
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5199
(exit $ac_status); }
5200
{ (ac_try="$ac_compiler -V >&5"
5202
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5203
*) ac_try_echo=$ac_try;;
5205
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5206
(eval "$ac_compiler -V >&5") 2>&5
5208
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5209
(exit $ac_status); }
5211
{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5212
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5213
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5214
echo $ECHO_N "(cached) $ECHO_C" >&6
5216
cat >conftest.$ac_ext <<_ACEOF
5219
cat confdefs.h >>conftest.$ac_ext
5220
cat >>conftest.$ac_ext <<_ACEOF
5221
/* end confdefs.h. */
5234
rm -f conftest.$ac_objext
5235
if { (ac_try="$ac_compile"
5237
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5238
*) ac_try_echo=$ac_try;;
5240
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5241
(eval "$ac_compile") 2>conftest.er1
5243
grep -v '^ *+' conftest.er1 >conftest.err
5245
cat conftest.err >&5
5246
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5247
(exit $ac_status); } &&
5248
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5249
{ (case "(($ac_try" in
5250
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5251
*) ac_try_echo=$ac_try;;
5253
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5254
(eval "$ac_try") 2>&5
5256
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5257
(exit $ac_status); }; } &&
5258
{ ac_try='test -s conftest.$ac_objext'
5259
{ (case "(($ac_try" in
5260
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5261
*) ac_try_echo=$ac_try;;
5263
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5264
(eval "$ac_try") 2>&5
5266
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5267
(exit $ac_status); }; }; then
5270
echo "$as_me: failed program was:" >&5
5271
sed 's/^/| /' conftest.$ac_ext >&5
5276
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5277
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5280
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5281
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5282
GXX=`test $ac_compiler_gnu = yes && echo yes`
5283
ac_test_CXXFLAGS=${CXXFLAGS+set}
5284
ac_save_CXXFLAGS=$CXXFLAGS
5285
{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5286
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5287
if test "${ac_cv_prog_cxx_g+set}" = set; then
5288
echo $ECHO_N "(cached) $ECHO_C" >&6
5290
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5291
ac_cxx_werror_flag=yes
5294
cat >conftest.$ac_ext <<_ACEOF
5297
cat confdefs.h >>conftest.$ac_ext
5298
cat >>conftest.$ac_ext <<_ACEOF
5299
/* end confdefs.h. */
5309
rm -f conftest.$ac_objext
5310
if { (ac_try="$ac_compile"
5312
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5313
*) ac_try_echo=$ac_try;;
5315
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5316
(eval "$ac_compile") 2>conftest.er1
5318
grep -v '^ *+' conftest.er1 >conftest.err
5320
cat conftest.err >&5
5321
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5322
(exit $ac_status); } &&
5323
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5324
{ (case "(($ac_try" in
5325
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5326
*) ac_try_echo=$ac_try;;
5328
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5329
(eval "$ac_try") 2>&5
5331
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5332
(exit $ac_status); }; } &&
5333
{ ac_try='test -s conftest.$ac_objext'
5334
{ (case "(($ac_try" in
5335
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5336
*) ac_try_echo=$ac_try;;
5338
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5339
(eval "$ac_try") 2>&5
5341
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5342
(exit $ac_status); }; }; then
5343
ac_cv_prog_cxx_g=yes
5345
echo "$as_me: failed program was:" >&5
5346
sed 's/^/| /' conftest.$ac_ext >&5
5349
cat >conftest.$ac_ext <<_ACEOF
5352
cat confdefs.h >>conftest.$ac_ext
5353
cat >>conftest.$ac_ext <<_ACEOF
5354
/* end confdefs.h. */
5364
rm -f conftest.$ac_objext
5365
if { (ac_try="$ac_compile"
5367
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5368
*) ac_try_echo=$ac_try;;
5370
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5371
(eval "$ac_compile") 2>conftest.er1
5373
grep -v '^ *+' conftest.er1 >conftest.err
5375
cat conftest.err >&5
5376
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377
(exit $ac_status); } &&
5378
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5379
{ (case "(($ac_try" in
5380
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5381
*) ac_try_echo=$ac_try;;
5383
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5384
(eval "$ac_try") 2>&5
5386
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5387
(exit $ac_status); }; } &&
5388
{ ac_try='test -s conftest.$ac_objext'
5389
{ (case "(($ac_try" in
5390
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5391
*) ac_try_echo=$ac_try;;
5393
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5394
(eval "$ac_try") 2>&5
5396
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5397
(exit $ac_status); }; }; then
5400
echo "$as_me: failed program was:" >&5
5401
sed 's/^/| /' conftest.$ac_ext >&5
5403
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5405
cat >conftest.$ac_ext <<_ACEOF
5408
cat confdefs.h >>conftest.$ac_ext
5409
cat >>conftest.$ac_ext <<_ACEOF
5410
/* end confdefs.h. */
5420
rm -f conftest.$ac_objext
5421
if { (ac_try="$ac_compile"
5423
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5424
*) ac_try_echo=$ac_try;;
5426
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5427
(eval "$ac_compile") 2>conftest.er1
5429
grep -v '^ *+' conftest.er1 >conftest.err
5431
cat conftest.err >&5
5432
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5433
(exit $ac_status); } &&
5434
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5435
{ (case "(($ac_try" in
5436
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5437
*) ac_try_echo=$ac_try;;
5439
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5440
(eval "$ac_try") 2>&5
5442
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443
(exit $ac_status); }; } &&
5444
{ ac_try='test -s conftest.$ac_objext'
5445
{ (case "(($ac_try" in
5446
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5447
*) ac_try_echo=$ac_try;;
5449
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5450
(eval "$ac_try") 2>&5
5452
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5453
(exit $ac_status); }; }; then
5454
ac_cv_prog_cxx_g=yes
5456
echo "$as_me: failed program was:" >&5
5457
sed 's/^/| /' conftest.$ac_ext >&5
5462
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5465
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5468
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5469
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5471
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5472
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5473
if test "$ac_test_CXXFLAGS" = set; then
5474
CXXFLAGS=$ac_save_CXXFLAGS
5475
elif test $ac_cv_prog_cxx_g = yes; then
5476
if test "$GXX" = yes; then
5482
if test "$GXX" = yes; then
5489
ac_cpp='$CXXCPP $CPPFLAGS'
5490
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5491
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5492
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5496
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5497
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5498
(test "X$CXX" != "Xg++"))) ; then
5500
ac_cpp='$CXXCPP $CPPFLAGS'
5501
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5502
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5503
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5504
{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5505
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5506
if test -z "$CXXCPP"; then
5507
if test "${ac_cv_prog_CXXCPP+set}" = set; then
5508
echo $ECHO_N "(cached) $ECHO_C" >&6
5510
# Double quotes because CXXCPP needs to be expanded
5511
for CXXCPP in "$CXX -E" "/lib/cpp"
5514
for ac_cxx_preproc_warn_flag in '' yes
5516
# Use a header file that comes with gcc, so configuring glibc
5517
# with a fresh cross-compiler works.
5518
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5519
# <limits.h> exists even on freestanding compilers.
5520
# On the NeXT, cc -E runs the code through the compiler's parser,
5521
# not just through cpp. "Syntax error" is here to catch this case.
5522
cat >conftest.$ac_ext <<_ACEOF
5525
cat confdefs.h >>conftest.$ac_ext
5526
cat >>conftest.$ac_ext <<_ACEOF
5527
/* end confdefs.h. */
5529
# include <limits.h>
5531
# include <assert.h>
5535
if { (ac_try="$ac_cpp conftest.$ac_ext"
5537
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5538
*) ac_try_echo=$ac_try;;
5540
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5541
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5543
grep -v '^ *+' conftest.er1 >conftest.err
5545
cat conftest.err >&5
5546
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5547
(exit $ac_status); } >/dev/null; then
5548
if test -s conftest.err; then
5549
ac_cpp_err=$ac_cxx_preproc_warn_flag
5550
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5557
if test -z "$ac_cpp_err"; then
5560
echo "$as_me: failed program was:" >&5
5561
sed 's/^/| /' conftest.$ac_ext >&5
5563
# Broken: fails on valid input.
5567
rm -f conftest.err conftest.$ac_ext
5569
# OK, works on sane cases. Now check whether nonexistent headers
5570
# can be detected and how.
5571
cat >conftest.$ac_ext <<_ACEOF
5574
cat confdefs.h >>conftest.$ac_ext
5575
cat >>conftest.$ac_ext <<_ACEOF
5576
/* end confdefs.h. */
5577
#include <ac_nonexistent.h>
5579
if { (ac_try="$ac_cpp conftest.$ac_ext"
5581
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5582
*) ac_try_echo=$ac_try;;
5584
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5585
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5587
grep -v '^ *+' conftest.er1 >conftest.err
5589
cat conftest.err >&5
5590
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5591
(exit $ac_status); } >/dev/null; then
5592
if test -s conftest.err; then
5593
ac_cpp_err=$ac_cxx_preproc_warn_flag
5594
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5601
if test -z "$ac_cpp_err"; then
5602
# Broken: success on invalid input.
5605
echo "$as_me: failed program was:" >&5
5606
sed 's/^/| /' conftest.$ac_ext >&5
5608
# Passes both tests.
5613
rm -f conftest.err conftest.$ac_ext
5616
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5617
rm -f conftest.err conftest.$ac_ext
5618
if $ac_preproc_ok; then
5623
ac_cv_prog_CXXCPP=$CXXCPP
5626
CXXCPP=$ac_cv_prog_CXXCPP
5628
ac_cv_prog_CXXCPP=$CXXCPP
5630
{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
5631
echo "${ECHO_T}$CXXCPP" >&6; }
5633
for ac_cxx_preproc_warn_flag in '' yes
5635
# Use a header file that comes with gcc, so configuring glibc
5636
# with a fresh cross-compiler works.
5637
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5638
# <limits.h> exists even on freestanding compilers.
5639
# On the NeXT, cc -E runs the code through the compiler's parser,
5640
# not just through cpp. "Syntax error" is here to catch this case.
5641
cat >conftest.$ac_ext <<_ACEOF
5644
cat confdefs.h >>conftest.$ac_ext
5645
cat >>conftest.$ac_ext <<_ACEOF
5646
/* end confdefs.h. */
5648
# include <limits.h>
5650
# include <assert.h>
5654
if { (ac_try="$ac_cpp conftest.$ac_ext"
5656
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5657
*) ac_try_echo=$ac_try;;
5659
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5660
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5662
grep -v '^ *+' conftest.er1 >conftest.err
5664
cat conftest.err >&5
5665
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5666
(exit $ac_status); } >/dev/null; then
5667
if test -s conftest.err; then
5668
ac_cpp_err=$ac_cxx_preproc_warn_flag
5669
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5676
if test -z "$ac_cpp_err"; then
5679
echo "$as_me: failed program was:" >&5
5680
sed 's/^/| /' conftest.$ac_ext >&5
5682
# Broken: fails on valid input.
5686
rm -f conftest.err conftest.$ac_ext
5688
# OK, works on sane cases. Now check whether nonexistent headers
5689
# can be detected and how.
5690
cat >conftest.$ac_ext <<_ACEOF
5693
cat confdefs.h >>conftest.$ac_ext
5694
cat >>conftest.$ac_ext <<_ACEOF
5695
/* end confdefs.h. */
5696
#include <ac_nonexistent.h>
5698
if { (ac_try="$ac_cpp conftest.$ac_ext"
5700
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5701
*) ac_try_echo=$ac_try;;
5703
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5704
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5706
grep -v '^ *+' conftest.er1 >conftest.err
5708
cat conftest.err >&5
5709
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5710
(exit $ac_status); } >/dev/null; then
5711
if test -s conftest.err; then
5712
ac_cpp_err=$ac_cxx_preproc_warn_flag
5713
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5720
if test -z "$ac_cpp_err"; then
5721
# Broken: success on invalid input.
5724
echo "$as_me: failed program was:" >&5
5725
sed 's/^/| /' conftest.$ac_ext >&5
5727
# Passes both tests.
5732
rm -f conftest.err conftest.$ac_ext
5735
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5736
rm -f conftest.err conftest.$ac_ext
5737
if $ac_preproc_ok; then
5740
{ { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5741
See \`config.log' for more details." >&5
5742
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5743
See \`config.log' for more details." >&2;}
5744
{ (exit 1); exit 1; }; }
5748
ac_cpp='$CXXCPP $CPPFLAGS'
5749
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5750
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5751
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5757
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5758
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5759
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5760
if test -n "$ac_tool_prefix"; then
5761
for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
5763
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5764
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5765
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5766
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5767
if test "${ac_cv_prog_F77+set}" = set; then
5768
echo $ECHO_N "(cached) $ECHO_C" >&6
5770
if test -n "$F77"; then
5771
ac_cv_prog_F77="$F77" # Let the user override the test.
5773
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5777
test -z "$as_dir" && as_dir=.
5778
for ac_exec_ext in '' $ac_executable_extensions; do
5779
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5780
ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5781
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5791
if test -n "$F77"; then
5792
{ echo "$as_me:$LINENO: result: $F77" >&5
5793
echo "${ECHO_T}$F77" >&6; }
5795
{ echo "$as_me:$LINENO: result: no" >&5
5796
echo "${ECHO_T}no" >&6; }
5800
test -n "$F77" && break
5803
if test -z "$F77"; then
5805
for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
5807
# Extract the first word of "$ac_prog", so it can be a program name with args.
5808
set dummy $ac_prog; ac_word=$2
5809
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5810
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5811
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5812
echo $ECHO_N "(cached) $ECHO_C" >&6
5814
if test -n "$ac_ct_F77"; then
5815
ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5817
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5821
test -z "$as_dir" && as_dir=.
5822
for ac_exec_ext in '' $ac_executable_extensions; do
5823
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5824
ac_cv_prog_ac_ct_F77="$ac_prog"
5825
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5834
ac_ct_F77=$ac_cv_prog_ac_ct_F77
5835
if test -n "$ac_ct_F77"; then
5836
{ echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5837
echo "${ECHO_T}$ac_ct_F77" >&6; }
5839
{ echo "$as_me:$LINENO: result: no" >&5
5840
echo "${ECHO_T}no" >&6; }
5844
test -n "$ac_ct_F77" && break
5847
if test "x$ac_ct_F77" = x; then
5850
case $cross_compiling:$ac_tool_warned in
5852
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5853
whose name does not start with the host triplet. If you think this
5854
configuration is useful to you, please write to autoconf@gnu.org." >&5
5855
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5856
whose name does not start with the host triplet. If you think this
5857
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5858
ac_tool_warned=yes ;;
5865
# Provide some information about the compiler.
5866
echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5867
ac_compiler=`set X $ac_compile; echo $2`
5868
{ (ac_try="$ac_compiler --version >&5"
5870
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5871
*) ac_try_echo=$ac_try;;
5873
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5874
(eval "$ac_compiler --version >&5") 2>&5
5876
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877
(exit $ac_status); }
5878
{ (ac_try="$ac_compiler -v >&5"
5880
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5881
*) ac_try_echo=$ac_try;;
5883
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5884
(eval "$ac_compiler -v >&5") 2>&5
5886
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887
(exit $ac_status); }
5888
{ (ac_try="$ac_compiler -V >&5"
5890
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5891
*) ac_try_echo=$ac_try;;
5893
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5894
(eval "$ac_compiler -V >&5") 2>&5
5896
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5897
(exit $ac_status); }
5900
# If we don't use `.F' as extension, the preprocessor is not run on the
5901
# input file. (Note that this only needs to work for GNU compilers.)
5904
{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5905
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
5906
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5907
echo $ECHO_N "(cached) $ECHO_C" >&6
5909
cat >conftest.$ac_ext <<_ACEOF
5917
rm -f conftest.$ac_objext
5918
if { (ac_try="$ac_compile"
5920
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5921
*) ac_try_echo=$ac_try;;
5923
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5924
(eval "$ac_compile") 2>conftest.er1
5926
grep -v '^ *+' conftest.er1 >conftest.err
5928
cat conftest.err >&5
5929
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930
(exit $ac_status); } &&
5931
{ ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5932
{ (case "(($ac_try" in
5933
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5934
*) ac_try_echo=$ac_try;;
5936
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5937
(eval "$ac_try") 2>&5
5939
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5940
(exit $ac_status); }; } &&
5941
{ ac_try='test -s conftest.$ac_objext'
5942
{ (case "(($ac_try" in
5943
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5944
*) ac_try_echo=$ac_try;;
5946
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5947
(eval "$ac_try") 2>&5
5949
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950
(exit $ac_status); }; }; then
5953
echo "$as_me: failed program was:" >&5
5954
sed 's/^/| /' conftest.$ac_ext >&5
5959
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5960
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5963
{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5964
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
5966
ac_test_FFLAGS=${FFLAGS+set}
5967
ac_save_FFLAGS=$FFLAGS
5969
{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5970
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
5971
if test "${ac_cv_prog_f77_g+set}" = set; then
5972
echo $ECHO_N "(cached) $ECHO_C" >&6
5975
cat >conftest.$ac_ext <<_ACEOF
5980
rm -f conftest.$ac_objext
5981
if { (ac_try="$ac_compile"
5983
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5984
*) ac_try_echo=$ac_try;;
5986
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5987
(eval "$ac_compile") 2>conftest.er1
5989
grep -v '^ *+' conftest.er1 >conftest.err
5991
cat conftest.err >&5
5992
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993
(exit $ac_status); } &&
5994
{ ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5995
{ (case "(($ac_try" in
5996
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5997
*) ac_try_echo=$ac_try;;
5999
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6000
(eval "$ac_try") 2>&5
6002
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003
(exit $ac_status); }; } &&
6004
{ ac_try='test -s conftest.$ac_objext'
6005
{ (case "(($ac_try" in
6006
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6007
*) ac_try_echo=$ac_try;;
6009
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6010
(eval "$ac_try") 2>&5
6012
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6013
(exit $ac_status); }; }; then
6014
ac_cv_prog_f77_g=yes
6016
echo "$as_me: failed program was:" >&5
6017
sed 's/^/| /' conftest.$ac_ext >&5
6022
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6025
{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6026
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6027
if test "$ac_test_FFLAGS" = set; then
6028
FFLAGS=$ac_save_FFLAGS
6029
elif test $ac_cv_prog_f77_g = yes; then
6030
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6036
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6043
G77=`test $ac_compiler_gnu = yes && echo yes`
6045
ac_cpp='$CPP $CPPFLAGS'
6046
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6047
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6048
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6052
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6054
# find the maximum length of command line arguments
6055
{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6056
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6057
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6058
echo $ECHO_N "(cached) $ECHO_C" >&6
6065
# On DJGPP, this test can blow up pretty badly due to problems in libc
6066
# (any single argument exceeding 2000 bytes causes a buffer overrun
6067
# during glob expansion). Even if it were fixed, the result of this
6068
# check would be larger than it should be.
6069
lt_cv_sys_max_cmd_len=12288; # 12K is about right
6073
# Under GNU Hurd, this test is not required because there is
6074
# no limit to the length of command line arguments.
6075
# Libtool will interpret -1 as no limit whatsoever
6076
lt_cv_sys_max_cmd_len=-1;
6080
# On Win9x/ME, this test blows up -- it succeeds, but takes
6081
# about 5 minutes as the teststring grows exponentially.
6082
# Worse, since 9x/ME are not pre-emptively multitasking,
6083
# you end up with a "frozen" computer, even though with patience
6084
# the test eventually succeeds (with a max line length of 256k).
6085
# Instead, let's just punt: use the minimum linelength reported by
6086
# all of the supported platforms: 8192 (on NT/2K/XP).
6087
lt_cv_sys_max_cmd_len=8192;
6091
# On AmigaOS with pdksh, this test takes hours, literally.
6092
# So we just punt and use a minimum line length of 8192.
6093
lt_cv_sys_max_cmd_len=8192;
6096
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6097
# This has been around since 386BSD, at least. Likely further.
6098
if test -x /sbin/sysctl; then
6099
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6100
elif test -x /usr/sbin/sysctl; then
6101
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6103
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6105
# And add a safety zone
6106
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6107
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6111
# We know the value 262144 and hardcode it with a safety zone (like BSD)
6112
lt_cv_sys_max_cmd_len=196608
6116
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6117
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6118
# nice to cause kernel panics so lets avoid the loop below.
6119
# First set a reasonable default.
6120
lt_cv_sys_max_cmd_len=16384
6122
if test -x /sbin/sysconfig; then
6123
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6124
*1*) lt_cv_sys_max_cmd_len=-1 ;;
6129
lt_cv_sys_max_cmd_len=102400
6131
sysv5* | sco5v6* | sysv4.2uw2*)
6132
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6133
if test -n "$kargmax"; then
6134
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6136
lt_cv_sys_max_cmd_len=32768
6140
# If test is not a shell built-in, we'll probably end up computing a
6141
# maximum length that is only half of the actual maximum length, but
6143
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6144
while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6145
= "XX$teststring") >/dev/null 2>&1 &&
6146
new_result=`expr "X$teststring" : ".*" 2>&1` &&
6147
lt_cv_sys_max_cmd_len=$new_result &&
6148
test $i != 17 # 1/2 MB should be enough
6151
teststring=$teststring$teststring
6154
# Add a significant safety factor because C++ compilers can tack on massive
6155
# amounts of additional arguments before passing them to the linker.
6156
# It appears as though 1/2 is a usable value.
6157
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6163
if test -n $lt_cv_sys_max_cmd_len ; then
6164
{ echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6165
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6167
{ echo "$as_me:$LINENO: result: none" >&5
6168
echo "${ECHO_T}none" >&6; }
6174
# Check for command to grab the raw symbol name followed by C symbol from nm.
6175
{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6176
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6177
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6178
echo $ECHO_N "(cached) $ECHO_C" >&6
6181
# These are sane defaults that work on at least a few old systems.
6182
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6184
# Character class describing NM global symbol codes.
6185
symcode='[BCDEGRST]'
6187
# Regexp to match symbols that can be accessed directly from C.
6188
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6190
# Transform an extracted symbol line into a proper C declaration
6191
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6193
# Transform an extracted symbol line into symbol name and symbol address
6194
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6196
# Define system-specific variables.
6201
cygwin* | mingw* | pw32*)
6202
symcode='[ABCDGISTW]'
6204
hpux*) # Its linker distinguishes data from code symbols
6205
if test "$host_cpu" = ia64; then
6206
symcode='[ABCDEGRST]'
6208
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6209
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6212
if test "$host_cpu" = ia64; then
6213
symcode='[ABCDGIRSTW]'
6214
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6215
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6219
symcode='[BCDEGRST]'
6222
symcode='[BCDEGQRST]'
6233
sysv5* | sco5v6* | unixware* | OpenUNIX*)
6241
# Handle CRLF in mingw tool chain
6245
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6249
# If we're using GNU nm, then use its standard symbol codes.
6250
case `$NM -V 2>&1` in
6251
*GNU* | *'with BFD'*)
6252
symcode='[ABCDGIRSTW]' ;;
6255
# Try without a prefix undercore, then with it.
6256
for ac_symprfx in "" "_"; do
6258
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6259
symxfrm="\\1 $ac_symprfx\\2 \\2"
6261
# Write the raw and C identifiers.
6262
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6264
# Check to see that the pipe works correctly.
6268
cat > conftest.$ac_ext <<EOF
6273
void nm_test_func(){}
6277
int main(){nm_test_var='a';nm_test_func();return(0);}
6280
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6281
(eval $ac_compile) 2>&5
6283
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6284
(exit $ac_status); }; then
6285
# Now try to grab the symbols.
6287
if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6288
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6290
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6291
(exit $ac_status); } && test -s "$nlist"; then
6292
# Try sorting and uniquifying the output.
6293
if sort "$nlist" | uniq > "$nlist"T; then
6294
mv -f "$nlist"T "$nlist"
6299
# Make sure that we snagged all the symbols we need.
6300
if grep ' nm_test_var$' "$nlist" >/dev/null; then
6301
if grep ' nm_test_func$' "$nlist" >/dev/null; then
6302
cat <<EOF > conftest.$ac_ext
6308
# Now generate the symbol file.
6309
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6311
cat <<EOF >> conftest.$ac_ext
6312
#if defined (__STDC__) && __STDC__
6313
# define lt_ptr_t void *
6315
# define lt_ptr_t char *
6319
/* The mapping between symbol names and symbols. */
6324
lt_preloaded_symbols[] =
6327
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6328
cat <<\EOF >> conftest.$ac_ext
6336
# Now try linking the two files.
6337
mv conftest.$ac_objext conftstm.$ac_objext
6338
lt_save_LIBS="$LIBS"
6339
lt_save_CFLAGS="$CFLAGS"
6340
LIBS="conftstm.$ac_objext"
6341
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6342
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6343
(eval $ac_link) 2>&5
6345
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6346
(exit $ac_status); } && test -s conftest${ac_exeext}; then
6349
LIBS="$lt_save_LIBS"
6350
CFLAGS="$lt_save_CFLAGS"
6352
echo "cannot find nm_test_func in $nlist" >&5
6355
echo "cannot find nm_test_var in $nlist" >&5
6358
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6361
echo "$progname: failed program was:" >&5
6362
cat conftest.$ac_ext >&5
6364
rm -f conftest* conftst*
6366
# Do not use the global_symbol_pipe unless it works.
6367
if test "$pipe_works" = yes; then
6370
lt_cv_sys_global_symbol_pipe=
6376
if test -z "$lt_cv_sys_global_symbol_pipe"; then
6377
lt_cv_sys_global_symbol_to_cdecl=
6379
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6380
{ echo "$as_me:$LINENO: result: failed" >&5
6381
echo "${ECHO_T}failed" >&6; }
6383
{ echo "$as_me:$LINENO: result: ok" >&5
6384
echo "${ECHO_T}ok" >&6; }
6387
{ echo "$as_me:$LINENO: checking for objdir" >&5
6388
echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6389
if test "${lt_cv_objdir+set}" = set; then
6390
echo $ECHO_N "(cached) $ECHO_C" >&6
6392
rm -f .libs 2>/dev/null
6393
mkdir .libs 2>/dev/null
6394
if test -d .libs; then
6397
# MS-DOS does not allow filenames that begin with a dot.
6400
rmdir .libs 2>/dev/null
6402
{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6403
echo "${ECHO_T}$lt_cv_objdir" >&6; }
6404
objdir=$lt_cv_objdir
6412
# AIX sometimes has problems with the GCC collect2 program. For some
6413
# reason, if we set the COLLECT_NAMES environment variable, the problems
6414
# vanish in a puff of smoke.
6415
if test "X${COLLECT_NAMES+set}" != Xset; then
6417
export COLLECT_NAMES
6422
# Sed substitution that helps us do robust quoting. It backslashifies
6423
# metacharacters that are still active within double-quoted strings.
6424
Xsed='sed -e 1s/^X//'
6425
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6427
# Same as above, but do not quote variable references.
6428
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6430
# Sed substitution to delay expansion of an escaped shell variable in a
6431
# double_quote_subst'ed string.
6432
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6434
# Sed substitution to avoid accidental globbing in evaled expressions
6435
no_glob_subst='s/\*/\\\*/g'
6441
default_ofile=libtool
6442
can_build_shared=yes
6444
# All known linkers require a `.a' archive for static linking (except MSVC,
6445
# which needs '.lib').
6447
ltmain="$ac_aux_dir/ltmain.sh"
6448
ofile="$default_ofile"
6449
with_gnu_ld="$lt_cv_prog_gnu_ld"
6451
if test -n "$ac_tool_prefix"; then
6452
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6453
set dummy ${ac_tool_prefix}ar; ac_word=$2
6454
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6455
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6456
if test "${ac_cv_prog_AR+set}" = set; then
6457
echo $ECHO_N "(cached) $ECHO_C" >&6
6459
if test -n "$AR"; then
6460
ac_cv_prog_AR="$AR" # Let the user override the test.
6462
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6466
test -z "$as_dir" && as_dir=.
6467
for ac_exec_ext in '' $ac_executable_extensions; do
6468
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6469
ac_cv_prog_AR="${ac_tool_prefix}ar"
6470
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6480
if test -n "$AR"; then
6481
{ echo "$as_me:$LINENO: result: $AR" >&5
6482
echo "${ECHO_T}$AR" >&6; }
6484
{ echo "$as_me:$LINENO: result: no" >&5
6485
echo "${ECHO_T}no" >&6; }
6490
if test -z "$ac_cv_prog_AR"; then
6492
# Extract the first word of "ar", so it can be a program name with args.
6493
set dummy ar; ac_word=$2
6494
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6495
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6496
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6497
echo $ECHO_N "(cached) $ECHO_C" >&6
6499
if test -n "$ac_ct_AR"; then
6500
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6502
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6506
test -z "$as_dir" && as_dir=.
6507
for ac_exec_ext in '' $ac_executable_extensions; do
6508
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6509
ac_cv_prog_ac_ct_AR="ar"
6510
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6519
ac_ct_AR=$ac_cv_prog_ac_ct_AR
6520
if test -n "$ac_ct_AR"; then
6521
{ echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6522
echo "${ECHO_T}$ac_ct_AR" >&6; }
6524
{ echo "$as_me:$LINENO: result: no" >&5
6525
echo "${ECHO_T}no" >&6; }
6528
if test "x$ac_ct_AR" = x; then
6531
case $cross_compiling:$ac_tool_warned in
6533
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6534
whose name does not start with the host triplet. If you think this
6535
configuration is useful to you, please write to autoconf@gnu.org." >&5
6536
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6537
whose name does not start with the host triplet. If you think this
6538
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6539
ac_tool_warned=yes ;;
6547
if test -n "$ac_tool_prefix"; then
6548
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6549
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6550
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6551
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6552
if test "${ac_cv_prog_RANLIB+set}" = set; then
6553
echo $ECHO_N "(cached) $ECHO_C" >&6
6555
if test -n "$RANLIB"; then
6556
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6558
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6562
test -z "$as_dir" && as_dir=.
6563
for ac_exec_ext in '' $ac_executable_extensions; do
6564
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6565
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6566
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6575
RANLIB=$ac_cv_prog_RANLIB
6576
if test -n "$RANLIB"; then
6577
{ echo "$as_me:$LINENO: result: $RANLIB" >&5
6578
echo "${ECHO_T}$RANLIB" >&6; }
6580
{ echo "$as_me:$LINENO: result: no" >&5
6581
echo "${ECHO_T}no" >&6; }
6586
if test -z "$ac_cv_prog_RANLIB"; then
6587
ac_ct_RANLIB=$RANLIB
6588
# Extract the first word of "ranlib", so it can be a program name with args.
6589
set dummy ranlib; ac_word=$2
6590
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6591
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6592
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6593
echo $ECHO_N "(cached) $ECHO_C" >&6
6595
if test -n "$ac_ct_RANLIB"; then
6596
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6598
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6602
test -z "$as_dir" && as_dir=.
6603
for ac_exec_ext in '' $ac_executable_extensions; do
6604
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6605
ac_cv_prog_ac_ct_RANLIB="ranlib"
6606
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6615
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6616
if test -n "$ac_ct_RANLIB"; then
6617
{ echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6618
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6620
{ echo "$as_me:$LINENO: result: no" >&5
6621
echo "${ECHO_T}no" >&6; }
6624
if test "x$ac_ct_RANLIB" = x; then
6627
case $cross_compiling:$ac_tool_warned in
6629
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6630
whose name does not start with the host triplet. If you think this
6631
configuration is useful to you, please write to autoconf@gnu.org." >&5
6632
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6633
whose name does not start with the host triplet. If you think this
6634
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6635
ac_tool_warned=yes ;;
6637
RANLIB=$ac_ct_RANLIB
6640
RANLIB="$ac_cv_prog_RANLIB"
6643
if test -n "$ac_tool_prefix"; then
6644
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6645
set dummy ${ac_tool_prefix}strip; ac_word=$2
6646
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6647
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6648
if test "${ac_cv_prog_STRIP+set}" = set; then
6649
echo $ECHO_N "(cached) $ECHO_C" >&6
6651
if test -n "$STRIP"; then
6652
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6654
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6658
test -z "$as_dir" && as_dir=.
6659
for ac_exec_ext in '' $ac_executable_extensions; do
6660
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6661
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6662
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6671
STRIP=$ac_cv_prog_STRIP
6672
if test -n "$STRIP"; then
6673
{ echo "$as_me:$LINENO: result: $STRIP" >&5
6674
echo "${ECHO_T}$STRIP" >&6; }
6676
{ echo "$as_me:$LINENO: result: no" >&5
6677
echo "${ECHO_T}no" >&6; }
6682
if test -z "$ac_cv_prog_STRIP"; then
6684
# Extract the first word of "strip", so it can be a program name with args.
6685
set dummy strip; ac_word=$2
6686
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6687
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6688
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6689
echo $ECHO_N "(cached) $ECHO_C" >&6
6691
if test -n "$ac_ct_STRIP"; then
6692
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6694
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6698
test -z "$as_dir" && as_dir=.
6699
for ac_exec_ext in '' $ac_executable_extensions; do
6700
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6701
ac_cv_prog_ac_ct_STRIP="strip"
6702
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6711
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6712
if test -n "$ac_ct_STRIP"; then
6713
{ echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6714
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6716
{ echo "$as_me:$LINENO: result: no" >&5
6717
echo "${ECHO_T}no" >&6; }
6720
if test "x$ac_ct_STRIP" = x; then
6723
case $cross_compiling:$ac_tool_warned in
6725
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6726
whose name does not start with the host triplet. If you think this
6727
configuration is useful to you, please write to autoconf@gnu.org." >&5
6728
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6729
whose name does not start with the host triplet. If you think this
6730
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6731
ac_tool_warned=yes ;;
6736
STRIP="$ac_cv_prog_STRIP"
6741
old_CFLAGS="$CFLAGS"
6743
# Set sane defaults for various variables
6744
test -z "$AR" && AR=ar
6745
test -z "$AR_FLAGS" && AR_FLAGS=cru
6746
test -z "$AS" && AS=as
6747
test -z "$CC" && CC=cc
6748
test -z "$LTCC" && LTCC=$CC
6749
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6750
test -z "$DLLTOOL" && DLLTOOL=dlltool
6751
test -z "$LD" && LD=ld
6752
test -z "$LN_S" && LN_S="ln -s"
6753
test -z "$MAGIC_CMD" && MAGIC_CMD=file
6754
test -z "$NM" && NM=nm
6755
test -z "$SED" && SED=sed
6756
test -z "$OBJDUMP" && OBJDUMP=objdump
6757
test -z "$RANLIB" && RANLIB=:
6758
test -z "$STRIP" && STRIP=:
6759
test -z "$ac_objext" && ac_objext=o
6761
# Determine commands to create old-style static archives.
6762
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6763
old_postinstall_cmds='chmod 644 $oldlib'
6764
old_postuninstall_cmds=
6766
if test -n "$RANLIB"; then
6769
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6772
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6775
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6778
for cc_temp in $compiler""; do
6780
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6781
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6786
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6789
# Only perform the check for file, if the check method requires it
6790
case $deplibs_check_method in
6792
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6793
{ echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6794
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6795
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6796
echo $ECHO_N "(cached) $ECHO_C" >&6
6800
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6803
lt_save_MAGIC_CMD="$MAGIC_CMD"
6804
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6805
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6806
for ac_dir in $ac_dummy; do
6808
test -z "$ac_dir" && ac_dir=.
6809
if test -f $ac_dir/${ac_tool_prefix}file; then
6810
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6811
if test -n "$file_magic_test_file"; then
6812
case $deplibs_check_method in
6814
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6815
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6816
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6817
$EGREP "$file_magic_regex" > /dev/null; then
6822
*** Warning: the command libtool uses to detect shared libraries,
6823
*** $file_magic_cmd, produces output that libtool cannot recognize.
6824
*** The result is that libtool may fail to recognize shared libraries
6825
*** as such. This will affect the creation of libtool libraries that
6826
*** depend on shared libraries, but programs linked with such libtool
6827
*** libraries will work regardless of this problem. Nevertheless, you
6828
*** may want to report the problem to your system manager and/or to
6829
*** bug-libtool@gnu.org
6839
MAGIC_CMD="$lt_save_MAGIC_CMD"
6844
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6845
if test -n "$MAGIC_CMD"; then
6846
{ echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6847
echo "${ECHO_T}$MAGIC_CMD" >&6; }
6849
{ echo "$as_me:$LINENO: result: no" >&5
6850
echo "${ECHO_T}no" >&6; }
6853
if test -z "$lt_cv_path_MAGIC_CMD"; then
6854
if test -n "$ac_tool_prefix"; then
6855
{ echo "$as_me:$LINENO: checking for file" >&5
6856
echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6857
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6858
echo $ECHO_N "(cached) $ECHO_C" >&6
6862
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6865
lt_save_MAGIC_CMD="$MAGIC_CMD"
6866
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6867
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6868
for ac_dir in $ac_dummy; do
6870
test -z "$ac_dir" && ac_dir=.
6871
if test -f $ac_dir/file; then
6872
lt_cv_path_MAGIC_CMD="$ac_dir/file"
6873
if test -n "$file_magic_test_file"; then
6874
case $deplibs_check_method in
6876
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6877
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6878
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6879
$EGREP "$file_magic_regex" > /dev/null; then
6884
*** Warning: the command libtool uses to detect shared libraries,
6885
*** $file_magic_cmd, produces output that libtool cannot recognize.
6886
*** The result is that libtool may fail to recognize shared libraries
6887
*** as such. This will affect the creation of libtool libraries that
6888
*** depend on shared libraries, but programs linked with such libtool
6889
*** libraries will work regardless of this problem. Nevertheless, you
6890
*** may want to report the problem to your system manager and/or to
6891
*** bug-libtool@gnu.org
6901
MAGIC_CMD="$lt_save_MAGIC_CMD"
6906
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6907
if test -n "$MAGIC_CMD"; then
6908
{ echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6909
echo "${ECHO_T}$MAGIC_CMD" >&6; }
6911
{ echo "$as_me:$LINENO: result: no" >&5
6912
echo "${ECHO_T}no" >&6; }
6927
# Check whether --enable-libtool-lock was given.
6928
if test "${enable_libtool_lock+set}" = set; then
6929
enableval=$enable_libtool_lock;
6932
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6935
# Check whether --with-pic was given.
6936
if test "${with_pic+set}" = set; then
6937
withval=$with_pic; pic_mode="$withval"
6942
test -z "$pic_mode" && pic_mode=default
6944
# Use C for the default configuration in the libtool script
6948
ac_cpp='$CPP $CPPFLAGS'
6949
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6950
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6951
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6954
# Source file extension for C test sources.
6957
# Object file extension for compiled C test sources.
6961
# Code to be used in simple compile tests
6962
lt_simple_compile_test_code="int some_variable = 0;\n"
6964
# Code to be used in simple link tests
6965
lt_simple_link_test_code='int main(){return(0);}\n'
6968
# If no C compiler was specified, use CC.
6971
# If no C compiler flags were specified, use CFLAGS.
6972
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6974
# Allow CC to be a program name with arguments.
6978
# save warnings/boilerplate of simple test code
6979
ac_outfile=conftest.$ac_objext
6980
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6981
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6982
_lt_compiler_boilerplate=`cat conftest.err`
6985
ac_outfile=conftest.$ac_objext
6986
printf "$lt_simple_link_test_code" >conftest.$ac_ext
6987
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6988
_lt_linker_boilerplate=`cat conftest.err`
6993
## There is no encapsulation within the following macros, do not change
6994
## the running order or otherwise move them around unless you know exactly
6995
## what you are doing...
6997
lt_prog_compiler_no_builtin_flag=
6999
if test "$GCC" = yes; then
7000
lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7003
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7004
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7005
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7006
echo $ECHO_N "(cached) $ECHO_C" >&6
7008
lt_cv_prog_compiler_rtti_exceptions=no
7009
ac_outfile=conftest.$ac_objext
7010
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7011
lt_compiler_flag="-fno-rtti -fno-exceptions"
7012
# Insert the option either (1) after the last *FLAGS variable, or
7013
# (2) before a word containing "conftest.", or (3) at the end.
7014
# Note that $ac_compile itself does not contain backslashes and begins
7015
# with a dollar sign (not a hyphen), so the echo should work correctly.
7016
# The option is referenced via a variable to avoid confusing sed.
7017
lt_compile=`echo "$ac_compile" | $SED \
7018
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7019
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7020
-e 's:$: $lt_compiler_flag:'`
7021
(eval echo "\"\$as_me:7021: $lt_compile\"" >&5)
7022
(eval "$lt_compile" 2>conftest.err)
7024
cat conftest.err >&5
7025
echo "$as_me:7025: \$? = $ac_status" >&5
7026
if (exit $ac_status) && test -s "$ac_outfile"; then
7027
# The compiler can only warn and ignore the option if not recognized
7028
# So say no if there are warnings other than the usual output.
7029
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7030
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7031
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7032
lt_cv_prog_compiler_rtti_exceptions=yes
7038
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7039
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7041
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7042
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7049
lt_prog_compiler_wl=
7050
lt_prog_compiler_pic=
7051
lt_prog_compiler_static=
7053
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7054
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7056
if test "$GCC" = yes; then
7057
lt_prog_compiler_wl='-Wl,'
7058
lt_prog_compiler_static='-static'
7062
# All AIX code is PIC.
7063
if test "$host_cpu" = ia64; then
7064
# AIX 5 now supports IA64 processor
7065
lt_prog_compiler_static='-Bstatic'
7070
# FIXME: we need at least 68020 code to build shared libraries, but
7071
# adding the `-m68020' flag to GCC prevents building anything better,
7073
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7076
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7077
# PIC is the default for these OSes.
7080
mingw* | pw32* | os2*)
7081
# This hack is so that the source file can tell whether it is being
7082
# built for inclusion in a dll (and should export symbols for example).
7083
lt_prog_compiler_pic='-DDLL_EXPORT'
7086
darwin* | rhapsody*)
7087
# PIC is the default on this platform
7088
# Common symbols not allowed in MH_DYLIB files
7089
lt_prog_compiler_pic='-fno-common'
7093
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
7094
# Instead, we relocate shared libraries at runtime.
7098
# Just because we use GCC doesn't mean we suddenly get shared libraries
7099
# on systems that don't support them.
7100
lt_prog_compiler_can_build_shared=no
7105
if test -d /usr/nec; then
7106
lt_prog_compiler_pic=-Kconform_pic
7111
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7118
lt_prog_compiler_pic='-fPIC'
7124
lt_prog_compiler_pic='-fPIC'
7128
# PORTME Check for flag to pass linker flags through the system compiler.
7131
lt_prog_compiler_wl='-Wl,'
7132
if test "$host_cpu" = ia64; then
7133
# AIX 5 now supports IA64 processor
7134
lt_prog_compiler_static='-Bstatic'
7136
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7140
# PIC is the default on this platform
7141
# Common symbols not allowed in MH_DYLIB files
7142
case $cc_basename in
7144
lt_prog_compiler_pic='-qnocommon'
7145
lt_prog_compiler_wl='-Wl,'
7150
mingw* | pw32* | os2*)
7151
# This hack is so that the source file can tell whether it is being
7152
# built for inclusion in a dll (and should export symbols for example).
7153
lt_prog_compiler_pic='-DDLL_EXPORT'
7156
hpux9* | hpux10* | hpux11*)
7157
lt_prog_compiler_wl='-Wl,'
7158
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7165
lt_prog_compiler_pic='+Z'
7168
# Is there a better lt_prog_compiler_static that works with the bundled CC?
7169
lt_prog_compiler_static='${wl}-a ${wl}archive'
7172
irix5* | irix6* | nonstopux*)
7173
lt_prog_compiler_wl='-Wl,'
7174
# PIC (with -KPIC) is the default.
7175
lt_prog_compiler_static='-non_shared'
7179
lt_prog_compiler_pic='-KPIC'
7180
lt_prog_compiler_static='-Bstatic'
7184
case $cc_basename in
7186
lt_prog_compiler_wl='-Wl,'
7187
lt_prog_compiler_pic='-KPIC'
7188
lt_prog_compiler_static='-static'
7190
pgcc* | pgf77* | pgf90* | pgf95*)
7191
# Portland Group compilers (*not* the Pentium gcc compiler,
7192
# which looks to be a dead project)
7193
lt_prog_compiler_wl='-Wl,'
7194
lt_prog_compiler_pic='-fpic'
7195
lt_prog_compiler_static='-Bstatic'
7198
lt_prog_compiler_wl='-Wl,'
7199
# All Alpha code is PIC.
7200
lt_prog_compiler_static='-non_shared'
7205
osf3* | osf4* | osf5*)
7206
lt_prog_compiler_wl='-Wl,'
7207
# All OSF/1 code is PIC.
7208
lt_prog_compiler_static='-non_shared'
7212
lt_prog_compiler_pic='-KPIC'
7213
lt_prog_compiler_static='-Bstatic'
7214
case $cc_basename in
7216
lt_prog_compiler_wl='-Qoption ld ';;
7218
lt_prog_compiler_wl='-Wl,';;
7223
lt_prog_compiler_wl='-Qoption ld '
7224
lt_prog_compiler_pic='-PIC'
7225
lt_prog_compiler_static='-Bstatic'
7228
sysv4 | sysv4.2uw2* | sysv4.3*)
7229
lt_prog_compiler_wl='-Wl,'
7230
lt_prog_compiler_pic='-KPIC'
7231
lt_prog_compiler_static='-Bstatic'
7235
if test -d /usr/nec ;then
7236
lt_prog_compiler_pic='-Kconform_pic'
7237
lt_prog_compiler_static='-Bstatic'
7241
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7242
lt_prog_compiler_wl='-Wl,'
7243
lt_prog_compiler_pic='-KPIC'
7244
lt_prog_compiler_static='-Bstatic'
7248
lt_prog_compiler_wl='-Wl,'
7249
lt_prog_compiler_can_build_shared=no
7253
lt_prog_compiler_pic='-pic'
7254
lt_prog_compiler_static='-Bstatic'
7258
lt_prog_compiler_can_build_shared=no
7263
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7264
echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7267
# Check to make sure the PIC flag actually works.
7269
if test -n "$lt_prog_compiler_pic"; then
7271
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7272
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7273
if test "${lt_prog_compiler_pic_works+set}" = set; then
7274
echo $ECHO_N "(cached) $ECHO_C" >&6
7276
lt_prog_compiler_pic_works=no
7277
ac_outfile=conftest.$ac_objext
7278
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7279
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7280
# Insert the option either (1) after the last *FLAGS variable, or
7281
# (2) before a word containing "conftest.", or (3) at the end.
7282
# Note that $ac_compile itself does not contain backslashes and begins
7283
# with a dollar sign (not a hyphen), so the echo should work correctly.
7284
# The option is referenced via a variable to avoid confusing sed.
7285
lt_compile=`echo "$ac_compile" | $SED \
7286
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7287
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7288
-e 's:$: $lt_compiler_flag:'`
7289
(eval echo "\"\$as_me:7289: $lt_compile\"" >&5)
7290
(eval "$lt_compile" 2>conftest.err)
7292
cat conftest.err >&5
7293
echo "$as_me:7293: \$? = $ac_status" >&5
7294
if (exit $ac_status) && test -s "$ac_outfile"; then
7295
# The compiler can only warn and ignore the option if not recognized
7296
# So say no if there are warnings other than the usual output.
7297
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7298
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7299
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7300
lt_prog_compiler_pic_works=yes
7306
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7307
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7309
if test x"$lt_prog_compiler_pic_works" = xyes; then
7310
case $lt_prog_compiler_pic in
7312
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7315
lt_prog_compiler_pic=
7316
lt_prog_compiler_can_build_shared=no
7321
# For platforms which do not support PIC, -DPIC is meaningless:
7323
lt_prog_compiler_pic=
7326
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7331
# Check to make sure the static flag actually works.
7333
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7334
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7335
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7336
if test "${lt_prog_compiler_static_works+set}" = set; then
7337
echo $ECHO_N "(cached) $ECHO_C" >&6
7339
lt_prog_compiler_static_works=no
7340
save_LDFLAGS="$LDFLAGS"
7341
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7342
printf "$lt_simple_link_test_code" > conftest.$ac_ext
7343
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7344
# The linker can only warn and ignore the option if not recognized
7345
# So say no if there are warnings
7346
if test -s conftest.err; then
7347
# Append any errors to the config.log.
7348
cat conftest.err 1>&5
7349
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7350
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7351
if diff conftest.exp conftest.er2 >/dev/null; then
7352
lt_prog_compiler_static_works=yes
7355
lt_prog_compiler_static_works=yes
7359
LDFLAGS="$save_LDFLAGS"
7362
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7363
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7365
if test x"$lt_prog_compiler_static_works" = xyes; then
7368
lt_prog_compiler_static=
7372
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7373
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7374
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7375
echo $ECHO_N "(cached) $ECHO_C" >&6
7377
lt_cv_prog_compiler_c_o=no
7378
$rm -r conftest 2>/dev/null
7382
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7384
lt_compiler_flag="-o out/conftest2.$ac_objext"
7385
# Insert the option either (1) after the last *FLAGS variable, or
7386
# (2) before a word containing "conftest.", or (3) at the end.
7387
# Note that $ac_compile itself does not contain backslashes and begins
7388
# with a dollar sign (not a hyphen), so the echo should work correctly.
7389
lt_compile=`echo "$ac_compile" | $SED \
7390
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7391
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7392
-e 's:$: $lt_compiler_flag:'`
7393
(eval echo "\"\$as_me:7393: $lt_compile\"" >&5)
7394
(eval "$lt_compile" 2>out/conftest.err)
7396
cat out/conftest.err >&5
7397
echo "$as_me:7397: \$? = $ac_status" >&5
7398
if (exit $ac_status) && test -s out/conftest2.$ac_objext
7400
# The compiler can only warn and ignore the option if not recognized
7401
# So say no if there are warnings
7402
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7403
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7404
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7405
lt_cv_prog_compiler_c_o=yes
7410
# SGI C++ compiler will create directory out/ii_files/ for
7411
# template instantiation
7412
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7413
$rm out/* && rmdir out
7419
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7420
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7423
hard_links="nottested"
7424
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7425
# do not overwrite the value of need_locks provided by the user
7426
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7427
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7430
ln conftest.a conftest.b 2>/dev/null && hard_links=no
7432
ln conftest.a conftest.b 2>&5 || hard_links=no
7433
ln conftest.a conftest.b 2>/dev/null && hard_links=no
7434
{ echo "$as_me:$LINENO: result: $hard_links" >&5
7435
echo "${ECHO_T}$hard_links" >&6; }
7436
if test "$hard_links" = no; then
7437
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7438
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7445
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7446
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7449
allow_undefined_flag=
7450
enable_shared_with_static_runtimes=no
7452
archive_expsym_cmds=
7453
old_archive_From_new_cmds=
7454
old_archive_from_expsyms_cmds=
7455
export_dynamic_flag_spec=
7456
whole_archive_flag_spec=
7457
thread_safe_flag_spec=
7458
hardcode_libdir_flag_spec=
7459
hardcode_libdir_flag_spec_ld=
7460
hardcode_libdir_separator=
7463
hardcode_shlibpath_var=unsupported
7464
link_all_deplibs=unknown
7465
hardcode_automatic=no
7468
always_export_symbols=no
7469
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7470
# include_expsyms should be a list of space-separated symbols to be *always*
7471
# included in the symbol list
7473
# exclude_expsyms can be an extended regexp of symbols to exclude
7474
# it will be wrapped by ` (' and `)$', so one must not match beginning or
7475
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7476
# as well as any symbol that contains `d'.
7477
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7478
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7479
# platforms (ab)use it in PIC code, but their linkers get confused if
7480
# the symbol is explicitly referenced. Since portable code cannot
7481
# rely on this symbol name, it's probably fine to never include it in
7482
# preloaded symbol tables.
7483
extract_expsyms_cmds=
7484
# Just being paranoid about ensuring that cc_basename is set.
7485
for cc_temp in $compiler""; do
7487
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7488
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7493
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7496
cygwin* | mingw* | pw32*)
7497
# FIXME: the MSVC++ port hasn't been tested in a loooong time
7498
# When not using gcc, we currently assume that we are using
7499
# Microsoft Visual C++.
7500
if test "$GCC" != yes; then
7505
# we just hope/assume this is gcc and not c89 (= MSVC++)
7514
if test "$with_gnu_ld" = yes; then
7515
# If archive_cmds runs LD, not CC, wlarc should be empty
7518
# Set some defaults for GNU ld with shared library support. These
7519
# are reset later if shared libraries are not supported. Putting them
7520
# here allows them to be overridden if necessary.
7521
runpath_var=LD_RUN_PATH
7522
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7523
export_dynamic_flag_spec='${wl}--export-dynamic'
7524
# ancient GNU ld didn't support --whole-archive et. al.
7525
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7526
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7528
whole_archive_flag_spec=
7530
supports_anon_versioning=no
7531
case `$LD -v 2>/dev/null` in
7532
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7533
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7534
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7535
*\ 2.11.*) ;; # other 2.11 versions
7536
*) supports_anon_versioning=yes ;;
7539
# See if GNU ld supports shared libraries.
7541
aix3* | aix4* | aix5*)
7542
# On AIX/PPC, the GNU linker is very broken
7543
if test "$host_cpu" != ia64; then
7547
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7548
*** to be unable to reliably create shared libraries on AIX.
7549
*** Therefore, libtool is disabling shared libraries support. If you
7550
*** really care for shared libraries, you may want to modify your PATH
7551
*** so that a non-GNU linker is found, and then restart.
7558
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)'
7559
hardcode_libdir_flag_spec='-L$libdir'
7560
hardcode_minus_L=yes
7562
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7563
# that the semantics of dynamic libraries on AmigaOS, at least up
7564
# to version 4, is to share data among multiple programs linked
7565
# with the same dynamic library. Since this doesn't match the
7566
# behavior of shared libraries on other platforms, we can't use
7572
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7573
allow_undefined_flag=unsupported
7574
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7575
# support --undefined. This deserves some investigation. FIXME
7576
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7582
cygwin* | mingw* | pw32*)
7583
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7584
# as there is no search path for DLLs.
7585
hardcode_libdir_flag_spec='-L$libdir'
7586
allow_undefined_flag=unsupported
7587
always_export_symbols=no
7588
enable_shared_with_static_runtimes=yes
7589
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7591
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7592
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7593
# If the export-symbols file already is a .def file (1st line
7594
# is EXPORTS), use it as is; otherwise, prepend...
7595
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7596
cp $export_symbols $output_objdir/$soname.def;
7598
echo EXPORTS > $output_objdir/$soname.def;
7599
cat $export_symbols >> $output_objdir/$soname.def;
7601
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7609
hardcode_shlibpath_var=no
7610
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7611
export_dynamic_flag_spec='${wl}-E'
7612
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7613
# Instead, shared libraries are loaded at an image base (0x10000000 by
7614
# default) and relocated if they conflict, which is a slow very memory
7615
# consuming and fragmenting process. To avoid this, we pick a random,
7616
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7617
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
7618
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7619
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'
7623
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7625
case $cc_basename,$host_cpu in
7626
pgcc*) # Portland Group C compiler
7627
whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7628
tmp_addflag=' $pic_flag'
7630
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7631
whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7632
tmp_addflag=' $pic_flag -Mnomain' ;;
7633
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7634
tmp_addflag=' -i_dynamic' ;;
7635
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7636
tmp_addflag=' -i_dynamic -nofor_main' ;;
7637
ifc* | ifort*) # Intel Fortran compiler
7638
tmp_addflag=' -nofor_main' ;;
7640
archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7642
if test $supports_anon_versioning = yes; then
7643
archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7644
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7645
$echo "local: *; };" >> $output_objdir/$libname.ver~
7646
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7654
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7655
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7658
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7659
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7664
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7668
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7669
*** create shared libraries on Solaris systems. Therefore, libtool
7670
*** is disabling shared libraries support. We urge you to upgrade GNU
7671
*** binutils to release 2.9.1 or newer. Another option is to modify
7672
*** your PATH or compiler configuration so that the native linker is
7673
*** used, and then restart.
7676
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7677
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7678
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7684
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7685
case `$LD -v 2>&1` in
7686
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7690
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7691
*** reliably create shared libraries on SCO systems. Therefore, libtool
7692
*** is disabling shared libraries support. We urge you to upgrade GNU
7693
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7694
*** your PATH or compiler configuration so that the native linker is
7695
*** used, and then restart.
7700
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7701
hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7702
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7703
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7712
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7715
hardcode_shlibpath_var=no
7719
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7720
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7721
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7728
if test "$ld_shlibs" = no; then
7730
hardcode_libdir_flag_spec=
7731
export_dynamic_flag_spec=
7732
whole_archive_flag_spec=
7735
# PORTME fill in a description of your system's linker (not GNU ld)
7738
allow_undefined_flag=unsupported
7739
always_export_symbols=yes
7740
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'
7741
# Note: this linker hardcodes the directories in LIBPATH if there
7742
# are no directories specified by -L.
7743
hardcode_minus_L=yes
7744
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7745
# Neither direct hardcoding nor static linking is supported with a
7747
hardcode_direct=unsupported
7752
if test "$host_cpu" = ia64; then
7753
# On IA64, the linker does run time linking by default, so we don't
7754
# have to do anything special.
7755
aix_use_runtimelinking=no
7756
exp_sym_flag='-Bexport'
7759
# If we're using GNU nm, then we don't want the "-C" option.
7760
# -C means demangle to AIX nm, but means don't demangle with GNU nm
7761
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7762
export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
7764
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'
7766
aix_use_runtimelinking=no
7768
# Test if we are trying to use run time linking or normal
7769
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
7770
# need to do runtime linking.
7771
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7772
for ld_flag in $LDFLAGS; do
7773
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7774
aix_use_runtimelinking=yes
7781
exp_sym_flag='-bexport'
7782
no_entry_flag='-bnoentry'
7785
# When large executables or shared objects are built, AIX ld can
7786
# have problems creating the table of contents. If linking a library
7787
# or program results in "error TOC overflow" add -mminimal-toc to
7788
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7789
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7793
hardcode_libdir_separator=':'
7794
link_all_deplibs=yes
7796
if test "$GCC" = yes; then
7797
case $host_os in aix4.[012]|aix4.[012].*)
7798
# We only want to do this on AIX 4.2 and lower, the check
7799
# below for broken collect2 doesn't work under 4.3+
7800
collect2name=`${CC} -print-prog-name=collect2`
7801
if test -f "$collect2name" && \
7802
strings "$collect2name" | grep resolve_lib_name >/dev/null
7804
# We have reworked collect2
7807
# We have old collect2
7808
hardcode_direct=unsupported
7809
# It fails to find uninstalled libraries when the uninstalled
7810
# path is not listed in the libpath. Setting hardcode_minus_L
7811
# to unsupported forces relinking
7812
hardcode_minus_L=yes
7813
hardcode_libdir_flag_spec='-L$libdir'
7814
hardcode_libdir_separator=
7818
shared_flag='-shared'
7819
if test "$aix_use_runtimelinking" = yes; then
7820
shared_flag="$shared_flag "'${wl}-G'
7824
if test "$host_cpu" = ia64; then
7825
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7826
# chokes on -Wl,-G. The following line is correct:
7829
if test "$aix_use_runtimelinking" = yes; then
7830
shared_flag='${wl}-G'
7832
shared_flag='${wl}-bM:SRE'
7837
# It seems that -bexpall does not export symbols beginning with
7838
# underscore (_), so it is better to generate a list of symbols to export.
7839
always_export_symbols=yes
7840
if test "$aix_use_runtimelinking" = yes; then
7841
# Warning - without using the other runtime loading flags (-brtl),
7842
# -berok will link without error, but may produce a broken library.
7843
allow_undefined_flag='-berok'
7844
# Determine the default libpath from the value encoded in an empty executable.
7845
cat >conftest.$ac_ext <<_ACEOF
7848
cat confdefs.h >>conftest.$ac_ext
7849
cat >>conftest.$ac_ext <<_ACEOF
7850
/* end confdefs.h. */
7860
rm -f conftest.$ac_objext conftest$ac_exeext
7861
if { (ac_try="$ac_link"
7863
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7864
*) ac_try_echo=$ac_try;;
7866
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7867
(eval "$ac_link") 2>conftest.er1
7869
grep -v '^ *+' conftest.er1 >conftest.err
7871
cat conftest.err >&5
7872
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7873
(exit $ac_status); } &&
7874
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7875
{ (case "(($ac_try" in
7876
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7877
*) ac_try_echo=$ac_try;;
7879
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7880
(eval "$ac_try") 2>&5
7882
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7883
(exit $ac_status); }; } &&
7884
{ ac_try='test -s conftest$ac_exeext'
7885
{ (case "(($ac_try" in
7886
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7887
*) ac_try_echo=$ac_try;;
7889
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7890
(eval "$ac_try") 2>&5
7892
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7893
(exit $ac_status); }; }; then
7895
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7897
# Check for a 64-bit object if we didn't find anything.
7898
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7901
echo "$as_me: failed program was:" >&5
7902
sed 's/^/| /' conftest.$ac_ext >&5
7907
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7908
conftest$ac_exeext conftest.$ac_ext
7909
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7911
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7912
archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7914
if test "$host_cpu" = ia64; then
7915
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7916
allow_undefined_flag="-z nodefs"
7917
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"
7919
# Determine the default libpath from the value encoded in an empty executable.
7920
cat >conftest.$ac_ext <<_ACEOF
7923
cat confdefs.h >>conftest.$ac_ext
7924
cat >>conftest.$ac_ext <<_ACEOF
7925
/* end confdefs.h. */
7935
rm -f conftest.$ac_objext conftest$ac_exeext
7936
if { (ac_try="$ac_link"
7938
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7939
*) ac_try_echo=$ac_try;;
7941
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7942
(eval "$ac_link") 2>conftest.er1
7944
grep -v '^ *+' conftest.er1 >conftest.err
7946
cat conftest.err >&5
7947
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7948
(exit $ac_status); } &&
7949
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7950
{ (case "(($ac_try" in
7951
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7952
*) ac_try_echo=$ac_try;;
7954
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7955
(eval "$ac_try") 2>&5
7957
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7958
(exit $ac_status); }; } &&
7959
{ ac_try='test -s conftest$ac_exeext'
7960
{ (case "(($ac_try" in
7961
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7962
*) ac_try_echo=$ac_try;;
7964
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7965
(eval "$ac_try") 2>&5
7967
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968
(exit $ac_status); }; }; then
7970
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7972
# Check for a 64-bit object if we didn't find anything.
7973
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7976
echo "$as_me: failed program was:" >&5
7977
sed 's/^/| /' conftest.$ac_ext >&5
7982
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7983
conftest$ac_exeext conftest.$ac_ext
7984
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7986
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7987
# Warning - without using the other run time loading flags,
7988
# -berok will link without error, but may produce a broken library.
7989
no_undefined_flag=' ${wl}-bernotok'
7990
allow_undefined_flag=' ${wl}-berok'
7991
# Exported symbols can be pulled into shared objects from archives
7992
whole_archive_flag_spec='$convenience'
7993
archive_cmds_need_lc=yes
7994
# This is similar to how AIX traditionally builds its shared libraries.
7995
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'
8001
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)'
8002
hardcode_libdir_flag_spec='-L$libdir'
8003
hardcode_minus_L=yes
8004
# see comment about different semantics on the GNU ld section
8009
export_dynamic_flag_spec=-rdynamic
8012
cygwin* | mingw* | pw32*)
8013
# When not using gcc, we currently assume that we are using
8014
# Microsoft Visual C++.
8015
# hardcode_libdir_flag_spec is actually meaningless, as there is
8016
# no search path for DLLs.
8017
hardcode_libdir_flag_spec=' '
8018
allow_undefined_flag=unsupported
8019
# Tell ltmain to make .lib files, not .a files.
8021
# Tell ltmain to make .dll files, not .so files.
8023
# FIXME: Setting linknames here is a bad hack.
8024
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8025
# The linker will automatically build a .lib file if we build a DLL.
8026
old_archive_From_new_cmds='true'
8027
# FIXME: Should let the user specify the lib program.
8028
old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8029
fix_srcfile_path='`cygpath -w "$srcfile"`'
8030
enable_shared_with_static_runtimes=yes
8033
darwin* | rhapsody*)
8035
rhapsody* | darwin1.[012])
8036
allow_undefined_flag='${wl}-undefined ${wl}suppress'
8039
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8040
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8042
case ${MACOSX_DEPLOYMENT_TARGET} in
8044
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8047
allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8053
archive_cmds_need_lc=no
8055
hardcode_automatic=yes
8056
hardcode_shlibpath_var=unsupported
8057
whole_archive_flag_spec=''
8058
link_all_deplibs=yes
8059
if test "$GCC" = yes ; then
8060
output_verbose_link_cmd='echo'
8061
archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8062
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8063
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8064
archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8065
module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8067
case $cc_basename in
8069
output_verbose_link_cmd='echo'
8070
archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8071
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8072
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8073
archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8074
module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8084
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8085
hardcode_libdir_flag_spec='-L$libdir'
8086
hardcode_shlibpath_var=no
8093
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8094
# support. Future versions do this automatically, but an explicit c++rt0.o
8095
# does not break anything, and helps significantly (at the cost of a little
8098
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8099
hardcode_libdir_flag_spec='-R$libdir'
8101
hardcode_shlibpath_var=no
8104
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
8106
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8108
hardcode_minus_L=yes
8109
hardcode_shlibpath_var=no
8112
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8113
freebsd* | kfreebsd*-gnu | dragonfly*)
8114
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8115
hardcode_libdir_flag_spec='-R$libdir'
8117
hardcode_shlibpath_var=no
8121
if test "$GCC" = yes; then
8122
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'
8124
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'
8126
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8127
hardcode_libdir_separator=:
8130
# hardcode_minus_L: Not really in the search PATH,
8131
# but as the default location of the library.
8132
hardcode_minus_L=yes
8133
export_dynamic_flag_spec='${wl}-E'
8137
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8138
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8140
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8142
if test "$with_gnu_ld" = no; then
8143
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8144
hardcode_libdir_separator=:
8147
export_dynamic_flag_spec='${wl}-E'
8149
# hardcode_minus_L: Not really in the search PATH,
8150
# but as the default location of the library.
8151
hardcode_minus_L=yes
8156
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8159
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8162
archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8165
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8171
archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8174
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8177
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8181
if test "$with_gnu_ld" = no; then
8182
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8183
hardcode_libdir_separator=:
8187
hardcode_libdir_flag_spec_ld='+b $libdir'
8189
hardcode_shlibpath_var=no
8193
export_dynamic_flag_spec='${wl}-E'
8195
# hardcode_minus_L: Not really in the search PATH,
8196
# but as the default location of the library.
8197
hardcode_minus_L=yes
8203
irix5* | irix6* | nonstopux*)
8204
if test "$GCC" = yes; then
8205
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8207
archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8208
hardcode_libdir_flag_spec_ld='-rpath $libdir'
8210
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8211
hardcode_libdir_separator=:
8212
link_all_deplibs=yes
8216
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8217
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8219
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8221
hardcode_libdir_flag_spec='-R$libdir'
8223
hardcode_shlibpath_var=no
8227
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8229
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8230
hardcode_libdir_separator=:
8231
hardcode_shlibpath_var=no
8236
hardcode_shlibpath_var=no
8237
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8238
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8239
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8240
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8241
export_dynamic_flag_spec='${wl}-E'
8244
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8245
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8246
hardcode_libdir_flag_spec='-R$libdir'
8249
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8250
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8257
hardcode_libdir_flag_spec='-L$libdir'
8258
hardcode_minus_L=yes
8259
allow_undefined_flag=unsupported
8260
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'
8261
old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8265
if test "$GCC" = yes; then
8266
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8267
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8269
allow_undefined_flag=' -expect_unresolved \*'
8270
archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8272
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8273
hardcode_libdir_separator=:
8276
osf4* | osf5*) # as osf3* with the addition of -msym flag
8277
if test "$GCC" = yes; then
8278
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8279
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8280
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8282
allow_undefined_flag=' -expect_unresolved \*'
8283
archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8284
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8285
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8287
# Both c and cxx compiler support -rpath directly
8288
hardcode_libdir_flag_spec='-rpath $libdir'
8290
hardcode_libdir_separator=:
8294
no_undefined_flag=' -z text'
8295
if test "$GCC" = yes; then
8297
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8298
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8299
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8302
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8303
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8304
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8306
hardcode_libdir_flag_spec='-R$libdir'
8307
hardcode_shlibpath_var=no
8309
solaris2.[0-5] | solaris2.[0-5].*) ;;
8311
# The compiler driver will combine linker options so we
8312
# cannot just pass the convience library names through
8313
# without $wl, iff we do not link with $LD.
8314
# Luckily, gcc supports the same syntax we need for Sun Studio.
8315
# Supported since Solaris 2.6 (maybe 2.5.1?)
8318
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8320
whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8323
link_all_deplibs=yes
8327
if test "x$host_vendor" = xsequent; then
8328
# Use $CC to link under sequent, because it throws in some extra .o
8329
# files that make .init and .fini sections work.
8330
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8332
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8334
hardcode_libdir_flag_spec='-L$libdir'
8336
hardcode_minus_L=yes
8337
hardcode_shlibpath_var=no
8341
case $host_vendor in
8343
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8344
hardcode_direct=yes # is this really true???
8347
## LD is ld it makes a PLAMLIB
8348
## CC just makes a GrossModule.
8349
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8350
reload_cmds='$CC -r -o $output$reload_objs'
8354
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8355
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8358
runpath_var='LD_RUN_PATH'
8359
hardcode_shlibpath_var=no
8363
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8364
hardcode_shlibpath_var=no
8365
export_dynamic_flag_spec='-Bexport'
8369
if test -d /usr/nec; then
8370
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8371
hardcode_shlibpath_var=no
8372
runpath_var=LD_RUN_PATH
8373
hardcode_runpath_var=yes
8378
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8379
no_undefined_flag='${wl}-z,text'
8380
archive_cmds_need_lc=no
8381
hardcode_shlibpath_var=no
8382
runpath_var='LD_RUN_PATH'
8384
if test "$GCC" = yes; then
8385
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8386
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8388
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8389
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8393
sysv5* | sco3.2v5* | sco5v6*)
8394
# Note: We can NOT use -z defs as we might desire, because we do not
8395
# link with -lc, and that would cause any symbols used from libc to
8396
# always be unresolved, which means just about no library would
8397
# ever link correctly. If we're not using GNU ld we use -z text
8398
# though, which does catch some bad symbols but isn't as heavy-handed
8400
no_undefined_flag='${wl}-z,text'
8401
allow_undefined_flag='${wl}-z,nodefs'
8402
archive_cmds_need_lc=no
8403
hardcode_shlibpath_var=no
8404
hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8405
hardcode_libdir_separator=':'
8406
link_all_deplibs=yes
8407
export_dynamic_flag_spec='${wl}-Bexport'
8408
runpath_var='LD_RUN_PATH'
8410
if test "$GCC" = yes; then
8411
archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8412
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8414
archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8415
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8420
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8421
hardcode_libdir_flag_spec='-L$libdir'
8422
hardcode_shlibpath_var=no
8431
{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8432
echo "${ECHO_T}$ld_shlibs" >&6; }
8433
test "$ld_shlibs" = no && can_build_shared=no
8436
# Do we need to explicitly link libc?
8438
case "x$archive_cmds_need_lc" in
8440
# Assume -lc should be added
8441
archive_cmds_need_lc=yes
8443
if test "$enable_shared" = yes && test "$GCC" = yes; then
8444
case $archive_cmds in
8446
# FIXME: we may have to deal with multi-command sequences.
8449
# Test whether the compiler implicitly links with -lc since on some
8450
# systems, -lgcc has to come before -lc. If gcc already passes -lc
8451
# to ld, don't add -lc before -lgcc.
8452
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8453
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8455
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8457
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8458
(eval $ac_compile) 2>&5
8460
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461
(exit $ac_status); } 2>conftest.err; then
8464
libobjs=conftest.$ac_objext
8466
wl=$lt_prog_compiler_wl
8467
pic_flag=$lt_prog_compiler_pic
8473
lt_save_allow_undefined_flag=$allow_undefined_flag
8474
allow_undefined_flag=
8475
if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8476
(eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8478
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8479
(exit $ac_status); }
8481
archive_cmds_need_lc=no
8483
archive_cmds_need_lc=yes
8485
allow_undefined_flag=$lt_save_allow_undefined_flag
8487
cat conftest.err 1>&5
8490
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8491
echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8498
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8499
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8501
libname_spec='lib$name'
8509
shlibpath_overrides_runpath=unknown
8511
dynamic_linker="$host_os ld.so"
8512
sys_lib_dlsearch_path_spec="/lib /usr/lib"
8513
if test "$GCC" = yes; then
8514
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8515
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8516
# if the path contains ";" then we assume it to be the separator
8517
# otherwise default to the standard path separator (i.e. ":") - it is
8518
# assumed that no part of a normal pathname contains ";" but that should
8519
# okay in the real world where ";" in dirpaths is itself problematic.
8520
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8522
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8525
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8527
need_lib_prefix=unknown
8528
hardcode_into_libs=no
8530
# when you set need_version to no, make sure it does not cause -set_version
8531
# flags to be left without arguments
8532
need_version=unknown
8537
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8538
shlibpath_var=LIBPATH
8540
# AIX 3 has no versioning support, so we append a major version to the name.
8541
soname_spec='${libname}${release}${shared_ext}$major'
8548
hardcode_into_libs=yes
8549
if test "$host_cpu" = ia64; then
8550
# AIX 5 supports IA64
8551
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8552
shlibpath_var=LD_LIBRARY_PATH
8554
# With GCC up to 2.95.x, collect2 would create an import file
8555
# for dependence libraries. The import file would start with
8556
# the line `#! .'. This would cause the generated library to
8557
# depend on `.', always an invalid library. This was fixed in
8558
# development snapshots of GCC prior to 3.0.
8560
aix4 | aix4.[01] | aix4.[01].*)
8561
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8563
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8570
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8571
# soname into executable. Probably we can add versioning support to
8572
# collect2, so additional links can be useful in future.
8573
if test "$aix_use_runtimelinking" = yes; then
8574
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
8575
# instead of lib<name>.a to let people know that these are not
8576
# typical AIX shared libraries.
8577
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8579
# We preserve .a as extension for shared libraries through AIX4.2
8580
# and later when we are not doing run time linking.
8581
library_names_spec='${libname}${release}.a $libname.a'
8582
soname_spec='${libname}${release}${shared_ext}$major'
8584
shlibpath_var=LIBPATH
8589
library_names_spec='$libname.ixlibrary $libname.a'
8590
# Create ${libname}_ixlibrary.a entries in /sys/libs.
8591
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
8595
library_names_spec='${libname}${shared_ext}'
8596
dynamic_linker="$host_os ld.so"
8597
shlibpath_var=LIBRARY_PATH
8603
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8604
soname_spec='${libname}${release}${shared_ext}$major'
8605
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8606
shlibpath_var=LD_LIBRARY_PATH
8607
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8608
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8609
# the default ld.so.conf also contains /usr/contrib/lib and
8610
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8611
# libtool to hard-code these into programs
8614
cygwin* | mingw* | pw32*)
8615
version_type=windows
8620
case $GCC,$host_os in
8621
yes,cygwin* | yes,mingw* | yes,pw32*)
8622
library_names_spec='$libname.dll.a'
8623
# DLL is installed to $(libdir)/../bin by postinstall_cmds
8624
postinstall_cmds='base_file=`basename \${file}`~
8625
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8626
dldir=$destdir/`dirname \$dlpath`~
8627
test -d \$dldir || mkdir -p \$dldir~
8628
$install_prog $dir/$dlname \$dldir/$dlname~
8629
chmod a+x \$dldir/$dlname'
8630
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8631
dlpath=$dir/\$dldll~
8633
shlibpath_overrides_runpath=yes
8637
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
8638
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8639
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8642
# MinGW DLLs use traditional 'lib' prefix
8643
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8644
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8645
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8646
# It is most probably a Windows format PATH printed by
8647
# mingw gcc, but we are running on Cygwin. Gcc prints its search
8648
# path with ; separators, and with drive letters. We can handle the
8649
# drive letters (cygwin fileutils understands them), so leave them,
8650
# especially as we might pass files found there to a mingw objdump,
8651
# which wouldn't understand a cygwinified path. Ahh.
8652
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8654
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8658
# pw32 DLLs use 'pw' prefix rather than 'lib'
8659
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8665
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8668
dynamic_linker='Win32 ld.exe'
8669
# FIXME: first we should search . and the directory the executable is in
8673
darwin* | rhapsody*)
8674
dynamic_linker="$host_os dyld"
8678
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8679
soname_spec='${libname}${release}${major}$shared_ext'
8680
shlibpath_overrides_runpath=yes
8681
shlibpath_var=DYLD_LIBRARY_PATH
8682
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8683
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8684
if test "$GCC" = yes; then
8685
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8687
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8689
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8696
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8697
soname_spec='${libname}${release}${shared_ext}$major'
8698
shlibpath_var=LD_LIBRARY_PATH
8709
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8710
soname_spec='${libname}${release}${shared_ext}$major'
8711
shlibpath_var=LD_LIBRARY_PATH
8712
shlibpath_overrides_runpath=no
8713
hardcode_into_libs=yes
8714
dynamic_linker='GNU ld.so'
8717
freebsd* | dragonfly*)
8718
# DragonFly does not have aout. When/if they implement a new
8719
# versioning mechanism, adjust this.
8720
if test -x /usr/bin/objformat; then
8721
objformat=`/usr/bin/objformat`
8724
freebsd[123]*) objformat=aout ;;
8728
version_type=freebsd-$objformat
8729
case $version_type in
8731
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8736
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8740
shlibpath_var=LD_LIBRARY_PATH
8743
shlibpath_overrides_runpath=yes
8745
freebsd3.[01]* | freebsdelf3.[01]*)
8746
shlibpath_overrides_runpath=yes
8747
hardcode_into_libs=yes
8749
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8750
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8751
shlibpath_overrides_runpath=no
8752
hardcode_into_libs=yes
8754
freebsd*) # from 4.6 on
8755
shlibpath_overrides_runpath=yes
8756
hardcode_into_libs=yes
8765
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8766
soname_spec='${libname}${release}${shared_ext}$major'
8767
shlibpath_var=LD_LIBRARY_PATH
8768
hardcode_into_libs=yes
8771
hpux9* | hpux10* | hpux11*)
8772
# Give a soname corresponding to the major version so that dld.sl refuses to
8773
# link against other versions.
8780
hardcode_into_libs=yes
8781
dynamic_linker="$host_os dld.so"
8782
shlibpath_var=LD_LIBRARY_PATH
8783
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8784
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8785
soname_spec='${libname}${release}${shared_ext}$major'
8786
if test "X$HPUX_IA64_MODE" = X32; then
8787
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8789
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8791
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8795
hardcode_into_libs=yes
8796
dynamic_linker="$host_os dld.sl"
8797
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8798
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8799
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8800
soname_spec='${libname}${release}${shared_ext}$major'
8801
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8802
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8806
dynamic_linker="$host_os dld.sl"
8807
shlibpath_var=SHLIB_PATH
8808
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8809
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8810
soname_spec='${libname}${release}${shared_ext}$major'
8813
# HP-UX runs *really* slowly unless shared libraries are mode 555.
8814
postinstall_cmds='chmod 555 $lib'
8821
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8822
soname_spec='${libname}${release}${shared_ext}$major'
8823
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8824
shlibpath_var=LD_LIBRARY_PATH
8825
shlibpath_overrides_runpath=no
8826
hardcode_into_libs=yes
8829
irix5* | irix6* | nonstopux*)
8831
nonstopux*) version_type=nonstopux ;;
8833
if test "$lt_cv_prog_gnu_ld" = yes; then
8841
soname_spec='${libname}${release}${shared_ext}$major'
8842
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8844
irix5* | nonstopux*)
8848
case $LD in # libtool.m4 will add one of these switches to LD
8849
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8850
libsuff= shlibsuff= libmagic=32-bit;;
8851
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8852
libsuff=32 shlibsuff=N32 libmagic=N32;;
8853
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8854
libsuff=64 shlibsuff=64 libmagic=64-bit;;
8855
*) libsuff= shlibsuff= libmagic=never-match;;
8859
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8860
shlibpath_overrides_runpath=no
8861
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8862
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8863
hardcode_into_libs=yes
8866
# No shared lib support for Linux oldld, aout, or coff.
8867
linux*oldld* | linux*aout* | linux*coff*)
8871
# This must be Linux ELF.
8876
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8877
soname_spec='${libname}${release}${shared_ext}$major'
8878
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8879
shlibpath_var=LD_LIBRARY_PATH
8880
shlibpath_overrides_runpath=no
8881
# This implies no fast_install, which is unacceptable.
8882
# Some rework will be needed to allow for fast_install
8883
# before this can be enabled.
8884
hardcode_into_libs=yes
8886
# find out which ABI we are using
8889
x86_64*|s390x*|powerpc64*)
8890
echo '#line 8890 "configure"' > conftest.$ac_ext
8891
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8892
(eval $ac_compile) 2>&5
8894
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8895
(exit $ac_status); }; then
8896
case `/usr/bin/file conftest.$ac_objext` in
8899
sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
8907
# Append ld.so.conf contents to the search path
8908
if test -f /etc/ld.so.conf; then
8909
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8910
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
8913
# We used to test for /lib/ld.so.1 and disable shared libraries on
8914
# powerpc, because MkLinux only supported shared libraries with the
8915
# GNU dynamic linker. Since this was broken with cross compilers,
8916
# most powerpc-linux boxes support dynamic linking these days and
8917
# people can always --disable-shared, the test was removed, and we
8918
# assume the GNU/Linux dynamic linker is in use.
8919
dynamic_linker='GNU/Linux ld.so'
8926
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8927
soname_spec='${libname}${release}${shared_ext}$major'
8928
shlibpath_var=LD_LIBRARY_PATH
8929
shlibpath_overrides_runpath=no
8930
hardcode_into_libs=yes
8931
dynamic_linker='GNU ld.so'
8938
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8939
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8940
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8941
dynamic_linker='NetBSD (a.out) ld.so'
8943
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8944
soname_spec='${libname}${release}${shared_ext}$major'
8945
dynamic_linker='NetBSD ld.elf_so'
8947
shlibpath_var=LD_LIBRARY_PATH
8948
shlibpath_overrides_runpath=yes
8949
hardcode_into_libs=yes
8954
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8955
shlibpath_var=LD_LIBRARY_PATH
8956
shlibpath_overrides_runpath=yes
8963
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8964
soname_spec='${libname}${release}${shared_ext}$major'
8965
shlibpath_var=LD_LIBRARY_PATH
8966
shlibpath_overrides_runpath=yes
8971
sys_lib_dlsearch_path_spec="/usr/lib"
8973
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8975
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8976
*) need_version=no ;;
8978
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8979
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8980
shlibpath_var=LD_LIBRARY_PATH
8981
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8983
openbsd2.[89] | openbsd2.[89].*)
8984
shlibpath_overrides_runpath=no
8987
shlibpath_overrides_runpath=yes
8991
shlibpath_overrides_runpath=yes
8996
libname_spec='$name'
8999
library_names_spec='$libname${shared_ext} $libname.a'
9000
dynamic_linker='OS/2 ld.exe'
9001
shlibpath_var=LIBPATH
9004
osf3* | osf4* | osf5*)
9008
soname_spec='${libname}${release}${shared_ext}$major'
9009
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9010
shlibpath_var=LD_LIBRARY_PATH
9011
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9012
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9019
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9020
soname_spec='${libname}${release}${shared_ext}$major'
9021
shlibpath_var=LD_LIBRARY_PATH
9022
shlibpath_overrides_runpath=yes
9023
hardcode_into_libs=yes
9024
# ldd complains unless libraries are executable
9025
postinstall_cmds='chmod +x $lib'
9030
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9031
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9032
shlibpath_var=LD_LIBRARY_PATH
9033
shlibpath_overrides_runpath=yes
9034
if test "$with_gnu_ld" = yes; then
9042
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9043
soname_spec='${libname}${release}${shared_ext}$major'
9044
shlibpath_var=LD_LIBRARY_PATH
9045
case $host_vendor in
9047
shlibpath_overrides_runpath=no
9049
export_dynamic_flag_spec='${wl}-Blargedynsym'
9050
runpath_var=LD_RUN_PATH
9058
shlibpath_overrides_runpath=no
9059
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9065
if test -d /usr/nec ;then
9067
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9068
soname_spec='$libname${shared_ext}.$major'
9069
shlibpath_var=LD_LIBRARY_PATH
9073
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9074
version_type=freebsd-elf
9077
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9078
soname_spec='${libname}${release}${shared_ext}$major'
9079
shlibpath_var=LD_LIBRARY_PATH
9080
hardcode_into_libs=yes
9081
if test "$with_gnu_ld" = yes; then
9082
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9083
shlibpath_overrides_runpath=no
9085
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9086
shlibpath_overrides_runpath=yes
9089
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9093
sys_lib_dlsearch_path_spec='/usr/lib'
9098
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9099
soname_spec='${libname}${release}${shared_ext}$major'
9100
shlibpath_var=LD_LIBRARY_PATH
9107
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9108
echo "${ECHO_T}$dynamic_linker" >&6; }
9109
test "$dynamic_linker" = no && can_build_shared=no
9111
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9112
if test "$GCC" = yes; then
9113
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9116
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9117
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9119
if test -n "$hardcode_libdir_flag_spec" || \
9120
test -n "$runpath_var" || \
9121
test "X$hardcode_automatic" = "Xyes" ; then
9123
# We can hardcode non-existant directories.
9124
if test "$hardcode_direct" != no &&
9125
# If the only mechanism to avoid hardcoding is shlibpath_var, we
9126
# have to relink, otherwise we might link with an installed library
9127
# when we should be linking with a yet-to-be-installed one
9128
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9129
test "$hardcode_minus_L" != no; then
9130
# Linking always hardcodes the temporary library directory.
9131
hardcode_action=relink
9133
# We can link without hardcoding, and we can hardcode nonexisting dirs.
9134
hardcode_action=immediate
9137
# We cannot hardcode anything, or else we can only hardcode existing
9139
hardcode_action=unsupported
9141
{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
9142
echo "${ECHO_T}$hardcode_action" >&6; }
9144
if test "$hardcode_action" = relink; then
9145
# Fast installation is not supported
9146
enable_fast_install=no
9147
elif test "$shlibpath_overrides_runpath" = yes ||
9148
test "$enable_shared" = no; then
9149
# Fast installation is not necessary
9150
enable_fast_install=needless
9155
{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9156
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9157
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9158
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9159
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9160
{ echo "$as_me:$LINENO: result: yes" >&5
9161
echo "${ECHO_T}yes" >&6; }
9163
# FIXME - insert some real tests, host_os isn't really good enough
9166
if test -n "$STRIP" ; then
9167
striplib="$STRIP -x"
9168
{ echo "$as_me:$LINENO: result: yes" >&5
9169
echo "${ECHO_T}yes" >&6; }
9171
{ echo "$as_me:$LINENO: result: no" >&5
9172
echo "${ECHO_T}no" >&6; }
9176
{ echo "$as_me:$LINENO: result: no" >&5
9177
echo "${ECHO_T}no" >&6; }
9182
if test "x$enable_dlopen" != xyes; then
9183
enable_dlopen=unknown
9184
enable_dlopen_self=unknown
9185
enable_dlopen_self_static=unknown
9192
lt_cv_dlopen="load_add_on"
9194
lt_cv_dlopen_self=yes
9198
lt_cv_dlopen="LoadLibrary"
9203
lt_cv_dlopen="dlopen"
9208
# if libdl is installed we need to link against it
9209
{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9210
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9211
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9212
echo $ECHO_N "(cached) $ECHO_C" >&6
9214
ac_check_lib_save_LIBS=$LIBS
9216
cat >conftest.$ac_ext <<_ACEOF
9219
cat confdefs.h >>conftest.$ac_ext
9220
cat >>conftest.$ac_ext <<_ACEOF
9221
/* end confdefs.h. */
9223
/* Override any GCC internal prototype to avoid an error.
9224
Use char because int might match the return type of a GCC
9225
builtin and then its argument prototype would still apply. */
9238
rm -f conftest.$ac_objext conftest$ac_exeext
9239
if { (ac_try="$ac_link"
9241
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9242
*) ac_try_echo=$ac_try;;
9244
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9245
(eval "$ac_link") 2>conftest.er1
9247
grep -v '^ *+' conftest.er1 >conftest.err
9249
cat conftest.err >&5
9250
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9251
(exit $ac_status); } &&
9252
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9253
{ (case "(($ac_try" in
9254
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9255
*) ac_try_echo=$ac_try;;
9257
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9258
(eval "$ac_try") 2>&5
9260
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9261
(exit $ac_status); }; } &&
9262
{ ac_try='test -s conftest$ac_exeext'
9263
{ (case "(($ac_try" in
9264
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9265
*) ac_try_echo=$ac_try;;
9267
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9268
(eval "$ac_try") 2>&5
9270
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9271
(exit $ac_status); }; }; then
9272
ac_cv_lib_dl_dlopen=yes
9274
echo "$as_me: failed program was:" >&5
9275
sed 's/^/| /' conftest.$ac_ext >&5
9277
ac_cv_lib_dl_dlopen=no
9280
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9281
conftest$ac_exeext conftest.$ac_ext
9282
LIBS=$ac_check_lib_save_LIBS
9284
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9285
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9286
if test $ac_cv_lib_dl_dlopen = yes; then
9287
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9292
lt_cv_dlopen_self=yes
9299
{ echo "$as_me:$LINENO: checking for shl_load" >&5
9300
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9301
if test "${ac_cv_func_shl_load+set}" = set; then
9302
echo $ECHO_N "(cached) $ECHO_C" >&6
9304
cat >conftest.$ac_ext <<_ACEOF
9307
cat confdefs.h >>conftest.$ac_ext
9308
cat >>conftest.$ac_ext <<_ACEOF
9309
/* end confdefs.h. */
9310
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9311
For example, HP-UX 11i <limits.h> declares gettimeofday. */
9312
#define shl_load innocuous_shl_load
9314
/* System header to define __stub macros and hopefully few prototypes,
9315
which can conflict with char shl_load (); below.
9316
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9317
<limits.h> exists even on freestanding compilers. */
9320
# include <limits.h>
9322
# include <assert.h>
9327
/* Override any GCC internal prototype to avoid an error.
9328
Use char because int might match the return type of a GCC
9329
builtin and then its argument prototype would still apply. */
9334
/* The GNU C library defines this for functions which it implements
9335
to always fail with ENOSYS. Some functions are actually named
9336
something starting with __ and the normal name is an alias. */
9337
#if defined __stub_shl_load || defined __stub___shl_load
9349
rm -f conftest.$ac_objext conftest$ac_exeext
9350
if { (ac_try="$ac_link"
9352
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9353
*) ac_try_echo=$ac_try;;
9355
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9356
(eval "$ac_link") 2>conftest.er1
9358
grep -v '^ *+' conftest.er1 >conftest.err
9360
cat conftest.err >&5
9361
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9362
(exit $ac_status); } &&
9363
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9364
{ (case "(($ac_try" in
9365
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9366
*) ac_try_echo=$ac_try;;
9368
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9369
(eval "$ac_try") 2>&5
9371
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9372
(exit $ac_status); }; } &&
9373
{ ac_try='test -s conftest$ac_exeext'
9374
{ (case "(($ac_try" in
9375
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9376
*) ac_try_echo=$ac_try;;
9378
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9379
(eval "$ac_try") 2>&5
9381
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9382
(exit $ac_status); }; }; then
9383
ac_cv_func_shl_load=yes
9385
echo "$as_me: failed program was:" >&5
9386
sed 's/^/| /' conftest.$ac_ext >&5
9388
ac_cv_func_shl_load=no
9391
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9392
conftest$ac_exeext conftest.$ac_ext
9394
{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9395
echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9396
if test $ac_cv_func_shl_load = yes; then
9397
lt_cv_dlopen="shl_load"
9399
{ echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9400
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9401
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9402
echo $ECHO_N "(cached) $ECHO_C" >&6
9404
ac_check_lib_save_LIBS=$LIBS
9406
cat >conftest.$ac_ext <<_ACEOF
9409
cat confdefs.h >>conftest.$ac_ext
9410
cat >>conftest.$ac_ext <<_ACEOF
9411
/* end confdefs.h. */
9413
/* Override any GCC internal prototype to avoid an error.
9414
Use char because int might match the return type of a GCC
9415
builtin and then its argument prototype would still apply. */
9428
rm -f conftest.$ac_objext conftest$ac_exeext
9429
if { (ac_try="$ac_link"
9431
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9432
*) ac_try_echo=$ac_try;;
9434
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9435
(eval "$ac_link") 2>conftest.er1
9437
grep -v '^ *+' conftest.er1 >conftest.err
9439
cat conftest.err >&5
9440
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9441
(exit $ac_status); } &&
9442
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9443
{ (case "(($ac_try" in
9444
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9445
*) ac_try_echo=$ac_try;;
9447
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9448
(eval "$ac_try") 2>&5
9450
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9451
(exit $ac_status); }; } &&
9452
{ ac_try='test -s conftest$ac_exeext'
9453
{ (case "(($ac_try" in
9454
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9455
*) ac_try_echo=$ac_try;;
9457
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9458
(eval "$ac_try") 2>&5
9460
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9461
(exit $ac_status); }; }; then
9462
ac_cv_lib_dld_shl_load=yes
9464
echo "$as_me: failed program was:" >&5
9465
sed 's/^/| /' conftest.$ac_ext >&5
9467
ac_cv_lib_dld_shl_load=no
9470
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9471
conftest$ac_exeext conftest.$ac_ext
9472
LIBS=$ac_check_lib_save_LIBS
9474
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9475
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9476
if test $ac_cv_lib_dld_shl_load = yes; then
9477
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9479
{ echo "$as_me:$LINENO: checking for dlopen" >&5
9480
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9481
if test "${ac_cv_func_dlopen+set}" = set; then
9482
echo $ECHO_N "(cached) $ECHO_C" >&6
9484
cat >conftest.$ac_ext <<_ACEOF
9487
cat confdefs.h >>conftest.$ac_ext
9488
cat >>conftest.$ac_ext <<_ACEOF
9489
/* end confdefs.h. */
9490
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9491
For example, HP-UX 11i <limits.h> declares gettimeofday. */
9492
#define dlopen innocuous_dlopen
9494
/* System header to define __stub macros and hopefully few prototypes,
9495
which can conflict with char dlopen (); below.
9496
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9497
<limits.h> exists even on freestanding compilers. */
9500
# include <limits.h>
9502
# include <assert.h>
9507
/* Override any GCC internal prototype to avoid an error.
9508
Use char because int might match the return type of a GCC
9509
builtin and then its argument prototype would still apply. */
9514
/* The GNU C library defines this for functions which it implements
9515
to always fail with ENOSYS. Some functions are actually named
9516
something starting with __ and the normal name is an alias. */
9517
#if defined __stub_dlopen || defined __stub___dlopen
9529
rm -f conftest.$ac_objext conftest$ac_exeext
9530
if { (ac_try="$ac_link"
9532
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9533
*) ac_try_echo=$ac_try;;
9535
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9536
(eval "$ac_link") 2>conftest.er1
9538
grep -v '^ *+' conftest.er1 >conftest.err
9540
cat conftest.err >&5
9541
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9542
(exit $ac_status); } &&
9543
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9544
{ (case "(($ac_try" in
9545
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9546
*) ac_try_echo=$ac_try;;
9548
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9549
(eval "$ac_try") 2>&5
9551
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9552
(exit $ac_status); }; } &&
9553
{ ac_try='test -s conftest$ac_exeext'
9554
{ (case "(($ac_try" in
9555
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9556
*) ac_try_echo=$ac_try;;
9558
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9559
(eval "$ac_try") 2>&5
9561
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9562
(exit $ac_status); }; }; then
9563
ac_cv_func_dlopen=yes
9565
echo "$as_me: failed program was:" >&5
9566
sed 's/^/| /' conftest.$ac_ext >&5
9568
ac_cv_func_dlopen=no
9571
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9572
conftest$ac_exeext conftest.$ac_ext
9574
{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9575
echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9576
if test $ac_cv_func_dlopen = yes; then
9577
lt_cv_dlopen="dlopen"
9579
{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9580
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9581
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9582
echo $ECHO_N "(cached) $ECHO_C" >&6
9584
ac_check_lib_save_LIBS=$LIBS
9586
cat >conftest.$ac_ext <<_ACEOF
9589
cat confdefs.h >>conftest.$ac_ext
9590
cat >>conftest.$ac_ext <<_ACEOF
9591
/* end confdefs.h. */
9593
/* Override any GCC internal prototype to avoid an error.
9594
Use char because int might match the return type of a GCC
9595
builtin and then its argument prototype would still apply. */
9608
rm -f conftest.$ac_objext conftest$ac_exeext
9609
if { (ac_try="$ac_link"
9611
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9612
*) ac_try_echo=$ac_try;;
9614
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9615
(eval "$ac_link") 2>conftest.er1
9617
grep -v '^ *+' conftest.er1 >conftest.err
9619
cat conftest.err >&5
9620
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9621
(exit $ac_status); } &&
9622
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9623
{ (case "(($ac_try" in
9624
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9625
*) ac_try_echo=$ac_try;;
9627
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9628
(eval "$ac_try") 2>&5
9630
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9631
(exit $ac_status); }; } &&
9632
{ ac_try='test -s conftest$ac_exeext'
9633
{ (case "(($ac_try" in
9634
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9635
*) ac_try_echo=$ac_try;;
9637
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9638
(eval "$ac_try") 2>&5
9640
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9641
(exit $ac_status); }; }; then
9642
ac_cv_lib_dl_dlopen=yes
9644
echo "$as_me: failed program was:" >&5
9645
sed 's/^/| /' conftest.$ac_ext >&5
9647
ac_cv_lib_dl_dlopen=no
9650
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9651
conftest$ac_exeext conftest.$ac_ext
9652
LIBS=$ac_check_lib_save_LIBS
9654
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9655
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9656
if test $ac_cv_lib_dl_dlopen = yes; then
9657
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9659
{ echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9660
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9661
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9662
echo $ECHO_N "(cached) $ECHO_C" >&6
9664
ac_check_lib_save_LIBS=$LIBS
9666
cat >conftest.$ac_ext <<_ACEOF
9669
cat confdefs.h >>conftest.$ac_ext
9670
cat >>conftest.$ac_ext <<_ACEOF
9671
/* end confdefs.h. */
9673
/* Override any GCC internal prototype to avoid an error.
9674
Use char because int might match the return type of a GCC
9675
builtin and then its argument prototype would still apply. */
9688
rm -f conftest.$ac_objext conftest$ac_exeext
9689
if { (ac_try="$ac_link"
9691
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9692
*) ac_try_echo=$ac_try;;
9694
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9695
(eval "$ac_link") 2>conftest.er1
9697
grep -v '^ *+' conftest.er1 >conftest.err
9699
cat conftest.err >&5
9700
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9701
(exit $ac_status); } &&
9702
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9703
{ (case "(($ac_try" in
9704
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9705
*) ac_try_echo=$ac_try;;
9707
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9708
(eval "$ac_try") 2>&5
9710
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9711
(exit $ac_status); }; } &&
9712
{ ac_try='test -s conftest$ac_exeext'
9713
{ (case "(($ac_try" in
9714
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9715
*) ac_try_echo=$ac_try;;
9717
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9718
(eval "$ac_try") 2>&5
9720
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9721
(exit $ac_status); }; }; then
9722
ac_cv_lib_svld_dlopen=yes
9724
echo "$as_me: failed program was:" >&5
9725
sed 's/^/| /' conftest.$ac_ext >&5
9727
ac_cv_lib_svld_dlopen=no
9730
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9731
conftest$ac_exeext conftest.$ac_ext
9732
LIBS=$ac_check_lib_save_LIBS
9734
{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9735
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9736
if test $ac_cv_lib_svld_dlopen = yes; then
9737
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9739
{ echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9740
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9741
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9742
echo $ECHO_N "(cached) $ECHO_C" >&6
9744
ac_check_lib_save_LIBS=$LIBS
9746
cat >conftest.$ac_ext <<_ACEOF
9749
cat confdefs.h >>conftest.$ac_ext
9750
cat >>conftest.$ac_ext <<_ACEOF
9751
/* end confdefs.h. */
9753
/* Override any GCC internal prototype to avoid an error.
9754
Use char because int might match the return type of a GCC
9755
builtin and then its argument prototype would still apply. */
9768
rm -f conftest.$ac_objext conftest$ac_exeext
9769
if { (ac_try="$ac_link"
9771
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9772
*) ac_try_echo=$ac_try;;
9774
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9775
(eval "$ac_link") 2>conftest.er1
9777
grep -v '^ *+' conftest.er1 >conftest.err
9779
cat conftest.err >&5
9780
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781
(exit $ac_status); } &&
9782
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9783
{ (case "(($ac_try" in
9784
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9785
*) ac_try_echo=$ac_try;;
9787
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9788
(eval "$ac_try") 2>&5
9790
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9791
(exit $ac_status); }; } &&
9792
{ ac_try='test -s conftest$ac_exeext'
9793
{ (case "(($ac_try" in
9794
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9795
*) ac_try_echo=$ac_try;;
9797
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9798
(eval "$ac_try") 2>&5
9800
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9801
(exit $ac_status); }; }; then
9802
ac_cv_lib_dld_dld_link=yes
9804
echo "$as_me: failed program was:" >&5
9805
sed 's/^/| /' conftest.$ac_ext >&5
9807
ac_cv_lib_dld_dld_link=no
9810
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9811
conftest$ac_exeext conftest.$ac_ext
9812
LIBS=$ac_check_lib_save_LIBS
9814
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9815
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9816
if test $ac_cv_lib_dld_dld_link = yes; then
9817
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9838
if test "x$lt_cv_dlopen" != xno; then
9844
case $lt_cv_dlopen in
9846
save_CPPFLAGS="$CPPFLAGS"
9847
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9849
save_LDFLAGS="$LDFLAGS"
9850
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9853
LIBS="$lt_cv_dlopen_libs $LIBS"
9855
{ echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9856
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9857
if test "${lt_cv_dlopen_self+set}" = set; then
9858
echo $ECHO_N "(cached) $ECHO_C" >&6
9860
if test "$cross_compiling" = yes; then :
9861
lt_cv_dlopen_self=cross
9863
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9864
lt_status=$lt_dlunknown
9865
cat > conftest.$ac_ext <<EOF
9866
#line 9866 "configure"
9867
#include "confdefs.h"
9876
# define LT_DLGLOBAL RTLD_GLOBAL
9879
# define LT_DLGLOBAL DL_GLOBAL
9881
# define LT_DLGLOBAL 0
9885
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9886
find out it does not work in some platform. */
9887
#ifndef LT_DLLAZY_OR_NOW
9889
# define LT_DLLAZY_OR_NOW RTLD_LAZY
9892
# define LT_DLLAZY_OR_NOW DL_LAZY
9895
# define LT_DLLAZY_OR_NOW RTLD_NOW
9898
# define LT_DLLAZY_OR_NOW DL_NOW
9900
# define LT_DLLAZY_OR_NOW 0
9908
extern "C" void exit (int);
9911
void fnord() { int i=42;}
9914
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9915
int status = $lt_dlunknown;
9919
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9920
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9921
/* dlclose (self); */
9929
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9930
(eval $ac_link) 2>&5
9932
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9933
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9934
(./conftest; exit; ) >&5 2>/dev/null
9937
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9938
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9939
x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9942
# compilation failed
9943
lt_cv_dlopen_self=no
9950
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9951
echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9953
if test "x$lt_cv_dlopen_self" = xyes; then
9954
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9955
{ echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9956
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9957
if test "${lt_cv_dlopen_self_static+set}" = set; then
9958
echo $ECHO_N "(cached) $ECHO_C" >&6
9960
if test "$cross_compiling" = yes; then :
9961
lt_cv_dlopen_self_static=cross
9963
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9964
lt_status=$lt_dlunknown
9965
cat > conftest.$ac_ext <<EOF
9966
#line 9966 "configure"
9967
#include "confdefs.h"
9976
# define LT_DLGLOBAL RTLD_GLOBAL
9979
# define LT_DLGLOBAL DL_GLOBAL
9981
# define LT_DLGLOBAL 0
9985
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9986
find out it does not work in some platform. */
9987
#ifndef LT_DLLAZY_OR_NOW
9989
# define LT_DLLAZY_OR_NOW RTLD_LAZY
9992
# define LT_DLLAZY_OR_NOW DL_LAZY
9995
# define LT_DLLAZY_OR_NOW RTLD_NOW
9998
# define LT_DLLAZY_OR_NOW DL_NOW
10000
# define LT_DLLAZY_OR_NOW 0
10008
extern "C" void exit (int);
10011
void fnord() { int i=42;}
10014
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10015
int status = $lt_dlunknown;
10019
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10020
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10021
/* dlclose (self); */
10029
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10030
(eval $ac_link) 2>&5
10032
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10033
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10034
(./conftest; exit; ) >&5 2>/dev/null
10036
case x$lt_status in
10037
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10038
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10039
x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10042
# compilation failed
10043
lt_cv_dlopen_self_static=no
10050
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10051
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10054
CPPFLAGS="$save_CPPFLAGS"
10055
LDFLAGS="$save_LDFLAGS"
10060
case $lt_cv_dlopen_self in
10061
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10062
*) enable_dlopen_self=unknown ;;
10065
case $lt_cv_dlopen_self_static in
10066
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10067
*) enable_dlopen_self_static=unknown ;;
10072
# Report which library types will actually be built
10073
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10074
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10075
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
10076
echo "${ECHO_T}$can_build_shared" >&6; }
10078
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10079
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10080
test "$can_build_shared" = "no" && enable_shared=no
10082
# On AIX, shared libraries and static libraries use the same namespace, and
10083
# are all built from PIC.
10086
test "$enable_shared" = yes && enable_static=no
10087
if test -n "$RANLIB"; then
10088
archive_cmds="$archive_cmds~\$RANLIB \$lib"
10089
postinstall_cmds='$RANLIB $lib'
10094
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10095
test "$enable_shared" = yes && enable_static=no
10099
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10100
echo "${ECHO_T}$enable_shared" >&6; }
10102
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10103
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10104
# Make sure either enable_shared or enable_static is yes.
10105
test "$enable_shared" = yes || enable_static=yes
10106
{ echo "$as_me:$LINENO: result: $enable_static" >&5
10107
echo "${ECHO_T}$enable_static" >&6; }
10109
# The else clause should only fire when bootstrapping the
10110
# libtool distribution, otherwise you forgot to ship ltmain.sh
10111
# with your package, and you will get complaints that there are
10112
# no rules to generate ltmain.sh.
10113
if test -f "$ltmain"; then
10114
# See if we are running on zsh, and set the options which allow our commands through
10115
# without removal of \ escapes.
10116
if test -n "${ZSH_VERSION+set}" ; then
10117
setopt NO_GLOB_SUBST
10119
# Now quote all the things that may contain metacharacters while being
10120
# careful not to overquote the AC_SUBSTed values. We take copies of the
10121
# variables and quote the copies for generation of the libtool script.
10122
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10124
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10125
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10126
deplibs_check_method reload_flag reload_cmds need_locks \
10127
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10128
lt_cv_sys_global_symbol_to_c_name_address \
10129
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10130
old_postinstall_cmds old_postuninstall_cmds \
10134
lt_prog_compiler_wl \
10135
lt_prog_compiler_pic \
10136
lt_prog_compiler_static \
10137
lt_prog_compiler_no_builtin_flag \
10138
export_dynamic_flag_spec \
10139
thread_safe_flag_spec \
10140
whole_archive_flag_spec \
10141
enable_shared_with_static_runtimes \
10143
old_archive_from_new_cmds \
10148
compiler_lib_search_path \
10150
archive_expsym_cmds \
10152
postuninstall_cmds \
10153
old_archive_from_expsyms_cmds \
10154
allow_undefined_flag \
10155
no_undefined_flag \
10156
export_symbols_cmds \
10157
hardcode_libdir_flag_spec \
10158
hardcode_libdir_flag_spec_ld \
10159
hardcode_libdir_separator \
10160
hardcode_automatic \
10162
module_expsym_cmds \
10163
lt_cv_prog_compiler_c_o \
10165
include_expsyms; do
10168
old_archive_cmds | \
10169
old_archive_from_new_cmds | \
10171
archive_expsym_cmds | \
10173
module_expsym_cmds | \
10174
old_archive_from_expsyms_cmds | \
10175
export_symbols_cmds | \
10176
extract_expsyms_cmds | reload_cmds | finish_cmds | \
10177
postinstall_cmds | postuninstall_cmds | \
10178
old_postinstall_cmds | old_postuninstall_cmds | \
10179
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10180
# Double-quote double-evaled strings.
10181
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10184
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10190
*'\$0 --fallback-echo"')
10191
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10195
cfgfile="${ofile}T"
10196
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10198
{ echo "$as_me:$LINENO: creating $ofile" >&5
10199
echo "$as_me: creating $ofile" >&6;}
10201
cat <<__EOF__ >> "$cfgfile"
10204
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10205
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10206
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10208
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10209
# Free Software Foundation, Inc.
10211
# This file is part of GNU Libtool:
10212
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10214
# This program is free software; you can redistribute it and/or modify
10215
# it under the terms of the GNU General Public License as published by
10216
# the Free Software Foundation; either version 2 of the License, or
10217
# (at your option) any later version.
10219
# This program is distributed in the hope that it will be useful, but
10220
# WITHOUT ANY WARRANTY; without even the implied warranty of
10221
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10222
# General Public License for more details.
10224
# You should have received a copy of the GNU General Public License
10225
# along with this program; if not, write to the Free Software
10226
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10228
# As a special exception to the GNU General Public License, if you
10229
# distribute this file as part of a program that contains a
10230
# configuration script generated by Autoconf, you may include it under
10231
# the same distribution terms that you use for the rest of that program.
10233
# A sed program that does not truncate output.
10236
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10237
Xsed="$SED -e 1s/^X//"
10239
# The HP-UX ksh and POSIX shell print the target directory to stdout
10240
# if CDPATH is set.
10241
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10243
# The names of the tagged configurations supported by this script.
10246
# ### BEGIN LIBTOOL CONFIG
10248
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10250
# Shell to use when invoking shell scripts.
10253
# Whether or not to build shared libraries.
10254
build_libtool_libs=$enable_shared
10256
# Whether or not to build static libraries.
10257
build_old_libs=$enable_static
10259
# Whether or not to add -lc for building shared libraries.
10260
build_libtool_need_lc=$archive_cmds_need_lc
10262
# Whether or not to disallow shared libs when runtime libs are static
10263
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10265
# Whether or not to optimize for fast installation.
10266
fast_install=$enable_fast_install
10269
host_alias=$host_alias
10273
# The build system.
10274
build_alias=$build_alias
10278
# An echo program that does not interpret backslashes.
10283
AR_FLAGS=$lt_AR_FLAGS
10288
# LTCC compiler flags.
10289
LTCFLAGS=$lt_LTCFLAGS
10291
# A language-specific compiler.
10294
# Is the compiler the GNU C compiler?
10300
# The linker used to build libraries.
10303
# Whether we need hard or soft links.
10306
# A BSD-compatible nm program.
10309
# A symbol stripping program
10312
# Used to examine libraries when file_magic_cmd begins "file"
10313
MAGIC_CMD=$MAGIC_CMD
10315
# Used on cygwin: DLL creation program.
10318
# Used on cygwin: object dumper.
10321
# Used on cygwin: assembler.
10324
# The name of the directory that contains temporary libtool files.
10327
# How to create reloadable object files.
10328
reload_flag=$lt_reload_flag
10329
reload_cmds=$lt_reload_cmds
10331
# How to pass a linker flag through the compiler.
10332
wl=$lt_lt_prog_compiler_wl
10334
# Object file suffix (normally "o").
10335
objext="$ac_objext"
10337
# Old archive suffix (normally "a").
10340
# Shared library suffix (normally ".so").
10341
shrext_cmds='$shrext_cmds'
10343
# Executable file suffix (normally "").
10346
# Additional compiler flags for building library objects.
10347
pic_flag=$lt_lt_prog_compiler_pic
10350
# What is the maximum length of a command?
10351
max_cmd_len=$lt_cv_sys_max_cmd_len
10353
# Does compiler simultaneously support -c and -o options?
10354
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10356
# Must we lock files when doing compilation?
10357
need_locks=$lt_need_locks
10359
# Do we need the lib prefix for modules?
10360
need_lib_prefix=$need_lib_prefix
10362
# Do we need a version for libraries?
10363
need_version=$need_version
10365
# Whether dlopen is supported.
10366
dlopen_support=$enable_dlopen
10368
# Whether dlopen of programs is supported.
10369
dlopen_self=$enable_dlopen_self
10371
# Whether dlopen of statically linked programs is supported.
10372
dlopen_self_static=$enable_dlopen_self_static
10374
# Compiler flag to prevent dynamic linking.
10375
link_static_flag=$lt_lt_prog_compiler_static
10377
# Compiler flag to turn off builtin functions.
10378
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10380
# Compiler flag to allow reflexive dlopens.
10381
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10383
# Compiler flag to generate shared objects directly from archives.
10384
whole_archive_flag_spec=$lt_whole_archive_flag_spec
10386
# Compiler flag to generate thread-safe objects.
10387
thread_safe_flag_spec=$lt_thread_safe_flag_spec
10389
# Library versioning type.
10390
version_type=$version_type
10392
# Format of library name prefix.
10393
libname_spec=$lt_libname_spec
10395
# List of archive names. First name is the real one, the rest are links.
10396
# The last name is the one that the linker finds with -lNAME.
10397
library_names_spec=$lt_library_names_spec
10399
# The coded name of the library, if different from the real name.
10400
soname_spec=$lt_soname_spec
10402
# Commands used to build and install an old-style archive.
10404
old_archive_cmds=$lt_old_archive_cmds
10405
old_postinstall_cmds=$lt_old_postinstall_cmds
10406
old_postuninstall_cmds=$lt_old_postuninstall_cmds
10408
# Create an old-style archive from a shared archive.
10409
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10411
# Create a temporary old-style archive to link instead of a shared archive.
10412
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10414
# Commands used to build and install a shared archive.
10415
archive_cmds=$lt_archive_cmds
10416
archive_expsym_cmds=$lt_archive_expsym_cmds
10417
postinstall_cmds=$lt_postinstall_cmds
10418
postuninstall_cmds=$lt_postuninstall_cmds
10420
# Commands used to build a loadable module (assumed same as above if empty)
10421
module_cmds=$lt_module_cmds
10422
module_expsym_cmds=$lt_module_expsym_cmds
10424
# Commands to strip libraries.
10425
old_striplib=$lt_old_striplib
10426
striplib=$lt_striplib
10428
# Dependencies to place before the objects being linked to create a
10430
predep_objects=$lt_predep_objects
10432
# Dependencies to place after the objects being linked to create a
10434
postdep_objects=$lt_postdep_objects
10436
# Dependencies to place before the objects being linked to create a
10438
predeps=$lt_predeps
10440
# Dependencies to place after the objects being linked to create a
10442
postdeps=$lt_postdeps
10444
# The library search path used internally by the compiler when linking
10445
# a shared library.
10446
compiler_lib_search_path=$lt_compiler_lib_search_path
10448
# Method to check whether dependent libraries are shared objects.
10449
deplibs_check_method=$lt_deplibs_check_method
10451
# Command to use when deplibs_check_method == file_magic.
10452
file_magic_cmd=$lt_file_magic_cmd
10454
# Flag that allows shared libraries with undefined symbols to be built.
10455
allow_undefined_flag=$lt_allow_undefined_flag
10457
# Flag that forces no undefined symbols.
10458
no_undefined_flag=$lt_no_undefined_flag
10460
# Commands used to finish a libtool library installation in a directory.
10461
finish_cmds=$lt_finish_cmds
10463
# Same as above, but a single script fragment to be evaled but not shown.
10464
finish_eval=$lt_finish_eval
10466
# Take the output of nm and produce a listing of raw symbols and C names.
10467
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10469
# Transform the output of nm in a proper C declaration
10470
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10472
# Transform the output of nm in a C name address pair
10473
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10475
# This is the shared library runtime path variable.
10476
runpath_var=$runpath_var
10478
# This is the shared library path variable.
10479
shlibpath_var=$shlibpath_var
10481
# Is shlibpath searched before the hard-coded library search path?
10482
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10484
# How to hardcode a shared library path into an executable.
10485
hardcode_action=$hardcode_action
10487
# Whether we should hardcode library paths into libraries.
10488
hardcode_into_libs=$hardcode_into_libs
10490
# Flag to hardcode \$libdir into a binary during linking.
10491
# This must work even if \$libdir does not exist.
10492
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10494
# If ld is used when linking, flag to hardcode \$libdir into
10495
# a binary during linking. This must work even if \$libdir does
10497
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10499
# Whether we need a single -rpath flag with a separated argument.
10500
hardcode_libdir_separator=$lt_hardcode_libdir_separator
10502
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10503
# resulting binary.
10504
hardcode_direct=$hardcode_direct
10506
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10507
# resulting binary.
10508
hardcode_minus_L=$hardcode_minus_L
10510
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10511
# the resulting binary.
10512
hardcode_shlibpath_var=$hardcode_shlibpath_var
10514
# Set to yes if building a shared library automatically hardcodes DIR into the library
10515
# and all subsequent libraries and executables linked against it.
10516
hardcode_automatic=$hardcode_automatic
10518
# Variables whose values should be saved in libtool wrapper scripts and
10519
# restored at relink time.
10520
variables_saved_for_relink="$variables_saved_for_relink"
10522
# Whether libtool must link a program against all its dependency libraries.
10523
link_all_deplibs=$link_all_deplibs
10525
# Compile-time system search path for libraries
10526
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10528
# Run-time system search path for libraries
10529
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10531
# Fix the shell variable \$srcfile for the compiler.
10532
fix_srcfile_path="$fix_srcfile_path"
10534
# Set to yes if exported symbols are required.
10535
always_export_symbols=$always_export_symbols
10537
# The commands to list exported symbols.
10538
export_symbols_cmds=$lt_export_symbols_cmds
10540
# The commands to extract the exported symbol list from a shared archive.
10541
extract_expsyms_cmds=$lt_extract_expsyms_cmds
10543
# Symbols that should not be listed in the preloaded symbols.
10544
exclude_expsyms=$lt_exclude_expsyms
10546
# Symbols that must always be exported.
10547
include_expsyms=$lt_include_expsyms
10549
# ### END LIBTOOL CONFIG
10556
cat <<\EOF >> "$cfgfile"
10558
# AIX sometimes has problems with the GCC collect2 program. For some
10559
# reason, if we set the COLLECT_NAMES environment variable, the problems
10560
# vanish in a puff of smoke.
10561
if test "X${COLLECT_NAMES+set}" != Xset; then
10563
export COLLECT_NAMES
10569
# We use sed instead of cat because bash on DJGPP gets confused if
10570
# if finds mixed CR/LF and LF-only lines. Since sed operates in
10571
# text mode, it properly converts lines to CR/LF. This bash problem
10572
# is reportedly fixed, but why not run on old versions too?
10573
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10575
mv -f "$cfgfile" "$ofile" || \
10576
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10580
# If there is no Makefile yet, we rely on a make rule to execute
10581
# `config.status --recheck' to rerun these tests and create the
10582
# libtool script then.
10583
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10584
if test -f "$ltmain_in"; then
10585
test -f Makefile && make "$ltmain"
10591
ac_cpp='$CPP $CPPFLAGS'
10592
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10593
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10594
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10599
# Check whether --with-tags was given.
10600
if test "${with_tags+set}" = set; then
10601
withval=$with_tags; tagnames="$withval"
10605
if test -f "$ltmain" && test -n "$tagnames"; then
10606
if test ! -f "${ofile}"; then
10607
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10608
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10611
if test -z "$LTCC"; then
10612
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10613
if test -z "$LTCC"; then
10614
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10615
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10617
{ echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10618
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10621
if test -z "$LTCFLAGS"; then
10622
eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10625
# Extract list of available tagged configurations in $ofile.
10626
# Note that this assumes the entire list is on one line.
10627
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10629
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10630
for tagname in $tagnames; do
10632
# Check whether tagname contains only valid characters
10633
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10635
*) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10636
echo "$as_me: error: invalid tag name: $tagname" >&2;}
10637
{ (exit 1); exit 1; }; }
10641
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10643
{ { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10644
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10645
{ (exit 1); exit 1; }; }
10648
# Update the list of available tags.
10649
if test -n "$tagname"; then
10650
echo appending configuration tag \"$tagname\" to $ofile
10654
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10655
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10656
(test "X$CXX" != "Xg++"))) ; then
10658
ac_cpp='$CXXCPP $CPPFLAGS'
10659
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10660
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10661
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10666
archive_cmds_need_lc_CXX=no
10667
allow_undefined_flag_CXX=
10668
always_export_symbols_CXX=no
10669
archive_expsym_cmds_CXX=
10670
export_dynamic_flag_spec_CXX=
10671
hardcode_direct_CXX=no
10672
hardcode_libdir_flag_spec_CXX=
10673
hardcode_libdir_flag_spec_ld_CXX=
10674
hardcode_libdir_separator_CXX=
10675
hardcode_minus_L_CXX=no
10676
hardcode_shlibpath_var_CXX=unsupported
10677
hardcode_automatic_CXX=no
10679
module_expsym_cmds_CXX=
10680
link_all_deplibs_CXX=unknown
10681
old_archive_cmds_CXX=$old_archive_cmds
10682
no_undefined_flag_CXX=
10683
whole_archive_flag_spec_CXX=
10684
enable_shared_with_static_runtimes_CXX=no
10686
# Dependencies to place before and after the object being linked:
10687
predep_objects_CXX=
10688
postdep_objects_CXX=
10691
compiler_lib_search_path_CXX=
10693
# Source file extension for C++ test sources.
10696
# Object file extension for compiled C++ test sources.
10700
# Code to be used in simple compile tests
10701
lt_simple_compile_test_code="int some_variable = 0;\n"
10703
# Code to be used in simple link tests
10704
lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10706
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10708
# If no C compiler was specified, use CC.
10711
# If no C compiler flags were specified, use CFLAGS.
10712
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10714
# Allow CC to be a program name with arguments.
10718
# save warnings/boilerplate of simple test code
10719
ac_outfile=conftest.$ac_objext
10720
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10721
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10722
_lt_compiler_boilerplate=`cat conftest.err`
10725
ac_outfile=conftest.$ac_objext
10726
printf "$lt_simple_link_test_code" >conftest.$ac_ext
10727
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10728
_lt_linker_boilerplate=`cat conftest.err`
10732
# Allow CC to be a program name with arguments.
10737
lt_save_with_gnu_ld=$with_gnu_ld
10738
lt_save_path_LD=$lt_cv_path_LD
10739
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10740
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10742
$as_unset lt_cv_prog_gnu_ld
10744
if test -n "${lt_cv_path_LDCXX+set}"; then
10745
lt_cv_path_LD=$lt_cv_path_LDCXX
10747
$as_unset lt_cv_path_LD
10749
test -z "${LDCXX+set}" || LD=$LDCXX
10753
for cc_temp in $compiler""; do
10755
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10756
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10761
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10764
# We don't want -fno-exception wen compiling C++ code, so set the
10765
# no_builtin_flag separately
10766
if test "$GXX" = yes; then
10767
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10769
lt_prog_compiler_no_builtin_flag_CXX=
10772
if test "$GXX" = yes; then
10773
# Set up default GNU C++ configuration
10776
# Check whether --with-gnu-ld was given.
10777
if test "${with_gnu_ld+set}" = set; then
10778
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10784
if test "$GCC" = yes; then
10785
# Check if gcc -print-prog-name=ld gives a path.
10786
{ echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10787
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10790
# gcc leaves a trailing carriage return which upsets mingw
10791
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10793
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10796
# Accept absolute paths.
10798
re_direlt='/[^/][^/]*/\.\./'
10799
# Canonicalize the pathname of ld
10800
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10801
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10802
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10804
test -z "$LD" && LD="$ac_prog"
10807
# If it fails, then pretend we aren't using GCC.
10811
# If it is relative, then search for the first ld in PATH.
10812
with_gnu_ld=unknown
10815
elif test "$with_gnu_ld" = yes; then
10816
{ echo "$as_me:$LINENO: checking for GNU ld" >&5
10817
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10819
{ echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10820
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10822
if test "${lt_cv_path_LD+set}" = set; then
10823
echo $ECHO_N "(cached) $ECHO_C" >&6
10825
if test -z "$LD"; then
10826
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10827
for ac_dir in $PATH; do
10829
test -z "$ac_dir" && ac_dir=.
10830
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10831
lt_cv_path_LD="$ac_dir/$ac_prog"
10832
# Check to see if the program is GNU ld. I'd rather use --version,
10833
# but apparently some variants of GNU ld only accept -v.
10834
# Break only if it was the GNU/non-GNU ld that we prefer.
10835
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10836
*GNU* | *'with BFD'*)
10837
test "$with_gnu_ld" != no && break
10840
test "$with_gnu_ld" != yes && break
10847
lt_cv_path_LD="$LD" # Let the user override the test with a path.
10851
LD="$lt_cv_path_LD"
10852
if test -n "$LD"; then
10853
{ echo "$as_me:$LINENO: result: $LD" >&5
10854
echo "${ECHO_T}$LD" >&6; }
10856
{ echo "$as_me:$LINENO: result: no" >&5
10857
echo "${ECHO_T}no" >&6; }
10859
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10860
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10861
{ (exit 1); exit 1; }; }
10862
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10863
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10864
if test "${lt_cv_prog_gnu_ld+set}" = set; then
10865
echo $ECHO_N "(cached) $ECHO_C" >&6
10867
# I'd rather use --version here, but apparently some GNU lds only accept -v.
10868
case `$LD -v 2>&1 </dev/null` in
10869
*GNU* | *'with BFD'*)
10870
lt_cv_prog_gnu_ld=yes
10873
lt_cv_prog_gnu_ld=no
10877
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10878
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10879
with_gnu_ld=$lt_cv_prog_gnu_ld
10883
# Check if GNU C++ uses GNU ld as the underlying linker, since the
10884
# archiving commands below assume that GNU ld is being used.
10885
if test "$with_gnu_ld" = yes; then
10886
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10887
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'
10889
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10890
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10892
# If archive_cmds runs LD, not CC, wlarc should be empty
10893
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10894
# investigate it a little bit more. (MM)
10897
# ancient GNU ld didn't support --whole-archive et. al.
10898
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10899
grep 'no-whole-archive' > /dev/null; then
10900
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10902
whole_archive_flag_spec_CXX=
10908
# A generic and very simple default shared library creation
10909
# command for GNU C++ for the case where it uses the native
10910
# linker, instead of GNU ld. If possible, this setting should
10911
# overridden to take advantage of the native linker features on
10912
# the platform it is being used on.
10913
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10916
# Commands to make compiler produce verbose output that lists
10917
# what "hidden" libraries, object files and flags are used when
10918
# linking a shared library.
10919
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10927
# PORTME: fill in a description of your system's C++ link characteristics
10928
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10929
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10933
# FIXME: insert proper C++ library support
10937
if test "$host_cpu" = ia64; then
10938
# On IA64, the linker does run time linking by default, so we don't
10939
# have to do anything special.
10940
aix_use_runtimelinking=no
10941
exp_sym_flag='-Bexport'
10944
aix_use_runtimelinking=no
10946
# Test if we are trying to use run time linking or normal
10947
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10948
# need to do runtime linking.
10949
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10950
for ld_flag in $LDFLAGS; do
10953
aix_use_runtimelinking=yes
10961
exp_sym_flag='-bexport'
10962
no_entry_flag='-bnoentry'
10965
# When large executables or shared objects are built, AIX ld can
10966
# have problems creating the table of contents. If linking a library
10967
# or program results in "error TOC overflow" add -mminimal-toc to
10968
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10969
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10971
archive_cmds_CXX=''
10972
hardcode_direct_CXX=yes
10973
hardcode_libdir_separator_CXX=':'
10974
link_all_deplibs_CXX=yes
10976
if test "$GXX" = yes; then
10977
case $host_os in aix4.[012]|aix4.[012].*)
10978
# We only want to do this on AIX 4.2 and lower, the check
10979
# below for broken collect2 doesn't work under 4.3+
10980
collect2name=`${CC} -print-prog-name=collect2`
10981
if test -f "$collect2name" && \
10982
strings "$collect2name" | grep resolve_lib_name >/dev/null
10984
# We have reworked collect2
10985
hardcode_direct_CXX=yes
10987
# We have old collect2
10988
hardcode_direct_CXX=unsupported
10989
# It fails to find uninstalled libraries when the uninstalled
10990
# path is not listed in the libpath. Setting hardcode_minus_L
10991
# to unsupported forces relinking
10992
hardcode_minus_L_CXX=yes
10993
hardcode_libdir_flag_spec_CXX='-L$libdir'
10994
hardcode_libdir_separator_CXX=
10998
shared_flag='-shared'
10999
if test "$aix_use_runtimelinking" = yes; then
11000
shared_flag="$shared_flag "'${wl}-G'
11004
if test "$host_cpu" = ia64; then
11005
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11006
# chokes on -Wl,-G. The following line is correct:
11009
if test "$aix_use_runtimelinking" = yes; then
11010
shared_flag='${wl}-G'
11012
shared_flag='${wl}-bM:SRE'
11017
# It seems that -bexpall does not export symbols beginning with
11018
# underscore (_), so it is better to generate a list of symbols to export.
11019
always_export_symbols_CXX=yes
11020
if test "$aix_use_runtimelinking" = yes; then
11021
# Warning - without using the other runtime loading flags (-brtl),
11022
# -berok will link without error, but may produce a broken library.
11023
allow_undefined_flag_CXX='-berok'
11024
# Determine the default libpath from the value encoded in an empty executable.
11025
cat >conftest.$ac_ext <<_ACEOF
11028
cat confdefs.h >>conftest.$ac_ext
11029
cat >>conftest.$ac_ext <<_ACEOF
11030
/* end confdefs.h. */
11040
rm -f conftest.$ac_objext conftest$ac_exeext
11041
if { (ac_try="$ac_link"
11042
case "(($ac_try" in
11043
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11044
*) ac_try_echo=$ac_try;;
11046
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11047
(eval "$ac_link") 2>conftest.er1
11049
grep -v '^ *+' conftest.er1 >conftest.err
11051
cat conftest.err >&5
11052
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11053
(exit $ac_status); } &&
11054
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11055
{ (case "(($ac_try" in
11056
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11057
*) ac_try_echo=$ac_try;;
11059
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11060
(eval "$ac_try") 2>&5
11062
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11063
(exit $ac_status); }; } &&
11064
{ ac_try='test -s conftest$ac_exeext'
11065
{ (case "(($ac_try" in
11066
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11067
*) ac_try_echo=$ac_try;;
11069
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11070
(eval "$ac_try") 2>&5
11072
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11073
(exit $ac_status); }; }; then
11075
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11077
# Check for a 64-bit object if we didn't find anything.
11078
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11081
echo "$as_me: failed program was:" >&5
11082
sed 's/^/| /' conftest.$ac_ext >&5
11087
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11088
conftest$ac_exeext conftest.$ac_ext
11089
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11091
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11093
archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11095
if test "$host_cpu" = ia64; then
11096
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11097
allow_undefined_flag_CXX="-z nodefs"
11098
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"
11100
# Determine the default libpath from the value encoded in an empty executable.
11101
cat >conftest.$ac_ext <<_ACEOF
11104
cat confdefs.h >>conftest.$ac_ext
11105
cat >>conftest.$ac_ext <<_ACEOF
11106
/* end confdefs.h. */
11116
rm -f conftest.$ac_objext conftest$ac_exeext
11117
if { (ac_try="$ac_link"
11118
case "(($ac_try" in
11119
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11120
*) ac_try_echo=$ac_try;;
11122
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11123
(eval "$ac_link") 2>conftest.er1
11125
grep -v '^ *+' conftest.er1 >conftest.err
11127
cat conftest.err >&5
11128
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11129
(exit $ac_status); } &&
11130
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11131
{ (case "(($ac_try" in
11132
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11133
*) ac_try_echo=$ac_try;;
11135
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11136
(eval "$ac_try") 2>&5
11138
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11139
(exit $ac_status); }; } &&
11140
{ ac_try='test -s conftest$ac_exeext'
11141
{ (case "(($ac_try" in
11142
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11143
*) ac_try_echo=$ac_try;;
11145
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11146
(eval "$ac_try") 2>&5
11148
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11149
(exit $ac_status); }; }; then
11151
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11153
# Check for a 64-bit object if we didn't find anything.
11154
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11157
echo "$as_me: failed program was:" >&5
11158
sed 's/^/| /' conftest.$ac_ext >&5
11163
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11164
conftest$ac_exeext conftest.$ac_ext
11165
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11167
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11168
# Warning - without using the other run time loading flags,
11169
# -berok will link without error, but may produce a broken library.
11170
no_undefined_flag_CXX=' ${wl}-bernotok'
11171
allow_undefined_flag_CXX=' ${wl}-berok'
11172
# Exported symbols can be pulled into shared objects from archives
11173
whole_archive_flag_spec_CXX='$convenience'
11174
archive_cmds_need_lc_CXX=yes
11175
# This is similar to how AIX traditionally builds its shared libraries.
11176
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'
11182
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11183
allow_undefined_flag_CXX=unsupported
11184
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11185
# support --undefined. This deserves some investigation. FIXME
11186
archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11193
case $cc_basename in
11195
# FIXME: insert proper C++ library support
11201
cygwin* | mingw* | pw32*)
11202
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11203
# as there is no search path for DLLs.
11204
hardcode_libdir_flag_spec_CXX='-L$libdir'
11205
allow_undefined_flag_CXX=unsupported
11206
always_export_symbols_CXX=no
11207
enable_shared_with_static_runtimes_CXX=yes
11209
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11210
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'
11211
# If the export-symbols file already is a .def file (1st line
11212
# is EXPORTS), use it as is; otherwise, prepend...
11213
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11214
cp $export_symbols $output_objdir/$soname.def;
11216
echo EXPORTS > $output_objdir/$soname.def;
11217
cat $export_symbols >> $output_objdir/$soname.def;
11219
$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'
11224
darwin* | rhapsody*)
11226
rhapsody* | darwin1.[012])
11227
allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11230
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11231
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11233
case ${MACOSX_DEPLOYMENT_TARGET} in
11235
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11238
allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11244
archive_cmds_need_lc_CXX=no
11245
hardcode_direct_CXX=no
11246
hardcode_automatic_CXX=yes
11247
hardcode_shlibpath_var_CXX=unsupported
11248
whole_archive_flag_spec_CXX=''
11249
link_all_deplibs_CXX=yes
11251
if test "$GXX" = yes ; then
11252
lt_int_apple_cc_single_mod=no
11253
output_verbose_link_cmd='echo'
11254
if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11255
lt_int_apple_cc_single_mod=yes
11257
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11258
archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11260
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'
11262
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11263
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11264
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11265
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11267
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11269
module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11271
case $cc_basename in
11273
output_verbose_link_cmd='echo'
11274
archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11275
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11276
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11277
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11278
module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11288
case $cc_basename in
11290
# FIXME: insert proper C++ library support
11294
# Green Hills C++ Compiler
11295
# FIXME: insert proper C++ library support
11299
# FIXME: insert proper C++ library support
11305
# C++ shared libraries reported to be fairly broken before switch to ELF
11309
archive_cmds_need_lc_CXX=no
11311
freebsd* | kfreebsd*-gnu | dragonfly*)
11312
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11319
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11320
hardcode_libdir_separator_CXX=:
11321
export_dynamic_flag_spec_CXX='${wl}-E'
11322
hardcode_direct_CXX=yes
11323
hardcode_minus_L_CXX=yes # Not in the search PATH,
11324
# but as the default
11325
# location of the library.
11327
case $cc_basename in
11329
# FIXME: insert proper C++ library support
11333
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'
11334
# Commands to make compiler produce verbose output that lists
11335
# what "hidden" libraries, object files and flags are used when
11336
# linking a shared library.
11338
# There doesn't appear to be a way to prevent this compiler from
11339
# explicitly linking system object files so we need to strip them
11340
# from the output so that they don't get included in the library
11342
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11345
if test "$GXX" = yes; then
11346
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'
11348
# FIXME: insert proper C++ library support
11355
if test $with_gnu_ld = no; then
11356
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11357
hardcode_libdir_separator_CXX=:
11361
hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11364
export_dynamic_flag_spec_CXX='${wl}-E'
11370
hardcode_direct_CXX=no
11371
hardcode_shlibpath_var_CXX=no
11374
hardcode_direct_CXX=yes
11375
hardcode_minus_L_CXX=yes # Not in the search PATH,
11376
# but as the default
11377
# location of the library.
11381
case $cc_basename in
11383
# FIXME: insert proper C++ library support
11389
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11392
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11395
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11398
# Commands to make compiler produce verbose output that lists
11399
# what "hidden" libraries, object files and flags are used when
11400
# linking a shared library.
11402
# There doesn't appear to be a way to prevent this compiler from
11403
# explicitly linking system object files so we need to strip them
11404
# from the output so that they don't get included in the library
11406
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11409
if test "$GXX" = yes; then
11410
if test $with_gnu_ld = no; then
11413
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11416
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11419
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'
11424
# FIXME: insert proper C++ library support
11431
hardcode_direct_CXX=no
11432
hardcode_shlibpath_var_CXX=no
11433
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11434
export_dynamic_flag_spec_CXX='${wl}-E'
11435
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11436
# Instead, shared libraries are loaded at an image base (0x10000000 by
11437
# default) and relocated if they conflict, which is a slow very memory
11438
# consuming and fragmenting process. To avoid this, we pick a random,
11439
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11440
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
11441
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'
11442
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'
11445
case $cc_basename in
11448
archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11450
# Archives containing C++ object files must be created using
11451
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
11452
# necessary to make sure instantiated templates are included
11454
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11457
if test "$GXX" = yes; then
11458
if test "$with_gnu_ld" = no; then
11459
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11461
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
11464
link_all_deplibs_CXX=yes
11467
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11468
hardcode_libdir_separator_CXX=:
11471
case $cc_basename in
11473
# Kuck and Associates, Inc. (KAI) C++ Compiler
11475
# KCC will only create a shared library if the output file
11476
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11477
# to its proper name (with version) after linking.
11478
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'
11479
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'
11480
# Commands to make compiler produce verbose output that lists
11481
# what "hidden" libraries, object files and flags are used when
11482
# linking a shared library.
11484
# There doesn't appear to be a way to prevent this compiler from
11485
# explicitly linking system object files so we need to strip them
11486
# from the output so that they don't get included in the library
11488
output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11490
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11491
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11493
# Archives containing C++ object files must be created using
11494
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11495
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11500
# version 8.0 and above of icpc choke on multiply defined symbols
11501
# if we add $predep_objects and $postdep_objects, however 7.1 and
11502
# earlier do not add the objects themselves.
11503
case `$CC -V 2>&1` in
11505
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11506
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'
11508
*) # Version 8.0 or newer
11511
ia64*) tmp_idyn=' -i_dynamic';;
11513
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11514
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'
11517
archive_cmds_need_lc_CXX=no
11518
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11519
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11520
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11523
# Portland Group C++ compiler
11524
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11525
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'
11527
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11528
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11529
whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11533
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11534
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'
11536
runpath_var=LD_RUN_PATH
11537
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11538
hardcode_libdir_separator_CXX=:
11540
# Commands to make compiler produce verbose output that lists
11541
# what "hidden" libraries, object files and flags are used when
11542
# linking a shared library.
11544
# There doesn't appear to be a way to prevent this compiler from
11545
# explicitly linking system object files so we need to strip them
11546
# from the output so that they don't get included in the library
11548
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $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; echo $list'
11553
# FIXME: insert proper C++ library support
11557
# FIXME: insert proper C++ library support
11561
case $cc_basename in
11563
# FIXME: insert proper C++ library support
11567
# FIXME: insert proper C++ library support
11573
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11574
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11576
hardcode_libdir_flag_spec_CXX='-R$libdir'
11577
hardcode_direct_CXX=yes
11578
hardcode_shlibpath_var_CXX=no
11580
# Workaround some broken pre-1.5 toolchains
11581
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11584
# C++ shared libraries are fairly broken
11588
hardcode_direct_CXX=yes
11589
hardcode_shlibpath_var_CXX=no
11590
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11591
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11592
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11593
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11594
export_dynamic_flag_spec_CXX='${wl}-E'
11595
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11597
output_verbose_link_cmd='echo'
11600
case $cc_basename in
11602
# Kuck and Associates, Inc. (KAI) C++ Compiler
11604
# KCC will only create a shared library if the output file
11605
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11606
# to its proper name (with version) after linking.
11607
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'
11609
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11610
hardcode_libdir_separator_CXX=:
11612
# Archives containing C++ object files must be created using
11613
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11614
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11618
# Rational C++ 2.4.1
11619
# FIXME: insert proper C++ library support
11623
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11624
archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11626
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11627
hardcode_libdir_separator_CXX=:
11629
# Commands to make compiler produce verbose output that lists
11630
# what "hidden" libraries, object files and flags are used when
11631
# linking a shared library.
11633
# There doesn't appear to be a way to prevent this compiler from
11634
# explicitly linking system object files so we need to strip them
11635
# from the output so that they don't get included in the library
11637
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $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; echo $list'
11640
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11641
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11642
archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11644
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11645
hardcode_libdir_separator_CXX=:
11647
# Commands to make compiler produce verbose output that lists
11648
# what "hidden" libraries, object files and flags are used when
11649
# linking a shared library.
11650
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11653
# FIXME: insert proper C++ library support
11660
case $cc_basename in
11662
# Kuck and Associates, Inc. (KAI) C++ Compiler
11664
# KCC will only create a shared library if the output file
11665
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11666
# to its proper name (with version) after linking.
11667
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'
11669
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11670
hardcode_libdir_separator_CXX=:
11672
# Archives containing C++ object files must be created using
11673
# the KAI C++ compiler.
11674
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11677
# Rational C++ 2.4.1
11678
# FIXME: insert proper C++ library support
11682
allow_undefined_flag_CXX=' -expect_unresolved \*'
11683
archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11684
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11685
echo "-hidden">> $lib.exp~
11686
$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~
11689
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11690
hardcode_libdir_separator_CXX=:
11692
# Commands to make compiler produce verbose output that lists
11693
# what "hidden" libraries, object files and flags are used when
11694
# linking a shared library.
11696
# There doesn't appear to be a way to prevent this compiler from
11697
# explicitly linking system object files so we need to strip them
11698
# from the output so that they don't get included in the library
11700
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $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; echo $list'
11703
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11704
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11705
archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11707
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11708
hardcode_libdir_separator_CXX=:
11710
# Commands to make compiler produce verbose output that lists
11711
# what "hidden" libraries, object files and flags are used when
11712
# linking a shared library.
11713
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11716
# FIXME: insert proper C++ library support
11723
# FIXME: insert proper C++ library support
11727
case $cc_basename in
11730
# FIXME: insert proper C++ library support
11735
# FIXME: insert proper C++ library support
11739
# FIXME: insert proper C++ library support
11745
case $cc_basename in
11747
# Sun C++ 4.2, 5.x and Centerline C++
11748
archive_cmds_need_lc_CXX=yes
11749
no_undefined_flag_CXX=' -zdefs'
11750
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11751
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11752
$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'
11754
hardcode_libdir_flag_spec_CXX='-R$libdir'
11755
hardcode_shlibpath_var_CXX=no
11757
solaris2.[0-5] | solaris2.[0-5].*) ;;
11759
# The C++ compiler is used as linker so we must use $wl
11760
# flag to pass the commands to the underlying system
11761
# linker. We must also pass each convience library through
11762
# to the system linker between allextract/defaultextract.
11763
# The C++ compiler will combine linker options so we
11764
# cannot just pass the convience library names through
11766
# Supported since Solaris 2.6 (maybe 2.5.1?)
11767
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11770
link_all_deplibs_CXX=yes
11772
output_verbose_link_cmd='echo'
11774
# Archives containing C++ object files must be created using
11775
# "CC -xar", where "CC" is the Sun C++ compiler. This is
11776
# necessary to make sure instantiated templates are included
11778
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11781
# Green Hills C++ Compiler
11782
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11784
# The C++ compiler must be used to create the archive.
11785
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11788
# GNU C++ compiler with Solaris linker
11789
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11790
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11791
if $CC --version | grep -v '^2\.7' > /dev/null; then
11792
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11793
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11794
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11796
# Commands to make compiler produce verbose output that lists
11797
# what "hidden" libraries, object files and flags are used when
11798
# linking a shared library.
11799
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11801
# g++ 2.7 appears to require `-G' NOT `-shared' on this
11803
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11804
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11805
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11807
# Commands to make compiler produce verbose output that lists
11808
# what "hidden" libraries, object files and flags are used when
11809
# linking a shared library.
11810
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11813
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11818
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11819
no_undefined_flag_CXX='${wl}-z,text'
11820
archive_cmds_need_lc_CXX=no
11821
hardcode_shlibpath_var_CXX=no
11822
runpath_var='LD_RUN_PATH'
11824
case $cc_basename in
11826
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11827
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11830
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11831
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11835
sysv5* | sco3.2v5* | sco5v6*)
11836
# Note: We can NOT use -z defs as we might desire, because we do not
11837
# link with -lc, and that would cause any symbols used from libc to
11838
# always be unresolved, which means just about no library would
11839
# ever link correctly. If we're not using GNU ld we use -z text
11840
# though, which does catch some bad symbols but isn't as heavy-handed
11842
# For security reasons, it is highly recommended that you always
11843
# use absolute paths for naming shared libraries, and exclude the
11844
# DT_RUNPATH tag from executables and libraries. But doing so
11845
# requires that you compile everything twice, which is a pain.
11846
# So that behaviour is only enabled if SCOABSPATH is set to a
11847
# non-empty value in the environment. Most likely only useful for
11848
# creating official distributions of packages.
11849
# This is a hack until libtool officially supports absolute path
11850
# names for shared libraries.
11851
no_undefined_flag_CXX='${wl}-z,text'
11852
allow_undefined_flag_CXX='${wl}-z,nodefs'
11853
archive_cmds_need_lc_CXX=no
11854
hardcode_shlibpath_var_CXX=no
11855
hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11856
hardcode_libdir_separator_CXX=':'
11857
link_all_deplibs_CXX=yes
11858
export_dynamic_flag_spec_CXX='${wl}-Bexport'
11859
runpath_var='LD_RUN_PATH'
11861
case $cc_basename in
11863
archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11864
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11867
archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11868
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11873
case $cc_basename in
11875
# NonStop-UX NCC 3.20
11876
# FIXME: insert proper C++ library support
11880
# FIXME: insert proper C++ library support
11886
# FIXME: insert proper C++ library support
11890
# FIXME: insert proper C++ library support
11894
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11895
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11896
test "$ld_shlibs_CXX" = no && can_build_shared=no
11902
## There is no encapsulation within the following macros, do not change
11903
## the running order or otherwise move them around unless you know exactly
11904
## what you are doing...
11906
cat > conftest.$ac_ext <<EOF
11910
Foo (void) { a = 0; }
11916
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11917
(eval $ac_compile) 2>&5
11919
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11920
(exit $ac_status); }; then
11921
# Parse the compiler output and extract the necessary
11922
# objects, libraries and library flags.
11924
# Sentinel used to keep track of whether or not we are before
11925
# the conftest object file.
11926
pre_test_object_deps_done=no
11928
# The `*' in the case matches for architectures that use `case' in
11929
# $output_verbose_cmd can trigger glob expansion during the loop
11930
# eval without this substitution.
11931
output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11933
for p in `eval $output_verbose_link_cmd`; do
11937
# Some compilers place space between "-{L,R}" and the path.
11938
# Remove the space.
11939
if test $p = "-L" \
11940
|| test $p = "-R"; then
11947
if test "$pre_test_object_deps_done" = no; then
11950
# Internal compiler library paths should come after those
11951
# provided the user. The postdeps already come after the
11952
# user supplied libs so there is no need to process them.
11953
if test -z "$compiler_lib_search_path_CXX"; then
11954
compiler_lib_search_path_CXX="${prev}${p}"
11956
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11959
# The "-l" case would never come before the object being
11960
# linked, so don't bother handling this case.
11963
if test -z "$postdeps_CXX"; then
11964
postdeps_CXX="${prev}${p}"
11966
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11972
# This assumes that the test object file only shows up
11973
# once in the compiler output.
11974
if test "$p" = "conftest.$objext"; then
11975
pre_test_object_deps_done=yes
11979
if test "$pre_test_object_deps_done" = no; then
11980
if test -z "$predep_objects_CXX"; then
11981
predep_objects_CXX="$p"
11983
predep_objects_CXX="$predep_objects_CXX $p"
11986
if test -z "$postdep_objects_CXX"; then
11987
postdep_objects_CXX="$p"
11989
postdep_objects_CXX="$postdep_objects_CXX $p"
11994
*) ;; # Ignore the rest.
12002
echo "libtool.m4: error: problem compiling CXX test program"
12005
$rm -f confest.$objext
12007
# PORTME: override above test on systems where it is broken
12010
# Interix 3.5 installs completely hosed .la files for C++, so rather than
12011
# hack all around it, let's just trust "g++" to DTRT.
12012
predep_objects_CXX=
12013
postdep_objects_CXX=
12018
case $cc_basename in
12020
# Adding this requires a known-good setup of shared libraries for
12021
# Sun compiler versions before 5.6, else PIC objects from an old
12022
# archive will be linked into the output, leading to subtle bugs.
12023
postdeps_CXX='-lCstd -lCrun'
12030
case " $postdeps_CXX " in
12031
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12034
lt_prog_compiler_wl_CXX=
12035
lt_prog_compiler_pic_CXX=
12036
lt_prog_compiler_static_CXX=
12038
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12039
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12041
# C++ specific cases for pic, static, wl, etc.
12042
if test "$GXX" = yes; then
12043
lt_prog_compiler_wl_CXX='-Wl,'
12044
lt_prog_compiler_static_CXX='-static'
12048
# All AIX code is PIC.
12049
if test "$host_cpu" = ia64; then
12050
# AIX 5 now supports IA64 processor
12051
lt_prog_compiler_static_CXX='-Bstatic'
12055
# FIXME: we need at least 68020 code to build shared libraries, but
12056
# adding the `-m68020' flag to GCC prevents building anything better,
12058
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12060
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12061
# PIC is the default for these OSes.
12063
mingw* | os2* | pw32*)
12064
# This hack is so that the source file can tell whether it is being
12065
# built for inclusion in a dll (and should export symbols for example).
12066
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12068
darwin* | rhapsody*)
12069
# PIC is the default on this platform
12070
# Common symbols not allowed in MH_DYLIB files
12071
lt_prog_compiler_pic_CXX='-fno-common'
12074
# DJGPP does not support shared libraries at all
12075
lt_prog_compiler_pic_CXX=
12078
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
12079
# Instead, we relocate shared libraries at runtime.
12082
if test -d /usr/nec; then
12083
lt_prog_compiler_pic_CXX=-Kconform_pic
12087
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12088
# not for PA HP-UX.
12093
lt_prog_compiler_pic_CXX='-fPIC'
12098
lt_prog_compiler_pic_CXX='-fPIC'
12104
# All AIX code is PIC.
12105
if test "$host_cpu" = ia64; then
12106
# AIX 5 now supports IA64 processor
12107
lt_prog_compiler_static_CXX='-Bstatic'
12109
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12113
case $cc_basename in
12115
# Green Hills C++ Compiler
12116
# _LT_AC_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"
12121
# PIC is the default on this platform
12122
# Common symbols not allowed in MH_DYLIB files
12123
case $cc_basename in
12125
lt_prog_compiler_pic_CXX='-qnocommon'
12126
lt_prog_compiler_wl_CXX='-Wl,'
12131
case $cc_basename in
12133
lt_prog_compiler_pic_CXX='-KPIC'
12136
# Green Hills C++ Compiler
12137
lt_prog_compiler_pic_CXX='-pic'
12143
freebsd* | kfreebsd*-gnu | dragonfly*)
12144
# FreeBSD uses GNU C++
12146
hpux9* | hpux10* | hpux11*)
12147
case $cc_basename in
12149
lt_prog_compiler_wl_CXX='-Wl,'
12150
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12151
if test "$host_cpu" != ia64; then
12152
lt_prog_compiler_pic_CXX='+Z'
12156
lt_prog_compiler_wl_CXX='-Wl,'
12157
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12163
lt_prog_compiler_pic_CXX='+Z'
12172
# This is c89, which is MS Visual C++ (no shared libs)
12173
# Anyone wants to do a port?
12175
irix5* | irix6* | nonstopux*)
12176
case $cc_basename in
12178
lt_prog_compiler_wl_CXX='-Wl,'
12179
lt_prog_compiler_static_CXX='-non_shared'
12180
# CC pic flag -KPIC is the default.
12187
case $cc_basename in
12190
lt_prog_compiler_wl_CXX='--backend -Wl,'
12191
lt_prog_compiler_pic_CXX='-fPIC'
12195
lt_prog_compiler_wl_CXX='-Wl,'
12196
lt_prog_compiler_pic_CXX='-KPIC'
12197
lt_prog_compiler_static_CXX='-static'
12200
# Portland Group C++ compiler.
12201
lt_prog_compiler_wl_CXX='-Wl,'
12202
lt_prog_compiler_pic_CXX='-fpic'
12203
lt_prog_compiler_static_CXX='-Bstatic'
12207
# Make sure the PIC flag is empty. It appears that all Alpha
12208
# Linux and Compaq Tru64 Unix objects are PIC.
12209
lt_prog_compiler_pic_CXX=
12210
lt_prog_compiler_static_CXX='-non_shared'
12221
case $cc_basename in
12223
lt_prog_compiler_pic_CXX='-W c,exportall'
12231
osf3* | osf4* | osf5*)
12232
case $cc_basename in
12234
lt_prog_compiler_wl_CXX='--backend -Wl,'
12237
# Rational C++ 2.4.1
12238
lt_prog_compiler_pic_CXX='-pic'
12241
# Digital/Compaq C++
12242
lt_prog_compiler_wl_CXX='-Wl,'
12243
# Make sure the PIC flag is empty. It appears that all Alpha
12244
# Linux and Compaq Tru64 Unix objects are PIC.
12245
lt_prog_compiler_pic_CXX=
12246
lt_prog_compiler_static_CXX='-non_shared'
12255
case $cc_basename in
12257
# Sun C++ 4.2, 5.x and Centerline C++
12258
lt_prog_compiler_pic_CXX='-KPIC'
12259
lt_prog_compiler_static_CXX='-Bstatic'
12260
lt_prog_compiler_wl_CXX='-Qoption ld '
12263
# Green Hills C++ Compiler
12264
lt_prog_compiler_pic_CXX='-PIC'
12271
case $cc_basename in
12274
lt_prog_compiler_pic_CXX='-pic'
12275
lt_prog_compiler_static_CXX='-Bstatic'
12279
lt_prog_compiler_pic_CXX='-pic'
12286
case $cc_basename in
12288
# NonStop-UX NCC 3.20
12289
lt_prog_compiler_pic_CXX='-KPIC'
12295
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12296
case $cc_basename in
12298
lt_prog_compiler_wl_CXX='-Wl,'
12299
lt_prog_compiler_pic_CXX='-KPIC'
12300
lt_prog_compiler_static_CXX='-Bstatic'
12307
lt_prog_compiler_can_build_shared_CXX=no
12312
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12313
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12316
# Check to make sure the PIC flag actually works.
12318
if test -n "$lt_prog_compiler_pic_CXX"; then
12320
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12321
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12322
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12323
echo $ECHO_N "(cached) $ECHO_C" >&6
12325
lt_prog_compiler_pic_works_CXX=no
12326
ac_outfile=conftest.$ac_objext
12327
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12328
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12329
# Insert the option either (1) after the last *FLAGS variable, or
12330
# (2) before a word containing "conftest.", or (3) at the end.
12331
# Note that $ac_compile itself does not contain backslashes and begins
12332
# with a dollar sign (not a hyphen), so the echo should work correctly.
12333
# The option is referenced via a variable to avoid confusing sed.
12334
lt_compile=`echo "$ac_compile" | $SED \
12335
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12336
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12337
-e 's:$: $lt_compiler_flag:'`
12338
(eval echo "\"\$as_me:12338: $lt_compile\"" >&5)
12339
(eval "$lt_compile" 2>conftest.err)
12341
cat conftest.err >&5
12342
echo "$as_me:12342: \$? = $ac_status" >&5
12343
if (exit $ac_status) && test -s "$ac_outfile"; then
12344
# The compiler can only warn and ignore the option if not recognized
12345
# So say no if there are warnings other than the usual output.
12346
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12347
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12348
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12349
lt_prog_compiler_pic_works_CXX=yes
12355
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12356
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12358
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12359
case $lt_prog_compiler_pic_CXX in
12361
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12364
lt_prog_compiler_pic_CXX=
12365
lt_prog_compiler_can_build_shared_CXX=no
12370
# For platforms which do not support PIC, -DPIC is meaningless:
12372
lt_prog_compiler_pic_CXX=
12375
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12380
# Check to make sure the static flag actually works.
12382
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12383
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12384
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12385
if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12386
echo $ECHO_N "(cached) $ECHO_C" >&6
12388
lt_prog_compiler_static_works_CXX=no
12389
save_LDFLAGS="$LDFLAGS"
12390
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12391
printf "$lt_simple_link_test_code" > conftest.$ac_ext
12392
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12393
# The linker can only warn and ignore the option if not recognized
12394
# So say no if there are warnings
12395
if test -s conftest.err; then
12396
# Append any errors to the config.log.
12397
cat conftest.err 1>&5
12398
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12399
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12400
if diff conftest.exp conftest.er2 >/dev/null; then
12401
lt_prog_compiler_static_works_CXX=yes
12404
lt_prog_compiler_static_works_CXX=yes
12408
LDFLAGS="$save_LDFLAGS"
12411
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12412
echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12414
if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12417
lt_prog_compiler_static_CXX=
12421
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12422
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12423
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12424
echo $ECHO_N "(cached) $ECHO_C" >&6
12426
lt_cv_prog_compiler_c_o_CXX=no
12427
$rm -r conftest 2>/dev/null
12431
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12433
lt_compiler_flag="-o out/conftest2.$ac_objext"
12434
# Insert the option either (1) after the last *FLAGS variable, or
12435
# (2) before a word containing "conftest.", or (3) at the end.
12436
# Note that $ac_compile itself does not contain backslashes and begins
12437
# with a dollar sign (not a hyphen), so the echo should work correctly.
12438
lt_compile=`echo "$ac_compile" | $SED \
12439
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12440
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12441
-e 's:$: $lt_compiler_flag:'`
12442
(eval echo "\"\$as_me:12442: $lt_compile\"" >&5)
12443
(eval "$lt_compile" 2>out/conftest.err)
12445
cat out/conftest.err >&5
12446
echo "$as_me:12446: \$? = $ac_status" >&5
12447
if (exit $ac_status) && test -s out/conftest2.$ac_objext
12449
# The compiler can only warn and ignore the option if not recognized
12450
# So say no if there are warnings
12451
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12452
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12453
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12454
lt_cv_prog_compiler_c_o_CXX=yes
12459
# SGI C++ compiler will create directory out/ii_files/ for
12460
# template instantiation
12461
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12462
$rm out/* && rmdir out
12468
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12469
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12472
hard_links="nottested"
12473
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12474
# do not overwrite the value of need_locks provided by the user
12475
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12476
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12479
ln conftest.a conftest.b 2>/dev/null && hard_links=no
12481
ln conftest.a conftest.b 2>&5 || hard_links=no
12482
ln conftest.a conftest.b 2>/dev/null && hard_links=no
12483
{ echo "$as_me:$LINENO: result: $hard_links" >&5
12484
echo "${ECHO_T}$hard_links" >&6; }
12485
if test "$hard_links" = no; then
12486
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12487
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12494
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12495
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12497
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12500
# If we're using GNU nm, then we don't want the "-C" option.
12501
# -C means demangle to AIX nm, but means don't demangle with GNU nm
12502
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12503
export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12505
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'
12509
export_symbols_cmds_CXX="$ltdll_cmds"
12512
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'
12515
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12519
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12520
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12521
test "$ld_shlibs_CXX" = no && can_build_shared=no
12524
# Do we need to explicitly link libc?
12526
case "x$archive_cmds_need_lc_CXX" in
12528
# Assume -lc should be added
12529
archive_cmds_need_lc_CXX=yes
12531
if test "$enable_shared" = yes && test "$GCC" = yes; then
12532
case $archive_cmds_CXX in
12534
# FIXME: we may have to deal with multi-command sequences.
12537
# Test whether the compiler implicitly links with -lc since on some
12538
# systems, -lgcc has to come before -lc. If gcc already passes -lc
12539
# to ld, don't add -lc before -lgcc.
12540
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12541
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12543
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12545
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12546
(eval $ac_compile) 2>&5
12548
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549
(exit $ac_status); } 2>conftest.err; then
12552
libobjs=conftest.$ac_objext
12554
wl=$lt_prog_compiler_wl_CXX
12555
pic_flag=$lt_prog_compiler_pic_CXX
12561
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12562
allow_undefined_flag_CXX=
12563
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12564
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12566
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12567
(exit $ac_status); }
12569
archive_cmds_need_lc_CXX=no
12571
archive_cmds_need_lc_CXX=yes
12573
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12575
cat conftest.err 1>&5
12578
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12579
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12586
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12587
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12588
library_names_spec=
12589
libname_spec='lib$name'
12593
postuninstall_cmds=
12597
shlibpath_overrides_runpath=unknown
12599
dynamic_linker="$host_os ld.so"
12600
sys_lib_dlsearch_path_spec="/lib /usr/lib"
12601
if test "$GCC" = yes; then
12602
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12603
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12604
# if the path contains ";" then we assume it to be the separator
12605
# otherwise default to the standard path separator (i.e. ":") - it is
12606
# assumed that no part of a normal pathname contains ";" but that should
12607
# okay in the real world where ";" in dirpaths is itself problematic.
12608
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12610
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12613
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12615
need_lib_prefix=unknown
12616
hardcode_into_libs=no
12618
# when you set need_version to no, make sure it does not cause -set_version
12619
# flags to be left without arguments
12620
need_version=unknown
12625
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12626
shlibpath_var=LIBPATH
12628
# AIX 3 has no versioning support, so we append a major version to the name.
12629
soname_spec='${libname}${release}${shared_ext}$major'
12636
hardcode_into_libs=yes
12637
if test "$host_cpu" = ia64; then
12638
# AIX 5 supports IA64
12639
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12640
shlibpath_var=LD_LIBRARY_PATH
12642
# With GCC up to 2.95.x, collect2 would create an import file
12643
# for dependence libraries. The import file would start with
12644
# the line `#! .'. This would cause the generated library to
12645
# depend on `.', always an invalid library. This was fixed in
12646
# development snapshots of GCC prior to 3.0.
12648
aix4 | aix4.[01] | aix4.[01].*)
12649
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12651
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12654
can_build_shared=no
12658
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12659
# soname into executable. Probably we can add versioning support to
12660
# collect2, so additional links can be useful in future.
12661
if test "$aix_use_runtimelinking" = yes; then
12662
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
12663
# instead of lib<name>.a to let people know that these are not
12664
# typical AIX shared libraries.
12665
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12667
# We preserve .a as extension for shared libraries through AIX4.2
12668
# and later when we are not doing run time linking.
12669
library_names_spec='${libname}${release}.a $libname.a'
12670
soname_spec='${libname}${release}${shared_ext}$major'
12672
shlibpath_var=LIBPATH
12677
library_names_spec='$libname.ixlibrary $libname.a'
12678
# Create ${libname}_ixlibrary.a entries in /sys/libs.
12679
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
12683
library_names_spec='${libname}${shared_ext}'
12684
dynamic_linker="$host_os ld.so"
12685
shlibpath_var=LIBRARY_PATH
12691
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12692
soname_spec='${libname}${release}${shared_ext}$major'
12693
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12694
shlibpath_var=LD_LIBRARY_PATH
12695
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12696
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12697
# the default ld.so.conf also contains /usr/contrib/lib and
12698
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12699
# libtool to hard-code these into programs
12702
cygwin* | mingw* | pw32*)
12703
version_type=windows
12708
case $GCC,$host_os in
12709
yes,cygwin* | yes,mingw* | yes,pw32*)
12710
library_names_spec='$libname.dll.a'
12711
# DLL is installed to $(libdir)/../bin by postinstall_cmds
12712
postinstall_cmds='base_file=`basename \${file}`~
12713
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12714
dldir=$destdir/`dirname \$dlpath`~
12715
test -d \$dldir || mkdir -p \$dldir~
12716
$install_prog $dir/$dlname \$dldir/$dlname~
12717
chmod a+x \$dldir/$dlname'
12718
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12719
dlpath=$dir/\$dldll~
12721
shlibpath_overrides_runpath=yes
12725
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
12726
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12727
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12730
# MinGW DLLs use traditional 'lib' prefix
12731
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12732
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12733
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12734
# It is most probably a Windows format PATH printed by
12735
# mingw gcc, but we are running on Cygwin. Gcc prints its search
12736
# path with ; separators, and with drive letters. We can handle the
12737
# drive letters (cygwin fileutils understands them), so leave them,
12738
# especially as we might pass files found there to a mingw objdump,
12739
# which wouldn't understand a cygwinified path. Ahh.
12740
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12742
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12746
# pw32 DLLs use 'pw' prefix rather than 'lib'
12747
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12753
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12756
dynamic_linker='Win32 ld.exe'
12757
# FIXME: first we should search . and the directory the executable is in
12761
darwin* | rhapsody*)
12762
dynamic_linker="$host_os dyld"
12763
version_type=darwin
12766
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12767
soname_spec='${libname}${release}${major}$shared_ext'
12768
shlibpath_overrides_runpath=yes
12769
shlibpath_var=DYLD_LIBRARY_PATH
12770
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12771
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12772
if test "$GCC" = yes; then
12773
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
12775
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12777
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12784
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12785
soname_spec='${libname}${release}${shared_ext}$major'
12786
shlibpath_var=LD_LIBRARY_PATH
12797
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12798
soname_spec='${libname}${release}${shared_ext}$major'
12799
shlibpath_var=LD_LIBRARY_PATH
12800
shlibpath_overrides_runpath=no
12801
hardcode_into_libs=yes
12802
dynamic_linker='GNU ld.so'
12805
freebsd* | dragonfly*)
12806
# DragonFly does not have aout. When/if they implement a new
12807
# versioning mechanism, adjust this.
12808
if test -x /usr/bin/objformat; then
12809
objformat=`/usr/bin/objformat`
12812
freebsd[123]*) objformat=aout ;;
12813
*) objformat=elf ;;
12816
version_type=freebsd-$objformat
12817
case $version_type in
12819
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12824
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12828
shlibpath_var=LD_LIBRARY_PATH
12831
shlibpath_overrides_runpath=yes
12833
freebsd3.[01]* | freebsdelf3.[01]*)
12834
shlibpath_overrides_runpath=yes
12835
hardcode_into_libs=yes
12837
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12838
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12839
shlibpath_overrides_runpath=no
12840
hardcode_into_libs=yes
12842
freebsd*) # from 4.6 on
12843
shlibpath_overrides_runpath=yes
12844
hardcode_into_libs=yes
12853
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12854
soname_spec='${libname}${release}${shared_ext}$major'
12855
shlibpath_var=LD_LIBRARY_PATH
12856
hardcode_into_libs=yes
12859
hpux9* | hpux10* | hpux11*)
12860
# Give a soname corresponding to the major version so that dld.sl refuses to
12861
# link against other versions.
12868
hardcode_into_libs=yes
12869
dynamic_linker="$host_os dld.so"
12870
shlibpath_var=LD_LIBRARY_PATH
12871
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12872
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12873
soname_spec='${libname}${release}${shared_ext}$major'
12874
if test "X$HPUX_IA64_MODE" = X32; then
12875
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12877
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12879
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12883
hardcode_into_libs=yes
12884
dynamic_linker="$host_os dld.sl"
12885
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12886
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12887
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12888
soname_spec='${libname}${release}${shared_ext}$major'
12889
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12890
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12894
dynamic_linker="$host_os dld.sl"
12895
shlibpath_var=SHLIB_PATH
12896
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12897
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12898
soname_spec='${libname}${release}${shared_ext}$major'
12901
# HP-UX runs *really* slowly unless shared libraries are mode 555.
12902
postinstall_cmds='chmod 555 $lib'
12909
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12910
soname_spec='${libname}${release}${shared_ext}$major'
12911
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12912
shlibpath_var=LD_LIBRARY_PATH
12913
shlibpath_overrides_runpath=no
12914
hardcode_into_libs=yes
12917
irix5* | irix6* | nonstopux*)
12919
nonstopux*) version_type=nonstopux ;;
12921
if test "$lt_cv_prog_gnu_ld" = yes; then
12929
soname_spec='${libname}${release}${shared_ext}$major'
12930
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12932
irix5* | nonstopux*)
12933
libsuff= shlibsuff=
12936
case $LD in # libtool.m4 will add one of these switches to LD
12937
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12938
libsuff= shlibsuff= libmagic=32-bit;;
12939
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12940
libsuff=32 shlibsuff=N32 libmagic=N32;;
12941
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12942
libsuff=64 shlibsuff=64 libmagic=64-bit;;
12943
*) libsuff= shlibsuff= libmagic=never-match;;
12947
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12948
shlibpath_overrides_runpath=no
12949
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12950
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12951
hardcode_into_libs=yes
12954
# No shared lib support for Linux oldld, aout, or coff.
12955
linux*oldld* | linux*aout* | linux*coff*)
12959
# This must be Linux ELF.
12964
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12965
soname_spec='${libname}${release}${shared_ext}$major'
12966
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12967
shlibpath_var=LD_LIBRARY_PATH
12968
shlibpath_overrides_runpath=no
12969
# This implies no fast_install, which is unacceptable.
12970
# Some rework will be needed to allow for fast_install
12971
# before this can be enabled.
12972
hardcode_into_libs=yes
12974
# find out which ABI we are using
12976
case "$host_cpu" in
12977
x86_64*|s390x*|powerpc64*)
12978
echo '#line 12978 "configure"' > conftest.$ac_ext
12979
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12980
(eval $ac_compile) 2>&5
12982
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12983
(exit $ac_status); }; then
12984
case `/usr/bin/file conftest.$ac_objext` in
12987
sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12995
# Append ld.so.conf contents to the search path
12996
if test -f /etc/ld.so.conf; then
12997
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12998
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
13001
# We used to test for /lib/ld.so.1 and disable shared libraries on
13002
# powerpc, because MkLinux only supported shared libraries with the
13003
# GNU dynamic linker. Since this was broken with cross compilers,
13004
# most powerpc-linux boxes support dynamic linking these days and
13005
# people can always --disable-shared, the test was removed, and we
13006
# assume the GNU/Linux dynamic linker is in use.
13007
dynamic_linker='GNU/Linux ld.so'
13014
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13015
soname_spec='${libname}${release}${shared_ext}$major'
13016
shlibpath_var=LD_LIBRARY_PATH
13017
shlibpath_overrides_runpath=no
13018
hardcode_into_libs=yes
13019
dynamic_linker='GNU ld.so'
13026
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13027
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13028
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13029
dynamic_linker='NetBSD (a.out) ld.so'
13031
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13032
soname_spec='${libname}${release}${shared_ext}$major'
13033
dynamic_linker='NetBSD ld.elf_so'
13035
shlibpath_var=LD_LIBRARY_PATH
13036
shlibpath_overrides_runpath=yes
13037
hardcode_into_libs=yes
13042
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13043
shlibpath_var=LD_LIBRARY_PATH
13044
shlibpath_overrides_runpath=yes
13051
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13052
soname_spec='${libname}${release}${shared_ext}$major'
13053
shlibpath_var=LD_LIBRARY_PATH
13054
shlibpath_overrides_runpath=yes
13059
sys_lib_dlsearch_path_spec="/usr/lib"
13061
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13063
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13064
*) need_version=no ;;
13066
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13067
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13068
shlibpath_var=LD_LIBRARY_PATH
13069
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13071
openbsd2.[89] | openbsd2.[89].*)
13072
shlibpath_overrides_runpath=no
13075
shlibpath_overrides_runpath=yes
13079
shlibpath_overrides_runpath=yes
13084
libname_spec='$name'
13087
library_names_spec='$libname${shared_ext} $libname.a'
13088
dynamic_linker='OS/2 ld.exe'
13089
shlibpath_var=LIBPATH
13092
osf3* | osf4* | osf5*)
13096
soname_spec='${libname}${release}${shared_ext}$major'
13097
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13098
shlibpath_var=LD_LIBRARY_PATH
13099
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13100
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13107
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13108
soname_spec='${libname}${release}${shared_ext}$major'
13109
shlibpath_var=LD_LIBRARY_PATH
13110
shlibpath_overrides_runpath=yes
13111
hardcode_into_libs=yes
13112
# ldd complains unless libraries are executable
13113
postinstall_cmds='chmod +x $lib'
13118
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13119
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13120
shlibpath_var=LD_LIBRARY_PATH
13121
shlibpath_overrides_runpath=yes
13122
if test "$with_gnu_ld" = yes; then
13130
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13131
soname_spec='${libname}${release}${shared_ext}$major'
13132
shlibpath_var=LD_LIBRARY_PATH
13133
case $host_vendor in
13135
shlibpath_overrides_runpath=no
13137
export_dynamic_flag_spec='${wl}-Blargedynsym'
13138
runpath_var=LD_RUN_PATH
13146
shlibpath_overrides_runpath=no
13147
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13153
if test -d /usr/nec ;then
13155
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13156
soname_spec='$libname${shared_ext}.$major'
13157
shlibpath_var=LD_LIBRARY_PATH
13161
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13162
version_type=freebsd-elf
13165
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13166
soname_spec='${libname}${release}${shared_ext}$major'
13167
shlibpath_var=LD_LIBRARY_PATH
13168
hardcode_into_libs=yes
13169
if test "$with_gnu_ld" = yes; then
13170
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13171
shlibpath_overrides_runpath=no
13173
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13174
shlibpath_overrides_runpath=yes
13177
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13181
sys_lib_dlsearch_path_spec='/usr/lib'
13186
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13187
soname_spec='${libname}${release}${shared_ext}$major'
13188
shlibpath_var=LD_LIBRARY_PATH
13195
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13196
echo "${ECHO_T}$dynamic_linker" >&6; }
13197
test "$dynamic_linker" = no && can_build_shared=no
13199
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13200
if test "$GCC" = yes; then
13201
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13204
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13205
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13206
hardcode_action_CXX=
13207
if test -n "$hardcode_libdir_flag_spec_CXX" || \
13208
test -n "$runpath_var_CXX" || \
13209
test "X$hardcode_automatic_CXX" = "Xyes" ; then
13211
# We can hardcode non-existant directories.
13212
if test "$hardcode_direct_CXX" != no &&
13213
# If the only mechanism to avoid hardcoding is shlibpath_var, we
13214
# have to relink, otherwise we might link with an installed library
13215
# when we should be linking with a yet-to-be-installed one
13216
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13217
test "$hardcode_minus_L_CXX" != no; then
13218
# Linking always hardcodes the temporary library directory.
13219
hardcode_action_CXX=relink
13221
# We can link without hardcoding, and we can hardcode nonexisting dirs.
13222
hardcode_action_CXX=immediate
13225
# We cannot hardcode anything, or else we can only hardcode existing
13227
hardcode_action_CXX=unsupported
13229
{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13230
echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13232
if test "$hardcode_action_CXX" = relink; then
13233
# Fast installation is not supported
13234
enable_fast_install=no
13235
elif test "$shlibpath_overrides_runpath" = yes ||
13236
test "$enable_shared" = no; then
13237
# Fast installation is not necessary
13238
enable_fast_install=needless
13242
# The else clause should only fire when bootstrapping the
13243
# libtool distribution, otherwise you forgot to ship ltmain.sh
13244
# with your package, and you will get complaints that there are
13245
# no rules to generate ltmain.sh.
13246
if test -f "$ltmain"; then
13247
# See if we are running on zsh, and set the options which allow our commands through
13248
# without removal of \ escapes.
13249
if test -n "${ZSH_VERSION+set}" ; then
13250
setopt NO_GLOB_SUBST
13252
# Now quote all the things that may contain metacharacters while being
13253
# careful not to overquote the AC_SUBSTed values. We take copies of the
13254
# variables and quote the copies for generation of the libtool script.
13255
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13257
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13258
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13259
deplibs_check_method reload_flag reload_cmds need_locks \
13260
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13261
lt_cv_sys_global_symbol_to_c_name_address \
13262
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13263
old_postinstall_cmds old_postuninstall_cmds \
13267
lt_prog_compiler_wl_CXX \
13268
lt_prog_compiler_pic_CXX \
13269
lt_prog_compiler_static_CXX \
13270
lt_prog_compiler_no_builtin_flag_CXX \
13271
export_dynamic_flag_spec_CXX \
13272
thread_safe_flag_spec_CXX \
13273
whole_archive_flag_spec_CXX \
13274
enable_shared_with_static_runtimes_CXX \
13275
old_archive_cmds_CXX \
13276
old_archive_from_new_cmds_CXX \
13277
predep_objects_CXX \
13278
postdep_objects_CXX \
13281
compiler_lib_search_path_CXX \
13283
archive_expsym_cmds_CXX \
13284
postinstall_cmds_CXX \
13285
postuninstall_cmds_CXX \
13286
old_archive_from_expsyms_cmds_CXX \
13287
allow_undefined_flag_CXX \
13288
no_undefined_flag_CXX \
13289
export_symbols_cmds_CXX \
13290
hardcode_libdir_flag_spec_CXX \
13291
hardcode_libdir_flag_spec_ld_CXX \
13292
hardcode_libdir_separator_CXX \
13293
hardcode_automatic_CXX \
13295
module_expsym_cmds_CXX \
13296
lt_cv_prog_compiler_c_o_CXX \
13297
exclude_expsyms_CXX \
13298
include_expsyms_CXX; do
13301
old_archive_cmds_CXX | \
13302
old_archive_from_new_cmds_CXX | \
13303
archive_cmds_CXX | \
13304
archive_expsym_cmds_CXX | \
13305
module_cmds_CXX | \
13306
module_expsym_cmds_CXX | \
13307
old_archive_from_expsyms_cmds_CXX | \
13308
export_symbols_cmds_CXX | \
13309
extract_expsyms_cmds | reload_cmds | finish_cmds | \
13310
postinstall_cmds | postuninstall_cmds | \
13311
old_postinstall_cmds | old_postuninstall_cmds | \
13312
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13313
# Double-quote double-evaled strings.
13314
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13317
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13323
*'\$0 --fallback-echo"')
13324
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13330
cat <<__EOF__ >> "$cfgfile"
13331
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13333
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13335
# Shell to use when invoking shell scripts.
13338
# Whether or not to build shared libraries.
13339
build_libtool_libs=$enable_shared
13341
# Whether or not to build static libraries.
13342
build_old_libs=$enable_static
13344
# Whether or not to add -lc for building shared libraries.
13345
build_libtool_need_lc=$archive_cmds_need_lc_CXX
13347
# Whether or not to disallow shared libs when runtime libs are static
13348
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13350
# Whether or not to optimize for fast installation.
13351
fast_install=$enable_fast_install
13354
host_alias=$host_alias
13358
# The build system.
13359
build_alias=$build_alias
13363
# An echo program that does not interpret backslashes.
13368
AR_FLAGS=$lt_AR_FLAGS
13373
# LTCC compiler flags.
13374
LTCFLAGS=$lt_LTCFLAGS
13376
# A language-specific compiler.
13377
CC=$lt_compiler_CXX
13379
# Is the compiler the GNU C compiler?
13385
# The linker used to build libraries.
13388
# Whether we need hard or soft links.
13391
# A BSD-compatible nm program.
13394
# A symbol stripping program
13397
# Used to examine libraries when file_magic_cmd begins "file"
13398
MAGIC_CMD=$MAGIC_CMD
13400
# Used on cygwin: DLL creation program.
13403
# Used on cygwin: object dumper.
13406
# Used on cygwin: assembler.
13409
# The name of the directory that contains temporary libtool files.
13412
# How to create reloadable object files.
13413
reload_flag=$lt_reload_flag
13414
reload_cmds=$lt_reload_cmds
13416
# How to pass a linker flag through the compiler.
13417
wl=$lt_lt_prog_compiler_wl_CXX
13419
# Object file suffix (normally "o").
13420
objext="$ac_objext"
13422
# Old archive suffix (normally "a").
13425
# Shared library suffix (normally ".so").
13426
shrext_cmds='$shrext_cmds'
13428
# Executable file suffix (normally "").
13431
# Additional compiler flags for building library objects.
13432
pic_flag=$lt_lt_prog_compiler_pic_CXX
13435
# What is the maximum length of a command?
13436
max_cmd_len=$lt_cv_sys_max_cmd_len
13438
# Does compiler simultaneously support -c and -o options?
13439
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13441
# Must we lock files when doing compilation?
13442
need_locks=$lt_need_locks
13444
# Do we need the lib prefix for modules?
13445
need_lib_prefix=$need_lib_prefix
13447
# Do we need a version for libraries?
13448
need_version=$need_version
13450
# Whether dlopen is supported.
13451
dlopen_support=$enable_dlopen
13453
# Whether dlopen of programs is supported.
13454
dlopen_self=$enable_dlopen_self
13456
# Whether dlopen of statically linked programs is supported.
13457
dlopen_self_static=$enable_dlopen_self_static
13459
# Compiler flag to prevent dynamic linking.
13460
link_static_flag=$lt_lt_prog_compiler_static_CXX
13462
# Compiler flag to turn off builtin functions.
13463
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13465
# Compiler flag to allow reflexive dlopens.
13466
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13468
# Compiler flag to generate shared objects directly from archives.
13469
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13471
# Compiler flag to generate thread-safe objects.
13472
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13474
# Library versioning type.
13475
version_type=$version_type
13477
# Format of library name prefix.
13478
libname_spec=$lt_libname_spec
13480
# List of archive names. First name is the real one, the rest are links.
13481
# The last name is the one that the linker finds with -lNAME.
13482
library_names_spec=$lt_library_names_spec
13484
# The coded name of the library, if different from the real name.
13485
soname_spec=$lt_soname_spec
13487
# Commands used to build and install an old-style archive.
13489
old_archive_cmds=$lt_old_archive_cmds_CXX
13490
old_postinstall_cmds=$lt_old_postinstall_cmds
13491
old_postuninstall_cmds=$lt_old_postuninstall_cmds
13493
# Create an old-style archive from a shared archive.
13494
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13496
# Create a temporary old-style archive to link instead of a shared archive.
13497
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13499
# Commands used to build and install a shared archive.
13500
archive_cmds=$lt_archive_cmds_CXX
13501
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13502
postinstall_cmds=$lt_postinstall_cmds
13503
postuninstall_cmds=$lt_postuninstall_cmds
13505
# Commands used to build a loadable module (assumed same as above if empty)
13506
module_cmds=$lt_module_cmds_CXX
13507
module_expsym_cmds=$lt_module_expsym_cmds_CXX
13509
# Commands to strip libraries.
13510
old_striplib=$lt_old_striplib
13511
striplib=$lt_striplib
13513
# Dependencies to place before the objects being linked to create a
13515
predep_objects=$lt_predep_objects_CXX
13517
# Dependencies to place after the objects being linked to create a
13519
postdep_objects=$lt_postdep_objects_CXX
13521
# Dependencies to place before the objects being linked to create a
13523
predeps=$lt_predeps_CXX
13525
# Dependencies to place after the objects being linked to create a
13527
postdeps=$lt_postdeps_CXX
13529
# The library search path used internally by the compiler when linking
13530
# a shared library.
13531
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13533
# Method to check whether dependent libraries are shared objects.
13534
deplibs_check_method=$lt_deplibs_check_method
13536
# Command to use when deplibs_check_method == file_magic.
13537
file_magic_cmd=$lt_file_magic_cmd
13539
# Flag that allows shared libraries with undefined symbols to be built.
13540
allow_undefined_flag=$lt_allow_undefined_flag_CXX
13542
# Flag that forces no undefined symbols.
13543
no_undefined_flag=$lt_no_undefined_flag_CXX
13545
# Commands used to finish a libtool library installation in a directory.
13546
finish_cmds=$lt_finish_cmds
13548
# Same as above, but a single script fragment to be evaled but not shown.
13549
finish_eval=$lt_finish_eval
13551
# Take the output of nm and produce a listing of raw symbols and C names.
13552
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13554
# Transform the output of nm in a proper C declaration
13555
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13557
# Transform the output of nm in a C name address pair
13558
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13560
# This is the shared library runtime path variable.
13561
runpath_var=$runpath_var
13563
# This is the shared library path variable.
13564
shlibpath_var=$shlibpath_var
13566
# Is shlibpath searched before the hard-coded library search path?
13567
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13569
# How to hardcode a shared library path into an executable.
13570
hardcode_action=$hardcode_action_CXX
13572
# Whether we should hardcode library paths into libraries.
13573
hardcode_into_libs=$hardcode_into_libs
13575
# Flag to hardcode \$libdir into a binary during linking.
13576
# This must work even if \$libdir does not exist.
13577
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13579
# If ld is used when linking, flag to hardcode \$libdir into
13580
# a binary during linking. This must work even if \$libdir does
13582
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13584
# Whether we need a single -rpath flag with a separated argument.
13585
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13587
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13588
# resulting binary.
13589
hardcode_direct=$hardcode_direct_CXX
13591
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13592
# resulting binary.
13593
hardcode_minus_L=$hardcode_minus_L_CXX
13595
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13596
# the resulting binary.
13597
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13599
# Set to yes if building a shared library automatically hardcodes DIR into the library
13600
# and all subsequent libraries and executables linked against it.
13601
hardcode_automatic=$hardcode_automatic_CXX
13603
# Variables whose values should be saved in libtool wrapper scripts and
13604
# restored at relink time.
13605
variables_saved_for_relink="$variables_saved_for_relink"
13607
# Whether libtool must link a program against all its dependency libraries.
13608
link_all_deplibs=$link_all_deplibs_CXX
13610
# Compile-time system search path for libraries
13611
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13613
# Run-time system search path for libraries
13614
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13616
# Fix the shell variable \$srcfile for the compiler.
13617
fix_srcfile_path="$fix_srcfile_path_CXX"
13619
# Set to yes if exported symbols are required.
13620
always_export_symbols=$always_export_symbols_CXX
13622
# The commands to list exported symbols.
13623
export_symbols_cmds=$lt_export_symbols_cmds_CXX
13625
# The commands to extract the exported symbol list from a shared archive.
13626
extract_expsyms_cmds=$lt_extract_expsyms_cmds
13628
# Symbols that should not be listed in the preloaded symbols.
13629
exclude_expsyms=$lt_exclude_expsyms_CXX
13631
# Symbols that must always be exported.
13632
include_expsyms=$lt_include_expsyms_CXX
13634
# ### END LIBTOOL TAG CONFIG: $tagname
13640
# If there is no Makefile yet, we rely on a make rule to execute
13641
# `config.status --recheck' to rerun these tests and create the
13642
# libtool script then.
13643
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13644
if test -f "$ltmain_in"; then
13645
test -f Makefile && make "$ltmain"
13651
ac_cpp='$CPP $CPPFLAGS'
13652
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13653
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13654
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13660
with_gnu_ldcxx=$with_gnu_ld
13661
with_gnu_ld=$lt_save_with_gnu_ld
13662
lt_cv_path_LDCXX=$lt_cv_path_LD
13663
lt_cv_path_LD=$lt_save_path_LD
13664
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13665
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13673
if test -n "$F77" && test "X$F77" != "Xno"; then
13676
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13677
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13678
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13681
archive_cmds_need_lc_F77=no
13682
allow_undefined_flag_F77=
13683
always_export_symbols_F77=no
13684
archive_expsym_cmds_F77=
13685
export_dynamic_flag_spec_F77=
13686
hardcode_direct_F77=no
13687
hardcode_libdir_flag_spec_F77=
13688
hardcode_libdir_flag_spec_ld_F77=
13689
hardcode_libdir_separator_F77=
13690
hardcode_minus_L_F77=no
13691
hardcode_automatic_F77=no
13693
module_expsym_cmds_F77=
13694
link_all_deplibs_F77=unknown
13695
old_archive_cmds_F77=$old_archive_cmds
13696
no_undefined_flag_F77=
13697
whole_archive_flag_spec_F77=
13698
enable_shared_with_static_runtimes_F77=no
13700
# Source file extension for f77 test sources.
13703
# Object file extension for compiled f77 test sources.
13707
# Code to be used in simple compile tests
13708
lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13710
# Code to be used in simple link tests
13711
lt_simple_link_test_code=" program t\n end\n"
13713
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13715
# If no C compiler was specified, use CC.
13718
# If no C compiler flags were specified, use CFLAGS.
13719
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13721
# Allow CC to be a program name with arguments.
13725
# save warnings/boilerplate of simple test code
13726
ac_outfile=conftest.$ac_objext
13727
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13728
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13729
_lt_compiler_boilerplate=`cat conftest.err`
13732
ac_outfile=conftest.$ac_objext
13733
printf "$lt_simple_link_test_code" >conftest.$ac_ext
13734
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13735
_lt_linker_boilerplate=`cat conftest.err`
13739
# Allow CC to be a program name with arguments.
13744
for cc_temp in $compiler""; do
13746
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13747
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13752
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13755
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13756
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13757
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
13758
echo "${ECHO_T}$can_build_shared" >&6; }
13760
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13761
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13762
test "$can_build_shared" = "no" && enable_shared=no
13764
# On AIX, shared libraries and static libraries use the same namespace, and
13765
# are all built from PIC.
13768
test "$enable_shared" = yes && enable_static=no
13769
if test -n "$RANLIB"; then
13770
archive_cmds="$archive_cmds~\$RANLIB \$lib"
13771
postinstall_cmds='$RANLIB $lib'
13775
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13776
test "$enable_shared" = yes && enable_static=no
13780
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
13781
echo "${ECHO_T}$enable_shared" >&6; }
13783
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13784
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13785
# Make sure either enable_shared or enable_static is yes.
13786
test "$enable_shared" = yes || enable_static=yes
13787
{ echo "$as_me:$LINENO: result: $enable_static" >&5
13788
echo "${ECHO_T}$enable_static" >&6; }
13793
lt_prog_compiler_wl_F77=
13794
lt_prog_compiler_pic_F77=
13795
lt_prog_compiler_static_F77=
13797
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13798
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13800
if test "$GCC" = yes; then
13801
lt_prog_compiler_wl_F77='-Wl,'
13802
lt_prog_compiler_static_F77='-static'
13806
# All AIX code is PIC.
13807
if test "$host_cpu" = ia64; then
13808
# AIX 5 now supports IA64 processor
13809
lt_prog_compiler_static_F77='-Bstatic'
13814
# FIXME: we need at least 68020 code to build shared libraries, but
13815
# adding the `-m68020' flag to GCC prevents building anything better,
13817
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13820
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13821
# PIC is the default for these OSes.
13824
mingw* | pw32* | os2*)
13825
# This hack is so that the source file can tell whether it is being
13826
# built for inclusion in a dll (and should export symbols for example).
13827
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13830
darwin* | rhapsody*)
13831
# PIC is the default on this platform
13832
# Common symbols not allowed in MH_DYLIB files
13833
lt_prog_compiler_pic_F77='-fno-common'
13837
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
13838
# Instead, we relocate shared libraries at runtime.
13842
# Just because we use GCC doesn't mean we suddenly get shared libraries
13843
# on systems that don't support them.
13844
lt_prog_compiler_can_build_shared_F77=no
13849
if test -d /usr/nec; then
13850
lt_prog_compiler_pic_F77=-Kconform_pic
13855
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13856
# not for PA HP-UX.
13862
lt_prog_compiler_pic_F77='-fPIC'
13868
lt_prog_compiler_pic_F77='-fPIC'
13872
# PORTME Check for flag to pass linker flags through the system compiler.
13875
lt_prog_compiler_wl_F77='-Wl,'
13876
if test "$host_cpu" = ia64; then
13877
# AIX 5 now supports IA64 processor
13878
lt_prog_compiler_static_F77='-Bstatic'
13880
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13884
# PIC is the default on this platform
13885
# Common symbols not allowed in MH_DYLIB files
13886
case $cc_basename in
13888
lt_prog_compiler_pic_F77='-qnocommon'
13889
lt_prog_compiler_wl_F77='-Wl,'
13894
mingw* | pw32* | os2*)
13895
# This hack is so that the source file can tell whether it is being
13896
# built for inclusion in a dll (and should export symbols for example).
13897
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13900
hpux9* | hpux10* | hpux11*)
13901
lt_prog_compiler_wl_F77='-Wl,'
13902
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13903
# not for PA HP-UX.
13909
lt_prog_compiler_pic_F77='+Z'
13912
# Is there a better lt_prog_compiler_static that works with the bundled CC?
13913
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13916
irix5* | irix6* | nonstopux*)
13917
lt_prog_compiler_wl_F77='-Wl,'
13918
# PIC (with -KPIC) is the default.
13919
lt_prog_compiler_static_F77='-non_shared'
13923
lt_prog_compiler_pic_F77='-KPIC'
13924
lt_prog_compiler_static_F77='-Bstatic'
13928
case $cc_basename in
13930
lt_prog_compiler_wl_F77='-Wl,'
13931
lt_prog_compiler_pic_F77='-KPIC'
13932
lt_prog_compiler_static_F77='-static'
13934
pgcc* | pgf77* | pgf90* | pgf95*)
13935
# Portland Group compilers (*not* the Pentium gcc compiler,
13936
# which looks to be a dead project)
13937
lt_prog_compiler_wl_F77='-Wl,'
13938
lt_prog_compiler_pic_F77='-fpic'
13939
lt_prog_compiler_static_F77='-Bstatic'
13942
lt_prog_compiler_wl_F77='-Wl,'
13943
# All Alpha code is PIC.
13944
lt_prog_compiler_static_F77='-non_shared'
13949
osf3* | osf4* | osf5*)
13950
lt_prog_compiler_wl_F77='-Wl,'
13951
# All OSF/1 code is PIC.
13952
lt_prog_compiler_static_F77='-non_shared'
13956
lt_prog_compiler_pic_F77='-KPIC'
13957
lt_prog_compiler_static_F77='-Bstatic'
13958
case $cc_basename in
13959
f77* | f90* | f95*)
13960
lt_prog_compiler_wl_F77='-Qoption ld ';;
13962
lt_prog_compiler_wl_F77='-Wl,';;
13967
lt_prog_compiler_wl_F77='-Qoption ld '
13968
lt_prog_compiler_pic_F77='-PIC'
13969
lt_prog_compiler_static_F77='-Bstatic'
13972
sysv4 | sysv4.2uw2* | sysv4.3*)
13973
lt_prog_compiler_wl_F77='-Wl,'
13974
lt_prog_compiler_pic_F77='-KPIC'
13975
lt_prog_compiler_static_F77='-Bstatic'
13979
if test -d /usr/nec ;then
13980
lt_prog_compiler_pic_F77='-Kconform_pic'
13981
lt_prog_compiler_static_F77='-Bstatic'
13985
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13986
lt_prog_compiler_wl_F77='-Wl,'
13987
lt_prog_compiler_pic_F77='-KPIC'
13988
lt_prog_compiler_static_F77='-Bstatic'
13992
lt_prog_compiler_wl_F77='-Wl,'
13993
lt_prog_compiler_can_build_shared_F77=no
13997
lt_prog_compiler_pic_F77='-pic'
13998
lt_prog_compiler_static_F77='-Bstatic'
14002
lt_prog_compiler_can_build_shared_F77=no
14007
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14008
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14011
# Check to make sure the PIC flag actually works.
14013
if test -n "$lt_prog_compiler_pic_F77"; then
14015
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14016
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14017
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14018
echo $ECHO_N "(cached) $ECHO_C" >&6
14020
lt_prog_compiler_pic_works_F77=no
14021
ac_outfile=conftest.$ac_objext
14022
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14023
lt_compiler_flag="$lt_prog_compiler_pic_F77"
14024
# Insert the option either (1) after the last *FLAGS variable, or
14025
# (2) before a word containing "conftest.", or (3) at the end.
14026
# Note that $ac_compile itself does not contain backslashes and begins
14027
# with a dollar sign (not a hyphen), so the echo should work correctly.
14028
# The option is referenced via a variable to avoid confusing sed.
14029
lt_compile=`echo "$ac_compile" | $SED \
14030
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14031
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14032
-e 's:$: $lt_compiler_flag:'`
14033
(eval echo "\"\$as_me:14033: $lt_compile\"" >&5)
14034
(eval "$lt_compile" 2>conftest.err)
14036
cat conftest.err >&5
14037
echo "$as_me:14037: \$? = $ac_status" >&5
14038
if (exit $ac_status) && test -s "$ac_outfile"; then
14039
# The compiler can only warn and ignore the option if not recognized
14040
# So say no if there are warnings other than the usual output.
14041
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14042
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14043
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14044
lt_prog_compiler_pic_works_F77=yes
14050
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14051
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14053
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14054
case $lt_prog_compiler_pic_F77 in
14056
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14059
lt_prog_compiler_pic_F77=
14060
lt_prog_compiler_can_build_shared_F77=no
14065
# For platforms which do not support PIC, -DPIC is meaningless:
14067
lt_prog_compiler_pic_F77=
14070
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14075
# Check to make sure the static flag actually works.
14077
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14078
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14079
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14080
if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14081
echo $ECHO_N "(cached) $ECHO_C" >&6
14083
lt_prog_compiler_static_works_F77=no
14084
save_LDFLAGS="$LDFLAGS"
14085
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14086
printf "$lt_simple_link_test_code" > conftest.$ac_ext
14087
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14088
# The linker can only warn and ignore the option if not recognized
14089
# So say no if there are warnings
14090
if test -s conftest.err; then
14091
# Append any errors to the config.log.
14092
cat conftest.err 1>&5
14093
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14094
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14095
if diff conftest.exp conftest.er2 >/dev/null; then
14096
lt_prog_compiler_static_works_F77=yes
14099
lt_prog_compiler_static_works_F77=yes
14103
LDFLAGS="$save_LDFLAGS"
14106
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14107
echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14109
if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14112
lt_prog_compiler_static_F77=
14116
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14117
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14118
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14119
echo $ECHO_N "(cached) $ECHO_C" >&6
14121
lt_cv_prog_compiler_c_o_F77=no
14122
$rm -r conftest 2>/dev/null
14126
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14128
lt_compiler_flag="-o out/conftest2.$ac_objext"
14129
# Insert the option either (1) after the last *FLAGS variable, or
14130
# (2) before a word containing "conftest.", or (3) at the end.
14131
# Note that $ac_compile itself does not contain backslashes and begins
14132
# with a dollar sign (not a hyphen), so the echo should work correctly.
14133
lt_compile=`echo "$ac_compile" | $SED \
14134
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14135
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14136
-e 's:$: $lt_compiler_flag:'`
14137
(eval echo "\"\$as_me:14137: $lt_compile\"" >&5)
14138
(eval "$lt_compile" 2>out/conftest.err)
14140
cat out/conftest.err >&5
14141
echo "$as_me:14141: \$? = $ac_status" >&5
14142
if (exit $ac_status) && test -s out/conftest2.$ac_objext
14144
# The compiler can only warn and ignore the option if not recognized
14145
# So say no if there are warnings
14146
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14147
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14148
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14149
lt_cv_prog_compiler_c_o_F77=yes
14154
# SGI C++ compiler will create directory out/ii_files/ for
14155
# template instantiation
14156
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14157
$rm out/* && rmdir out
14163
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14164
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14167
hard_links="nottested"
14168
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14169
# do not overwrite the value of need_locks provided by the user
14170
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14171
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14174
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14176
ln conftest.a conftest.b 2>&5 || hard_links=no
14177
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14178
{ echo "$as_me:$LINENO: result: $hard_links" >&5
14179
echo "${ECHO_T}$hard_links" >&6; }
14180
if test "$hard_links" = no; then
14181
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14182
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14189
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14190
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14193
allow_undefined_flag_F77=
14194
enable_shared_with_static_runtimes_F77=no
14196
archive_expsym_cmds_F77=
14197
old_archive_From_new_cmds_F77=
14198
old_archive_from_expsyms_cmds_F77=
14199
export_dynamic_flag_spec_F77=
14200
whole_archive_flag_spec_F77=
14201
thread_safe_flag_spec_F77=
14202
hardcode_libdir_flag_spec_F77=
14203
hardcode_libdir_flag_spec_ld_F77=
14204
hardcode_libdir_separator_F77=
14205
hardcode_direct_F77=no
14206
hardcode_minus_L_F77=no
14207
hardcode_shlibpath_var_F77=unsupported
14208
link_all_deplibs_F77=unknown
14209
hardcode_automatic_F77=no
14211
module_expsym_cmds_F77=
14212
always_export_symbols_F77=no
14213
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14214
# include_expsyms should be a list of space-separated symbols to be *always*
14215
# included in the symbol list
14216
include_expsyms_F77=
14217
# exclude_expsyms can be an extended regexp of symbols to exclude
14218
# it will be wrapped by ` (' and `)$', so one must not match beginning or
14219
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14220
# as well as any symbol that contains `d'.
14221
exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14222
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14223
# platforms (ab)use it in PIC code, but their linkers get confused if
14224
# the symbol is explicitly referenced. Since portable code cannot
14225
# rely on this symbol name, it's probably fine to never include it in
14226
# preloaded symbol tables.
14227
extract_expsyms_cmds=
14228
# Just being paranoid about ensuring that cc_basename is set.
14229
for cc_temp in $compiler""; do
14231
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14232
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14237
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14240
cygwin* | mingw* | pw32*)
14241
# FIXME: the MSVC++ port hasn't been tested in a loooong time
14242
# When not using gcc, we currently assume that we are using
14243
# Microsoft Visual C++.
14244
if test "$GCC" != yes; then
14249
# we just hope/assume this is gcc and not c89 (= MSVC++)
14258
if test "$with_gnu_ld" = yes; then
14259
# If archive_cmds runs LD, not CC, wlarc should be empty
14262
# Set some defaults for GNU ld with shared library support. These
14263
# are reset later if shared libraries are not supported. Putting them
14264
# here allows them to be overridden if necessary.
14265
runpath_var=LD_RUN_PATH
14266
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14267
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14268
# ancient GNU ld didn't support --whole-archive et. al.
14269
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14270
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14272
whole_archive_flag_spec_F77=
14274
supports_anon_versioning=no
14275
case `$LD -v 2>/dev/null` in
14276
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14277
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14278
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14279
*\ 2.11.*) ;; # other 2.11 versions
14280
*) supports_anon_versioning=yes ;;
14283
# See if GNU ld supports shared libraries.
14285
aix3* | aix4* | aix5*)
14286
# On AIX/PPC, the GNU linker is very broken
14287
if test "$host_cpu" != ia64; then
14291
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14292
*** to be unable to reliably create shared libraries on AIX.
14293
*** Therefore, libtool is disabling shared libraries support. If you
14294
*** really care for shared libraries, you may want to modify your PATH
14295
*** so that a non-GNU linker is found, and then restart.
14302
archive_cmds_F77='$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)'
14303
hardcode_libdir_flag_spec_F77='-L$libdir'
14304
hardcode_minus_L_F77=yes
14306
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14307
# that the semantics of dynamic libraries on AmigaOS, at least up
14308
# to version 4, is to share data among multiple programs linked
14309
# with the same dynamic library. Since this doesn't match the
14310
# behavior of shared libraries on other platforms, we can't use
14316
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14317
allow_undefined_flag_F77=unsupported
14318
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14319
# support --undefined. This deserves some investigation. FIXME
14320
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14326
cygwin* | mingw* | pw32*)
14327
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14328
# as there is no search path for DLLs.
14329
hardcode_libdir_flag_spec_F77='-L$libdir'
14330
allow_undefined_flag_F77=unsupported
14331
always_export_symbols_F77=no
14332
enable_shared_with_static_runtimes_F77=yes
14333
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14335
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14336
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14337
# If the export-symbols file already is a .def file (1st line
14338
# is EXPORTS), use it as is; otherwise, prepend...
14339
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14340
cp $export_symbols $output_objdir/$soname.def;
14342
echo EXPORTS > $output_objdir/$soname.def;
14343
cat $export_symbols >> $output_objdir/$soname.def;
14345
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14352
hardcode_direct_F77=no
14353
hardcode_shlibpath_var_F77=no
14354
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14355
export_dynamic_flag_spec_F77='${wl}-E'
14356
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14357
# Instead, shared libraries are loaded at an image base (0x10000000 by
14358
# default) and relocated if they conflict, which is a slow very memory
14359
# consuming and fragmenting process. To avoid this, we pick a random,
14360
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14361
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
14362
archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14363
archive_expsym_cmds_F77='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'
14367
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14369
case $cc_basename,$host_cpu in
14370
pgcc*) # Portland Group C compiler
14371
whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14372
tmp_addflag=' $pic_flag'
14374
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14375
whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14376
tmp_addflag=' $pic_flag -Mnomain' ;;
14377
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14378
tmp_addflag=' -i_dynamic' ;;
14379
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14380
tmp_addflag=' -i_dynamic -nofor_main' ;;
14381
ifc* | ifort*) # Intel Fortran compiler
14382
tmp_addflag=' -nofor_main' ;;
14384
archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14386
if test $supports_anon_versioning = yes; then
14387
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14388
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14389
$echo "local: *; };" >> $output_objdir/$libname.ver~
14390
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14398
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14399
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14402
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14403
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14408
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14412
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14413
*** create shared libraries on Solaris systems. Therefore, libtool
14414
*** is disabling shared libraries support. We urge you to upgrade GNU
14415
*** binutils to release 2.9.1 or newer. Another option is to modify
14416
*** your PATH or compiler configuration so that the native linker is
14417
*** used, and then restart.
14420
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14421
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14422
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14428
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14429
case `$LD -v 2>&1` in
14430
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14434
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14435
*** reliably create shared libraries on SCO systems. Therefore, libtool
14436
*** is disabling shared libraries support. We urge you to upgrade GNU
14437
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14438
*** your PATH or compiler configuration so that the native linker is
14439
*** used, and then restart.
14444
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14445
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14446
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14447
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14456
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14458
hardcode_direct_F77=yes
14459
hardcode_shlibpath_var_F77=no
14463
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14464
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14465
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14472
if test "$ld_shlibs_F77" = no; then
14474
hardcode_libdir_flag_spec_F77=
14475
export_dynamic_flag_spec_F77=
14476
whole_archive_flag_spec_F77=
14479
# PORTME fill in a description of your system's linker (not GNU ld)
14482
allow_undefined_flag_F77=unsupported
14483
always_export_symbols_F77=yes
14484
archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
14485
# Note: this linker hardcodes the directories in LIBPATH if there
14486
# are no directories specified by -L.
14487
hardcode_minus_L_F77=yes
14488
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14489
# Neither direct hardcoding nor static linking is supported with a
14491
hardcode_direct_F77=unsupported
14496
if test "$host_cpu" = ia64; then
14497
# On IA64, the linker does run time linking by default, so we don't
14498
# have to do anything special.
14499
aix_use_runtimelinking=no
14500
exp_sym_flag='-Bexport'
14503
# If we're using GNU nm, then we don't want the "-C" option.
14504
# -C means demangle to AIX nm, but means don't demangle with GNU nm
14505
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14506
export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14508
export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14510
aix_use_runtimelinking=no
14512
# Test if we are trying to use run time linking or normal
14513
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14514
# need to do runtime linking.
14515
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14516
for ld_flag in $LDFLAGS; do
14517
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14518
aix_use_runtimelinking=yes
14525
exp_sym_flag='-bexport'
14526
no_entry_flag='-bnoentry'
14529
# When large executables or shared objects are built, AIX ld can
14530
# have problems creating the table of contents. If linking a library
14531
# or program results in "error TOC overflow" add -mminimal-toc to
14532
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14533
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14535
archive_cmds_F77=''
14536
hardcode_direct_F77=yes
14537
hardcode_libdir_separator_F77=':'
14538
link_all_deplibs_F77=yes
14540
if test "$GCC" = yes; then
14541
case $host_os in aix4.[012]|aix4.[012].*)
14542
# We only want to do this on AIX 4.2 and lower, the check
14543
# below for broken collect2 doesn't work under 4.3+
14544
collect2name=`${CC} -print-prog-name=collect2`
14545
if test -f "$collect2name" && \
14546
strings "$collect2name" | grep resolve_lib_name >/dev/null
14548
# We have reworked collect2
14549
hardcode_direct_F77=yes
14551
# We have old collect2
14552
hardcode_direct_F77=unsupported
14553
# It fails to find uninstalled libraries when the uninstalled
14554
# path is not listed in the libpath. Setting hardcode_minus_L
14555
# to unsupported forces relinking
14556
hardcode_minus_L_F77=yes
14557
hardcode_libdir_flag_spec_F77='-L$libdir'
14558
hardcode_libdir_separator_F77=
14562
shared_flag='-shared'
14563
if test "$aix_use_runtimelinking" = yes; then
14564
shared_flag="$shared_flag "'${wl}-G'
14568
if test "$host_cpu" = ia64; then
14569
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14570
# chokes on -Wl,-G. The following line is correct:
14573
if test "$aix_use_runtimelinking" = yes; then
14574
shared_flag='${wl}-G'
14576
shared_flag='${wl}-bM:SRE'
14581
# It seems that -bexpall does not export symbols beginning with
14582
# underscore (_), so it is better to generate a list of symbols to export.
14583
always_export_symbols_F77=yes
14584
if test "$aix_use_runtimelinking" = yes; then
14585
# Warning - without using the other runtime loading flags (-brtl),
14586
# -berok will link without error, but may produce a broken library.
14587
allow_undefined_flag_F77='-berok'
14588
# Determine the default libpath from the value encoded in an empty executable.
14589
cat >conftest.$ac_ext <<_ACEOF
14594
rm -f conftest.$ac_objext conftest$ac_exeext
14595
if { (ac_try="$ac_link"
14596
case "(($ac_try" in
14597
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14598
*) ac_try_echo=$ac_try;;
14600
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14601
(eval "$ac_link") 2>conftest.er1
14603
grep -v '^ *+' conftest.er1 >conftest.err
14605
cat conftest.err >&5
14606
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14607
(exit $ac_status); } &&
14608
{ ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14609
{ (case "(($ac_try" in
14610
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14611
*) ac_try_echo=$ac_try;;
14613
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14614
(eval "$ac_try") 2>&5
14616
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14617
(exit $ac_status); }; } &&
14618
{ ac_try='test -s conftest$ac_exeext'
14619
{ (case "(($ac_try" in
14620
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14621
*) ac_try_echo=$ac_try;;
14623
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14624
(eval "$ac_try") 2>&5
14626
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14627
(exit $ac_status); }; }; then
14629
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14631
# Check for a 64-bit object if we didn't find anything.
14632
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14635
echo "$as_me: failed program was:" >&5
14636
sed 's/^/| /' conftest.$ac_ext >&5
14641
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14642
conftest$ac_exeext conftest.$ac_ext
14643
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14645
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14646
archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14648
if test "$host_cpu" = ia64; then
14649
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14650
allow_undefined_flag_F77="-z nodefs"
14651
archive_expsym_cmds_F77="\$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"
14653
# Determine the default libpath from the value encoded in an empty executable.
14654
cat >conftest.$ac_ext <<_ACEOF
14659
rm -f conftest.$ac_objext conftest$ac_exeext
14660
if { (ac_try="$ac_link"
14661
case "(($ac_try" in
14662
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14663
*) ac_try_echo=$ac_try;;
14665
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14666
(eval "$ac_link") 2>conftest.er1
14668
grep -v '^ *+' conftest.er1 >conftest.err
14670
cat conftest.err >&5
14671
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14672
(exit $ac_status); } &&
14673
{ ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14674
{ (case "(($ac_try" in
14675
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14676
*) ac_try_echo=$ac_try;;
14678
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14679
(eval "$ac_try") 2>&5
14681
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14682
(exit $ac_status); }; } &&
14683
{ ac_try='test -s conftest$ac_exeext'
14684
{ (case "(($ac_try" in
14685
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14686
*) ac_try_echo=$ac_try;;
14688
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14689
(eval "$ac_try") 2>&5
14691
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14692
(exit $ac_status); }; }; then
14694
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14696
# Check for a 64-bit object if we didn't find anything.
14697
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14700
echo "$as_me: failed program was:" >&5
14701
sed 's/^/| /' conftest.$ac_ext >&5
14706
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14707
conftest$ac_exeext conftest.$ac_ext
14708
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14710
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14711
# Warning - without using the other run time loading flags,
14712
# -berok will link without error, but may produce a broken library.
14713
no_undefined_flag_F77=' ${wl}-bernotok'
14714
allow_undefined_flag_F77=' ${wl}-berok'
14715
# Exported symbols can be pulled into shared objects from archives
14716
whole_archive_flag_spec_F77='$convenience'
14717
archive_cmds_need_lc_F77=yes
14718
# This is similar to how AIX traditionally builds its shared libraries.
14719
archive_expsym_cmds_F77="\$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'
14725
archive_cmds_F77='$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)'
14726
hardcode_libdir_flag_spec_F77='-L$libdir'
14727
hardcode_minus_L_F77=yes
14728
# see comment about different semantics on the GNU ld section
14733
export_dynamic_flag_spec_F77=-rdynamic
14736
cygwin* | mingw* | pw32*)
14737
# When not using gcc, we currently assume that we are using
14738
# Microsoft Visual C++.
14739
# hardcode_libdir_flag_spec is actually meaningless, as there is
14740
# no search path for DLLs.
14741
hardcode_libdir_flag_spec_F77=' '
14742
allow_undefined_flag_F77=unsupported
14743
# Tell ltmain to make .lib files, not .a files.
14745
# Tell ltmain to make .dll files, not .so files.
14747
# FIXME: Setting linknames here is a bad hack.
14748
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14749
# The linker will automatically build a .lib file if we build a DLL.
14750
old_archive_From_new_cmds_F77='true'
14751
# FIXME: Should let the user specify the lib program.
14752
old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14753
fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14754
enable_shared_with_static_runtimes_F77=yes
14757
darwin* | rhapsody*)
14759
rhapsody* | darwin1.[012])
14760
allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14763
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14764
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14766
case ${MACOSX_DEPLOYMENT_TARGET} in
14768
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14771
allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14777
archive_cmds_need_lc_F77=no
14778
hardcode_direct_F77=no
14779
hardcode_automatic_F77=yes
14780
hardcode_shlibpath_var_F77=unsupported
14781
whole_archive_flag_spec_F77=''
14782
link_all_deplibs_F77=yes
14783
if test "$GCC" = yes ; then
14784
output_verbose_link_cmd='echo'
14785
archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14786
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14787
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14788
archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14789
module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14791
case $cc_basename in
14793
output_verbose_link_cmd='echo'
14794
archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14795
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14796
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14797
archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14798
module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14808
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14809
hardcode_libdir_flag_spec_F77='-L$libdir'
14810
hardcode_shlibpath_var_F77=no
14817
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14818
# support. Future versions do this automatically, but an explicit c++rt0.o
14819
# does not break anything, and helps significantly (at the cost of a little
14822
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14823
hardcode_libdir_flag_spec_F77='-R$libdir'
14824
hardcode_direct_F77=yes
14825
hardcode_shlibpath_var_F77=no
14828
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
14830
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14831
hardcode_direct_F77=yes
14832
hardcode_minus_L_F77=yes
14833
hardcode_shlibpath_var_F77=no
14836
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14837
freebsd* | kfreebsd*-gnu | dragonfly*)
14838
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14839
hardcode_libdir_flag_spec_F77='-R$libdir'
14840
hardcode_direct_F77=yes
14841
hardcode_shlibpath_var_F77=no
14845
if test "$GCC" = yes; then
14846
archive_cmds_F77='$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'
14848
archive_cmds_F77='$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'
14850
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14851
hardcode_libdir_separator_F77=:
14852
hardcode_direct_F77=yes
14854
# hardcode_minus_L: Not really in the search PATH,
14855
# but as the default location of the library.
14856
hardcode_minus_L_F77=yes
14857
export_dynamic_flag_spec_F77='${wl}-E'
14861
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14862
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14864
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14866
if test "$with_gnu_ld" = no; then
14867
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14868
hardcode_libdir_separator_F77=:
14870
hardcode_direct_F77=yes
14871
export_dynamic_flag_spec_F77='${wl}-E'
14873
# hardcode_minus_L: Not really in the search PATH,
14874
# but as the default location of the library.
14875
hardcode_minus_L_F77=yes
14880
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14883
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14886
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14889
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14895
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14898
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14901
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14905
if test "$with_gnu_ld" = no; then
14906
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14907
hardcode_libdir_separator_F77=:
14911
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14912
hardcode_direct_F77=no
14913
hardcode_shlibpath_var_F77=no
14916
hardcode_direct_F77=yes
14917
export_dynamic_flag_spec_F77='${wl}-E'
14919
# hardcode_minus_L: Not really in the search PATH,
14920
# but as the default location of the library.
14921
hardcode_minus_L_F77=yes
14927
irix5* | irix6* | nonstopux*)
14928
if test "$GCC" = yes; then
14929
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14931
archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14932
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14934
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14935
hardcode_libdir_separator_F77=:
14936
link_all_deplibs_F77=yes
14940
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14941
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14943
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14945
hardcode_libdir_flag_spec_F77='-R$libdir'
14946
hardcode_direct_F77=yes
14947
hardcode_shlibpath_var_F77=no
14951
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14952
hardcode_direct_F77=yes
14953
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14954
hardcode_libdir_separator_F77=:
14955
hardcode_shlibpath_var_F77=no
14959
hardcode_direct_F77=yes
14960
hardcode_shlibpath_var_F77=no
14961
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14962
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14963
archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14964
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14965
export_dynamic_flag_spec_F77='${wl}-E'
14968
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14969
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14970
hardcode_libdir_flag_spec_F77='-R$libdir'
14973
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14974
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14981
hardcode_libdir_flag_spec_F77='-L$libdir'
14982
hardcode_minus_L_F77=yes
14983
allow_undefined_flag_F77=unsupported
14984
archive_cmds_F77='$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'
14985
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14989
if test "$GCC" = yes; then
14990
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14991
archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14993
allow_undefined_flag_F77=' -expect_unresolved \*'
14994
archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14996
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14997
hardcode_libdir_separator_F77=:
15000
osf4* | osf5*) # as osf3* with the addition of -msym flag
15001
if test "$GCC" = yes; then
15002
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15003
archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15004
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15006
allow_undefined_flag_F77=' -expect_unresolved \*'
15007
archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15008
archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15009
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
15011
# Both c and cxx compiler support -rpath directly
15012
hardcode_libdir_flag_spec_F77='-rpath $libdir'
15014
hardcode_libdir_separator_F77=:
15018
no_undefined_flag_F77=' -z text'
15019
if test "$GCC" = yes; then
15021
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15022
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15023
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15026
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15027
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15028
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15030
hardcode_libdir_flag_spec_F77='-R$libdir'
15031
hardcode_shlibpath_var_F77=no
15033
solaris2.[0-5] | solaris2.[0-5].*) ;;
15035
# The compiler driver will combine linker options so we
15036
# cannot just pass the convience library names through
15037
# without $wl, iff we do not link with $LD.
15038
# Luckily, gcc supports the same syntax we need for Sun Studio.
15039
# Supported since Solaris 2.6 (maybe 2.5.1?)
15042
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15044
whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
15047
link_all_deplibs_F77=yes
15051
if test "x$host_vendor" = xsequent; then
15052
# Use $CC to link under sequent, because it throws in some extra .o
15053
# files that make .init and .fini sections work.
15054
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15056
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15058
hardcode_libdir_flag_spec_F77='-L$libdir'
15059
hardcode_direct_F77=yes
15060
hardcode_minus_L_F77=yes
15061
hardcode_shlibpath_var_F77=no
15065
case $host_vendor in
15067
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15068
hardcode_direct_F77=yes # is this really true???
15071
## LD is ld it makes a PLAMLIB
15072
## CC just makes a GrossModule.
15073
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15074
reload_cmds_F77='$CC -r -o $output$reload_objs'
15075
hardcode_direct_F77=no
15078
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15079
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15082
runpath_var='LD_RUN_PATH'
15083
hardcode_shlibpath_var_F77=no
15087
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15088
hardcode_shlibpath_var_F77=no
15089
export_dynamic_flag_spec_F77='-Bexport'
15093
if test -d /usr/nec; then
15094
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15095
hardcode_shlibpath_var_F77=no
15096
runpath_var=LD_RUN_PATH
15097
hardcode_runpath_var=yes
15102
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15103
no_undefined_flag_F77='${wl}-z,text'
15104
archive_cmds_need_lc_F77=no
15105
hardcode_shlibpath_var_F77=no
15106
runpath_var='LD_RUN_PATH'
15108
if test "$GCC" = yes; then
15109
archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15110
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15112
archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15113
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15117
sysv5* | sco3.2v5* | sco5v6*)
15118
# Note: We can NOT use -z defs as we might desire, because we do not
15119
# link with -lc, and that would cause any symbols used from libc to
15120
# always be unresolved, which means just about no library would
15121
# ever link correctly. If we're not using GNU ld we use -z text
15122
# though, which does catch some bad symbols but isn't as heavy-handed
15124
no_undefined_flag_F77='${wl}-z,text'
15125
allow_undefined_flag_F77='${wl}-z,nodefs'
15126
archive_cmds_need_lc_F77=no
15127
hardcode_shlibpath_var_F77=no
15128
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15129
hardcode_libdir_separator_F77=':'
15130
link_all_deplibs_F77=yes
15131
export_dynamic_flag_spec_F77='${wl}-Bexport'
15132
runpath_var='LD_RUN_PATH'
15134
if test "$GCC" = yes; then
15135
archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15136
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15138
archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15139
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15144
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15145
hardcode_libdir_flag_spec_F77='-L$libdir'
15146
hardcode_shlibpath_var_F77=no
15155
{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15156
echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15157
test "$ld_shlibs_F77" = no && can_build_shared=no
15160
# Do we need to explicitly link libc?
15162
case "x$archive_cmds_need_lc_F77" in
15164
# Assume -lc should be added
15165
archive_cmds_need_lc_F77=yes
15167
if test "$enable_shared" = yes && test "$GCC" = yes; then
15168
case $archive_cmds_F77 in
15170
# FIXME: we may have to deal with multi-command sequences.
15173
# Test whether the compiler implicitly links with -lc since on some
15174
# systems, -lgcc has to come before -lc. If gcc already passes -lc
15175
# to ld, don't add -lc before -lgcc.
15176
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15177
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15179
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15181
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15182
(eval $ac_compile) 2>&5
15184
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15185
(exit $ac_status); } 2>conftest.err; then
15188
libobjs=conftest.$ac_objext
15190
wl=$lt_prog_compiler_wl_F77
15191
pic_flag=$lt_prog_compiler_pic_F77
15197
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15198
allow_undefined_flag_F77=
15199
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15200
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15202
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15203
(exit $ac_status); }
15205
archive_cmds_need_lc_F77=no
15207
archive_cmds_need_lc_F77=yes
15209
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15211
cat conftest.err 1>&5
15214
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15215
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15222
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15223
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15224
library_names_spec=
15225
libname_spec='lib$name'
15229
postuninstall_cmds=
15233
shlibpath_overrides_runpath=unknown
15235
dynamic_linker="$host_os ld.so"
15236
sys_lib_dlsearch_path_spec="/lib /usr/lib"
15237
if test "$GCC" = yes; then
15238
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15239
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15240
# if the path contains ";" then we assume it to be the separator
15241
# otherwise default to the standard path separator (i.e. ":") - it is
15242
# assumed that no part of a normal pathname contains ";" but that should
15243
# okay in the real world where ";" in dirpaths is itself problematic.
15244
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15246
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15249
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15251
need_lib_prefix=unknown
15252
hardcode_into_libs=no
15254
# when you set need_version to no, make sure it does not cause -set_version
15255
# flags to be left without arguments
15256
need_version=unknown
15261
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15262
shlibpath_var=LIBPATH
15264
# AIX 3 has no versioning support, so we append a major version to the name.
15265
soname_spec='${libname}${release}${shared_ext}$major'
15272
hardcode_into_libs=yes
15273
if test "$host_cpu" = ia64; then
15274
# AIX 5 supports IA64
15275
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15276
shlibpath_var=LD_LIBRARY_PATH
15278
# With GCC up to 2.95.x, collect2 would create an import file
15279
# for dependence libraries. The import file would start with
15280
# the line `#! .'. This would cause the generated library to
15281
# depend on `.', always an invalid library. This was fixed in
15282
# development snapshots of GCC prior to 3.0.
15284
aix4 | aix4.[01] | aix4.[01].*)
15285
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15287
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15290
can_build_shared=no
15294
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15295
# soname into executable. Probably we can add versioning support to
15296
# collect2, so additional links can be useful in future.
15297
if test "$aix_use_runtimelinking" = yes; then
15298
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
15299
# instead of lib<name>.a to let people know that these are not
15300
# typical AIX shared libraries.
15301
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15303
# We preserve .a as extension for shared libraries through AIX4.2
15304
# and later when we are not doing run time linking.
15305
library_names_spec='${libname}${release}.a $libname.a'
15306
soname_spec='${libname}${release}${shared_ext}$major'
15308
shlibpath_var=LIBPATH
15313
library_names_spec='$libname.ixlibrary $libname.a'
15314
# Create ${libname}_ixlibrary.a entries in /sys/libs.
15315
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
15319
library_names_spec='${libname}${shared_ext}'
15320
dynamic_linker="$host_os ld.so"
15321
shlibpath_var=LIBRARY_PATH
15327
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15328
soname_spec='${libname}${release}${shared_ext}$major'
15329
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15330
shlibpath_var=LD_LIBRARY_PATH
15331
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15332
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15333
# the default ld.so.conf also contains /usr/contrib/lib and
15334
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15335
# libtool to hard-code these into programs
15338
cygwin* | mingw* | pw32*)
15339
version_type=windows
15344
case $GCC,$host_os in
15345
yes,cygwin* | yes,mingw* | yes,pw32*)
15346
library_names_spec='$libname.dll.a'
15347
# DLL is installed to $(libdir)/../bin by postinstall_cmds
15348
postinstall_cmds='base_file=`basename \${file}`~
15349
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15350
dldir=$destdir/`dirname \$dlpath`~
15351
test -d \$dldir || mkdir -p \$dldir~
15352
$install_prog $dir/$dlname \$dldir/$dlname~
15353
chmod a+x \$dldir/$dlname'
15354
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15355
dlpath=$dir/\$dldll~
15357
shlibpath_overrides_runpath=yes
15361
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
15362
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15363
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15366
# MinGW DLLs use traditional 'lib' prefix
15367
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15368
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15369
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15370
# It is most probably a Windows format PATH printed by
15371
# mingw gcc, but we are running on Cygwin. Gcc prints its search
15372
# path with ; separators, and with drive letters. We can handle the
15373
# drive letters (cygwin fileutils understands them), so leave them,
15374
# especially as we might pass files found there to a mingw objdump,
15375
# which wouldn't understand a cygwinified path. Ahh.
15376
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15378
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15382
# pw32 DLLs use 'pw' prefix rather than 'lib'
15383
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15389
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15392
dynamic_linker='Win32 ld.exe'
15393
# FIXME: first we should search . and the directory the executable is in
15397
darwin* | rhapsody*)
15398
dynamic_linker="$host_os dyld"
15399
version_type=darwin
15402
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15403
soname_spec='${libname}${release}${major}$shared_ext'
15404
shlibpath_overrides_runpath=yes
15405
shlibpath_var=DYLD_LIBRARY_PATH
15406
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15407
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15408
if test "$GCC" = yes; then
15409
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15411
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15413
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15420
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15421
soname_spec='${libname}${release}${shared_ext}$major'
15422
shlibpath_var=LD_LIBRARY_PATH
15433
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15434
soname_spec='${libname}${release}${shared_ext}$major'
15435
shlibpath_var=LD_LIBRARY_PATH
15436
shlibpath_overrides_runpath=no
15437
hardcode_into_libs=yes
15438
dynamic_linker='GNU ld.so'
15441
freebsd* | dragonfly*)
15442
# DragonFly does not have aout. When/if they implement a new
15443
# versioning mechanism, adjust this.
15444
if test -x /usr/bin/objformat; then
15445
objformat=`/usr/bin/objformat`
15448
freebsd[123]*) objformat=aout ;;
15449
*) objformat=elf ;;
15452
version_type=freebsd-$objformat
15453
case $version_type in
15455
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15460
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15464
shlibpath_var=LD_LIBRARY_PATH
15467
shlibpath_overrides_runpath=yes
15469
freebsd3.[01]* | freebsdelf3.[01]*)
15470
shlibpath_overrides_runpath=yes
15471
hardcode_into_libs=yes
15473
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15474
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15475
shlibpath_overrides_runpath=no
15476
hardcode_into_libs=yes
15478
freebsd*) # from 4.6 on
15479
shlibpath_overrides_runpath=yes
15480
hardcode_into_libs=yes
15489
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15490
soname_spec='${libname}${release}${shared_ext}$major'
15491
shlibpath_var=LD_LIBRARY_PATH
15492
hardcode_into_libs=yes
15495
hpux9* | hpux10* | hpux11*)
15496
# Give a soname corresponding to the major version so that dld.sl refuses to
15497
# link against other versions.
15504
hardcode_into_libs=yes
15505
dynamic_linker="$host_os dld.so"
15506
shlibpath_var=LD_LIBRARY_PATH
15507
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15508
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15509
soname_spec='${libname}${release}${shared_ext}$major'
15510
if test "X$HPUX_IA64_MODE" = X32; then
15511
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15513
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15515
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15519
hardcode_into_libs=yes
15520
dynamic_linker="$host_os dld.sl"
15521
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15522
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15523
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15524
soname_spec='${libname}${release}${shared_ext}$major'
15525
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15526
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15530
dynamic_linker="$host_os dld.sl"
15531
shlibpath_var=SHLIB_PATH
15532
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15533
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15534
soname_spec='${libname}${release}${shared_ext}$major'
15537
# HP-UX runs *really* slowly unless shared libraries are mode 555.
15538
postinstall_cmds='chmod 555 $lib'
15545
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15546
soname_spec='${libname}${release}${shared_ext}$major'
15547
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15548
shlibpath_var=LD_LIBRARY_PATH
15549
shlibpath_overrides_runpath=no
15550
hardcode_into_libs=yes
15553
irix5* | irix6* | nonstopux*)
15555
nonstopux*) version_type=nonstopux ;;
15557
if test "$lt_cv_prog_gnu_ld" = yes; then
15565
soname_spec='${libname}${release}${shared_ext}$major'
15566
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15568
irix5* | nonstopux*)
15569
libsuff= shlibsuff=
15572
case $LD in # libtool.m4 will add one of these switches to LD
15573
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15574
libsuff= shlibsuff= libmagic=32-bit;;
15575
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15576
libsuff=32 shlibsuff=N32 libmagic=N32;;
15577
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15578
libsuff=64 shlibsuff=64 libmagic=64-bit;;
15579
*) libsuff= shlibsuff= libmagic=never-match;;
15583
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15584
shlibpath_overrides_runpath=no
15585
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15586
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15587
hardcode_into_libs=yes
15590
# No shared lib support for Linux oldld, aout, or coff.
15591
linux*oldld* | linux*aout* | linux*coff*)
15595
# This must be Linux ELF.
15600
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15601
soname_spec='${libname}${release}${shared_ext}$major'
15602
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15603
shlibpath_var=LD_LIBRARY_PATH
15604
shlibpath_overrides_runpath=no
15605
# This implies no fast_install, which is unacceptable.
15606
# Some rework will be needed to allow for fast_install
15607
# before this can be enabled.
15608
hardcode_into_libs=yes
15610
# find out which ABI we are using
15612
case "$host_cpu" in
15613
x86_64*|s390x*|powerpc64*)
15614
echo '#line 15614 "configure"' > conftest.$ac_ext
15615
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15616
(eval $ac_compile) 2>&5
15618
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15619
(exit $ac_status); }; then
15620
case `/usr/bin/file conftest.$ac_objext` in
15623
sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
15631
# Append ld.so.conf contents to the search path
15632
if test -f /etc/ld.so.conf; then
15633
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15634
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
15637
# We used to test for /lib/ld.so.1 and disable shared libraries on
15638
# powerpc, because MkLinux only supported shared libraries with the
15639
# GNU dynamic linker. Since this was broken with cross compilers,
15640
# most powerpc-linux boxes support dynamic linking these days and
15641
# people can always --disable-shared, the test was removed, and we
15642
# assume the GNU/Linux dynamic linker is in use.
15643
dynamic_linker='GNU/Linux ld.so'
15650
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15651
soname_spec='${libname}${release}${shared_ext}$major'
15652
shlibpath_var=LD_LIBRARY_PATH
15653
shlibpath_overrides_runpath=no
15654
hardcode_into_libs=yes
15655
dynamic_linker='GNU ld.so'
15662
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15663
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15664
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15665
dynamic_linker='NetBSD (a.out) ld.so'
15667
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15668
soname_spec='${libname}${release}${shared_ext}$major'
15669
dynamic_linker='NetBSD ld.elf_so'
15671
shlibpath_var=LD_LIBRARY_PATH
15672
shlibpath_overrides_runpath=yes
15673
hardcode_into_libs=yes
15678
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15679
shlibpath_var=LD_LIBRARY_PATH
15680
shlibpath_overrides_runpath=yes
15687
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15688
soname_spec='${libname}${release}${shared_ext}$major'
15689
shlibpath_var=LD_LIBRARY_PATH
15690
shlibpath_overrides_runpath=yes
15695
sys_lib_dlsearch_path_spec="/usr/lib"
15697
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15699
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15700
*) need_version=no ;;
15702
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15703
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15704
shlibpath_var=LD_LIBRARY_PATH
15705
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15707
openbsd2.[89] | openbsd2.[89].*)
15708
shlibpath_overrides_runpath=no
15711
shlibpath_overrides_runpath=yes
15715
shlibpath_overrides_runpath=yes
15720
libname_spec='$name'
15723
library_names_spec='$libname${shared_ext} $libname.a'
15724
dynamic_linker='OS/2 ld.exe'
15725
shlibpath_var=LIBPATH
15728
osf3* | osf4* | osf5*)
15732
soname_spec='${libname}${release}${shared_ext}$major'
15733
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15734
shlibpath_var=LD_LIBRARY_PATH
15735
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15736
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15743
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15744
soname_spec='${libname}${release}${shared_ext}$major'
15745
shlibpath_var=LD_LIBRARY_PATH
15746
shlibpath_overrides_runpath=yes
15747
hardcode_into_libs=yes
15748
# ldd complains unless libraries are executable
15749
postinstall_cmds='chmod +x $lib'
15754
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15755
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15756
shlibpath_var=LD_LIBRARY_PATH
15757
shlibpath_overrides_runpath=yes
15758
if test "$with_gnu_ld" = yes; then
15766
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15767
soname_spec='${libname}${release}${shared_ext}$major'
15768
shlibpath_var=LD_LIBRARY_PATH
15769
case $host_vendor in
15771
shlibpath_overrides_runpath=no
15773
export_dynamic_flag_spec='${wl}-Blargedynsym'
15774
runpath_var=LD_RUN_PATH
15782
shlibpath_overrides_runpath=no
15783
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15789
if test -d /usr/nec ;then
15791
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15792
soname_spec='$libname${shared_ext}.$major'
15793
shlibpath_var=LD_LIBRARY_PATH
15797
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15798
version_type=freebsd-elf
15801
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15802
soname_spec='${libname}${release}${shared_ext}$major'
15803
shlibpath_var=LD_LIBRARY_PATH
15804
hardcode_into_libs=yes
15805
if test "$with_gnu_ld" = yes; then
15806
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15807
shlibpath_overrides_runpath=no
15809
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15810
shlibpath_overrides_runpath=yes
15813
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15817
sys_lib_dlsearch_path_spec='/usr/lib'
15822
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15823
soname_spec='${libname}${release}${shared_ext}$major'
15824
shlibpath_var=LD_LIBRARY_PATH
15831
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15832
echo "${ECHO_T}$dynamic_linker" >&6; }
15833
test "$dynamic_linker" = no && can_build_shared=no
15835
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15836
if test "$GCC" = yes; then
15837
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15840
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15841
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15842
hardcode_action_F77=
15843
if test -n "$hardcode_libdir_flag_spec_F77" || \
15844
test -n "$runpath_var_F77" || \
15845
test "X$hardcode_automatic_F77" = "Xyes" ; then
15847
# We can hardcode non-existant directories.
15848
if test "$hardcode_direct_F77" != no &&
15849
# If the only mechanism to avoid hardcoding is shlibpath_var, we
15850
# have to relink, otherwise we might link with an installed library
15851
# when we should be linking with a yet-to-be-installed one
15852
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15853
test "$hardcode_minus_L_F77" != no; then
15854
# Linking always hardcodes the temporary library directory.
15855
hardcode_action_F77=relink
15857
# We can link without hardcoding, and we can hardcode nonexisting dirs.
15858
hardcode_action_F77=immediate
15861
# We cannot hardcode anything, or else we can only hardcode existing
15863
hardcode_action_F77=unsupported
15865
{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15866
echo "${ECHO_T}$hardcode_action_F77" >&6; }
15868
if test "$hardcode_action_F77" = relink; then
15869
# Fast installation is not supported
15870
enable_fast_install=no
15871
elif test "$shlibpath_overrides_runpath" = yes ||
15872
test "$enable_shared" = no; then
15873
# Fast installation is not necessary
15874
enable_fast_install=needless
15878
# The else clause should only fire when bootstrapping the
15879
# libtool distribution, otherwise you forgot to ship ltmain.sh
15880
# with your package, and you will get complaints that there are
15881
# no rules to generate ltmain.sh.
15882
if test -f "$ltmain"; then
15883
# See if we are running on zsh, and set the options which allow our commands through
15884
# without removal of \ escapes.
15885
if test -n "${ZSH_VERSION+set}" ; then
15886
setopt NO_GLOB_SUBST
15888
# Now quote all the things that may contain metacharacters while being
15889
# careful not to overquote the AC_SUBSTed values. We take copies of the
15890
# variables and quote the copies for generation of the libtool script.
15891
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15893
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15894
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15895
deplibs_check_method reload_flag reload_cmds need_locks \
15896
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15897
lt_cv_sys_global_symbol_to_c_name_address \
15898
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15899
old_postinstall_cmds old_postuninstall_cmds \
15903
lt_prog_compiler_wl_F77 \
15904
lt_prog_compiler_pic_F77 \
15905
lt_prog_compiler_static_F77 \
15906
lt_prog_compiler_no_builtin_flag_F77 \
15907
export_dynamic_flag_spec_F77 \
15908
thread_safe_flag_spec_F77 \
15909
whole_archive_flag_spec_F77 \
15910
enable_shared_with_static_runtimes_F77 \
15911
old_archive_cmds_F77 \
15912
old_archive_from_new_cmds_F77 \
15913
predep_objects_F77 \
15914
postdep_objects_F77 \
15917
compiler_lib_search_path_F77 \
15919
archive_expsym_cmds_F77 \
15920
postinstall_cmds_F77 \
15921
postuninstall_cmds_F77 \
15922
old_archive_from_expsyms_cmds_F77 \
15923
allow_undefined_flag_F77 \
15924
no_undefined_flag_F77 \
15925
export_symbols_cmds_F77 \
15926
hardcode_libdir_flag_spec_F77 \
15927
hardcode_libdir_flag_spec_ld_F77 \
15928
hardcode_libdir_separator_F77 \
15929
hardcode_automatic_F77 \
15931
module_expsym_cmds_F77 \
15932
lt_cv_prog_compiler_c_o_F77 \
15933
exclude_expsyms_F77 \
15934
include_expsyms_F77; do
15937
old_archive_cmds_F77 | \
15938
old_archive_from_new_cmds_F77 | \
15939
archive_cmds_F77 | \
15940
archive_expsym_cmds_F77 | \
15941
module_cmds_F77 | \
15942
module_expsym_cmds_F77 | \
15943
old_archive_from_expsyms_cmds_F77 | \
15944
export_symbols_cmds_F77 | \
15945
extract_expsyms_cmds | reload_cmds | finish_cmds | \
15946
postinstall_cmds | postuninstall_cmds | \
15947
old_postinstall_cmds | old_postuninstall_cmds | \
15948
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15949
# Double-quote double-evaled strings.
15950
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15953
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15959
*'\$0 --fallback-echo"')
15960
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15966
cat <<__EOF__ >> "$cfgfile"
15967
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15969
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15971
# Shell to use when invoking shell scripts.
15974
# Whether or not to build shared libraries.
15975
build_libtool_libs=$enable_shared
15977
# Whether or not to build static libraries.
15978
build_old_libs=$enable_static
15980
# Whether or not to add -lc for building shared libraries.
15981
build_libtool_need_lc=$archive_cmds_need_lc_F77
15983
# Whether or not to disallow shared libs when runtime libs are static
15984
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15986
# Whether or not to optimize for fast installation.
15987
fast_install=$enable_fast_install
15990
host_alias=$host_alias
15994
# The build system.
15995
build_alias=$build_alias
15999
# An echo program that does not interpret backslashes.
16004
AR_FLAGS=$lt_AR_FLAGS
16009
# LTCC compiler flags.
16010
LTCFLAGS=$lt_LTCFLAGS
16012
# A language-specific compiler.
16013
CC=$lt_compiler_F77
16015
# Is the compiler the GNU C compiler?
16021
# The linker used to build libraries.
16024
# Whether we need hard or soft links.
16027
# A BSD-compatible nm program.
16030
# A symbol stripping program
16033
# Used to examine libraries when file_magic_cmd begins "file"
16034
MAGIC_CMD=$MAGIC_CMD
16036
# Used on cygwin: DLL creation program.
16039
# Used on cygwin: object dumper.
16042
# Used on cygwin: assembler.
16045
# The name of the directory that contains temporary libtool files.
16048
# How to create reloadable object files.
16049
reload_flag=$lt_reload_flag
16050
reload_cmds=$lt_reload_cmds
16052
# How to pass a linker flag through the compiler.
16053
wl=$lt_lt_prog_compiler_wl_F77
16055
# Object file suffix (normally "o").
16056
objext="$ac_objext"
16058
# Old archive suffix (normally "a").
16061
# Shared library suffix (normally ".so").
16062
shrext_cmds='$shrext_cmds'
16064
# Executable file suffix (normally "").
16067
# Additional compiler flags for building library objects.
16068
pic_flag=$lt_lt_prog_compiler_pic_F77
16071
# What is the maximum length of a command?
16072
max_cmd_len=$lt_cv_sys_max_cmd_len
16074
# Does compiler simultaneously support -c and -o options?
16075
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16077
# Must we lock files when doing compilation?
16078
need_locks=$lt_need_locks
16080
# Do we need the lib prefix for modules?
16081
need_lib_prefix=$need_lib_prefix
16083
# Do we need a version for libraries?
16084
need_version=$need_version
16086
# Whether dlopen is supported.
16087
dlopen_support=$enable_dlopen
16089
# Whether dlopen of programs is supported.
16090
dlopen_self=$enable_dlopen_self
16092
# Whether dlopen of statically linked programs is supported.
16093
dlopen_self_static=$enable_dlopen_self_static
16095
# Compiler flag to prevent dynamic linking.
16096
link_static_flag=$lt_lt_prog_compiler_static_F77
16098
# Compiler flag to turn off builtin functions.
16099
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16101
# Compiler flag to allow reflexive dlopens.
16102
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16104
# Compiler flag to generate shared objects directly from archives.
16105
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16107
# Compiler flag to generate thread-safe objects.
16108
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16110
# Library versioning type.
16111
version_type=$version_type
16113
# Format of library name prefix.
16114
libname_spec=$lt_libname_spec
16116
# List of archive names. First name is the real one, the rest are links.
16117
# The last name is the one that the linker finds with -lNAME.
16118
library_names_spec=$lt_library_names_spec
16120
# The coded name of the library, if different from the real name.
16121
soname_spec=$lt_soname_spec
16123
# Commands used to build and install an old-style archive.
16125
old_archive_cmds=$lt_old_archive_cmds_F77
16126
old_postinstall_cmds=$lt_old_postinstall_cmds
16127
old_postuninstall_cmds=$lt_old_postuninstall_cmds
16129
# Create an old-style archive from a shared archive.
16130
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16132
# Create a temporary old-style archive to link instead of a shared archive.
16133
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16135
# Commands used to build and install a shared archive.
16136
archive_cmds=$lt_archive_cmds_F77
16137
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16138
postinstall_cmds=$lt_postinstall_cmds
16139
postuninstall_cmds=$lt_postuninstall_cmds
16141
# Commands used to build a loadable module (assumed same as above if empty)
16142
module_cmds=$lt_module_cmds_F77
16143
module_expsym_cmds=$lt_module_expsym_cmds_F77
16145
# Commands to strip libraries.
16146
old_striplib=$lt_old_striplib
16147
striplib=$lt_striplib
16149
# Dependencies to place before the objects being linked to create a
16151
predep_objects=$lt_predep_objects_F77
16153
# Dependencies to place after the objects being linked to create a
16155
postdep_objects=$lt_postdep_objects_F77
16157
# Dependencies to place before the objects being linked to create a
16159
predeps=$lt_predeps_F77
16161
# Dependencies to place after the objects being linked to create a
16163
postdeps=$lt_postdeps_F77
16165
# The library search path used internally by the compiler when linking
16166
# a shared library.
16167
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16169
# Method to check whether dependent libraries are shared objects.
16170
deplibs_check_method=$lt_deplibs_check_method
16172
# Command to use when deplibs_check_method == file_magic.
16173
file_magic_cmd=$lt_file_magic_cmd
16175
# Flag that allows shared libraries with undefined symbols to be built.
16176
allow_undefined_flag=$lt_allow_undefined_flag_F77
16178
# Flag that forces no undefined symbols.
16179
no_undefined_flag=$lt_no_undefined_flag_F77
16181
# Commands used to finish a libtool library installation in a directory.
16182
finish_cmds=$lt_finish_cmds
16184
# Same as above, but a single script fragment to be evaled but not shown.
16185
finish_eval=$lt_finish_eval
16187
# Take the output of nm and produce a listing of raw symbols and C names.
16188
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16190
# Transform the output of nm in a proper C declaration
16191
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16193
# Transform the output of nm in a C name address pair
16194
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16196
# This is the shared library runtime path variable.
16197
runpath_var=$runpath_var
16199
# This is the shared library path variable.
16200
shlibpath_var=$shlibpath_var
16202
# Is shlibpath searched before the hard-coded library search path?
16203
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16205
# How to hardcode a shared library path into an executable.
16206
hardcode_action=$hardcode_action_F77
16208
# Whether we should hardcode library paths into libraries.
16209
hardcode_into_libs=$hardcode_into_libs
16211
# Flag to hardcode \$libdir into a binary during linking.
16212
# This must work even if \$libdir does not exist.
16213
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16215
# If ld is used when linking, flag to hardcode \$libdir into
16216
# a binary during linking. This must work even if \$libdir does
16218
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16220
# Whether we need a single -rpath flag with a separated argument.
16221
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16223
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16224
# resulting binary.
16225
hardcode_direct=$hardcode_direct_F77
16227
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16228
# resulting binary.
16229
hardcode_minus_L=$hardcode_minus_L_F77
16231
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16232
# the resulting binary.
16233
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16235
# Set to yes if building a shared library automatically hardcodes DIR into the library
16236
# and all subsequent libraries and executables linked against it.
16237
hardcode_automatic=$hardcode_automatic_F77
16239
# Variables whose values should be saved in libtool wrapper scripts and
16240
# restored at relink time.
16241
variables_saved_for_relink="$variables_saved_for_relink"
16243
# Whether libtool must link a program against all its dependency libraries.
16244
link_all_deplibs=$link_all_deplibs_F77
16246
# Compile-time system search path for libraries
16247
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16249
# Run-time system search path for libraries
16250
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16252
# Fix the shell variable \$srcfile for the compiler.
16253
fix_srcfile_path="$fix_srcfile_path_F77"
16255
# Set to yes if exported symbols are required.
16256
always_export_symbols=$always_export_symbols_F77
16258
# The commands to list exported symbols.
16259
export_symbols_cmds=$lt_export_symbols_cmds_F77
16261
# The commands to extract the exported symbol list from a shared archive.
16262
extract_expsyms_cmds=$lt_extract_expsyms_cmds
16264
# Symbols that should not be listed in the preloaded symbols.
16265
exclude_expsyms=$lt_exclude_expsyms_F77
16267
# Symbols that must always be exported.
16268
include_expsyms=$lt_include_expsyms_F77
16270
# ### END LIBTOOL TAG CONFIG: $tagname
16276
# If there is no Makefile yet, we rely on a make rule to execute
16277
# `config.status --recheck' to rerun these tests and create the
16278
# libtool script then.
16279
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16280
if test -f "$ltmain_in"; then
16281
test -f Makefile && make "$ltmain"
16287
ac_cpp='$CPP $CPPFLAGS'
16288
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16289
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16290
ac_compiler_gnu=$ac_cv_c_compiler_gnu
16300
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16303
# Source file extension for Java test sources.
16306
# Object file extension for compiled Java test sources.
16310
# Code to be used in simple compile tests
16311
lt_simple_compile_test_code="class foo {}\n"
16313
# Code to be used in simple link tests
16314
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16316
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16318
# If no C compiler was specified, use CC.
16321
# If no C compiler flags were specified, use CFLAGS.
16322
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16324
# Allow CC to be a program name with arguments.
16328
# save warnings/boilerplate of simple test code
16329
ac_outfile=conftest.$ac_objext
16330
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16331
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16332
_lt_compiler_boilerplate=`cat conftest.err`
16335
ac_outfile=conftest.$ac_objext
16336
printf "$lt_simple_link_test_code" >conftest.$ac_ext
16337
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16338
_lt_linker_boilerplate=`cat conftest.err`
16342
# Allow CC to be a program name with arguments.
16347
for cc_temp in $compiler""; do
16349
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16350
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16355
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16358
# GCJ did not exist at the time GCC didn't implicitly link libc in.
16359
archive_cmds_need_lc_GCJ=no
16361
old_archive_cmds_GCJ=$old_archive_cmds
16364
## There is no encapsulation within the following macros, do not change
16365
## the running order or otherwise move them around unless you know exactly
16366
## what you are doing...
16368
lt_prog_compiler_no_builtin_flag_GCJ=
16370
if test "$GCC" = yes; then
16371
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16374
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16375
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16376
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16377
echo $ECHO_N "(cached) $ECHO_C" >&6
16379
lt_cv_prog_compiler_rtti_exceptions=no
16380
ac_outfile=conftest.$ac_objext
16381
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16382
lt_compiler_flag="-fno-rtti -fno-exceptions"
16383
# Insert the option either (1) after the last *FLAGS variable, or
16384
# (2) before a word containing "conftest.", or (3) at the end.
16385
# Note that $ac_compile itself does not contain backslashes and begins
16386
# with a dollar sign (not a hyphen), so the echo should work correctly.
16387
# The option is referenced via a variable to avoid confusing sed.
16388
lt_compile=`echo "$ac_compile" | $SED \
16389
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16390
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16391
-e 's:$: $lt_compiler_flag:'`
16392
(eval echo "\"\$as_me:16392: $lt_compile\"" >&5)
16393
(eval "$lt_compile" 2>conftest.err)
16395
cat conftest.err >&5
16396
echo "$as_me:16396: \$? = $ac_status" >&5
16397
if (exit $ac_status) && test -s "$ac_outfile"; then
16398
# The compiler can only warn and ignore the option if not recognized
16399
# So say no if there are warnings other than the usual output.
16400
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16401
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16402
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16403
lt_cv_prog_compiler_rtti_exceptions=yes
16409
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16410
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16412
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16413
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16420
lt_prog_compiler_wl_GCJ=
16421
lt_prog_compiler_pic_GCJ=
16422
lt_prog_compiler_static_GCJ=
16424
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16425
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16427
if test "$GCC" = yes; then
16428
lt_prog_compiler_wl_GCJ='-Wl,'
16429
lt_prog_compiler_static_GCJ='-static'
16433
# All AIX code is PIC.
16434
if test "$host_cpu" = ia64; then
16435
# AIX 5 now supports IA64 processor
16436
lt_prog_compiler_static_GCJ='-Bstatic'
16441
# FIXME: we need at least 68020 code to build shared libraries, but
16442
# adding the `-m68020' flag to GCC prevents building anything better,
16444
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16447
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16448
# PIC is the default for these OSes.
16451
mingw* | pw32* | os2*)
16452
# This hack is so that the source file can tell whether it is being
16453
# built for inclusion in a dll (and should export symbols for example).
16454
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16457
darwin* | rhapsody*)
16458
# PIC is the default on this platform
16459
# Common symbols not allowed in MH_DYLIB files
16460
lt_prog_compiler_pic_GCJ='-fno-common'
16464
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
16465
# Instead, we relocate shared libraries at runtime.
16469
# Just because we use GCC doesn't mean we suddenly get shared libraries
16470
# on systems that don't support them.
16471
lt_prog_compiler_can_build_shared_GCJ=no
16476
if test -d /usr/nec; then
16477
lt_prog_compiler_pic_GCJ=-Kconform_pic
16482
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16483
# not for PA HP-UX.
16489
lt_prog_compiler_pic_GCJ='-fPIC'
16495
lt_prog_compiler_pic_GCJ='-fPIC'
16499
# PORTME Check for flag to pass linker flags through the system compiler.
16502
lt_prog_compiler_wl_GCJ='-Wl,'
16503
if test "$host_cpu" = ia64; then
16504
# AIX 5 now supports IA64 processor
16505
lt_prog_compiler_static_GCJ='-Bstatic'
16507
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16511
# PIC is the default on this platform
16512
# Common symbols not allowed in MH_DYLIB files
16513
case $cc_basename in
16515
lt_prog_compiler_pic_GCJ='-qnocommon'
16516
lt_prog_compiler_wl_GCJ='-Wl,'
16521
mingw* | pw32* | os2*)
16522
# This hack is so that the source file can tell whether it is being
16523
# built for inclusion in a dll (and should export symbols for example).
16524
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16527
hpux9* | hpux10* | hpux11*)
16528
lt_prog_compiler_wl_GCJ='-Wl,'
16529
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16530
# not for PA HP-UX.
16536
lt_prog_compiler_pic_GCJ='+Z'
16539
# Is there a better lt_prog_compiler_static that works with the bundled CC?
16540
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16543
irix5* | irix6* | nonstopux*)
16544
lt_prog_compiler_wl_GCJ='-Wl,'
16545
# PIC (with -KPIC) is the default.
16546
lt_prog_compiler_static_GCJ='-non_shared'
16550
lt_prog_compiler_pic_GCJ='-KPIC'
16551
lt_prog_compiler_static_GCJ='-Bstatic'
16555
case $cc_basename in
16557
lt_prog_compiler_wl_GCJ='-Wl,'
16558
lt_prog_compiler_pic_GCJ='-KPIC'
16559
lt_prog_compiler_static_GCJ='-static'
16561
pgcc* | pgf77* | pgf90* | pgf95*)
16562
# Portland Group compilers (*not* the Pentium gcc compiler,
16563
# which looks to be a dead project)
16564
lt_prog_compiler_wl_GCJ='-Wl,'
16565
lt_prog_compiler_pic_GCJ='-fpic'
16566
lt_prog_compiler_static_GCJ='-Bstatic'
16569
lt_prog_compiler_wl_GCJ='-Wl,'
16570
# All Alpha code is PIC.
16571
lt_prog_compiler_static_GCJ='-non_shared'
16576
osf3* | osf4* | osf5*)
16577
lt_prog_compiler_wl_GCJ='-Wl,'
16578
# All OSF/1 code is PIC.
16579
lt_prog_compiler_static_GCJ='-non_shared'
16583
lt_prog_compiler_pic_GCJ='-KPIC'
16584
lt_prog_compiler_static_GCJ='-Bstatic'
16585
case $cc_basename in
16586
f77* | f90* | f95*)
16587
lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16589
lt_prog_compiler_wl_GCJ='-Wl,';;
16594
lt_prog_compiler_wl_GCJ='-Qoption ld '
16595
lt_prog_compiler_pic_GCJ='-PIC'
16596
lt_prog_compiler_static_GCJ='-Bstatic'
16599
sysv4 | sysv4.2uw2* | sysv4.3*)
16600
lt_prog_compiler_wl_GCJ='-Wl,'
16601
lt_prog_compiler_pic_GCJ='-KPIC'
16602
lt_prog_compiler_static_GCJ='-Bstatic'
16606
if test -d /usr/nec ;then
16607
lt_prog_compiler_pic_GCJ='-Kconform_pic'
16608
lt_prog_compiler_static_GCJ='-Bstatic'
16612
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16613
lt_prog_compiler_wl_GCJ='-Wl,'
16614
lt_prog_compiler_pic_GCJ='-KPIC'
16615
lt_prog_compiler_static_GCJ='-Bstatic'
16619
lt_prog_compiler_wl_GCJ='-Wl,'
16620
lt_prog_compiler_can_build_shared_GCJ=no
16624
lt_prog_compiler_pic_GCJ='-pic'
16625
lt_prog_compiler_static_GCJ='-Bstatic'
16629
lt_prog_compiler_can_build_shared_GCJ=no
16634
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16635
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16638
# Check to make sure the PIC flag actually works.
16640
if test -n "$lt_prog_compiler_pic_GCJ"; then
16642
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16643
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16644
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16645
echo $ECHO_N "(cached) $ECHO_C" >&6
16647
lt_prog_compiler_pic_works_GCJ=no
16648
ac_outfile=conftest.$ac_objext
16649
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16650
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16651
# Insert the option either (1) after the last *FLAGS variable, or
16652
# (2) before a word containing "conftest.", or (3) at the end.
16653
# Note that $ac_compile itself does not contain backslashes and begins
16654
# with a dollar sign (not a hyphen), so the echo should work correctly.
16655
# The option is referenced via a variable to avoid confusing sed.
16656
lt_compile=`echo "$ac_compile" | $SED \
16657
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16658
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16659
-e 's:$: $lt_compiler_flag:'`
16660
(eval echo "\"\$as_me:16660: $lt_compile\"" >&5)
16661
(eval "$lt_compile" 2>conftest.err)
16663
cat conftest.err >&5
16664
echo "$as_me:16664: \$? = $ac_status" >&5
16665
if (exit $ac_status) && test -s "$ac_outfile"; then
16666
# The compiler can only warn and ignore the option if not recognized
16667
# So say no if there are warnings other than the usual output.
16668
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16669
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16670
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16671
lt_prog_compiler_pic_works_GCJ=yes
16677
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16678
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16680
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16681
case $lt_prog_compiler_pic_GCJ in
16683
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16686
lt_prog_compiler_pic_GCJ=
16687
lt_prog_compiler_can_build_shared_GCJ=no
16692
# For platforms which do not support PIC, -DPIC is meaningless:
16694
lt_prog_compiler_pic_GCJ=
16697
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16702
# Check to make sure the static flag actually works.
16704
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16705
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16706
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16707
if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16708
echo $ECHO_N "(cached) $ECHO_C" >&6
16710
lt_prog_compiler_static_works_GCJ=no
16711
save_LDFLAGS="$LDFLAGS"
16712
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16713
printf "$lt_simple_link_test_code" > conftest.$ac_ext
16714
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16715
# The linker can only warn and ignore the option if not recognized
16716
# So say no if there are warnings
16717
if test -s conftest.err; then
16718
# Append any errors to the config.log.
16719
cat conftest.err 1>&5
16720
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16721
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16722
if diff conftest.exp conftest.er2 >/dev/null; then
16723
lt_prog_compiler_static_works_GCJ=yes
16726
lt_prog_compiler_static_works_GCJ=yes
16730
LDFLAGS="$save_LDFLAGS"
16733
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16734
echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16736
if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16739
lt_prog_compiler_static_GCJ=
16743
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16744
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16745
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16746
echo $ECHO_N "(cached) $ECHO_C" >&6
16748
lt_cv_prog_compiler_c_o_GCJ=no
16749
$rm -r conftest 2>/dev/null
16753
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16755
lt_compiler_flag="-o out/conftest2.$ac_objext"
16756
# Insert the option either (1) after the last *FLAGS variable, or
16757
# (2) before a word containing "conftest.", or (3) at the end.
16758
# Note that $ac_compile itself does not contain backslashes and begins
16759
# with a dollar sign (not a hyphen), so the echo should work correctly.
16760
lt_compile=`echo "$ac_compile" | $SED \
16761
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16762
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16763
-e 's:$: $lt_compiler_flag:'`
16764
(eval echo "\"\$as_me:16764: $lt_compile\"" >&5)
16765
(eval "$lt_compile" 2>out/conftest.err)
16767
cat out/conftest.err >&5
16768
echo "$as_me:16768: \$? = $ac_status" >&5
16769
if (exit $ac_status) && test -s out/conftest2.$ac_objext
16771
# The compiler can only warn and ignore the option if not recognized
16772
# So say no if there are warnings
16773
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16774
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16775
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16776
lt_cv_prog_compiler_c_o_GCJ=yes
16781
# SGI C++ compiler will create directory out/ii_files/ for
16782
# template instantiation
16783
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16784
$rm out/* && rmdir out
16790
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16791
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16794
hard_links="nottested"
16795
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16796
# do not overwrite the value of need_locks provided by the user
16797
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16798
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16801
ln conftest.a conftest.b 2>/dev/null && hard_links=no
16803
ln conftest.a conftest.b 2>&5 || hard_links=no
16804
ln conftest.a conftest.b 2>/dev/null && hard_links=no
16805
{ echo "$as_me:$LINENO: result: $hard_links" >&5
16806
echo "${ECHO_T}$hard_links" >&6; }
16807
if test "$hard_links" = no; then
16808
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16809
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16816
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16817
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16820
allow_undefined_flag_GCJ=
16821
enable_shared_with_static_runtimes_GCJ=no
16823
archive_expsym_cmds_GCJ=
16824
old_archive_From_new_cmds_GCJ=
16825
old_archive_from_expsyms_cmds_GCJ=
16826
export_dynamic_flag_spec_GCJ=
16827
whole_archive_flag_spec_GCJ=
16828
thread_safe_flag_spec_GCJ=
16829
hardcode_libdir_flag_spec_GCJ=
16830
hardcode_libdir_flag_spec_ld_GCJ=
16831
hardcode_libdir_separator_GCJ=
16832
hardcode_direct_GCJ=no
16833
hardcode_minus_L_GCJ=no
16834
hardcode_shlibpath_var_GCJ=unsupported
16835
link_all_deplibs_GCJ=unknown
16836
hardcode_automatic_GCJ=no
16838
module_expsym_cmds_GCJ=
16839
always_export_symbols_GCJ=no
16840
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16841
# include_expsyms should be a list of space-separated symbols to be *always*
16842
# included in the symbol list
16843
include_expsyms_GCJ=
16844
# exclude_expsyms can be an extended regexp of symbols to exclude
16845
# it will be wrapped by ` (' and `)$', so one must not match beginning or
16846
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16847
# as well as any symbol that contains `d'.
16848
exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16849
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16850
# platforms (ab)use it in PIC code, but their linkers get confused if
16851
# the symbol is explicitly referenced. Since portable code cannot
16852
# rely on this symbol name, it's probably fine to never include it in
16853
# preloaded symbol tables.
16854
extract_expsyms_cmds=
16855
# Just being paranoid about ensuring that cc_basename is set.
16856
for cc_temp in $compiler""; do
16858
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16859
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16864
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16867
cygwin* | mingw* | pw32*)
16868
# FIXME: the MSVC++ port hasn't been tested in a loooong time
16869
# When not using gcc, we currently assume that we are using
16870
# Microsoft Visual C++.
16871
if test "$GCC" != yes; then
16876
# we just hope/assume this is gcc and not c89 (= MSVC++)
16885
if test "$with_gnu_ld" = yes; then
16886
# If archive_cmds runs LD, not CC, wlarc should be empty
16889
# Set some defaults for GNU ld with shared library support. These
16890
# are reset later if shared libraries are not supported. Putting them
16891
# here allows them to be overridden if necessary.
16892
runpath_var=LD_RUN_PATH
16893
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16894
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16895
# ancient GNU ld didn't support --whole-archive et. al.
16896
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16897
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16899
whole_archive_flag_spec_GCJ=
16901
supports_anon_versioning=no
16902
case `$LD -v 2>/dev/null` in
16903
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16904
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16905
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16906
*\ 2.11.*) ;; # other 2.11 versions
16907
*) supports_anon_versioning=yes ;;
16910
# See if GNU ld supports shared libraries.
16912
aix3* | aix4* | aix5*)
16913
# On AIX/PPC, the GNU linker is very broken
16914
if test "$host_cpu" != ia64; then
16918
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16919
*** to be unable to reliably create shared libraries on AIX.
16920
*** Therefore, libtool is disabling shared libraries support. If you
16921
*** really care for shared libraries, you may want to modify your PATH
16922
*** so that a non-GNU linker is found, and then restart.
16929
archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
16930
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16931
hardcode_minus_L_GCJ=yes
16933
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16934
# that the semantics of dynamic libraries on AmigaOS, at least up
16935
# to version 4, is to share data among multiple programs linked
16936
# with the same dynamic library. Since this doesn't match the
16937
# behavior of shared libraries on other platforms, we can't use
16943
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16944
allow_undefined_flag_GCJ=unsupported
16945
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16946
# support --undefined. This deserves some investigation. FIXME
16947
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16953
cygwin* | mingw* | pw32*)
16954
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16955
# as there is no search path for DLLs.
16956
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16957
allow_undefined_flag_GCJ=unsupported
16958
always_export_symbols_GCJ=no
16959
enable_shared_with_static_runtimes_GCJ=yes
16960
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16962
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16963
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16964
# If the export-symbols file already is a .def file (1st line
16965
# is EXPORTS), use it as is; otherwise, prepend...
16966
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16967
cp $export_symbols $output_objdir/$soname.def;
16969
echo EXPORTS > $output_objdir/$soname.def;
16970
cat $export_symbols >> $output_objdir/$soname.def;
16972
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16979
hardcode_direct_GCJ=no
16980
hardcode_shlibpath_var_GCJ=no
16981
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16982
export_dynamic_flag_spec_GCJ='${wl}-E'
16983
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16984
# Instead, shared libraries are loaded at an image base (0x10000000 by
16985
# default) and relocated if they conflict, which is a slow very memory
16986
# consuming and fragmenting process. To avoid this, we pick a random,
16987
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16988
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
16989
archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16990
archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16994
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16996
case $cc_basename,$host_cpu in
16997
pgcc*) # Portland Group C compiler
16998
whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16999
tmp_addflag=' $pic_flag'
17001
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17002
whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17003
tmp_addflag=' $pic_flag -Mnomain' ;;
17004
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17005
tmp_addflag=' -i_dynamic' ;;
17006
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17007
tmp_addflag=' -i_dynamic -nofor_main' ;;
17008
ifc* | ifort*) # Intel Fortran compiler
17009
tmp_addflag=' -nofor_main' ;;
17011
archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17013
if test $supports_anon_versioning = yes; then
17014
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17015
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17016
$echo "local: *; };" >> $output_objdir/$libname.ver~
17017
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17025
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17026
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17029
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17030
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17035
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17039
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17040
*** create shared libraries on Solaris systems. Therefore, libtool
17041
*** is disabling shared libraries support. We urge you to upgrade GNU
17042
*** binutils to release 2.9.1 or newer. Another option is to modify
17043
*** your PATH or compiler configuration so that the native linker is
17044
*** used, and then restart.
17047
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17048
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17049
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17055
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17056
case `$LD -v 2>&1` in
17057
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17061
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17062
*** reliably create shared libraries on SCO systems. Therefore, libtool
17063
*** is disabling shared libraries support. We urge you to upgrade GNU
17064
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17065
*** your PATH or compiler configuration so that the native linker is
17066
*** used, and then restart.
17071
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17072
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17073
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17074
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17083
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17085
hardcode_direct_GCJ=yes
17086
hardcode_shlibpath_var_GCJ=no
17090
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17091
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17092
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17099
if test "$ld_shlibs_GCJ" = no; then
17101
hardcode_libdir_flag_spec_GCJ=
17102
export_dynamic_flag_spec_GCJ=
17103
whole_archive_flag_spec_GCJ=
17106
# PORTME fill in a description of your system's linker (not GNU ld)
17109
allow_undefined_flag_GCJ=unsupported
17110
always_export_symbols_GCJ=yes
17111
archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
17112
# Note: this linker hardcodes the directories in LIBPATH if there
17113
# are no directories specified by -L.
17114
hardcode_minus_L_GCJ=yes
17115
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17116
# Neither direct hardcoding nor static linking is supported with a
17118
hardcode_direct_GCJ=unsupported
17123
if test "$host_cpu" = ia64; then
17124
# On IA64, the linker does run time linking by default, so we don't
17125
# have to do anything special.
17126
aix_use_runtimelinking=no
17127
exp_sym_flag='-Bexport'
17130
# If we're using GNU nm, then we don't want the "-C" option.
17131
# -C means demangle to AIX nm, but means don't demangle with GNU nm
17132
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17133
export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17135
export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17137
aix_use_runtimelinking=no
17139
# Test if we are trying to use run time linking or normal
17140
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17141
# need to do runtime linking.
17142
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17143
for ld_flag in $LDFLAGS; do
17144
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17145
aix_use_runtimelinking=yes
17152
exp_sym_flag='-bexport'
17153
no_entry_flag='-bnoentry'
17156
# When large executables or shared objects are built, AIX ld can
17157
# have problems creating the table of contents. If linking a library
17158
# or program results in "error TOC overflow" add -mminimal-toc to
17159
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17160
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17162
archive_cmds_GCJ=''
17163
hardcode_direct_GCJ=yes
17164
hardcode_libdir_separator_GCJ=':'
17165
link_all_deplibs_GCJ=yes
17167
if test "$GCC" = yes; then
17168
case $host_os in aix4.[012]|aix4.[012].*)
17169
# We only want to do this on AIX 4.2 and lower, the check
17170
# below for broken collect2 doesn't work under 4.3+
17171
collect2name=`${CC} -print-prog-name=collect2`
17172
if test -f "$collect2name" && \
17173
strings "$collect2name" | grep resolve_lib_name >/dev/null
17175
# We have reworked collect2
17176
hardcode_direct_GCJ=yes
17178
# We have old collect2
17179
hardcode_direct_GCJ=unsupported
17180
# It fails to find uninstalled libraries when the uninstalled
17181
# path is not listed in the libpath. Setting hardcode_minus_L
17182
# to unsupported forces relinking
17183
hardcode_minus_L_GCJ=yes
17184
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17185
hardcode_libdir_separator_GCJ=
17189
shared_flag='-shared'
17190
if test "$aix_use_runtimelinking" = yes; then
17191
shared_flag="$shared_flag "'${wl}-G'
17195
if test "$host_cpu" = ia64; then
17196
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17197
# chokes on -Wl,-G. The following line is correct:
17200
if test "$aix_use_runtimelinking" = yes; then
17201
shared_flag='${wl}-G'
17203
shared_flag='${wl}-bM:SRE'
17208
# It seems that -bexpall does not export symbols beginning with
17209
# underscore (_), so it is better to generate a list of symbols to export.
17210
always_export_symbols_GCJ=yes
17211
if test "$aix_use_runtimelinking" = yes; then
17212
# Warning - without using the other runtime loading flags (-brtl),
17213
# -berok will link without error, but may produce a broken library.
17214
allow_undefined_flag_GCJ='-berok'
17215
# Determine the default libpath from the value encoded in an empty executable.
17216
cat >conftest.$ac_ext <<_ACEOF
17219
cat confdefs.h >>conftest.$ac_ext
17220
cat >>conftest.$ac_ext <<_ACEOF
17221
/* end confdefs.h. */
17231
rm -f conftest.$ac_objext conftest$ac_exeext
17232
if { (ac_try="$ac_link"
17233
case "(($ac_try" in
17234
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17235
*) ac_try_echo=$ac_try;;
17237
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17238
(eval "$ac_link") 2>conftest.er1
17240
grep -v '^ *+' conftest.er1 >conftest.err
17242
cat conftest.err >&5
17243
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17244
(exit $ac_status); } &&
17245
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17246
{ (case "(($ac_try" in
17247
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17248
*) ac_try_echo=$ac_try;;
17250
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17251
(eval "$ac_try") 2>&5
17253
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17254
(exit $ac_status); }; } &&
17255
{ ac_try='test -s conftest$ac_exeext'
17256
{ (case "(($ac_try" in
17257
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17258
*) ac_try_echo=$ac_try;;
17260
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17261
(eval "$ac_try") 2>&5
17263
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17264
(exit $ac_status); }; }; then
17266
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17268
# Check for a 64-bit object if we didn't find anything.
17269
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17272
echo "$as_me: failed program was:" >&5
17273
sed 's/^/| /' conftest.$ac_ext >&5
17278
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17279
conftest$ac_exeext conftest.$ac_ext
17280
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17282
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17283
archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17285
if test "$host_cpu" = ia64; then
17286
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17287
allow_undefined_flag_GCJ="-z nodefs"
17288
archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
17290
# Determine the default libpath from the value encoded in an empty executable.
17291
cat >conftest.$ac_ext <<_ACEOF
17294
cat confdefs.h >>conftest.$ac_ext
17295
cat >>conftest.$ac_ext <<_ACEOF
17296
/* end confdefs.h. */
17306
rm -f conftest.$ac_objext conftest$ac_exeext
17307
if { (ac_try="$ac_link"
17308
case "(($ac_try" in
17309
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17310
*) ac_try_echo=$ac_try;;
17312
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17313
(eval "$ac_link") 2>conftest.er1
17315
grep -v '^ *+' conftest.er1 >conftest.err
17317
cat conftest.err >&5
17318
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17319
(exit $ac_status); } &&
17320
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17321
{ (case "(($ac_try" in
17322
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17323
*) ac_try_echo=$ac_try;;
17325
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17326
(eval "$ac_try") 2>&5
17328
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17329
(exit $ac_status); }; } &&
17330
{ ac_try='test -s conftest$ac_exeext'
17331
{ (case "(($ac_try" in
17332
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17333
*) ac_try_echo=$ac_try;;
17335
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17336
(eval "$ac_try") 2>&5
17338
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17339
(exit $ac_status); }; }; then
17341
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17343
# Check for a 64-bit object if we didn't find anything.
17344
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17347
echo "$as_me: failed program was:" >&5
17348
sed 's/^/| /' conftest.$ac_ext >&5
17353
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17354
conftest$ac_exeext conftest.$ac_ext
17355
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17357
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17358
# Warning - without using the other run time loading flags,
17359
# -berok will link without error, but may produce a broken library.
17360
no_undefined_flag_GCJ=' ${wl}-bernotok'
17361
allow_undefined_flag_GCJ=' ${wl}-berok'
17362
# Exported symbols can be pulled into shared objects from archives
17363
whole_archive_flag_spec_GCJ='$convenience'
17364
archive_cmds_need_lc_GCJ=yes
17365
# This is similar to how AIX traditionally builds its shared libraries.
17366
archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17372
archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
17373
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17374
hardcode_minus_L_GCJ=yes
17375
# see comment about different semantics on the GNU ld section
17380
export_dynamic_flag_spec_GCJ=-rdynamic
17383
cygwin* | mingw* | pw32*)
17384
# When not using gcc, we currently assume that we are using
17385
# Microsoft Visual C++.
17386
# hardcode_libdir_flag_spec is actually meaningless, as there is
17387
# no search path for DLLs.
17388
hardcode_libdir_flag_spec_GCJ=' '
17389
allow_undefined_flag_GCJ=unsupported
17390
# Tell ltmain to make .lib files, not .a files.
17392
# Tell ltmain to make .dll files, not .so files.
17394
# FIXME: Setting linknames here is a bad hack.
17395
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17396
# The linker will automatically build a .lib file if we build a DLL.
17397
old_archive_From_new_cmds_GCJ='true'
17398
# FIXME: Should let the user specify the lib program.
17399
old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17400
fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17401
enable_shared_with_static_runtimes_GCJ=yes
17404
darwin* | rhapsody*)
17406
rhapsody* | darwin1.[012])
17407
allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17410
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17411
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17413
case ${MACOSX_DEPLOYMENT_TARGET} in
17415
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17418
allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17424
archive_cmds_need_lc_GCJ=no
17425
hardcode_direct_GCJ=no
17426
hardcode_automatic_GCJ=yes
17427
hardcode_shlibpath_var_GCJ=unsupported
17428
whole_archive_flag_spec_GCJ=''
17429
link_all_deplibs_GCJ=yes
17430
if test "$GCC" = yes ; then
17431
output_verbose_link_cmd='echo'
17432
archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17433
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17434
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17435
archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17436
module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17438
case $cc_basename in
17440
output_verbose_link_cmd='echo'
17441
archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17442
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17443
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17444
archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17445
module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17455
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17456
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17457
hardcode_shlibpath_var_GCJ=no
17464
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17465
# support. Future versions do this automatically, but an explicit c++rt0.o
17466
# does not break anything, and helps significantly (at the cost of a little
17469
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17470
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17471
hardcode_direct_GCJ=yes
17472
hardcode_shlibpath_var_GCJ=no
17475
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
17477
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17478
hardcode_direct_GCJ=yes
17479
hardcode_minus_L_GCJ=yes
17480
hardcode_shlibpath_var_GCJ=no
17483
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17484
freebsd* | kfreebsd*-gnu | dragonfly*)
17485
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17486
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17487
hardcode_direct_GCJ=yes
17488
hardcode_shlibpath_var_GCJ=no
17492
if test "$GCC" = yes; then
17493
archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17495
archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17497
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17498
hardcode_libdir_separator_GCJ=:
17499
hardcode_direct_GCJ=yes
17501
# hardcode_minus_L: Not really in the search PATH,
17502
# but as the default location of the library.
17503
hardcode_minus_L_GCJ=yes
17504
export_dynamic_flag_spec_GCJ='${wl}-E'
17508
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17509
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17511
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17513
if test "$with_gnu_ld" = no; then
17514
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17515
hardcode_libdir_separator_GCJ=:
17517
hardcode_direct_GCJ=yes
17518
export_dynamic_flag_spec_GCJ='${wl}-E'
17520
# hardcode_minus_L: Not really in the search PATH,
17521
# but as the default location of the library.
17522
hardcode_minus_L_GCJ=yes
17527
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17530
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17533
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17536
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17542
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17545
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17548
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17552
if test "$with_gnu_ld" = no; then
17553
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17554
hardcode_libdir_separator_GCJ=:
17558
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17559
hardcode_direct_GCJ=no
17560
hardcode_shlibpath_var_GCJ=no
17563
hardcode_direct_GCJ=yes
17564
export_dynamic_flag_spec_GCJ='${wl}-E'
17566
# hardcode_minus_L: Not really in the search PATH,
17567
# but as the default location of the library.
17568
hardcode_minus_L_GCJ=yes
17574
irix5* | irix6* | nonstopux*)
17575
if test "$GCC" = yes; then
17576
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17578
archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17579
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17581
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17582
hardcode_libdir_separator_GCJ=:
17583
link_all_deplibs_GCJ=yes
17587
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17588
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17590
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17592
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17593
hardcode_direct_GCJ=yes
17594
hardcode_shlibpath_var_GCJ=no
17598
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17599
hardcode_direct_GCJ=yes
17600
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17601
hardcode_libdir_separator_GCJ=:
17602
hardcode_shlibpath_var_GCJ=no
17606
hardcode_direct_GCJ=yes
17607
hardcode_shlibpath_var_GCJ=no
17608
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17609
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17610
archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17611
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17612
export_dynamic_flag_spec_GCJ='${wl}-E'
17615
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17616
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17617
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17620
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17621
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17628
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17629
hardcode_minus_L_GCJ=yes
17630
allow_undefined_flag_GCJ=unsupported
17631
archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
17632
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17636
if test "$GCC" = yes; then
17637
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17638
archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17640
allow_undefined_flag_GCJ=' -expect_unresolved \*'
17641
archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17643
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17644
hardcode_libdir_separator_GCJ=:
17647
osf4* | osf5*) # as osf3* with the addition of -msym flag
17648
if test "$GCC" = yes; then
17649
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17650
archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17651
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17653
allow_undefined_flag_GCJ=' -expect_unresolved \*'
17654
archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17655
archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
17656
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17658
# Both c and cxx compiler support -rpath directly
17659
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17661
hardcode_libdir_separator_GCJ=:
17665
no_undefined_flag_GCJ=' -z text'
17666
if test "$GCC" = yes; then
17668
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17669
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17670
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17673
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17674
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17675
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17677
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17678
hardcode_shlibpath_var_GCJ=no
17680
solaris2.[0-5] | solaris2.[0-5].*) ;;
17682
# The compiler driver will combine linker options so we
17683
# cannot just pass the convience library names through
17684
# without $wl, iff we do not link with $LD.
17685
# Luckily, gcc supports the same syntax we need for Sun Studio.
17686
# Supported since Solaris 2.6 (maybe 2.5.1?)
17689
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17691
whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17694
link_all_deplibs_GCJ=yes
17698
if test "x$host_vendor" = xsequent; then
17699
# Use $CC to link under sequent, because it throws in some extra .o
17700
# files that make .init and .fini sections work.
17701
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17703
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17705
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17706
hardcode_direct_GCJ=yes
17707
hardcode_minus_L_GCJ=yes
17708
hardcode_shlibpath_var_GCJ=no
17712
case $host_vendor in
17714
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17715
hardcode_direct_GCJ=yes # is this really true???
17718
## LD is ld it makes a PLAMLIB
17719
## CC just makes a GrossModule.
17720
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17721
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17722
hardcode_direct_GCJ=no
17725
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17726
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17729
runpath_var='LD_RUN_PATH'
17730
hardcode_shlibpath_var_GCJ=no
17734
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17735
hardcode_shlibpath_var_GCJ=no
17736
export_dynamic_flag_spec_GCJ='-Bexport'
17740
if test -d /usr/nec; then
17741
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17742
hardcode_shlibpath_var_GCJ=no
17743
runpath_var=LD_RUN_PATH
17744
hardcode_runpath_var=yes
17749
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17750
no_undefined_flag_GCJ='${wl}-z,text'
17751
archive_cmds_need_lc_GCJ=no
17752
hardcode_shlibpath_var_GCJ=no
17753
runpath_var='LD_RUN_PATH'
17755
if test "$GCC" = yes; then
17756
archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17757
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17759
archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17760
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17764
sysv5* | sco3.2v5* | sco5v6*)
17765
# Note: We can NOT use -z defs as we might desire, because we do not
17766
# link with -lc, and that would cause any symbols used from libc to
17767
# always be unresolved, which means just about no library would
17768
# ever link correctly. If we're not using GNU ld we use -z text
17769
# though, which does catch some bad symbols but isn't as heavy-handed
17771
no_undefined_flag_GCJ='${wl}-z,text'
17772
allow_undefined_flag_GCJ='${wl}-z,nodefs'
17773
archive_cmds_need_lc_GCJ=no
17774
hardcode_shlibpath_var_GCJ=no
17775
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17776
hardcode_libdir_separator_GCJ=':'
17777
link_all_deplibs_GCJ=yes
17778
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17779
runpath_var='LD_RUN_PATH'
17781
if test "$GCC" = yes; then
17782
archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17783
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17785
archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17786
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17791
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17792
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17793
hardcode_shlibpath_var_GCJ=no
17802
{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17803
echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17804
test "$ld_shlibs_GCJ" = no && can_build_shared=no
17807
# Do we need to explicitly link libc?
17809
case "x$archive_cmds_need_lc_GCJ" in
17811
# Assume -lc should be added
17812
archive_cmds_need_lc_GCJ=yes
17814
if test "$enable_shared" = yes && test "$GCC" = yes; then
17815
case $archive_cmds_GCJ in
17817
# FIXME: we may have to deal with multi-command sequences.
17820
# Test whether the compiler implicitly links with -lc since on some
17821
# systems, -lgcc has to come before -lc. If gcc already passes -lc
17822
# to ld, don't add -lc before -lgcc.
17823
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17824
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17826
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17828
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17829
(eval $ac_compile) 2>&5
17831
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17832
(exit $ac_status); } 2>conftest.err; then
17835
libobjs=conftest.$ac_objext
17837
wl=$lt_prog_compiler_wl_GCJ
17838
pic_flag=$lt_prog_compiler_pic_GCJ
17844
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17845
allow_undefined_flag_GCJ=
17846
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17847
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17849
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17850
(exit $ac_status); }
17852
archive_cmds_need_lc_GCJ=no
17854
archive_cmds_need_lc_GCJ=yes
17856
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17858
cat conftest.err 1>&5
17861
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17862
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17869
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17870
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17871
library_names_spec=
17872
libname_spec='lib$name'
17876
postuninstall_cmds=
17880
shlibpath_overrides_runpath=unknown
17882
dynamic_linker="$host_os ld.so"
17883
sys_lib_dlsearch_path_spec="/lib /usr/lib"
17884
if test "$GCC" = yes; then
17885
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17886
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17887
# if the path contains ";" then we assume it to be the separator
17888
# otherwise default to the standard path separator (i.e. ":") - it is
17889
# assumed that no part of a normal pathname contains ";" but that should
17890
# okay in the real world where ";" in dirpaths is itself problematic.
17891
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17893
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17896
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17898
need_lib_prefix=unknown
17899
hardcode_into_libs=no
17901
# when you set need_version to no, make sure it does not cause -set_version
17902
# flags to be left without arguments
17903
need_version=unknown
17908
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17909
shlibpath_var=LIBPATH
17911
# AIX 3 has no versioning support, so we append a major version to the name.
17912
soname_spec='${libname}${release}${shared_ext}$major'
17919
hardcode_into_libs=yes
17920
if test "$host_cpu" = ia64; then
17921
# AIX 5 supports IA64
17922
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17923
shlibpath_var=LD_LIBRARY_PATH
17925
# With GCC up to 2.95.x, collect2 would create an import file
17926
# for dependence libraries. The import file would start with
17927
# the line `#! .'. This would cause the generated library to
17928
# depend on `.', always an invalid library. This was fixed in
17929
# development snapshots of GCC prior to 3.0.
17931
aix4 | aix4.[01] | aix4.[01].*)
17932
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17934
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17937
can_build_shared=no
17941
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17942
# soname into executable. Probably we can add versioning support to
17943
# collect2, so additional links can be useful in future.
17944
if test "$aix_use_runtimelinking" = yes; then
17945
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
17946
# instead of lib<name>.a to let people know that these are not
17947
# typical AIX shared libraries.
17948
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17950
# We preserve .a as extension for shared libraries through AIX4.2
17951
# and later when we are not doing run time linking.
17952
library_names_spec='${libname}${release}.a $libname.a'
17953
soname_spec='${libname}${release}${shared_ext}$major'
17955
shlibpath_var=LIBPATH
17960
library_names_spec='$libname.ixlibrary $libname.a'
17961
# Create ${libname}_ixlibrary.a entries in /sys/libs.
17962
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
17966
library_names_spec='${libname}${shared_ext}'
17967
dynamic_linker="$host_os ld.so"
17968
shlibpath_var=LIBRARY_PATH
17974
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17975
soname_spec='${libname}${release}${shared_ext}$major'
17976
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17977
shlibpath_var=LD_LIBRARY_PATH
17978
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17979
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17980
# the default ld.so.conf also contains /usr/contrib/lib and
17981
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17982
# libtool to hard-code these into programs
17985
cygwin* | mingw* | pw32*)
17986
version_type=windows
17991
case $GCC,$host_os in
17992
yes,cygwin* | yes,mingw* | yes,pw32*)
17993
library_names_spec='$libname.dll.a'
17994
# DLL is installed to $(libdir)/../bin by postinstall_cmds
17995
postinstall_cmds='base_file=`basename \${file}`~
17996
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17997
dldir=$destdir/`dirname \$dlpath`~
17998
test -d \$dldir || mkdir -p \$dldir~
17999
$install_prog $dir/$dlname \$dldir/$dlname~
18000
chmod a+x \$dldir/$dlname'
18001
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18002
dlpath=$dir/\$dldll~
18004
shlibpath_overrides_runpath=yes
18008
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
18009
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18010
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18013
# MinGW DLLs use traditional 'lib' prefix
18014
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18015
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18016
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18017
# It is most probably a Windows format PATH printed by
18018
# mingw gcc, but we are running on Cygwin. Gcc prints its search
18019
# path with ; separators, and with drive letters. We can handle the
18020
# drive letters (cygwin fileutils understands them), so leave them,
18021
# especially as we might pass files found there to a mingw objdump,
18022
# which wouldn't understand a cygwinified path. Ahh.
18023
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18025
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18029
# pw32 DLLs use 'pw' prefix rather than 'lib'
18030
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18036
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18039
dynamic_linker='Win32 ld.exe'
18040
# FIXME: first we should search . and the directory the executable is in
18044
darwin* | rhapsody*)
18045
dynamic_linker="$host_os dyld"
18046
version_type=darwin
18049
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18050
soname_spec='${libname}${release}${major}$shared_ext'
18051
shlibpath_overrides_runpath=yes
18052
shlibpath_var=DYLD_LIBRARY_PATH
18053
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18054
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18055
if test "$GCC" = yes; then
18056
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
18058
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18060
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18067
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18068
soname_spec='${libname}${release}${shared_ext}$major'
18069
shlibpath_var=LD_LIBRARY_PATH
18080
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18081
soname_spec='${libname}${release}${shared_ext}$major'
18082
shlibpath_var=LD_LIBRARY_PATH
18083
shlibpath_overrides_runpath=no
18084
hardcode_into_libs=yes
18085
dynamic_linker='GNU ld.so'
18088
freebsd* | dragonfly*)
18089
# DragonFly does not have aout. When/if they implement a new
18090
# versioning mechanism, adjust this.
18091
if test -x /usr/bin/objformat; then
18092
objformat=`/usr/bin/objformat`
18095
freebsd[123]*) objformat=aout ;;
18096
*) objformat=elf ;;
18099
version_type=freebsd-$objformat
18100
case $version_type in
18102
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18107
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18111
shlibpath_var=LD_LIBRARY_PATH
18114
shlibpath_overrides_runpath=yes
18116
freebsd3.[01]* | freebsdelf3.[01]*)
18117
shlibpath_overrides_runpath=yes
18118
hardcode_into_libs=yes
18120
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18121
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18122
shlibpath_overrides_runpath=no
18123
hardcode_into_libs=yes
18125
freebsd*) # from 4.6 on
18126
shlibpath_overrides_runpath=yes
18127
hardcode_into_libs=yes
18136
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18137
soname_spec='${libname}${release}${shared_ext}$major'
18138
shlibpath_var=LD_LIBRARY_PATH
18139
hardcode_into_libs=yes
18142
hpux9* | hpux10* | hpux11*)
18143
# Give a soname corresponding to the major version so that dld.sl refuses to
18144
# link against other versions.
18151
hardcode_into_libs=yes
18152
dynamic_linker="$host_os dld.so"
18153
shlibpath_var=LD_LIBRARY_PATH
18154
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18155
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18156
soname_spec='${libname}${release}${shared_ext}$major'
18157
if test "X$HPUX_IA64_MODE" = X32; then
18158
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18160
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18162
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18166
hardcode_into_libs=yes
18167
dynamic_linker="$host_os dld.sl"
18168
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18169
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18170
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18171
soname_spec='${libname}${release}${shared_ext}$major'
18172
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18173
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18177
dynamic_linker="$host_os dld.sl"
18178
shlibpath_var=SHLIB_PATH
18179
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18180
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18181
soname_spec='${libname}${release}${shared_ext}$major'
18184
# HP-UX runs *really* slowly unless shared libraries are mode 555.
18185
postinstall_cmds='chmod 555 $lib'
18192
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18193
soname_spec='${libname}${release}${shared_ext}$major'
18194
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18195
shlibpath_var=LD_LIBRARY_PATH
18196
shlibpath_overrides_runpath=no
18197
hardcode_into_libs=yes
18200
irix5* | irix6* | nonstopux*)
18202
nonstopux*) version_type=nonstopux ;;
18204
if test "$lt_cv_prog_gnu_ld" = yes; then
18212
soname_spec='${libname}${release}${shared_ext}$major'
18213
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18215
irix5* | nonstopux*)
18216
libsuff= shlibsuff=
18219
case $LD in # libtool.m4 will add one of these switches to LD
18220
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18221
libsuff= shlibsuff= libmagic=32-bit;;
18222
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18223
libsuff=32 shlibsuff=N32 libmagic=N32;;
18224
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18225
libsuff=64 shlibsuff=64 libmagic=64-bit;;
18226
*) libsuff= shlibsuff= libmagic=never-match;;
18230
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18231
shlibpath_overrides_runpath=no
18232
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18233
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18234
hardcode_into_libs=yes
18237
# No shared lib support for Linux oldld, aout, or coff.
18238
linux*oldld* | linux*aout* | linux*coff*)
18242
# This must be Linux ELF.
18247
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18248
soname_spec='${libname}${release}${shared_ext}$major'
18249
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18250
shlibpath_var=LD_LIBRARY_PATH
18251
shlibpath_overrides_runpath=no
18252
# This implies no fast_install, which is unacceptable.
18253
# Some rework will be needed to allow for fast_install
18254
# before this can be enabled.
18255
hardcode_into_libs=yes
18257
# find out which ABI we are using
18259
case "$host_cpu" in
18260
x86_64*|s390x*|powerpc64*)
18261
echo '#line 18261 "configure"' > conftest.$ac_ext
18262
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18263
(eval $ac_compile) 2>&5
18265
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18266
(exit $ac_status); }; then
18267
case `/usr/bin/file conftest.$ac_objext` in
18270
sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
18278
# Append ld.so.conf contents to the search path
18279
if test -f /etc/ld.so.conf; then
18280
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18281
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
18284
# We used to test for /lib/ld.so.1 and disable shared libraries on
18285
# powerpc, because MkLinux only supported shared libraries with the
18286
# GNU dynamic linker. Since this was broken with cross compilers,
18287
# most powerpc-linux boxes support dynamic linking these days and
18288
# people can always --disable-shared, the test was removed, and we
18289
# assume the GNU/Linux dynamic linker is in use.
18290
dynamic_linker='GNU/Linux ld.so'
18297
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18298
soname_spec='${libname}${release}${shared_ext}$major'
18299
shlibpath_var=LD_LIBRARY_PATH
18300
shlibpath_overrides_runpath=no
18301
hardcode_into_libs=yes
18302
dynamic_linker='GNU ld.so'
18309
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18310
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18311
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18312
dynamic_linker='NetBSD (a.out) ld.so'
18314
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18315
soname_spec='${libname}${release}${shared_ext}$major'
18316
dynamic_linker='NetBSD ld.elf_so'
18318
shlibpath_var=LD_LIBRARY_PATH
18319
shlibpath_overrides_runpath=yes
18320
hardcode_into_libs=yes
18325
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18326
shlibpath_var=LD_LIBRARY_PATH
18327
shlibpath_overrides_runpath=yes
18334
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18335
soname_spec='${libname}${release}${shared_ext}$major'
18336
shlibpath_var=LD_LIBRARY_PATH
18337
shlibpath_overrides_runpath=yes
18342
sys_lib_dlsearch_path_spec="/usr/lib"
18344
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18346
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18347
*) need_version=no ;;
18349
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18350
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18351
shlibpath_var=LD_LIBRARY_PATH
18352
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18354
openbsd2.[89] | openbsd2.[89].*)
18355
shlibpath_overrides_runpath=no
18358
shlibpath_overrides_runpath=yes
18362
shlibpath_overrides_runpath=yes
18367
libname_spec='$name'
18370
library_names_spec='$libname${shared_ext} $libname.a'
18371
dynamic_linker='OS/2 ld.exe'
18372
shlibpath_var=LIBPATH
18375
osf3* | osf4* | osf5*)
18379
soname_spec='${libname}${release}${shared_ext}$major'
18380
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18381
shlibpath_var=LD_LIBRARY_PATH
18382
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18383
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18390
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18391
soname_spec='${libname}${release}${shared_ext}$major'
18392
shlibpath_var=LD_LIBRARY_PATH
18393
shlibpath_overrides_runpath=yes
18394
hardcode_into_libs=yes
18395
# ldd complains unless libraries are executable
18396
postinstall_cmds='chmod +x $lib'
18401
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18402
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18403
shlibpath_var=LD_LIBRARY_PATH
18404
shlibpath_overrides_runpath=yes
18405
if test "$with_gnu_ld" = yes; then
18413
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18414
soname_spec='${libname}${release}${shared_ext}$major'
18415
shlibpath_var=LD_LIBRARY_PATH
18416
case $host_vendor in
18418
shlibpath_overrides_runpath=no
18420
export_dynamic_flag_spec='${wl}-Blargedynsym'
18421
runpath_var=LD_RUN_PATH
18429
shlibpath_overrides_runpath=no
18430
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18436
if test -d /usr/nec ;then
18438
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18439
soname_spec='$libname${shared_ext}.$major'
18440
shlibpath_var=LD_LIBRARY_PATH
18444
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18445
version_type=freebsd-elf
18448
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18449
soname_spec='${libname}${release}${shared_ext}$major'
18450
shlibpath_var=LD_LIBRARY_PATH
18451
hardcode_into_libs=yes
18452
if test "$with_gnu_ld" = yes; then
18453
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18454
shlibpath_overrides_runpath=no
18456
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18457
shlibpath_overrides_runpath=yes
18460
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18464
sys_lib_dlsearch_path_spec='/usr/lib'
18469
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18470
soname_spec='${libname}${release}${shared_ext}$major'
18471
shlibpath_var=LD_LIBRARY_PATH
18478
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18479
echo "${ECHO_T}$dynamic_linker" >&6; }
18480
test "$dynamic_linker" = no && can_build_shared=no
18482
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18483
if test "$GCC" = yes; then
18484
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18487
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18488
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18489
hardcode_action_GCJ=
18490
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18491
test -n "$runpath_var_GCJ" || \
18492
test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18494
# We can hardcode non-existant directories.
18495
if test "$hardcode_direct_GCJ" != no &&
18496
# If the only mechanism to avoid hardcoding is shlibpath_var, we
18497
# have to relink, otherwise we might link with an installed library
18498
# when we should be linking with a yet-to-be-installed one
18499
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18500
test "$hardcode_minus_L_GCJ" != no; then
18501
# Linking always hardcodes the temporary library directory.
18502
hardcode_action_GCJ=relink
18504
# We can link without hardcoding, and we can hardcode nonexisting dirs.
18505
hardcode_action_GCJ=immediate
18508
# We cannot hardcode anything, or else we can only hardcode existing
18510
hardcode_action_GCJ=unsupported
18512
{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18513
echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18515
if test "$hardcode_action_GCJ" = relink; then
18516
# Fast installation is not supported
18517
enable_fast_install=no
18518
elif test "$shlibpath_overrides_runpath" = yes ||
18519
test "$enable_shared" = no; then
18520
# Fast installation is not necessary
18521
enable_fast_install=needless
18525
# The else clause should only fire when bootstrapping the
18526
# libtool distribution, otherwise you forgot to ship ltmain.sh
18527
# with your package, and you will get complaints that there are
18528
# no rules to generate ltmain.sh.
18529
if test -f "$ltmain"; then
18530
# See if we are running on zsh, and set the options which allow our commands through
18531
# without removal of \ escapes.
18532
if test -n "${ZSH_VERSION+set}" ; then
18533
setopt NO_GLOB_SUBST
18535
# Now quote all the things that may contain metacharacters while being
18536
# careful not to overquote the AC_SUBSTed values. We take copies of the
18537
# variables and quote the copies for generation of the libtool script.
18538
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18540
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18541
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18542
deplibs_check_method reload_flag reload_cmds need_locks \
18543
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18544
lt_cv_sys_global_symbol_to_c_name_address \
18545
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18546
old_postinstall_cmds old_postuninstall_cmds \
18550
lt_prog_compiler_wl_GCJ \
18551
lt_prog_compiler_pic_GCJ \
18552
lt_prog_compiler_static_GCJ \
18553
lt_prog_compiler_no_builtin_flag_GCJ \
18554
export_dynamic_flag_spec_GCJ \
18555
thread_safe_flag_spec_GCJ \
18556
whole_archive_flag_spec_GCJ \
18557
enable_shared_with_static_runtimes_GCJ \
18558
old_archive_cmds_GCJ \
18559
old_archive_from_new_cmds_GCJ \
18560
predep_objects_GCJ \
18561
postdep_objects_GCJ \
18564
compiler_lib_search_path_GCJ \
18566
archive_expsym_cmds_GCJ \
18567
postinstall_cmds_GCJ \
18568
postuninstall_cmds_GCJ \
18569
old_archive_from_expsyms_cmds_GCJ \
18570
allow_undefined_flag_GCJ \
18571
no_undefined_flag_GCJ \
18572
export_symbols_cmds_GCJ \
18573
hardcode_libdir_flag_spec_GCJ \
18574
hardcode_libdir_flag_spec_ld_GCJ \
18575
hardcode_libdir_separator_GCJ \
18576
hardcode_automatic_GCJ \
18578
module_expsym_cmds_GCJ \
18579
lt_cv_prog_compiler_c_o_GCJ \
18580
exclude_expsyms_GCJ \
18581
include_expsyms_GCJ; do
18584
old_archive_cmds_GCJ | \
18585
old_archive_from_new_cmds_GCJ | \
18586
archive_cmds_GCJ | \
18587
archive_expsym_cmds_GCJ | \
18588
module_cmds_GCJ | \
18589
module_expsym_cmds_GCJ | \
18590
old_archive_from_expsyms_cmds_GCJ | \
18591
export_symbols_cmds_GCJ | \
18592
extract_expsyms_cmds | reload_cmds | finish_cmds | \
18593
postinstall_cmds | postuninstall_cmds | \
18594
old_postinstall_cmds | old_postuninstall_cmds | \
18595
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18596
# Double-quote double-evaled strings.
18597
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18600
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18606
*'\$0 --fallback-echo"')
18607
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18613
cat <<__EOF__ >> "$cfgfile"
18614
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18616
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18618
# Shell to use when invoking shell scripts.
18621
# Whether or not to build shared libraries.
18622
build_libtool_libs=$enable_shared
18624
# Whether or not to build static libraries.
18625
build_old_libs=$enable_static
18627
# Whether or not to add -lc for building shared libraries.
18628
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18630
# Whether or not to disallow shared libs when runtime libs are static
18631
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18633
# Whether or not to optimize for fast installation.
18634
fast_install=$enable_fast_install
18637
host_alias=$host_alias
18641
# The build system.
18642
build_alias=$build_alias
18646
# An echo program that does not interpret backslashes.
18651
AR_FLAGS=$lt_AR_FLAGS
18656
# LTCC compiler flags.
18657
LTCFLAGS=$lt_LTCFLAGS
18659
# A language-specific compiler.
18660
CC=$lt_compiler_GCJ
18662
# Is the compiler the GNU C compiler?
18668
# The linker used to build libraries.
18671
# Whether we need hard or soft links.
18674
# A BSD-compatible nm program.
18677
# A symbol stripping program
18680
# Used to examine libraries when file_magic_cmd begins "file"
18681
MAGIC_CMD=$MAGIC_CMD
18683
# Used on cygwin: DLL creation program.
18686
# Used on cygwin: object dumper.
18689
# Used on cygwin: assembler.
18692
# The name of the directory that contains temporary libtool files.
18695
# How to create reloadable object files.
18696
reload_flag=$lt_reload_flag
18697
reload_cmds=$lt_reload_cmds
18699
# How to pass a linker flag through the compiler.
18700
wl=$lt_lt_prog_compiler_wl_GCJ
18702
# Object file suffix (normally "o").
18703
objext="$ac_objext"
18705
# Old archive suffix (normally "a").
18708
# Shared library suffix (normally ".so").
18709
shrext_cmds='$shrext_cmds'
18711
# Executable file suffix (normally "").
18714
# Additional compiler flags for building library objects.
18715
pic_flag=$lt_lt_prog_compiler_pic_GCJ
18718
# What is the maximum length of a command?
18719
max_cmd_len=$lt_cv_sys_max_cmd_len
18721
# Does compiler simultaneously support -c and -o options?
18722
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18724
# Must we lock files when doing compilation?
18725
need_locks=$lt_need_locks
18727
# Do we need the lib prefix for modules?
18728
need_lib_prefix=$need_lib_prefix
18730
# Do we need a version for libraries?
18731
need_version=$need_version
18733
# Whether dlopen is supported.
18734
dlopen_support=$enable_dlopen
18736
# Whether dlopen of programs is supported.
18737
dlopen_self=$enable_dlopen_self
18739
# Whether dlopen of statically linked programs is supported.
18740
dlopen_self_static=$enable_dlopen_self_static
18742
# Compiler flag to prevent dynamic linking.
18743
link_static_flag=$lt_lt_prog_compiler_static_GCJ
18745
# Compiler flag to turn off builtin functions.
18746
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18748
# Compiler flag to allow reflexive dlopens.
18749
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18751
# Compiler flag to generate shared objects directly from archives.
18752
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18754
# Compiler flag to generate thread-safe objects.
18755
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18757
# Library versioning type.
18758
version_type=$version_type
18760
# Format of library name prefix.
18761
libname_spec=$lt_libname_spec
18763
# List of archive names. First name is the real one, the rest are links.
18764
# The last name is the one that the linker finds with -lNAME.
18765
library_names_spec=$lt_library_names_spec
18767
# The coded name of the library, if different from the real name.
18768
soname_spec=$lt_soname_spec
18770
# Commands used to build and install an old-style archive.
18772
old_archive_cmds=$lt_old_archive_cmds_GCJ
18773
old_postinstall_cmds=$lt_old_postinstall_cmds
18774
old_postuninstall_cmds=$lt_old_postuninstall_cmds
18776
# Create an old-style archive from a shared archive.
18777
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18779
# Create a temporary old-style archive to link instead of a shared archive.
18780
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18782
# Commands used to build and install a shared archive.
18783
archive_cmds=$lt_archive_cmds_GCJ
18784
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18785
postinstall_cmds=$lt_postinstall_cmds
18786
postuninstall_cmds=$lt_postuninstall_cmds
18788
# Commands used to build a loadable module (assumed same as above if empty)
18789
module_cmds=$lt_module_cmds_GCJ
18790
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18792
# Commands to strip libraries.
18793
old_striplib=$lt_old_striplib
18794
striplib=$lt_striplib
18796
# Dependencies to place before the objects being linked to create a
18798
predep_objects=$lt_predep_objects_GCJ
18800
# Dependencies to place after the objects being linked to create a
18802
postdep_objects=$lt_postdep_objects_GCJ
18804
# Dependencies to place before the objects being linked to create a
18806
predeps=$lt_predeps_GCJ
18808
# Dependencies to place after the objects being linked to create a
18810
postdeps=$lt_postdeps_GCJ
18812
# The library search path used internally by the compiler when linking
18813
# a shared library.
18814
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18816
# Method to check whether dependent libraries are shared objects.
18817
deplibs_check_method=$lt_deplibs_check_method
18819
# Command to use when deplibs_check_method == file_magic.
18820
file_magic_cmd=$lt_file_magic_cmd
18822
# Flag that allows shared libraries with undefined symbols to be built.
18823
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18825
# Flag that forces no undefined symbols.
18826
no_undefined_flag=$lt_no_undefined_flag_GCJ
18828
# Commands used to finish a libtool library installation in a directory.
18829
finish_cmds=$lt_finish_cmds
18831
# Same as above, but a single script fragment to be evaled but not shown.
18832
finish_eval=$lt_finish_eval
18834
# Take the output of nm and produce a listing of raw symbols and C names.
18835
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18837
# Transform the output of nm in a proper C declaration
18838
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18840
# Transform the output of nm in a C name address pair
18841
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18843
# This is the shared library runtime path variable.
18844
runpath_var=$runpath_var
18846
# This is the shared library path variable.
18847
shlibpath_var=$shlibpath_var
18849
# Is shlibpath searched before the hard-coded library search path?
18850
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18852
# How to hardcode a shared library path into an executable.
18853
hardcode_action=$hardcode_action_GCJ
18855
# Whether we should hardcode library paths into libraries.
18856
hardcode_into_libs=$hardcode_into_libs
18858
# Flag to hardcode \$libdir into a binary during linking.
18859
# This must work even if \$libdir does not exist.
18860
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18862
# If ld is used when linking, flag to hardcode \$libdir into
18863
# a binary during linking. This must work even if \$libdir does
18865
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18867
# Whether we need a single -rpath flag with a separated argument.
18868
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18870
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18871
# resulting binary.
18872
hardcode_direct=$hardcode_direct_GCJ
18874
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18875
# resulting binary.
18876
hardcode_minus_L=$hardcode_minus_L_GCJ
18878
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18879
# the resulting binary.
18880
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18882
# Set to yes if building a shared library automatically hardcodes DIR into the library
18883
# and all subsequent libraries and executables linked against it.
18884
hardcode_automatic=$hardcode_automatic_GCJ
18886
# Variables whose values should be saved in libtool wrapper scripts and
18887
# restored at relink time.
18888
variables_saved_for_relink="$variables_saved_for_relink"
18890
# Whether libtool must link a program against all its dependency libraries.
18891
link_all_deplibs=$link_all_deplibs_GCJ
18893
# Compile-time system search path for libraries
18894
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18896
# Run-time system search path for libraries
18897
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18899
# Fix the shell variable \$srcfile for the compiler.
18900
fix_srcfile_path="$fix_srcfile_path_GCJ"
18902
# Set to yes if exported symbols are required.
18903
always_export_symbols=$always_export_symbols_GCJ
18905
# The commands to list exported symbols.
18906
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18908
# The commands to extract the exported symbol list from a shared archive.
18909
extract_expsyms_cmds=$lt_extract_expsyms_cmds
18911
# Symbols that should not be listed in the preloaded symbols.
18912
exclude_expsyms=$lt_exclude_expsyms_GCJ
18914
# Symbols that must always be exported.
18915
include_expsyms=$lt_include_expsyms_GCJ
18917
# ### END LIBTOOL TAG CONFIG: $tagname
18923
# If there is no Makefile yet, we rely on a make rule to execute
18924
# `config.status --recheck' to rerun these tests and create the
18925
# libtool script then.
18926
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18927
if test -f "$ltmain_in"; then
18928
test -f Makefile && make "$ltmain"
18934
ac_cpp='$CPP $CPPFLAGS'
18935
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18936
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18937
ac_compiler_gnu=$ac_cv_c_compiler_gnu
18949
# Source file extension for RC test sources.
18952
# Object file extension for compiled RC test sources.
18956
# Code to be used in simple compile tests
18957
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18959
# Code to be used in simple link tests
18960
lt_simple_link_test_code="$lt_simple_compile_test_code"
18962
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18964
# If no C compiler was specified, use CC.
18967
# If no C compiler flags were specified, use CFLAGS.
18968
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18970
# Allow CC to be a program name with arguments.
18974
# save warnings/boilerplate of simple test code
18975
ac_outfile=conftest.$ac_objext
18976
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18977
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18978
_lt_compiler_boilerplate=`cat conftest.err`
18981
ac_outfile=conftest.$ac_objext
18982
printf "$lt_simple_link_test_code" >conftest.$ac_ext
18983
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18984
_lt_linker_boilerplate=`cat conftest.err`
18988
# Allow CC to be a program name with arguments.
18993
for cc_temp in $compiler""; do
18995
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18996
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19001
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19003
lt_cv_prog_compiler_c_o_RC=yes
19005
# The else clause should only fire when bootstrapping the
19006
# libtool distribution, otherwise you forgot to ship ltmain.sh
19007
# with your package, and you will get complaints that there are
19008
# no rules to generate ltmain.sh.
19009
if test -f "$ltmain"; then
19010
# See if we are running on zsh, and set the options which allow our commands through
19011
# without removal of \ escapes.
19012
if test -n "${ZSH_VERSION+set}" ; then
19013
setopt NO_GLOB_SUBST
19015
# Now quote all the things that may contain metacharacters while being
19016
# careful not to overquote the AC_SUBSTed values. We take copies of the
19017
# variables and quote the copies for generation of the libtool script.
19018
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19020
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19021
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19022
deplibs_check_method reload_flag reload_cmds need_locks \
19023
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19024
lt_cv_sys_global_symbol_to_c_name_address \
19025
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19026
old_postinstall_cmds old_postuninstall_cmds \
19030
lt_prog_compiler_wl_RC \
19031
lt_prog_compiler_pic_RC \
19032
lt_prog_compiler_static_RC \
19033
lt_prog_compiler_no_builtin_flag_RC \
19034
export_dynamic_flag_spec_RC \
19035
thread_safe_flag_spec_RC \
19036
whole_archive_flag_spec_RC \
19037
enable_shared_with_static_runtimes_RC \
19038
old_archive_cmds_RC \
19039
old_archive_from_new_cmds_RC \
19040
predep_objects_RC \
19041
postdep_objects_RC \
19044
compiler_lib_search_path_RC \
19046
archive_expsym_cmds_RC \
19047
postinstall_cmds_RC \
19048
postuninstall_cmds_RC \
19049
old_archive_from_expsyms_cmds_RC \
19050
allow_undefined_flag_RC \
19051
no_undefined_flag_RC \
19052
export_symbols_cmds_RC \
19053
hardcode_libdir_flag_spec_RC \
19054
hardcode_libdir_flag_spec_ld_RC \
19055
hardcode_libdir_separator_RC \
19056
hardcode_automatic_RC \
19058
module_expsym_cmds_RC \
19059
lt_cv_prog_compiler_c_o_RC \
19060
exclude_expsyms_RC \
19061
include_expsyms_RC; do
19064
old_archive_cmds_RC | \
19065
old_archive_from_new_cmds_RC | \
19066
archive_cmds_RC | \
19067
archive_expsym_cmds_RC | \
19069
module_expsym_cmds_RC | \
19070
old_archive_from_expsyms_cmds_RC | \
19071
export_symbols_cmds_RC | \
19072
extract_expsyms_cmds | reload_cmds | finish_cmds | \
19073
postinstall_cmds | postuninstall_cmds | \
19074
old_postinstall_cmds | old_postuninstall_cmds | \
19075
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19076
# Double-quote double-evaled strings.
19077
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19080
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19086
*'\$0 --fallback-echo"')
19087
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19093
cat <<__EOF__ >> "$cfgfile"
19094
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19096
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19098
# Shell to use when invoking shell scripts.
19101
# Whether or not to build shared libraries.
19102
build_libtool_libs=$enable_shared
19104
# Whether or not to build static libraries.
19105
build_old_libs=$enable_static
19107
# Whether or not to add -lc for building shared libraries.
19108
build_libtool_need_lc=$archive_cmds_need_lc_RC
19110
# Whether or not to disallow shared libs when runtime libs are static
19111
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19113
# Whether or not to optimize for fast installation.
19114
fast_install=$enable_fast_install
19117
host_alias=$host_alias
19121
# The build system.
19122
build_alias=$build_alias
19126
# An echo program that does not interpret backslashes.
19131
AR_FLAGS=$lt_AR_FLAGS
19136
# LTCC compiler flags.
19137
LTCFLAGS=$lt_LTCFLAGS
19139
# A language-specific compiler.
19142
# Is the compiler the GNU C compiler?
19148
# The linker used to build libraries.
19151
# Whether we need hard or soft links.
19154
# A BSD-compatible nm program.
19157
# A symbol stripping program
19160
# Used to examine libraries when file_magic_cmd begins "file"
19161
MAGIC_CMD=$MAGIC_CMD
19163
# Used on cygwin: DLL creation program.
19166
# Used on cygwin: object dumper.
19169
# Used on cygwin: assembler.
19172
# The name of the directory that contains temporary libtool files.
19175
# How to create reloadable object files.
19176
reload_flag=$lt_reload_flag
19177
reload_cmds=$lt_reload_cmds
19179
# How to pass a linker flag through the compiler.
19180
wl=$lt_lt_prog_compiler_wl_RC
19182
# Object file suffix (normally "o").
19183
objext="$ac_objext"
19185
# Old archive suffix (normally "a").
19188
# Shared library suffix (normally ".so").
19189
shrext_cmds='$shrext_cmds'
19191
# Executable file suffix (normally "").
19194
# Additional compiler flags for building library objects.
19195
pic_flag=$lt_lt_prog_compiler_pic_RC
19198
# What is the maximum length of a command?
19199
max_cmd_len=$lt_cv_sys_max_cmd_len
19201
# Does compiler simultaneously support -c and -o options?
19202
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19204
# Must we lock files when doing compilation?
19205
need_locks=$lt_need_locks
19207
# Do we need the lib prefix for modules?
19208
need_lib_prefix=$need_lib_prefix
19210
# Do we need a version for libraries?
19211
need_version=$need_version
19213
# Whether dlopen is supported.
19214
dlopen_support=$enable_dlopen
19216
# Whether dlopen of programs is supported.
19217
dlopen_self=$enable_dlopen_self
19219
# Whether dlopen of statically linked programs is supported.
19220
dlopen_self_static=$enable_dlopen_self_static
19222
# Compiler flag to prevent dynamic linking.
19223
link_static_flag=$lt_lt_prog_compiler_static_RC
19225
# Compiler flag to turn off builtin functions.
19226
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19228
# Compiler flag to allow reflexive dlopens.
19229
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19231
# Compiler flag to generate shared objects directly from archives.
19232
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19234
# Compiler flag to generate thread-safe objects.
19235
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19237
# Library versioning type.
19238
version_type=$version_type
19240
# Format of library name prefix.
19241
libname_spec=$lt_libname_spec
19243
# List of archive names. First name is the real one, the rest are links.
19244
# The last name is the one that the linker finds with -lNAME.
19245
library_names_spec=$lt_library_names_spec
19247
# The coded name of the library, if different from the real name.
19248
soname_spec=$lt_soname_spec
19250
# Commands used to build and install an old-style archive.
19252
old_archive_cmds=$lt_old_archive_cmds_RC
19253
old_postinstall_cmds=$lt_old_postinstall_cmds
19254
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19256
# Create an old-style archive from a shared archive.
19257
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19259
# Create a temporary old-style archive to link instead of a shared archive.
19260
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19262
# Commands used to build and install a shared archive.
19263
archive_cmds=$lt_archive_cmds_RC
19264
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19265
postinstall_cmds=$lt_postinstall_cmds
19266
postuninstall_cmds=$lt_postuninstall_cmds
19268
# Commands used to build a loadable module (assumed same as above if empty)
19269
module_cmds=$lt_module_cmds_RC
19270
module_expsym_cmds=$lt_module_expsym_cmds_RC
19272
# Commands to strip libraries.
19273
old_striplib=$lt_old_striplib
19274
striplib=$lt_striplib
19276
# Dependencies to place before the objects being linked to create a
19278
predep_objects=$lt_predep_objects_RC
19280
# Dependencies to place after the objects being linked to create a
19282
postdep_objects=$lt_postdep_objects_RC
19284
# Dependencies to place before the objects being linked to create a
19286
predeps=$lt_predeps_RC
19288
# Dependencies to place after the objects being linked to create a
19290
postdeps=$lt_postdeps_RC
19292
# The library search path used internally by the compiler when linking
19293
# a shared library.
19294
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19296
# Method to check whether dependent libraries are shared objects.
19297
deplibs_check_method=$lt_deplibs_check_method
19299
# Command to use when deplibs_check_method == file_magic.
19300
file_magic_cmd=$lt_file_magic_cmd
19302
# Flag that allows shared libraries with undefined symbols to be built.
19303
allow_undefined_flag=$lt_allow_undefined_flag_RC
19305
# Flag that forces no undefined symbols.
19306
no_undefined_flag=$lt_no_undefined_flag_RC
19308
# Commands used to finish a libtool library installation in a directory.
19309
finish_cmds=$lt_finish_cmds
19311
# Same as above, but a single script fragment to be evaled but not shown.
19312
finish_eval=$lt_finish_eval
19314
# Take the output of nm and produce a listing of raw symbols and C names.
19315
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19317
# Transform the output of nm in a proper C declaration
19318
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19320
# Transform the output of nm in a C name address pair
19321
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19323
# This is the shared library runtime path variable.
19324
runpath_var=$runpath_var
19326
# This is the shared library path variable.
19327
shlibpath_var=$shlibpath_var
19329
# Is shlibpath searched before the hard-coded library search path?
19330
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19332
# How to hardcode a shared library path into an executable.
19333
hardcode_action=$hardcode_action_RC
19335
# Whether we should hardcode library paths into libraries.
19336
hardcode_into_libs=$hardcode_into_libs
19338
# Flag to hardcode \$libdir into a binary during linking.
19339
# This must work even if \$libdir does not exist.
19340
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19342
# If ld is used when linking, flag to hardcode \$libdir into
19343
# a binary during linking. This must work even if \$libdir does
19345
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19347
# Whether we need a single -rpath flag with a separated argument.
19348
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19350
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19351
# resulting binary.
19352
hardcode_direct=$hardcode_direct_RC
19354
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19355
# resulting binary.
19356
hardcode_minus_L=$hardcode_minus_L_RC
19358
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19359
# the resulting binary.
19360
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19362
# Set to yes if building a shared library automatically hardcodes DIR into the library
19363
# and all subsequent libraries and executables linked against it.
19364
hardcode_automatic=$hardcode_automatic_RC
19366
# Variables whose values should be saved in libtool wrapper scripts and
19367
# restored at relink time.
19368
variables_saved_for_relink="$variables_saved_for_relink"
19370
# Whether libtool must link a program against all its dependency libraries.
19371
link_all_deplibs=$link_all_deplibs_RC
19373
# Compile-time system search path for libraries
19374
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19376
# Run-time system search path for libraries
19377
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19379
# Fix the shell variable \$srcfile for the compiler.
19380
fix_srcfile_path="$fix_srcfile_path_RC"
19382
# Set to yes if exported symbols are required.
19383
always_export_symbols=$always_export_symbols_RC
19385
# The commands to list exported symbols.
19386
export_symbols_cmds=$lt_export_symbols_cmds_RC
19388
# The commands to extract the exported symbol list from a shared archive.
19389
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19391
# Symbols that should not be listed in the preloaded symbols.
19392
exclude_expsyms=$lt_exclude_expsyms_RC
19394
# Symbols that must always be exported.
19395
include_expsyms=$lt_include_expsyms_RC
19397
# ### END LIBTOOL TAG CONFIG: $tagname
19403
# If there is no Makefile yet, we rely on a make rule to execute
19404
# `config.status --recheck' to rerun these tests and create the
19405
# libtool script then.
19406
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19407
if test -f "$ltmain_in"; then
19408
test -f Makefile && make "$ltmain"
19414
ac_cpp='$CPP $CPPFLAGS'
19415
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19416
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19417
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19424
{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19425
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19426
{ (exit 1); exit 1; }; }
19430
# Append the new tag name to the list of available tags.
19431
if test -n "$tagname" ; then
19432
available_tags="$available_tags $tagname"
19438
# Now substitute the updated list of available tags.
19439
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19440
mv "${ofile}T" "$ofile"
19444
{ { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19445
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19446
{ (exit 1); exit 1; }; }
19452
# This can be used to rebuild libtool when needed
19453
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19455
# Always use our own libtool.
19456
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19458
# Prevent multiple expansion
19479
extrasub="$extrasub"'
19483
s/@subdir@/vacall_r/
19486
s/@subdir@/trampoline_r/
19492
subdirs="$subdirs vacall_r trampoline_r"
19494
ac_config_files="$ac_config_files Makefile"
19496
cat >confcache <<\_ACEOF
19497
# This file is a shell script that caches the results of configure
19498
# tests run on this system so they can be shared between configure
19499
# scripts and configure runs, see configure's option --config-cache.
19500
# It is not useful on other systems. If it contains results you don't
19501
# want to keep, you may remove or edit it.
19503
# config.status only pays attention to the cache file if you give it
19504
# the --recheck option to rerun configure.
19506
# `ac_cv_env_foo' variables (set or unset) will be overridden when
19507
# loading this file, other *unset* `ac_cv_foo' will be assigned the
19508
# following values.
19512
# The following way of writing the cache mishandles newlines in values,
19513
# but we know of no workaround that is simple, portable, and efficient.
19514
# So, we kill variables containing newlines.
19515
# Ultrix sh set writes to stderr and can't be redirected directly,
19516
# and sets the high bit in the cache file unless we assign to the vars.
19518
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19519
eval ac_val=\$$ac_var
19523
*_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
19524
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
19527
_ | IFS | as_nl) ;; #(
19528
*) $as_unset $ac_var ;;
19534
case $as_nl`(ac_space=' '; set) 2>&1` in #(
19535
*${as_nl}ac_space=\ *)
19536
# `set' does not quote correctly, so add quotes (double-quote
19537
# substitution turns \\\\ into \\, and sed turns \\ into \).
19540
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19543
# `set' quotes correctly as required by POSIX, so do not add quotes.
19544
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19553
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19555
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19557
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19558
if test -w "$cache_file"; then
19559
test "x$cache_file" != "x/dev/null" &&
19560
{ echo "$as_me:$LINENO: updating cache $cache_file" >&5
19561
echo "$as_me: updating cache $cache_file" >&6;}
19562
cat confcache >$cache_file
19564
{ echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
19565
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19570
test "x$prefix" = xNONE && prefix=$ac_default_prefix
19571
# Let make expand exec_prefix.
19572
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19574
# Transform confdefs.h into DEFS.
19575
# Protect against shell expansion while executing Makefile rules.
19576
# Protect against Makefile macro expansion.
19578
# If the first sed substitution is executed (which looks for macros that
19579
# take arguments), then branch to the quote section. Otherwise,
19580
# look for a macro that doesn't take arguments.
19584
s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
19586
s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
19590
s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
19603
DEFS=`sed -n "$ac_script" confdefs.h`
19608
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19609
# 1. Remove the extension, and $U if already installed.
19610
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19611
ac_i=`echo "$ac_i" | sed "$ac_script"`
19612
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19613
# will be set to the directory where LIBOBJS objects are built.
19614
ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19615
ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
19617
LIBOBJS=$ac_libobjs
19619
LTLIBOBJS=$ac_ltlibobjs
19623
: ${CONFIG_STATUS=./config.status}
19624
ac_clean_files_save=$ac_clean_files
19625
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19626
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19627
echo "$as_me: creating $CONFIG_STATUS" >&6;}
19628
cat >$CONFIG_STATUS <<_ACEOF
19630
# Generated by $as_me.
19631
# Run this file to recreate the current configuration.
19632
# Compiler output produced by configure, useful for debugging
19633
# configure, is in config.log if it exists.
19636
ac_cs_recheck=false
19638
SHELL=\${CONFIG_SHELL-$SHELL}
19641
cat >>$CONFIG_STATUS <<\_ACEOF
19642
## --------------------- ##
19643
## M4sh Initialization. ##
19644
## --------------------- ##
19646
# Be Bourne compatible
19647
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19650
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19651
# is contrary to our usage. Disable this feature.
19652
alias -g '${1+"$@"}'='"$@"'
19653
setopt NO_GLOB_SUBST
19655
case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
19657
BIN_SH=xpg4; export BIN_SH # for Tru64
19658
DUALCASE=1; export DUALCASE # for MKS sh
19662
# Avoid depending upon Character Ranges.
19663
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19664
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19665
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19666
as_cr_digits='0123456789'
19667
as_cr_alnum=$as_cr_Letters$as_cr_digits
19669
# The user is always right.
19670
if test "${PATH_SEPARATOR+set}" != set; then
19671
echo "#! /bin/sh" >conf$$.sh
19672
echo "exit 0" >>conf$$.sh
19674
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19682
# Support unset when possible.
19683
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19691
# We need space, tab and new line, in precisely that order. Quoting is
19692
# there to prevent editors from complaining about space-tab.
19693
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
19694
# splitting by setting IFS to empty value.)
19699
# Find who we are. Look in the path if we contain no directory separator.
19701
*[\\/]* ) as_myself=$0 ;;
19702
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19703
for as_dir in $PATH
19706
test -z "$as_dir" && as_dir=.
19707
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19713
# We did not find ourselves, most probably we were run as `sh COMMAND'
19714
# in which case we are not to be found in the path.
19715
if test "x$as_myself" = x; then
19718
if test ! -f "$as_myself"; then
19719
echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19720
{ (exit 1); exit 1; }
19723
# Work around bugs in pre-3.0 UWIN ksh.
19724
for as_var in ENV MAIL MAILPATH
19725
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
19733
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19734
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19735
LC_TELEPHONE LC_TIME
19737
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19738
eval $as_var=C; export $as_var
19740
($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
19744
# Required to use basename.
19745
if expr a : '\(a\)' >/dev/null 2>&1 &&
19746
test "X`expr 00001 : '.*\(...\)'`" = X001; then
19752
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19753
as_basename=basename
19759
# Name of the executable.
19760
as_me=`$as_basename -- "$0" ||
19761
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19762
X"$0" : 'X\(//\)$' \| \
19763
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19765
sed '/^.*\/\([^/][^/]*\)\/*$/{
19784
as_lineno_1=$LINENO
19785
as_lineno_2=$LINENO
19786
test "x$as_lineno_1" != "x$as_lineno_2" &&
19787
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
19789
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19790
# uniformly replaced by the line number. The first 'sed' inserts a
19791
# line-number line after each line using $LINENO; the second 'sed'
19792
# does the real work. The second script uses 'N' to pair each
19793
# line-number line with the line containing $LINENO, and appends
19794
# trailing '-' during substitution so that $LINENO is not a special
19795
# case at line end.
19796
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19797
# scripts with optimization help from Paolo Bonzini. Blame Lee
19798
# E. McMahon (1931-1989) for sed's syntax. :-)
19810
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
19813
' >$as_me.lineno &&
19814
chmod +x "$as_me.lineno" ||
19815
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
19816
{ (exit 1); exit 1; }; }
19818
# Don't try to exec as it changes $[0], causing all sort of problems
19819
# (the dirname of $[0] is not the place where we might find the
19820
# original and so on. Autoconf is especially sensitive to this).
19821
. "./$as_me.lineno"
19822
# Exit status is that of the last command.
19827
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19833
ECHO_C= ECHO_N= ECHO_T=
19834
case `echo -n x` in
19836
case `echo 'x\c'` in
19837
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
19844
if expr a : '\(a\)' >/dev/null 2>&1 &&
19845
test "X`expr 00001 : '.*\(...\)'`" = X001; then
19851
rm -f conf$$ conf$$.exe conf$$.file
19852
if test -d conf$$.dir; then
19853
rm -f conf$$.dir/conf$$.file
19859
if ln -s conf$$.file conf$$ 2>/dev/null; then
19861
# ... but there are two gotchas:
19862
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19863
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19864
# In both cases, we have to default to `cp -p'.
19865
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19867
elif ln conf$$.file conf$$ 2>/dev/null; then
19872
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19873
rmdir conf$$.dir 2>/dev/null
19875
if mkdir -p . 2>/dev/null; then
19878
test -d ./-p && rmdir ./-p
19882
# Find out whether ``test -x'' works. Don't use a zero-byte file, as
19883
# systems may use methods other than mode bits to determine executability.
19884
cat >conf$$.file <<_ASEOF
19888
chmod +x conf$$.file
19889
if test -x conf$$.file >/dev/null 2>&1; then
19890
as_executable_p="test -x"
19896
# Sed expression to map a string onto a valid CPP name.
19897
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19899
# Sed expression to map a string onto a valid variable name.
19900
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19905
# Save the log message, to keep $[0] and so on meaningful, and to
19906
# report actual input values of CONFIG_FILES etc. instead of their
19907
# values after options handling.
19909
This file was extended by $as_me, which was
19910
generated by GNU Autoconf 2.60a. Invocation command line was
19912
CONFIG_FILES = $CONFIG_FILES
19913
CONFIG_HEADERS = $CONFIG_HEADERS
19914
CONFIG_LINKS = $CONFIG_LINKS
19915
CONFIG_COMMANDS = $CONFIG_COMMANDS
19918
on `(hostname || uname -n) 2>/dev/null | sed 1q`
19923
cat >>$CONFIG_STATUS <<_ACEOF
19924
# Files that config.status was made for.
19925
config_files="$ac_config_files"
19929
cat >>$CONFIG_STATUS <<\_ACEOF
19931
\`$as_me' instantiates files from templates according to the
19932
current configuration.
19934
Usage: $0 [OPTIONS] [FILE]...
19936
-h, --help print this help, then exit
19937
-V, --version print version number and configuration settings, then exit
19938
-q, --quiet do not print progress messages
19939
-d, --debug don't remove temporary files
19940
--recheck update $as_me by reconfiguring in the same conditions
19941
--file=FILE[:TEMPLATE]
19942
instantiate the configuration file FILE
19944
Configuration files:
19947
Report bugs to <bug-autoconf@gnu.org>."
19950
cat >>$CONFIG_STATUS <<_ACEOF
19953
configured by $0, generated by GNU Autoconf 2.60a,
19954
with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
19956
Copyright (C) 2006 Free Software Foundation, Inc.
19957
This config.status script is free software; the Free Software Foundation
19958
gives unlimited permission to copy, distribute and modify it."
19964
cat >>$CONFIG_STATUS <<\_ACEOF
19965
# If no file are specified by the user, then we need to provide default
19966
# value. By we need to know if files were specified by the user.
19972
ac_option=`expr "X$1" : 'X\([^=]*\)='`
19973
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19984
# Handling of the options.
19985
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19987
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19988
echo "$ac_cs_version"; exit ;;
19989
--debug | --debu | --deb | --de | --d | -d )
19991
--file | --fil | --fi | --f )
19993
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19994
ac_need_defaults=false;;
19995
--he | --h | --help | --hel | -h )
19996
echo "$ac_cs_usage"; exit ;;
19997
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
19998
| -silent | --silent | --silen | --sile | --sil | --si | --s)
20001
# This is an error.
20002
-*) { echo "$as_me: error: unrecognized option: $1
20003
Try \`$0 --help' for more information." >&2
20004
{ (exit 1); exit 1; }; } ;;
20006
*) ac_config_targets="$ac_config_targets $1"
20007
ac_need_defaults=false ;;
20013
ac_configure_extra_args=
20015
if $ac_cs_silent; then
20017
ac_configure_extra_args="$ac_configure_extra_args --silent"
20021
cat >>$CONFIG_STATUS <<_ACEOF
20022
if \$ac_cs_recheck; then
20023
echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20024
CONFIG_SHELL=$SHELL
20025
export CONFIG_SHELL
20026
exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20030
cat >>$CONFIG_STATUS <<\_ACEOF
20034
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20035
## Running $as_me. ##
20041
cat >>$CONFIG_STATUS <<_ACEOF
20044
cat >>$CONFIG_STATUS <<\_ACEOF
20046
# Handling of arguments.
20047
for ac_config_target in $ac_config_targets
20049
case $ac_config_target in
20050
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20052
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20053
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20054
{ (exit 1); exit 1; }; };;
20059
# If the user did not use the arguments to specify the items to instantiate,
20060
# then the envvar interface is used. Set only those that are not.
20061
# We use the long form for the default assignment because of an extremely
20062
# bizarre bug on SunOS 4.1.3.
20063
if $ac_need_defaults; then
20064
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20067
# Have a temporary directory for convenience. Make it in the build tree
20068
# simply because there is no reason against having it here, and in addition,
20069
# creating and moving files from /tmp can sometimes cause problems.
20070
# Hook for its removal unless debugging.
20071
# Note that there is a small window in which the directory will not be cleaned:
20072
# after its creation but before its name has been assigned to `$tmp'.
20076
trap 'exit_status=$?
20077
{ test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20079
trap '{ (exit 1); exit 1; }' 1 2 13 15
20081
# Create a (secure) tmp directory for tmp files.
20084
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20085
test -n "$tmp" && test -d "$tmp"
20088
tmp=./conf$$-$RANDOM
20089
(umask 077 && mkdir "$tmp")
20092
echo "$me: cannot create a temporary directory in ." >&2
20093
{ (exit 1); exit 1; }
20097
# Set up the sed scripts for CONFIG_FILES section.
20100
# No need to generate the scripts if there are no CONFIG_FILES.
20101
# This happens for instance when ./config.status config.h
20102
if test -n "$CONFIG_FILES"; then
20109
for ac_last_try in false false false false false :; do
20110
cat >conf$$subs.sed <<_ACEOF
20111
SHELL!$SHELL$ac_delim
20112
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20113
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20114
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20115
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20116
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20117
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20118
exec_prefix!$exec_prefix$ac_delim
20119
prefix!$prefix$ac_delim
20120
program_transform_name!$program_transform_name$ac_delim
20121
bindir!$bindir$ac_delim
20122
sbindir!$sbindir$ac_delim
20123
libexecdir!$libexecdir$ac_delim
20124
datarootdir!$datarootdir$ac_delim
20125
datadir!$datadir$ac_delim
20126
sysconfdir!$sysconfdir$ac_delim
20127
sharedstatedir!$sharedstatedir$ac_delim
20128
localstatedir!$localstatedir$ac_delim
20129
includedir!$includedir$ac_delim
20130
oldincludedir!$oldincludedir$ac_delim
20131
docdir!$docdir$ac_delim
20132
infodir!$infodir$ac_delim
20133
htmldir!$htmldir$ac_delim
20134
dvidir!$dvidir$ac_delim
20135
pdfdir!$pdfdir$ac_delim
20136
psdir!$psdir$ac_delim
20137
libdir!$libdir$ac_delim
20138
localedir!$localedir$ac_delim
20139
mandir!$mandir$ac_delim
20140
DEFS!$DEFS$ac_delim
20141
ECHO_C!$ECHO_C$ac_delim
20142
ECHO_N!$ECHO_N$ac_delim
20143
ECHO_T!$ECHO_T$ac_delim
20144
LIBS!$LIBS$ac_delim
20145
build_alias!$build_alias$ac_delim
20146
host_alias!$host_alias$ac_delim
20147
target_alias!$target_alias$ac_delim
20149
CFLAGS!$CFLAGS$ac_delim
20150
LDFLAGS!$LDFLAGS$ac_delim
20151
CPPFLAGS!$CPPFLAGS$ac_delim
20152
ac_ct_CC!$ac_ct_CC$ac_delim
20153
EXEEXT!$EXEEXT$ac_delim
20154
OBJEXT!$OBJEXT$ac_delim
20156
GREP!$GREP$ac_delim
20157
EGREP!$EGREP$ac_delim
20158
CC_GCC!$CC_GCC$ac_delim
20159
GCC_X_NONE!$GCC_X_NONE$ac_delim
20160
RANLIB!$RANLIB$ac_delim
20161
SET_MAKE!$SET_MAKE$ac_delim
20162
INSTALL!$INSTALL$ac_delim
20163
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
20164
INSTALL_DATA!$INSTALL_DATA$ac_delim
20167
LN_S!$LN_S$ac_delim
20168
build!$build$ac_delim
20169
build_cpu!$build_cpu$ac_delim
20170
build_vendor!$build_vendor$ac_delim
20171
build_os!$build_os$ac_delim
20172
host!$host$ac_delim
20173
host_cpu!$host_cpu$ac_delim
20174
host_vendor!$host_vendor$ac_delim
20175
host_os!$host_os$ac_delim
20176
host_cpu_abi!$host_cpu_abi$ac_delim
20177
ECHO!$ECHO$ac_delim
20179
STRIP!$STRIP$ac_delim
20181
CXXFLAGS!$CXXFLAGS$ac_delim
20182
ac_ct_CXX!$ac_ct_CXX$ac_delim
20183
CXXCPP!$CXXCPP$ac_delim
20185
FFLAGS!$FFLAGS$ac_delim
20186
ac_ct_F77!$ac_ct_F77$ac_delim
20187
LIBTOOL!$LIBTOOL$ac_delim
20188
subdirs!$subdirs$ac_delim
20189
LIBOBJS!$LIBOBJS$ac_delim
20190
LTLIBOBJS!$LTLIBOBJS$ac_delim
20193
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 80; then
20195
elif $ac_last_try; then
20196
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20197
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20198
{ (exit 1); exit 1; }; }
20200
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20204
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20205
if test -n "$ac_eof"; then
20206
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20207
ac_eof=`expr $ac_eof + 1`
20210
cat >>$CONFIG_STATUS <<_ACEOF
20211
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
20212
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
20215
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20216
s/^/s,@/; s/!/@,|#_!!_#|/
20219
s/'"$ac_delim"'$/,g/; t
20221
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20222
' >>$CONFIG_STATUS <conf$$subs.sed
20223
rm -f conf$$subs.sed
20224
cat >>$CONFIG_STATUS <<_ACEOF
20231
# VPATH may cause trouble with some makes, so we remove $(srcdir),
20232
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20233
# trailing colons and then remove the whole line if VPATH becomes empty
20234
# (actually we leave an empty line to preserve line numbers).
20235
if test "x$srcdir" = x.; then
20236
ac_vpsub='/^[ ]*VPATH[ ]*=/{
20237
s/:*\$(srcdir):*/:/
20238
s/:*\${srcdir}:*/:/
20240
s/^\([^=]*=[ ]*\):*/\1/
20246
cat >>$CONFIG_STATUS <<\_ACEOF
20247
fi # test -n "$CONFIG_FILES"
20250
for ac_tag in :F $CONFIG_FILES
20253
:[FHLC]) ac_mode=$ac_tag; continue;;
20255
case $ac_mode$ac_tag in
20257
:L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
20258
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
20259
{ (exit 1); exit 1; }; };;
20260
:[FH]-) ac_tag=-:-;;
20261
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20278
-) ac_f="$tmp/stdin";;
20279
*) # Look for the file first in the build tree, then in the source tree
20280
# (if the path is not absolute). The absolute path cannot be DOS-style,
20281
# because $ac_f cannot contain `:'.
20285
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20287
{ { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
20288
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
20289
{ (exit 1); exit 1; }; };;
20291
ac_file_inputs="$ac_file_inputs $ac_f"
20294
# Let's still pretend it is `configure' which instantiates (i.e., don't
20295
# use $as_me), people would be surprised to read:
20296
# /* config.h. Generated by config.status. */
20297
configure_input="Generated from "`IFS=:
20298
echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
20299
if test x"$ac_file" != x-; then
20300
configure_input="$ac_file. $configure_input"
20301
{ echo "$as_me:$LINENO: creating $ac_file" >&5
20302
echo "$as_me: creating $ac_file" >&6;}
20306
*:-:* | *:-) cat >"$tmp/stdin";;
20311
ac_dir=`$as_dirname -- "$ac_file" ||
20312
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20313
X"$ac_file" : 'X\(//\)[^/]' \| \
20314
X"$ac_file" : 'X\(//\)$' \| \
20315
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20317
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20321
/^X\(\/\/\)[^/].*/{
20336
-*) as_dir=./$as_dir;;
20338
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20342
*\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20343
*) as_qdir=$as_dir;;
20345
as_dirs="'$as_qdir' $as_dirs"
20346
as_dir=`$as_dirname -- "$as_dir" ||
20347
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20348
X"$as_dir" : 'X\(//\)[^/]' \| \
20349
X"$as_dir" : 'X\(//\)$' \| \
20350
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20352
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20356
/^X\(\/\/\)[^/].*/{
20369
test -d "$as_dir" && break
20371
test -z "$as_dirs" || eval "mkdir $as_dirs"
20372
} || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20373
echo "$as_me: error: cannot create directory $as_dir" >&2;}
20374
{ (exit 1); exit 1; }; }; }
20378
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20380
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20381
# A ".." for each directory in $ac_dir_suffix.
20382
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
20383
case $ac_top_builddir_sub in
20384
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20385
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20388
ac_abs_top_builddir=$ac_pwd
20389
ac_abs_builddir=$ac_pwd$ac_dir_suffix
20390
# for backward compatibility:
20391
ac_top_builddir=$ac_top_build_prefix
20394
.) # We are building in place.
20396
ac_top_srcdir=$ac_top_builddir_sub
20397
ac_abs_top_srcdir=$ac_pwd ;;
20398
[\\/]* | ?:[\\/]* ) # Absolute name.
20399
ac_srcdir=$srcdir$ac_dir_suffix;
20400
ac_top_srcdir=$srcdir
20401
ac_abs_top_srcdir=$srcdir ;;
20402
*) # Relative name.
20403
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20404
ac_top_srcdir=$ac_top_build_prefix$srcdir
20405
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20407
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20418
cat >>$CONFIG_STATUS <<\_ACEOF
20419
# If the template does not know about datarootdir, expand it.
20420
# FIXME: This hack should be removed a few years after 2.60.
20421
ac_datarootdir_hack=; ac_datarootdir_seen=
20423
case `sed -n '/datarootdir/ {
20432
' $ac_file_inputs` in
20433
*datarootdir*) ac_datarootdir_seen=yes;;
20434
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20435
{ echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20436
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20438
cat >>$CONFIG_STATUS <<_ACEOF
20439
ac_datarootdir_hack='
20440
s&@datadir@&$datadir&g
20441
s&@docdir@&$docdir&g
20442
s&@infodir@&$infodir&g
20443
s&@localedir@&$localedir&g
20444
s&@mandir@&$mandir&g
20445
s&\\\${datarootdir}&$datarootdir&g' ;;
20449
# Neutralize VPATH when `$srcdir' = `.'.
20450
# Shell code in configure.ac might set extrasub.
20451
# FIXME: do we really want to maintain this feature?
20452
cat >>$CONFIG_STATUS <<_ACEOF
20456
cat >>$CONFIG_STATUS <<\_ACEOF
20458
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20459
s&@configure_input@&$configure_input&;t t
20460
s&@top_builddir@&$ac_top_builddir_sub&;t t
20461
s&@srcdir@&$ac_srcdir&;t t
20462
s&@abs_srcdir@&$ac_abs_srcdir&;t t
20463
s&@top_srcdir@&$ac_top_srcdir&;t t
20464
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20465
s&@builddir@&$ac_builddir&;t t
20466
s&@abs_builddir@&$ac_abs_builddir&;t t
20467
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20468
$ac_datarootdir_hack
20469
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
20471
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20472
{ ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
20473
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
20474
{ echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20475
which seems to be undefined. Please make sure it is defined." >&5
20476
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20477
which seems to be undefined. Please make sure it is defined." >&2;}
20481
-) cat "$tmp/out"; rm -f "$tmp/out";;
20482
*) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
20493
{ (exit 0); exit 0; }
20495
chmod +x $CONFIG_STATUS
20496
ac_clean_files=$ac_clean_files_save
20499
# configure is writing to config.log, and then calls config.status.
20500
# config.status does its own redirection, appending to config.log.
20501
# Unfortunately, on DOS this fails, as config.log is still kept open
20502
# by configure, so config.status won't be able to write to it; its
20503
# output is simply discarded. So we exec the FD to /dev/null,
20504
# effectively closing config.log, so it can be properly (re)opened and
20505
# appended to by config.status. When coming back to configure, we
20506
# need to make the FD available again.
20507
if test "$no_create" != yes; then
20509
ac_config_status_args=
20510
test "$silent" = yes &&
20511
ac_config_status_args="$ac_config_status_args --quiet"
20513
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20515
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
20516
# would make configure fail if this is the last instruction.
20517
$ac_cs_success || { (exit 1); exit 1; }
20521
# CONFIG_SUBDIRS section.
20523
if test "$no_recursion" != yes; then
20525
# Remove --cache-file and --srcdir arguments so they do not pile up.
20526
ac_sub_configure_args=
20528
eval "set x $ac_configure_args"
20532
if test -n "$ac_prev"; then
20537
-cache-file | --cache-file | --cache-fil | --cache-fi \
20538
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
20539
ac_prev=cache_file ;;
20540
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
20541
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
20544
--config-cache | -C)
20546
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
20548
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
20550
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
20552
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
20556
*\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20558
ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
20562
# Always prepend --prefix to ensure using the same prefix
20563
# in subdir configurations.
20564
ac_arg="--prefix=$prefix"
20566
*\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20568
ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
20571
for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
20573
# Do not complain, so a configure script can configure whichever
20574
# parts of a large source tree are present.
20575
test -d "$srcdir/$ac_dir" || continue
20577
ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
20578
echo "$as_me:$LINENO: $ac_msg" >&5
20582
-*) as_dir=./$as_dir;;
20584
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20588
*\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20589
*) as_qdir=$as_dir;;
20591
as_dirs="'$as_qdir' $as_dirs"
20592
as_dir=`$as_dirname -- "$as_dir" ||
20593
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20594
X"$as_dir" : 'X\(//\)[^/]' \| \
20595
X"$as_dir" : 'X\(//\)$' \| \
20596
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20598
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20602
/^X\(\/\/\)[^/].*/{
20615
test -d "$as_dir" && break
20617
test -z "$as_dirs" || eval "mkdir $as_dirs"
20618
} || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20619
echo "$as_me: error: cannot create directory $as_dir" >&2;}
20620
{ (exit 1); exit 1; }; }; }
20624
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20626
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20627
# A ".." for each directory in $ac_dir_suffix.
20628
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
20629
case $ac_top_builddir_sub in
20630
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20631
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20634
ac_abs_top_builddir=$ac_pwd
20635
ac_abs_builddir=$ac_pwd$ac_dir_suffix
20636
# for backward compatibility:
20637
ac_top_builddir=$ac_top_build_prefix
20640
.) # We are building in place.
20642
ac_top_srcdir=$ac_top_builddir_sub
20643
ac_abs_top_srcdir=$ac_pwd ;;
20644
[\\/]* | ?:[\\/]* ) # Absolute name.
20645
ac_srcdir=$srcdir$ac_dir_suffix;
20646
ac_top_srcdir=$srcdir
20647
ac_abs_top_srcdir=$srcdir ;;
20648
*) # Relative name.
20649
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20650
ac_top_srcdir=$ac_top_build_prefix$srcdir
20651
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20653
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20658
# Check for guested configure; otherwise get Cygnus style configure.
20659
if test -f "$ac_srcdir/configure.gnu"; then
20660
ac_sub_configure=$ac_srcdir/configure.gnu
20661
elif test -f "$ac_srcdir/configure"; then
20662
ac_sub_configure=$ac_srcdir/configure
20663
elif test -f "$ac_srcdir/configure.in"; then
20664
# This should be Cygnus configure.
20665
ac_sub_configure=$ac_aux_dir/configure
20667
{ echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
20668
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
20672
# The recursion is here.
20673
if test -n "$ac_sub_configure"; then
20674
# Make the cache file name correct relative to the subdirectory.
20675
case $cache_file in
20676
[\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
20677
*) # Relative name.
20678
ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
20681
{ echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
20682
echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
20683
# The eval makes quoting arguments work.
20684
eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
20685
--cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
20686
{ { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
20687
echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
20688
{ (exit 1); exit 1; }; }