2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.61 for Ceph distributed file system .1.
5
# Report bugs to <Sage Weil <sage@newdream.net>>.
7
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8
# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9
# This configure script is free software; the Free Software Foundation
10
# gives unlimited permission to copy, distribute and modify it.
11
## --------------------- ##
12
## M4sh Initialization. ##
13
## --------------------- ##
15
# Be more Bourne compatible
16
DUALCASE=1; export DUALCASE # for MKS sh
17
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21
# is contrary to our usage. Disable this feature.
22
alias -g '${1+"$@"}'='"$@"'
25
case `(set -o) 2>/dev/null` in
26
*posix*) set -o posix ;;
35
# Avoid depending upon Character Ranges.
36
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39
as_cr_digits='0123456789'
40
as_cr_alnum=$as_cr_Letters$as_cr_digits
42
# The user is always right.
43
if test "${PATH_SEPARATOR+set}" != set; then
44
echo "#! /bin/sh" >conf$$.sh
45
echo "exit 0" >>conf$$.sh
47
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
55
# Support unset when possible.
56
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
64
# We need space, tab and new line, in precisely that order. Quoting is
65
# there to prevent editors from complaining about space-tab.
66
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
67
# splitting by setting IFS to empty value.)
72
# Find who we are. Look in the path if we contain no directory separator.
74
*[\\/]* ) as_myself=$0 ;;
75
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
79
test -z "$as_dir" && as_dir=.
80
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
86
# We did not find ourselves, most probably we were run as `sh COMMAND'
87
# in which case we are not to be found in the path.
88
if test "x$as_myself" = x; then
91
if test ! -f "$as_myself"; then
92
echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
96
# Work around bugs in pre-3.0 UWIN ksh.
97
for as_var in ENV MAIL MAILPATH
98
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
106
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
110
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111
eval $as_var=C; export $as_var
113
($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
117
# Required to use basename.
118
if expr a : '\(a\)' >/dev/null 2>&1 &&
119
test "X`expr 00001 : '.*\(...\)'`" = X001; then
125
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
132
# Name of the executable.
133
as_me=`$as_basename -- "$0" ||
134
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135
X"$0" : 'X\(//\)$' \| \
136
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138
sed '/^.*\/\([^/][^/]*\)\/*$/{
156
if test "x$CONFIG_SHELL" = x; then
157
if (eval ":") 2>/dev/null; then
163
if test $as_have_required = yes && (eval ":
173
as_func_ret_success () {
176
as_func_ret_failure () {
181
if as_func_success; then
185
echo as_func_success failed.
188
if as_func_failure; then
190
echo as_func_failure succeeded.
193
if as_func_ret_success; then
197
echo as_func_ret_success failed.
200
if as_func_ret_failure; then
202
echo as_func_ret_failure succeeded.
205
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
209
echo positional parameters were not saved.
212
test \$exitcode = 0) || { (exit 1); exit 1; }
217
test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218
test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219
") 2> /dev/null; then
223
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
227
test -z "$as_dir" && as_dir=.
230
for as_base in sh bash ksh sh5; do
231
as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
238
for as_shell in $as_candidate_shells $SHELL; do
239
# Try only shells that exist, to save several forks.
240
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241
{ ("$as_shell") 2> /dev/null <<\_ASEOF
242
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
245
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246
# is contrary to our usage. Disable this feature.
247
alias -g '${1+"$@"}'='"$@"'
250
case `(set -o) 2>/dev/null` in
251
*posix*) set -o posix ;;
260
CONFIG_SHELL=$as_shell
262
if { "$as_shell" 2> /dev/null <<\_ASEOF
263
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
266
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267
# is contrary to our usage. Disable this feature.
268
alias -g '${1+"$@"}'='"$@"'
271
case `(set -o) 2>/dev/null` in
272
*posix*) set -o posix ;;
288
as_func_ret_success () {
291
as_func_ret_failure () {
296
if as_func_success; then
300
echo as_func_success failed.
303
if as_func_failure; then
305
echo as_func_failure succeeded.
308
if as_func_ret_success; then
312
echo as_func_ret_success failed.
315
if as_func_ret_failure; then
317
echo as_func_ret_failure succeeded.
320
if ( set x; as_func_ret_success y && test x = "$1" ); then
324
echo positional parameters were not saved.
327
test $exitcode = 0) || { (exit 1); exit 1; }
332
test "x$as_lineno_1" != "x$as_lineno_2" &&
333
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
344
if test "x$CONFIG_SHELL" != x; then
345
for as_var in BASH_ENV ENV
346
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
349
exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
353
if test $as_have_required = no; then
354
echo This script requires a shell more modern than all the
355
echo shells that I found on your system. Please install a
356
echo modern shell, or manually run the script under such a
357
echo shell if you do have one.
358
{ (exit 1); exit 1; }
368
(eval "as_func_return () {
377
as_func_ret_success () {
380
as_func_ret_failure () {
385
if as_func_success; then
389
echo as_func_success failed.
392
if as_func_failure; then
394
echo as_func_failure succeeded.
397
if as_func_ret_success; then
401
echo as_func_ret_success failed.
404
if as_func_ret_failure; then
406
echo as_func_ret_failure succeeded.
409
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
413
echo positional parameters were not saved.
416
test \$exitcode = 0") || {
417
echo No shell found that supports shell functions.
418
echo Please tell autoconf@gnu.org about your system,
419
echo including any error possibly output before this
427
test "x$as_lineno_1" != "x$as_lineno_2" &&
428
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431
# uniformly replaced by the line number. The first 'sed' inserts a
432
# line-number line after each line using $LINENO; the second 'sed'
433
# does the real work. The second script uses 'N' to pair each
434
# line-number line with the line containing $LINENO, and appends
435
# trailing '-' during substitution so that $LINENO is not a special
437
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438
# scripts with optimization help from Paolo Bonzini. Blame Lee
439
# E. McMahon (1931-1989) for sed's syntax. :-)
451
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
455
chmod +x "$as_me.lineno" ||
456
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457
{ (exit 1); exit 1; }; }
459
# Don't try to exec as it changes $[0], causing all sort of problems
460
# (the dirname of $[0] is not the place where we might find the
461
# original and so on. Autoconf is especially sensitive to this).
463
# Exit status is that of the last command.
468
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
474
ECHO_C= ECHO_N= ECHO_T=
478
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
485
if expr a : '\(a\)' >/dev/null 2>&1 &&
486
test "X`expr 00001 : '.*\(...\)'`" = X001; then
492
rm -f conf$$ conf$$.exe conf$$.file
493
if test -d conf$$.dir; then
494
rm -f conf$$.dir/conf$$.file
500
if ln -s conf$$.file conf$$ 2>/dev/null; then
502
# ... but there are two gotchas:
503
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505
# In both cases, we have to default to `cp -p'.
506
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508
elif ln conf$$.file conf$$ 2>/dev/null; then
513
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514
rmdir conf$$.dir 2>/dev/null
516
if mkdir -p . 2>/dev/null; then
519
test -d ./-p && rmdir ./-p
523
if test -x / >/dev/null 2>&1; then
526
if ls -dL / >/dev/null 2>&1; then
533
if test -d "$1"; then
539
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540
???[sx]*):;;*)false;;esac;fi
544
as_executable_p=$as_test_x
546
# Sed expression to map a string onto a valid CPP name.
547
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549
# Sed expression to map a string onto a valid variable name.
550
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
# Check that we are running under the correct shell.
556
SHELL=${CONFIG_SHELL-/bin/sh}
560
# Remove one level of quotation (which was required for Make).
561
ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
566
if test "X$1" = X--no-reexec; then
567
# Discard the --no-reexec flag, and continue.
569
elif test "X$1" = X--fallback-echo; then
570
# Avoid inline document here, it may be left over
572
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573
# Yippee, $echo works!
576
# Restart under the correct shell.
577
exec $SHELL "$0" --no-reexec ${1+"$@"}
580
if test "X$1" = X--fallback-echo; then
581
# used as fallback echo
589
# The HP-UX ksh and POSIX shell print the target directory to stdout
591
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
593
if test -z "$ECHO"; then
594
if test "X${echo_test_string+set}" != Xset; then
595
# find a string as large as possible, as long as the shell can cope with it
596
for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598
if (echo_test_string=`eval $cmd`) 2>/dev/null &&
599
echo_test_string=`eval $cmd` &&
600
(test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
607
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609
test "X$echo_testing_string" = "X$echo_test_string"; then
612
# The Solaris, AIX, and Digital Unix default echo programs unquote
613
# backslashes. This makes it impossible to quote backslashes using
614
# echo "$something" | sed 's/\\/\\\\/g'
616
# So, first we look for a working echo in the user's PATH.
618
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619
for dir in $PATH /usr/ucb; do
621
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624
test "X$echo_testing_string" = "X$echo_test_string"; then
631
if test "X$echo" = Xecho; then
632
# We didn't find a better echo, so look for alternatives.
633
if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634
echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635
test "X$echo_testing_string" = "X$echo_test_string"; then
636
# This shell has a builtin print -r that does the trick.
638
elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639
test "X$CONFIG_SHELL" != X/bin/ksh; then
640
# If we have ksh, try running configure again with it.
641
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642
export ORIGINAL_CONFIG_SHELL
643
CONFIG_SHELL=/bin/ksh
645
exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
649
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651
test "X$echo_testing_string" = "X$echo_test_string"; then
654
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655
test "X$echo_testing_string" = 'X\t' &&
656
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657
test "X$echo_testing_string" = "X$echo_test_string"; then
658
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
660
SHELL="$CONFIG_SHELL"
662
echo="$CONFIG_SHELL $0 --fallback-echo"
663
elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664
test "X$echo_testing_string" = 'X\t' &&
665
echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666
test "X$echo_testing_string" = "X$echo_test_string"; then
667
echo="$CONFIG_SHELL $0 --fallback-echo"
669
# maybe with a smaller string...
672
for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673
if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
680
if test "$prev" != 'sed 50q "$0"'; then
681
echo_test_string=`eval $prev`
682
export echo_test_string
683
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
685
# Oops. We lost completely, so just stick with echo.
694
# Copy echo and quote the copy suitably for passing to libtool from
695
# the Makefile, instead of quoting the original, which is used later.
697
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698
ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
704
tagnames=${tagnames+${tagnames},}CXX
706
tagnames=${tagnames+${tagnames},}F77
708
exec 7<&0 </dev/null 6>&1
711
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712
# so uname gets run too.
713
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
718
ac_default_prefix=/usr/local
720
ac_config_libobj_dir=.
726
SHELL=${CONFIG_SHELL-/bin/sh}
728
# Identity of this package.
729
PACKAGE_NAME='Ceph distributed file system'
730
PACKAGE_TARNAME='ceph'
732
PACKAGE_STRING='Ceph distributed file system .1'
733
PACKAGE_BUGREPORT='Sage Weil <sage@newdream.net>'
735
# Factoring default headers for most tests.
736
ac_includes_default="\
738
#ifdef HAVE_SYS_TYPES_H
739
# include <sys/types.h>
741
#ifdef HAVE_SYS_STAT_H
742
# include <sys/stat.h>
748
# ifdef HAVE_STDLIB_H
753
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
758
#ifdef HAVE_STRINGS_H
759
# include <strings.h>
761
#ifdef HAVE_INTTYPES_H
762
# include <inttypes.h>
780
program_transform_name
834
INSTALL_STRIP_PROGRAM
886
WITH_HADOOPCLIENT_TRUE
887
WITH_HADOOPCLIENT_FALSE
893
ac_precious_vars='build_alias
910
# Initialize some variables set by options.
912
ac_init_version=false
913
# The variables have the same names as the options, with
914
# dashes changed to underlines.
922
program_transform_name=s,x,x,
930
# Installation directory options.
931
# These are left unexpanded so users can "make install exec_prefix=/foo"
932
# and all the variables that are supposed to be based on exec_prefix
933
# by default will actually change.
934
# Use braces instead of parens because sh, perl, etc. also accept them.
935
# (The list follows the same order as the GNU Coding Standards.)
936
bindir='${exec_prefix}/bin'
937
sbindir='${exec_prefix}/sbin'
938
libexecdir='${exec_prefix}/libexec'
939
datarootdir='${prefix}/share'
940
datadir='${datarootdir}'
941
sysconfdir='${prefix}/etc'
942
sharedstatedir='${prefix}/com'
943
localstatedir='${prefix}/var'
944
includedir='${prefix}/include'
945
oldincludedir='/usr/include'
946
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
947
infodir='${datarootdir}/info'
952
libdir='${exec_prefix}/lib'
953
localedir='${datarootdir}/locale'
954
mandir='${datarootdir}/man'
960
# If the previous option needs an argument, assign it.
961
if test -n "$ac_prev"; then
962
eval $ac_prev=\$ac_option
968
*=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
972
# Accept the important Cygnus configure options, so we can diagnose typos.
974
case $ac_dashdash$ac_option in
978
-bindir | --bindir | --bindi | --bind | --bin | --bi)
980
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
983
-build | --build | --buil | --bui | --bu)
984
ac_prev=build_alias ;;
985
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
986
build_alias=$ac_optarg ;;
988
-cache-file | --cache-file | --cache-fil | --cache-fi \
989
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
990
ac_prev=cache_file ;;
991
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
992
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
993
cache_file=$ac_optarg ;;
996
cache_file=config.cache ;;
998
-datadir | --datadir | --datadi | --datad)
1000
-datadir=* | --datadir=* | --datadi=* | --datad=*)
1001
datadir=$ac_optarg ;;
1003
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1004
| --dataroo | --dataro | --datar)
1005
ac_prev=datarootdir ;;
1006
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1007
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1008
datarootdir=$ac_optarg ;;
1010
-disable-* | --disable-*)
1011
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1012
# Reject names that are not valid shell variable names.
1013
expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1014
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
1015
{ (exit 1); exit 1; }; }
1016
ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1017
eval enable_$ac_feature=no ;;
1019
-docdir | --docdir | --docdi | --doc | --do)
1021
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1022
docdir=$ac_optarg ;;
1024
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1026
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1027
dvidir=$ac_optarg ;;
1029
-enable-* | --enable-*)
1030
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1031
# Reject names that are not valid shell variable names.
1032
expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1033
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
1034
{ (exit 1); exit 1; }; }
1035
ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1036
eval enable_$ac_feature=\$ac_optarg ;;
1038
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1039
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1040
| --exec | --exe | --ex)
1041
ac_prev=exec_prefix ;;
1042
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1043
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1044
| --exec=* | --exe=* | --ex=*)
1045
exec_prefix=$ac_optarg ;;
1047
-gas | --gas | --ga | --g)
1048
# Obsolete; use --with-gas.
1051
-help | --help | --hel | --he | -h)
1052
ac_init_help=long ;;
1053
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1054
ac_init_help=recursive ;;
1055
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1056
ac_init_help=short ;;
1058
-host | --host | --hos | --ho)
1059
ac_prev=host_alias ;;
1060
-host=* | --host=* | --hos=* | --ho=*)
1061
host_alias=$ac_optarg ;;
1063
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1065
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1067
htmldir=$ac_optarg ;;
1069
-includedir | --includedir | --includedi | --included | --include \
1070
| --includ | --inclu | --incl | --inc)
1071
ac_prev=includedir ;;
1072
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1073
| --includ=* | --inclu=* | --incl=* | --inc=*)
1074
includedir=$ac_optarg ;;
1076
-infodir | --infodir | --infodi | --infod | --info | --inf)
1078
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1079
infodir=$ac_optarg ;;
1081
-libdir | --libdir | --libdi | --libd)
1083
-libdir=* | --libdir=* | --libdi=* | --libd=*)
1084
libdir=$ac_optarg ;;
1086
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1087
| --libexe | --libex | --libe)
1088
ac_prev=libexecdir ;;
1089
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1090
| --libexe=* | --libex=* | --libe=*)
1091
libexecdir=$ac_optarg ;;
1093
-localedir | --localedir | --localedi | --localed | --locale)
1094
ac_prev=localedir ;;
1095
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1096
localedir=$ac_optarg ;;
1098
-localstatedir | --localstatedir | --localstatedi | --localstated \
1099
| --localstate | --localstat | --localsta | --localst | --locals)
1100
ac_prev=localstatedir ;;
1101
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1102
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1103
localstatedir=$ac_optarg ;;
1105
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1107
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1108
mandir=$ac_optarg ;;
1110
-nfp | --nfp | --nf)
1111
# Obsolete; use --without-fp.
1114
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
1115
| --no-cr | --no-c | -n)
1118
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
1119
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1122
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1123
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1124
| --oldin | --oldi | --old | --ol | --o)
1125
ac_prev=oldincludedir ;;
1126
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1127
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1128
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1129
oldincludedir=$ac_optarg ;;
1131
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1133
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1134
prefix=$ac_optarg ;;
1136
-program-prefix | --program-prefix | --program-prefi | --program-pref \
1137
| --program-pre | --program-pr | --program-p)
1138
ac_prev=program_prefix ;;
1139
-program-prefix=* | --program-prefix=* | --program-prefi=* \
1140
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1141
program_prefix=$ac_optarg ;;
1143
-program-suffix | --program-suffix | --program-suffi | --program-suff \
1144
| --program-suf | --program-su | --program-s)
1145
ac_prev=program_suffix ;;
1146
-program-suffix=* | --program-suffix=* | --program-suffi=* \
1147
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1148
program_suffix=$ac_optarg ;;
1150
-program-transform-name | --program-transform-name \
1151
| --program-transform-nam | --program-transform-na \
1152
| --program-transform-n | --program-transform- \
1153
| --program-transform | --program-transfor \
1154
| --program-transfo | --program-transf \
1155
| --program-trans | --program-tran \
1156
| --progr-tra | --program-tr | --program-t)
1157
ac_prev=program_transform_name ;;
1158
-program-transform-name=* | --program-transform-name=* \
1159
| --program-transform-nam=* | --program-transform-na=* \
1160
| --program-transform-n=* | --program-transform-=* \
1161
| --program-transform=* | --program-transfor=* \
1162
| --program-transfo=* | --program-transf=* \
1163
| --program-trans=* | --program-tran=* \
1164
| --progr-tra=* | --program-tr=* | --program-t=*)
1165
program_transform_name=$ac_optarg ;;
1167
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1169
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1170
pdfdir=$ac_optarg ;;
1172
-psdir | --psdir | --psdi | --psd | --ps)
1174
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1177
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1178
| -silent | --silent | --silen | --sile | --sil)
1181
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1183
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1185
sbindir=$ac_optarg ;;
1187
-sharedstatedir | --sharedstatedir | --sharedstatedi \
1188
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1189
| --sharedst | --shareds | --shared | --share | --shar \
1191
ac_prev=sharedstatedir ;;
1192
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1193
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1194
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1196
sharedstatedir=$ac_optarg ;;
1198
-site | --site | --sit)
1200
-site=* | --site=* | --sit=*)
1203
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1205
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1206
srcdir=$ac_optarg ;;
1208
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1209
| --syscon | --sysco | --sysc | --sys | --sy)
1210
ac_prev=sysconfdir ;;
1211
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1212
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1213
sysconfdir=$ac_optarg ;;
1215
-target | --target | --targe | --targ | --tar | --ta | --t)
1216
ac_prev=target_alias ;;
1217
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1218
target_alias=$ac_optarg ;;
1220
-v | -verbose | --verbose | --verbos | --verbo | --verb)
1223
-version | --version | --versio | --versi | --vers | -V)
1224
ac_init_version=: ;;
1227
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1228
# Reject names that are not valid shell variable names.
1229
expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1230
{ echo "$as_me: error: invalid package name: $ac_package" >&2
1231
{ (exit 1); exit 1; }; }
1232
ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1233
eval with_$ac_package=\$ac_optarg ;;
1235
-without-* | --without-*)
1236
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1237
# Reject names that are not valid shell variable names.
1238
expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1239
{ echo "$as_me: error: invalid package name: $ac_package" >&2
1240
{ (exit 1); exit 1; }; }
1241
ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1242
eval with_$ac_package=no ;;
1245
# Obsolete; use --with-x.
1248
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1249
| --x-incl | --x-inc | --x-in | --x-i)
1250
ac_prev=x_includes ;;
1251
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1252
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1253
x_includes=$ac_optarg ;;
1255
-x-libraries | --x-libraries | --x-librarie | --x-librari \
1256
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1257
ac_prev=x_libraries ;;
1258
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1259
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1260
x_libraries=$ac_optarg ;;
1262
-*) { echo "$as_me: error: unrecognized option: $ac_option
1263
Try \`$0 --help' for more information." >&2
1264
{ (exit 1); exit 1; }; }
1268
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1269
# Reject names that are not valid shell variable names.
1270
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1271
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1272
{ (exit 1); exit 1; }; }
1273
eval $ac_envvar=\$ac_optarg
1274
export $ac_envvar ;;
1277
# FIXME: should be removed in autoconf 3.0.
1278
echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1279
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1280
echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1281
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1287
if test -n "$ac_prev"; then
1288
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1289
{ echo "$as_me: error: missing argument to $ac_option" >&2
1290
{ (exit 1); exit 1; }; }
1293
# Be sure to have absolute directory names.
1294
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1295
datadir sysconfdir sharedstatedir localstatedir includedir \
1296
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1297
libdir localedir mandir
1299
eval ac_val=\$$ac_var
1301
[\\/$]* | ?:[\\/]* ) continue;;
1302
NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1304
{ echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1305
{ (exit 1); exit 1; }; }
1308
# There might be people who depend on the old broken behavior: `$host'
1309
# used to hold the argument of --host etc.
1310
# FIXME: To remove some day.
1313
target=$target_alias
1315
# FIXME: To remove some day.
1316
if test "x$host_alias" != x; then
1317
if test "x$build_alias" = x; then
1318
cross_compiling=maybe
1319
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1320
If a cross compiler is detected then cross compile mode will be used." >&2
1321
elif test "x$build_alias" != "x$host_alias"; then
1327
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1329
test "$silent" = yes && exec 6>/dev/null
1332
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1333
ac_ls_di=`ls -di .` &&
1334
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1335
{ echo "$as_me: error: Working directory cannot be determined" >&2
1336
{ (exit 1); exit 1; }; }
1337
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1338
{ echo "$as_me: error: pwd does not report name of working directory" >&2
1339
{ (exit 1); exit 1; }; }
1342
# Find the source files, if location was not specified.
1343
if test -z "$srcdir"; then
1344
ac_srcdir_defaulted=yes
1345
# Try the directory containing this script, then the parent directory.
1346
ac_confdir=`$as_dirname -- "$0" ||
1347
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1348
X"$0" : 'X\(//\)[^/]' \| \
1349
X"$0" : 'X\(//\)$' \| \
1350
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1352
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1370
if test ! -r "$srcdir/$ac_unique_file"; then
1374
ac_srcdir_defaulted=no
1376
if test ! -r "$srcdir/$ac_unique_file"; then
1377
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1378
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1379
{ (exit 1); exit 1; }; }
1381
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1383
cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1384
{ (exit 1); exit 1; }; }
1386
# When building in place, set srcdir=.
1387
if test "$ac_abs_confdir" = "$ac_pwd"; then
1390
# Remove unnecessary trailing slashes from srcdir.
1391
# Double slashes in file names in object file debugging info
1392
# mess up M-x gdb in Emacs.
1394
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1396
for ac_var in $ac_precious_vars; do
1397
eval ac_env_${ac_var}_set=\${${ac_var}+set}
1398
eval ac_env_${ac_var}_value=\$${ac_var}
1399
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1400
eval ac_cv_env_${ac_var}_value=\$${ac_var}
1404
# Report the --help message.
1406
if test "$ac_init_help" = "long"; then
1407
# Omit some internal or obsolete options to make the list less imposing.
1408
# This message is too long to be a string in the A/UX 3.1 sh.
1410
\`configure' configures Ceph distributed file system .1 to adapt to many kinds of systems.
1412
Usage: $0 [OPTION]... [VAR=VALUE]...
1414
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1415
VAR=VALUE. See below for descriptions of some of the useful variables.
1417
Defaults for the options are specified in brackets.
1420
-h, --help display this help and exit
1421
--help=short display options specific to this package
1422
--help=recursive display the short help of all the included packages
1423
-V, --version display version information and exit
1424
-q, --quiet, --silent do not print \`checking...' messages
1425
--cache-file=FILE cache test results in FILE [disabled]
1426
-C, --config-cache alias for \`--cache-file=config.cache'
1427
-n, --no-create do not create output files
1428
--srcdir=DIR find the sources in DIR [configure dir or \`..']
1430
Installation directories:
1431
--prefix=PREFIX install architecture-independent files in PREFIX
1432
[$ac_default_prefix]
1433
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1436
By default, \`make install' will install all the files in
1437
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1438
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1439
for instance \`--prefix=\$HOME'.
1441
For better control, use the options below.
1443
Fine tuning of the installation directories:
1444
--bindir=DIR user executables [EPREFIX/bin]
1445
--sbindir=DIR system admin executables [EPREFIX/sbin]
1446
--libexecdir=DIR program executables [EPREFIX/libexec]
1447
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1448
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1449
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1450
--libdir=DIR object code libraries [EPREFIX/lib]
1451
--includedir=DIR C header files [PREFIX/include]
1452
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1453
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1454
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1455
--infodir=DIR info documentation [DATAROOTDIR/info]
1456
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1457
--mandir=DIR man documentation [DATAROOTDIR/man]
1458
--docdir=DIR documentation root [DATAROOTDIR/doc/ceph]
1459
--htmldir=DIR html documentation [DOCDIR]
1460
--dvidir=DIR dvi documentation [DOCDIR]
1461
--pdfdir=DIR pdf documentation [DOCDIR]
1462
--psdir=DIR ps documentation [DOCDIR]
1468
--program-prefix=PREFIX prepend PREFIX to installed program names
1469
--program-suffix=SUFFIX append SUFFIX to installed program names
1470
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
1473
--build=BUILD configure for building on BUILD [guessed]
1474
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1475
--target=TARGET configure for building compilers for TARGET [HOST]
1479
if test -n "$ac_init_help"; then
1480
case $ac_init_help in
1481
short | recursive ) echo "Configuration of Ceph distributed file system .1:";;
1486
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1487
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1488
--disable-dependency-tracking speeds up one-time build
1489
--enable-dependency-tracking do not reject slow dependency extractors
1490
--enable-shared[=PKGS] build shared libraries [default=yes]
1491
--enable-static[=PKGS] build static libraries [default=yes]
1492
--enable-fast-install[=PKGS]
1493
optimize for fast installation [default=yes]
1494
--disable-libtool-lock avoid locking (might break parallel builds)
1497
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1498
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1499
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
1500
--with-pic try to use only PIC/non-PIC objects [default=use
1502
--with-tags[=TAGS] include additional configurations [automatic]
1503
--with-debug build extra debug binaries
1504
--with-radosgw build RADOS gateway
1505
--with-fuse use FUSE library for client
1506
--with-hadoop build hadoop client
1507
--with-libatomic-ops use libatomic-ops to build Ceph's atomic_t type
1509
Some influential environment variables:
1510
CC C compiler command
1511
CFLAGS C compiler flags
1512
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1513
nonstandard directory <lib dir>
1514
LIBS libraries to pass to the linker, e.g. -l<library>
1515
CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1516
you have headers in a nonstandard directory <include dir>
1518
CXX C++ compiler command
1519
CXXFLAGS C++ compiler flags
1520
CXXCPP C++ preprocessor
1521
F77 Fortran 77 compiler command
1522
FFLAGS Fortran 77 compiler flags
1524
Use these variables to override the choices made by `configure' or to help
1525
it to find libraries and programs with nonstandard names/locations.
1527
Report bugs to <Sage Weil <sage@newdream.net>>.
1532
if test "$ac_init_help" = "recursive"; then
1533
# If there are subdirs, report their specific --help.
1534
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1535
test -d "$ac_dir" || continue
1539
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1541
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1542
# A ".." for each directory in $ac_dir_suffix.
1543
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1544
case $ac_top_builddir_sub in
1545
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1546
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1549
ac_abs_top_builddir=$ac_pwd
1550
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1551
# for backward compatibility:
1552
ac_top_builddir=$ac_top_build_prefix
1555
.) # We are building in place.
1557
ac_top_srcdir=$ac_top_builddir_sub
1558
ac_abs_top_srcdir=$ac_pwd ;;
1559
[\\/]* | ?:[\\/]* ) # Absolute name.
1560
ac_srcdir=$srcdir$ac_dir_suffix;
1561
ac_top_srcdir=$srcdir
1562
ac_abs_top_srcdir=$srcdir ;;
1564
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1565
ac_top_srcdir=$ac_top_build_prefix$srcdir
1566
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1568
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1570
cd "$ac_dir" || { ac_status=$?; continue; }
1571
# Check for guested configure.
1572
if test -f "$ac_srcdir/configure.gnu"; then
1574
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
1575
elif test -f "$ac_srcdir/configure"; then
1577
$SHELL "$ac_srcdir/configure" --help=recursive
1579
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1581
cd "$ac_pwd" || { ac_status=$?; break; }
1585
test -n "$ac_init_help" && exit $ac_status
1586
if $ac_init_version; then
1588
Ceph distributed file system configure .1
1589
generated by GNU Autoconf 2.61
1591
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1592
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1593
This configure script is free software; the Free Software Foundation
1594
gives unlimited permission to copy, distribute and modify it.
1598
cat >config.log <<_ACEOF
1599
This file contains any messages produced by compilers while
1600
running configure, to aid debugging if configure makes a mistake.
1602
It was created by Ceph distributed file system $as_me .1, which was
1603
generated by GNU Autoconf 2.61. Invocation command line was
1615
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1616
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1617
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1618
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1619
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1621
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1622
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1624
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1625
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1626
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1627
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1628
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1629
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1630
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1634
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1638
test -z "$as_dir" && as_dir=.
1639
echo "PATH: $as_dir"
1655
# Keep a trace of the command line.
1656
# Strip out --no-create and --no-recursion so they do not pile up.
1657
# Strip out --silent because we don't want to record it for future runs.
1658
# Also quote any args containing shell meta-characters.
1659
# Make two passes to allow for proper duplicate-argument suppression.
1663
ac_must_keep_next=false
1669
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1670
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1671
| -silent | --silent | --silen | --sile | --sil)
1674
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1677
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1679
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1680
if test $ac_must_keep_next = true; then
1681
ac_must_keep_next=false # Got value, back to normal.
1684
*=* | --config-cache | -C | -disable-* | --disable-* \
1685
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1686
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1687
| -with-* | --with-* | -without-* | --without-* | --x)
1688
case "$ac_configure_args0 " in
1689
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1692
-* ) ac_must_keep_next=true ;;
1695
ac_configure_args="$ac_configure_args '$ac_arg'"
1700
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1701
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1703
# When interrupted or exit'd, cleanup temporary files, and complete
1704
# config.log. We remove comments because anyway the quotes in there
1705
# would cause problems or look ugly.
1706
# WARNING: Use '\'' to represent an apostrophe within the trap.
1707
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1708
trap 'exit_status=$?
1709
# Save into config.log some information that might help in debugging.
1714
## ---------------- ##
1715
## Cache variables. ##
1716
## ---------------- ##
1719
# The following way of writing the cache mishandles newlines in values,
1721
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1722
eval ac_val=\$$ac_var
1726
*_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1727
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1730
_ | IFS | as_nl) ;; #(
1731
*) $as_unset $ac_var ;;
1736
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1737
*${as_nl}ac_space=\ *)
1739
"s/'\''/'\''\\\\'\'''\''/g;
1740
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1743
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1751
## ----------------- ##
1752
## Output variables. ##
1753
## ----------------- ##
1756
for ac_var in $ac_subst_vars
1758
eval ac_val=\$$ac_var
1760
*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1762
echo "$ac_var='\''$ac_val'\''"
1766
if test -n "$ac_subst_files"; then
1768
## ------------------- ##
1769
## File substitutions. ##
1770
## ------------------- ##
1773
for ac_var in $ac_subst_files
1775
eval ac_val=\$$ac_var
1777
*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1779
echo "$ac_var='\''$ac_val'\''"
1784
if test -s confdefs.h; then
1794
test "$ac_signal" != 0 &&
1795
echo "$as_me: caught signal $ac_signal"
1796
echo "$as_me: exit $exit_status"
1798
rm -f core *.core core.conftest.* &&
1799
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1802
for ac_signal in 1 2 13 15; do
1803
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1807
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1808
rm -f -r conftest* confdefs.h
1810
# Predefined preprocessor variables.
1812
cat >>confdefs.h <<_ACEOF
1813
#define PACKAGE_NAME "$PACKAGE_NAME"
1817
cat >>confdefs.h <<_ACEOF
1818
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1822
cat >>confdefs.h <<_ACEOF
1823
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1827
cat >>confdefs.h <<_ACEOF
1828
#define PACKAGE_STRING "$PACKAGE_STRING"
1832
cat >>confdefs.h <<_ACEOF
1833
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1837
# Let the site file select an alternate cache file if it wants to.
1838
# Prefer explicitly selected file to automatically selected ones.
1839
if test -n "$CONFIG_SITE"; then
1840
set x "$CONFIG_SITE"
1841
elif test "x$prefix" != xNONE; then
1842
set x "$prefix/share/config.site" "$prefix/etc/config.site"
1844
set x "$ac_default_prefix/share/config.site" \
1845
"$ac_default_prefix/etc/config.site"
1850
if test -r "$ac_site_file"; then
1851
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1852
echo "$as_me: loading site script $ac_site_file" >&6;}
1853
sed 's/^/| /' "$ac_site_file" >&5
1858
if test -r "$cache_file"; then
1859
# Some versions of bash will fail to source /dev/null (special
1860
# files actually), so we avoid doing that.
1861
if test -f "$cache_file"; then
1862
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
1863
echo "$as_me: loading cache $cache_file" >&6;}
1865
[\\/]* | ?:[\\/]* ) . "$cache_file";;
1866
*) . "./$cache_file";;
1870
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
1871
echo "$as_me: creating cache $cache_file" >&6;}
1875
# Check that the precious variables saved in the cache have kept the same
1877
ac_cache_corrupted=false
1878
for ac_var in $ac_precious_vars; do
1879
eval ac_old_set=\$ac_cv_env_${ac_var}_set
1880
eval ac_new_set=\$ac_env_${ac_var}_set
1881
eval ac_old_val=\$ac_cv_env_${ac_var}_value
1882
eval ac_new_val=\$ac_env_${ac_var}_value
1883
case $ac_old_set,$ac_new_set in
1885
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1886
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1887
ac_cache_corrupted=: ;;
1889
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1890
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1891
ac_cache_corrupted=: ;;
1894
if test "x$ac_old_val" != "x$ac_new_val"; then
1895
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1896
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1897
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1898
echo "$as_me: former value: $ac_old_val" >&2;}
1899
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1900
echo "$as_me: current value: $ac_new_val" >&2;}
1901
ac_cache_corrupted=:
1904
# Pass precious variables to config.status.
1905
if test "$ac_new_set" = set; then
1907
*\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1908
*) ac_arg=$ac_var=$ac_new_val ;;
1910
case " $ac_configure_args " in
1911
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1912
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1916
if $ac_cache_corrupted; then
1917
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1918
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1919
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1920
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1921
{ (exit 1); exit 1; }; }
1949
ac_cpp='$CPP $CPPFLAGS'
1950
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1951
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1952
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1958
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1959
if test -f "$ac_dir/install-sh"; then
1961
ac_install_sh="$ac_aux_dir/install-sh -c"
1963
elif test -f "$ac_dir/install.sh"; then
1965
ac_install_sh="$ac_aux_dir/install.sh -c"
1967
elif test -f "$ac_dir/shtool"; then
1969
ac_install_sh="$ac_aux_dir/shtool install -c"
1973
if test -z "$ac_aux_dir"; then
1974
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1975
echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1976
{ (exit 1); exit 1; }; }
1979
# These three variables are undocumented and unsupported,
1980
# and are intended to be withdrawn in a future Autoconf release.
1981
# They can cause serious problems if a builder's source tree is in a directory
1982
# whose full name contains unusual characters.
1983
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1984
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1985
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1988
# Make sure we can run config.sub.
1989
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1990
{ { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1991
echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1992
{ (exit 1); exit 1; }; }
1994
{ echo "$as_me:$LINENO: checking build system type" >&5
1995
echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1996
if test "${ac_cv_build+set}" = set; then
1997
echo $ECHO_N "(cached) $ECHO_C" >&6
1999
ac_build_alias=$build_alias
2000
test "x$ac_build_alias" = x &&
2001
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2002
test "x$ac_build_alias" = x &&
2003
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2004
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2005
{ (exit 1); exit 1; }; }
2006
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2007
{ { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2008
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2009
{ (exit 1); exit 1; }; }
2012
{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2013
echo "${ECHO_T}$ac_cv_build" >&6; }
2014
case $ac_cv_build in
2016
*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2017
echo "$as_me: error: invalid value of canonical build" >&2;}
2018
{ (exit 1); exit 1; }; };;
2021
ac_save_IFS=$IFS; IFS='-'
2027
# Remember, the first character of IFS is used to create $*,
2028
# except with old shells:
2031
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2034
{ echo "$as_me:$LINENO: checking host system type" >&5
2035
echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2036
if test "${ac_cv_host+set}" = set; then
2037
echo $ECHO_N "(cached) $ECHO_C" >&6
2039
if test "x$host_alias" = x; then
2040
ac_cv_host=$ac_cv_build
2042
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2043
{ { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2044
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2045
{ (exit 1); exit 1; }; }
2049
{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2050
echo "${ECHO_T}$ac_cv_host" >&6; }
2053
*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2054
echo "$as_me: error: invalid value of canonical host" >&2;}
2055
{ (exit 1); exit 1; }; };;
2058
ac_save_IFS=$IFS; IFS='-'
2064
# Remember, the first character of IFS is used to create $*,
2065
# except with old shells:
2068
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2071
{ echo "$as_me:$LINENO: checking target system type" >&5
2072
echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2073
if test "${ac_cv_target+set}" = set; then
2074
echo $ECHO_N "(cached) $ECHO_C" >&6
2076
if test "x$target_alias" = x; then
2077
ac_cv_target=$ac_cv_host
2079
ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2080
{ { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2081
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2082
{ (exit 1); exit 1; }; }
2086
{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2087
echo "${ECHO_T}$ac_cv_target" >&6; }
2088
case $ac_cv_target in
2090
*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2091
echo "$as_me: error: invalid value of canonical target" >&2;}
2092
{ (exit 1); exit 1; }; };;
2094
target=$ac_cv_target
2095
ac_save_IFS=$IFS; IFS='-'
2101
# Remember, the first character of IFS is used to create $*,
2102
# except with old shells:
2105
case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2108
# The aliases save the names the user supplied, while $host etc.
2109
# will get canonicalized.
2110
test -n "$target_alias" &&
2111
test "$program_prefix$program_suffix$program_transform_name" = \
2113
program_prefix=${target_alias}-
2116
am__api_version='1.10'
2118
# Find a good install program. We prefer a C program (faster),
2119
# so one script is as good as another. But avoid the broken or
2120
# incompatible versions:
2121
# SysV /etc/install, /usr/sbin/install
2122
# SunOS /usr/etc/install
2123
# IRIX /sbin/install
2125
# AmigaOS /C/install, which installs bootblocks on floppy discs
2126
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2127
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2128
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2129
# OS/2's system install, which has a completely different semantic
2130
# ./install, which can be erroneously created by make from ./install.sh.
2131
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2132
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2133
if test -z "$INSTALL"; then
2134
if test "${ac_cv_path_install+set}" = set; then
2135
echo $ECHO_N "(cached) $ECHO_C" >&6
2137
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2141
test -z "$as_dir" && as_dir=.
2142
# Account for people who put trailing slashes in PATH elements.
2144
./ | .// | /cC/* | \
2145
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2146
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2149
# OSF1 and SCO ODT 3.0 have their own names for install.
2150
# Don't use installbsd from OSF since it installs stuff as root
2152
for ac_prog in ginstall scoinst install; do
2153
for ac_exec_ext in '' $ac_executable_extensions; do
2154
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2155
if test $ac_prog = install &&
2156
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2157
# AIX install. It has an incompatible calling convention.
2159
elif test $ac_prog = install &&
2160
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2161
# program-specific install script used by HP pwplus--don't use.
2164
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2177
if test "${ac_cv_path_install+set}" = set; then
2178
INSTALL=$ac_cv_path_install
2180
# As a last resort, use the slow shell script. Don't cache a
2181
# value for INSTALL within a source directory, because that will
2182
# break other packages using the cache if that directory is
2183
# removed, or if the value is a relative name.
2184
INSTALL=$ac_install_sh
2187
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2188
echo "${ECHO_T}$INSTALL" >&6; }
2190
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2191
# It thinks the first close brace ends the variable substitution.
2192
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2194
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2196
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2198
{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2199
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2202
echo timestamp > conftest.file
2203
# Do `set' in a subshell so we don't clobber the current shell's
2204
# arguments. Must try -L first in case configure is actually a
2205
# symlink; some systems play weird games with the mod time of symlinks
2206
# (eg FreeBSD returns the mod time of the symlink's containing
2209
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2210
if test "$*" = "X"; then
2212
set X `ls -t $srcdir/configure conftest.file`
2215
if test "$*" != "X $srcdir/configure conftest.file" \
2216
&& test "$*" != "X conftest.file $srcdir/configure"; then
2218
# If neither matched, then we have a broken ls. This can happen
2219
# if, for instance, CONFIG_SHELL is bash and it inherits a
2220
# broken ls alias from the environment. This has actually
2221
# happened. Such a system could not be considered "sane".
2222
{ { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2223
alias in your environment" >&5
2224
echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2225
alias in your environment" >&2;}
2226
{ (exit 1); exit 1; }; }
2229
test "$2" = conftest.file
2235
{ { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2236
Check your system clock" >&5
2237
echo "$as_me: error: newly created file is older than distributed files!
2238
Check your system clock" >&2;}
2239
{ (exit 1); exit 1; }; }
2241
{ echo "$as_me:$LINENO: result: yes" >&5
2242
echo "${ECHO_T}yes" >&6; }
2243
test "$program_prefix" != NONE &&
2244
program_transform_name="s&^&$program_prefix&;$program_transform_name"
2245
# Use a double $ so make ignores it.
2246
test "$program_suffix" != NONE &&
2247
program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2248
# Double any \ or $. echo might interpret backslashes.
2249
# By default was `s,x,x', remove it if useless.
2250
cat <<\_ACEOF >conftest.sed
2251
s/[\\$]/&&/g;s/;s,x,x,$//
2253
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2256
# expand $ac_aux_dir to an absolute path
2257
am_aux_dir=`cd $ac_aux_dir && pwd`
2259
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2260
# Use eval to expand $SHELL
2261
if eval "$MISSING --run true"; then
2262
am_missing_run="$MISSING --run "
2265
{ echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2266
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2269
{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2270
echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2271
if test -z "$MKDIR_P"; then
2272
if test "${ac_cv_path_mkdir+set}" = set; then
2273
echo $ECHO_N "(cached) $ECHO_C" >&6
2275
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2276
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2279
test -z "$as_dir" && as_dir=.
2280
for ac_prog in mkdir gmkdir; do
2281
for ac_exec_ext in '' $ac_executable_extensions; do
2282
{ test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2283
case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2284
'mkdir (GNU coreutils) '* | \
2285
'mkdir (coreutils) '* | \
2286
'mkdir (fileutils) '4.1*)
2287
ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2297
if test "${ac_cv_path_mkdir+set}" = set; then
2298
MKDIR_P="$ac_cv_path_mkdir -p"
2300
# As a last resort, use the slow shell script. Don't cache a
2301
# value for MKDIR_P within a source directory, because that will
2302
# break other packages using the cache if that directory is
2303
# removed, or if the value is a relative name.
2304
test -d ./--version && rmdir ./--version
2305
MKDIR_P="$ac_install_sh -d"
2308
{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2309
echo "${ECHO_T}$MKDIR_P" >&6; }
2313
[\\/$]* | ?:[\\/]*) ;;
2314
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2317
for ac_prog in gawk mawk nawk awk
2319
# Extract the first word of "$ac_prog", so it can be a program name with args.
2320
set dummy $ac_prog; ac_word=$2
2321
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2322
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2323
if test "${ac_cv_prog_AWK+set}" = set; then
2324
echo $ECHO_N "(cached) $ECHO_C" >&6
2326
if test -n "$AWK"; then
2327
ac_cv_prog_AWK="$AWK" # Let the user override the test.
2329
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2333
test -z "$as_dir" && as_dir=.
2334
for ac_exec_ext in '' $ac_executable_extensions; do
2335
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2336
ac_cv_prog_AWK="$ac_prog"
2337
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2347
if test -n "$AWK"; then
2348
{ echo "$as_me:$LINENO: result: $AWK" >&5
2349
echo "${ECHO_T}$AWK" >&6; }
2351
{ echo "$as_me:$LINENO: result: no" >&5
2352
echo "${ECHO_T}no" >&6; }
2356
test -n "$AWK" && break
2359
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2360
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2361
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2362
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2363
echo $ECHO_N "(cached) $ECHO_C" >&6
2365
cat >conftest.make <<\_ACEOF
2368
@echo '@@@%%%=$(MAKE)=@@@%%%'
2370
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2371
case `${MAKE-make} -f conftest.make 2>/dev/null` in
2373
eval ac_cv_prog_make_${ac_make}_set=yes;;
2375
eval ac_cv_prog_make_${ac_make}_set=no;;
2379
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2380
{ echo "$as_me:$LINENO: result: yes" >&5
2381
echo "${ECHO_T}yes" >&6; }
2384
{ echo "$as_me:$LINENO: result: no" >&5
2385
echo "${ECHO_T}no" >&6; }
2386
SET_MAKE="MAKE=${MAKE-make}"
2389
rm -rf .tst 2>/dev/null
2390
mkdir .tst 2>/dev/null
2391
if test -d .tst; then
2396
rmdir .tst 2>/dev/null
2398
if test "`cd $srcdir && pwd`" != "`pwd`"; then
2399
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2400
# is not polluted with repeated "-I."
2401
am__isrc=' -I$(srcdir)'
2402
# test to see if srcdir already configured
2403
if test -f $srcdir/config.status; then
2404
{ { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2405
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2406
{ (exit 1); exit 1; }; }
2410
# test whether we have cygpath
2411
if test -z "$CYGPATH_W"; then
2412
if (cygpath --version) >/dev/null 2>/dev/null; then
2413
CYGPATH_W='cygpath -w'
2420
# Define the identity of the package.
2425
cat >>confdefs.h <<_ACEOF
2426
#define PACKAGE "$PACKAGE"
2430
cat >>confdefs.h <<_ACEOF
2431
#define VERSION "$VERSION"
2434
# Some tools Automake needs.
2436
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2439
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2442
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2445
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2448
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2450
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2452
# Installed binaries are usually stripped using `strip' when the user
2453
# run `make install-strip'. However `strip' might not be the right
2454
# tool to use in cross-compilation environments, therefore Automake
2455
# will honor the `STRIP' environment variable to overrule this program.
2456
if test "$cross_compiling" != no; then
2457
if test -n "$ac_tool_prefix"; then
2458
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2459
set dummy ${ac_tool_prefix}strip; ac_word=$2
2460
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2461
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2462
if test "${ac_cv_prog_STRIP+set}" = set; then
2463
echo $ECHO_N "(cached) $ECHO_C" >&6
2465
if test -n "$STRIP"; then
2466
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2468
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2472
test -z "$as_dir" && as_dir=.
2473
for ac_exec_ext in '' $ac_executable_extensions; do
2474
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2475
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2476
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2485
STRIP=$ac_cv_prog_STRIP
2486
if test -n "$STRIP"; then
2487
{ echo "$as_me:$LINENO: result: $STRIP" >&5
2488
echo "${ECHO_T}$STRIP" >&6; }
2490
{ echo "$as_me:$LINENO: result: no" >&5
2491
echo "${ECHO_T}no" >&6; }
2496
if test -z "$ac_cv_prog_STRIP"; then
2498
# Extract the first word of "strip", so it can be a program name with args.
2499
set dummy strip; ac_word=$2
2500
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2501
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2502
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2503
echo $ECHO_N "(cached) $ECHO_C" >&6
2505
if test -n "$ac_ct_STRIP"; then
2506
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2508
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2512
test -z "$as_dir" && as_dir=.
2513
for ac_exec_ext in '' $ac_executable_extensions; do
2514
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2515
ac_cv_prog_ac_ct_STRIP="strip"
2516
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2525
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2526
if test -n "$ac_ct_STRIP"; then
2527
{ echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2528
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2530
{ echo "$as_me:$LINENO: result: no" >&5
2531
echo "${ECHO_T}no" >&6; }
2534
if test "x$ac_ct_STRIP" = x; then
2537
case $cross_compiling:$ac_tool_warned in
2539
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2540
whose name does not start with the host triplet. If you think this
2541
configuration is useful to you, please write to autoconf@gnu.org." >&5
2542
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2543
whose name does not start with the host triplet. If you think this
2544
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2545
ac_tool_warned=yes ;;
2550
STRIP="$ac_cv_prog_STRIP"
2554
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2556
# We need awk for the "check" target. The system "awk" is bad on
2558
# Always define AMTAR for backward compatibility.
2560
AMTAR=${AMTAR-"${am_missing_run}tar"}
2562
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2568
DEPDIR="${am__leading_dot}deps"
2570
ac_config_commands="$ac_config_commands depfiles"
2573
am_make=${MAKE-make}
2574
cat > confinc << 'END'
2579
# If we don't find an include directive, just comment out the code.
2580
{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2581
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2585
# First try GNU make style include.
2586
echo "include confinc" > confmf
2587
# We grep out `Entering directory' and `Leaving directory'
2588
# messages which can occur if `w' ends up in MAKEFLAGS.
2589
# In particular we don't look at `^make:' because GNU make might
2590
# be invoked under some other name (usually "gmake"), in which
2591
# case it prints its new name instead of `make'.
2592
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2597
# Now try BSD make style include.
2598
if test "$am__include" = "#"; then
2599
echo '.include "confinc"' > confmf
2600
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2601
am__include=.include
2608
{ echo "$as_me:$LINENO: result: $_am_result" >&5
2609
echo "${ECHO_T}$_am_result" >&6; }
2610
rm -f confinc confmf
2612
# Check whether --enable-dependency-tracking was given.
2613
if test "${enable_dependency_tracking+set}" = set; then
2614
enableval=$enable_dependency_tracking;
2617
if test "x$enable_dependency_tracking" != xno; then
2618
am_depcomp="$ac_aux_dir/depcomp"
2621
if test "x$enable_dependency_tracking" != xno; then
2631
ac_cpp='$CPP $CPPFLAGS'
2632
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2633
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2634
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2635
if test -n "$ac_tool_prefix"; then
2636
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2637
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2638
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2639
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2640
if test "${ac_cv_prog_CC+set}" = set; then
2641
echo $ECHO_N "(cached) $ECHO_C" >&6
2643
if test -n "$CC"; then
2644
ac_cv_prog_CC="$CC" # Let the user override the test.
2646
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2650
test -z "$as_dir" && as_dir=.
2651
for ac_exec_ext in '' $ac_executable_extensions; do
2652
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2653
ac_cv_prog_CC="${ac_tool_prefix}gcc"
2654
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2664
if test -n "$CC"; then
2665
{ echo "$as_me:$LINENO: result: $CC" >&5
2666
echo "${ECHO_T}$CC" >&6; }
2668
{ echo "$as_me:$LINENO: result: no" >&5
2669
echo "${ECHO_T}no" >&6; }
2674
if test -z "$ac_cv_prog_CC"; then
2676
# Extract the first word of "gcc", so it can be a program name with args.
2677
set dummy gcc; ac_word=$2
2678
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2679
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2680
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2681
echo $ECHO_N "(cached) $ECHO_C" >&6
2683
if test -n "$ac_ct_CC"; then
2684
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2686
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2690
test -z "$as_dir" && as_dir=.
2691
for ac_exec_ext in '' $ac_executable_extensions; do
2692
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2693
ac_cv_prog_ac_ct_CC="gcc"
2694
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2703
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2704
if test -n "$ac_ct_CC"; then
2705
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2706
echo "${ECHO_T}$ac_ct_CC" >&6; }
2708
{ echo "$as_me:$LINENO: result: no" >&5
2709
echo "${ECHO_T}no" >&6; }
2712
if test "x$ac_ct_CC" = x; then
2715
case $cross_compiling:$ac_tool_warned in
2717
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2718
whose name does not start with the host triplet. If you think this
2719
configuration is useful to you, please write to autoconf@gnu.org." >&5
2720
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2721
whose name does not start with the host triplet. If you think this
2722
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2723
ac_tool_warned=yes ;;
2731
if test -z "$CC"; then
2732
if test -n "$ac_tool_prefix"; then
2733
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2734
set dummy ${ac_tool_prefix}cc; ac_word=$2
2735
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2736
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2737
if test "${ac_cv_prog_CC+set}" = set; then
2738
echo $ECHO_N "(cached) $ECHO_C" >&6
2740
if test -n "$CC"; then
2741
ac_cv_prog_CC="$CC" # Let the user override the test.
2743
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2747
test -z "$as_dir" && as_dir=.
2748
for ac_exec_ext in '' $ac_executable_extensions; do
2749
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2750
ac_cv_prog_CC="${ac_tool_prefix}cc"
2751
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2761
if test -n "$CC"; then
2762
{ echo "$as_me:$LINENO: result: $CC" >&5
2763
echo "${ECHO_T}$CC" >&6; }
2765
{ echo "$as_me:$LINENO: result: no" >&5
2766
echo "${ECHO_T}no" >&6; }
2772
if test -z "$CC"; then
2773
# Extract the first word of "cc", so it can be a program name with args.
2774
set dummy cc; ac_word=$2
2775
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2776
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2777
if test "${ac_cv_prog_CC+set}" = set; then
2778
echo $ECHO_N "(cached) $ECHO_C" >&6
2780
if test -n "$CC"; then
2781
ac_cv_prog_CC="$CC" # Let the user override the test.
2784
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2788
test -z "$as_dir" && as_dir=.
2789
for ac_exec_ext in '' $ac_executable_extensions; do
2790
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2791
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2792
ac_prog_rejected=yes
2796
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2803
if test $ac_prog_rejected = yes; then
2804
# We found a bogon in the path, so make sure we never use it.
2805
set dummy $ac_cv_prog_CC
2807
if test $# != 0; then
2808
# We chose a different compiler from the bogus one.
2809
# However, it has the same basename, so the bogon will be chosen
2810
# first if we set CC to just the basename; use the full file name.
2812
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2818
if test -n "$CC"; then
2819
{ echo "$as_me:$LINENO: result: $CC" >&5
2820
echo "${ECHO_T}$CC" >&6; }
2822
{ echo "$as_me:$LINENO: result: no" >&5
2823
echo "${ECHO_T}no" >&6; }
2828
if test -z "$CC"; then
2829
if test -n "$ac_tool_prefix"; then
2830
for ac_prog in cl.exe
2832
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2833
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2834
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2835
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2836
if test "${ac_cv_prog_CC+set}" = set; then
2837
echo $ECHO_N "(cached) $ECHO_C" >&6
2839
if test -n "$CC"; then
2840
ac_cv_prog_CC="$CC" # Let the user override the test.
2842
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2846
test -z "$as_dir" && as_dir=.
2847
for ac_exec_ext in '' $ac_executable_extensions; do
2848
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2849
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2850
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2860
if test -n "$CC"; then
2861
{ echo "$as_me:$LINENO: result: $CC" >&5
2862
echo "${ECHO_T}$CC" >&6; }
2864
{ echo "$as_me:$LINENO: result: no" >&5
2865
echo "${ECHO_T}no" >&6; }
2869
test -n "$CC" && break
2872
if test -z "$CC"; then
2874
for ac_prog in cl.exe
2876
# Extract the first word of "$ac_prog", so it can be a program name with args.
2877
set dummy $ac_prog; ac_word=$2
2878
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2879
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2880
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2881
echo $ECHO_N "(cached) $ECHO_C" >&6
2883
if test -n "$ac_ct_CC"; then
2884
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2886
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2890
test -z "$as_dir" && as_dir=.
2891
for ac_exec_ext in '' $ac_executable_extensions; do
2892
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2893
ac_cv_prog_ac_ct_CC="$ac_prog"
2894
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2903
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2904
if test -n "$ac_ct_CC"; then
2905
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2906
echo "${ECHO_T}$ac_ct_CC" >&6; }
2908
{ echo "$as_me:$LINENO: result: no" >&5
2909
echo "${ECHO_T}no" >&6; }
2913
test -n "$ac_ct_CC" && break
2916
if test "x$ac_ct_CC" = x; then
2919
case $cross_compiling:$ac_tool_warned in
2921
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2922
whose name does not start with the host triplet. If you think this
2923
configuration is useful to you, please write to autoconf@gnu.org." >&5
2924
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2925
whose name does not start with the host triplet. If you think this
2926
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2927
ac_tool_warned=yes ;;
2936
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2937
See \`config.log' for more details." >&5
2938
echo "$as_me: error: no acceptable C compiler found in \$PATH
2939
See \`config.log' for more details." >&2;}
2940
{ (exit 1); exit 1; }; }
2942
# Provide some information about the compiler.
2943
echo "$as_me:$LINENO: checking for C compiler version" >&5
2944
ac_compiler=`set X $ac_compile; echo $2`
2945
{ (ac_try="$ac_compiler --version >&5"
2947
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2948
*) ac_try_echo=$ac_try;;
2950
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2951
(eval "$ac_compiler --version >&5") 2>&5
2953
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954
(exit $ac_status); }
2955
{ (ac_try="$ac_compiler -v >&5"
2957
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2958
*) ac_try_echo=$ac_try;;
2960
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2961
(eval "$ac_compiler -v >&5") 2>&5
2963
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964
(exit $ac_status); }
2965
{ (ac_try="$ac_compiler -V >&5"
2967
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2968
*) ac_try_echo=$ac_try;;
2970
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2971
(eval "$ac_compiler -V >&5") 2>&5
2973
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2974
(exit $ac_status); }
2976
cat >conftest.$ac_ext <<_ACEOF
2979
cat confdefs.h >>conftest.$ac_ext
2980
cat >>conftest.$ac_ext <<_ACEOF
2981
/* end confdefs.h. */
2991
ac_clean_files_save=$ac_clean_files
2992
ac_clean_files="$ac_clean_files a.out a.exe b.out"
2993
# Try to create an executable without -o first, disregard a.out.
2994
# It will help us diagnose broken compilers, and finding out an intuition
2996
{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2997
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2998
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3000
# List of possible output files, starting from the most likely.
3001
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3002
# only as a last resort. b.out is created by i960 compilers.
3003
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3005
# The IRIX 6 linker writes into existing files which may not be
3006
# executable, retaining their permissions. Remove them first so a
3007
# subsequent execution test works.
3009
for ac_file in $ac_files
3012
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3013
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
3018
if { (ac_try="$ac_link_default"
3020
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3021
*) ac_try_echo=$ac_try;;
3023
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3024
(eval "$ac_link_default") 2>&5
3026
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027
(exit $ac_status); }; then
3028
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3029
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3030
# in a Makefile. We should not override ac_cv_exeext if it was cached,
3031
# so that the user can short-circuit this test for compilers unknown to
3033
for ac_file in $ac_files ''
3035
test -f "$ac_file" || continue
3037
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3040
# We found the default executable, but exeext='' is most
3044
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3046
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3048
# We set ac_cv_exeext here because the later test for it is not
3049
# safe: cross compilers may not add the suffix if given an `-o'
3050
# argument, so we may need to know it at that point already.
3051
# Even if this section looks crufty: it has the advantage of
3058
test "$ac_cv_exeext" = no && ac_cv_exeext=
3064
{ echo "$as_me:$LINENO: result: $ac_file" >&5
3065
echo "${ECHO_T}$ac_file" >&6; }
3066
if test -z "$ac_file"; then
3067
echo "$as_me: failed program was:" >&5
3068
sed 's/^/| /' conftest.$ac_ext >&5
3070
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3071
See \`config.log' for more details." >&5
3072
echo "$as_me: error: C compiler cannot create executables
3073
See \`config.log' for more details." >&2;}
3074
{ (exit 77); exit 77; }; }
3077
ac_exeext=$ac_cv_exeext
3079
# Check that the compiler produces executables we can run. If not, either
3080
# the compiler is broken, or we cross compile.
3081
{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3082
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3083
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3084
# If not cross compiling, check that we can run a simple program.
3085
if test "$cross_compiling" != yes; then
3086
if { ac_try='./$ac_file'
3087
{ (case "(($ac_try" in
3088
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3089
*) ac_try_echo=$ac_try;;
3091
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3092
(eval "$ac_try") 2>&5
3094
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3095
(exit $ac_status); }; }; then
3098
if test "$cross_compiling" = maybe; then
3101
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3102
If you meant to cross compile, use \`--host'.
3103
See \`config.log' for more details." >&5
3104
echo "$as_me: error: cannot run C compiled programs.
3105
If you meant to cross compile, use \`--host'.
3106
See \`config.log' for more details." >&2;}
3107
{ (exit 1); exit 1; }; }
3111
{ echo "$as_me:$LINENO: result: yes" >&5
3112
echo "${ECHO_T}yes" >&6; }
3114
rm -f a.out a.exe conftest$ac_cv_exeext b.out
3115
ac_clean_files=$ac_clean_files_save
3116
# Check that the compiler produces executables we can run. If not, either
3117
# the compiler is broken, or we cross compile.
3118
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3119
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3120
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
3121
echo "${ECHO_T}$cross_compiling" >&6; }
3123
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
3124
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3125
if { (ac_try="$ac_link"
3127
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3128
*) ac_try_echo=$ac_try;;
3130
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3131
(eval "$ac_link") 2>&5
3133
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134
(exit $ac_status); }; then
3135
# If both `conftest.exe' and `conftest' are `present' (well, observable)
3136
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3137
# work properly (i.e., refer to `conftest.exe'), while it won't with
3139
for ac_file in conftest.exe conftest conftest.*; do
3140
test -f "$ac_file" || continue
3142
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3143
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3149
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3150
See \`config.log' for more details." >&5
3151
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3152
See \`config.log' for more details." >&2;}
3153
{ (exit 1); exit 1; }; }
3156
rm -f conftest$ac_cv_exeext
3157
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3158
echo "${ECHO_T}$ac_cv_exeext" >&6; }
3160
rm -f conftest.$ac_ext
3161
EXEEXT=$ac_cv_exeext
3163
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3164
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3165
if test "${ac_cv_objext+set}" = set; then
3166
echo $ECHO_N "(cached) $ECHO_C" >&6
3168
cat >conftest.$ac_ext <<_ACEOF
3171
cat confdefs.h >>conftest.$ac_ext
3172
cat >>conftest.$ac_ext <<_ACEOF
3173
/* end confdefs.h. */
3183
rm -f conftest.o conftest.obj
3184
if { (ac_try="$ac_compile"
3186
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3187
*) ac_try_echo=$ac_try;;
3189
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3190
(eval "$ac_compile") 2>&5
3192
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193
(exit $ac_status); }; then
3194
for ac_file in conftest.o conftest.obj conftest.*; do
3195
test -f "$ac_file" || continue;
3197
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3198
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3203
echo "$as_me: failed program was:" >&5
3204
sed 's/^/| /' conftest.$ac_ext >&5
3206
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3207
See \`config.log' for more details." >&5
3208
echo "$as_me: error: cannot compute suffix of object files: cannot compile
3209
See \`config.log' for more details." >&2;}
3210
{ (exit 1); exit 1; }; }
3213
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3215
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3216
echo "${ECHO_T}$ac_cv_objext" >&6; }
3217
OBJEXT=$ac_cv_objext
3219
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3220
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3221
if test "${ac_cv_c_compiler_gnu+set}" = set; then
3222
echo $ECHO_N "(cached) $ECHO_C" >&6
3224
cat >conftest.$ac_ext <<_ACEOF
3227
cat confdefs.h >>conftest.$ac_ext
3228
cat >>conftest.$ac_ext <<_ACEOF
3229
/* end confdefs.h. */
3242
rm -f conftest.$ac_objext
3243
if { (ac_try="$ac_compile"
3245
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3246
*) ac_try_echo=$ac_try;;
3248
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3249
(eval "$ac_compile") 2>conftest.er1
3251
grep -v '^ *+' conftest.er1 >conftest.err
3253
cat conftest.err >&5
3254
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3255
(exit $ac_status); } && {
3256
test -z "$ac_c_werror_flag" ||
3257
test ! -s conftest.err
3258
} && test -s conftest.$ac_objext; then
3261
echo "$as_me: failed program was:" >&5
3262
sed 's/^/| /' conftest.$ac_ext >&5
3267
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3268
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3271
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3272
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3273
GCC=`test $ac_compiler_gnu = yes && echo yes`
3274
ac_test_CFLAGS=${CFLAGS+set}
3275
ac_save_CFLAGS=$CFLAGS
3276
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3277
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3278
if test "${ac_cv_prog_cc_g+set}" = set; then
3279
echo $ECHO_N "(cached) $ECHO_C" >&6
3281
ac_save_c_werror_flag=$ac_c_werror_flag
3282
ac_c_werror_flag=yes
3285
cat >conftest.$ac_ext <<_ACEOF
3288
cat confdefs.h >>conftest.$ac_ext
3289
cat >>conftest.$ac_ext <<_ACEOF
3290
/* end confdefs.h. */
3300
rm -f conftest.$ac_objext
3301
if { (ac_try="$ac_compile"
3303
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3304
*) ac_try_echo=$ac_try;;
3306
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3307
(eval "$ac_compile") 2>conftest.er1
3309
grep -v '^ *+' conftest.er1 >conftest.err
3311
cat conftest.err >&5
3312
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3313
(exit $ac_status); } && {
3314
test -z "$ac_c_werror_flag" ||
3315
test ! -s conftest.err
3316
} && test -s conftest.$ac_objext; then
3319
echo "$as_me: failed program was:" >&5
3320
sed 's/^/| /' conftest.$ac_ext >&5
3323
cat >conftest.$ac_ext <<_ACEOF
3326
cat confdefs.h >>conftest.$ac_ext
3327
cat >>conftest.$ac_ext <<_ACEOF
3328
/* end confdefs.h. */
3338
rm -f conftest.$ac_objext
3339
if { (ac_try="$ac_compile"
3341
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3342
*) ac_try_echo=$ac_try;;
3344
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3345
(eval "$ac_compile") 2>conftest.er1
3347
grep -v '^ *+' conftest.er1 >conftest.err
3349
cat conftest.err >&5
3350
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351
(exit $ac_status); } && {
3352
test -z "$ac_c_werror_flag" ||
3353
test ! -s conftest.err
3354
} && test -s conftest.$ac_objext; then
3357
echo "$as_me: failed program was:" >&5
3358
sed 's/^/| /' conftest.$ac_ext >&5
3360
ac_c_werror_flag=$ac_save_c_werror_flag
3362
cat >conftest.$ac_ext <<_ACEOF
3365
cat confdefs.h >>conftest.$ac_ext
3366
cat >>conftest.$ac_ext <<_ACEOF
3367
/* end confdefs.h. */
3377
rm -f conftest.$ac_objext
3378
if { (ac_try="$ac_compile"
3380
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3381
*) ac_try_echo=$ac_try;;
3383
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3384
(eval "$ac_compile") 2>conftest.er1
3386
grep -v '^ *+' conftest.er1 >conftest.err
3388
cat conftest.err >&5
3389
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390
(exit $ac_status); } && {
3391
test -z "$ac_c_werror_flag" ||
3392
test ! -s conftest.err
3393
} && test -s conftest.$ac_objext; then
3396
echo "$as_me: failed program was:" >&5
3397
sed 's/^/| /' conftest.$ac_ext >&5
3402
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3405
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3408
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3409
ac_c_werror_flag=$ac_save_c_werror_flag
3411
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3412
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3413
if test "$ac_test_CFLAGS" = set; then
3414
CFLAGS=$ac_save_CFLAGS
3415
elif test $ac_cv_prog_cc_g = yes; then
3416
if test "$GCC" = yes; then
3422
if test "$GCC" = yes; then
3428
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3429
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3430
if test "${ac_cv_prog_cc_c89+set}" = set; then
3431
echo $ECHO_N "(cached) $ECHO_C" >&6
3433
ac_cv_prog_cc_c89=no
3435
cat >conftest.$ac_ext <<_ACEOF
3438
cat confdefs.h >>conftest.$ac_ext
3439
cat >>conftest.$ac_ext <<_ACEOF
3440
/* end confdefs.h. */
3443
#include <sys/types.h>
3444
#include <sys/stat.h>
3445
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3446
struct buf { int x; };
3447
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3448
static char *e (p, i)
3454
static char *f (char * (*g) (char **, int), char **p, ...)
3459
s = g (p, va_arg (v,int));
3464
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3465
function prototypes and stuff, but not '\xHH' hex character constants.
3466
These don't provoke an error unfortunately, instead are silently treated
3467
as 'x'. The following induces an error, until -std is added to get
3468
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3469
array size at least. It's necessary to write '\x00'==0 to get something
3470
that's true only with -std. */
3471
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3473
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3474
inside strings and character constants. */
3476
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3478
int test (int i, double x);
3479
struct s1 {int (*f) (int a);};
3480
struct s2 {int (*f) (double a);};
3481
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3487
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3492
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3493
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3495
CC="$ac_save_CC $ac_arg"
3496
rm -f conftest.$ac_objext
3497
if { (ac_try="$ac_compile"
3499
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3500
*) ac_try_echo=$ac_try;;
3502
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3503
(eval "$ac_compile") 2>conftest.er1
3505
grep -v '^ *+' conftest.er1 >conftest.err
3507
cat conftest.err >&5
3508
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509
(exit $ac_status); } && {
3510
test -z "$ac_c_werror_flag" ||
3511
test ! -s conftest.err
3512
} && test -s conftest.$ac_objext; then
3513
ac_cv_prog_cc_c89=$ac_arg
3515
echo "$as_me: failed program was:" >&5
3516
sed 's/^/| /' conftest.$ac_ext >&5
3521
rm -f core conftest.err conftest.$ac_objext
3522
test "x$ac_cv_prog_cc_c89" != "xno" && break
3524
rm -f conftest.$ac_ext
3529
case "x$ac_cv_prog_cc_c89" in
3531
{ echo "$as_me:$LINENO: result: none needed" >&5
3532
echo "${ECHO_T}none needed" >&6; } ;;
3534
{ echo "$as_me:$LINENO: result: unsupported" >&5
3535
echo "${ECHO_T}unsupported" >&6; } ;;
3537
CC="$CC $ac_cv_prog_cc_c89"
3538
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3539
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3544
ac_cpp='$CPP $CPPFLAGS'
3545
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3546
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3547
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3549
depcc="$CC" am_compiler_list=
3551
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3552
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3553
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3554
echo $ECHO_N "(cached) $ECHO_C" >&6
3556
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3557
# We make a subdir and do the tests there. Otherwise we can end up
3558
# making bogus files that we don't know about and never remove. For
3559
# instance it was reported that on HP-UX the gcc test will end up
3560
# making a dummy file named `D' -- because `-MD' means `put the output
3563
# Copy depcomp to subdir because otherwise we won't find it if we're
3564
# using a relative directory.
3565
cp "$am_depcomp" conftest.dir
3567
# We will build objects and dependencies in a subdirectory because
3568
# it helps to detect inapplicable dependency modes. For instance
3569
# both Tru64's cc and ICC support -MD to output dependencies as a
3570
# side effect of compilation, but ICC will put the dependencies in
3571
# the current directory while Tru64 will put them in the object
3575
am_cv_CC_dependencies_compiler_type=none
3576
if test "$am_compiler_list" = ""; then
3577
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3579
for depmode in $am_compiler_list; do
3580
# Setup a source with many dependencies, because some compilers
3581
# like to wrap large dependency lists on column 80 (with \), and
3582
# we should not choose a depcomp mode which is confused by this.
3584
# We need to recreate these files for each test, as the compiler may
3585
# overwrite some of them when testing with obscure command lines.
3586
# This happens at least with the AIX C compiler.
3588
for i in 1 2 3 4 5 6; do
3589
echo '#include "conftst'$i'.h"' >> sub/conftest.c
3590
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3591
# Solaris 8's {/usr,}/bin/sh.
3592
touch sub/conftst$i.h
3594
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3598
# after this tag, mechanisms are not by side-effect, so they'll
3599
# only be used when explicitly requested
3600
if test "x$enable_dependency_tracking" = xyes; then
3608
# We check with `-c' and `-o' for the sake of the "dashmstdout"
3609
# mode. It turns out that the SunPro C++ compiler does not properly
3610
# handle `-M -o', and we need to detect this.
3611
if depmode=$depmode \
3612
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3613
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3614
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3615
>/dev/null 2>conftest.err &&
3616
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3617
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3618
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3619
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3620
# icc doesn't choke on unknown options, it will just issue warnings
3621
# or remarks (even with -Werror). So we grep stderr for any message
3622
# that says an option was ignored or not supported.
3623
# When given -MP, icc 7.0 and 7.1 complain thusly:
3624
# icc: Command line warning: ignoring option '-M'; no argument required
3625
# The diagnosis changed in icc 8.0:
3626
# icc: Command line remark: option '-MP' not supported
3627
if (grep 'ignoring option' conftest.err ||
3628
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3629
am_cv_CC_dependencies_compiler_type=$depmode
3638
am_cv_CC_dependencies_compiler_type=none
3642
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3643
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3644
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3647
test "x$enable_dependency_tracking" != xno \
3648
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3650
am__fastdepCC_FALSE='#'
3652
am__fastdepCC_TRUE='#'
3653
am__fastdepCC_FALSE=
3657
if test "x$CC" != xcc; then
3658
{ echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3659
echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3661
{ echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3662
echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3664
set dummy $CC; ac_cc=`echo $2 |
3665
sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3666
if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3667
echo $ECHO_N "(cached) $ECHO_C" >&6
3669
cat >conftest.$ac_ext <<_ACEOF
3672
cat confdefs.h >>conftest.$ac_ext
3673
cat >>conftest.$ac_ext <<_ACEOF
3674
/* end confdefs.h. */
3684
# Make sure it works both with $CC and with simple cc.
3685
# We do the test twice because some compilers refuse to overwrite an
3686
# existing .o file with -o, though they will create one.
3687
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3689
if { (case "(($ac_try" in
3690
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3691
*) ac_try_echo=$ac_try;;
3693
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3694
(eval "$ac_try") 2>&5
3696
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697
(exit $ac_status); } &&
3698
test -f conftest2.$ac_objext && { (case "(($ac_try" in
3699
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3700
*) ac_try_echo=$ac_try;;
3702
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3703
(eval "$ac_try") 2>&5
3705
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3706
(exit $ac_status); };
3708
eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3709
if test "x$CC" != xcc; then
3710
# Test first that cc exists at all.
3711
if { ac_try='cc -c conftest.$ac_ext >&5'
3712
{ (case "(($ac_try" in
3713
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3714
*) ac_try_echo=$ac_try;;
3716
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3717
(eval "$ac_try") 2>&5
3719
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3720
(exit $ac_status); }; }; then
3721
ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3723
if { (case "(($ac_try" in
3724
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3725
*) ac_try_echo=$ac_try;;
3727
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3728
(eval "$ac_try") 2>&5
3730
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3731
(exit $ac_status); } &&
3732
test -f conftest2.$ac_objext && { (case "(($ac_try" in
3733
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3734
*) ac_try_echo=$ac_try;;
3736
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3737
(eval "$ac_try") 2>&5
3739
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3740
(exit $ac_status); };
3745
# cc exists but doesn't like -o.
3746
eval ac_cv_prog_cc_${ac_cc}_c_o=no
3751
eval ac_cv_prog_cc_${ac_cc}_c_o=no
3753
rm -f core conftest*
3756
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3757
{ echo "$as_me:$LINENO: result: yes" >&5
3758
echo "${ECHO_T}yes" >&6; }
3760
{ echo "$as_me:$LINENO: result: no" >&5
3761
echo "${ECHO_T}no" >&6; }
3763
cat >>confdefs.h <<\_ACEOF
3764
#define NO_MINUS_C_MINUS_O 1
3769
# FIXME: we rely on the cache variable name because
3770
# there is no other way.
3772
ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3773
if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3774
# Losing compiler, so override with the script.
3775
# FIXME: It is wrong to rewrite CC.
3776
# But if we don't then we get into trouble of one sort or another.
3777
# A longer-term fix would be to have automake use am__CC in this case,
3778
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3779
CC="$am_aux_dir/compile $CC"
3783
# Check whether --enable-shared was given.
3784
if test "${enable_shared+set}" = set; then
3785
enableval=$enable_shared; p=${PACKAGE-default}
3787
yes) enable_shared=yes ;;
3788
no) enable_shared=no ;;
3791
# Look at the argument we got. We use all the common list separators.
3792
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3793
for pkg in $enableval; do
3795
if test "X$pkg" = "X$p"; then
3807
# Check whether --enable-static was given.
3808
if test "${enable_static+set}" = set; then
3809
enableval=$enable_static; p=${PACKAGE-default}
3811
yes) enable_static=yes ;;
3812
no) enable_static=no ;;
3815
# Look at the argument we got. We use all the common list separators.
3816
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3817
for pkg in $enableval; do
3819
if test "X$pkg" = "X$p"; then
3831
# Check whether --enable-fast-install was given.
3832
if test "${enable_fast_install+set}" = set; then
3833
enableval=$enable_fast_install; p=${PACKAGE-default}
3835
yes) enable_fast_install=yes ;;
3836
no) enable_fast_install=no ;;
3838
enable_fast_install=no
3839
# Look at the argument we got. We use all the common list separators.
3840
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3841
for pkg in $enableval; do
3843
if test "X$pkg" = "X$p"; then
3844
enable_fast_install=yes
3851
enable_fast_install=yes
3855
{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3856
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3857
if test "${lt_cv_path_SED+set}" = set; then
3858
echo $ECHO_N "(cached) $ECHO_C" >&6
3860
# Loop through the user's path and test for sed and gsed.
3861
# Then use that list of sed's as ones to test for truncation.
3862
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3866
test -z "$as_dir" && as_dir=.
3867
for lt_ac_prog in sed gsed; do
3868
for ac_exec_ext in '' $ac_executable_extensions; do
3869
if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3870
lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3878
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3879
# along with /bin/sed that truncates output.
3880
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3881
test ! -f $lt_ac_sed && continue
3882
cat /dev/null > conftest.in
3884
echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3885
# Check for GNU sed and select it if it is found.
3886
if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3887
lt_cv_path_SED=$lt_ac_sed
3891
cat conftest.in conftest.in >conftest.tmp
3892
mv conftest.tmp conftest.in
3893
cp conftest.in conftest.nl
3895
$lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3896
cmp -s conftest.out conftest.nl || break
3897
# 10000 chars as input seems more than enough
3898
test $lt_ac_count -gt 10 && break
3899
lt_ac_count=`expr $lt_ac_count + 1`
3900
if test $lt_ac_count -gt $lt_ac_max; then
3901
lt_ac_max=$lt_ac_count
3902
lt_cv_path_SED=$lt_ac_sed
3911
{ echo "$as_me:$LINENO: result: $SED" >&5
3912
echo "${ECHO_T}$SED" >&6; }
3914
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3915
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3916
if test "${ac_cv_path_GREP+set}" = set; then
3917
echo $ECHO_N "(cached) $ECHO_C" >&6
3919
# Extract the first word of "grep ggrep" to use in msg output
3920
if test -z "$GREP"; then
3921
set dummy grep ggrep; ac_prog_name=$2
3922
if test "${ac_cv_path_GREP+set}" = set; then
3923
echo $ECHO_N "(cached) $ECHO_C" >&6
3925
ac_path_GREP_found=false
3926
# Loop through the user's path and test for each of PROGNAME-LIST
3927
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3928
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3931
test -z "$as_dir" && as_dir=.
3932
for ac_prog in grep ggrep; do
3933
for ac_exec_ext in '' $ac_executable_extensions; do
3934
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3935
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3936
# Check for GNU ac_path_GREP and select it if it is found.
3937
# Check for GNU $ac_path_GREP
3938
case `"$ac_path_GREP" --version 2>&1` in
3940
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3943
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3946
cat "conftest.in" "conftest.in" >"conftest.tmp"
3947
mv "conftest.tmp" "conftest.in"
3948
cp "conftest.in" "conftest.nl"
3949
echo 'GREP' >> "conftest.nl"
3950
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3951
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3952
ac_count=`expr $ac_count + 1`
3953
if test $ac_count -gt ${ac_path_GREP_max-0}; then
3954
# Best one so far, save it but keep looking for a better one
3955
ac_cv_path_GREP="$ac_path_GREP"
3956
ac_path_GREP_max=$ac_count
3958
# 10*(2^10) chars as input seems more than enough
3959
test $ac_count -gt 10 && break
3961
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3965
$ac_path_GREP_found && break 3
3975
GREP="$ac_cv_path_GREP"
3976
if test -z "$GREP"; then
3977
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3978
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3979
{ (exit 1); exit 1; }; }
3983
ac_cv_path_GREP=$GREP
3988
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3989
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3990
GREP="$ac_cv_path_GREP"
3993
{ echo "$as_me:$LINENO: checking for egrep" >&5
3994
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3995
if test "${ac_cv_path_EGREP+set}" = set; then
3996
echo $ECHO_N "(cached) $ECHO_C" >&6
3998
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3999
then ac_cv_path_EGREP="$GREP -E"
4001
# Extract the first word of "egrep" to use in msg output
4002
if test -z "$EGREP"; then
4003
set dummy egrep; ac_prog_name=$2
4004
if test "${ac_cv_path_EGREP+set}" = set; then
4005
echo $ECHO_N "(cached) $ECHO_C" >&6
4007
ac_path_EGREP_found=false
4008
# Loop through the user's path and test for each of PROGNAME-LIST
4009
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4010
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4013
test -z "$as_dir" && as_dir=.
4014
for ac_prog in egrep; do
4015
for ac_exec_ext in '' $ac_executable_extensions; do
4016
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4017
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4018
# Check for GNU ac_path_EGREP and select it if it is found.
4019
# Check for GNU $ac_path_EGREP
4020
case `"$ac_path_EGREP" --version 2>&1` in
4022
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4025
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4028
cat "conftest.in" "conftest.in" >"conftest.tmp"
4029
mv "conftest.tmp" "conftest.in"
4030
cp "conftest.in" "conftest.nl"
4031
echo 'EGREP' >> "conftest.nl"
4032
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4033
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4034
ac_count=`expr $ac_count + 1`
4035
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4036
# Best one so far, save it but keep looking for a better one
4037
ac_cv_path_EGREP="$ac_path_EGREP"
4038
ac_path_EGREP_max=$ac_count
4040
# 10*(2^10) chars as input seems more than enough
4041
test $ac_count -gt 10 && break
4043
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4047
$ac_path_EGREP_found && break 3
4057
EGREP="$ac_cv_path_EGREP"
4058
if test -z "$EGREP"; then
4059
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4060
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4061
{ (exit 1); exit 1; }; }
4065
ac_cv_path_EGREP=$EGREP
4071
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4072
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4073
EGREP="$ac_cv_path_EGREP"
4077
# Check whether --with-gnu-ld was given.
4078
if test "${with_gnu_ld+set}" = set; then
4079
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4085
if test "$GCC" = yes; then
4086
# Check if gcc -print-prog-name=ld gives a path.
4087
{ echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4088
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4091
# gcc leaves a trailing carriage return which upsets mingw
4092
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4094
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4097
# Accept absolute paths.
4099
re_direlt='/[^/][^/]*/\.\./'
4100
# Canonicalize the pathname of ld
4101
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4102
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4103
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4105
test -z "$LD" && LD="$ac_prog"
4108
# If it fails, then pretend we aren't using GCC.
4112
# If it is relative, then search for the first ld in PATH.
4116
elif test "$with_gnu_ld" = yes; then
4117
{ echo "$as_me:$LINENO: checking for GNU ld" >&5
4118
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4120
{ echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4121
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4123
if test "${lt_cv_path_LD+set}" = set; then
4124
echo $ECHO_N "(cached) $ECHO_C" >&6
4126
if test -z "$LD"; then
4127
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4128
for ac_dir in $PATH; do
4130
test -z "$ac_dir" && ac_dir=.
4131
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4132
lt_cv_path_LD="$ac_dir/$ac_prog"
4133
# Check to see if the program is GNU ld. I'd rather use --version,
4134
# but apparently some variants of GNU ld only accept -v.
4135
# Break only if it was the GNU/non-GNU ld that we prefer.
4136
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4137
*GNU* | *'with BFD'*)
4138
test "$with_gnu_ld" != no && break
4141
test "$with_gnu_ld" != yes && break
4148
lt_cv_path_LD="$LD" # Let the user override the test with a path.
4153
if test -n "$LD"; then
4154
{ echo "$as_me:$LINENO: result: $LD" >&5
4155
echo "${ECHO_T}$LD" >&6; }
4157
{ echo "$as_me:$LINENO: result: no" >&5
4158
echo "${ECHO_T}no" >&6; }
4160
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4161
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4162
{ (exit 1); exit 1; }; }
4163
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4164
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4165
if test "${lt_cv_prog_gnu_ld+set}" = set; then
4166
echo $ECHO_N "(cached) $ECHO_C" >&6
4168
# I'd rather use --version here, but apparently some GNU lds only accept -v.
4169
case `$LD -v 2>&1 </dev/null` in
4170
*GNU* | *'with BFD'*)
4171
lt_cv_prog_gnu_ld=yes
4174
lt_cv_prog_gnu_ld=no
4178
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4179
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4180
with_gnu_ld=$lt_cv_prog_gnu_ld
4183
{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4184
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4185
if test "${lt_cv_ld_reload_flag+set}" = set; then
4186
echo $ECHO_N "(cached) $ECHO_C" >&6
4188
lt_cv_ld_reload_flag='-r'
4190
{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4191
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4192
reload_flag=$lt_cv_ld_reload_flag
4193
case $reload_flag in
4195
*) reload_flag=" $reload_flag" ;;
4197
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4200
if test "$GCC" = yes; then
4201
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4203
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4208
{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4209
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4210
if test "${lt_cv_path_NM+set}" = set; then
4211
echo $ECHO_N "(cached) $ECHO_C" >&6
4213
if test -n "$NM"; then
4214
# Let the user override the test.
4217
lt_nm_to_check="${ac_tool_prefix}nm"
4218
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4219
lt_nm_to_check="$lt_nm_to_check nm"
4221
for lt_tmp_nm in $lt_nm_to_check; do
4222
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4223
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4225
test -z "$ac_dir" && ac_dir=.
4226
tmp_nm="$ac_dir/$lt_tmp_nm"
4227
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4228
# Check to see if the nm accepts a BSD-compat flag.
4229
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4230
# nm: unknown option "B" ignored
4231
# Tru64's nm complains that /dev/null is an invalid object file
4232
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4233
*/dev/null* | *'Invalid file or object type'*)
4234
lt_cv_path_NM="$tmp_nm -B"
4238
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4240
lt_cv_path_NM="$tmp_nm -p"
4244
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4245
continue # so that we can try to find one that supports BSD flags
4254
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4257
{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4258
echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4261
{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
4262
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4264
if test "$LN_S" = "ln -s"; then
4265
{ echo "$as_me:$LINENO: result: yes" >&5
4266
echo "${ECHO_T}yes" >&6; }
4268
{ echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4269
echo "${ECHO_T}no, using $LN_S" >&6; }
4272
{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4273
echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4274
if test "${lt_cv_deplibs_check_method+set}" = set; then
4275
echo $ECHO_N "(cached) $ECHO_C" >&6
4277
lt_cv_file_magic_cmd='$MAGIC_CMD'
4278
lt_cv_file_magic_test_file=
4279
lt_cv_deplibs_check_method='unknown'
4280
# Need to set the preceding variable on all platforms that support
4281
# interlibrary dependencies.
4282
# 'none' -- dependencies not supported.
4283
# `unknown' -- same as none, but documents that we really don't know.
4284
# 'pass_all' -- all dependencies passed with no checks.
4285
# 'test_compile' -- check by making test program.
4286
# 'file_magic [[regex]]' -- check by looking for files in library path
4287
# which responds to the $file_magic_cmd with a given extended regex.
4288
# If you have `file' or equivalent on your system and you're not sure
4289
# whether `pass_all' will *always* work, you probably want this one.
4293
lt_cv_deplibs_check_method=pass_all
4297
lt_cv_deplibs_check_method=pass_all
4301
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4302
lt_cv_file_magic_cmd='/usr/bin/file -L'
4303
lt_cv_file_magic_test_file=/shlib/libc.so
4307
# func_win32_libid is a shell function defined in ltmain.sh
4308
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4309
lt_cv_file_magic_cmd='func_win32_libid'
4313
# Base MSYS/MinGW do not provide the 'file' command needed by
4314
# func_win32_libid shell function, so use a weaker test based on 'objdump',
4315
# unless we find 'file', for example because we are cross-compiling.
4316
if ( file / ) >/dev/null 2>&1; then
4317
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4318
lt_cv_file_magic_cmd='func_win32_libid'
4320
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4321
lt_cv_file_magic_cmd='$OBJDUMP -f'
4325
darwin* | rhapsody*)
4326
lt_cv_deplibs_check_method=pass_all
4329
freebsd* | dragonfly*)
4330
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4333
# Not sure whether the presence of OpenBSD here was a mistake.
4334
# Let's accept both of them until this is cleared up.
4335
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4336
lt_cv_file_magic_cmd=/usr/bin/file
4337
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4341
lt_cv_deplibs_check_method=pass_all
4346
lt_cv_deplibs_check_method=pass_all
4349
hpux10.20* | hpux11*)
4350
lt_cv_file_magic_cmd=/usr/bin/file
4353
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4354
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4357
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]'
4358
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4361
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4362
lt_cv_file_magic_test_file=/usr/lib/libc.sl
4368
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4369
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4372
irix5* | irix6* | nonstopux*)
4374
*-32|*"-32 ") libmagic=32-bit;;
4375
*-n32|*"-n32 ") libmagic=N32;;
4376
*-64|*"-64 ") libmagic=64-bit;;
4377
*) libmagic=never-match;;
4379
lt_cv_deplibs_check_method=pass_all
4382
# This must be Linux ELF.
4383
linux* | k*bsd*-gnu)
4384
lt_cv_deplibs_check_method=pass_all
4387
netbsd* | netbsdelf*-gnu)
4388
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4389
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4391
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4396
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4397
lt_cv_file_magic_cmd=/usr/bin/file
4398
lt_cv_file_magic_test_file=/usr/lib/libnls.so
4402
lt_cv_deplibs_check_method=unknown
4406
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4407
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4409
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4413
osf3* | osf4* | osf5*)
4414
lt_cv_deplibs_check_method=pass_all
4418
lt_cv_deplibs_check_method=pass_all
4422
lt_cv_deplibs_check_method=pass_all
4426
case $host_vendor in
4428
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]'
4429
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4432
lt_cv_deplibs_check_method=pass_all
4435
lt_cv_file_magic_cmd='/bin/file'
4436
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4439
lt_cv_file_magic_cmd='/bin/file'
4440
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4441
lt_cv_file_magic_test_file=/lib/libc.so
4444
lt_cv_deplibs_check_method=pass_all
4447
lt_cv_deplibs_check_method=pass_all
4452
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4453
lt_cv_deplibs_check_method=pass_all
4458
{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4459
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4460
file_magic_cmd=$lt_cv_file_magic_cmd
4461
deplibs_check_method=$lt_cv_deplibs_check_method
4462
test -z "$deplibs_check_method" && deplibs_check_method=unknown
4467
# If no C compiler was specified, use CC.
4470
# If no C compiler flags were specified, use CFLAGS.
4471
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4473
# Allow CC to be a program name with arguments.
4477
# Check whether --enable-libtool-lock was given.
4478
if test "${enable_libtool_lock+set}" = set; then
4479
enableval=$enable_libtool_lock;
4482
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4484
# Some flags need to be propagated to the compiler or linker for good
4488
# Find out which ABI we are using.
4489
echo 'int i;' > conftest.$ac_ext
4490
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4491
(eval $ac_compile) 2>&5
4493
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494
(exit $ac_status); }; then
4495
case `/usr/bin/file conftest.$ac_objext` in
4507
# Find out which ABI we are using.
4508
echo '#line 4508 "configure"' > conftest.$ac_ext
4509
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4510
(eval $ac_compile) 2>&5
4512
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4513
(exit $ac_status); }; then
4514
if test "$lt_cv_prog_gnu_ld" = yes; then
4515
case `/usr/bin/file conftest.$ac_objext` in
4517
LD="${LD-ld} -melf32bsmip"
4520
LD="${LD-ld} -melf32bmipn32"
4523
LD="${LD-ld} -melf64bmip"
4527
case `/usr/bin/file conftest.$ac_objext` in
4543
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4544
s390*-*linux*|sparc*-*linux*)
4545
# Find out which ABI we are using.
4546
echo 'int i;' > conftest.$ac_ext
4547
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4548
(eval $ac_compile) 2>&5
4550
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551
(exit $ac_status); }; then
4552
case `/usr/bin/file conftest.o` in
4555
x86_64-*kfreebsd*-gnu)
4556
LD="${LD-ld} -m elf_i386_fbsd"
4559
LD="${LD-ld} -m elf_i386"
4561
ppc64-*linux*|powerpc64-*linux*)
4562
LD="${LD-ld} -m elf32ppclinux"
4565
LD="${LD-ld} -m elf_s390"
4568
LD="${LD-ld} -m elf32_sparc"
4574
x86_64-*kfreebsd*-gnu)
4575
LD="${LD-ld} -m elf_x86_64_fbsd"
4578
LD="${LD-ld} -m elf_x86_64"
4580
ppc*-*linux*|powerpc*-*linux*)
4581
LD="${LD-ld} -m elf64ppc"
4584
LD="${LD-ld} -m elf64_s390"
4587
LD="${LD-ld} -m elf64_sparc"
4597
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
4598
SAVE_CFLAGS="$CFLAGS"
4599
CFLAGS="$CFLAGS -belf"
4600
{ echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4601
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4602
if test "${lt_cv_cc_needs_belf+set}" = set; then
4603
echo $ECHO_N "(cached) $ECHO_C" >&6
4606
ac_cpp='$CPP $CPPFLAGS'
4607
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4608
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4609
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4611
cat >conftest.$ac_ext <<_ACEOF
4614
cat confdefs.h >>conftest.$ac_ext
4615
cat >>conftest.$ac_ext <<_ACEOF
4616
/* end confdefs.h. */
4626
rm -f conftest.$ac_objext conftest$ac_exeext
4627
if { (ac_try="$ac_link"
4629
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4630
*) ac_try_echo=$ac_try;;
4632
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4633
(eval "$ac_link") 2>conftest.er1
4635
grep -v '^ *+' conftest.er1 >conftest.err
4637
cat conftest.err >&5
4638
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4639
(exit $ac_status); } && {
4640
test -z "$ac_c_werror_flag" ||
4641
test ! -s conftest.err
4642
} && test -s conftest$ac_exeext &&
4643
$as_test_x conftest$ac_exeext; then
4644
lt_cv_cc_needs_belf=yes
4646
echo "$as_me: failed program was:" >&5
4647
sed 's/^/| /' conftest.$ac_ext >&5
4649
lt_cv_cc_needs_belf=no
4652
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4653
conftest$ac_exeext conftest.$ac_ext
4655
ac_cpp='$CPP $CPPFLAGS'
4656
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4657
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4658
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4661
{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4662
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4663
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4664
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4665
CFLAGS="$SAVE_CFLAGS"
4669
# Find out which ABI we are using.
4670
echo 'int i;' > conftest.$ac_ext
4671
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4672
(eval $ac_compile) 2>&5
4674
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675
(exit $ac_status); }; then
4676
case `/usr/bin/file conftest.o` in
4678
case $lt_cv_prog_gnu_ld in
4679
yes*) LD="${LD-ld} -m elf64_sparc" ;;
4681
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4695
need_locks="$enable_libtool_lock"
4699
ac_cpp='$CPP $CPPFLAGS'
4700
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4701
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4702
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4703
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4704
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4705
# On Suns, sometimes $CPP names a directory.
4706
if test -n "$CPP" && test -d "$CPP"; then
4709
if test -z "$CPP"; then
4710
if test "${ac_cv_prog_CPP+set}" = set; then
4711
echo $ECHO_N "(cached) $ECHO_C" >&6
4713
# Double quotes because CPP needs to be expanded
4714
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4717
for ac_c_preproc_warn_flag in '' yes
4719
# Use a header file that comes with gcc, so configuring glibc
4720
# with a fresh cross-compiler works.
4721
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4722
# <limits.h> exists even on freestanding compilers.
4723
# On the NeXT, cc -E runs the code through the compiler's parser,
4724
# not just through cpp. "Syntax error" is here to catch this case.
4725
cat >conftest.$ac_ext <<_ACEOF
4728
cat confdefs.h >>conftest.$ac_ext
4729
cat >>conftest.$ac_ext <<_ACEOF
4730
/* end confdefs.h. */
4732
# include <limits.h>
4734
# include <assert.h>
4738
if { (ac_try="$ac_cpp conftest.$ac_ext"
4740
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4741
*) ac_try_echo=$ac_try;;
4743
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4744
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4746
grep -v '^ *+' conftest.er1 >conftest.err
4748
cat conftest.err >&5
4749
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4750
(exit $ac_status); } >/dev/null && {
4751
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4752
test ! -s conftest.err
4756
echo "$as_me: failed program was:" >&5
4757
sed 's/^/| /' conftest.$ac_ext >&5
4759
# Broken: fails on valid input.
4763
rm -f conftest.err conftest.$ac_ext
4765
# OK, works on sane cases. Now check whether nonexistent headers
4766
# can be detected and how.
4767
cat >conftest.$ac_ext <<_ACEOF
4770
cat confdefs.h >>conftest.$ac_ext
4771
cat >>conftest.$ac_ext <<_ACEOF
4772
/* end confdefs.h. */
4773
#include <ac_nonexistent.h>
4775
if { (ac_try="$ac_cpp conftest.$ac_ext"
4777
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4778
*) ac_try_echo=$ac_try;;
4780
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4781
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4783
grep -v '^ *+' conftest.er1 >conftest.err
4785
cat conftest.err >&5
4786
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4787
(exit $ac_status); } >/dev/null && {
4788
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4789
test ! -s conftest.err
4791
# Broken: success on invalid input.
4794
echo "$as_me: failed program was:" >&5
4795
sed 's/^/| /' conftest.$ac_ext >&5
4797
# Passes both tests.
4802
rm -f conftest.err conftest.$ac_ext
4805
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4806
rm -f conftest.err conftest.$ac_ext
4807
if $ac_preproc_ok; then
4819
{ echo "$as_me:$LINENO: result: $CPP" >&5
4820
echo "${ECHO_T}$CPP" >&6; }
4822
for ac_c_preproc_warn_flag in '' yes
4824
# Use a header file that comes with gcc, so configuring glibc
4825
# with a fresh cross-compiler works.
4826
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4827
# <limits.h> exists even on freestanding compilers.
4828
# On the NeXT, cc -E runs the code through the compiler's parser,
4829
# not just through cpp. "Syntax error" is here to catch this case.
4830
cat >conftest.$ac_ext <<_ACEOF
4833
cat confdefs.h >>conftest.$ac_ext
4834
cat >>conftest.$ac_ext <<_ACEOF
4835
/* end confdefs.h. */
4837
# include <limits.h>
4839
# include <assert.h>
4843
if { (ac_try="$ac_cpp conftest.$ac_ext"
4845
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4846
*) ac_try_echo=$ac_try;;
4848
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4849
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4851
grep -v '^ *+' conftest.er1 >conftest.err
4853
cat conftest.err >&5
4854
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4855
(exit $ac_status); } >/dev/null && {
4856
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4857
test ! -s conftest.err
4861
echo "$as_me: failed program was:" >&5
4862
sed 's/^/| /' conftest.$ac_ext >&5
4864
# Broken: fails on valid input.
4868
rm -f conftest.err conftest.$ac_ext
4870
# OK, works on sane cases. Now check whether nonexistent headers
4871
# can be detected and how.
4872
cat >conftest.$ac_ext <<_ACEOF
4875
cat confdefs.h >>conftest.$ac_ext
4876
cat >>conftest.$ac_ext <<_ACEOF
4877
/* end confdefs.h. */
4878
#include <ac_nonexistent.h>
4880
if { (ac_try="$ac_cpp conftest.$ac_ext"
4882
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4883
*) ac_try_echo=$ac_try;;
4885
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4886
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4888
grep -v '^ *+' conftest.er1 >conftest.err
4890
cat conftest.err >&5
4891
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892
(exit $ac_status); } >/dev/null && {
4893
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4894
test ! -s conftest.err
4896
# Broken: success on invalid input.
4899
echo "$as_me: failed program was:" >&5
4900
sed 's/^/| /' conftest.$ac_ext >&5
4902
# Passes both tests.
4907
rm -f conftest.err conftest.$ac_ext
4910
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4911
rm -f conftest.err conftest.$ac_ext
4912
if $ac_preproc_ok; then
4915
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4916
See \`config.log' for more details." >&5
4917
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4918
See \`config.log' for more details." >&2;}
4919
{ (exit 1); exit 1; }; }
4923
ac_cpp='$CPP $CPPFLAGS'
4924
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4925
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4926
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4929
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4930
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4931
if test "${ac_cv_header_stdc+set}" = set; then
4932
echo $ECHO_N "(cached) $ECHO_C" >&6
4934
cat >conftest.$ac_ext <<_ACEOF
4937
cat confdefs.h >>conftest.$ac_ext
4938
cat >>conftest.$ac_ext <<_ACEOF
4939
/* end confdefs.h. */
4953
rm -f conftest.$ac_objext
4954
if { (ac_try="$ac_compile"
4956
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4957
*) ac_try_echo=$ac_try;;
4959
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4960
(eval "$ac_compile") 2>conftest.er1
4962
grep -v '^ *+' conftest.er1 >conftest.err
4964
cat conftest.err >&5
4965
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966
(exit $ac_status); } && {
4967
test -z "$ac_c_werror_flag" ||
4968
test ! -s conftest.err
4969
} && test -s conftest.$ac_objext; then
4970
ac_cv_header_stdc=yes
4972
echo "$as_me: failed program was:" >&5
4973
sed 's/^/| /' conftest.$ac_ext >&5
4975
ac_cv_header_stdc=no
4978
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4980
if test $ac_cv_header_stdc = yes; then
4981
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4982
cat >conftest.$ac_ext <<_ACEOF
4985
cat confdefs.h >>conftest.$ac_ext
4986
cat >>conftest.$ac_ext <<_ACEOF
4987
/* end confdefs.h. */
4991
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4992
$EGREP "memchr" >/dev/null 2>&1; then
4995
ac_cv_header_stdc=no
5001
if test $ac_cv_header_stdc = yes; then
5002
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5003
cat >conftest.$ac_ext <<_ACEOF
5006
cat confdefs.h >>conftest.$ac_ext
5007
cat >>conftest.$ac_ext <<_ACEOF
5008
/* end confdefs.h. */
5012
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5013
$EGREP "free" >/dev/null 2>&1; then
5016
ac_cv_header_stdc=no
5022
if test $ac_cv_header_stdc = yes; then
5023
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5024
if test "$cross_compiling" = yes; then
5027
cat >conftest.$ac_ext <<_ACEOF
5030
cat confdefs.h >>conftest.$ac_ext
5031
cat >>conftest.$ac_ext <<_ACEOF
5032
/* end confdefs.h. */
5035
#if ((' ' & 0x0FF) == 0x020)
5036
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5037
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5039
# define ISLOWER(c) \
5040
(('a' <= (c) && (c) <= 'i') \
5041
|| ('j' <= (c) && (c) <= 'r') \
5042
|| ('s' <= (c) && (c) <= 'z'))
5043
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5046
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5051
for (i = 0; i < 256; i++)
5052
if (XOR (islower (i), ISLOWER (i))
5053
|| toupper (i) != TOUPPER (i))
5058
rm -f conftest$ac_exeext
5059
if { (ac_try="$ac_link"
5061
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5062
*) ac_try_echo=$ac_try;;
5064
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5065
(eval "$ac_link") 2>&5
5067
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5068
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5069
{ (case "(($ac_try" in
5070
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5071
*) ac_try_echo=$ac_try;;
5073
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5074
(eval "$ac_try") 2>&5
5076
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5077
(exit $ac_status); }; }; then
5080
echo "$as_me: program exited with status $ac_status" >&5
5081
echo "$as_me: failed program was:" >&5
5082
sed 's/^/| /' conftest.$ac_ext >&5
5085
ac_cv_header_stdc=no
5087
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5093
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5094
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5095
if test $ac_cv_header_stdc = yes; then
5097
cat >>confdefs.h <<\_ACEOF
5098
#define STDC_HEADERS 1
5103
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5113
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5114
inttypes.h stdint.h unistd.h
5116
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5117
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5118
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5119
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5120
echo $ECHO_N "(cached) $ECHO_C" >&6
5122
cat >conftest.$ac_ext <<_ACEOF
5125
cat confdefs.h >>conftest.$ac_ext
5126
cat >>conftest.$ac_ext <<_ACEOF
5127
/* end confdefs.h. */
5128
$ac_includes_default
5130
#include <$ac_header>
5132
rm -f conftest.$ac_objext
5133
if { (ac_try="$ac_compile"
5135
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5136
*) ac_try_echo=$ac_try;;
5138
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5139
(eval "$ac_compile") 2>conftest.er1
5141
grep -v '^ *+' conftest.er1 >conftest.err
5143
cat conftest.err >&5
5144
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5145
(exit $ac_status); } && {
5146
test -z "$ac_c_werror_flag" ||
5147
test ! -s conftest.err
5148
} && test -s conftest.$ac_objext; then
5149
eval "$as_ac_Header=yes"
5151
echo "$as_me: failed program was:" >&5
5152
sed 's/^/| /' conftest.$ac_ext >&5
5154
eval "$as_ac_Header=no"
5157
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5159
ac_res=`eval echo '${'$as_ac_Header'}'`
5160
{ echo "$as_me:$LINENO: result: $ac_res" >&5
5161
echo "${ECHO_T}$ac_res" >&6; }
5162
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5163
cat >>confdefs.h <<_ACEOF
5164
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5173
for ac_header in dlfcn.h
5175
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5176
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5177
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5178
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5179
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5180
echo $ECHO_N "(cached) $ECHO_C" >&6
5182
ac_res=`eval echo '${'$as_ac_Header'}'`
5183
{ echo "$as_me:$LINENO: result: $ac_res" >&5
5184
echo "${ECHO_T}$ac_res" >&6; }
5186
# Is the header compilable?
5187
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5188
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5189
cat >conftest.$ac_ext <<_ACEOF
5192
cat confdefs.h >>conftest.$ac_ext
5193
cat >>conftest.$ac_ext <<_ACEOF
5194
/* end confdefs.h. */
5195
$ac_includes_default
5196
#include <$ac_header>
5198
rm -f conftest.$ac_objext
5199
if { (ac_try="$ac_compile"
5201
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5202
*) ac_try_echo=$ac_try;;
5204
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5205
(eval "$ac_compile") 2>conftest.er1
5207
grep -v '^ *+' conftest.er1 >conftest.err
5209
cat conftest.err >&5
5210
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5211
(exit $ac_status); } && {
5212
test -z "$ac_c_werror_flag" ||
5213
test ! -s conftest.err
5214
} && test -s conftest.$ac_objext; then
5215
ac_header_compiler=yes
5217
echo "$as_me: failed program was:" >&5
5218
sed 's/^/| /' conftest.$ac_ext >&5
5220
ac_header_compiler=no
5223
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5224
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5225
echo "${ECHO_T}$ac_header_compiler" >&6; }
5227
# Is the header present?
5228
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5229
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5230
cat >conftest.$ac_ext <<_ACEOF
5233
cat confdefs.h >>conftest.$ac_ext
5234
cat >>conftest.$ac_ext <<_ACEOF
5235
/* end confdefs.h. */
5236
#include <$ac_header>
5238
if { (ac_try="$ac_cpp conftest.$ac_ext"
5240
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5241
*) ac_try_echo=$ac_try;;
5243
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5244
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5246
grep -v '^ *+' conftest.er1 >conftest.err
5248
cat conftest.err >&5
5249
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250
(exit $ac_status); } >/dev/null && {
5251
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5252
test ! -s conftest.err
5254
ac_header_preproc=yes
5256
echo "$as_me: failed program was:" >&5
5257
sed 's/^/| /' conftest.$ac_ext >&5
5259
ac_header_preproc=no
5262
rm -f conftest.err conftest.$ac_ext
5263
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5264
echo "${ECHO_T}$ac_header_preproc" >&6; }
5266
# So? What about this header?
5267
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5269
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5270
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5271
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5272
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5273
ac_header_preproc=yes
5276
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5277
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5278
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5279
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5280
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5281
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5282
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5283
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5284
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5285
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5286
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5287
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5289
## -------------------------------------------- ##
5290
## Report this to Sage Weil <sage@newdream.net> ##
5291
## -------------------------------------------- ##
5293
) | sed "s/^/$as_me: WARNING: /" >&2
5296
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5297
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5298
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5299
echo $ECHO_N "(cached) $ECHO_C" >&6
5301
eval "$as_ac_Header=\$ac_header_preproc"
5303
ac_res=`eval echo '${'$as_ac_Header'}'`
5304
{ echo "$as_me:$LINENO: result: $ac_res" >&5
5305
echo "${ECHO_T}$ac_res" >&6; }
5308
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5309
cat >>confdefs.h <<_ACEOF
5310
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5318
ac_cpp='$CXXCPP $CPPFLAGS'
5319
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5320
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5321
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5322
if test -z "$CXX"; then
5323
if test -n "$CCC"; then
5326
if test -n "$ac_tool_prefix"; then
5327
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5329
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5330
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5331
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5332
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5333
if test "${ac_cv_prog_CXX+set}" = set; then
5334
echo $ECHO_N "(cached) $ECHO_C" >&6
5336
if test -n "$CXX"; then
5337
ac_cv_prog_CXX="$CXX" # Let the user override the test.
5339
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5343
test -z "$as_dir" && as_dir=.
5344
for ac_exec_ext in '' $ac_executable_extensions; do
5345
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5346
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5347
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5357
if test -n "$CXX"; then
5358
{ echo "$as_me:$LINENO: result: $CXX" >&5
5359
echo "${ECHO_T}$CXX" >&6; }
5361
{ echo "$as_me:$LINENO: result: no" >&5
5362
echo "${ECHO_T}no" >&6; }
5366
test -n "$CXX" && break
5369
if test -z "$CXX"; then
5371
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5373
# Extract the first word of "$ac_prog", so it can be a program name with args.
5374
set dummy $ac_prog; ac_word=$2
5375
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5376
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5377
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5378
echo $ECHO_N "(cached) $ECHO_C" >&6
5380
if test -n "$ac_ct_CXX"; then
5381
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5383
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5387
test -z "$as_dir" && as_dir=.
5388
for ac_exec_ext in '' $ac_executable_extensions; do
5389
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5390
ac_cv_prog_ac_ct_CXX="$ac_prog"
5391
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5400
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5401
if test -n "$ac_ct_CXX"; then
5402
{ echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5403
echo "${ECHO_T}$ac_ct_CXX" >&6; }
5405
{ echo "$as_me:$LINENO: result: no" >&5
5406
echo "${ECHO_T}no" >&6; }
5410
test -n "$ac_ct_CXX" && break
5413
if test "x$ac_ct_CXX" = x; then
5416
case $cross_compiling:$ac_tool_warned in
5418
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5419
whose name does not start with the host triplet. If you think this
5420
configuration is useful to you, please write to autoconf@gnu.org." >&5
5421
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5422
whose name does not start with the host triplet. If you think this
5423
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5424
ac_tool_warned=yes ;;
5432
# Provide some information about the compiler.
5433
echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5434
ac_compiler=`set X $ac_compile; echo $2`
5435
{ (ac_try="$ac_compiler --version >&5"
5437
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5438
*) ac_try_echo=$ac_try;;
5440
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5441
(eval "$ac_compiler --version >&5") 2>&5
5443
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444
(exit $ac_status); }
5445
{ (ac_try="$ac_compiler -v >&5"
5447
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5448
*) ac_try_echo=$ac_try;;
5450
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5451
(eval "$ac_compiler -v >&5") 2>&5
5453
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5454
(exit $ac_status); }
5455
{ (ac_try="$ac_compiler -V >&5"
5457
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5458
*) ac_try_echo=$ac_try;;
5460
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5461
(eval "$ac_compiler -V >&5") 2>&5
5463
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5464
(exit $ac_status); }
5466
{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5467
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5468
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5469
echo $ECHO_N "(cached) $ECHO_C" >&6
5471
cat >conftest.$ac_ext <<_ACEOF
5474
cat confdefs.h >>conftest.$ac_ext
5475
cat >>conftest.$ac_ext <<_ACEOF
5476
/* end confdefs.h. */
5489
rm -f conftest.$ac_objext
5490
if { (ac_try="$ac_compile"
5492
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5493
*) ac_try_echo=$ac_try;;
5495
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5496
(eval "$ac_compile") 2>conftest.er1
5498
grep -v '^ *+' conftest.er1 >conftest.err
5500
cat conftest.err >&5
5501
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5502
(exit $ac_status); } && {
5503
test -z "$ac_cxx_werror_flag" ||
5504
test ! -s conftest.err
5505
} && test -s conftest.$ac_objext; then
5508
echo "$as_me: failed program was:" >&5
5509
sed 's/^/| /' conftest.$ac_ext >&5
5514
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5515
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5518
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5519
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5520
GXX=`test $ac_compiler_gnu = yes && echo yes`
5521
ac_test_CXXFLAGS=${CXXFLAGS+set}
5522
ac_save_CXXFLAGS=$CXXFLAGS
5523
{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5524
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5525
if test "${ac_cv_prog_cxx_g+set}" = set; then
5526
echo $ECHO_N "(cached) $ECHO_C" >&6
5528
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5529
ac_cxx_werror_flag=yes
5532
cat >conftest.$ac_ext <<_ACEOF
5535
cat confdefs.h >>conftest.$ac_ext
5536
cat >>conftest.$ac_ext <<_ACEOF
5537
/* end confdefs.h. */
5547
rm -f conftest.$ac_objext
5548
if { (ac_try="$ac_compile"
5550
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5551
*) ac_try_echo=$ac_try;;
5553
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5554
(eval "$ac_compile") 2>conftest.er1
5556
grep -v '^ *+' conftest.er1 >conftest.err
5558
cat conftest.err >&5
5559
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5560
(exit $ac_status); } && {
5561
test -z "$ac_cxx_werror_flag" ||
5562
test ! -s conftest.err
5563
} && test -s conftest.$ac_objext; then
5564
ac_cv_prog_cxx_g=yes
5566
echo "$as_me: failed program was:" >&5
5567
sed 's/^/| /' conftest.$ac_ext >&5
5570
cat >conftest.$ac_ext <<_ACEOF
5573
cat confdefs.h >>conftest.$ac_ext
5574
cat >>conftest.$ac_ext <<_ACEOF
5575
/* end confdefs.h. */
5585
rm -f conftest.$ac_objext
5586
if { (ac_try="$ac_compile"
5588
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5589
*) ac_try_echo=$ac_try;;
5591
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5592
(eval "$ac_compile") 2>conftest.er1
5594
grep -v '^ *+' conftest.er1 >conftest.err
5596
cat conftest.err >&5
5597
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5598
(exit $ac_status); } && {
5599
test -z "$ac_cxx_werror_flag" ||
5600
test ! -s conftest.err
5601
} && test -s conftest.$ac_objext; then
5604
echo "$as_me: failed program was:" >&5
5605
sed 's/^/| /' conftest.$ac_ext >&5
5607
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5609
cat >conftest.$ac_ext <<_ACEOF
5612
cat confdefs.h >>conftest.$ac_ext
5613
cat >>conftest.$ac_ext <<_ACEOF
5614
/* end confdefs.h. */
5624
rm -f conftest.$ac_objext
5625
if { (ac_try="$ac_compile"
5627
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5628
*) ac_try_echo=$ac_try;;
5630
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5631
(eval "$ac_compile") 2>conftest.er1
5633
grep -v '^ *+' conftest.er1 >conftest.err
5635
cat conftest.err >&5
5636
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5637
(exit $ac_status); } && {
5638
test -z "$ac_cxx_werror_flag" ||
5639
test ! -s conftest.err
5640
} && test -s conftest.$ac_objext; then
5641
ac_cv_prog_cxx_g=yes
5643
echo "$as_me: failed program was:" >&5
5644
sed 's/^/| /' conftest.$ac_ext >&5
5649
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5652
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5655
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5656
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5658
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5659
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5660
if test "$ac_test_CXXFLAGS" = set; then
5661
CXXFLAGS=$ac_save_CXXFLAGS
5662
elif test $ac_cv_prog_cxx_g = yes; then
5663
if test "$GXX" = yes; then
5669
if test "$GXX" = yes; then
5676
ac_cpp='$CXXCPP $CPPFLAGS'
5677
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5678
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5679
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5681
depcc="$CXX" am_compiler_list=
5683
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5684
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5685
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5686
echo $ECHO_N "(cached) $ECHO_C" >&6
5688
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5689
# We make a subdir and do the tests there. Otherwise we can end up
5690
# making bogus files that we don't know about and never remove. For
5691
# instance it was reported that on HP-UX the gcc test will end up
5692
# making a dummy file named `D' -- because `-MD' means `put the output
5695
# Copy depcomp to subdir because otherwise we won't find it if we're
5696
# using a relative directory.
5697
cp "$am_depcomp" conftest.dir
5699
# We will build objects and dependencies in a subdirectory because
5700
# it helps to detect inapplicable dependency modes. For instance
5701
# both Tru64's cc and ICC support -MD to output dependencies as a
5702
# side effect of compilation, but ICC will put the dependencies in
5703
# the current directory while Tru64 will put them in the object
5707
am_cv_CXX_dependencies_compiler_type=none
5708
if test "$am_compiler_list" = ""; then
5709
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5711
for depmode in $am_compiler_list; do
5712
# Setup a source with many dependencies, because some compilers
5713
# like to wrap large dependency lists on column 80 (with \), and
5714
# we should not choose a depcomp mode which is confused by this.
5716
# We need to recreate these files for each test, as the compiler may
5717
# overwrite some of them when testing with obscure command lines.
5718
# This happens at least with the AIX C compiler.
5720
for i in 1 2 3 4 5 6; do
5721
echo '#include "conftst'$i'.h"' >> sub/conftest.c
5722
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5723
# Solaris 8's {/usr,}/bin/sh.
5724
touch sub/conftst$i.h
5726
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5730
# after this tag, mechanisms are not by side-effect, so they'll
5731
# only be used when explicitly requested
5732
if test "x$enable_dependency_tracking" = xyes; then
5740
# We check with `-c' and `-o' for the sake of the "dashmstdout"
5741
# mode. It turns out that the SunPro C++ compiler does not properly
5742
# handle `-M -o', and we need to detect this.
5743
if depmode=$depmode \
5744
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5745
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5746
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5747
>/dev/null 2>conftest.err &&
5748
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5749
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5750
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5751
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5752
# icc doesn't choke on unknown options, it will just issue warnings
5753
# or remarks (even with -Werror). So we grep stderr for any message
5754
# that says an option was ignored or not supported.
5755
# When given -MP, icc 7.0 and 7.1 complain thusly:
5756
# icc: Command line warning: ignoring option '-M'; no argument required
5757
# The diagnosis changed in icc 8.0:
5758
# icc: Command line remark: option '-MP' not supported
5759
if (grep 'ignoring option' conftest.err ||
5760
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5761
am_cv_CXX_dependencies_compiler_type=$depmode
5770
am_cv_CXX_dependencies_compiler_type=none
5774
{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5775
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5776
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5779
test "x$enable_dependency_tracking" != xno \
5780
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5781
am__fastdepCXX_TRUE=
5782
am__fastdepCXX_FALSE='#'
5784
am__fastdepCXX_TRUE='#'
5785
am__fastdepCXX_FALSE=
5791
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5792
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5793
(test "X$CXX" != "Xg++"))) ; then
5795
ac_cpp='$CXXCPP $CPPFLAGS'
5796
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5797
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5798
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5799
{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5800
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5801
if test -z "$CXXCPP"; then
5802
if test "${ac_cv_prog_CXXCPP+set}" = set; then
5803
echo $ECHO_N "(cached) $ECHO_C" >&6
5805
# Double quotes because CXXCPP needs to be expanded
5806
for CXXCPP in "$CXX -E" "/lib/cpp"
5809
for ac_cxx_preproc_warn_flag in '' yes
5811
# Use a header file that comes with gcc, so configuring glibc
5812
# with a fresh cross-compiler works.
5813
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5814
# <limits.h> exists even on freestanding compilers.
5815
# On the NeXT, cc -E runs the code through the compiler's parser,
5816
# not just through cpp. "Syntax error" is here to catch this case.
5817
cat >conftest.$ac_ext <<_ACEOF
5820
cat confdefs.h >>conftest.$ac_ext
5821
cat >>conftest.$ac_ext <<_ACEOF
5822
/* end confdefs.h. */
5824
# include <limits.h>
5826
# include <assert.h>
5830
if { (ac_try="$ac_cpp conftest.$ac_ext"
5832
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5833
*) ac_try_echo=$ac_try;;
5835
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5836
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5838
grep -v '^ *+' conftest.er1 >conftest.err
5840
cat conftest.err >&5
5841
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5842
(exit $ac_status); } >/dev/null && {
5843
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5844
test ! -s conftest.err
5848
echo "$as_me: failed program was:" >&5
5849
sed 's/^/| /' conftest.$ac_ext >&5
5851
# Broken: fails on valid input.
5855
rm -f conftest.err conftest.$ac_ext
5857
# OK, works on sane cases. Now check whether nonexistent headers
5858
# can be detected and how.
5859
cat >conftest.$ac_ext <<_ACEOF
5862
cat confdefs.h >>conftest.$ac_ext
5863
cat >>conftest.$ac_ext <<_ACEOF
5864
/* end confdefs.h. */
5865
#include <ac_nonexistent.h>
5867
if { (ac_try="$ac_cpp conftest.$ac_ext"
5869
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5870
*) ac_try_echo=$ac_try;;
5872
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5873
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5875
grep -v '^ *+' conftest.er1 >conftest.err
5877
cat conftest.err >&5
5878
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879
(exit $ac_status); } >/dev/null && {
5880
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5881
test ! -s conftest.err
5883
# Broken: success on invalid input.
5886
echo "$as_me: failed program was:" >&5
5887
sed 's/^/| /' conftest.$ac_ext >&5
5889
# Passes both tests.
5894
rm -f conftest.err conftest.$ac_ext
5897
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5898
rm -f conftest.err conftest.$ac_ext
5899
if $ac_preproc_ok; then
5904
ac_cv_prog_CXXCPP=$CXXCPP
5907
CXXCPP=$ac_cv_prog_CXXCPP
5909
ac_cv_prog_CXXCPP=$CXXCPP
5911
{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
5912
echo "${ECHO_T}$CXXCPP" >&6; }
5914
for ac_cxx_preproc_warn_flag in '' yes
5916
# Use a header file that comes with gcc, so configuring glibc
5917
# with a fresh cross-compiler works.
5918
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5919
# <limits.h> exists even on freestanding compilers.
5920
# On the NeXT, cc -E runs the code through the compiler's parser,
5921
# not just through cpp. "Syntax error" is here to catch this case.
5922
cat >conftest.$ac_ext <<_ACEOF
5925
cat confdefs.h >>conftest.$ac_ext
5926
cat >>conftest.$ac_ext <<_ACEOF
5927
/* end confdefs.h. */
5929
# include <limits.h>
5931
# include <assert.h>
5935
if { (ac_try="$ac_cpp conftest.$ac_ext"
5937
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5938
*) ac_try_echo=$ac_try;;
5940
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5941
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5943
grep -v '^ *+' conftest.er1 >conftest.err
5945
cat conftest.err >&5
5946
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5947
(exit $ac_status); } >/dev/null && {
5948
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5949
test ! -s conftest.err
5953
echo "$as_me: failed program was:" >&5
5954
sed 's/^/| /' conftest.$ac_ext >&5
5956
# Broken: fails on valid input.
5960
rm -f conftest.err conftest.$ac_ext
5962
# OK, works on sane cases. Now check whether nonexistent headers
5963
# can be detected and how.
5964
cat >conftest.$ac_ext <<_ACEOF
5967
cat confdefs.h >>conftest.$ac_ext
5968
cat >>conftest.$ac_ext <<_ACEOF
5969
/* end confdefs.h. */
5970
#include <ac_nonexistent.h>
5972
if { (ac_try="$ac_cpp conftest.$ac_ext"
5974
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5975
*) ac_try_echo=$ac_try;;
5977
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5978
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5980
grep -v '^ *+' conftest.er1 >conftest.err
5982
cat conftest.err >&5
5983
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5984
(exit $ac_status); } >/dev/null && {
5985
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5986
test ! -s conftest.err
5988
# Broken: success on invalid input.
5991
echo "$as_me: failed program was:" >&5
5992
sed 's/^/| /' conftest.$ac_ext >&5
5994
# Passes both tests.
5999
rm -f conftest.err conftest.$ac_ext
6002
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6003
rm -f conftest.err conftest.$ac_ext
6004
if $ac_preproc_ok; then
6007
{ { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6008
See \`config.log' for more details." >&5
6009
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6010
See \`config.log' for more details." >&2;}
6011
{ (exit 1); exit 1; }; }
6015
ac_cpp='$CXXCPP $CPPFLAGS'
6016
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6017
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6018
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6024
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6025
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6026
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6027
if test -n "$ac_tool_prefix"; then
6028
for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6030
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6031
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6032
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6033
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6034
if test "${ac_cv_prog_F77+set}" = set; then
6035
echo $ECHO_N "(cached) $ECHO_C" >&6
6037
if test -n "$F77"; then
6038
ac_cv_prog_F77="$F77" # Let the user override the test.
6040
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6044
test -z "$as_dir" && as_dir=.
6045
for ac_exec_ext in '' $ac_executable_extensions; do
6046
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6047
ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6048
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6058
if test -n "$F77"; then
6059
{ echo "$as_me:$LINENO: result: $F77" >&5
6060
echo "${ECHO_T}$F77" >&6; }
6062
{ echo "$as_me:$LINENO: result: no" >&5
6063
echo "${ECHO_T}no" >&6; }
6067
test -n "$F77" && break
6070
if test -z "$F77"; then
6072
for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6074
# Extract the first word of "$ac_prog", so it can be a program name with args.
6075
set dummy $ac_prog; ac_word=$2
6076
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6077
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6078
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6079
echo $ECHO_N "(cached) $ECHO_C" >&6
6081
if test -n "$ac_ct_F77"; then
6082
ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6084
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6088
test -z "$as_dir" && as_dir=.
6089
for ac_exec_ext in '' $ac_executable_extensions; do
6090
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6091
ac_cv_prog_ac_ct_F77="$ac_prog"
6092
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6101
ac_ct_F77=$ac_cv_prog_ac_ct_F77
6102
if test -n "$ac_ct_F77"; then
6103
{ echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6104
echo "${ECHO_T}$ac_ct_F77" >&6; }
6106
{ echo "$as_me:$LINENO: result: no" >&5
6107
echo "${ECHO_T}no" >&6; }
6111
test -n "$ac_ct_F77" && break
6114
if test "x$ac_ct_F77" = x; then
6117
case $cross_compiling:$ac_tool_warned in
6119
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6120
whose name does not start with the host triplet. If you think this
6121
configuration is useful to you, please write to autoconf@gnu.org." >&5
6122
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6123
whose name does not start with the host triplet. If you think this
6124
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6125
ac_tool_warned=yes ;;
6132
# Provide some information about the compiler.
6133
echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6134
ac_compiler=`set X $ac_compile; echo $2`
6135
{ (ac_try="$ac_compiler --version >&5"
6137
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6138
*) ac_try_echo=$ac_try;;
6140
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6141
(eval "$ac_compiler --version >&5") 2>&5
6143
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144
(exit $ac_status); }
6145
{ (ac_try="$ac_compiler -v >&5"
6147
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6148
*) ac_try_echo=$ac_try;;
6150
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6151
(eval "$ac_compiler -v >&5") 2>&5
6153
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6154
(exit $ac_status); }
6155
{ (ac_try="$ac_compiler -V >&5"
6157
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6158
*) ac_try_echo=$ac_try;;
6160
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6161
(eval "$ac_compiler -V >&5") 2>&5
6163
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6164
(exit $ac_status); }
6167
# If we don't use `.F' as extension, the preprocessor is not run on the
6168
# input file. (Note that this only needs to work for GNU compilers.)
6171
{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6172
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6173
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6174
echo $ECHO_N "(cached) $ECHO_C" >&6
6176
cat >conftest.$ac_ext <<_ACEOF
6184
rm -f conftest.$ac_objext
6185
if { (ac_try="$ac_compile"
6187
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6188
*) ac_try_echo=$ac_try;;
6190
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6191
(eval "$ac_compile") 2>conftest.er1
6193
grep -v '^ *+' conftest.er1 >conftest.err
6195
cat conftest.err >&5
6196
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6197
(exit $ac_status); } && {
6198
test -z "$ac_f77_werror_flag" ||
6199
test ! -s conftest.err
6200
} && test -s conftest.$ac_objext; then
6203
echo "$as_me: failed program was:" >&5
6204
sed 's/^/| /' conftest.$ac_ext >&5
6209
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6210
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6213
{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6214
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6216
ac_test_FFLAGS=${FFLAGS+set}
6217
ac_save_FFLAGS=$FFLAGS
6219
{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6220
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6221
if test "${ac_cv_prog_f77_g+set}" = set; then
6222
echo $ECHO_N "(cached) $ECHO_C" >&6
6225
cat >conftest.$ac_ext <<_ACEOF
6230
rm -f conftest.$ac_objext
6231
if { (ac_try="$ac_compile"
6233
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6234
*) ac_try_echo=$ac_try;;
6236
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6237
(eval "$ac_compile") 2>conftest.er1
6239
grep -v '^ *+' conftest.er1 >conftest.err
6241
cat conftest.err >&5
6242
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6243
(exit $ac_status); } && {
6244
test -z "$ac_f77_werror_flag" ||
6245
test ! -s conftest.err
6246
} && test -s conftest.$ac_objext; then
6247
ac_cv_prog_f77_g=yes
6249
echo "$as_me: failed program was:" >&5
6250
sed 's/^/| /' conftest.$ac_ext >&5
6255
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6258
{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6259
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6260
if test "$ac_test_FFLAGS" = set; then
6261
FFLAGS=$ac_save_FFLAGS
6262
elif test $ac_cv_prog_f77_g = yes; then
6263
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6269
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6276
G77=`test $ac_compiler_gnu = yes && echo yes`
6278
ac_cpp='$CPP $CPPFLAGS'
6279
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6280
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6281
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6285
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6286
# find the maximum length of command line arguments
6287
{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6288
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6289
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6290
echo $ECHO_N "(cached) $ECHO_C" >&6
6297
# On DJGPP, this test can blow up pretty badly due to problems in libc
6298
# (any single argument exceeding 2000 bytes causes a buffer overrun
6299
# during glob expansion). Even if it were fixed, the result of this
6300
# check would be larger than it should be.
6301
lt_cv_sys_max_cmd_len=12288; # 12K is about right
6305
# Under GNU Hurd, this test is not required because there is
6306
# no limit to the length of command line arguments.
6307
# Libtool will interpret -1 as no limit whatsoever
6308
lt_cv_sys_max_cmd_len=-1;
6312
# On Win9x/ME, this test blows up -- it succeeds, but takes
6313
# about 5 minutes as the teststring grows exponentially.
6314
# Worse, since 9x/ME are not pre-emptively multitasking,
6315
# you end up with a "frozen" computer, even though with patience
6316
# the test eventually succeeds (with a max line length of 256k).
6317
# Instead, let's just punt: use the minimum linelength reported by
6318
# all of the supported platforms: 8192 (on NT/2K/XP).
6319
lt_cv_sys_max_cmd_len=8192;
6323
# On AmigaOS with pdksh, this test takes hours, literally.
6324
# So we just punt and use a minimum line length of 8192.
6325
lt_cv_sys_max_cmd_len=8192;
6328
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6329
# This has been around since 386BSD, at least. Likely further.
6330
if test -x /sbin/sysctl; then
6331
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6332
elif test -x /usr/sbin/sysctl; then
6333
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6335
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6337
# And add a safety zone
6338
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6339
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6343
# We know the value 262144 and hardcode it with a safety zone (like BSD)
6344
lt_cv_sys_max_cmd_len=196608
6348
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6349
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6350
# nice to cause kernel panics so lets avoid the loop below.
6351
# First set a reasonable default.
6352
lt_cv_sys_max_cmd_len=16384
6354
if test -x /sbin/sysconfig; then
6355
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6356
*1*) lt_cv_sys_max_cmd_len=-1 ;;
6361
lt_cv_sys_max_cmd_len=102400
6363
sysv5* | sco5v6* | sysv4.2uw2*)
6364
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6365
if test -n "$kargmax"; then
6366
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6368
lt_cv_sys_max_cmd_len=32768
6372
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6373
if test -n "$lt_cv_sys_max_cmd_len"; then
6374
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6375
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6377
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6378
while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6379
= "XX$teststring") >/dev/null 2>&1 &&
6380
new_result=`expr "X$teststring" : ".*" 2>&1` &&
6381
lt_cv_sys_max_cmd_len=$new_result &&
6382
test $i != 17 # 1/2 MB should be enough
6385
teststring=$teststring$teststring
6388
# Add a significant safety factor because C++ compilers can tack on massive
6389
# amounts of additional arguments before passing them to the linker.
6390
# It appears as though 1/2 is a usable value.
6391
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6398
if test -n $lt_cv_sys_max_cmd_len ; then
6399
{ echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6400
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6402
{ echo "$as_me:$LINENO: result: none" >&5
6403
echo "${ECHO_T}none" >&6; }
6410
# Check for command to grab the raw symbol name followed by C symbol from nm.
6411
{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6412
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6413
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6414
echo $ECHO_N "(cached) $ECHO_C" >&6
6417
# These are sane defaults that work on at least a few old systems.
6418
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6420
# Character class describing NM global symbol codes.
6421
symcode='[BCDEGRST]'
6423
# Regexp to match symbols that can be accessed directly from C.
6424
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6426
# Transform an extracted symbol line into a proper C declaration
6427
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6429
# Transform an extracted symbol line into symbol name and symbol address
6430
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'"
6432
# Define system-specific variables.
6437
cygwin* | mingw* | pw32*)
6438
symcode='[ABCDGISTW]'
6440
hpux*) # Its linker distinguishes data from code symbols
6441
if test "$host_cpu" = ia64; then
6442
symcode='[ABCDEGRST]'
6444
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6445
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'"
6447
linux* | k*bsd*-gnu)
6448
if test "$host_cpu" = ia64; then
6449
symcode='[ABCDGIRSTW]'
6450
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6451
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'"
6455
symcode='[BCDEGRST]'
6458
symcode='[BCDEGQRST]'
6469
sysv5* | sco5v6* | unixware* | OpenUNIX*)
6477
# Handle CRLF in mingw tool chain
6481
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6485
# If we're using GNU nm, then use its standard symbol codes.
6486
case `$NM -V 2>&1` in
6487
*GNU* | *'with BFD'*)
6488
symcode='[ABCDGIRSTW]' ;;
6491
# Try without a prefix undercore, then with it.
6492
for ac_symprfx in "" "_"; do
6494
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6495
symxfrm="\\1 $ac_symprfx\\2 \\2"
6497
# Write the raw and C identifiers.
6498
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6500
# Check to see that the pipe works correctly.
6504
cat > conftest.$ac_ext <<EOF
6509
void nm_test_func(){}
6513
int main(){nm_test_var='a';nm_test_func();return(0);}
6516
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6517
(eval $ac_compile) 2>&5
6519
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6520
(exit $ac_status); }; then
6521
# Now try to grab the symbols.
6523
if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6524
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6526
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6527
(exit $ac_status); } && test -s "$nlist"; then
6528
# Try sorting and uniquifying the output.
6529
if sort "$nlist" | uniq > "$nlist"T; then
6530
mv -f "$nlist"T "$nlist"
6535
# Make sure that we snagged all the symbols we need.
6536
if grep ' nm_test_var$' "$nlist" >/dev/null; then
6537
if grep ' nm_test_func$' "$nlist" >/dev/null; then
6538
cat <<EOF > conftest.$ac_ext
6544
# Now generate the symbol file.
6545
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6547
cat <<EOF >> conftest.$ac_ext
6548
#if defined (__STDC__) && __STDC__
6549
# define lt_ptr_t void *
6551
# define lt_ptr_t char *
6555
/* The mapping between symbol names and symbols. */
6560
lt_preloaded_symbols[] =
6563
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6564
cat <<\EOF >> conftest.$ac_ext
6572
# Now try linking the two files.
6573
mv conftest.$ac_objext conftstm.$ac_objext
6574
lt_save_LIBS="$LIBS"
6575
lt_save_CFLAGS="$CFLAGS"
6576
LIBS="conftstm.$ac_objext"
6577
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6578
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6579
(eval $ac_link) 2>&5
6581
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6582
(exit $ac_status); } && test -s conftest${ac_exeext}; then
6585
LIBS="$lt_save_LIBS"
6586
CFLAGS="$lt_save_CFLAGS"
6588
echo "cannot find nm_test_func in $nlist" >&5
6591
echo "cannot find nm_test_var in $nlist" >&5
6594
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6597
echo "$progname: failed program was:" >&5
6598
cat conftest.$ac_ext >&5
6600
rm -rf conftest* conftst*
6602
# Do not use the global_symbol_pipe unless it works.
6603
if test "$pipe_works" = yes; then
6606
lt_cv_sys_global_symbol_pipe=
6612
if test -z "$lt_cv_sys_global_symbol_pipe"; then
6613
lt_cv_sys_global_symbol_to_cdecl=
6615
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6616
{ echo "$as_me:$LINENO: result: failed" >&5
6617
echo "${ECHO_T}failed" >&6; }
6619
{ echo "$as_me:$LINENO: result: ok" >&5
6620
echo "${ECHO_T}ok" >&6; }
6623
{ echo "$as_me:$LINENO: checking for objdir" >&5
6624
echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6625
if test "${lt_cv_objdir+set}" = set; then
6626
echo $ECHO_N "(cached) $ECHO_C" >&6
6628
rm -f .libs 2>/dev/null
6629
mkdir .libs 2>/dev/null
6630
if test -d .libs; then
6633
# MS-DOS does not allow filenames that begin with a dot.
6636
rmdir .libs 2>/dev/null
6638
{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6639
echo "${ECHO_T}$lt_cv_objdir" >&6; }
6640
objdir=$lt_cv_objdir
6648
# AIX sometimes has problems with the GCC collect2 program. For some
6649
# reason, if we set the COLLECT_NAMES environment variable, the problems
6650
# vanish in a puff of smoke.
6651
if test "X${COLLECT_NAMES+set}" != Xset; then
6653
export COLLECT_NAMES
6658
# Sed substitution that helps us do robust quoting. It backslashifies
6659
# metacharacters that are still active within double-quoted strings.
6660
Xsed='sed -e 1s/^X//'
6661
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6663
# Same as above, but do not quote variable references.
6664
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6666
# Sed substitution to delay expansion of an escaped shell variable in a
6667
# double_quote_subst'ed string.
6668
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6670
# Sed substitution to avoid accidental globbing in evaled expressions
6671
no_glob_subst='s/\*/\\\*/g'
6677
default_ofile=libtool
6678
can_build_shared=yes
6680
# All known linkers require a `.a' archive for static linking (except MSVC,
6681
# which needs '.lib').
6683
ltmain="$ac_aux_dir/ltmain.sh"
6684
ofile="$default_ofile"
6685
with_gnu_ld="$lt_cv_prog_gnu_ld"
6687
if test -n "$ac_tool_prefix"; then
6688
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6689
set dummy ${ac_tool_prefix}ar; ac_word=$2
6690
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6691
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6692
if test "${ac_cv_prog_AR+set}" = set; then
6693
echo $ECHO_N "(cached) $ECHO_C" >&6
6695
if test -n "$AR"; then
6696
ac_cv_prog_AR="$AR" # Let the user override the test.
6698
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6702
test -z "$as_dir" && as_dir=.
6703
for ac_exec_ext in '' $ac_executable_extensions; do
6704
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6705
ac_cv_prog_AR="${ac_tool_prefix}ar"
6706
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6716
if test -n "$AR"; then
6717
{ echo "$as_me:$LINENO: result: $AR" >&5
6718
echo "${ECHO_T}$AR" >&6; }
6720
{ echo "$as_me:$LINENO: result: no" >&5
6721
echo "${ECHO_T}no" >&6; }
6726
if test -z "$ac_cv_prog_AR"; then
6728
# Extract the first word of "ar", so it can be a program name with args.
6729
set dummy ar; ac_word=$2
6730
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6731
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6732
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6733
echo $ECHO_N "(cached) $ECHO_C" >&6
6735
if test -n "$ac_ct_AR"; then
6736
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6738
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6742
test -z "$as_dir" && as_dir=.
6743
for ac_exec_ext in '' $ac_executable_extensions; do
6744
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6745
ac_cv_prog_ac_ct_AR="ar"
6746
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6755
ac_ct_AR=$ac_cv_prog_ac_ct_AR
6756
if test -n "$ac_ct_AR"; then
6757
{ echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6758
echo "${ECHO_T}$ac_ct_AR" >&6; }
6760
{ echo "$as_me:$LINENO: result: no" >&5
6761
echo "${ECHO_T}no" >&6; }
6764
if test "x$ac_ct_AR" = x; then
6767
case $cross_compiling:$ac_tool_warned in
6769
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6770
whose name does not start with the host triplet. If you think this
6771
configuration is useful to you, please write to autoconf@gnu.org." >&5
6772
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6773
whose name does not start with the host triplet. If you think this
6774
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6775
ac_tool_warned=yes ;;
6783
if test -n "$ac_tool_prefix"; then
6784
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6785
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6786
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6787
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6788
if test "${ac_cv_prog_RANLIB+set}" = set; then
6789
echo $ECHO_N "(cached) $ECHO_C" >&6
6791
if test -n "$RANLIB"; then
6792
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6794
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6798
test -z "$as_dir" && as_dir=.
6799
for ac_exec_ext in '' $ac_executable_extensions; do
6800
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6801
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6802
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6811
RANLIB=$ac_cv_prog_RANLIB
6812
if test -n "$RANLIB"; then
6813
{ echo "$as_me:$LINENO: result: $RANLIB" >&5
6814
echo "${ECHO_T}$RANLIB" >&6; }
6816
{ echo "$as_me:$LINENO: result: no" >&5
6817
echo "${ECHO_T}no" >&6; }
6822
if test -z "$ac_cv_prog_RANLIB"; then
6823
ac_ct_RANLIB=$RANLIB
6824
# Extract the first word of "ranlib", so it can be a program name with args.
6825
set dummy ranlib; ac_word=$2
6826
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6827
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6828
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6829
echo $ECHO_N "(cached) $ECHO_C" >&6
6831
if test -n "$ac_ct_RANLIB"; then
6832
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6834
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6838
test -z "$as_dir" && as_dir=.
6839
for ac_exec_ext in '' $ac_executable_extensions; do
6840
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6841
ac_cv_prog_ac_ct_RANLIB="ranlib"
6842
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6851
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6852
if test -n "$ac_ct_RANLIB"; then
6853
{ echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6854
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6856
{ echo "$as_me:$LINENO: result: no" >&5
6857
echo "${ECHO_T}no" >&6; }
6860
if test "x$ac_ct_RANLIB" = x; then
6863
case $cross_compiling:$ac_tool_warned in
6865
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6866
whose name does not start with the host triplet. If you think this
6867
configuration is useful to you, please write to autoconf@gnu.org." >&5
6868
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6869
whose name does not start with the host triplet. If you think this
6870
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6871
ac_tool_warned=yes ;;
6873
RANLIB=$ac_ct_RANLIB
6876
RANLIB="$ac_cv_prog_RANLIB"
6879
if test -n "$ac_tool_prefix"; then
6880
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6881
set dummy ${ac_tool_prefix}strip; ac_word=$2
6882
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6883
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6884
if test "${ac_cv_prog_STRIP+set}" = set; then
6885
echo $ECHO_N "(cached) $ECHO_C" >&6
6887
if test -n "$STRIP"; then
6888
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6890
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6894
test -z "$as_dir" && as_dir=.
6895
for ac_exec_ext in '' $ac_executable_extensions; do
6896
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6897
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6898
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6907
STRIP=$ac_cv_prog_STRIP
6908
if test -n "$STRIP"; then
6909
{ echo "$as_me:$LINENO: result: $STRIP" >&5
6910
echo "${ECHO_T}$STRIP" >&6; }
6912
{ echo "$as_me:$LINENO: result: no" >&5
6913
echo "${ECHO_T}no" >&6; }
6918
if test -z "$ac_cv_prog_STRIP"; then
6920
# Extract the first word of "strip", so it can be a program name with args.
6921
set dummy strip; ac_word=$2
6922
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6923
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6924
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6925
echo $ECHO_N "(cached) $ECHO_C" >&6
6927
if test -n "$ac_ct_STRIP"; then
6928
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6930
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6934
test -z "$as_dir" && as_dir=.
6935
for ac_exec_ext in '' $ac_executable_extensions; do
6936
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6937
ac_cv_prog_ac_ct_STRIP="strip"
6938
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6947
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6948
if test -n "$ac_ct_STRIP"; then
6949
{ echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6950
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6952
{ echo "$as_me:$LINENO: result: no" >&5
6953
echo "${ECHO_T}no" >&6; }
6956
if test "x$ac_ct_STRIP" = x; then
6959
case $cross_compiling:$ac_tool_warned in
6961
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6962
whose name does not start with the host triplet. If you think this
6963
configuration is useful to you, please write to autoconf@gnu.org." >&5
6964
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6965
whose name does not start with the host triplet. If you think this
6966
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6967
ac_tool_warned=yes ;;
6972
STRIP="$ac_cv_prog_STRIP"
6977
old_CFLAGS="$CFLAGS"
6979
# Set sane defaults for various variables
6980
test -z "$AR" && AR=ar
6981
test -z "$AR_FLAGS" && AR_FLAGS=cru
6982
test -z "$AS" && AS=as
6983
test -z "$CC" && CC=cc
6984
test -z "$LTCC" && LTCC=$CC
6985
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6986
test -z "$DLLTOOL" && DLLTOOL=dlltool
6987
test -z "$LD" && LD=ld
6988
test -z "$LN_S" && LN_S="ln -s"
6989
test -z "$MAGIC_CMD" && MAGIC_CMD=file
6990
test -z "$NM" && NM=nm
6991
test -z "$SED" && SED=sed
6992
test -z "$OBJDUMP" && OBJDUMP=objdump
6993
test -z "$RANLIB" && RANLIB=:
6994
test -z "$STRIP" && STRIP=:
6995
test -z "$ac_objext" && ac_objext=o
6997
# Determine commands to create old-style static archives.
6998
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6999
old_postinstall_cmds='chmod 644 $oldlib'
7000
old_postuninstall_cmds=
7002
if test -n "$RANLIB"; then
7005
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7008
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7011
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7014
for cc_temp in $compiler""; do
7016
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7017
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7022
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7025
# Only perform the check for file, if the check method requires it
7026
case $deplibs_check_method in
7028
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7029
{ echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7030
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7031
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7032
echo $ECHO_N "(cached) $ECHO_C" >&6
7036
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7039
lt_save_MAGIC_CMD="$MAGIC_CMD"
7040
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7041
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7042
for ac_dir in $ac_dummy; do
7044
test -z "$ac_dir" && ac_dir=.
7045
if test -f $ac_dir/${ac_tool_prefix}file; then
7046
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7047
if test -n "$file_magic_test_file"; then
7048
case $deplibs_check_method in
7050
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7051
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7052
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7053
$EGREP "$file_magic_regex" > /dev/null; then
7058
*** Warning: the command libtool uses to detect shared libraries,
7059
*** $file_magic_cmd, produces output that libtool cannot recognize.
7060
*** The result is that libtool may fail to recognize shared libraries
7061
*** as such. This will affect the creation of libtool libraries that
7062
*** depend on shared libraries, but programs linked with such libtool
7063
*** libraries will work regardless of this problem. Nevertheless, you
7064
*** may want to report the problem to your system manager and/or to
7065
*** bug-libtool@gnu.org
7075
MAGIC_CMD="$lt_save_MAGIC_CMD"
7080
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7081
if test -n "$MAGIC_CMD"; then
7082
{ echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7083
echo "${ECHO_T}$MAGIC_CMD" >&6; }
7085
{ echo "$as_me:$LINENO: result: no" >&5
7086
echo "${ECHO_T}no" >&6; }
7089
if test -z "$lt_cv_path_MAGIC_CMD"; then
7090
if test -n "$ac_tool_prefix"; then
7091
{ echo "$as_me:$LINENO: checking for file" >&5
7092
echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7093
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7094
echo $ECHO_N "(cached) $ECHO_C" >&6
7098
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7101
lt_save_MAGIC_CMD="$MAGIC_CMD"
7102
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7103
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7104
for ac_dir in $ac_dummy; do
7106
test -z "$ac_dir" && ac_dir=.
7107
if test -f $ac_dir/file; then
7108
lt_cv_path_MAGIC_CMD="$ac_dir/file"
7109
if test -n "$file_magic_test_file"; then
7110
case $deplibs_check_method in
7112
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7113
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7114
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7115
$EGREP "$file_magic_regex" > /dev/null; then
7120
*** Warning: the command libtool uses to detect shared libraries,
7121
*** $file_magic_cmd, produces output that libtool cannot recognize.
7122
*** The result is that libtool may fail to recognize shared libraries
7123
*** as such. This will affect the creation of libtool libraries that
7124
*** depend on shared libraries, but programs linked with such libtool
7125
*** libraries will work regardless of this problem. Nevertheless, you
7126
*** may want to report the problem to your system manager and/or to
7127
*** bug-libtool@gnu.org
7137
MAGIC_CMD="$lt_save_MAGIC_CMD"
7142
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7143
if test -n "$MAGIC_CMD"; then
7144
{ echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7145
echo "${ECHO_T}$MAGIC_CMD" >&6; }
7147
{ echo "$as_me:$LINENO: result: no" >&5
7148
echo "${ECHO_T}no" >&6; }
7162
rhapsody* | darwin*)
7163
if test -n "$ac_tool_prefix"; then
7164
# Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7165
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7166
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7167
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7168
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7169
echo $ECHO_N "(cached) $ECHO_C" >&6
7171
if test -n "$DSYMUTIL"; then
7172
ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7174
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7178
test -z "$as_dir" && as_dir=.
7179
for ac_exec_ext in '' $ac_executable_extensions; do
7180
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7181
ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7182
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7191
DSYMUTIL=$ac_cv_prog_DSYMUTIL
7192
if test -n "$DSYMUTIL"; then
7193
{ echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7194
echo "${ECHO_T}$DSYMUTIL" >&6; }
7196
{ echo "$as_me:$LINENO: result: no" >&5
7197
echo "${ECHO_T}no" >&6; }
7202
if test -z "$ac_cv_prog_DSYMUTIL"; then
7203
ac_ct_DSYMUTIL=$DSYMUTIL
7204
# Extract the first word of "dsymutil", so it can be a program name with args.
7205
set dummy dsymutil; ac_word=$2
7206
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7207
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7208
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7209
echo $ECHO_N "(cached) $ECHO_C" >&6
7211
if test -n "$ac_ct_DSYMUTIL"; then
7212
ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7214
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7218
test -z "$as_dir" && as_dir=.
7219
for ac_exec_ext in '' $ac_executable_extensions; do
7220
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7221
ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7222
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7231
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7232
if test -n "$ac_ct_DSYMUTIL"; then
7233
{ echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7234
echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7236
{ echo "$as_me:$LINENO: result: no" >&5
7237
echo "${ECHO_T}no" >&6; }
7240
if test "x$ac_ct_DSYMUTIL" = x; then
7243
case $cross_compiling:$ac_tool_warned in
7245
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7246
whose name does not start with the host triplet. If you think this
7247
configuration is useful to you, please write to autoconf@gnu.org." >&5
7248
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7249
whose name does not start with the host triplet. If you think this
7250
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7251
ac_tool_warned=yes ;;
7253
DSYMUTIL=$ac_ct_DSYMUTIL
7256
DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7259
if test -n "$ac_tool_prefix"; then
7260
# Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7261
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7262
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7263
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7264
if test "${ac_cv_prog_NMEDIT+set}" = set; then
7265
echo $ECHO_N "(cached) $ECHO_C" >&6
7267
if test -n "$NMEDIT"; then
7268
ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7270
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7274
test -z "$as_dir" && as_dir=.
7275
for ac_exec_ext in '' $ac_executable_extensions; do
7276
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7277
ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7278
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7287
NMEDIT=$ac_cv_prog_NMEDIT
7288
if test -n "$NMEDIT"; then
7289
{ echo "$as_me:$LINENO: result: $NMEDIT" >&5
7290
echo "${ECHO_T}$NMEDIT" >&6; }
7292
{ echo "$as_me:$LINENO: result: no" >&5
7293
echo "${ECHO_T}no" >&6; }
7298
if test -z "$ac_cv_prog_NMEDIT"; then
7299
ac_ct_NMEDIT=$NMEDIT
7300
# Extract the first word of "nmedit", so it can be a program name with args.
7301
set dummy nmedit; ac_word=$2
7302
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7303
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7304
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7305
echo $ECHO_N "(cached) $ECHO_C" >&6
7307
if test -n "$ac_ct_NMEDIT"; then
7308
ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7310
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7314
test -z "$as_dir" && as_dir=.
7315
for ac_exec_ext in '' $ac_executable_extensions; do
7316
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7317
ac_cv_prog_ac_ct_NMEDIT="nmedit"
7318
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7327
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7328
if test -n "$ac_ct_NMEDIT"; then
7329
{ echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7330
echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7332
{ echo "$as_me:$LINENO: result: no" >&5
7333
echo "${ECHO_T}no" >&6; }
7336
if test "x$ac_ct_NMEDIT" = x; then
7339
case $cross_compiling:$ac_tool_warned in
7341
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7342
whose name does not start with the host triplet. If you think this
7343
configuration is useful to you, please write to autoconf@gnu.org." >&5
7344
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7345
whose name does not start with the host triplet. If you think this
7346
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7347
ac_tool_warned=yes ;;
7349
NMEDIT=$ac_ct_NMEDIT
7352
NMEDIT="$ac_cv_prog_NMEDIT"
7356
{ echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7357
echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7358
if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7359
echo $ECHO_N "(cached) $ECHO_C" >&6
7361
lt_cv_apple_cc_single_mod=no
7362
if test -z "${LT_MULTI_MODULE}"; then
7363
# By default we will add the -single_module flag. You can override
7364
# by either setting the environment variable LT_MULTI_MODULE
7365
# non-empty at configure time, or by adding -multi_module to the
7367
echo "int foo(void){return 1;}" > conftest.c
7368
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7369
-dynamiclib ${wl}-single_module conftest.c
7370
if test -f libconftest.dylib; then
7371
lt_cv_apple_cc_single_mod=yes
7372
rm -rf libconftest.dylib*
7377
{ echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7378
echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7379
{ echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7380
echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7381
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7382
echo $ECHO_N "(cached) $ECHO_C" >&6
7384
lt_cv_ld_exported_symbols_list=no
7385
save_LDFLAGS=$LDFLAGS
7386
echo "_main" > conftest.sym
7387
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7388
cat >conftest.$ac_ext <<_ACEOF
7391
cat confdefs.h >>conftest.$ac_ext
7392
cat >>conftest.$ac_ext <<_ACEOF
7393
/* end confdefs.h. */
7403
rm -f conftest.$ac_objext conftest$ac_exeext
7404
if { (ac_try="$ac_link"
7406
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7407
*) ac_try_echo=$ac_try;;
7409
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7410
(eval "$ac_link") 2>conftest.er1
7412
grep -v '^ *+' conftest.er1 >conftest.err
7414
cat conftest.err >&5
7415
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7416
(exit $ac_status); } && {
7417
test -z "$ac_c_werror_flag" ||
7418
test ! -s conftest.err
7419
} && test -s conftest$ac_exeext &&
7420
$as_test_x conftest$ac_exeext; then
7421
lt_cv_ld_exported_symbols_list=yes
7423
echo "$as_me: failed program was:" >&5
7424
sed 's/^/| /' conftest.$ac_ext >&5
7426
lt_cv_ld_exported_symbols_list=no
7429
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7430
conftest$ac_exeext conftest.$ac_ext
7431
LDFLAGS="$save_LDFLAGS"
7434
{ echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7435
echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7437
rhapsody* | darwin1.[0123])
7438
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7440
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7442
# if running on 10.5 or later, the deployment target defaults
7443
# to the OS version, if on x86, and 10.4, the deployment
7444
# target defaults to 10.4. Don't you love it?
7445
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7446
10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7447
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7449
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7451
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7455
if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7456
_lt_dar_single_mod='$single_module'
7458
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7459
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7461
_lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7463
if test "$DSYMUTIL" != ":"; then
7464
_lt_dsymutil="~$DSYMUTIL \$lib || :"
7475
# Check whether --enable-libtool-lock was given.
7476
if test "${enable_libtool_lock+set}" = set; then
7477
enableval=$enable_libtool_lock;
7480
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7483
# Check whether --with-pic was given.
7484
if test "${with_pic+set}" = set; then
7485
withval=$with_pic; pic_mode="$withval"
7490
test -z "$pic_mode" && pic_mode=default
7492
# Use C for the default configuration in the libtool script
7496
ac_cpp='$CPP $CPPFLAGS'
7497
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7498
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7499
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7502
# Source file extension for C test sources.
7505
# Object file extension for compiled C test sources.
7509
# Code to be used in simple compile tests
7510
lt_simple_compile_test_code="int some_variable = 0;"
7512
# Code to be used in simple link tests
7513
lt_simple_link_test_code='int main(){return(0);}'
7516
# If no C compiler was specified, use CC.
7519
# If no C compiler flags were specified, use CFLAGS.
7520
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7522
# Allow CC to be a program name with arguments.
7526
# save warnings/boilerplate of simple test code
7527
ac_outfile=conftest.$ac_objext
7528
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7529
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7530
_lt_compiler_boilerplate=`cat conftest.err`
7533
ac_outfile=conftest.$ac_objext
7534
echo "$lt_simple_link_test_code" >conftest.$ac_ext
7535
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7536
_lt_linker_boilerplate=`cat conftest.err`
7541
lt_prog_compiler_no_builtin_flag=
7543
if test "$GCC" = yes; then
7544
lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7547
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7548
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7549
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7550
echo $ECHO_N "(cached) $ECHO_C" >&6
7552
lt_cv_prog_compiler_rtti_exceptions=no
7553
ac_outfile=conftest.$ac_objext
7554
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7555
lt_compiler_flag="-fno-rtti -fno-exceptions"
7556
# Insert the option either (1) after the last *FLAGS variable, or
7557
# (2) before a word containing "conftest.", or (3) at the end.
7558
# Note that $ac_compile itself does not contain backslashes and begins
7559
# with a dollar sign (not a hyphen), so the echo should work correctly.
7560
# The option is referenced via a variable to avoid confusing sed.
7561
lt_compile=`echo "$ac_compile" | $SED \
7562
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7563
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7564
-e 's:$: $lt_compiler_flag:'`
7565
(eval echo "\"\$as_me:7565: $lt_compile\"" >&5)
7566
(eval "$lt_compile" 2>conftest.err)
7568
cat conftest.err >&5
7569
echo "$as_me:7569: \$? = $ac_status" >&5
7570
if (exit $ac_status) && test -s "$ac_outfile"; then
7571
# The compiler can only warn and ignore the option if not recognized
7572
# So say no if there are warnings other than the usual output.
7573
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7574
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7575
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7576
lt_cv_prog_compiler_rtti_exceptions=yes
7582
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7583
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7585
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7586
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7593
lt_prog_compiler_wl=
7594
lt_prog_compiler_pic=
7595
lt_prog_compiler_static=
7597
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7598
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7600
if test "$GCC" = yes; then
7601
lt_prog_compiler_wl='-Wl,'
7602
lt_prog_compiler_static='-static'
7606
# All AIX code is PIC.
7607
if test "$host_cpu" = ia64; then
7608
# AIX 5 now supports IA64 processor
7609
lt_prog_compiler_static='-Bstatic'
7614
# FIXME: we need at least 68020 code to build shared libraries, but
7615
# adding the `-m68020' flag to GCC prevents building anything better,
7617
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7620
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7621
# PIC is the default for these OSes.
7624
mingw* | cygwin* | pw32* | os2*)
7625
# This hack is so that the source file can tell whether it is being
7626
# built for inclusion in a dll (and should export symbols for example).
7627
# Although the cygwin gcc ignores -fPIC, still need this for old-style
7628
# (--disable-auto-import) libraries
7629
lt_prog_compiler_pic='-DDLL_EXPORT'
7632
darwin* | rhapsody*)
7633
# PIC is the default on this platform
7634
# Common symbols not allowed in MH_DYLIB files
7635
lt_prog_compiler_pic='-fno-common'
7639
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
7640
# Instead, we relocate shared libraries at runtime.
7644
# Just because we use GCC doesn't mean we suddenly get shared libraries
7645
# on systems that don't support them.
7646
lt_prog_compiler_can_build_shared=no
7651
if test -d /usr/nec; then
7652
lt_prog_compiler_pic=-Kconform_pic
7657
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7664
lt_prog_compiler_pic='-fPIC'
7670
lt_prog_compiler_pic='-fPIC'
7674
# PORTME Check for flag to pass linker flags through the system compiler.
7677
lt_prog_compiler_wl='-Wl,'
7678
if test "$host_cpu" = ia64; then
7679
# AIX 5 now supports IA64 processor
7680
lt_prog_compiler_static='-Bstatic'
7682
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7686
# PIC is the default on this platform
7687
# Common symbols not allowed in MH_DYLIB files
7688
case $cc_basename in
7690
lt_prog_compiler_pic='-qnocommon'
7691
lt_prog_compiler_wl='-Wl,'
7696
mingw* | cygwin* | pw32* | os2*)
7697
# This hack is so that the source file can tell whether it is being
7698
# built for inclusion in a dll (and should export symbols for example).
7699
lt_prog_compiler_pic='-DDLL_EXPORT'
7702
hpux9* | hpux10* | hpux11*)
7703
lt_prog_compiler_wl='-Wl,'
7704
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7711
lt_prog_compiler_pic='+Z'
7714
# Is there a better lt_prog_compiler_static that works with the bundled CC?
7715
lt_prog_compiler_static='${wl}-a ${wl}archive'
7718
irix5* | irix6* | nonstopux*)
7719
lt_prog_compiler_wl='-Wl,'
7720
# PIC (with -KPIC) is the default.
7721
lt_prog_compiler_static='-non_shared'
7725
lt_prog_compiler_pic='-KPIC'
7726
lt_prog_compiler_static='-Bstatic'
7729
linux* | k*bsd*-gnu)
7730
case $cc_basename in
7732
lt_prog_compiler_wl='-Wl,'
7733
lt_prog_compiler_pic='-KPIC'
7734
lt_prog_compiler_static='-static'
7736
pgcc* | pgf77* | pgf90* | pgf95*)
7737
# Portland Group compilers (*not* the Pentium gcc compiler,
7738
# which looks to be a dead project)
7739
lt_prog_compiler_wl='-Wl,'
7740
lt_prog_compiler_pic='-fpic'
7741
lt_prog_compiler_static='-Bstatic'
7744
lt_prog_compiler_wl='-Wl,'
7745
# All Alpha code is PIC.
7746
lt_prog_compiler_static='-non_shared'
7749
case `$CC -V 2>&1 | sed 5q` in
7752
lt_prog_compiler_pic='-KPIC'
7753
lt_prog_compiler_static='-Bstatic'
7754
lt_prog_compiler_wl='-Wl,'
7757
# Sun Fortran 8.3 passes all unrecognized flags to the linker
7758
lt_prog_compiler_pic='-KPIC'
7759
lt_prog_compiler_static='-Bstatic'
7760
lt_prog_compiler_wl=''
7767
osf3* | osf4* | osf5*)
7768
lt_prog_compiler_wl='-Wl,'
7769
# All OSF/1 code is PIC.
7770
lt_prog_compiler_static='-non_shared'
7774
lt_prog_compiler_static='-non_shared'
7778
lt_prog_compiler_pic='-KPIC'
7779
lt_prog_compiler_static='-Bstatic'
7780
case $cc_basename in
7782
lt_prog_compiler_wl='-Qoption ld ';;
7784
lt_prog_compiler_wl='-Wl,';;
7789
lt_prog_compiler_wl='-Qoption ld '
7790
lt_prog_compiler_pic='-PIC'
7791
lt_prog_compiler_static='-Bstatic'
7794
sysv4 | sysv4.2uw2* | sysv4.3*)
7795
lt_prog_compiler_wl='-Wl,'
7796
lt_prog_compiler_pic='-KPIC'
7797
lt_prog_compiler_static='-Bstatic'
7801
if test -d /usr/nec ;then
7802
lt_prog_compiler_pic='-Kconform_pic'
7803
lt_prog_compiler_static='-Bstatic'
7807
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7808
lt_prog_compiler_wl='-Wl,'
7809
lt_prog_compiler_pic='-KPIC'
7810
lt_prog_compiler_static='-Bstatic'
7814
lt_prog_compiler_wl='-Wl,'
7815
lt_prog_compiler_can_build_shared=no
7819
lt_prog_compiler_pic='-pic'
7820
lt_prog_compiler_static='-Bstatic'
7824
lt_prog_compiler_can_build_shared=no
7829
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7830
echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7833
# Check to make sure the PIC flag actually works.
7835
if test -n "$lt_prog_compiler_pic"; then
7837
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7838
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7839
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7840
echo $ECHO_N "(cached) $ECHO_C" >&6
7842
lt_cv_prog_compiler_pic_works=no
7843
ac_outfile=conftest.$ac_objext
7844
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7845
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7846
# Insert the option either (1) after the last *FLAGS variable, or
7847
# (2) before a word containing "conftest.", or (3) at the end.
7848
# Note that $ac_compile itself does not contain backslashes and begins
7849
# with a dollar sign (not a hyphen), so the echo should work correctly.
7850
# The option is referenced via a variable to avoid confusing sed.
7851
lt_compile=`echo "$ac_compile" | $SED \
7852
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7853
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7854
-e 's:$: $lt_compiler_flag:'`
7855
(eval echo "\"\$as_me:7855: $lt_compile\"" >&5)
7856
(eval "$lt_compile" 2>conftest.err)
7858
cat conftest.err >&5
7859
echo "$as_me:7859: \$? = $ac_status" >&5
7860
if (exit $ac_status) && test -s "$ac_outfile"; then
7861
# The compiler can only warn and ignore the option if not recognized
7862
# So say no if there are warnings other than the usual output.
7863
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7864
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7865
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7866
lt_cv_prog_compiler_pic_works=yes
7872
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7873
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7875
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7876
case $lt_prog_compiler_pic in
7878
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7881
lt_prog_compiler_pic=
7882
lt_prog_compiler_can_build_shared=no
7887
# For platforms which do not support PIC, -DPIC is meaningless:
7889
lt_prog_compiler_pic=
7892
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7897
# Check to make sure the static flag actually works.
7899
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7900
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7901
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7902
if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7903
echo $ECHO_N "(cached) $ECHO_C" >&6
7905
lt_cv_prog_compiler_static_works=no
7906
save_LDFLAGS="$LDFLAGS"
7907
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7908
echo "$lt_simple_link_test_code" > conftest.$ac_ext
7909
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7910
# The linker can only warn and ignore the option if not recognized
7911
# So say no if there are warnings
7912
if test -s conftest.err; then
7913
# Append any errors to the config.log.
7914
cat conftest.err 1>&5
7915
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7916
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7917
if diff conftest.exp conftest.er2 >/dev/null; then
7918
lt_cv_prog_compiler_static_works=yes
7921
lt_cv_prog_compiler_static_works=yes
7925
LDFLAGS="$save_LDFLAGS"
7928
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7929
echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
7931
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7934
lt_prog_compiler_static=
7938
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7939
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7940
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7941
echo $ECHO_N "(cached) $ECHO_C" >&6
7943
lt_cv_prog_compiler_c_o=no
7944
$rm -r conftest 2>/dev/null
7948
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7950
lt_compiler_flag="-o out/conftest2.$ac_objext"
7951
# Insert the option either (1) after the last *FLAGS variable, or
7952
# (2) before a word containing "conftest.", or (3) at the end.
7953
# Note that $ac_compile itself does not contain backslashes and begins
7954
# with a dollar sign (not a hyphen), so the echo should work correctly.
7955
lt_compile=`echo "$ac_compile" | $SED \
7956
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7957
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7958
-e 's:$: $lt_compiler_flag:'`
7959
(eval echo "\"\$as_me:7959: $lt_compile\"" >&5)
7960
(eval "$lt_compile" 2>out/conftest.err)
7962
cat out/conftest.err >&5
7963
echo "$as_me:7963: \$? = $ac_status" >&5
7964
if (exit $ac_status) && test -s out/conftest2.$ac_objext
7966
# The compiler can only warn and ignore the option if not recognized
7967
# So say no if there are warnings
7968
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7969
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7970
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7971
lt_cv_prog_compiler_c_o=yes
7976
# SGI C++ compiler will create directory out/ii_files/ for
7977
# template instantiation
7978
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7979
$rm out/* && rmdir out
7985
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7986
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7989
hard_links="nottested"
7990
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7991
# do not overwrite the value of need_locks provided by the user
7992
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7993
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7996
ln conftest.a conftest.b 2>/dev/null && hard_links=no
7998
ln conftest.a conftest.b 2>&5 || hard_links=no
7999
ln conftest.a conftest.b 2>/dev/null && hard_links=no
8000
{ echo "$as_me:$LINENO: result: $hard_links" >&5
8001
echo "${ECHO_T}$hard_links" >&6; }
8002
if test "$hard_links" = no; then
8003
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8004
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8011
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8012
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8015
allow_undefined_flag=
8016
enable_shared_with_static_runtimes=no
8018
archive_expsym_cmds=
8019
old_archive_From_new_cmds=
8020
old_archive_from_expsyms_cmds=
8021
export_dynamic_flag_spec=
8022
whole_archive_flag_spec=
8023
thread_safe_flag_spec=
8024
hardcode_libdir_flag_spec=
8025
hardcode_libdir_flag_spec_ld=
8026
hardcode_libdir_separator=
8029
hardcode_shlibpath_var=unsupported
8030
link_all_deplibs=unknown
8031
hardcode_automatic=no
8034
always_export_symbols=no
8035
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8036
# include_expsyms should be a list of space-separated symbols to be *always*
8037
# included in the symbol list
8039
# exclude_expsyms can be an extended regexp of symbols to exclude
8040
# it will be wrapped by ` (' and `)$', so one must not match beginning or
8041
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8042
# as well as any symbol that contains `d'.
8043
exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8044
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8045
# platforms (ab)use it in PIC code, but their linkers get confused if
8046
# the symbol is explicitly referenced. Since portable code cannot
8047
# rely on this symbol name, it's probably fine to never include it in
8048
# preloaded symbol tables.
8049
# Exclude shared library initialization/finalization symbols.
8050
extract_expsyms_cmds=
8051
# Just being paranoid about ensuring that cc_basename is set.
8052
for cc_temp in $compiler""; do
8054
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8055
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8060
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8063
cygwin* | mingw* | pw32*)
8064
# FIXME: the MSVC++ port hasn't been tested in a loooong time
8065
# When not using gcc, we currently assume that we are using
8066
# Microsoft Visual C++.
8067
if test "$GCC" != yes; then
8072
# we just hope/assume this is gcc and not c89 (= MSVC++)
8081
if test "$with_gnu_ld" = yes; then
8082
# If archive_cmds runs LD, not CC, wlarc should be empty
8085
# Set some defaults for GNU ld with shared library support. These
8086
# are reset later if shared libraries are not supported. Putting them
8087
# here allows them to be overridden if necessary.
8088
runpath_var=LD_RUN_PATH
8089
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8090
export_dynamic_flag_spec='${wl}--export-dynamic'
8091
# ancient GNU ld didn't support --whole-archive et. al.
8092
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8093
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8095
whole_archive_flag_spec=
8097
supports_anon_versioning=no
8098
case `$LD -v 2>/dev/null` in
8099
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8100
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8101
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8102
*\ 2.11.*) ;; # other 2.11 versions
8103
*) supports_anon_versioning=yes ;;
8106
# See if GNU ld supports shared libraries.
8109
# On AIX/PPC, the GNU linker is very broken
8110
if test "$host_cpu" != ia64; then
8114
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8115
*** to be unable to reliably create shared libraries on AIX.
8116
*** Therefore, libtool is disabling shared libraries support. If you
8117
*** really care for shared libraries, you may want to modify your PATH
8118
*** so that a non-GNU linker is found, and then restart.
8125
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)'
8126
hardcode_libdir_flag_spec='-L$libdir'
8127
hardcode_minus_L=yes
8129
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8130
# that the semantics of dynamic libraries on AmigaOS, at least up
8131
# to version 4, is to share data among multiple programs linked
8132
# with the same dynamic library. Since this doesn't match the
8133
# behavior of shared libraries on other platforms, we can't use
8139
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8140
allow_undefined_flag=unsupported
8141
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8142
# support --undefined. This deserves some investigation. FIXME
8143
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8149
cygwin* | mingw* | pw32*)
8150
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8151
# as there is no search path for DLLs.
8152
hardcode_libdir_flag_spec='-L$libdir'
8153
allow_undefined_flag=unsupported
8154
always_export_symbols=no
8155
enable_shared_with_static_runtimes=yes
8156
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8158
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8159
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8160
# If the export-symbols file already is a .def file (1st line
8161
# is EXPORTS), use it as is; otherwise, prepend...
8162
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8163
cp $export_symbols $output_objdir/$soname.def;
8165
echo EXPORTS > $output_objdir/$soname.def;
8166
cat $export_symbols >> $output_objdir/$soname.def;
8168
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8176
hardcode_shlibpath_var=no
8177
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8178
export_dynamic_flag_spec='${wl}-E'
8179
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8180
# Instead, shared libraries are loaded at an image base (0x10000000 by
8181
# default) and relocated if they conflict, which is a slow very memory
8182
# consuming and fragmenting process. To avoid this, we pick a random,
8183
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8184
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
8185
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8186
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'
8189
gnu* | linux* | k*bsd*-gnu)
8190
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8192
case $cc_basename,$host_cpu in
8193
pgcc*) # Portland Group C compiler
8194
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'
8195
tmp_addflag=' $pic_flag'
8197
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8198
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'
8199
tmp_addflag=' $pic_flag -Mnomain' ;;
8200
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8201
tmp_addflag=' -i_dynamic' ;;
8202
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8203
tmp_addflag=' -i_dynamic -nofor_main' ;;
8204
ifc* | ifort*) # Intel Fortran compiler
8205
tmp_addflag=' -nofor_main' ;;
8207
case `$CC -V 2>&1 | sed 5q` in
8208
*Sun\ C*) # Sun C 5.9
8209
whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8210
tmp_sharedflag='-G' ;;
8211
*Sun\ F*) # Sun Fortran 8.3
8212
tmp_sharedflag='-G' ;;
8214
tmp_sharedflag='-shared' ;;
8216
archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8218
if test $supports_anon_versioning = yes; then
8219
archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8220
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8221
$echo "local: *; };" >> $output_objdir/$libname.ver~
8222
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8230
netbsd* | netbsdelf*-gnu)
8231
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8232
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8235
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8236
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8241
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8245
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8246
*** create shared libraries on Solaris systems. Therefore, libtool
8247
*** is disabling shared libraries support. We urge you to upgrade GNU
8248
*** binutils to release 2.9.1 or newer. Another option is to modify
8249
*** your PATH or compiler configuration so that the native linker is
8250
*** used, and then restart.
8253
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8254
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8255
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8261
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8262
case `$LD -v 2>&1` in
8263
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8267
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8268
*** reliably create shared libraries on SCO systems. Therefore, libtool
8269
*** is disabling shared libraries support. We urge you to upgrade GNU
8270
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8271
*** your PATH or compiler configuration so that the native linker is
8272
*** used, and then restart.
8277
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8278
hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8279
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8280
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8289
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8292
hardcode_shlibpath_var=no
8296
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8297
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8298
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8305
if test "$ld_shlibs" = no; then
8307
hardcode_libdir_flag_spec=
8308
export_dynamic_flag_spec=
8309
whole_archive_flag_spec=
8312
# PORTME fill in a description of your system's linker (not GNU ld)
8315
allow_undefined_flag=unsupported
8316
always_export_symbols=yes
8317
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'
8318
# Note: this linker hardcodes the directories in LIBPATH if there
8319
# are no directories specified by -L.
8320
hardcode_minus_L=yes
8321
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8322
# Neither direct hardcoding nor static linking is supported with a
8324
hardcode_direct=unsupported
8329
if test "$host_cpu" = ia64; then
8330
# On IA64, the linker does run time linking by default, so we don't
8331
# have to do anything special.
8332
aix_use_runtimelinking=no
8333
exp_sym_flag='-Bexport'
8336
# If we're using GNU nm, then we don't want the "-C" option.
8337
# -C means demangle to AIX nm, but means don't demangle with GNU nm
8338
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8339
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'
8341
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'
8343
aix_use_runtimelinking=no
8345
# Test if we are trying to use run time linking or normal
8346
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8347
# need to do runtime linking.
8348
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8349
for ld_flag in $LDFLAGS; do
8350
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8351
aix_use_runtimelinking=yes
8358
exp_sym_flag='-bexport'
8359
no_entry_flag='-bnoentry'
8362
# When large executables or shared objects are built, AIX ld can
8363
# have problems creating the table of contents. If linking a library
8364
# or program results in "error TOC overflow" add -mminimal-toc to
8365
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8366
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8370
hardcode_libdir_separator=':'
8371
link_all_deplibs=yes
8373
if test "$GCC" = yes; then
8374
case $host_os in aix4.[012]|aix4.[012].*)
8375
# We only want to do this on AIX 4.2 and lower, the check
8376
# below for broken collect2 doesn't work under 4.3+
8377
collect2name=`${CC} -print-prog-name=collect2`
8378
if test -f "$collect2name" && \
8379
strings "$collect2name" | grep resolve_lib_name >/dev/null
8381
# We have reworked collect2
8384
# We have old collect2
8385
hardcode_direct=unsupported
8386
# It fails to find uninstalled libraries when the uninstalled
8387
# path is not listed in the libpath. Setting hardcode_minus_L
8388
# to unsupported forces relinking
8389
hardcode_minus_L=yes
8390
hardcode_libdir_flag_spec='-L$libdir'
8391
hardcode_libdir_separator=
8395
shared_flag='-shared'
8396
if test "$aix_use_runtimelinking" = yes; then
8397
shared_flag="$shared_flag "'${wl}-G'
8401
if test "$host_cpu" = ia64; then
8402
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8403
# chokes on -Wl,-G. The following line is correct:
8406
if test "$aix_use_runtimelinking" = yes; then
8407
shared_flag='${wl}-G'
8409
shared_flag='${wl}-bM:SRE'
8414
# It seems that -bexpall does not export symbols beginning with
8415
# underscore (_), so it is better to generate a list of symbols to export.
8416
always_export_symbols=yes
8417
if test "$aix_use_runtimelinking" = yes; then
8418
# Warning - without using the other runtime loading flags (-brtl),
8419
# -berok will link without error, but may produce a broken library.
8420
allow_undefined_flag='-berok'
8421
# Determine the default libpath from the value encoded in an empty executable.
8422
cat >conftest.$ac_ext <<_ACEOF
8425
cat confdefs.h >>conftest.$ac_ext
8426
cat >>conftest.$ac_ext <<_ACEOF
8427
/* end confdefs.h. */
8437
rm -f conftest.$ac_objext conftest$ac_exeext
8438
if { (ac_try="$ac_link"
8440
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8441
*) ac_try_echo=$ac_try;;
8443
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8444
(eval "$ac_link") 2>conftest.er1
8446
grep -v '^ *+' conftest.er1 >conftest.err
8448
cat conftest.err >&5
8449
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8450
(exit $ac_status); } && {
8451
test -z "$ac_c_werror_flag" ||
8452
test ! -s conftest.err
8453
} && test -s conftest$ac_exeext &&
8454
$as_test_x conftest$ac_exeext; then
8456
lt_aix_libpath_sed='
8457
/Import File Strings/,/^$/ {
8463
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8464
# Check for a 64-bit object if we didn't find anything.
8465
if test -z "$aix_libpath"; then
8466
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8469
echo "$as_me: failed program was:" >&5
8470
sed 's/^/| /' conftest.$ac_ext >&5
8475
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8476
conftest$ac_exeext conftest.$ac_ext
8477
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8479
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8480
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"
8482
if test "$host_cpu" = ia64; then
8483
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8484
allow_undefined_flag="-z nodefs"
8485
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"
8487
# Determine the default libpath from the value encoded in an empty executable.
8488
cat >conftest.$ac_ext <<_ACEOF
8491
cat confdefs.h >>conftest.$ac_ext
8492
cat >>conftest.$ac_ext <<_ACEOF
8493
/* end confdefs.h. */
8503
rm -f conftest.$ac_objext conftest$ac_exeext
8504
if { (ac_try="$ac_link"
8506
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8507
*) ac_try_echo=$ac_try;;
8509
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8510
(eval "$ac_link") 2>conftest.er1
8512
grep -v '^ *+' conftest.er1 >conftest.err
8514
cat conftest.err >&5
8515
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8516
(exit $ac_status); } && {
8517
test -z "$ac_c_werror_flag" ||
8518
test ! -s conftest.err
8519
} && test -s conftest$ac_exeext &&
8520
$as_test_x conftest$ac_exeext; then
8522
lt_aix_libpath_sed='
8523
/Import File Strings/,/^$/ {
8529
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8530
# Check for a 64-bit object if we didn't find anything.
8531
if test -z "$aix_libpath"; then
8532
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8535
echo "$as_me: failed program was:" >&5
8536
sed 's/^/| /' conftest.$ac_ext >&5
8541
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8542
conftest$ac_exeext conftest.$ac_ext
8543
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8545
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8546
# Warning - without using the other run time loading flags,
8547
# -berok will link without error, but may produce a broken library.
8548
no_undefined_flag=' ${wl}-bernotok'
8549
allow_undefined_flag=' ${wl}-berok'
8550
# Exported symbols can be pulled into shared objects from archives
8551
whole_archive_flag_spec='$convenience'
8552
archive_cmds_need_lc=yes
8553
# This is similar to how AIX traditionally builds its shared libraries.
8554
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'
8560
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)'
8561
hardcode_libdir_flag_spec='-L$libdir'
8562
hardcode_minus_L=yes
8563
# see comment about different semantics on the GNU ld section
8568
export_dynamic_flag_spec=-rdynamic
8571
cygwin* | mingw* | pw32*)
8572
# When not using gcc, we currently assume that we are using
8573
# Microsoft Visual C++.
8574
# hardcode_libdir_flag_spec is actually meaningless, as there is
8575
# no search path for DLLs.
8576
hardcode_libdir_flag_spec=' '
8577
allow_undefined_flag=unsupported
8578
# Tell ltmain to make .lib files, not .a files.
8580
# Tell ltmain to make .dll files, not .so files.
8582
# FIXME: Setting linknames here is a bad hack.
8583
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8584
# The linker will automatically build a .lib file if we build a DLL.
8585
old_archive_From_new_cmds='true'
8586
# FIXME: Should let the user specify the lib program.
8587
old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8588
fix_srcfile_path='`cygpath -w "$srcfile"`'
8589
enable_shared_with_static_runtimes=yes
8592
darwin* | rhapsody*)
8594
rhapsody* | darwin1.[012])
8595
allow_undefined_flag='${wl}-undefined ${wl}suppress'
8598
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8599
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8601
case ${MACOSX_DEPLOYMENT_TARGET} in
8603
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8606
allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8612
archive_cmds_need_lc=no
8614
hardcode_automatic=yes
8615
hardcode_shlibpath_var=unsupported
8616
whole_archive_flag_spec=''
8617
link_all_deplibs=yes
8618
if test "$GCC" = yes ; then
8619
output_verbose_link_cmd='echo'
8620
archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8621
module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8622
archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8623
module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8625
case $cc_basename in
8627
output_verbose_link_cmd='echo'
8628
archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8629
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8630
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8631
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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8632
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}'
8642
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8643
hardcode_libdir_flag_spec='-L$libdir'
8644
hardcode_shlibpath_var=no
8651
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8652
# support. Future versions do this automatically, but an explicit c++rt0.o
8653
# does not break anything, and helps significantly (at the cost of a little
8656
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8657
hardcode_libdir_flag_spec='-R$libdir'
8659
hardcode_shlibpath_var=no
8662
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
8664
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8666
hardcode_minus_L=yes
8667
hardcode_shlibpath_var=no
8670
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8671
freebsd* | dragonfly*)
8672
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8673
hardcode_libdir_flag_spec='-R$libdir'
8675
hardcode_shlibpath_var=no
8679
if test "$GCC" = yes; then
8680
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'
8682
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'
8684
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8685
hardcode_libdir_separator=:
8688
# hardcode_minus_L: Not really in the search PATH,
8689
# but as the default location of the library.
8690
hardcode_minus_L=yes
8691
export_dynamic_flag_spec='${wl}-E'
8695
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8696
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8698
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8700
if test "$with_gnu_ld" = no; then
8701
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8702
hardcode_libdir_separator=:
8705
export_dynamic_flag_spec='${wl}-E'
8707
# hardcode_minus_L: Not really in the search PATH,
8708
# but as the default location of the library.
8709
hardcode_minus_L=yes
8714
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8717
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8720
archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8723
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8729
archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8732
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8735
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8739
if test "$with_gnu_ld" = no; then
8740
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8741
hardcode_libdir_separator=:
8745
hardcode_libdir_flag_spec_ld='+b $libdir'
8747
hardcode_shlibpath_var=no
8751
export_dynamic_flag_spec='${wl}-E'
8753
# hardcode_minus_L: Not really in the search PATH,
8754
# but as the default location of the library.
8755
hardcode_minus_L=yes
8761
irix5* | irix6* | nonstopux*)
8762
if test "$GCC" = yes; then
8763
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'
8765
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'
8766
hardcode_libdir_flag_spec_ld='-rpath $libdir'
8768
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8769
hardcode_libdir_separator=:
8770
link_all_deplibs=yes
8773
netbsd* | netbsdelf*-gnu)
8774
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8775
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8777
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8779
hardcode_libdir_flag_spec='-R$libdir'
8781
hardcode_shlibpath_var=no
8785
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8787
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8788
hardcode_libdir_separator=:
8789
hardcode_shlibpath_var=no
8793
if test -f /usr/libexec/ld.so; then
8795
hardcode_shlibpath_var=no
8796
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8797
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8798
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8799
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8800
export_dynamic_flag_spec='${wl}-E'
8803
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8804
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8805
hardcode_libdir_flag_spec='-R$libdir'
8808
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8809
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8819
hardcode_libdir_flag_spec='-L$libdir'
8820
hardcode_minus_L=yes
8821
allow_undefined_flag=unsupported
8822
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'
8823
old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8827
if test "$GCC" = yes; then
8828
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8829
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'
8831
allow_undefined_flag=' -expect_unresolved \*'
8832
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'
8834
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8835
hardcode_libdir_separator=:
8838
osf4* | osf5*) # as osf3* with the addition of -msym flag
8839
if test "$GCC" = yes; then
8840
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8841
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'
8842
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8844
allow_undefined_flag=' -expect_unresolved \*'
8845
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'
8846
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8847
$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'
8849
# Both c and cxx compiler support -rpath directly
8850
hardcode_libdir_flag_spec='-rpath $libdir'
8852
hardcode_libdir_separator=:
8856
no_undefined_flag=' -z text'
8857
if test "$GCC" = yes; then
8859
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8860
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8861
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8864
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8865
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8866
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8868
hardcode_libdir_flag_spec='-R$libdir'
8869
hardcode_shlibpath_var=no
8871
solaris2.[0-5] | solaris2.[0-5].*) ;;
8873
# The compiler driver will combine and reorder linker options,
8874
# but understands `-z linker_flag'. GCC discards it without `$wl',
8875
# but is careful enough not to reorder.
8876
# Supported since Solaris 2.6 (maybe 2.5.1?)
8877
if test "$GCC" = yes; then
8878
whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8880
whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8884
link_all_deplibs=yes
8888
if test "x$host_vendor" = xsequent; then
8889
# Use $CC to link under sequent, because it throws in some extra .o
8890
# files that make .init and .fini sections work.
8891
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8893
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8895
hardcode_libdir_flag_spec='-L$libdir'
8897
hardcode_minus_L=yes
8898
hardcode_shlibpath_var=no
8902
case $host_vendor in
8904
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8905
hardcode_direct=yes # is this really true???
8908
## LD is ld it makes a PLAMLIB
8909
## CC just makes a GrossModule.
8910
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8911
reload_cmds='$CC -r -o $output$reload_objs'
8915
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8916
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8919
runpath_var='LD_RUN_PATH'
8920
hardcode_shlibpath_var=no
8924
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8925
hardcode_shlibpath_var=no
8926
export_dynamic_flag_spec='-Bexport'
8930
if test -d /usr/nec; then
8931
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8932
hardcode_shlibpath_var=no
8933
runpath_var=LD_RUN_PATH
8934
hardcode_runpath_var=yes
8939
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8940
no_undefined_flag='${wl}-z,text'
8941
archive_cmds_need_lc=no
8942
hardcode_shlibpath_var=no
8943
runpath_var='LD_RUN_PATH'
8945
if test "$GCC" = yes; then
8946
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8947
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8949
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8950
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8954
sysv5* | sco3.2v5* | sco5v6*)
8955
# Note: We can NOT use -z defs as we might desire, because we do not
8956
# link with -lc, and that would cause any symbols used from libc to
8957
# always be unresolved, which means just about no library would
8958
# ever link correctly. If we're not using GNU ld we use -z text
8959
# though, which does catch some bad symbols but isn't as heavy-handed
8961
no_undefined_flag='${wl}-z,text'
8962
allow_undefined_flag='${wl}-z,nodefs'
8963
archive_cmds_need_lc=no
8964
hardcode_shlibpath_var=no
8965
hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8966
hardcode_libdir_separator=':'
8967
link_all_deplibs=yes
8968
export_dynamic_flag_spec='${wl}-Bexport'
8969
runpath_var='LD_RUN_PATH'
8971
if test "$GCC" = yes; then
8972
archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8973
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8975
archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8976
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8981
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8982
hardcode_libdir_flag_spec='-L$libdir'
8983
hardcode_shlibpath_var=no
8992
{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8993
echo "${ECHO_T}$ld_shlibs" >&6; }
8994
test "$ld_shlibs" = no && can_build_shared=no
8997
# Do we need to explicitly link libc?
8999
case "x$archive_cmds_need_lc" in
9001
# Assume -lc should be added
9002
archive_cmds_need_lc=yes
9004
if test "$enable_shared" = yes && test "$GCC" = yes; then
9005
case $archive_cmds in
9007
# FIXME: we may have to deal with multi-command sequences.
9010
# Test whether the compiler implicitly links with -lc since on some
9011
# systems, -lgcc has to come before -lc. If gcc already passes -lc
9012
# to ld, don't add -lc before -lgcc.
9013
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9014
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9016
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9018
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9019
(eval $ac_compile) 2>&5
9021
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9022
(exit $ac_status); } 2>conftest.err; then
9025
libobjs=conftest.$ac_objext
9027
wl=$lt_prog_compiler_wl
9028
pic_flag=$lt_prog_compiler_pic
9034
lt_save_allow_undefined_flag=$allow_undefined_flag
9035
allow_undefined_flag=
9036
if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9037
(eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9039
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9040
(exit $ac_status); }
9042
archive_cmds_need_lc=no
9044
archive_cmds_need_lc=yes
9046
allow_undefined_flag=$lt_save_allow_undefined_flag
9048
cat conftest.err 1>&5
9051
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9052
echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9059
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9060
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9062
libname_spec='lib$name'
9070
shlibpath_overrides_runpath=unknown
9072
dynamic_linker="$host_os ld.so"
9073
sys_lib_dlsearch_path_spec="/lib /usr/lib"
9075
if test "$GCC" = yes; then
9077
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9078
*) lt_awk_arg="/^libraries:/" ;;
9080
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9081
if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9082
# if the path contains ";" then we assume it to be the separator
9083
# otherwise default to the standard path separator (i.e. ":") - it is
9084
# assumed that no part of a normal pathname contains ";" but that should
9085
# okay in the real world where ";" in dirpaths is itself problematic.
9086
lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9088
lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9090
# Ok, now we have the path, separated by spaces, we can step through it
9091
# and add multilib dir if necessary.
9092
lt_tmp_lt_search_path_spec=
9093
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9094
for lt_sys_path in $lt_search_path_spec; do
9095
if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9096
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9098
test -d "$lt_sys_path" && \
9099
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9102
lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9103
BEGIN {RS=" "; FS="/|\n";} {
9106
for (lt_i = NF; lt_i > 0; lt_i--) {
9107
if ($lt_i != "" && $lt_i != ".") {
9108
if ($lt_i == "..") {
9111
if (lt_count == 0) {
9112
lt_foo="/" $lt_i lt_foo;
9119
if (lt_foo != "") { lt_freq[lt_foo]++; }
9120
if (lt_freq[lt_foo] == 1) { print lt_foo; }
9122
sys_lib_search_path_spec=`echo $lt_search_path_spec`
9124
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9126
need_lib_prefix=unknown
9127
hardcode_into_libs=no
9129
# when you set need_version to no, make sure it does not cause -set_version
9130
# flags to be left without arguments
9131
need_version=unknown
9136
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9137
shlibpath_var=LIBPATH
9139
# AIX 3 has no versioning support, so we append a major version to the name.
9140
soname_spec='${libname}${release}${shared_ext}$major'
9147
hardcode_into_libs=yes
9148
if test "$host_cpu" = ia64; then
9149
# AIX 5 supports IA64
9150
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9151
shlibpath_var=LD_LIBRARY_PATH
9153
# With GCC up to 2.95.x, collect2 would create an import file
9154
# for dependence libraries. The import file would start with
9155
# the line `#! .'. This would cause the generated library to
9156
# depend on `.', always an invalid library. This was fixed in
9157
# development snapshots of GCC prior to 3.0.
9159
aix4 | aix4.[01] | aix4.[01].*)
9160
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9162
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9169
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9170
# soname into executable. Probably we can add versioning support to
9171
# collect2, so additional links can be useful in future.
9172
if test "$aix_use_runtimelinking" = yes; then
9173
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
9174
# instead of lib<name>.a to let people know that these are not
9175
# typical AIX shared libraries.
9176
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9178
# We preserve .a as extension for shared libraries through AIX4.2
9179
# and later when we are not doing run time linking.
9180
library_names_spec='${libname}${release}.a $libname.a'
9181
soname_spec='${libname}${release}${shared_ext}$major'
9183
shlibpath_var=LIBPATH
9188
library_names_spec='$libname.ixlibrary $libname.a'
9189
# Create ${libname}_ixlibrary.a entries in /sys/libs.
9190
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'
9194
library_names_spec='${libname}${shared_ext}'
9195
dynamic_linker="$host_os ld.so"
9196
shlibpath_var=LIBRARY_PATH
9202
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9203
soname_spec='${libname}${release}${shared_ext}$major'
9204
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9205
shlibpath_var=LD_LIBRARY_PATH
9206
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9207
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9208
# the default ld.so.conf also contains /usr/contrib/lib and
9209
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9210
# libtool to hard-code these into programs
9213
cygwin* | mingw* | pw32*)
9214
version_type=windows
9219
case $GCC,$host_os in
9220
yes,cygwin* | yes,mingw* | yes,pw32*)
9221
library_names_spec='$libname.dll.a'
9222
# DLL is installed to $(libdir)/../bin by postinstall_cmds
9223
postinstall_cmds='base_file=`basename \${file}`~
9224
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9225
dldir=$destdir/`dirname \$dlpath`~
9226
test -d \$dldir || mkdir -p \$dldir~
9227
$install_prog $dir/$dlname \$dldir/$dlname~
9228
chmod a+x \$dldir/$dlname'
9229
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9230
dlpath=$dir/\$dldll~
9232
shlibpath_overrides_runpath=yes
9236
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
9237
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9238
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9241
# MinGW DLLs use traditional 'lib' prefix
9242
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9243
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9244
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9245
# It is most probably a Windows format PATH printed by
9246
# mingw gcc, but we are running on Cygwin. Gcc prints its search
9247
# path with ; separators, and with drive letters. We can handle the
9248
# drive letters (cygwin fileutils understands them), so leave them,
9249
# especially as we might pass files found there to a mingw objdump,
9250
# which wouldn't understand a cygwinified path. Ahh.
9251
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9253
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9257
# pw32 DLLs use 'pw' prefix rather than 'lib'
9258
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9264
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9267
dynamic_linker='Win32 ld.exe'
9268
# FIXME: first we should search . and the directory the executable is in
9272
darwin* | rhapsody*)
9273
dynamic_linker="$host_os dyld"
9277
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9278
soname_spec='${libname}${release}${major}$shared_ext'
9279
shlibpath_overrides_runpath=yes
9280
shlibpath_var=DYLD_LIBRARY_PATH
9281
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9283
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9284
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9291
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9292
soname_spec='${libname}${release}${shared_ext}$major'
9293
shlibpath_var=LD_LIBRARY_PATH
9300
freebsd* | dragonfly*)
9301
# DragonFly does not have aout. When/if they implement a new
9302
# versioning mechanism, adjust this.
9303
if test -x /usr/bin/objformat; then
9304
objformat=`/usr/bin/objformat`
9307
freebsd[123]*) objformat=aout ;;
9311
version_type=freebsd-$objformat
9312
case $version_type in
9314
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9319
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9323
shlibpath_var=LD_LIBRARY_PATH
9326
shlibpath_overrides_runpath=yes
9328
freebsd3.[01]* | freebsdelf3.[01]*)
9329
shlibpath_overrides_runpath=yes
9330
hardcode_into_libs=yes
9332
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9333
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9334
shlibpath_overrides_runpath=no
9335
hardcode_into_libs=yes
9337
*) # from 4.6 on, and DragonFly
9338
shlibpath_overrides_runpath=yes
9339
hardcode_into_libs=yes
9348
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9349
soname_spec='${libname}${release}${shared_ext}$major'
9350
shlibpath_var=LD_LIBRARY_PATH
9351
hardcode_into_libs=yes
9354
hpux9* | hpux10* | hpux11*)
9355
# Give a soname corresponding to the major version so that dld.sl refuses to
9356
# link against other versions.
9363
hardcode_into_libs=yes
9364
dynamic_linker="$host_os dld.so"
9365
shlibpath_var=LD_LIBRARY_PATH
9366
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9367
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9368
soname_spec='${libname}${release}${shared_ext}$major'
9369
if test "X$HPUX_IA64_MODE" = X32; then
9370
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9372
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9374
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9378
hardcode_into_libs=yes
9379
dynamic_linker="$host_os dld.sl"
9380
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9381
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9382
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9383
soname_spec='${libname}${release}${shared_ext}$major'
9384
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9385
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9389
dynamic_linker="$host_os dld.sl"
9390
shlibpath_var=SHLIB_PATH
9391
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9392
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9393
soname_spec='${libname}${release}${shared_ext}$major'
9396
# HP-UX runs *really* slowly unless shared libraries are mode 555.
9397
postinstall_cmds='chmod 555 $lib'
9404
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9405
soname_spec='${libname}${release}${shared_ext}$major'
9406
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9407
shlibpath_var=LD_LIBRARY_PATH
9408
shlibpath_overrides_runpath=no
9409
hardcode_into_libs=yes
9412
irix5* | irix6* | nonstopux*)
9414
nonstopux*) version_type=nonstopux ;;
9416
if test "$lt_cv_prog_gnu_ld" = yes; then
9424
soname_spec='${libname}${release}${shared_ext}$major'
9425
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9427
irix5* | nonstopux*)
9431
case $LD in # libtool.m4 will add one of these switches to LD
9432
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9433
libsuff= shlibsuff= libmagic=32-bit;;
9434
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9435
libsuff=32 shlibsuff=N32 libmagic=N32;;
9436
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9437
libsuff=64 shlibsuff=64 libmagic=64-bit;;
9438
*) libsuff= shlibsuff= libmagic=never-match;;
9442
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9443
shlibpath_overrides_runpath=no
9444
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9445
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9446
hardcode_into_libs=yes
9449
# No shared lib support for Linux oldld, aout, or coff.
9450
linux*oldld* | linux*aout* | linux*coff*)
9454
# This must be Linux ELF.
9455
linux* | k*bsd*-gnu)
9459
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9460
soname_spec='${libname}${release}${shared_ext}$major'
9461
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9462
shlibpath_var=LD_LIBRARY_PATH
9463
shlibpath_overrides_runpath=no
9464
# This implies no fast_install, which is unacceptable.
9465
# Some rework will be needed to allow for fast_install
9466
# before this can be enabled.
9467
hardcode_into_libs=yes
9469
# Append ld.so.conf contents to the search path
9470
if test -f /etc/ld.so.conf; then
9471
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9472
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9475
# We used to test for /lib/ld.so.1 and disable shared libraries on
9476
# powerpc, because MkLinux only supported shared libraries with the
9477
# GNU dynamic linker. Since this was broken with cross compilers,
9478
# most powerpc-linux boxes support dynamic linking these days and
9479
# people can always --disable-shared, the test was removed, and we
9480
# assume the GNU/Linux dynamic linker is in use.
9481
dynamic_linker='GNU/Linux ld.so'
9488
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9489
soname_spec='${libname}${release}${shared_ext}$major'
9490
shlibpath_var=LD_LIBRARY_PATH
9491
shlibpath_overrides_runpath=no
9492
hardcode_into_libs=yes
9493
dynamic_linker='NetBSD ld.elf_so'
9500
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9501
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9502
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9503
dynamic_linker='NetBSD (a.out) ld.so'
9505
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9506
soname_spec='${libname}${release}${shared_ext}$major'
9507
dynamic_linker='NetBSD ld.elf_so'
9509
shlibpath_var=LD_LIBRARY_PATH
9510
shlibpath_overrides_runpath=yes
9511
hardcode_into_libs=yes
9516
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9517
shlibpath_var=LD_LIBRARY_PATH
9518
shlibpath_overrides_runpath=yes
9525
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9526
soname_spec='${libname}${release}${shared_ext}$major'
9527
shlibpath_var=LD_LIBRARY_PATH
9528
shlibpath_overrides_runpath=yes
9533
sys_lib_dlsearch_path_spec="/usr/lib"
9535
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9537
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9538
*) need_version=no ;;
9540
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9541
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9542
shlibpath_var=LD_LIBRARY_PATH
9543
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9545
openbsd2.[89] | openbsd2.[89].*)
9546
shlibpath_overrides_runpath=no
9549
shlibpath_overrides_runpath=yes
9553
shlibpath_overrides_runpath=yes
9558
libname_spec='$name'
9561
library_names_spec='$libname${shared_ext} $libname.a'
9562
dynamic_linker='OS/2 ld.exe'
9563
shlibpath_var=LIBPATH
9566
osf3* | osf4* | osf5*)
9570
soname_spec='${libname}${release}${shared_ext}$major'
9571
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9572
shlibpath_var=LD_LIBRARY_PATH
9573
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9574
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9585
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9586
soname_spec='${libname}${release}${shared_ext}$major'
9587
shlibpath_var=LD_LIBRARY_PATH
9588
shlibpath_overrides_runpath=yes
9589
hardcode_into_libs=yes
9590
# ldd complains unless libraries are executable
9591
postinstall_cmds='chmod +x $lib'
9596
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9597
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9598
shlibpath_var=LD_LIBRARY_PATH
9599
shlibpath_overrides_runpath=yes
9600
if test "$with_gnu_ld" = yes; then
9608
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9609
soname_spec='${libname}${release}${shared_ext}$major'
9610
shlibpath_var=LD_LIBRARY_PATH
9611
case $host_vendor in
9613
shlibpath_overrides_runpath=no
9615
export_dynamic_flag_spec='${wl}-Blargedynsym'
9616
runpath_var=LD_RUN_PATH
9624
shlibpath_overrides_runpath=no
9625
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9631
if test -d /usr/nec ;then
9633
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9634
soname_spec='$libname${shared_ext}.$major'
9635
shlibpath_var=LD_LIBRARY_PATH
9639
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9640
version_type=freebsd-elf
9643
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9644
soname_spec='${libname}${release}${shared_ext}$major'
9645
shlibpath_var=LD_LIBRARY_PATH
9646
hardcode_into_libs=yes
9647
if test "$with_gnu_ld" = yes; then
9648
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9649
shlibpath_overrides_runpath=no
9651
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9652
shlibpath_overrides_runpath=yes
9655
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9659
sys_lib_dlsearch_path_spec='/usr/lib'
9664
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9665
soname_spec='${libname}${release}${shared_ext}$major'
9666
shlibpath_var=LD_LIBRARY_PATH
9673
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9674
echo "${ECHO_T}$dynamic_linker" >&6; }
9675
test "$dynamic_linker" = no && can_build_shared=no
9677
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9678
echo $ECHO_N "(cached) $ECHO_C" >&6
9680
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9683
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9684
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9685
echo $ECHO_N "(cached) $ECHO_C" >&6
9687
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9690
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9692
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9693
if test "$GCC" = yes; then
9694
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9697
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9698
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9700
if test -n "$hardcode_libdir_flag_spec" || \
9701
test -n "$runpath_var" || \
9702
test "X$hardcode_automatic" = "Xyes" ; then
9704
# We can hardcode non-existant directories.
9705
if test "$hardcode_direct" != no &&
9706
# If the only mechanism to avoid hardcoding is shlibpath_var, we
9707
# have to relink, otherwise we might link with an installed library
9708
# when we should be linking with a yet-to-be-installed one
9709
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9710
test "$hardcode_minus_L" != no; then
9711
# Linking always hardcodes the temporary library directory.
9712
hardcode_action=relink
9714
# We can link without hardcoding, and we can hardcode nonexisting dirs.
9715
hardcode_action=immediate
9718
# We cannot hardcode anything, or else we can only hardcode existing
9720
hardcode_action=unsupported
9722
{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
9723
echo "${ECHO_T}$hardcode_action" >&6; }
9725
if test "$hardcode_action" = relink; then
9726
# Fast installation is not supported
9727
enable_fast_install=no
9728
elif test "$shlibpath_overrides_runpath" = yes ||
9729
test "$enable_shared" = no; then
9730
# Fast installation is not necessary
9731
enable_fast_install=needless
9736
{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9737
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9738
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9739
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9740
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9741
{ echo "$as_me:$LINENO: result: yes" >&5
9742
echo "${ECHO_T}yes" >&6; }
9744
# FIXME - insert some real tests, host_os isn't really good enough
9747
if test -n "$STRIP" ; then
9748
striplib="$STRIP -x"
9749
old_striplib="$STRIP -S"
9750
{ echo "$as_me:$LINENO: result: yes" >&5
9751
echo "${ECHO_T}yes" >&6; }
9753
{ echo "$as_me:$LINENO: result: no" >&5
9754
echo "${ECHO_T}no" >&6; }
9758
{ echo "$as_me:$LINENO: result: no" >&5
9759
echo "${ECHO_T}no" >&6; }
9764
if test "x$enable_dlopen" != xyes; then
9765
enable_dlopen=unknown
9766
enable_dlopen_self=unknown
9767
enable_dlopen_self_static=unknown
9774
lt_cv_dlopen="load_add_on"
9776
lt_cv_dlopen_self=yes
9780
lt_cv_dlopen="LoadLibrary"
9785
lt_cv_dlopen="dlopen"
9790
# if libdl is installed we need to link against it
9791
{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9792
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9793
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9794
echo $ECHO_N "(cached) $ECHO_C" >&6
9796
ac_check_lib_save_LIBS=$LIBS
9798
cat >conftest.$ac_ext <<_ACEOF
9801
cat confdefs.h >>conftest.$ac_ext
9802
cat >>conftest.$ac_ext <<_ACEOF
9803
/* end confdefs.h. */
9805
/* Override any GCC internal prototype to avoid an error.
9806
Use char because int might match the return type of a GCC
9807
builtin and then its argument prototype would still apply. */
9820
rm -f conftest.$ac_objext conftest$ac_exeext
9821
if { (ac_try="$ac_link"
9823
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9824
*) ac_try_echo=$ac_try;;
9826
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9827
(eval "$ac_link") 2>conftest.er1
9829
grep -v '^ *+' conftest.er1 >conftest.err
9831
cat conftest.err >&5
9832
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9833
(exit $ac_status); } && {
9834
test -z "$ac_c_werror_flag" ||
9835
test ! -s conftest.err
9836
} && test -s conftest$ac_exeext &&
9837
$as_test_x conftest$ac_exeext; then
9838
ac_cv_lib_dl_dlopen=yes
9840
echo "$as_me: failed program was:" >&5
9841
sed 's/^/| /' conftest.$ac_ext >&5
9843
ac_cv_lib_dl_dlopen=no
9846
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9847
conftest$ac_exeext conftest.$ac_ext
9848
LIBS=$ac_check_lib_save_LIBS
9850
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9851
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9852
if test $ac_cv_lib_dl_dlopen = yes; then
9853
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9858
lt_cv_dlopen_self=yes
9865
{ echo "$as_me:$LINENO: checking for shl_load" >&5
9866
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9867
if test "${ac_cv_func_shl_load+set}" = set; then
9868
echo $ECHO_N "(cached) $ECHO_C" >&6
9870
cat >conftest.$ac_ext <<_ACEOF
9873
cat confdefs.h >>conftest.$ac_ext
9874
cat >>conftest.$ac_ext <<_ACEOF
9875
/* end confdefs.h. */
9876
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9877
For example, HP-UX 11i <limits.h> declares gettimeofday. */
9878
#define shl_load innocuous_shl_load
9880
/* System header to define __stub macros and hopefully few prototypes,
9881
which can conflict with char shl_load (); below.
9882
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9883
<limits.h> exists even on freestanding compilers. */
9886
# include <limits.h>
9888
# include <assert.h>
9893
/* Override any GCC internal prototype to avoid an error.
9894
Use char because int might match the return type of a GCC
9895
builtin and then its argument prototype would still apply. */
9900
/* The GNU C library defines this for functions which it implements
9901
to always fail with ENOSYS. Some functions are actually named
9902
something starting with __ and the normal name is an alias. */
9903
#if defined __stub_shl_load || defined __stub___shl_load
9915
rm -f conftest.$ac_objext conftest$ac_exeext
9916
if { (ac_try="$ac_link"
9918
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9919
*) ac_try_echo=$ac_try;;
9921
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9922
(eval "$ac_link") 2>conftest.er1
9924
grep -v '^ *+' conftest.er1 >conftest.err
9926
cat conftest.err >&5
9927
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9928
(exit $ac_status); } && {
9929
test -z "$ac_c_werror_flag" ||
9930
test ! -s conftest.err
9931
} && test -s conftest$ac_exeext &&
9932
$as_test_x conftest$ac_exeext; then
9933
ac_cv_func_shl_load=yes
9935
echo "$as_me: failed program was:" >&5
9936
sed 's/^/| /' conftest.$ac_ext >&5
9938
ac_cv_func_shl_load=no
9941
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9942
conftest$ac_exeext conftest.$ac_ext
9944
{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9945
echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9946
if test $ac_cv_func_shl_load = yes; then
9947
lt_cv_dlopen="shl_load"
9949
{ echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9950
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9951
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9952
echo $ECHO_N "(cached) $ECHO_C" >&6
9954
ac_check_lib_save_LIBS=$LIBS
9956
cat >conftest.$ac_ext <<_ACEOF
9959
cat confdefs.h >>conftest.$ac_ext
9960
cat >>conftest.$ac_ext <<_ACEOF
9961
/* end confdefs.h. */
9963
/* Override any GCC internal prototype to avoid an error.
9964
Use char because int might match the return type of a GCC
9965
builtin and then its argument prototype would still apply. */
9978
rm -f conftest.$ac_objext conftest$ac_exeext
9979
if { (ac_try="$ac_link"
9981
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9982
*) ac_try_echo=$ac_try;;
9984
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9985
(eval "$ac_link") 2>conftest.er1
9987
grep -v '^ *+' conftest.er1 >conftest.err
9989
cat conftest.err >&5
9990
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9991
(exit $ac_status); } && {
9992
test -z "$ac_c_werror_flag" ||
9993
test ! -s conftest.err
9994
} && test -s conftest$ac_exeext &&
9995
$as_test_x conftest$ac_exeext; then
9996
ac_cv_lib_dld_shl_load=yes
9998
echo "$as_me: failed program was:" >&5
9999
sed 's/^/| /' conftest.$ac_ext >&5
10001
ac_cv_lib_dld_shl_load=no
10004
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10005
conftest$ac_exeext conftest.$ac_ext
10006
LIBS=$ac_check_lib_save_LIBS
10008
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10009
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10010
if test $ac_cv_lib_dld_shl_load = yes; then
10011
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10013
{ echo "$as_me:$LINENO: checking for dlopen" >&5
10014
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10015
if test "${ac_cv_func_dlopen+set}" = set; then
10016
echo $ECHO_N "(cached) $ECHO_C" >&6
10018
cat >conftest.$ac_ext <<_ACEOF
10021
cat confdefs.h >>conftest.$ac_ext
10022
cat >>conftest.$ac_ext <<_ACEOF
10023
/* end confdefs.h. */
10024
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10025
For example, HP-UX 11i <limits.h> declares gettimeofday. */
10026
#define dlopen innocuous_dlopen
10028
/* System header to define __stub macros and hopefully few prototypes,
10029
which can conflict with char dlopen (); below.
10030
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10031
<limits.h> exists even on freestanding compilers. */
10034
# include <limits.h>
10036
# include <assert.h>
10041
/* Override any GCC internal prototype to avoid an error.
10042
Use char because int might match the return type of a GCC
10043
builtin and then its argument prototype would still apply. */
10048
/* The GNU C library defines this for functions which it implements
10049
to always fail with ENOSYS. Some functions are actually named
10050
something starting with __ and the normal name is an alias. */
10051
#if defined __stub_dlopen || defined __stub___dlopen
10063
rm -f conftest.$ac_objext conftest$ac_exeext
10064
if { (ac_try="$ac_link"
10065
case "(($ac_try" in
10066
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10067
*) ac_try_echo=$ac_try;;
10069
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10070
(eval "$ac_link") 2>conftest.er1
10072
grep -v '^ *+' conftest.er1 >conftest.err
10074
cat conftest.err >&5
10075
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076
(exit $ac_status); } && {
10077
test -z "$ac_c_werror_flag" ||
10078
test ! -s conftest.err
10079
} && test -s conftest$ac_exeext &&
10080
$as_test_x conftest$ac_exeext; then
10081
ac_cv_func_dlopen=yes
10083
echo "$as_me: failed program was:" >&5
10084
sed 's/^/| /' conftest.$ac_ext >&5
10086
ac_cv_func_dlopen=no
10089
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10090
conftest$ac_exeext conftest.$ac_ext
10092
{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10093
echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10094
if test $ac_cv_func_dlopen = yes; then
10095
lt_cv_dlopen="dlopen"
10097
{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10098
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10099
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10100
echo $ECHO_N "(cached) $ECHO_C" >&6
10102
ac_check_lib_save_LIBS=$LIBS
10104
cat >conftest.$ac_ext <<_ACEOF
10107
cat confdefs.h >>conftest.$ac_ext
10108
cat >>conftest.$ac_ext <<_ACEOF
10109
/* end confdefs.h. */
10111
/* Override any GCC internal prototype to avoid an error.
10112
Use char because int might match the return type of a GCC
10113
builtin and then its argument prototype would still apply. */
10126
rm -f conftest.$ac_objext conftest$ac_exeext
10127
if { (ac_try="$ac_link"
10128
case "(($ac_try" in
10129
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10130
*) ac_try_echo=$ac_try;;
10132
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10133
(eval "$ac_link") 2>conftest.er1
10135
grep -v '^ *+' conftest.er1 >conftest.err
10137
cat conftest.err >&5
10138
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10139
(exit $ac_status); } && {
10140
test -z "$ac_c_werror_flag" ||
10141
test ! -s conftest.err
10142
} && test -s conftest$ac_exeext &&
10143
$as_test_x conftest$ac_exeext; then
10144
ac_cv_lib_dl_dlopen=yes
10146
echo "$as_me: failed program was:" >&5
10147
sed 's/^/| /' conftest.$ac_ext >&5
10149
ac_cv_lib_dl_dlopen=no
10152
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10153
conftest$ac_exeext conftest.$ac_ext
10154
LIBS=$ac_check_lib_save_LIBS
10156
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10157
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10158
if test $ac_cv_lib_dl_dlopen = yes; then
10159
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10161
{ echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10162
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10163
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10164
echo $ECHO_N "(cached) $ECHO_C" >&6
10166
ac_check_lib_save_LIBS=$LIBS
10167
LIBS="-lsvld $LIBS"
10168
cat >conftest.$ac_ext <<_ACEOF
10171
cat confdefs.h >>conftest.$ac_ext
10172
cat >>conftest.$ac_ext <<_ACEOF
10173
/* end confdefs.h. */
10175
/* Override any GCC internal prototype to avoid an error.
10176
Use char because int might match the return type of a GCC
10177
builtin and then its argument prototype would still apply. */
10190
rm -f conftest.$ac_objext conftest$ac_exeext
10191
if { (ac_try="$ac_link"
10192
case "(($ac_try" in
10193
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10194
*) ac_try_echo=$ac_try;;
10196
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10197
(eval "$ac_link") 2>conftest.er1
10199
grep -v '^ *+' conftest.er1 >conftest.err
10201
cat conftest.err >&5
10202
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10203
(exit $ac_status); } && {
10204
test -z "$ac_c_werror_flag" ||
10205
test ! -s conftest.err
10206
} && test -s conftest$ac_exeext &&
10207
$as_test_x conftest$ac_exeext; then
10208
ac_cv_lib_svld_dlopen=yes
10210
echo "$as_me: failed program was:" >&5
10211
sed 's/^/| /' conftest.$ac_ext >&5
10213
ac_cv_lib_svld_dlopen=no
10216
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10217
conftest$ac_exeext conftest.$ac_ext
10218
LIBS=$ac_check_lib_save_LIBS
10220
{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10221
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10222
if test $ac_cv_lib_svld_dlopen = yes; then
10223
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10225
{ echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10226
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10227
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10228
echo $ECHO_N "(cached) $ECHO_C" >&6
10230
ac_check_lib_save_LIBS=$LIBS
10232
cat >conftest.$ac_ext <<_ACEOF
10235
cat confdefs.h >>conftest.$ac_ext
10236
cat >>conftest.$ac_ext <<_ACEOF
10237
/* end confdefs.h. */
10239
/* Override any GCC internal prototype to avoid an error.
10240
Use char because int might match the return type of a GCC
10241
builtin and then its argument prototype would still apply. */
10249
return dld_link ();
10254
rm -f conftest.$ac_objext conftest$ac_exeext
10255
if { (ac_try="$ac_link"
10256
case "(($ac_try" in
10257
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10258
*) ac_try_echo=$ac_try;;
10260
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10261
(eval "$ac_link") 2>conftest.er1
10263
grep -v '^ *+' conftest.er1 >conftest.err
10265
cat conftest.err >&5
10266
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10267
(exit $ac_status); } && {
10268
test -z "$ac_c_werror_flag" ||
10269
test ! -s conftest.err
10270
} && test -s conftest$ac_exeext &&
10271
$as_test_x conftest$ac_exeext; then
10272
ac_cv_lib_dld_dld_link=yes
10274
echo "$as_me: failed program was:" >&5
10275
sed 's/^/| /' conftest.$ac_ext >&5
10277
ac_cv_lib_dld_dld_link=no
10280
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10281
conftest$ac_exeext conftest.$ac_ext
10282
LIBS=$ac_check_lib_save_LIBS
10284
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10285
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10286
if test $ac_cv_lib_dld_dld_link = yes; then
10287
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10308
if test "x$lt_cv_dlopen" != xno; then
10314
case $lt_cv_dlopen in
10316
save_CPPFLAGS="$CPPFLAGS"
10317
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10319
save_LDFLAGS="$LDFLAGS"
10320
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10323
LIBS="$lt_cv_dlopen_libs $LIBS"
10325
{ echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10326
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10327
if test "${lt_cv_dlopen_self+set}" = set; then
10328
echo $ECHO_N "(cached) $ECHO_C" >&6
10330
if test "$cross_compiling" = yes; then :
10331
lt_cv_dlopen_self=cross
10333
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10334
lt_status=$lt_dlunknown
10335
cat > conftest.$ac_ext <<EOF
10336
#line 10336 "configure"
10337
#include "confdefs.h"
10346
# define LT_DLGLOBAL RTLD_GLOBAL
10349
# define LT_DLGLOBAL DL_GLOBAL
10351
# define LT_DLGLOBAL 0
10355
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10356
find out it does not work in some platform. */
10357
#ifndef LT_DLLAZY_OR_NOW
10359
# define LT_DLLAZY_OR_NOW RTLD_LAZY
10362
# define LT_DLLAZY_OR_NOW DL_LAZY
10365
# define LT_DLLAZY_OR_NOW RTLD_NOW
10368
# define LT_DLLAZY_OR_NOW DL_NOW
10370
# define LT_DLLAZY_OR_NOW 0
10378
extern "C" void exit (int);
10381
void fnord() { int i=42;}
10384
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10385
int status = $lt_dlunknown;
10389
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10390
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10391
/* dlclose (self); */
10399
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10400
(eval $ac_link) 2>&5
10402
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10403
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10404
(./conftest; exit; ) >&5 2>/dev/null
10406
case x$lt_status in
10407
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10408
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10409
x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10412
# compilation failed
10413
lt_cv_dlopen_self=no
10420
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10421
echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10423
if test "x$lt_cv_dlopen_self" = xyes; then
10424
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10425
{ echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10426
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10427
if test "${lt_cv_dlopen_self_static+set}" = set; then
10428
echo $ECHO_N "(cached) $ECHO_C" >&6
10430
if test "$cross_compiling" = yes; then :
10431
lt_cv_dlopen_self_static=cross
10433
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10434
lt_status=$lt_dlunknown
10435
cat > conftest.$ac_ext <<EOF
10436
#line 10436 "configure"
10437
#include "confdefs.h"
10446
# define LT_DLGLOBAL RTLD_GLOBAL
10449
# define LT_DLGLOBAL DL_GLOBAL
10451
# define LT_DLGLOBAL 0
10455
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10456
find out it does not work in some platform. */
10457
#ifndef LT_DLLAZY_OR_NOW
10459
# define LT_DLLAZY_OR_NOW RTLD_LAZY
10462
# define LT_DLLAZY_OR_NOW DL_LAZY
10465
# define LT_DLLAZY_OR_NOW RTLD_NOW
10468
# define LT_DLLAZY_OR_NOW DL_NOW
10470
# define LT_DLLAZY_OR_NOW 0
10478
extern "C" void exit (int);
10481
void fnord() { int i=42;}
10484
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10485
int status = $lt_dlunknown;
10489
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10490
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10491
/* dlclose (self); */
10499
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10500
(eval $ac_link) 2>&5
10502
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10503
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10504
(./conftest; exit; ) >&5 2>/dev/null
10506
case x$lt_status in
10507
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10508
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10509
x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10512
# compilation failed
10513
lt_cv_dlopen_self_static=no
10520
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10521
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10524
CPPFLAGS="$save_CPPFLAGS"
10525
LDFLAGS="$save_LDFLAGS"
10530
case $lt_cv_dlopen_self in
10531
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10532
*) enable_dlopen_self=unknown ;;
10535
case $lt_cv_dlopen_self_static in
10536
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10537
*) enable_dlopen_self_static=unknown ;;
10542
# Report which library types will actually be built
10543
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10544
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10545
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
10546
echo "${ECHO_T}$can_build_shared" >&6; }
10548
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10549
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10550
test "$can_build_shared" = "no" && enable_shared=no
10552
# On AIX, shared libraries and static libraries use the same namespace, and
10553
# are all built from PIC.
10556
test "$enable_shared" = yes && enable_static=no
10557
if test -n "$RANLIB"; then
10558
archive_cmds="$archive_cmds~\$RANLIB \$lib"
10559
postinstall_cmds='$RANLIB $lib'
10564
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10565
test "$enable_shared" = yes && enable_static=no
10569
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10570
echo "${ECHO_T}$enable_shared" >&6; }
10572
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10573
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10574
# Make sure either enable_shared or enable_static is yes.
10575
test "$enable_shared" = yes || enable_static=yes
10576
{ echo "$as_me:$LINENO: result: $enable_static" >&5
10577
echo "${ECHO_T}$enable_static" >&6; }
10579
# The else clause should only fire when bootstrapping the
10580
# libtool distribution, otherwise you forgot to ship ltmain.sh
10581
# with your package, and you will get complaints that there are
10582
# no rules to generate ltmain.sh.
10583
if test -f "$ltmain"; then
10584
# See if we are running on zsh, and set the options which allow our commands through
10585
# without removal of \ escapes.
10586
if test -n "${ZSH_VERSION+set}" ; then
10587
setopt NO_GLOB_SUBST
10589
# Now quote all the things that may contain metacharacters while being
10590
# careful not to overquote the AC_SUBSTed values. We take copies of the
10591
# variables and quote the copies for generation of the libtool script.
10592
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10594
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10595
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10596
deplibs_check_method reload_flag reload_cmds need_locks \
10597
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10598
lt_cv_sys_global_symbol_to_c_name_address \
10599
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10600
old_postinstall_cmds old_postuninstall_cmds \
10604
lt_prog_compiler_wl \
10605
lt_prog_compiler_pic \
10606
lt_prog_compiler_static \
10607
lt_prog_compiler_no_builtin_flag \
10608
export_dynamic_flag_spec \
10609
thread_safe_flag_spec \
10610
whole_archive_flag_spec \
10611
enable_shared_with_static_runtimes \
10613
old_archive_from_new_cmds \
10618
compiler_lib_search_path \
10619
compiler_lib_search_dirs \
10621
archive_expsym_cmds \
10623
postuninstall_cmds \
10624
old_archive_from_expsyms_cmds \
10625
allow_undefined_flag \
10626
no_undefined_flag \
10627
export_symbols_cmds \
10628
hardcode_libdir_flag_spec \
10629
hardcode_libdir_flag_spec_ld \
10630
hardcode_libdir_separator \
10631
hardcode_automatic \
10633
module_expsym_cmds \
10634
lt_cv_prog_compiler_c_o \
10637
include_expsyms; do
10640
old_archive_cmds | \
10641
old_archive_from_new_cmds | \
10643
archive_expsym_cmds | \
10645
module_expsym_cmds | \
10646
old_archive_from_expsyms_cmds | \
10647
export_symbols_cmds | \
10648
extract_expsyms_cmds | reload_cmds | finish_cmds | \
10649
postinstall_cmds | postuninstall_cmds | \
10650
old_postinstall_cmds | old_postuninstall_cmds | \
10651
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10652
# Double-quote double-evaled strings.
10653
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10656
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10662
*'\$0 --fallback-echo"')
10663
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10667
cfgfile="${ofile}T"
10668
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10670
{ echo "$as_me:$LINENO: creating $ofile" >&5
10671
echo "$as_me: creating $ofile" >&6;}
10673
cat <<__EOF__ >> "$cfgfile"
10676
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10677
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10678
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10680
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10681
# Free Software Foundation, Inc.
10683
# This file is part of GNU Libtool:
10684
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10686
# This program is free software; you can redistribute it and/or modify
10687
# it under the terms of the GNU General Public License as published by
10688
# the Free Software Foundation; either version 2 of the License, or
10689
# (at your option) any later version.
10691
# This program is distributed in the hope that it will be useful, but
10692
# WITHOUT ANY WARRANTY; without even the implied warranty of
10693
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10694
# General Public License for more details.
10696
# You should have received a copy of the GNU General Public License
10697
# along with this program; if not, write to the Free Software
10698
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10700
# As a special exception to the GNU General Public License, if you
10701
# distribute this file as part of a program that contains a
10702
# configuration script generated by Autoconf, you may include it under
10703
# the same distribution terms that you use for the rest of that program.
10705
# A sed program that does not truncate output.
10708
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10709
Xsed="$SED -e 1s/^X//"
10711
# The HP-UX ksh and POSIX shell print the target directory to stdout
10712
# if CDPATH is set.
10713
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10715
# The names of the tagged configurations supported by this script.
10718
# ### BEGIN LIBTOOL CONFIG
10720
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10722
# Shell to use when invoking shell scripts.
10725
# Whether or not to build shared libraries.
10726
build_libtool_libs=$enable_shared
10728
# Whether or not to build static libraries.
10729
build_old_libs=$enable_static
10731
# Whether or not to add -lc for building shared libraries.
10732
build_libtool_need_lc=$archive_cmds_need_lc
10734
# Whether or not to disallow shared libs when runtime libs are static
10735
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10737
# Whether or not to optimize for fast installation.
10738
fast_install=$enable_fast_install
10741
host_alias=$host_alias
10745
# The build system.
10746
build_alias=$build_alias
10750
# An echo program that does not interpret backslashes.
10755
AR_FLAGS=$lt_AR_FLAGS
10760
# LTCC compiler flags.
10761
LTCFLAGS=$lt_LTCFLAGS
10763
# A language-specific compiler.
10766
# Is the compiler the GNU C compiler?
10772
# The linker used to build libraries.
10775
# Whether we need hard or soft links.
10778
# A BSD-compatible nm program.
10781
# A symbol stripping program
10784
# Used to examine libraries when file_magic_cmd begins "file"
10785
MAGIC_CMD=$MAGIC_CMD
10787
# Used on cygwin: DLL creation program.
10790
# Used on cygwin: object dumper.
10793
# Used on cygwin: assembler.
10796
# The name of the directory that contains temporary libtool files.
10799
# How to create reloadable object files.
10800
reload_flag=$lt_reload_flag
10801
reload_cmds=$lt_reload_cmds
10803
# How to pass a linker flag through the compiler.
10804
wl=$lt_lt_prog_compiler_wl
10806
# Object file suffix (normally "o").
10807
objext="$ac_objext"
10809
# Old archive suffix (normally "a").
10812
# Shared library suffix (normally ".so").
10813
shrext_cmds='$shrext_cmds'
10815
# Executable file suffix (normally "").
10818
# Additional compiler flags for building library objects.
10819
pic_flag=$lt_lt_prog_compiler_pic
10822
# What is the maximum length of a command?
10823
max_cmd_len=$lt_cv_sys_max_cmd_len
10825
# Does compiler simultaneously support -c and -o options?
10826
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10828
# Must we lock files when doing compilation?
10829
need_locks=$lt_need_locks
10831
# Do we need the lib prefix for modules?
10832
need_lib_prefix=$need_lib_prefix
10834
# Do we need a version for libraries?
10835
need_version=$need_version
10837
# Whether dlopen is supported.
10838
dlopen_support=$enable_dlopen
10840
# Whether dlopen of programs is supported.
10841
dlopen_self=$enable_dlopen_self
10843
# Whether dlopen of statically linked programs is supported.
10844
dlopen_self_static=$enable_dlopen_self_static
10846
# Compiler flag to prevent dynamic linking.
10847
link_static_flag=$lt_lt_prog_compiler_static
10849
# Compiler flag to turn off builtin functions.
10850
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10852
# Compiler flag to allow reflexive dlopens.
10853
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10855
# Compiler flag to generate shared objects directly from archives.
10856
whole_archive_flag_spec=$lt_whole_archive_flag_spec
10858
# Compiler flag to generate thread-safe objects.
10859
thread_safe_flag_spec=$lt_thread_safe_flag_spec
10861
# Library versioning type.
10862
version_type=$version_type
10864
# Format of library name prefix.
10865
libname_spec=$lt_libname_spec
10867
# List of archive names. First name is the real one, the rest are links.
10868
# The last name is the one that the linker finds with -lNAME.
10869
library_names_spec=$lt_library_names_spec
10871
# The coded name of the library, if different from the real name.
10872
soname_spec=$lt_soname_spec
10874
# Commands used to build and install an old-style archive.
10876
old_archive_cmds=$lt_old_archive_cmds
10877
old_postinstall_cmds=$lt_old_postinstall_cmds
10878
old_postuninstall_cmds=$lt_old_postuninstall_cmds
10880
# Create an old-style archive from a shared archive.
10881
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10883
# Create a temporary old-style archive to link instead of a shared archive.
10884
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10886
# Commands used to build and install a shared archive.
10887
archive_cmds=$lt_archive_cmds
10888
archive_expsym_cmds=$lt_archive_expsym_cmds
10889
postinstall_cmds=$lt_postinstall_cmds
10890
postuninstall_cmds=$lt_postuninstall_cmds
10892
# Commands used to build a loadable module (assumed same as above if empty)
10893
module_cmds=$lt_module_cmds
10894
module_expsym_cmds=$lt_module_expsym_cmds
10896
# Commands to strip libraries.
10897
old_striplib=$lt_old_striplib
10898
striplib=$lt_striplib
10900
# Dependencies to place before the objects being linked to create a
10902
predep_objects=$lt_predep_objects
10904
# Dependencies to place after the objects being linked to create a
10906
postdep_objects=$lt_postdep_objects
10908
# Dependencies to place before the objects being linked to create a
10910
predeps=$lt_predeps
10912
# Dependencies to place after the objects being linked to create a
10914
postdeps=$lt_postdeps
10916
# The directories searched by this compiler when creating a shared
10918
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10920
# The library search path used internally by the compiler when linking
10921
# a shared library.
10922
compiler_lib_search_path=$lt_compiler_lib_search_path
10924
# Method to check whether dependent libraries are shared objects.
10925
deplibs_check_method=$lt_deplibs_check_method
10927
# Command to use when deplibs_check_method == file_magic.
10928
file_magic_cmd=$lt_file_magic_cmd
10930
# Flag that allows shared libraries with undefined symbols to be built.
10931
allow_undefined_flag=$lt_allow_undefined_flag
10933
# Flag that forces no undefined symbols.
10934
no_undefined_flag=$lt_no_undefined_flag
10936
# Commands used to finish a libtool library installation in a directory.
10937
finish_cmds=$lt_finish_cmds
10939
# Same as above, but a single script fragment to be evaled but not shown.
10940
finish_eval=$lt_finish_eval
10942
# Take the output of nm and produce a listing of raw symbols and C names.
10943
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10945
# Transform the output of nm in a proper C declaration
10946
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10948
# Transform the output of nm in a C name address pair
10949
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10951
# This is the shared library runtime path variable.
10952
runpath_var=$runpath_var
10954
# This is the shared library path variable.
10955
shlibpath_var=$shlibpath_var
10957
# Is shlibpath searched before the hard-coded library search path?
10958
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10960
# How to hardcode a shared library path into an executable.
10961
hardcode_action=$hardcode_action
10963
# Whether we should hardcode library paths into libraries.
10964
hardcode_into_libs=$hardcode_into_libs
10966
# Flag to hardcode \$libdir into a binary during linking.
10967
# This must work even if \$libdir does not exist.
10968
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10970
# If ld is used when linking, flag to hardcode \$libdir into
10971
# a binary during linking. This must work even if \$libdir does
10973
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10975
# Whether we need a single -rpath flag with a separated argument.
10976
hardcode_libdir_separator=$lt_hardcode_libdir_separator
10978
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10979
# resulting binary.
10980
hardcode_direct=$hardcode_direct
10982
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10983
# resulting binary.
10984
hardcode_minus_L=$hardcode_minus_L
10986
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10987
# the resulting binary.
10988
hardcode_shlibpath_var=$hardcode_shlibpath_var
10990
# Set to yes if building a shared library automatically hardcodes DIR into the library
10991
# and all subsequent libraries and executables linked against it.
10992
hardcode_automatic=$hardcode_automatic
10994
# Variables whose values should be saved in libtool wrapper scripts and
10995
# restored at relink time.
10996
variables_saved_for_relink="$variables_saved_for_relink"
10998
# Whether libtool must link a program against all its dependency libraries.
10999
link_all_deplibs=$link_all_deplibs
11001
# Compile-time system search path for libraries
11002
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11004
# Run-time system search path for libraries
11005
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11007
# Fix the shell variable \$srcfile for the compiler.
11008
fix_srcfile_path=$lt_fix_srcfile_path
11010
# Set to yes if exported symbols are required.
11011
always_export_symbols=$always_export_symbols
11013
# The commands to list exported symbols.
11014
export_symbols_cmds=$lt_export_symbols_cmds
11016
# The commands to extract the exported symbol list from a shared archive.
11017
extract_expsyms_cmds=$lt_extract_expsyms_cmds
11019
# Symbols that should not be listed in the preloaded symbols.
11020
exclude_expsyms=$lt_exclude_expsyms
11022
# Symbols that must always be exported.
11023
include_expsyms=$lt_include_expsyms
11025
# ### END LIBTOOL CONFIG
11032
cat <<\EOF >> "$cfgfile"
11034
# AIX sometimes has problems with the GCC collect2 program. For some
11035
# reason, if we set the COLLECT_NAMES environment variable, the problems
11036
# vanish in a puff of smoke.
11037
if test "X${COLLECT_NAMES+set}" != Xset; then
11039
export COLLECT_NAMES
11045
# We use sed instead of cat because bash on DJGPP gets confused if
11046
# if finds mixed CR/LF and LF-only lines. Since sed operates in
11047
# text mode, it properly converts lines to CR/LF. This bash problem
11048
# is reportedly fixed, but why not run on old versions too?
11049
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11051
mv -f "$cfgfile" "$ofile" || \
11052
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11056
# If there is no Makefile yet, we rely on a make rule to execute
11057
# `config.status --recheck' to rerun these tests and create the
11058
# libtool script then.
11059
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11060
if test -f "$ltmain_in"; then
11061
test -f Makefile && make "$ltmain"
11067
ac_cpp='$CPP $CPPFLAGS'
11068
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11069
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11070
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11075
# Check whether --with-tags was given.
11076
if test "${with_tags+set}" = set; then
11077
withval=$with_tags; tagnames="$withval"
11081
if test -f "$ltmain" && test -n "$tagnames"; then
11082
if test ! -f "${ofile}"; then
11083
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11084
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11087
if test -z "$LTCC"; then
11088
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11089
if test -z "$LTCC"; then
11090
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11091
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11093
{ echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11094
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11097
if test -z "$LTCFLAGS"; then
11098
eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11101
# Extract list of available tagged configurations in $ofile.
11102
# Note that this assumes the entire list is on one line.
11103
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11105
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11106
for tagname in $tagnames; do
11108
# Check whether tagname contains only valid characters
11109
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11111
*) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11112
echo "$as_me: error: invalid tag name: $tagname" >&2;}
11113
{ (exit 1); exit 1; }; }
11117
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11119
{ { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11120
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11121
{ (exit 1); exit 1; }; }
11124
# Update the list of available tags.
11125
if test -n "$tagname"; then
11126
echo appending configuration tag \"$tagname\" to $ofile
11130
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11131
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11132
(test "X$CXX" != "Xg++"))) ; then
11134
ac_cpp='$CXXCPP $CPPFLAGS'
11135
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11136
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11137
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11142
archive_cmds_need_lc_CXX=no
11143
allow_undefined_flag_CXX=
11144
always_export_symbols_CXX=no
11145
archive_expsym_cmds_CXX=
11146
export_dynamic_flag_spec_CXX=
11147
hardcode_direct_CXX=no
11148
hardcode_libdir_flag_spec_CXX=
11149
hardcode_libdir_flag_spec_ld_CXX=
11150
hardcode_libdir_separator_CXX=
11151
hardcode_minus_L_CXX=no
11152
hardcode_shlibpath_var_CXX=unsupported
11153
hardcode_automatic_CXX=no
11155
module_expsym_cmds_CXX=
11156
link_all_deplibs_CXX=unknown
11157
old_archive_cmds_CXX=$old_archive_cmds
11158
no_undefined_flag_CXX=
11159
whole_archive_flag_spec_CXX=
11160
enable_shared_with_static_runtimes_CXX=no
11162
# Dependencies to place before and after the object being linked:
11163
predep_objects_CXX=
11164
postdep_objects_CXX=
11167
compiler_lib_search_path_CXX=
11168
compiler_lib_search_dirs_CXX=
11170
# Source file extension for C++ test sources.
11173
# Object file extension for compiled C++ test sources.
11177
# Code to be used in simple compile tests
11178
lt_simple_compile_test_code="int some_variable = 0;"
11180
# Code to be used in simple link tests
11181
lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11183
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11185
# If no C compiler was specified, use CC.
11188
# If no C compiler flags were specified, use CFLAGS.
11189
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11191
# Allow CC to be a program name with arguments.
11195
# save warnings/boilerplate of simple test code
11196
ac_outfile=conftest.$ac_objext
11197
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11198
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11199
_lt_compiler_boilerplate=`cat conftest.err`
11202
ac_outfile=conftest.$ac_objext
11203
echo "$lt_simple_link_test_code" >conftest.$ac_ext
11204
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11205
_lt_linker_boilerplate=`cat conftest.err`
11209
# Allow CC to be a program name with arguments.
11214
lt_save_with_gnu_ld=$with_gnu_ld
11215
lt_save_path_LD=$lt_cv_path_LD
11216
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11217
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11219
$as_unset lt_cv_prog_gnu_ld
11221
if test -n "${lt_cv_path_LDCXX+set}"; then
11222
lt_cv_path_LD=$lt_cv_path_LDCXX
11224
$as_unset lt_cv_path_LD
11226
test -z "${LDCXX+set}" || LD=$LDCXX
11230
for cc_temp in $compiler""; do
11232
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11233
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11238
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11241
# We don't want -fno-exception wen compiling C++ code, so set the
11242
# no_builtin_flag separately
11243
if test "$GXX" = yes; then
11244
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11246
lt_prog_compiler_no_builtin_flag_CXX=
11249
if test "$GXX" = yes; then
11250
# Set up default GNU C++ configuration
11253
# Check whether --with-gnu-ld was given.
11254
if test "${with_gnu_ld+set}" = set; then
11255
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11261
if test "$GCC" = yes; then
11262
# Check if gcc -print-prog-name=ld gives a path.
11263
{ echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11264
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11267
# gcc leaves a trailing carriage return which upsets mingw
11268
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11270
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11273
# Accept absolute paths.
11275
re_direlt='/[^/][^/]*/\.\./'
11276
# Canonicalize the pathname of ld
11277
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11278
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11279
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11281
test -z "$LD" && LD="$ac_prog"
11284
# If it fails, then pretend we aren't using GCC.
11288
# If it is relative, then search for the first ld in PATH.
11289
with_gnu_ld=unknown
11292
elif test "$with_gnu_ld" = yes; then
11293
{ echo "$as_me:$LINENO: checking for GNU ld" >&5
11294
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11296
{ echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11297
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11299
if test "${lt_cv_path_LD+set}" = set; then
11300
echo $ECHO_N "(cached) $ECHO_C" >&6
11302
if test -z "$LD"; then
11303
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11304
for ac_dir in $PATH; do
11306
test -z "$ac_dir" && ac_dir=.
11307
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11308
lt_cv_path_LD="$ac_dir/$ac_prog"
11309
# Check to see if the program is GNU ld. I'd rather use --version,
11310
# but apparently some variants of GNU ld only accept -v.
11311
# Break only if it was the GNU/non-GNU ld that we prefer.
11312
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11313
*GNU* | *'with BFD'*)
11314
test "$with_gnu_ld" != no && break
11317
test "$with_gnu_ld" != yes && break
11324
lt_cv_path_LD="$LD" # Let the user override the test with a path.
11328
LD="$lt_cv_path_LD"
11329
if test -n "$LD"; then
11330
{ echo "$as_me:$LINENO: result: $LD" >&5
11331
echo "${ECHO_T}$LD" >&6; }
11333
{ echo "$as_me:$LINENO: result: no" >&5
11334
echo "${ECHO_T}no" >&6; }
11336
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11337
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11338
{ (exit 1); exit 1; }; }
11339
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11340
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11341
if test "${lt_cv_prog_gnu_ld+set}" = set; then
11342
echo $ECHO_N "(cached) $ECHO_C" >&6
11344
# I'd rather use --version here, but apparently some GNU lds only accept -v.
11345
case `$LD -v 2>&1 </dev/null` in
11346
*GNU* | *'with BFD'*)
11347
lt_cv_prog_gnu_ld=yes
11350
lt_cv_prog_gnu_ld=no
11354
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11355
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11356
with_gnu_ld=$lt_cv_prog_gnu_ld
11360
# Check if GNU C++ uses GNU ld as the underlying linker, since the
11361
# archiving commands below assume that GNU ld is being used.
11362
if test "$with_gnu_ld" = yes; then
11363
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11364
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'
11366
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11367
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11369
# If archive_cmds runs LD, not CC, wlarc should be empty
11370
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11371
# investigate it a little bit more. (MM)
11374
# ancient GNU ld didn't support --whole-archive et. al.
11375
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11376
grep 'no-whole-archive' > /dev/null; then
11377
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11379
whole_archive_flag_spec_CXX=
11385
# A generic and very simple default shared library creation
11386
# command for GNU C++ for the case where it uses the native
11387
# linker, instead of GNU ld. If possible, this setting should
11388
# overridden to take advantage of the native linker features on
11389
# the platform it is being used on.
11390
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11393
# Commands to make compiler produce verbose output that lists
11394
# what "hidden" libraries, object files and flags are used when
11395
# linking a shared library.
11396
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11404
# PORTME: fill in a description of your system's C++ link characteristics
11405
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11406
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11410
# FIXME: insert proper C++ library support
11414
if test "$host_cpu" = ia64; then
11415
# On IA64, the linker does run time linking by default, so we don't
11416
# have to do anything special.
11417
aix_use_runtimelinking=no
11418
exp_sym_flag='-Bexport'
11421
aix_use_runtimelinking=no
11423
# Test if we are trying to use run time linking or normal
11424
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11425
# need to do runtime linking.
11426
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11427
for ld_flag in $LDFLAGS; do
11430
aix_use_runtimelinking=yes
11438
exp_sym_flag='-bexport'
11439
no_entry_flag='-bnoentry'
11442
# When large executables or shared objects are built, AIX ld can
11443
# have problems creating the table of contents. If linking a library
11444
# or program results in "error TOC overflow" add -mminimal-toc to
11445
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11446
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11448
archive_cmds_CXX=''
11449
hardcode_direct_CXX=yes
11450
hardcode_libdir_separator_CXX=':'
11451
link_all_deplibs_CXX=yes
11453
if test "$GXX" = yes; then
11454
case $host_os in aix4.[012]|aix4.[012].*)
11455
# We only want to do this on AIX 4.2 and lower, the check
11456
# below for broken collect2 doesn't work under 4.3+
11457
collect2name=`${CC} -print-prog-name=collect2`
11458
if test -f "$collect2name" && \
11459
strings "$collect2name" | grep resolve_lib_name >/dev/null
11461
# We have reworked collect2
11464
# We have old collect2
11465
hardcode_direct_CXX=unsupported
11466
# It fails to find uninstalled libraries when the uninstalled
11467
# path is not listed in the libpath. Setting hardcode_minus_L
11468
# to unsupported forces relinking
11469
hardcode_minus_L_CXX=yes
11470
hardcode_libdir_flag_spec_CXX='-L$libdir'
11471
hardcode_libdir_separator_CXX=
11475
shared_flag='-shared'
11476
if test "$aix_use_runtimelinking" = yes; then
11477
shared_flag="$shared_flag "'${wl}-G'
11481
if test "$host_cpu" = ia64; then
11482
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11483
# chokes on -Wl,-G. The following line is correct:
11486
if test "$aix_use_runtimelinking" = yes; then
11487
shared_flag='${wl}-G'
11489
shared_flag='${wl}-bM:SRE'
11494
# It seems that -bexpall does not export symbols beginning with
11495
# underscore (_), so it is better to generate a list of symbols to export.
11496
always_export_symbols_CXX=yes
11497
if test "$aix_use_runtimelinking" = yes; then
11498
# Warning - without using the other runtime loading flags (-brtl),
11499
# -berok will link without error, but may produce a broken library.
11500
allow_undefined_flag_CXX='-berok'
11501
# Determine the default libpath from the value encoded in an empty executable.
11502
cat >conftest.$ac_ext <<_ACEOF
11505
cat confdefs.h >>conftest.$ac_ext
11506
cat >>conftest.$ac_ext <<_ACEOF
11507
/* end confdefs.h. */
11517
rm -f conftest.$ac_objext conftest$ac_exeext
11518
if { (ac_try="$ac_link"
11519
case "(($ac_try" in
11520
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11521
*) ac_try_echo=$ac_try;;
11523
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11524
(eval "$ac_link") 2>conftest.er1
11526
grep -v '^ *+' conftest.er1 >conftest.err
11528
cat conftest.err >&5
11529
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11530
(exit $ac_status); } && {
11531
test -z "$ac_cxx_werror_flag" ||
11532
test ! -s conftest.err
11533
} && test -s conftest$ac_exeext &&
11534
$as_test_x conftest$ac_exeext; then
11536
lt_aix_libpath_sed='
11537
/Import File Strings/,/^$/ {
11543
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11544
# Check for a 64-bit object if we didn't find anything.
11545
if test -z "$aix_libpath"; then
11546
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11549
echo "$as_me: failed program was:" >&5
11550
sed 's/^/| /' conftest.$ac_ext >&5
11555
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11556
conftest$ac_exeext conftest.$ac_ext
11557
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11559
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11561
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"
11563
if test "$host_cpu" = ia64; then
11564
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11565
allow_undefined_flag_CXX="-z nodefs"
11566
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"
11568
# Determine the default libpath from the value encoded in an empty executable.
11569
cat >conftest.$ac_ext <<_ACEOF
11572
cat confdefs.h >>conftest.$ac_ext
11573
cat >>conftest.$ac_ext <<_ACEOF
11574
/* end confdefs.h. */
11584
rm -f conftest.$ac_objext conftest$ac_exeext
11585
if { (ac_try="$ac_link"
11586
case "(($ac_try" in
11587
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11588
*) ac_try_echo=$ac_try;;
11590
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11591
(eval "$ac_link") 2>conftest.er1
11593
grep -v '^ *+' conftest.er1 >conftest.err
11595
cat conftest.err >&5
11596
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11597
(exit $ac_status); } && {
11598
test -z "$ac_cxx_werror_flag" ||
11599
test ! -s conftest.err
11600
} && test -s conftest$ac_exeext &&
11601
$as_test_x conftest$ac_exeext; then
11603
lt_aix_libpath_sed='
11604
/Import File Strings/,/^$/ {
11610
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11611
# Check for a 64-bit object if we didn't find anything.
11612
if test -z "$aix_libpath"; then
11613
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11616
echo "$as_me: failed program was:" >&5
11617
sed 's/^/| /' conftest.$ac_ext >&5
11622
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11623
conftest$ac_exeext conftest.$ac_ext
11624
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11626
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11627
# Warning - without using the other run time loading flags,
11628
# -berok will link without error, but may produce a broken library.
11629
no_undefined_flag_CXX=' ${wl}-bernotok'
11630
allow_undefined_flag_CXX=' ${wl}-berok'
11631
# Exported symbols can be pulled into shared objects from archives
11632
whole_archive_flag_spec_CXX='$convenience'
11633
archive_cmds_need_lc_CXX=yes
11634
# This is similar to how AIX traditionally builds its shared libraries.
11635
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'
11641
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11642
allow_undefined_flag_CXX=unsupported
11643
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11644
# support --undefined. This deserves some investigation. FIXME
11645
archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11652
case $cc_basename in
11654
# FIXME: insert proper C++ library support
11660
cygwin* | mingw* | pw32*)
11661
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11662
# as there is no search path for DLLs.
11663
hardcode_libdir_flag_spec_CXX='-L$libdir'
11664
allow_undefined_flag_CXX=unsupported
11665
always_export_symbols_CXX=no
11666
enable_shared_with_static_runtimes_CXX=yes
11668
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11669
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'
11670
# If the export-symbols file already is a .def file (1st line
11671
# is EXPORTS), use it as is; otherwise, prepend...
11672
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11673
cp $export_symbols $output_objdir/$soname.def;
11675
echo EXPORTS > $output_objdir/$soname.def;
11676
cat $export_symbols >> $output_objdir/$soname.def;
11678
$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'
11683
darwin* | rhapsody*)
11684
archive_cmds_need_lc_CXX=no
11685
hardcode_direct_CXX=no
11686
hardcode_automatic_CXX=yes
11687
hardcode_shlibpath_var_CXX=unsupported
11688
whole_archive_flag_spec_CXX=''
11689
link_all_deplibs_CXX=yes
11690
allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11691
if test "$GXX" = yes ; then
11692
output_verbose_link_cmd='echo'
11693
archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11694
module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11695
archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
11696
module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
11697
if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11698
archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
11699
archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
11702
case $cc_basename in
11704
output_verbose_link_cmd='echo'
11705
archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11706
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11707
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11708
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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11709
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}'
11719
case $cc_basename in
11721
# FIXME: insert proper C++ library support
11725
# Green Hills C++ Compiler
11726
# FIXME: insert proper C++ library support
11730
# FIXME: insert proper C++ library support
11736
# C++ shared libraries reported to be fairly broken before switch to ELF
11740
archive_cmds_need_lc_CXX=no
11742
freebsd* | dragonfly*)
11743
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11750
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11751
hardcode_libdir_separator_CXX=:
11752
export_dynamic_flag_spec_CXX='${wl}-E'
11753
hardcode_direct_CXX=yes
11754
hardcode_minus_L_CXX=yes # Not in the search PATH,
11755
# but as the default
11756
# location of the library.
11758
case $cc_basename in
11760
# FIXME: insert proper C++ library support
11764
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'
11765
# Commands to make compiler produce verbose output that lists
11766
# what "hidden" libraries, object files and flags are used when
11767
# linking a shared library.
11769
# There doesn't appear to be a way to prevent this compiler from
11770
# explicitly linking system object files so we need to strip them
11771
# from the output so that they don't get included in the library
11773
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'
11776
if test "$GXX" = yes; then
11777
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'
11779
# FIXME: insert proper C++ library support
11786
if test $with_gnu_ld = no; then
11787
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11788
hardcode_libdir_separator_CXX=:
11793
export_dynamic_flag_spec_CXX='${wl}-E'
11799
hardcode_direct_CXX=no
11800
hardcode_shlibpath_var_CXX=no
11803
hardcode_direct_CXX=yes
11804
hardcode_minus_L_CXX=yes # Not in the search PATH,
11805
# but as the default
11806
# location of the library.
11810
case $cc_basename in
11812
# FIXME: insert proper C++ library support
11818
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11821
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11824
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11827
# Commands to make compiler produce verbose output that lists
11828
# what "hidden" libraries, object files and flags are used when
11829
# linking a shared library.
11831
# There doesn't appear to be a way to prevent this compiler from
11832
# explicitly linking system object files so we need to strip them
11833
# from the output so that they don't get included in the library
11835
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'
11838
if test "$GXX" = yes; then
11839
if test $with_gnu_ld = no; then
11842
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11845
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11848
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'
11853
# FIXME: insert proper C++ library support
11860
hardcode_direct_CXX=no
11861
hardcode_shlibpath_var_CXX=no
11862
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11863
export_dynamic_flag_spec_CXX='${wl}-E'
11864
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11865
# Instead, shared libraries are loaded at an image base (0x10000000 by
11866
# default) and relocated if they conflict, which is a slow very memory
11867
# consuming and fragmenting process. To avoid this, we pick a random,
11868
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11869
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
11870
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'
11871
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'
11874
case $cc_basename in
11877
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'
11879
# Archives containing C++ object files must be created using
11880
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
11881
# necessary to make sure instantiated templates are included
11883
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11886
if test "$GXX" = yes; then
11887
if test "$with_gnu_ld" = no; then
11888
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'
11890
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'
11893
link_all_deplibs_CXX=yes
11896
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11897
hardcode_libdir_separator_CXX=:
11899
linux* | k*bsd*-gnu)
11900
case $cc_basename in
11902
# Kuck and Associates, Inc. (KAI) C++ Compiler
11904
# KCC will only create a shared library if the output file
11905
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11906
# to its proper name (with version) after linking.
11907
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'
11908
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'
11909
# Commands to make compiler produce verbose output that lists
11910
# what "hidden" libraries, object files and flags are used when
11911
# linking a shared library.
11913
# There doesn't appear to be a way to prevent this compiler from
11914
# explicitly linking system object files so we need to strip them
11915
# from the output so that they don't get included in the library
11917
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'
11919
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11920
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11922
# Archives containing C++ object files must be created using
11923
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11924
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11929
# version 8.0 and above of icpc choke on multiply defined symbols
11930
# if we add $predep_objects and $postdep_objects, however 7.1 and
11931
# earlier do not add the objects themselves.
11932
case `$CC -V 2>&1` in
11934
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11935
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'
11937
*) # Version 8.0 or newer
11940
ia64*) tmp_idyn=' -i_dynamic';;
11942
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11943
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'
11946
archive_cmds_need_lc_CXX=no
11947
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11948
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11949
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11952
# Portland Group C++ compiler
11953
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11954
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'
11956
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11957
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11958
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'
11962
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11963
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'
11965
runpath_var=LD_RUN_PATH
11966
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11967
hardcode_libdir_separator_CXX=:
11969
# Commands to make compiler produce verbose output that lists
11970
# what "hidden" libraries, object files and flags are used when
11971
# linking a shared library.
11973
# There doesn't appear to be a way to prevent this compiler from
11974
# explicitly linking system object files so we need to strip them
11975
# from the output so that they don't get included in the library
11977
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'
11980
case `$CC -V 2>&1 | sed 5q` in
11983
no_undefined_flag_CXX=' -zdefs'
11984
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11985
archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
11986
hardcode_libdir_flag_spec_CXX='-R$libdir'
11987
whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11989
# Not sure whether something based on
11990
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11992
output_verbose_link_cmd='echo'
11994
# Archives containing C++ object files must be created using
11995
# "CC -xar", where "CC" is the Sun C++ compiler. This is
11996
# necessary to make sure instantiated templates are included
11998
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12005
# FIXME: insert proper C++ library support
12009
# FIXME: insert proper C++ library support
12013
case $cc_basename in
12015
# FIXME: insert proper C++ library support
12019
# FIXME: insert proper C++ library support
12024
netbsd* | netbsdelf*-gnu)
12025
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12026
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12028
hardcode_libdir_flag_spec_CXX='-R$libdir'
12029
hardcode_direct_CXX=yes
12030
hardcode_shlibpath_var_CXX=no
12032
# Workaround some broken pre-1.5 toolchains
12033
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12036
# C++ shared libraries are fairly broken
12040
if test -f /usr/libexec/ld.so; then
12041
hardcode_direct_CXX=yes
12042
hardcode_shlibpath_var_CXX=no
12043
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12044
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12045
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12046
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12047
export_dynamic_flag_spec_CXX='${wl}-E'
12048
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12050
output_verbose_link_cmd='echo'
12056
case $cc_basename in
12058
# Kuck and Associates, Inc. (KAI) C++ Compiler
12060
# KCC will only create a shared library if the output file
12061
# ends with ".so" (or ".sl" for HP-UX), so rename the library
12062
# to its proper name (with version) after linking.
12063
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'
12065
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12066
hardcode_libdir_separator_CXX=:
12068
# Archives containing C++ object files must be created using
12069
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12070
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12074
# Rational C++ 2.4.1
12075
# FIXME: insert proper C++ library support
12079
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12080
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'
12082
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12083
hardcode_libdir_separator_CXX=:
12085
# Commands to make compiler produce verbose output that lists
12086
# what "hidden" libraries, object files and flags are used when
12087
# linking a shared library.
12089
# There doesn't appear to be a way to prevent this compiler from
12090
# explicitly linking system object files so we need to strip them
12091
# from the output so that they don't get included in the library
12093
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'
12096
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12097
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12098
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'
12100
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12101
hardcode_libdir_separator_CXX=:
12103
# Commands to make compiler produce verbose output that lists
12104
# what "hidden" libraries, object files and flags are used when
12105
# linking a shared library.
12106
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12109
# FIXME: insert proper C++ library support
12116
case $cc_basename in
12118
# Kuck and Associates, Inc. (KAI) C++ Compiler
12120
# KCC will only create a shared library if the output file
12121
# ends with ".so" (or ".sl" for HP-UX), so rename the library
12122
# to its proper name (with version) after linking.
12123
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'
12125
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12126
hardcode_libdir_separator_CXX=:
12128
# Archives containing C++ object files must be created using
12129
# the KAI C++ compiler.
12130
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12133
# Rational C++ 2.4.1
12134
# FIXME: insert proper C++ library support
12138
allow_undefined_flag_CXX=' -expect_unresolved \*'
12139
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'
12140
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12141
echo "-hidden">> $lib.exp~
12142
$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~
12145
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12146
hardcode_libdir_separator_CXX=:
12148
# Commands to make compiler produce verbose output that lists
12149
# what "hidden" libraries, object files and flags are used when
12150
# linking a shared library.
12152
# There doesn't appear to be a way to prevent this compiler from
12153
# explicitly linking system object files so we need to strip them
12154
# from the output so that they don't get included in the library
12156
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'
12159
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12160
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12161
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'
12163
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12164
hardcode_libdir_separator_CXX=:
12166
# Commands to make compiler produce verbose output that lists
12167
# what "hidden" libraries, object files and flags are used when
12168
# linking a shared library.
12169
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12172
# FIXME: insert proper C++ library support
12179
# FIXME: insert proper C++ library support
12183
case $cc_basename in
12186
# FIXME: insert proper C++ library support
12191
# FIXME: insert proper C++ library support
12195
# FIXME: insert proper C++ library support
12201
case $cc_basename in
12203
# Sun C++ 4.2, 5.x and Centerline C++
12204
archive_cmds_need_lc_CXX=yes
12205
no_undefined_flag_CXX=' -zdefs'
12206
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12207
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12208
$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'
12210
hardcode_libdir_flag_spec_CXX='-R$libdir'
12211
hardcode_shlibpath_var_CXX=no
12213
solaris2.[0-5] | solaris2.[0-5].*) ;;
12215
# The compiler driver will combine and reorder linker options,
12216
# but understands `-z linker_flag'.
12217
# Supported since Solaris 2.6 (maybe 2.5.1?)
12218
whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12221
link_all_deplibs_CXX=yes
12223
output_verbose_link_cmd='echo'
12225
# Archives containing C++ object files must be created using
12226
# "CC -xar", where "CC" is the Sun C++ compiler. This is
12227
# necessary to make sure instantiated templates are included
12229
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12232
# Green Hills C++ Compiler
12233
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12235
# The C++ compiler must be used to create the archive.
12236
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12239
# GNU C++ compiler with Solaris linker
12240
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12241
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12242
if $CC --version | grep -v '^2\.7' > /dev/null; then
12243
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12244
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12245
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12247
# Commands to make compiler produce verbose output that lists
12248
# what "hidden" libraries, object files and flags are used when
12249
# linking a shared library.
12250
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12252
# g++ 2.7 appears to require `-G' NOT `-shared' on this
12254
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12255
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12256
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12258
# Commands to make compiler produce verbose output that lists
12259
# what "hidden" libraries, object files and flags are used when
12260
# linking a shared library.
12261
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12264
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12266
solaris2.[0-5] | solaris2.[0-5].*) ;;
12268
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12275
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12276
no_undefined_flag_CXX='${wl}-z,text'
12277
archive_cmds_need_lc_CXX=no
12278
hardcode_shlibpath_var_CXX=no
12279
runpath_var='LD_RUN_PATH'
12281
case $cc_basename in
12283
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12284
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12287
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12288
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12292
sysv5* | sco3.2v5* | sco5v6*)
12293
# Note: We can NOT use -z defs as we might desire, because we do not
12294
# link with -lc, and that would cause any symbols used from libc to
12295
# always be unresolved, which means just about no library would
12296
# ever link correctly. If we're not using GNU ld we use -z text
12297
# though, which does catch some bad symbols but isn't as heavy-handed
12299
# For security reasons, it is highly recommended that you always
12300
# use absolute paths for naming shared libraries, and exclude the
12301
# DT_RUNPATH tag from executables and libraries. But doing so
12302
# requires that you compile everything twice, which is a pain.
12303
# So that behaviour is only enabled if SCOABSPATH is set to a
12304
# non-empty value in the environment. Most likely only useful for
12305
# creating official distributions of packages.
12306
# This is a hack until libtool officially supports absolute path
12307
# names for shared libraries.
12308
no_undefined_flag_CXX='${wl}-z,text'
12309
allow_undefined_flag_CXX='${wl}-z,nodefs'
12310
archive_cmds_need_lc_CXX=no
12311
hardcode_shlibpath_var_CXX=no
12312
hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12313
hardcode_libdir_separator_CXX=':'
12314
link_all_deplibs_CXX=yes
12315
export_dynamic_flag_spec_CXX='${wl}-Bexport'
12316
runpath_var='LD_RUN_PATH'
12318
case $cc_basename in
12320
archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12321
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12324
archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12325
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12330
case $cc_basename in
12332
# NonStop-UX NCC 3.20
12333
# FIXME: insert proper C++ library support
12337
# FIXME: insert proper C++ library support
12343
# FIXME: insert proper C++ library support
12347
# FIXME: insert proper C++ library support
12351
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12352
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12353
test "$ld_shlibs_CXX" = no && can_build_shared=no
12358
cat > conftest.$ac_ext <<EOF
12362
Foo (void) { a = 0; }
12368
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12369
(eval $ac_compile) 2>&5
12371
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12372
(exit $ac_status); }; then
12373
# Parse the compiler output and extract the necessary
12374
# objects, libraries and library flags.
12376
# Sentinel used to keep track of whether or not we are before
12377
# the conftest object file.
12378
pre_test_object_deps_done=no
12380
# The `*' in the case matches for architectures that use `case' in
12381
# $output_verbose_cmd can trigger glob expansion during the loop
12382
# eval without this substitution.
12383
output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12385
for p in `eval $output_verbose_link_cmd`; do
12389
# Some compilers place space between "-{L,R}" and the path.
12390
# Remove the space.
12391
if test $p = "-L" \
12392
|| test $p = "-R"; then
12399
if test "$pre_test_object_deps_done" = no; then
12402
# Internal compiler library paths should come after those
12403
# provided the user. The postdeps already come after the
12404
# user supplied libs so there is no need to process them.
12405
if test -z "$compiler_lib_search_path_CXX"; then
12406
compiler_lib_search_path_CXX="${prev}${p}"
12408
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12411
# The "-l" case would never come before the object being
12412
# linked, so don't bother handling this case.
12415
if test -z "$postdeps_CXX"; then
12416
postdeps_CXX="${prev}${p}"
12418
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12424
# This assumes that the test object file only shows up
12425
# once in the compiler output.
12426
if test "$p" = "conftest.$objext"; then
12427
pre_test_object_deps_done=yes
12431
if test "$pre_test_object_deps_done" = no; then
12432
if test -z "$predep_objects_CXX"; then
12433
predep_objects_CXX="$p"
12435
predep_objects_CXX="$predep_objects_CXX $p"
12438
if test -z "$postdep_objects_CXX"; then
12439
postdep_objects_CXX="$p"
12441
postdep_objects_CXX="$postdep_objects_CXX $p"
12446
*) ;; # Ignore the rest.
12454
echo "libtool.m4: error: problem compiling CXX test program"
12457
$rm -f confest.$objext
12459
compiler_lib_search_dirs_CXX=
12460
if test -n "$compiler_lib_search_path_CXX"; then
12461
compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12464
# PORTME: override above test on systems where it is broken
12467
# Interix 3.5 installs completely hosed .la files for C++, so rather than
12468
# hack all around it, let's just trust "g++" to DTRT.
12469
predep_objects_CXX=
12470
postdep_objects_CXX=
12475
case `$CC -V 2>&1 | sed 5q` in
12479
# The more standards-conforming stlport4 library is
12480
# incompatible with the Cstd library. Avoid specifying
12481
# it if it's in CXXFLAGS. Ignore libCrun as
12482
# -library=stlport4 depends on it.
12483
case " $CXX $CXXFLAGS " in
12484
*" -library=stlport4 "*)
12485
solaris_use_stlport4=yes
12488
if test "$solaris_use_stlport4" != yes; then
12489
postdeps_CXX='-library=Cstd -library=Crun'
12496
case $cc_basename in
12498
# The more standards-conforming stlport4 library is
12499
# incompatible with the Cstd library. Avoid specifying
12500
# it if it's in CXXFLAGS. Ignore libCrun as
12501
# -library=stlport4 depends on it.
12502
case " $CXX $CXXFLAGS " in
12503
*" -library=stlport4 "*)
12504
solaris_use_stlport4=yes
12508
# Adding this requires a known-good setup of shared libraries for
12509
# Sun compiler versions before 5.6, else PIC objects from an old
12510
# archive will be linked into the output, leading to subtle bugs.
12511
if test "$solaris_use_stlport4" != yes; then
12512
postdeps_CXX='-library=Cstd -library=Crun'
12519
case " $postdeps_CXX " in
12520
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12523
lt_prog_compiler_wl_CXX=
12524
lt_prog_compiler_pic_CXX=
12525
lt_prog_compiler_static_CXX=
12527
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12528
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12530
# C++ specific cases for pic, static, wl, etc.
12531
if test "$GXX" = yes; then
12532
lt_prog_compiler_wl_CXX='-Wl,'
12533
lt_prog_compiler_static_CXX='-static'
12537
# All AIX code is PIC.
12538
if test "$host_cpu" = ia64; then
12539
# AIX 5 now supports IA64 processor
12540
lt_prog_compiler_static_CXX='-Bstatic'
12544
# FIXME: we need at least 68020 code to build shared libraries, but
12545
# adding the `-m68020' flag to GCC prevents building anything better,
12547
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12549
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12550
# PIC is the default for these OSes.
12552
mingw* | cygwin* | os2* | pw32*)
12553
# This hack is so that the source file can tell whether it is being
12554
# built for inclusion in a dll (and should export symbols for example).
12555
# Although the cygwin gcc ignores -fPIC, still need this for old-style
12556
# (--disable-auto-import) libraries
12557
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12559
darwin* | rhapsody*)
12560
# PIC is the default on this platform
12561
# Common symbols not allowed in MH_DYLIB files
12562
lt_prog_compiler_pic_CXX='-fno-common'
12565
# DJGPP does not support shared libraries at all
12566
lt_prog_compiler_pic_CXX=
12569
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
12570
# Instead, we relocate shared libraries at runtime.
12573
if test -d /usr/nec; then
12574
lt_prog_compiler_pic_CXX=-Kconform_pic
12578
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12579
# not for PA HP-UX.
12584
lt_prog_compiler_pic_CXX='-fPIC'
12589
lt_prog_compiler_pic_CXX='-fPIC'
12595
# All AIX code is PIC.
12596
if test "$host_cpu" = ia64; then
12597
# AIX 5 now supports IA64 processor
12598
lt_prog_compiler_static_CXX='-Bstatic'
12600
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12604
case $cc_basename in
12606
# Green Hills C++ Compiler
12607
# _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"
12612
# PIC is the default on this platform
12613
# Common symbols not allowed in MH_DYLIB files
12614
case $cc_basename in
12616
lt_prog_compiler_pic_CXX='-qnocommon'
12617
lt_prog_compiler_wl_CXX='-Wl,'
12622
case $cc_basename in
12624
lt_prog_compiler_pic_CXX='-KPIC'
12627
# Green Hills C++ Compiler
12628
lt_prog_compiler_pic_CXX='-pic'
12634
freebsd* | dragonfly*)
12635
# FreeBSD uses GNU C++
12637
hpux9* | hpux10* | hpux11*)
12638
case $cc_basename in
12640
lt_prog_compiler_wl_CXX='-Wl,'
12641
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12642
if test "$host_cpu" != ia64; then
12643
lt_prog_compiler_pic_CXX='+Z'
12647
lt_prog_compiler_wl_CXX='-Wl,'
12648
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12654
lt_prog_compiler_pic_CXX='+Z'
12663
# This is c89, which is MS Visual C++ (no shared libs)
12664
# Anyone wants to do a port?
12666
irix5* | irix6* | nonstopux*)
12667
case $cc_basename in
12669
lt_prog_compiler_wl_CXX='-Wl,'
12670
lt_prog_compiler_static_CXX='-non_shared'
12671
# CC pic flag -KPIC is the default.
12677
linux* | k*bsd*-gnu)
12678
case $cc_basename in
12681
lt_prog_compiler_wl_CXX='--backend -Wl,'
12682
lt_prog_compiler_pic_CXX='-fPIC'
12686
lt_prog_compiler_wl_CXX='-Wl,'
12687
lt_prog_compiler_pic_CXX='-KPIC'
12688
lt_prog_compiler_static_CXX='-static'
12691
# Portland Group C++ compiler.
12692
lt_prog_compiler_wl_CXX='-Wl,'
12693
lt_prog_compiler_pic_CXX='-fpic'
12694
lt_prog_compiler_static_CXX='-Bstatic'
12698
# Make sure the PIC flag is empty. It appears that all Alpha
12699
# Linux and Compaq Tru64 Unix objects are PIC.
12700
lt_prog_compiler_pic_CXX=
12701
lt_prog_compiler_static_CXX='-non_shared'
12704
case `$CC -V 2>&1 | sed 5q` in
12707
lt_prog_compiler_pic_CXX='-KPIC'
12708
lt_prog_compiler_static_CXX='-Bstatic'
12709
lt_prog_compiler_wl_CXX='-Qoption ld '
12720
case $cc_basename in
12722
lt_prog_compiler_pic_CXX='-W c,exportall'
12728
netbsd* | netbsdelf*-gnu)
12730
osf3* | osf4* | osf5*)
12731
case $cc_basename in
12733
lt_prog_compiler_wl_CXX='--backend -Wl,'
12736
# Rational C++ 2.4.1
12737
lt_prog_compiler_pic_CXX='-pic'
12740
# Digital/Compaq C++
12741
lt_prog_compiler_wl_CXX='-Wl,'
12742
# Make sure the PIC flag is empty. It appears that all Alpha
12743
# Linux and Compaq Tru64 Unix objects are PIC.
12744
lt_prog_compiler_pic_CXX=
12745
lt_prog_compiler_static_CXX='-non_shared'
12754
case $cc_basename in
12756
# Sun C++ 4.2, 5.x and Centerline C++
12757
lt_prog_compiler_pic_CXX='-KPIC'
12758
lt_prog_compiler_static_CXX='-Bstatic'
12759
lt_prog_compiler_wl_CXX='-Qoption ld '
12762
# Green Hills C++ Compiler
12763
lt_prog_compiler_pic_CXX='-PIC'
12770
case $cc_basename in
12773
lt_prog_compiler_pic_CXX='-pic'
12774
lt_prog_compiler_static_CXX='-Bstatic'
12778
lt_prog_compiler_pic_CXX='-pic'
12785
case $cc_basename in
12787
# NonStop-UX NCC 3.20
12788
lt_prog_compiler_pic_CXX='-KPIC'
12794
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12795
case $cc_basename in
12797
lt_prog_compiler_wl_CXX='-Wl,'
12798
lt_prog_compiler_pic_CXX='-KPIC'
12799
lt_prog_compiler_static_CXX='-Bstatic'
12806
lt_prog_compiler_can_build_shared_CXX=no
12811
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12812
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12815
# Check to make sure the PIC flag actually works.
12817
if test -n "$lt_prog_compiler_pic_CXX"; then
12819
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12820
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12821
if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12822
echo $ECHO_N "(cached) $ECHO_C" >&6
12824
lt_cv_prog_compiler_pic_works_CXX=no
12825
ac_outfile=conftest.$ac_objext
12826
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12827
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12828
# Insert the option either (1) after the last *FLAGS variable, or
12829
# (2) before a word containing "conftest.", or (3) at the end.
12830
# Note that $ac_compile itself does not contain backslashes and begins
12831
# with a dollar sign (not a hyphen), so the echo should work correctly.
12832
# The option is referenced via a variable to avoid confusing sed.
12833
lt_compile=`echo "$ac_compile" | $SED \
12834
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12835
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12836
-e 's:$: $lt_compiler_flag:'`
12837
(eval echo "\"\$as_me:12837: $lt_compile\"" >&5)
12838
(eval "$lt_compile" 2>conftest.err)
12840
cat conftest.err >&5
12841
echo "$as_me:12841: \$? = $ac_status" >&5
12842
if (exit $ac_status) && test -s "$ac_outfile"; then
12843
# The compiler can only warn and ignore the option if not recognized
12844
# So say no if there are warnings other than the usual output.
12845
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12846
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12847
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12848
lt_cv_prog_compiler_pic_works_CXX=yes
12854
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12855
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12857
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12858
case $lt_prog_compiler_pic_CXX in
12860
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12863
lt_prog_compiler_pic_CXX=
12864
lt_prog_compiler_can_build_shared_CXX=no
12869
# For platforms which do not support PIC, -DPIC is meaningless:
12871
lt_prog_compiler_pic_CXX=
12874
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12879
# Check to make sure the static flag actually works.
12881
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12882
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12883
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12884
if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12885
echo $ECHO_N "(cached) $ECHO_C" >&6
12887
lt_cv_prog_compiler_static_works_CXX=no
12888
save_LDFLAGS="$LDFLAGS"
12889
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12890
echo "$lt_simple_link_test_code" > conftest.$ac_ext
12891
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12892
# The linker can only warn and ignore the option if not recognized
12893
# So say no if there are warnings
12894
if test -s conftest.err; then
12895
# Append any errors to the config.log.
12896
cat conftest.err 1>&5
12897
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12898
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12899
if diff conftest.exp conftest.er2 >/dev/null; then
12900
lt_cv_prog_compiler_static_works_CXX=yes
12903
lt_cv_prog_compiler_static_works_CXX=yes
12907
LDFLAGS="$save_LDFLAGS"
12910
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12911
echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
12913
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12916
lt_prog_compiler_static_CXX=
12920
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12921
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12922
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12923
echo $ECHO_N "(cached) $ECHO_C" >&6
12925
lt_cv_prog_compiler_c_o_CXX=no
12926
$rm -r conftest 2>/dev/null
12930
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12932
lt_compiler_flag="-o out/conftest2.$ac_objext"
12933
# Insert the option either (1) after the last *FLAGS variable, or
12934
# (2) before a word containing "conftest.", or (3) at the end.
12935
# Note that $ac_compile itself does not contain backslashes and begins
12936
# with a dollar sign (not a hyphen), so the echo should work correctly.
12937
lt_compile=`echo "$ac_compile" | $SED \
12938
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12939
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12940
-e 's:$: $lt_compiler_flag:'`
12941
(eval echo "\"\$as_me:12941: $lt_compile\"" >&5)
12942
(eval "$lt_compile" 2>out/conftest.err)
12944
cat out/conftest.err >&5
12945
echo "$as_me:12945: \$? = $ac_status" >&5
12946
if (exit $ac_status) && test -s out/conftest2.$ac_objext
12948
# The compiler can only warn and ignore the option if not recognized
12949
# So say no if there are warnings
12950
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12951
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12952
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12953
lt_cv_prog_compiler_c_o_CXX=yes
12958
# SGI C++ compiler will create directory out/ii_files/ for
12959
# template instantiation
12960
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12961
$rm out/* && rmdir out
12967
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12968
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12971
hard_links="nottested"
12972
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12973
# do not overwrite the value of need_locks provided by the user
12974
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12975
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12978
ln conftest.a conftest.b 2>/dev/null && hard_links=no
12980
ln conftest.a conftest.b 2>&5 || hard_links=no
12981
ln conftest.a conftest.b 2>/dev/null && hard_links=no
12982
{ echo "$as_me:$LINENO: result: $hard_links" >&5
12983
echo "${ECHO_T}$hard_links" >&6; }
12984
if test "$hard_links" = no; then
12985
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12986
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12993
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12994
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12996
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12999
# If we're using GNU nm, then we don't want the "-C" option.
13000
# -C means demangle to AIX nm, but means don't demangle with GNU nm
13001
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13002
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'
13004
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'
13008
export_symbols_cmds_CXX="$ltdll_cmds"
13011
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'
13013
linux* | k*bsd*-gnu)
13014
link_all_deplibs_CXX=no
13017
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13020
exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13022
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13023
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13024
test "$ld_shlibs_CXX" = no && can_build_shared=no
13027
# Do we need to explicitly link libc?
13029
case "x$archive_cmds_need_lc_CXX" in
13031
# Assume -lc should be added
13032
archive_cmds_need_lc_CXX=yes
13034
if test "$enable_shared" = yes && test "$GCC" = yes; then
13035
case $archive_cmds_CXX in
13037
# FIXME: we may have to deal with multi-command sequences.
13040
# Test whether the compiler implicitly links with -lc since on some
13041
# systems, -lgcc has to come before -lc. If gcc already passes -lc
13042
# to ld, don't add -lc before -lgcc.
13043
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13044
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13046
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13048
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13049
(eval $ac_compile) 2>&5
13051
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13052
(exit $ac_status); } 2>conftest.err; then
13055
libobjs=conftest.$ac_objext
13057
wl=$lt_prog_compiler_wl_CXX
13058
pic_flag=$lt_prog_compiler_pic_CXX
13064
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13065
allow_undefined_flag_CXX=
13066
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13067
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13069
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13070
(exit $ac_status); }
13072
archive_cmds_need_lc_CXX=no
13074
archive_cmds_need_lc_CXX=yes
13076
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13078
cat conftest.err 1>&5
13081
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13082
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13089
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13090
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13091
library_names_spec=
13092
libname_spec='lib$name'
13096
postuninstall_cmds=
13100
shlibpath_overrides_runpath=unknown
13102
dynamic_linker="$host_os ld.so"
13103
sys_lib_dlsearch_path_spec="/lib /usr/lib"
13105
need_lib_prefix=unknown
13106
hardcode_into_libs=no
13108
# when you set need_version to no, make sure it does not cause -set_version
13109
# flags to be left without arguments
13110
need_version=unknown
13115
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13116
shlibpath_var=LIBPATH
13118
# AIX 3 has no versioning support, so we append a major version to the name.
13119
soname_spec='${libname}${release}${shared_ext}$major'
13126
hardcode_into_libs=yes
13127
if test "$host_cpu" = ia64; then
13128
# AIX 5 supports IA64
13129
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13130
shlibpath_var=LD_LIBRARY_PATH
13132
# With GCC up to 2.95.x, collect2 would create an import file
13133
# for dependence libraries. The import file would start with
13134
# the line `#! .'. This would cause the generated library to
13135
# depend on `.', always an invalid library. This was fixed in
13136
# development snapshots of GCC prior to 3.0.
13138
aix4 | aix4.[01] | aix4.[01].*)
13139
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13141
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13144
can_build_shared=no
13148
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13149
# soname into executable. Probably we can add versioning support to
13150
# collect2, so additional links can be useful in future.
13151
if test "$aix_use_runtimelinking" = yes; then
13152
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
13153
# instead of lib<name>.a to let people know that these are not
13154
# typical AIX shared libraries.
13155
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13157
# We preserve .a as extension for shared libraries through AIX4.2
13158
# and later when we are not doing run time linking.
13159
library_names_spec='${libname}${release}.a $libname.a'
13160
soname_spec='${libname}${release}${shared_ext}$major'
13162
shlibpath_var=LIBPATH
13167
library_names_spec='$libname.ixlibrary $libname.a'
13168
# Create ${libname}_ixlibrary.a entries in /sys/libs.
13169
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'
13173
library_names_spec='${libname}${shared_ext}'
13174
dynamic_linker="$host_os ld.so"
13175
shlibpath_var=LIBRARY_PATH
13181
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13182
soname_spec='${libname}${release}${shared_ext}$major'
13183
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13184
shlibpath_var=LD_LIBRARY_PATH
13185
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13186
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13187
# the default ld.so.conf also contains /usr/contrib/lib and
13188
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13189
# libtool to hard-code these into programs
13192
cygwin* | mingw* | pw32*)
13193
version_type=windows
13198
case $GCC,$host_os in
13199
yes,cygwin* | yes,mingw* | yes,pw32*)
13200
library_names_spec='$libname.dll.a'
13201
# DLL is installed to $(libdir)/../bin by postinstall_cmds
13202
postinstall_cmds='base_file=`basename \${file}`~
13203
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13204
dldir=$destdir/`dirname \$dlpath`~
13205
test -d \$dldir || mkdir -p \$dldir~
13206
$install_prog $dir/$dlname \$dldir/$dlname~
13207
chmod a+x \$dldir/$dlname'
13208
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13209
dlpath=$dir/\$dldll~
13211
shlibpath_overrides_runpath=yes
13215
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
13216
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13217
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13220
# MinGW DLLs use traditional 'lib' prefix
13221
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13222
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13223
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13224
# It is most probably a Windows format PATH printed by
13225
# mingw gcc, but we are running on Cygwin. Gcc prints its search
13226
# path with ; separators, and with drive letters. We can handle the
13227
# drive letters (cygwin fileutils understands them), so leave them,
13228
# especially as we might pass files found there to a mingw objdump,
13229
# which wouldn't understand a cygwinified path. Ahh.
13230
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13232
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13236
# pw32 DLLs use 'pw' prefix rather than 'lib'
13237
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13243
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13246
dynamic_linker='Win32 ld.exe'
13247
# FIXME: first we should search . and the directory the executable is in
13251
darwin* | rhapsody*)
13252
dynamic_linker="$host_os dyld"
13253
version_type=darwin
13256
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13257
soname_spec='${libname}${release}${major}$shared_ext'
13258
shlibpath_overrides_runpath=yes
13259
shlibpath_var=DYLD_LIBRARY_PATH
13260
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13262
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13269
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13270
soname_spec='${libname}${release}${shared_ext}$major'
13271
shlibpath_var=LD_LIBRARY_PATH
13278
freebsd* | dragonfly*)
13279
# DragonFly does not have aout. When/if they implement a new
13280
# versioning mechanism, adjust this.
13281
if test -x /usr/bin/objformat; then
13282
objformat=`/usr/bin/objformat`
13285
freebsd[123]*) objformat=aout ;;
13286
*) objformat=elf ;;
13289
version_type=freebsd-$objformat
13290
case $version_type in
13292
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13297
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13301
shlibpath_var=LD_LIBRARY_PATH
13304
shlibpath_overrides_runpath=yes
13306
freebsd3.[01]* | freebsdelf3.[01]*)
13307
shlibpath_overrides_runpath=yes
13308
hardcode_into_libs=yes
13310
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13311
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13312
shlibpath_overrides_runpath=no
13313
hardcode_into_libs=yes
13315
*) # from 4.6 on, and DragonFly
13316
shlibpath_overrides_runpath=yes
13317
hardcode_into_libs=yes
13326
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13327
soname_spec='${libname}${release}${shared_ext}$major'
13328
shlibpath_var=LD_LIBRARY_PATH
13329
hardcode_into_libs=yes
13332
hpux9* | hpux10* | hpux11*)
13333
# Give a soname corresponding to the major version so that dld.sl refuses to
13334
# link against other versions.
13341
hardcode_into_libs=yes
13342
dynamic_linker="$host_os dld.so"
13343
shlibpath_var=LD_LIBRARY_PATH
13344
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13345
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13346
soname_spec='${libname}${release}${shared_ext}$major'
13347
if test "X$HPUX_IA64_MODE" = X32; then
13348
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13350
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13352
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13356
hardcode_into_libs=yes
13357
dynamic_linker="$host_os dld.sl"
13358
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13359
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13360
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13361
soname_spec='${libname}${release}${shared_ext}$major'
13362
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13363
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13367
dynamic_linker="$host_os dld.sl"
13368
shlibpath_var=SHLIB_PATH
13369
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13370
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13371
soname_spec='${libname}${release}${shared_ext}$major'
13374
# HP-UX runs *really* slowly unless shared libraries are mode 555.
13375
postinstall_cmds='chmod 555 $lib'
13382
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13383
soname_spec='${libname}${release}${shared_ext}$major'
13384
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13385
shlibpath_var=LD_LIBRARY_PATH
13386
shlibpath_overrides_runpath=no
13387
hardcode_into_libs=yes
13390
irix5* | irix6* | nonstopux*)
13392
nonstopux*) version_type=nonstopux ;;
13394
if test "$lt_cv_prog_gnu_ld" = yes; then
13402
soname_spec='${libname}${release}${shared_ext}$major'
13403
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13405
irix5* | nonstopux*)
13406
libsuff= shlibsuff=
13409
case $LD in # libtool.m4 will add one of these switches to LD
13410
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13411
libsuff= shlibsuff= libmagic=32-bit;;
13412
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13413
libsuff=32 shlibsuff=N32 libmagic=N32;;
13414
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13415
libsuff=64 shlibsuff=64 libmagic=64-bit;;
13416
*) libsuff= shlibsuff= libmagic=never-match;;
13420
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13421
shlibpath_overrides_runpath=no
13422
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13423
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13424
hardcode_into_libs=yes
13427
# No shared lib support for Linux oldld, aout, or coff.
13428
linux*oldld* | linux*aout* | linux*coff*)
13432
# This must be Linux ELF.
13433
linux* | k*bsd*-gnu)
13437
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13438
soname_spec='${libname}${release}${shared_ext}$major'
13439
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13440
shlibpath_var=LD_LIBRARY_PATH
13441
shlibpath_overrides_runpath=no
13442
# This implies no fast_install, which is unacceptable.
13443
# Some rework will be needed to allow for fast_install
13444
# before this can be enabled.
13445
hardcode_into_libs=yes
13447
# Append ld.so.conf contents to the search path
13448
if test -f /etc/ld.so.conf; then
13449
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13450
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13453
# We used to test for /lib/ld.so.1 and disable shared libraries on
13454
# powerpc, because MkLinux only supported shared libraries with the
13455
# GNU dynamic linker. Since this was broken with cross compilers,
13456
# most powerpc-linux boxes support dynamic linking these days and
13457
# people can always --disable-shared, the test was removed, and we
13458
# assume the GNU/Linux dynamic linker is in use.
13459
dynamic_linker='GNU/Linux ld.so'
13466
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13467
soname_spec='${libname}${release}${shared_ext}$major'
13468
shlibpath_var=LD_LIBRARY_PATH
13469
shlibpath_overrides_runpath=no
13470
hardcode_into_libs=yes
13471
dynamic_linker='NetBSD ld.elf_so'
13478
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13479
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13480
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13481
dynamic_linker='NetBSD (a.out) ld.so'
13483
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13484
soname_spec='${libname}${release}${shared_ext}$major'
13485
dynamic_linker='NetBSD ld.elf_so'
13487
shlibpath_var=LD_LIBRARY_PATH
13488
shlibpath_overrides_runpath=yes
13489
hardcode_into_libs=yes
13494
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13495
shlibpath_var=LD_LIBRARY_PATH
13496
shlibpath_overrides_runpath=yes
13503
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13504
soname_spec='${libname}${release}${shared_ext}$major'
13505
shlibpath_var=LD_LIBRARY_PATH
13506
shlibpath_overrides_runpath=yes
13511
sys_lib_dlsearch_path_spec="/usr/lib"
13513
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13515
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13516
*) need_version=no ;;
13518
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13519
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13520
shlibpath_var=LD_LIBRARY_PATH
13521
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13523
openbsd2.[89] | openbsd2.[89].*)
13524
shlibpath_overrides_runpath=no
13527
shlibpath_overrides_runpath=yes
13531
shlibpath_overrides_runpath=yes
13536
libname_spec='$name'
13539
library_names_spec='$libname${shared_ext} $libname.a'
13540
dynamic_linker='OS/2 ld.exe'
13541
shlibpath_var=LIBPATH
13544
osf3* | osf4* | osf5*)
13548
soname_spec='${libname}${release}${shared_ext}$major'
13549
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13550
shlibpath_var=LD_LIBRARY_PATH
13551
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13552
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13563
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13564
soname_spec='${libname}${release}${shared_ext}$major'
13565
shlibpath_var=LD_LIBRARY_PATH
13566
shlibpath_overrides_runpath=yes
13567
hardcode_into_libs=yes
13568
# ldd complains unless libraries are executable
13569
postinstall_cmds='chmod +x $lib'
13574
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13575
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13576
shlibpath_var=LD_LIBRARY_PATH
13577
shlibpath_overrides_runpath=yes
13578
if test "$with_gnu_ld" = yes; then
13586
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13587
soname_spec='${libname}${release}${shared_ext}$major'
13588
shlibpath_var=LD_LIBRARY_PATH
13589
case $host_vendor in
13591
shlibpath_overrides_runpath=no
13593
export_dynamic_flag_spec='${wl}-Blargedynsym'
13594
runpath_var=LD_RUN_PATH
13602
shlibpath_overrides_runpath=no
13603
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13609
if test -d /usr/nec ;then
13611
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13612
soname_spec='$libname${shared_ext}.$major'
13613
shlibpath_var=LD_LIBRARY_PATH
13617
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13618
version_type=freebsd-elf
13621
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13622
soname_spec='${libname}${release}${shared_ext}$major'
13623
shlibpath_var=LD_LIBRARY_PATH
13624
hardcode_into_libs=yes
13625
if test "$with_gnu_ld" = yes; then
13626
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13627
shlibpath_overrides_runpath=no
13629
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13630
shlibpath_overrides_runpath=yes
13633
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13637
sys_lib_dlsearch_path_spec='/usr/lib'
13642
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13643
soname_spec='${libname}${release}${shared_ext}$major'
13644
shlibpath_var=LD_LIBRARY_PATH
13651
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13652
echo "${ECHO_T}$dynamic_linker" >&6; }
13653
test "$dynamic_linker" = no && can_build_shared=no
13655
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13656
echo $ECHO_N "(cached) $ECHO_C" >&6
13658
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13661
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13662
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13663
echo $ECHO_N "(cached) $ECHO_C" >&6
13665
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13668
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13670
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13671
if test "$GCC" = yes; then
13672
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13675
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13676
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13677
hardcode_action_CXX=
13678
if test -n "$hardcode_libdir_flag_spec_CXX" || \
13679
test -n "$runpath_var_CXX" || \
13680
test "X$hardcode_automatic_CXX" = "Xyes" ; then
13682
# We can hardcode non-existant directories.
13683
if test "$hardcode_direct_CXX" != no &&
13684
# If the only mechanism to avoid hardcoding is shlibpath_var, we
13685
# have to relink, otherwise we might link with an installed library
13686
# when we should be linking with a yet-to-be-installed one
13687
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13688
test "$hardcode_minus_L_CXX" != no; then
13689
# Linking always hardcodes the temporary library directory.
13690
hardcode_action_CXX=relink
13692
# We can link without hardcoding, and we can hardcode nonexisting dirs.
13693
hardcode_action_CXX=immediate
13696
# We cannot hardcode anything, or else we can only hardcode existing
13698
hardcode_action_CXX=unsupported
13700
{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13701
echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13703
if test "$hardcode_action_CXX" = relink; then
13704
# Fast installation is not supported
13705
enable_fast_install=no
13706
elif test "$shlibpath_overrides_runpath" = yes ||
13707
test "$enable_shared" = no; then
13708
# Fast installation is not necessary
13709
enable_fast_install=needless
13713
# The else clause should only fire when bootstrapping the
13714
# libtool distribution, otherwise you forgot to ship ltmain.sh
13715
# with your package, and you will get complaints that there are
13716
# no rules to generate ltmain.sh.
13717
if test -f "$ltmain"; then
13718
# See if we are running on zsh, and set the options which allow our commands through
13719
# without removal of \ escapes.
13720
if test -n "${ZSH_VERSION+set}" ; then
13721
setopt NO_GLOB_SUBST
13723
# Now quote all the things that may contain metacharacters while being
13724
# careful not to overquote the AC_SUBSTed values. We take copies of the
13725
# variables and quote the copies for generation of the libtool script.
13726
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13728
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13729
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13730
deplibs_check_method reload_flag reload_cmds need_locks \
13731
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13732
lt_cv_sys_global_symbol_to_c_name_address \
13733
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13734
old_postinstall_cmds old_postuninstall_cmds \
13738
lt_prog_compiler_wl_CXX \
13739
lt_prog_compiler_pic_CXX \
13740
lt_prog_compiler_static_CXX \
13741
lt_prog_compiler_no_builtin_flag_CXX \
13742
export_dynamic_flag_spec_CXX \
13743
thread_safe_flag_spec_CXX \
13744
whole_archive_flag_spec_CXX \
13745
enable_shared_with_static_runtimes_CXX \
13746
old_archive_cmds_CXX \
13747
old_archive_from_new_cmds_CXX \
13748
predep_objects_CXX \
13749
postdep_objects_CXX \
13752
compiler_lib_search_path_CXX \
13753
compiler_lib_search_dirs_CXX \
13755
archive_expsym_cmds_CXX \
13756
postinstall_cmds_CXX \
13757
postuninstall_cmds_CXX \
13758
old_archive_from_expsyms_cmds_CXX \
13759
allow_undefined_flag_CXX \
13760
no_undefined_flag_CXX \
13761
export_symbols_cmds_CXX \
13762
hardcode_libdir_flag_spec_CXX \
13763
hardcode_libdir_flag_spec_ld_CXX \
13764
hardcode_libdir_separator_CXX \
13765
hardcode_automatic_CXX \
13767
module_expsym_cmds_CXX \
13768
lt_cv_prog_compiler_c_o_CXX \
13769
fix_srcfile_path_CXX \
13770
exclude_expsyms_CXX \
13771
include_expsyms_CXX; do
13774
old_archive_cmds_CXX | \
13775
old_archive_from_new_cmds_CXX | \
13776
archive_cmds_CXX | \
13777
archive_expsym_cmds_CXX | \
13778
module_cmds_CXX | \
13779
module_expsym_cmds_CXX | \
13780
old_archive_from_expsyms_cmds_CXX | \
13781
export_symbols_cmds_CXX | \
13782
extract_expsyms_cmds | reload_cmds | finish_cmds | \
13783
postinstall_cmds | postuninstall_cmds | \
13784
old_postinstall_cmds | old_postuninstall_cmds | \
13785
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13786
# Double-quote double-evaled strings.
13787
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13790
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13796
*'\$0 --fallback-echo"')
13797
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13803
cat <<__EOF__ >> "$cfgfile"
13804
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13806
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13808
# Shell to use when invoking shell scripts.
13811
# Whether or not to build shared libraries.
13812
build_libtool_libs=$enable_shared
13814
# Whether or not to build static libraries.
13815
build_old_libs=$enable_static
13817
# Whether or not to add -lc for building shared libraries.
13818
build_libtool_need_lc=$archive_cmds_need_lc_CXX
13820
# Whether or not to disallow shared libs when runtime libs are static
13821
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13823
# Whether or not to optimize for fast installation.
13824
fast_install=$enable_fast_install
13827
host_alias=$host_alias
13831
# The build system.
13832
build_alias=$build_alias
13836
# An echo program that does not interpret backslashes.
13841
AR_FLAGS=$lt_AR_FLAGS
13846
# LTCC compiler flags.
13847
LTCFLAGS=$lt_LTCFLAGS
13849
# A language-specific compiler.
13850
CC=$lt_compiler_CXX
13852
# Is the compiler the GNU C compiler?
13858
# The linker used to build libraries.
13861
# Whether we need hard or soft links.
13864
# A BSD-compatible nm program.
13867
# A symbol stripping program
13870
# Used to examine libraries when file_magic_cmd begins "file"
13871
MAGIC_CMD=$MAGIC_CMD
13873
# Used on cygwin: DLL creation program.
13876
# Used on cygwin: object dumper.
13879
# Used on cygwin: assembler.
13882
# The name of the directory that contains temporary libtool files.
13885
# How to create reloadable object files.
13886
reload_flag=$lt_reload_flag
13887
reload_cmds=$lt_reload_cmds
13889
# How to pass a linker flag through the compiler.
13890
wl=$lt_lt_prog_compiler_wl_CXX
13892
# Object file suffix (normally "o").
13893
objext="$ac_objext"
13895
# Old archive suffix (normally "a").
13898
# Shared library suffix (normally ".so").
13899
shrext_cmds='$shrext_cmds'
13901
# Executable file suffix (normally "").
13904
# Additional compiler flags for building library objects.
13905
pic_flag=$lt_lt_prog_compiler_pic_CXX
13908
# What is the maximum length of a command?
13909
max_cmd_len=$lt_cv_sys_max_cmd_len
13911
# Does compiler simultaneously support -c and -o options?
13912
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13914
# Must we lock files when doing compilation?
13915
need_locks=$lt_need_locks
13917
# Do we need the lib prefix for modules?
13918
need_lib_prefix=$need_lib_prefix
13920
# Do we need a version for libraries?
13921
need_version=$need_version
13923
# Whether dlopen is supported.
13924
dlopen_support=$enable_dlopen
13926
# Whether dlopen of programs is supported.
13927
dlopen_self=$enable_dlopen_self
13929
# Whether dlopen of statically linked programs is supported.
13930
dlopen_self_static=$enable_dlopen_self_static
13932
# Compiler flag to prevent dynamic linking.
13933
link_static_flag=$lt_lt_prog_compiler_static_CXX
13935
# Compiler flag to turn off builtin functions.
13936
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13938
# Compiler flag to allow reflexive dlopens.
13939
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13941
# Compiler flag to generate shared objects directly from archives.
13942
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13944
# Compiler flag to generate thread-safe objects.
13945
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13947
# Library versioning type.
13948
version_type=$version_type
13950
# Format of library name prefix.
13951
libname_spec=$lt_libname_spec
13953
# List of archive names. First name is the real one, the rest are links.
13954
# The last name is the one that the linker finds with -lNAME.
13955
library_names_spec=$lt_library_names_spec
13957
# The coded name of the library, if different from the real name.
13958
soname_spec=$lt_soname_spec
13960
# Commands used to build and install an old-style archive.
13962
old_archive_cmds=$lt_old_archive_cmds_CXX
13963
old_postinstall_cmds=$lt_old_postinstall_cmds
13964
old_postuninstall_cmds=$lt_old_postuninstall_cmds
13966
# Create an old-style archive from a shared archive.
13967
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13969
# Create a temporary old-style archive to link instead of a shared archive.
13970
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13972
# Commands used to build and install a shared archive.
13973
archive_cmds=$lt_archive_cmds_CXX
13974
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13975
postinstall_cmds=$lt_postinstall_cmds
13976
postuninstall_cmds=$lt_postuninstall_cmds
13978
# Commands used to build a loadable module (assumed same as above if empty)
13979
module_cmds=$lt_module_cmds_CXX
13980
module_expsym_cmds=$lt_module_expsym_cmds_CXX
13982
# Commands to strip libraries.
13983
old_striplib=$lt_old_striplib
13984
striplib=$lt_striplib
13986
# Dependencies to place before the objects being linked to create a
13988
predep_objects=$lt_predep_objects_CXX
13990
# Dependencies to place after the objects being linked to create a
13992
postdep_objects=$lt_postdep_objects_CXX
13994
# Dependencies to place before the objects being linked to create a
13996
predeps=$lt_predeps_CXX
13998
# Dependencies to place after the objects being linked to create a
14000
postdeps=$lt_postdeps_CXX
14002
# The directories searched by this compiler when creating a shared
14004
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
14006
# The library search path used internally by the compiler when linking
14007
# a shared library.
14008
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14010
# Method to check whether dependent libraries are shared objects.
14011
deplibs_check_method=$lt_deplibs_check_method
14013
# Command to use when deplibs_check_method == file_magic.
14014
file_magic_cmd=$lt_file_magic_cmd
14016
# Flag that allows shared libraries with undefined symbols to be built.
14017
allow_undefined_flag=$lt_allow_undefined_flag_CXX
14019
# Flag that forces no undefined symbols.
14020
no_undefined_flag=$lt_no_undefined_flag_CXX
14022
# Commands used to finish a libtool library installation in a directory.
14023
finish_cmds=$lt_finish_cmds
14025
# Same as above, but a single script fragment to be evaled but not shown.
14026
finish_eval=$lt_finish_eval
14028
# Take the output of nm and produce a listing of raw symbols and C names.
14029
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14031
# Transform the output of nm in a proper C declaration
14032
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14034
# Transform the output of nm in a C name address pair
14035
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14037
# This is the shared library runtime path variable.
14038
runpath_var=$runpath_var
14040
# This is the shared library path variable.
14041
shlibpath_var=$shlibpath_var
14043
# Is shlibpath searched before the hard-coded library search path?
14044
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14046
# How to hardcode a shared library path into an executable.
14047
hardcode_action=$hardcode_action_CXX
14049
# Whether we should hardcode library paths into libraries.
14050
hardcode_into_libs=$hardcode_into_libs
14052
# Flag to hardcode \$libdir into a binary during linking.
14053
# This must work even if \$libdir does not exist.
14054
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14056
# If ld is used when linking, flag to hardcode \$libdir into
14057
# a binary during linking. This must work even if \$libdir does
14059
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14061
# Whether we need a single -rpath flag with a separated argument.
14062
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14064
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14065
# resulting binary.
14066
hardcode_direct=$hardcode_direct_CXX
14068
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14069
# resulting binary.
14070
hardcode_minus_L=$hardcode_minus_L_CXX
14072
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14073
# the resulting binary.
14074
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14076
# Set to yes if building a shared library automatically hardcodes DIR into the library
14077
# and all subsequent libraries and executables linked against it.
14078
hardcode_automatic=$hardcode_automatic_CXX
14080
# Variables whose values should be saved in libtool wrapper scripts and
14081
# restored at relink time.
14082
variables_saved_for_relink="$variables_saved_for_relink"
14084
# Whether libtool must link a program against all its dependency libraries.
14085
link_all_deplibs=$link_all_deplibs_CXX
14087
# Compile-time system search path for libraries
14088
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14090
# Run-time system search path for libraries
14091
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14093
# Fix the shell variable \$srcfile for the compiler.
14094
fix_srcfile_path=$lt_fix_srcfile_path
14096
# Set to yes if exported symbols are required.
14097
always_export_symbols=$always_export_symbols_CXX
14099
# The commands to list exported symbols.
14100
export_symbols_cmds=$lt_export_symbols_cmds_CXX
14102
# The commands to extract the exported symbol list from a shared archive.
14103
extract_expsyms_cmds=$lt_extract_expsyms_cmds
14105
# Symbols that should not be listed in the preloaded symbols.
14106
exclude_expsyms=$lt_exclude_expsyms_CXX
14108
# Symbols that must always be exported.
14109
include_expsyms=$lt_include_expsyms_CXX
14111
# ### END LIBTOOL TAG CONFIG: $tagname
14117
# If there is no Makefile yet, we rely on a make rule to execute
14118
# `config.status --recheck' to rerun these tests and create the
14119
# libtool script then.
14120
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14121
if test -f "$ltmain_in"; then
14122
test -f Makefile && make "$ltmain"
14128
ac_cpp='$CPP $CPPFLAGS'
14129
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14130
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14131
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14137
with_gnu_ldcxx=$with_gnu_ld
14138
with_gnu_ld=$lt_save_with_gnu_ld
14139
lt_cv_path_LDCXX=$lt_cv_path_LD
14140
lt_cv_path_LD=$lt_save_path_LD
14141
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14142
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14150
if test -n "$F77" && test "X$F77" != "Xno"; then
14153
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14154
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14155
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14158
archive_cmds_need_lc_F77=no
14159
allow_undefined_flag_F77=
14160
always_export_symbols_F77=no
14161
archive_expsym_cmds_F77=
14162
export_dynamic_flag_spec_F77=
14163
hardcode_direct_F77=no
14164
hardcode_libdir_flag_spec_F77=
14165
hardcode_libdir_flag_spec_ld_F77=
14166
hardcode_libdir_separator_F77=
14167
hardcode_minus_L_F77=no
14168
hardcode_automatic_F77=no
14170
module_expsym_cmds_F77=
14171
link_all_deplibs_F77=unknown
14172
old_archive_cmds_F77=$old_archive_cmds
14173
no_undefined_flag_F77=
14174
whole_archive_flag_spec_F77=
14175
enable_shared_with_static_runtimes_F77=no
14177
# Source file extension for f77 test sources.
14180
# Object file extension for compiled f77 test sources.
14184
# Code to be used in simple compile tests
14185
lt_simple_compile_test_code="\
14191
# Code to be used in simple link tests
14192
lt_simple_link_test_code="\
14197
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14199
# If no C compiler was specified, use CC.
14202
# If no C compiler flags were specified, use CFLAGS.
14203
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14205
# Allow CC to be a program name with arguments.
14209
# save warnings/boilerplate of simple test code
14210
ac_outfile=conftest.$ac_objext
14211
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14212
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14213
_lt_compiler_boilerplate=`cat conftest.err`
14216
ac_outfile=conftest.$ac_objext
14217
echo "$lt_simple_link_test_code" >conftest.$ac_ext
14218
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14219
_lt_linker_boilerplate=`cat conftest.err`
14223
# Allow CC to be a program name with arguments.
14228
for cc_temp in $compiler""; do
14230
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14231
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14236
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14239
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14240
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14241
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
14242
echo "${ECHO_T}$can_build_shared" >&6; }
14244
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14245
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14246
test "$can_build_shared" = "no" && enable_shared=no
14248
# On AIX, shared libraries and static libraries use the same namespace, and
14249
# are all built from PIC.
14252
test "$enable_shared" = yes && enable_static=no
14253
if test -n "$RANLIB"; then
14254
archive_cmds="$archive_cmds~\$RANLIB \$lib"
14255
postinstall_cmds='$RANLIB $lib'
14259
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14260
test "$enable_shared" = yes && enable_static=no
14264
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
14265
echo "${ECHO_T}$enable_shared" >&6; }
14267
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14268
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14269
# Make sure either enable_shared or enable_static is yes.
14270
test "$enable_shared" = yes || enable_static=yes
14271
{ echo "$as_me:$LINENO: result: $enable_static" >&5
14272
echo "${ECHO_T}$enable_static" >&6; }
14277
lt_prog_compiler_wl_F77=
14278
lt_prog_compiler_pic_F77=
14279
lt_prog_compiler_static_F77=
14281
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14282
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14284
if test "$GCC" = yes; then
14285
lt_prog_compiler_wl_F77='-Wl,'
14286
lt_prog_compiler_static_F77='-static'
14290
# All AIX code is PIC.
14291
if test "$host_cpu" = ia64; then
14292
# AIX 5 now supports IA64 processor
14293
lt_prog_compiler_static_F77='-Bstatic'
14298
# FIXME: we need at least 68020 code to build shared libraries, but
14299
# adding the `-m68020' flag to GCC prevents building anything better,
14301
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14304
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14305
# PIC is the default for these OSes.
14308
mingw* | cygwin* | pw32* | os2*)
14309
# This hack is so that the source file can tell whether it is being
14310
# built for inclusion in a dll (and should export symbols for example).
14311
# Although the cygwin gcc ignores -fPIC, still need this for old-style
14312
# (--disable-auto-import) libraries
14313
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14316
darwin* | rhapsody*)
14317
# PIC is the default on this platform
14318
# Common symbols not allowed in MH_DYLIB files
14319
lt_prog_compiler_pic_F77='-fno-common'
14323
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
14324
# Instead, we relocate shared libraries at runtime.
14328
# Just because we use GCC doesn't mean we suddenly get shared libraries
14329
# on systems that don't support them.
14330
lt_prog_compiler_can_build_shared_F77=no
14335
if test -d /usr/nec; then
14336
lt_prog_compiler_pic_F77=-Kconform_pic
14341
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14342
# not for PA HP-UX.
14348
lt_prog_compiler_pic_F77='-fPIC'
14354
lt_prog_compiler_pic_F77='-fPIC'
14358
# PORTME Check for flag to pass linker flags through the system compiler.
14361
lt_prog_compiler_wl_F77='-Wl,'
14362
if test "$host_cpu" = ia64; then
14363
# AIX 5 now supports IA64 processor
14364
lt_prog_compiler_static_F77='-Bstatic'
14366
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14370
# PIC is the default on this platform
14371
# Common symbols not allowed in MH_DYLIB files
14372
case $cc_basename in
14374
lt_prog_compiler_pic_F77='-qnocommon'
14375
lt_prog_compiler_wl_F77='-Wl,'
14380
mingw* | cygwin* | pw32* | os2*)
14381
# This hack is so that the source file can tell whether it is being
14382
# built for inclusion in a dll (and should export symbols for example).
14383
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14386
hpux9* | hpux10* | hpux11*)
14387
lt_prog_compiler_wl_F77='-Wl,'
14388
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14389
# not for PA HP-UX.
14395
lt_prog_compiler_pic_F77='+Z'
14398
# Is there a better lt_prog_compiler_static that works with the bundled CC?
14399
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14402
irix5* | irix6* | nonstopux*)
14403
lt_prog_compiler_wl_F77='-Wl,'
14404
# PIC (with -KPIC) is the default.
14405
lt_prog_compiler_static_F77='-non_shared'
14409
lt_prog_compiler_pic_F77='-KPIC'
14410
lt_prog_compiler_static_F77='-Bstatic'
14413
linux* | k*bsd*-gnu)
14414
case $cc_basename in
14416
lt_prog_compiler_wl_F77='-Wl,'
14417
lt_prog_compiler_pic_F77='-KPIC'
14418
lt_prog_compiler_static_F77='-static'
14420
pgcc* | pgf77* | pgf90* | pgf95*)
14421
# Portland Group compilers (*not* the Pentium gcc compiler,
14422
# which looks to be a dead project)
14423
lt_prog_compiler_wl_F77='-Wl,'
14424
lt_prog_compiler_pic_F77='-fpic'
14425
lt_prog_compiler_static_F77='-Bstatic'
14428
lt_prog_compiler_wl_F77='-Wl,'
14429
# All Alpha code is PIC.
14430
lt_prog_compiler_static_F77='-non_shared'
14433
case `$CC -V 2>&1 | sed 5q` in
14436
lt_prog_compiler_pic_F77='-KPIC'
14437
lt_prog_compiler_static_F77='-Bstatic'
14438
lt_prog_compiler_wl_F77='-Wl,'
14441
# Sun Fortran 8.3 passes all unrecognized flags to the linker
14442
lt_prog_compiler_pic_F77='-KPIC'
14443
lt_prog_compiler_static_F77='-Bstatic'
14444
lt_prog_compiler_wl_F77=''
14451
osf3* | osf4* | osf5*)
14452
lt_prog_compiler_wl_F77='-Wl,'
14453
# All OSF/1 code is PIC.
14454
lt_prog_compiler_static_F77='-non_shared'
14458
lt_prog_compiler_static_F77='-non_shared'
14462
lt_prog_compiler_pic_F77='-KPIC'
14463
lt_prog_compiler_static_F77='-Bstatic'
14464
case $cc_basename in
14465
f77* | f90* | f95*)
14466
lt_prog_compiler_wl_F77='-Qoption ld ';;
14468
lt_prog_compiler_wl_F77='-Wl,';;
14473
lt_prog_compiler_wl_F77='-Qoption ld '
14474
lt_prog_compiler_pic_F77='-PIC'
14475
lt_prog_compiler_static_F77='-Bstatic'
14478
sysv4 | sysv4.2uw2* | sysv4.3*)
14479
lt_prog_compiler_wl_F77='-Wl,'
14480
lt_prog_compiler_pic_F77='-KPIC'
14481
lt_prog_compiler_static_F77='-Bstatic'
14485
if test -d /usr/nec ;then
14486
lt_prog_compiler_pic_F77='-Kconform_pic'
14487
lt_prog_compiler_static_F77='-Bstatic'
14491
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14492
lt_prog_compiler_wl_F77='-Wl,'
14493
lt_prog_compiler_pic_F77='-KPIC'
14494
lt_prog_compiler_static_F77='-Bstatic'
14498
lt_prog_compiler_wl_F77='-Wl,'
14499
lt_prog_compiler_can_build_shared_F77=no
14503
lt_prog_compiler_pic_F77='-pic'
14504
lt_prog_compiler_static_F77='-Bstatic'
14508
lt_prog_compiler_can_build_shared_F77=no
14513
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14514
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14517
# Check to make sure the PIC flag actually works.
14519
if test -n "$lt_prog_compiler_pic_F77"; then
14521
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14522
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14523
if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14524
echo $ECHO_N "(cached) $ECHO_C" >&6
14526
lt_cv_prog_compiler_pic_works_F77=no
14527
ac_outfile=conftest.$ac_objext
14528
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14529
lt_compiler_flag="$lt_prog_compiler_pic_F77"
14530
# Insert the option either (1) after the last *FLAGS variable, or
14531
# (2) before a word containing "conftest.", or (3) at the end.
14532
# Note that $ac_compile itself does not contain backslashes and begins
14533
# with a dollar sign (not a hyphen), so the echo should work correctly.
14534
# The option is referenced via a variable to avoid confusing sed.
14535
lt_compile=`echo "$ac_compile" | $SED \
14536
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14537
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14538
-e 's:$: $lt_compiler_flag:'`
14539
(eval echo "\"\$as_me:14539: $lt_compile\"" >&5)
14540
(eval "$lt_compile" 2>conftest.err)
14542
cat conftest.err >&5
14543
echo "$as_me:14543: \$? = $ac_status" >&5
14544
if (exit $ac_status) && test -s "$ac_outfile"; then
14545
# The compiler can only warn and ignore the option if not recognized
14546
# So say no if there are warnings other than the usual output.
14547
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14548
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14549
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14550
lt_cv_prog_compiler_pic_works_F77=yes
14556
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14557
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
14559
if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14560
case $lt_prog_compiler_pic_F77 in
14562
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14565
lt_prog_compiler_pic_F77=
14566
lt_prog_compiler_can_build_shared_F77=no
14571
# For platforms which do not support PIC, -DPIC is meaningless:
14573
lt_prog_compiler_pic_F77=
14576
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14581
# Check to make sure the static flag actually works.
14583
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14584
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14585
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14586
if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14587
echo $ECHO_N "(cached) $ECHO_C" >&6
14589
lt_cv_prog_compiler_static_works_F77=no
14590
save_LDFLAGS="$LDFLAGS"
14591
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14592
echo "$lt_simple_link_test_code" > conftest.$ac_ext
14593
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14594
# The linker can only warn and ignore the option if not recognized
14595
# So say no if there are warnings
14596
if test -s conftest.err; then
14597
# Append any errors to the config.log.
14598
cat conftest.err 1>&5
14599
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14600
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14601
if diff conftest.exp conftest.er2 >/dev/null; then
14602
lt_cv_prog_compiler_static_works_F77=yes
14605
lt_cv_prog_compiler_static_works_F77=yes
14609
LDFLAGS="$save_LDFLAGS"
14612
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14613
echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
14615
if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14618
lt_prog_compiler_static_F77=
14622
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14623
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14624
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14625
echo $ECHO_N "(cached) $ECHO_C" >&6
14627
lt_cv_prog_compiler_c_o_F77=no
14628
$rm -r conftest 2>/dev/null
14632
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14634
lt_compiler_flag="-o out/conftest2.$ac_objext"
14635
# Insert the option either (1) after the last *FLAGS variable, or
14636
# (2) before a word containing "conftest.", or (3) at the end.
14637
# Note that $ac_compile itself does not contain backslashes and begins
14638
# with a dollar sign (not a hyphen), so the echo should work correctly.
14639
lt_compile=`echo "$ac_compile" | $SED \
14640
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14641
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14642
-e 's:$: $lt_compiler_flag:'`
14643
(eval echo "\"\$as_me:14643: $lt_compile\"" >&5)
14644
(eval "$lt_compile" 2>out/conftest.err)
14646
cat out/conftest.err >&5
14647
echo "$as_me:14647: \$? = $ac_status" >&5
14648
if (exit $ac_status) && test -s out/conftest2.$ac_objext
14650
# The compiler can only warn and ignore the option if not recognized
14651
# So say no if there are warnings
14652
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14653
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14654
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14655
lt_cv_prog_compiler_c_o_F77=yes
14660
# SGI C++ compiler will create directory out/ii_files/ for
14661
# template instantiation
14662
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14663
$rm out/* && rmdir out
14669
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14670
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14673
hard_links="nottested"
14674
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14675
# do not overwrite the value of need_locks provided by the user
14676
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14677
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14680
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14682
ln conftest.a conftest.b 2>&5 || hard_links=no
14683
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14684
{ echo "$as_me:$LINENO: result: $hard_links" >&5
14685
echo "${ECHO_T}$hard_links" >&6; }
14686
if test "$hard_links" = no; then
14687
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14688
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14695
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14696
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14699
allow_undefined_flag_F77=
14700
enable_shared_with_static_runtimes_F77=no
14702
archive_expsym_cmds_F77=
14703
old_archive_From_new_cmds_F77=
14704
old_archive_from_expsyms_cmds_F77=
14705
export_dynamic_flag_spec_F77=
14706
whole_archive_flag_spec_F77=
14707
thread_safe_flag_spec_F77=
14708
hardcode_libdir_flag_spec_F77=
14709
hardcode_libdir_flag_spec_ld_F77=
14710
hardcode_libdir_separator_F77=
14711
hardcode_direct_F77=no
14712
hardcode_minus_L_F77=no
14713
hardcode_shlibpath_var_F77=unsupported
14714
link_all_deplibs_F77=unknown
14715
hardcode_automatic_F77=no
14717
module_expsym_cmds_F77=
14718
always_export_symbols_F77=no
14719
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14720
# include_expsyms should be a list of space-separated symbols to be *always*
14721
# included in the symbol list
14722
include_expsyms_F77=
14723
# exclude_expsyms can be an extended regexp of symbols to exclude
14724
# it will be wrapped by ` (' and `)$', so one must not match beginning or
14725
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14726
# as well as any symbol that contains `d'.
14727
exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14728
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14729
# platforms (ab)use it in PIC code, but their linkers get confused if
14730
# the symbol is explicitly referenced. Since portable code cannot
14731
# rely on this symbol name, it's probably fine to never include it in
14732
# preloaded symbol tables.
14733
# Exclude shared library initialization/finalization symbols.
14734
extract_expsyms_cmds=
14735
# Just being paranoid about ensuring that cc_basename is set.
14736
for cc_temp in $compiler""; do
14738
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14739
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14744
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14747
cygwin* | mingw* | pw32*)
14748
# FIXME: the MSVC++ port hasn't been tested in a loooong time
14749
# When not using gcc, we currently assume that we are using
14750
# Microsoft Visual C++.
14751
if test "$GCC" != yes; then
14756
# we just hope/assume this is gcc and not c89 (= MSVC++)
14765
if test "$with_gnu_ld" = yes; then
14766
# If archive_cmds runs LD, not CC, wlarc should be empty
14769
# Set some defaults for GNU ld with shared library support. These
14770
# are reset later if shared libraries are not supported. Putting them
14771
# here allows them to be overridden if necessary.
14772
runpath_var=LD_RUN_PATH
14773
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14774
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14775
# ancient GNU ld didn't support --whole-archive et. al.
14776
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14777
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14779
whole_archive_flag_spec_F77=
14781
supports_anon_versioning=no
14782
case `$LD -v 2>/dev/null` in
14783
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14784
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14785
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14786
*\ 2.11.*) ;; # other 2.11 versions
14787
*) supports_anon_versioning=yes ;;
14790
# See if GNU ld supports shared libraries.
14793
# On AIX/PPC, the GNU linker is very broken
14794
if test "$host_cpu" != ia64; then
14798
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14799
*** to be unable to reliably create shared libraries on AIX.
14800
*** Therefore, libtool is disabling shared libraries support. If you
14801
*** really care for shared libraries, you may want to modify your PATH
14802
*** so that a non-GNU linker is found, and then restart.
14809
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)'
14810
hardcode_libdir_flag_spec_F77='-L$libdir'
14811
hardcode_minus_L_F77=yes
14813
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14814
# that the semantics of dynamic libraries on AmigaOS, at least up
14815
# to version 4, is to share data among multiple programs linked
14816
# with the same dynamic library. Since this doesn't match the
14817
# behavior of shared libraries on other platforms, we can't use
14823
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14824
allow_undefined_flag_F77=unsupported
14825
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14826
# support --undefined. This deserves some investigation. FIXME
14827
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14833
cygwin* | mingw* | pw32*)
14834
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14835
# as there is no search path for DLLs.
14836
hardcode_libdir_flag_spec_F77='-L$libdir'
14837
allow_undefined_flag_F77=unsupported
14838
always_export_symbols_F77=no
14839
enable_shared_with_static_runtimes_F77=yes
14840
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14842
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14843
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14844
# If the export-symbols file already is a .def file (1st line
14845
# is EXPORTS), use it as is; otherwise, prepend...
14846
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14847
cp $export_symbols $output_objdir/$soname.def;
14849
echo EXPORTS > $output_objdir/$soname.def;
14850
cat $export_symbols >> $output_objdir/$soname.def;
14852
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14859
hardcode_direct_F77=no
14860
hardcode_shlibpath_var_F77=no
14861
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14862
export_dynamic_flag_spec_F77='${wl}-E'
14863
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14864
# Instead, shared libraries are loaded at an image base (0x10000000 by
14865
# default) and relocated if they conflict, which is a slow very memory
14866
# consuming and fragmenting process. To avoid this, we pick a random,
14867
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14868
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
14869
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'
14870
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'
14873
gnu* | linux* | k*bsd*-gnu)
14874
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14876
case $cc_basename,$host_cpu in
14877
pgcc*) # Portland Group C compiler
14878
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'
14879
tmp_addflag=' $pic_flag'
14881
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14882
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'
14883
tmp_addflag=' $pic_flag -Mnomain' ;;
14884
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14885
tmp_addflag=' -i_dynamic' ;;
14886
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14887
tmp_addflag=' -i_dynamic -nofor_main' ;;
14888
ifc* | ifort*) # Intel Fortran compiler
14889
tmp_addflag=' -nofor_main' ;;
14891
case `$CC -V 2>&1 | sed 5q` in
14892
*Sun\ C*) # Sun C 5.9
14893
whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14894
tmp_sharedflag='-G' ;;
14895
*Sun\ F*) # Sun Fortran 8.3
14896
tmp_sharedflag='-G' ;;
14898
tmp_sharedflag='-shared' ;;
14900
archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14902
if test $supports_anon_versioning = yes; then
14903
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14904
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14905
$echo "local: *; };" >> $output_objdir/$libname.ver~
14906
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14908
link_all_deplibs_F77=no
14914
netbsd* | netbsdelf*-gnu)
14915
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14916
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14919
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14920
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14925
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14929
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14930
*** create shared libraries on Solaris systems. Therefore, libtool
14931
*** is disabling shared libraries support. We urge you to upgrade GNU
14932
*** binutils to release 2.9.1 or newer. Another option is to modify
14933
*** your PATH or compiler configuration so that the native linker is
14934
*** used, and then restart.
14937
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14938
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14939
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14945
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14946
case `$LD -v 2>&1` in
14947
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14951
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14952
*** reliably create shared libraries on SCO systems. Therefore, libtool
14953
*** is disabling shared libraries support. We urge you to upgrade GNU
14954
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14955
*** your PATH or compiler configuration so that the native linker is
14956
*** used, and then restart.
14961
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14962
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14963
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14964
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14973
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14975
hardcode_direct_F77=yes
14976
hardcode_shlibpath_var_F77=no
14980
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14981
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14982
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14989
if test "$ld_shlibs_F77" = no; then
14991
hardcode_libdir_flag_spec_F77=
14992
export_dynamic_flag_spec_F77=
14993
whole_archive_flag_spec_F77=
14996
# PORTME fill in a description of your system's linker (not GNU ld)
14999
allow_undefined_flag_F77=unsupported
15000
always_export_symbols_F77=yes
15001
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'
15002
# Note: this linker hardcodes the directories in LIBPATH if there
15003
# are no directories specified by -L.
15004
hardcode_minus_L_F77=yes
15005
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15006
# Neither direct hardcoding nor static linking is supported with a
15008
hardcode_direct_F77=unsupported
15013
if test "$host_cpu" = ia64; then
15014
# On IA64, the linker does run time linking by default, so we don't
15015
# have to do anything special.
15016
aix_use_runtimelinking=no
15017
exp_sym_flag='-Bexport'
15020
# If we're using GNU nm, then we don't want the "-C" option.
15021
# -C means demangle to AIX nm, but means don't demangle with GNU nm
15022
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15023
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'
15025
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'
15027
aix_use_runtimelinking=no
15029
# Test if we are trying to use run time linking or normal
15030
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15031
# need to do runtime linking.
15032
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15033
for ld_flag in $LDFLAGS; do
15034
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15035
aix_use_runtimelinking=yes
15042
exp_sym_flag='-bexport'
15043
no_entry_flag='-bnoentry'
15046
# When large executables or shared objects are built, AIX ld can
15047
# have problems creating the table of contents. If linking a library
15048
# or program results in "error TOC overflow" add -mminimal-toc to
15049
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15050
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15052
archive_cmds_F77=''
15053
hardcode_direct_F77=yes
15054
hardcode_libdir_separator_F77=':'
15055
link_all_deplibs_F77=yes
15057
if test "$GCC" = yes; then
15058
case $host_os in aix4.[012]|aix4.[012].*)
15059
# We only want to do this on AIX 4.2 and lower, the check
15060
# below for broken collect2 doesn't work under 4.3+
15061
collect2name=`${CC} -print-prog-name=collect2`
15062
if test -f "$collect2name" && \
15063
strings "$collect2name" | grep resolve_lib_name >/dev/null
15065
# We have reworked collect2
15068
# We have old collect2
15069
hardcode_direct_F77=unsupported
15070
# It fails to find uninstalled libraries when the uninstalled
15071
# path is not listed in the libpath. Setting hardcode_minus_L
15072
# to unsupported forces relinking
15073
hardcode_minus_L_F77=yes
15074
hardcode_libdir_flag_spec_F77='-L$libdir'
15075
hardcode_libdir_separator_F77=
15079
shared_flag='-shared'
15080
if test "$aix_use_runtimelinking" = yes; then
15081
shared_flag="$shared_flag "'${wl}-G'
15085
if test "$host_cpu" = ia64; then
15086
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15087
# chokes on -Wl,-G. The following line is correct:
15090
if test "$aix_use_runtimelinking" = yes; then
15091
shared_flag='${wl}-G'
15093
shared_flag='${wl}-bM:SRE'
15098
# It seems that -bexpall does not export symbols beginning with
15099
# underscore (_), so it is better to generate a list of symbols to export.
15100
always_export_symbols_F77=yes
15101
if test "$aix_use_runtimelinking" = yes; then
15102
# Warning - without using the other runtime loading flags (-brtl),
15103
# -berok will link without error, but may produce a broken library.
15104
allow_undefined_flag_F77='-berok'
15105
# Determine the default libpath from the value encoded in an empty executable.
15106
cat >conftest.$ac_ext <<_ACEOF
15111
rm -f conftest.$ac_objext conftest$ac_exeext
15112
if { (ac_try="$ac_link"
15113
case "(($ac_try" in
15114
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15115
*) ac_try_echo=$ac_try;;
15117
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15118
(eval "$ac_link") 2>conftest.er1
15120
grep -v '^ *+' conftest.er1 >conftest.err
15122
cat conftest.err >&5
15123
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15124
(exit $ac_status); } && {
15125
test -z "$ac_f77_werror_flag" ||
15126
test ! -s conftest.err
15127
} && test -s conftest$ac_exeext &&
15128
$as_test_x conftest$ac_exeext; then
15130
lt_aix_libpath_sed='
15131
/Import File Strings/,/^$/ {
15137
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15138
# Check for a 64-bit object if we didn't find anything.
15139
if test -z "$aix_libpath"; then
15140
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15143
echo "$as_me: failed program was:" >&5
15144
sed 's/^/| /' conftest.$ac_ext >&5
15149
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15150
conftest$ac_exeext conftest.$ac_ext
15151
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15153
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15154
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"
15156
if test "$host_cpu" = ia64; then
15157
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15158
allow_undefined_flag_F77="-z nodefs"
15159
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"
15161
# Determine the default libpath from the value encoded in an empty executable.
15162
cat >conftest.$ac_ext <<_ACEOF
15167
rm -f conftest.$ac_objext conftest$ac_exeext
15168
if { (ac_try="$ac_link"
15169
case "(($ac_try" in
15170
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15171
*) ac_try_echo=$ac_try;;
15173
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15174
(eval "$ac_link") 2>conftest.er1
15176
grep -v '^ *+' conftest.er1 >conftest.err
15178
cat conftest.err >&5
15179
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15180
(exit $ac_status); } && {
15181
test -z "$ac_f77_werror_flag" ||
15182
test ! -s conftest.err
15183
} && test -s conftest$ac_exeext &&
15184
$as_test_x conftest$ac_exeext; then
15186
lt_aix_libpath_sed='
15187
/Import File Strings/,/^$/ {
15193
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15194
# Check for a 64-bit object if we didn't find anything.
15195
if test -z "$aix_libpath"; then
15196
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15199
echo "$as_me: failed program was:" >&5
15200
sed 's/^/| /' conftest.$ac_ext >&5
15205
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15206
conftest$ac_exeext conftest.$ac_ext
15207
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15209
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15210
# Warning - without using the other run time loading flags,
15211
# -berok will link without error, but may produce a broken library.
15212
no_undefined_flag_F77=' ${wl}-bernotok'
15213
allow_undefined_flag_F77=' ${wl}-berok'
15214
# Exported symbols can be pulled into shared objects from archives
15215
whole_archive_flag_spec_F77='$convenience'
15216
archive_cmds_need_lc_F77=yes
15217
# This is similar to how AIX traditionally builds its shared libraries.
15218
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'
15224
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)'
15225
hardcode_libdir_flag_spec_F77='-L$libdir'
15226
hardcode_minus_L_F77=yes
15227
# see comment about different semantics on the GNU ld section
15232
export_dynamic_flag_spec_F77=-rdynamic
15235
cygwin* | mingw* | pw32*)
15236
# When not using gcc, we currently assume that we are using
15237
# Microsoft Visual C++.
15238
# hardcode_libdir_flag_spec is actually meaningless, as there is
15239
# no search path for DLLs.
15240
hardcode_libdir_flag_spec_F77=' '
15241
allow_undefined_flag_F77=unsupported
15242
# Tell ltmain to make .lib files, not .a files.
15244
# Tell ltmain to make .dll files, not .so files.
15246
# FIXME: Setting linknames here is a bad hack.
15247
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15248
# The linker will automatically build a .lib file if we build a DLL.
15249
old_archive_From_new_cmds_F77='true'
15250
# FIXME: Should let the user specify the lib program.
15251
old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15252
fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15253
enable_shared_with_static_runtimes_F77=yes
15256
darwin* | rhapsody*)
15258
rhapsody* | darwin1.[012])
15259
allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15262
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15263
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15265
case ${MACOSX_DEPLOYMENT_TARGET} in
15267
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15270
allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15276
archive_cmds_need_lc_F77=no
15277
hardcode_direct_F77=no
15278
hardcode_automatic_F77=yes
15279
hardcode_shlibpath_var_F77=unsupported
15280
whole_archive_flag_spec_F77=''
15281
link_all_deplibs_F77=yes
15282
if test "$GCC" = yes ; then
15283
output_verbose_link_cmd='echo'
15284
archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15285
module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15286
archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
15287
module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
15289
case $cc_basename in
15291
output_verbose_link_cmd='echo'
15292
archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15293
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15294
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15295
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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15296
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}'
15306
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15307
hardcode_libdir_flag_spec_F77='-L$libdir'
15308
hardcode_shlibpath_var_F77=no
15315
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15316
# support. Future versions do this automatically, but an explicit c++rt0.o
15317
# does not break anything, and helps significantly (at the cost of a little
15320
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15321
hardcode_libdir_flag_spec_F77='-R$libdir'
15322
hardcode_direct_F77=yes
15323
hardcode_shlibpath_var_F77=no
15326
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
15328
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15329
hardcode_direct_F77=yes
15330
hardcode_minus_L_F77=yes
15331
hardcode_shlibpath_var_F77=no
15334
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15335
freebsd* | dragonfly*)
15336
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15337
hardcode_libdir_flag_spec_F77='-R$libdir'
15338
hardcode_direct_F77=yes
15339
hardcode_shlibpath_var_F77=no
15343
if test "$GCC" = yes; then
15344
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'
15346
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'
15348
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15349
hardcode_libdir_separator_F77=:
15350
hardcode_direct_F77=yes
15352
# hardcode_minus_L: Not really in the search PATH,
15353
# but as the default location of the library.
15354
hardcode_minus_L_F77=yes
15355
export_dynamic_flag_spec_F77='${wl}-E'
15359
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15360
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15362
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15364
if test "$with_gnu_ld" = no; then
15365
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15366
hardcode_libdir_separator_F77=:
15368
hardcode_direct_F77=yes
15369
export_dynamic_flag_spec_F77='${wl}-E'
15371
# hardcode_minus_L: Not really in the search PATH,
15372
# but as the default location of the library.
15373
hardcode_minus_L_F77=yes
15378
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15381
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15384
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15387
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15393
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15396
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15399
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15403
if test "$with_gnu_ld" = no; then
15404
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15405
hardcode_libdir_separator_F77=:
15409
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15410
hardcode_direct_F77=no
15411
hardcode_shlibpath_var_F77=no
15414
hardcode_direct_F77=yes
15415
export_dynamic_flag_spec_F77='${wl}-E'
15417
# hardcode_minus_L: Not really in the search PATH,
15418
# but as the default location of the library.
15419
hardcode_minus_L_F77=yes
15425
irix5* | irix6* | nonstopux*)
15426
if test "$GCC" = yes; then
15427
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'
15429
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'
15430
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15432
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15433
hardcode_libdir_separator_F77=:
15434
link_all_deplibs_F77=yes
15437
netbsd* | netbsdelf*-gnu)
15438
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15439
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15441
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15443
hardcode_libdir_flag_spec_F77='-R$libdir'
15444
hardcode_direct_F77=yes
15445
hardcode_shlibpath_var_F77=no
15449
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15450
hardcode_direct_F77=yes
15451
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15452
hardcode_libdir_separator_F77=:
15453
hardcode_shlibpath_var_F77=no
15457
if test -f /usr/libexec/ld.so; then
15458
hardcode_direct_F77=yes
15459
hardcode_shlibpath_var_F77=no
15460
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15461
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15462
archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15463
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15464
export_dynamic_flag_spec_F77='${wl}-E'
15467
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15468
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15469
hardcode_libdir_flag_spec_F77='-R$libdir'
15472
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15473
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15483
hardcode_libdir_flag_spec_F77='-L$libdir'
15484
hardcode_minus_L_F77=yes
15485
allow_undefined_flag_F77=unsupported
15486
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'
15487
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15491
if test "$GCC" = yes; then
15492
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15493
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'
15495
allow_undefined_flag_F77=' -expect_unresolved \*'
15496
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'
15498
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15499
hardcode_libdir_separator_F77=:
15502
osf4* | osf5*) # as osf3* with the addition of -msym flag
15503
if test "$GCC" = yes; then
15504
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15505
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'
15506
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15508
allow_undefined_flag_F77=' -expect_unresolved \*'
15509
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'
15510
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~
15511
$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'
15513
# Both c and cxx compiler support -rpath directly
15514
hardcode_libdir_flag_spec_F77='-rpath $libdir'
15516
hardcode_libdir_separator_F77=:
15520
no_undefined_flag_F77=' -z text'
15521
if test "$GCC" = yes; then
15523
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15524
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15525
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15528
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15529
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15530
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15532
hardcode_libdir_flag_spec_F77='-R$libdir'
15533
hardcode_shlibpath_var_F77=no
15535
solaris2.[0-5] | solaris2.[0-5].*) ;;
15537
# The compiler driver will combine and reorder linker options,
15538
# but understands `-z linker_flag'. GCC discards it without `$wl',
15539
# but is careful enough not to reorder.
15540
# Supported since Solaris 2.6 (maybe 2.5.1?)
15541
if test "$GCC" = yes; then
15542
whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15544
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15548
link_all_deplibs_F77=yes
15552
if test "x$host_vendor" = xsequent; then
15553
# Use $CC to link under sequent, because it throws in some extra .o
15554
# files that make .init and .fini sections work.
15555
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15557
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15559
hardcode_libdir_flag_spec_F77='-L$libdir'
15560
hardcode_direct_F77=yes
15561
hardcode_minus_L_F77=yes
15562
hardcode_shlibpath_var_F77=no
15566
case $host_vendor in
15568
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15569
hardcode_direct_F77=yes # is this really true???
15572
## LD is ld it makes a PLAMLIB
15573
## CC just makes a GrossModule.
15574
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15575
reload_cmds_F77='$CC -r -o $output$reload_objs'
15576
hardcode_direct_F77=no
15579
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15580
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15583
runpath_var='LD_RUN_PATH'
15584
hardcode_shlibpath_var_F77=no
15588
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15589
hardcode_shlibpath_var_F77=no
15590
export_dynamic_flag_spec_F77='-Bexport'
15594
if test -d /usr/nec; then
15595
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15596
hardcode_shlibpath_var_F77=no
15597
runpath_var=LD_RUN_PATH
15598
hardcode_runpath_var=yes
15603
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15604
no_undefined_flag_F77='${wl}-z,text'
15605
archive_cmds_need_lc_F77=no
15606
hardcode_shlibpath_var_F77=no
15607
runpath_var='LD_RUN_PATH'
15609
if test "$GCC" = yes; then
15610
archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15611
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15613
archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15614
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15618
sysv5* | sco3.2v5* | sco5v6*)
15619
# Note: We can NOT use -z defs as we might desire, because we do not
15620
# link with -lc, and that would cause any symbols used from libc to
15621
# always be unresolved, which means just about no library would
15622
# ever link correctly. If we're not using GNU ld we use -z text
15623
# though, which does catch some bad symbols but isn't as heavy-handed
15625
no_undefined_flag_F77='${wl}-z,text'
15626
allow_undefined_flag_F77='${wl}-z,nodefs'
15627
archive_cmds_need_lc_F77=no
15628
hardcode_shlibpath_var_F77=no
15629
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15630
hardcode_libdir_separator_F77=':'
15631
link_all_deplibs_F77=yes
15632
export_dynamic_flag_spec_F77='${wl}-Bexport'
15633
runpath_var='LD_RUN_PATH'
15635
if test "$GCC" = yes; then
15636
archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15637
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15639
archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15640
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15645
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15646
hardcode_libdir_flag_spec_F77='-L$libdir'
15647
hardcode_shlibpath_var_F77=no
15656
{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15657
echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15658
test "$ld_shlibs_F77" = no && can_build_shared=no
15661
# Do we need to explicitly link libc?
15663
case "x$archive_cmds_need_lc_F77" in
15665
# Assume -lc should be added
15666
archive_cmds_need_lc_F77=yes
15668
if test "$enable_shared" = yes && test "$GCC" = yes; then
15669
case $archive_cmds_F77 in
15671
# FIXME: we may have to deal with multi-command sequences.
15674
# Test whether the compiler implicitly links with -lc since on some
15675
# systems, -lgcc has to come before -lc. If gcc already passes -lc
15676
# to ld, don't add -lc before -lgcc.
15677
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15678
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15680
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15682
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15683
(eval $ac_compile) 2>&5
15685
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15686
(exit $ac_status); } 2>conftest.err; then
15689
libobjs=conftest.$ac_objext
15691
wl=$lt_prog_compiler_wl_F77
15692
pic_flag=$lt_prog_compiler_pic_F77
15698
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15699
allow_undefined_flag_F77=
15700
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15701
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15703
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15704
(exit $ac_status); }
15706
archive_cmds_need_lc_F77=no
15708
archive_cmds_need_lc_F77=yes
15710
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15712
cat conftest.err 1>&5
15715
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15716
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15723
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15724
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15725
library_names_spec=
15726
libname_spec='lib$name'
15730
postuninstall_cmds=
15734
shlibpath_overrides_runpath=unknown
15736
dynamic_linker="$host_os ld.so"
15737
sys_lib_dlsearch_path_spec="/lib /usr/lib"
15739
need_lib_prefix=unknown
15740
hardcode_into_libs=no
15742
# when you set need_version to no, make sure it does not cause -set_version
15743
# flags to be left without arguments
15744
need_version=unknown
15749
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15750
shlibpath_var=LIBPATH
15752
# AIX 3 has no versioning support, so we append a major version to the name.
15753
soname_spec='${libname}${release}${shared_ext}$major'
15760
hardcode_into_libs=yes
15761
if test "$host_cpu" = ia64; then
15762
# AIX 5 supports IA64
15763
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15764
shlibpath_var=LD_LIBRARY_PATH
15766
# With GCC up to 2.95.x, collect2 would create an import file
15767
# for dependence libraries. The import file would start with
15768
# the line `#! .'. This would cause the generated library to
15769
# depend on `.', always an invalid library. This was fixed in
15770
# development snapshots of GCC prior to 3.0.
15772
aix4 | aix4.[01] | aix4.[01].*)
15773
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15775
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15778
can_build_shared=no
15782
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15783
# soname into executable. Probably we can add versioning support to
15784
# collect2, so additional links can be useful in future.
15785
if test "$aix_use_runtimelinking" = yes; then
15786
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
15787
# instead of lib<name>.a to let people know that these are not
15788
# typical AIX shared libraries.
15789
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15791
# We preserve .a as extension for shared libraries through AIX4.2
15792
# and later when we are not doing run time linking.
15793
library_names_spec='${libname}${release}.a $libname.a'
15794
soname_spec='${libname}${release}${shared_ext}$major'
15796
shlibpath_var=LIBPATH
15801
library_names_spec='$libname.ixlibrary $libname.a'
15802
# Create ${libname}_ixlibrary.a entries in /sys/libs.
15803
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'
15807
library_names_spec='${libname}${shared_ext}'
15808
dynamic_linker="$host_os ld.so"
15809
shlibpath_var=LIBRARY_PATH
15815
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15816
soname_spec='${libname}${release}${shared_ext}$major'
15817
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15818
shlibpath_var=LD_LIBRARY_PATH
15819
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15820
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15821
# the default ld.so.conf also contains /usr/contrib/lib and
15822
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15823
# libtool to hard-code these into programs
15826
cygwin* | mingw* | pw32*)
15827
version_type=windows
15832
case $GCC,$host_os in
15833
yes,cygwin* | yes,mingw* | yes,pw32*)
15834
library_names_spec='$libname.dll.a'
15835
# DLL is installed to $(libdir)/../bin by postinstall_cmds
15836
postinstall_cmds='base_file=`basename \${file}`~
15837
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15838
dldir=$destdir/`dirname \$dlpath`~
15839
test -d \$dldir || mkdir -p \$dldir~
15840
$install_prog $dir/$dlname \$dldir/$dlname~
15841
chmod a+x \$dldir/$dlname'
15842
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15843
dlpath=$dir/\$dldll~
15845
shlibpath_overrides_runpath=yes
15849
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
15850
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15851
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15854
# MinGW DLLs use traditional 'lib' prefix
15855
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15856
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15857
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15858
# It is most probably a Windows format PATH printed by
15859
# mingw gcc, but we are running on Cygwin. Gcc prints its search
15860
# path with ; separators, and with drive letters. We can handle the
15861
# drive letters (cygwin fileutils understands them), so leave them,
15862
# especially as we might pass files found there to a mingw objdump,
15863
# which wouldn't understand a cygwinified path. Ahh.
15864
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15866
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15870
# pw32 DLLs use 'pw' prefix rather than 'lib'
15871
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15877
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15880
dynamic_linker='Win32 ld.exe'
15881
# FIXME: first we should search . and the directory the executable is in
15885
darwin* | rhapsody*)
15886
dynamic_linker="$host_os dyld"
15887
version_type=darwin
15890
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15891
soname_spec='${libname}${release}${major}$shared_ext'
15892
shlibpath_overrides_runpath=yes
15893
shlibpath_var=DYLD_LIBRARY_PATH
15894
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15896
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15903
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15904
soname_spec='${libname}${release}${shared_ext}$major'
15905
shlibpath_var=LD_LIBRARY_PATH
15912
freebsd* | dragonfly*)
15913
# DragonFly does not have aout. When/if they implement a new
15914
# versioning mechanism, adjust this.
15915
if test -x /usr/bin/objformat; then
15916
objformat=`/usr/bin/objformat`
15919
freebsd[123]*) objformat=aout ;;
15920
*) objformat=elf ;;
15923
version_type=freebsd-$objformat
15924
case $version_type in
15926
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15931
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15935
shlibpath_var=LD_LIBRARY_PATH
15938
shlibpath_overrides_runpath=yes
15940
freebsd3.[01]* | freebsdelf3.[01]*)
15941
shlibpath_overrides_runpath=yes
15942
hardcode_into_libs=yes
15944
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15945
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15946
shlibpath_overrides_runpath=no
15947
hardcode_into_libs=yes
15949
*) # from 4.6 on, and DragonFly
15950
shlibpath_overrides_runpath=yes
15951
hardcode_into_libs=yes
15960
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15961
soname_spec='${libname}${release}${shared_ext}$major'
15962
shlibpath_var=LD_LIBRARY_PATH
15963
hardcode_into_libs=yes
15966
hpux9* | hpux10* | hpux11*)
15967
# Give a soname corresponding to the major version so that dld.sl refuses to
15968
# link against other versions.
15975
hardcode_into_libs=yes
15976
dynamic_linker="$host_os dld.so"
15977
shlibpath_var=LD_LIBRARY_PATH
15978
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15979
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15980
soname_spec='${libname}${release}${shared_ext}$major'
15981
if test "X$HPUX_IA64_MODE" = X32; then
15982
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15984
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15986
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15990
hardcode_into_libs=yes
15991
dynamic_linker="$host_os dld.sl"
15992
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15993
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15994
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15995
soname_spec='${libname}${release}${shared_ext}$major'
15996
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15997
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16001
dynamic_linker="$host_os dld.sl"
16002
shlibpath_var=SHLIB_PATH
16003
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16004
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16005
soname_spec='${libname}${release}${shared_ext}$major'
16008
# HP-UX runs *really* slowly unless shared libraries are mode 555.
16009
postinstall_cmds='chmod 555 $lib'
16016
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16017
soname_spec='${libname}${release}${shared_ext}$major'
16018
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16019
shlibpath_var=LD_LIBRARY_PATH
16020
shlibpath_overrides_runpath=no
16021
hardcode_into_libs=yes
16024
irix5* | irix6* | nonstopux*)
16026
nonstopux*) version_type=nonstopux ;;
16028
if test "$lt_cv_prog_gnu_ld" = yes; then
16036
soname_spec='${libname}${release}${shared_ext}$major'
16037
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16039
irix5* | nonstopux*)
16040
libsuff= shlibsuff=
16043
case $LD in # libtool.m4 will add one of these switches to LD
16044
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16045
libsuff= shlibsuff= libmagic=32-bit;;
16046
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16047
libsuff=32 shlibsuff=N32 libmagic=N32;;
16048
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16049
libsuff=64 shlibsuff=64 libmagic=64-bit;;
16050
*) libsuff= shlibsuff= libmagic=never-match;;
16054
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16055
shlibpath_overrides_runpath=no
16056
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16057
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16058
hardcode_into_libs=yes
16061
# No shared lib support for Linux oldld, aout, or coff.
16062
linux*oldld* | linux*aout* | linux*coff*)
16066
# This must be Linux ELF.
16067
linux* | k*bsd*-gnu)
16071
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16072
soname_spec='${libname}${release}${shared_ext}$major'
16073
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16074
shlibpath_var=LD_LIBRARY_PATH
16075
shlibpath_overrides_runpath=no
16076
# This implies no fast_install, which is unacceptable.
16077
# Some rework will be needed to allow for fast_install
16078
# before this can be enabled.
16079
hardcode_into_libs=yes
16081
# Append ld.so.conf contents to the search path
16082
if test -f /etc/ld.so.conf; then
16083
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16084
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16087
# We used to test for /lib/ld.so.1 and disable shared libraries on
16088
# powerpc, because MkLinux only supported shared libraries with the
16089
# GNU dynamic linker. Since this was broken with cross compilers,
16090
# most powerpc-linux boxes support dynamic linking these days and
16091
# people can always --disable-shared, the test was removed, and we
16092
# assume the GNU/Linux dynamic linker is in use.
16093
dynamic_linker='GNU/Linux ld.so'
16100
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16101
soname_spec='${libname}${release}${shared_ext}$major'
16102
shlibpath_var=LD_LIBRARY_PATH
16103
shlibpath_overrides_runpath=no
16104
hardcode_into_libs=yes
16105
dynamic_linker='NetBSD ld.elf_so'
16112
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16113
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16114
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16115
dynamic_linker='NetBSD (a.out) ld.so'
16117
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16118
soname_spec='${libname}${release}${shared_ext}$major'
16119
dynamic_linker='NetBSD ld.elf_so'
16121
shlibpath_var=LD_LIBRARY_PATH
16122
shlibpath_overrides_runpath=yes
16123
hardcode_into_libs=yes
16128
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16129
shlibpath_var=LD_LIBRARY_PATH
16130
shlibpath_overrides_runpath=yes
16137
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16138
soname_spec='${libname}${release}${shared_ext}$major'
16139
shlibpath_var=LD_LIBRARY_PATH
16140
shlibpath_overrides_runpath=yes
16145
sys_lib_dlsearch_path_spec="/usr/lib"
16147
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16149
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16150
*) need_version=no ;;
16152
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16153
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16154
shlibpath_var=LD_LIBRARY_PATH
16155
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16157
openbsd2.[89] | openbsd2.[89].*)
16158
shlibpath_overrides_runpath=no
16161
shlibpath_overrides_runpath=yes
16165
shlibpath_overrides_runpath=yes
16170
libname_spec='$name'
16173
library_names_spec='$libname${shared_ext} $libname.a'
16174
dynamic_linker='OS/2 ld.exe'
16175
shlibpath_var=LIBPATH
16178
osf3* | osf4* | osf5*)
16182
soname_spec='${libname}${release}${shared_ext}$major'
16183
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16184
shlibpath_var=LD_LIBRARY_PATH
16185
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16186
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16197
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16198
soname_spec='${libname}${release}${shared_ext}$major'
16199
shlibpath_var=LD_LIBRARY_PATH
16200
shlibpath_overrides_runpath=yes
16201
hardcode_into_libs=yes
16202
# ldd complains unless libraries are executable
16203
postinstall_cmds='chmod +x $lib'
16208
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16209
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16210
shlibpath_var=LD_LIBRARY_PATH
16211
shlibpath_overrides_runpath=yes
16212
if test "$with_gnu_ld" = yes; then
16220
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16221
soname_spec='${libname}${release}${shared_ext}$major'
16222
shlibpath_var=LD_LIBRARY_PATH
16223
case $host_vendor in
16225
shlibpath_overrides_runpath=no
16227
export_dynamic_flag_spec='${wl}-Blargedynsym'
16228
runpath_var=LD_RUN_PATH
16236
shlibpath_overrides_runpath=no
16237
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16243
if test -d /usr/nec ;then
16245
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16246
soname_spec='$libname${shared_ext}.$major'
16247
shlibpath_var=LD_LIBRARY_PATH
16251
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16252
version_type=freebsd-elf
16255
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16256
soname_spec='${libname}${release}${shared_ext}$major'
16257
shlibpath_var=LD_LIBRARY_PATH
16258
hardcode_into_libs=yes
16259
if test "$with_gnu_ld" = yes; then
16260
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16261
shlibpath_overrides_runpath=no
16263
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16264
shlibpath_overrides_runpath=yes
16267
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16271
sys_lib_dlsearch_path_spec='/usr/lib'
16276
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16277
soname_spec='${libname}${release}${shared_ext}$major'
16278
shlibpath_var=LD_LIBRARY_PATH
16285
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16286
echo "${ECHO_T}$dynamic_linker" >&6; }
16287
test "$dynamic_linker" = no && can_build_shared=no
16289
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16290
echo $ECHO_N "(cached) $ECHO_C" >&6
16292
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16295
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16296
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16297
echo $ECHO_N "(cached) $ECHO_C" >&6
16299
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16302
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16304
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16305
if test "$GCC" = yes; then
16306
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16309
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16310
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16311
hardcode_action_F77=
16312
if test -n "$hardcode_libdir_flag_spec_F77" || \
16313
test -n "$runpath_var_F77" || \
16314
test "X$hardcode_automatic_F77" = "Xyes" ; then
16316
# We can hardcode non-existant directories.
16317
if test "$hardcode_direct_F77" != no &&
16318
# If the only mechanism to avoid hardcoding is shlibpath_var, we
16319
# have to relink, otherwise we might link with an installed library
16320
# when we should be linking with a yet-to-be-installed one
16321
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16322
test "$hardcode_minus_L_F77" != no; then
16323
# Linking always hardcodes the temporary library directory.
16324
hardcode_action_F77=relink
16326
# We can link without hardcoding, and we can hardcode nonexisting dirs.
16327
hardcode_action_F77=immediate
16330
# We cannot hardcode anything, or else we can only hardcode existing
16332
hardcode_action_F77=unsupported
16334
{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16335
echo "${ECHO_T}$hardcode_action_F77" >&6; }
16337
if test "$hardcode_action_F77" = relink; then
16338
# Fast installation is not supported
16339
enable_fast_install=no
16340
elif test "$shlibpath_overrides_runpath" = yes ||
16341
test "$enable_shared" = no; then
16342
# Fast installation is not necessary
16343
enable_fast_install=needless
16347
# The else clause should only fire when bootstrapping the
16348
# libtool distribution, otherwise you forgot to ship ltmain.sh
16349
# with your package, and you will get complaints that there are
16350
# no rules to generate ltmain.sh.
16351
if test -f "$ltmain"; then
16352
# See if we are running on zsh, and set the options which allow our commands through
16353
# without removal of \ escapes.
16354
if test -n "${ZSH_VERSION+set}" ; then
16355
setopt NO_GLOB_SUBST
16357
# Now quote all the things that may contain metacharacters while being
16358
# careful not to overquote the AC_SUBSTed values. We take copies of the
16359
# variables and quote the copies for generation of the libtool script.
16360
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16362
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16363
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16364
deplibs_check_method reload_flag reload_cmds need_locks \
16365
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16366
lt_cv_sys_global_symbol_to_c_name_address \
16367
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16368
old_postinstall_cmds old_postuninstall_cmds \
16372
lt_prog_compiler_wl_F77 \
16373
lt_prog_compiler_pic_F77 \
16374
lt_prog_compiler_static_F77 \
16375
lt_prog_compiler_no_builtin_flag_F77 \
16376
export_dynamic_flag_spec_F77 \
16377
thread_safe_flag_spec_F77 \
16378
whole_archive_flag_spec_F77 \
16379
enable_shared_with_static_runtimes_F77 \
16380
old_archive_cmds_F77 \
16381
old_archive_from_new_cmds_F77 \
16382
predep_objects_F77 \
16383
postdep_objects_F77 \
16386
compiler_lib_search_path_F77 \
16387
compiler_lib_search_dirs_F77 \
16389
archive_expsym_cmds_F77 \
16390
postinstall_cmds_F77 \
16391
postuninstall_cmds_F77 \
16392
old_archive_from_expsyms_cmds_F77 \
16393
allow_undefined_flag_F77 \
16394
no_undefined_flag_F77 \
16395
export_symbols_cmds_F77 \
16396
hardcode_libdir_flag_spec_F77 \
16397
hardcode_libdir_flag_spec_ld_F77 \
16398
hardcode_libdir_separator_F77 \
16399
hardcode_automatic_F77 \
16401
module_expsym_cmds_F77 \
16402
lt_cv_prog_compiler_c_o_F77 \
16403
fix_srcfile_path_F77 \
16404
exclude_expsyms_F77 \
16405
include_expsyms_F77; do
16408
old_archive_cmds_F77 | \
16409
old_archive_from_new_cmds_F77 | \
16410
archive_cmds_F77 | \
16411
archive_expsym_cmds_F77 | \
16412
module_cmds_F77 | \
16413
module_expsym_cmds_F77 | \
16414
old_archive_from_expsyms_cmds_F77 | \
16415
export_symbols_cmds_F77 | \
16416
extract_expsyms_cmds | reload_cmds | finish_cmds | \
16417
postinstall_cmds | postuninstall_cmds | \
16418
old_postinstall_cmds | old_postuninstall_cmds | \
16419
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16420
# Double-quote double-evaled strings.
16421
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16424
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16430
*'\$0 --fallback-echo"')
16431
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16437
cat <<__EOF__ >> "$cfgfile"
16438
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16440
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16442
# Shell to use when invoking shell scripts.
16445
# Whether or not to build shared libraries.
16446
build_libtool_libs=$enable_shared
16448
# Whether or not to build static libraries.
16449
build_old_libs=$enable_static
16451
# Whether or not to add -lc for building shared libraries.
16452
build_libtool_need_lc=$archive_cmds_need_lc_F77
16454
# Whether or not to disallow shared libs when runtime libs are static
16455
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16457
# Whether or not to optimize for fast installation.
16458
fast_install=$enable_fast_install
16461
host_alias=$host_alias
16465
# The build system.
16466
build_alias=$build_alias
16470
# An echo program that does not interpret backslashes.
16475
AR_FLAGS=$lt_AR_FLAGS
16480
# LTCC compiler flags.
16481
LTCFLAGS=$lt_LTCFLAGS
16483
# A language-specific compiler.
16484
CC=$lt_compiler_F77
16486
# Is the compiler the GNU C compiler?
16492
# The linker used to build libraries.
16495
# Whether we need hard or soft links.
16498
# A BSD-compatible nm program.
16501
# A symbol stripping program
16504
# Used to examine libraries when file_magic_cmd begins "file"
16505
MAGIC_CMD=$MAGIC_CMD
16507
# Used on cygwin: DLL creation program.
16510
# Used on cygwin: object dumper.
16513
# Used on cygwin: assembler.
16516
# The name of the directory that contains temporary libtool files.
16519
# How to create reloadable object files.
16520
reload_flag=$lt_reload_flag
16521
reload_cmds=$lt_reload_cmds
16523
# How to pass a linker flag through the compiler.
16524
wl=$lt_lt_prog_compiler_wl_F77
16526
# Object file suffix (normally "o").
16527
objext="$ac_objext"
16529
# Old archive suffix (normally "a").
16532
# Shared library suffix (normally ".so").
16533
shrext_cmds='$shrext_cmds'
16535
# Executable file suffix (normally "").
16538
# Additional compiler flags for building library objects.
16539
pic_flag=$lt_lt_prog_compiler_pic_F77
16542
# What is the maximum length of a command?
16543
max_cmd_len=$lt_cv_sys_max_cmd_len
16545
# Does compiler simultaneously support -c and -o options?
16546
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16548
# Must we lock files when doing compilation?
16549
need_locks=$lt_need_locks
16551
# Do we need the lib prefix for modules?
16552
need_lib_prefix=$need_lib_prefix
16554
# Do we need a version for libraries?
16555
need_version=$need_version
16557
# Whether dlopen is supported.
16558
dlopen_support=$enable_dlopen
16560
# Whether dlopen of programs is supported.
16561
dlopen_self=$enable_dlopen_self
16563
# Whether dlopen of statically linked programs is supported.
16564
dlopen_self_static=$enable_dlopen_self_static
16566
# Compiler flag to prevent dynamic linking.
16567
link_static_flag=$lt_lt_prog_compiler_static_F77
16569
# Compiler flag to turn off builtin functions.
16570
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16572
# Compiler flag to allow reflexive dlopens.
16573
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16575
# Compiler flag to generate shared objects directly from archives.
16576
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16578
# Compiler flag to generate thread-safe objects.
16579
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16581
# Library versioning type.
16582
version_type=$version_type
16584
# Format of library name prefix.
16585
libname_spec=$lt_libname_spec
16587
# List of archive names. First name is the real one, the rest are links.
16588
# The last name is the one that the linker finds with -lNAME.
16589
library_names_spec=$lt_library_names_spec
16591
# The coded name of the library, if different from the real name.
16592
soname_spec=$lt_soname_spec
16594
# Commands used to build and install an old-style archive.
16596
old_archive_cmds=$lt_old_archive_cmds_F77
16597
old_postinstall_cmds=$lt_old_postinstall_cmds
16598
old_postuninstall_cmds=$lt_old_postuninstall_cmds
16600
# Create an old-style archive from a shared archive.
16601
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16603
# Create a temporary old-style archive to link instead of a shared archive.
16604
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16606
# Commands used to build and install a shared archive.
16607
archive_cmds=$lt_archive_cmds_F77
16608
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16609
postinstall_cmds=$lt_postinstall_cmds
16610
postuninstall_cmds=$lt_postuninstall_cmds
16612
# Commands used to build a loadable module (assumed same as above if empty)
16613
module_cmds=$lt_module_cmds_F77
16614
module_expsym_cmds=$lt_module_expsym_cmds_F77
16616
# Commands to strip libraries.
16617
old_striplib=$lt_old_striplib
16618
striplib=$lt_striplib
16620
# Dependencies to place before the objects being linked to create a
16622
predep_objects=$lt_predep_objects_F77
16624
# Dependencies to place after the objects being linked to create a
16626
postdep_objects=$lt_postdep_objects_F77
16628
# Dependencies to place before the objects being linked to create a
16630
predeps=$lt_predeps_F77
16632
# Dependencies to place after the objects being linked to create a
16634
postdeps=$lt_postdeps_F77
16636
# The directories searched by this compiler when creating a shared
16638
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16640
# The library search path used internally by the compiler when linking
16641
# a shared library.
16642
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16644
# Method to check whether dependent libraries are shared objects.
16645
deplibs_check_method=$lt_deplibs_check_method
16647
# Command to use when deplibs_check_method == file_magic.
16648
file_magic_cmd=$lt_file_magic_cmd
16650
# Flag that allows shared libraries with undefined symbols to be built.
16651
allow_undefined_flag=$lt_allow_undefined_flag_F77
16653
# Flag that forces no undefined symbols.
16654
no_undefined_flag=$lt_no_undefined_flag_F77
16656
# Commands used to finish a libtool library installation in a directory.
16657
finish_cmds=$lt_finish_cmds
16659
# Same as above, but a single script fragment to be evaled but not shown.
16660
finish_eval=$lt_finish_eval
16662
# Take the output of nm and produce a listing of raw symbols and C names.
16663
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16665
# Transform the output of nm in a proper C declaration
16666
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16668
# Transform the output of nm in a C name address pair
16669
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16671
# This is the shared library runtime path variable.
16672
runpath_var=$runpath_var
16674
# This is the shared library path variable.
16675
shlibpath_var=$shlibpath_var
16677
# Is shlibpath searched before the hard-coded library search path?
16678
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16680
# How to hardcode a shared library path into an executable.
16681
hardcode_action=$hardcode_action_F77
16683
# Whether we should hardcode library paths into libraries.
16684
hardcode_into_libs=$hardcode_into_libs
16686
# Flag to hardcode \$libdir into a binary during linking.
16687
# This must work even if \$libdir does not exist.
16688
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16690
# If ld is used when linking, flag to hardcode \$libdir into
16691
# a binary during linking. This must work even if \$libdir does
16693
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16695
# Whether we need a single -rpath flag with a separated argument.
16696
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16698
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16699
# resulting binary.
16700
hardcode_direct=$hardcode_direct_F77
16702
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16703
# resulting binary.
16704
hardcode_minus_L=$hardcode_minus_L_F77
16706
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16707
# the resulting binary.
16708
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16710
# Set to yes if building a shared library automatically hardcodes DIR into the library
16711
# and all subsequent libraries and executables linked against it.
16712
hardcode_automatic=$hardcode_automatic_F77
16714
# Variables whose values should be saved in libtool wrapper scripts and
16715
# restored at relink time.
16716
variables_saved_for_relink="$variables_saved_for_relink"
16718
# Whether libtool must link a program against all its dependency libraries.
16719
link_all_deplibs=$link_all_deplibs_F77
16721
# Compile-time system search path for libraries
16722
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16724
# Run-time system search path for libraries
16725
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16727
# Fix the shell variable \$srcfile for the compiler.
16728
fix_srcfile_path=$lt_fix_srcfile_path
16730
# Set to yes if exported symbols are required.
16731
always_export_symbols=$always_export_symbols_F77
16733
# The commands to list exported symbols.
16734
export_symbols_cmds=$lt_export_symbols_cmds_F77
16736
# The commands to extract the exported symbol list from a shared archive.
16737
extract_expsyms_cmds=$lt_extract_expsyms_cmds
16739
# Symbols that should not be listed in the preloaded symbols.
16740
exclude_expsyms=$lt_exclude_expsyms_F77
16742
# Symbols that must always be exported.
16743
include_expsyms=$lt_include_expsyms_F77
16745
# ### END LIBTOOL TAG CONFIG: $tagname
16751
# If there is no Makefile yet, we rely on a make rule to execute
16752
# `config.status --recheck' to rerun these tests and create the
16753
# libtool script then.
16754
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16755
if test -f "$ltmain_in"; then
16756
test -f Makefile && make "$ltmain"
16762
ac_cpp='$CPP $CPPFLAGS'
16763
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16764
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16765
ac_compiler_gnu=$ac_cv_c_compiler_gnu
16775
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16778
# Source file extension for Java test sources.
16781
# Object file extension for compiled Java test sources.
16785
# Code to be used in simple compile tests
16786
lt_simple_compile_test_code="class foo {}"
16788
# Code to be used in simple link tests
16789
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16791
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16793
# If no C compiler was specified, use CC.
16796
# If no C compiler flags were specified, use CFLAGS.
16797
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16799
# Allow CC to be a program name with arguments.
16803
# save warnings/boilerplate of simple test code
16804
ac_outfile=conftest.$ac_objext
16805
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16806
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16807
_lt_compiler_boilerplate=`cat conftest.err`
16810
ac_outfile=conftest.$ac_objext
16811
echo "$lt_simple_link_test_code" >conftest.$ac_ext
16812
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16813
_lt_linker_boilerplate=`cat conftest.err`
16817
# Allow CC to be a program name with arguments.
16822
for cc_temp in $compiler""; do
16824
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16825
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16830
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16833
# GCJ did not exist at the time GCC didn't implicitly link libc in.
16834
archive_cmds_need_lc_GCJ=no
16836
old_archive_cmds_GCJ=$old_archive_cmds
16839
lt_prog_compiler_no_builtin_flag_GCJ=
16841
if test "$GCC" = yes; then
16842
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16845
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16846
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16847
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16848
echo $ECHO_N "(cached) $ECHO_C" >&6
16850
lt_cv_prog_compiler_rtti_exceptions=no
16851
ac_outfile=conftest.$ac_objext
16852
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16853
lt_compiler_flag="-fno-rtti -fno-exceptions"
16854
# Insert the option either (1) after the last *FLAGS variable, or
16855
# (2) before a word containing "conftest.", or (3) at the end.
16856
# Note that $ac_compile itself does not contain backslashes and begins
16857
# with a dollar sign (not a hyphen), so the echo should work correctly.
16858
# The option is referenced via a variable to avoid confusing sed.
16859
lt_compile=`echo "$ac_compile" | $SED \
16860
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16861
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16862
-e 's:$: $lt_compiler_flag:'`
16863
(eval echo "\"\$as_me:16863: $lt_compile\"" >&5)
16864
(eval "$lt_compile" 2>conftest.err)
16866
cat conftest.err >&5
16867
echo "$as_me:16867: \$? = $ac_status" >&5
16868
if (exit $ac_status) && test -s "$ac_outfile"; then
16869
# The compiler can only warn and ignore the option if not recognized
16870
# So say no if there are warnings other than the usual output.
16871
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16872
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16873
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16874
lt_cv_prog_compiler_rtti_exceptions=yes
16880
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16881
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16883
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16884
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16891
lt_prog_compiler_wl_GCJ=
16892
lt_prog_compiler_pic_GCJ=
16893
lt_prog_compiler_static_GCJ=
16895
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16896
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16898
if test "$GCC" = yes; then
16899
lt_prog_compiler_wl_GCJ='-Wl,'
16900
lt_prog_compiler_static_GCJ='-static'
16904
# All AIX code is PIC.
16905
if test "$host_cpu" = ia64; then
16906
# AIX 5 now supports IA64 processor
16907
lt_prog_compiler_static_GCJ='-Bstatic'
16912
# FIXME: we need at least 68020 code to build shared libraries, but
16913
# adding the `-m68020' flag to GCC prevents building anything better,
16915
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16918
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16919
# PIC is the default for these OSes.
16922
mingw* | cygwin* | pw32* | os2*)
16923
# This hack is so that the source file can tell whether it is being
16924
# built for inclusion in a dll (and should export symbols for example).
16925
# Although the cygwin gcc ignores -fPIC, still need this for old-style
16926
# (--disable-auto-import) libraries
16930
darwin* | rhapsody*)
16931
# PIC is the default on this platform
16932
# Common symbols not allowed in MH_DYLIB files
16933
lt_prog_compiler_pic_GCJ='-fno-common'
16937
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
16938
# Instead, we relocate shared libraries at runtime.
16942
# Just because we use GCC doesn't mean we suddenly get shared libraries
16943
# on systems that don't support them.
16944
lt_prog_compiler_can_build_shared_GCJ=no
16949
if test -d /usr/nec; then
16950
lt_prog_compiler_pic_GCJ=-Kconform_pic
16955
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16956
# not for PA HP-UX.
16962
lt_prog_compiler_pic_GCJ='-fPIC'
16968
lt_prog_compiler_pic_GCJ='-fPIC'
16972
# PORTME Check for flag to pass linker flags through the system compiler.
16975
lt_prog_compiler_wl_GCJ='-Wl,'
16976
if test "$host_cpu" = ia64; then
16977
# AIX 5 now supports IA64 processor
16978
lt_prog_compiler_static_GCJ='-Bstatic'
16980
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16984
# PIC is the default on this platform
16985
# Common symbols not allowed in MH_DYLIB files
16986
case $cc_basename in
16988
lt_prog_compiler_pic_GCJ='-qnocommon'
16989
lt_prog_compiler_wl_GCJ='-Wl,'
16994
mingw* | cygwin* | pw32* | os2*)
16995
# This hack is so that the source file can tell whether it is being
16996
# built for inclusion in a dll (and should export symbols for example).
17000
hpux9* | hpux10* | hpux11*)
17001
lt_prog_compiler_wl_GCJ='-Wl,'
17002
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17003
# not for PA HP-UX.
17009
lt_prog_compiler_pic_GCJ='+Z'
17012
# Is there a better lt_prog_compiler_static that works with the bundled CC?
17013
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17016
irix5* | irix6* | nonstopux*)
17017
lt_prog_compiler_wl_GCJ='-Wl,'
17018
# PIC (with -KPIC) is the default.
17019
lt_prog_compiler_static_GCJ='-non_shared'
17023
lt_prog_compiler_pic_GCJ='-KPIC'
17024
lt_prog_compiler_static_GCJ='-Bstatic'
17027
linux* | k*bsd*-gnu)
17028
case $cc_basename in
17030
lt_prog_compiler_wl_GCJ='-Wl,'
17031
lt_prog_compiler_pic_GCJ='-KPIC'
17032
lt_prog_compiler_static_GCJ='-static'
17034
pgcc* | pgf77* | pgf90* | pgf95*)
17035
# Portland Group compilers (*not* the Pentium gcc compiler,
17036
# which looks to be a dead project)
17037
lt_prog_compiler_wl_GCJ='-Wl,'
17038
lt_prog_compiler_pic_GCJ='-fpic'
17039
lt_prog_compiler_static_GCJ='-Bstatic'
17042
lt_prog_compiler_wl_GCJ='-Wl,'
17043
# All Alpha code is PIC.
17044
lt_prog_compiler_static_GCJ='-non_shared'
17047
case `$CC -V 2>&1 | sed 5q` in
17050
lt_prog_compiler_pic_GCJ='-KPIC'
17051
lt_prog_compiler_static_GCJ='-Bstatic'
17052
lt_prog_compiler_wl_GCJ='-Wl,'
17055
# Sun Fortran 8.3 passes all unrecognized flags to the linker
17056
lt_prog_compiler_pic_GCJ='-KPIC'
17057
lt_prog_compiler_static_GCJ='-Bstatic'
17058
lt_prog_compiler_wl_GCJ=''
17065
osf3* | osf4* | osf5*)
17066
lt_prog_compiler_wl_GCJ='-Wl,'
17067
# All OSF/1 code is PIC.
17068
lt_prog_compiler_static_GCJ='-non_shared'
17072
lt_prog_compiler_static_GCJ='-non_shared'
17076
lt_prog_compiler_pic_GCJ='-KPIC'
17077
lt_prog_compiler_static_GCJ='-Bstatic'
17078
case $cc_basename in
17079
f77* | f90* | f95*)
17080
lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17082
lt_prog_compiler_wl_GCJ='-Wl,';;
17087
lt_prog_compiler_wl_GCJ='-Qoption ld '
17088
lt_prog_compiler_pic_GCJ='-PIC'
17089
lt_prog_compiler_static_GCJ='-Bstatic'
17092
sysv4 | sysv4.2uw2* | sysv4.3*)
17093
lt_prog_compiler_wl_GCJ='-Wl,'
17094
lt_prog_compiler_pic_GCJ='-KPIC'
17095
lt_prog_compiler_static_GCJ='-Bstatic'
17099
if test -d /usr/nec ;then
17100
lt_prog_compiler_pic_GCJ='-Kconform_pic'
17101
lt_prog_compiler_static_GCJ='-Bstatic'
17105
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17106
lt_prog_compiler_wl_GCJ='-Wl,'
17107
lt_prog_compiler_pic_GCJ='-KPIC'
17108
lt_prog_compiler_static_GCJ='-Bstatic'
17112
lt_prog_compiler_wl_GCJ='-Wl,'
17113
lt_prog_compiler_can_build_shared_GCJ=no
17117
lt_prog_compiler_pic_GCJ='-pic'
17118
lt_prog_compiler_static_GCJ='-Bstatic'
17122
lt_prog_compiler_can_build_shared_GCJ=no
17127
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17128
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17131
# Check to make sure the PIC flag actually works.
17133
if test -n "$lt_prog_compiler_pic_GCJ"; then
17135
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17136
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17137
if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17138
echo $ECHO_N "(cached) $ECHO_C" >&6
17140
lt_cv_prog_compiler_pic_works_GCJ=no
17141
ac_outfile=conftest.$ac_objext
17142
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17143
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17144
# Insert the option either (1) after the last *FLAGS variable, or
17145
# (2) before a word containing "conftest.", or (3) at the end.
17146
# Note that $ac_compile itself does not contain backslashes and begins
17147
# with a dollar sign (not a hyphen), so the echo should work correctly.
17148
# The option is referenced via a variable to avoid confusing sed.
17149
lt_compile=`echo "$ac_compile" | $SED \
17150
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17151
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17152
-e 's:$: $lt_compiler_flag:'`
17153
(eval echo "\"\$as_me:17153: $lt_compile\"" >&5)
17154
(eval "$lt_compile" 2>conftest.err)
17156
cat conftest.err >&5
17157
echo "$as_me:17157: \$? = $ac_status" >&5
17158
if (exit $ac_status) && test -s "$ac_outfile"; then
17159
# The compiler can only warn and ignore the option if not recognized
17160
# So say no if there are warnings other than the usual output.
17161
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17162
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17163
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17164
lt_cv_prog_compiler_pic_works_GCJ=yes
17170
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17171
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17173
if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17174
case $lt_prog_compiler_pic_GCJ in
17176
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17179
lt_prog_compiler_pic_GCJ=
17180
lt_prog_compiler_can_build_shared_GCJ=no
17185
# For platforms which do not support PIC, -DPIC is meaningless:
17187
lt_prog_compiler_pic_GCJ=
17190
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17195
# Check to make sure the static flag actually works.
17197
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17198
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17199
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17200
if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17201
echo $ECHO_N "(cached) $ECHO_C" >&6
17203
lt_cv_prog_compiler_static_works_GCJ=no
17204
save_LDFLAGS="$LDFLAGS"
17205
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17206
echo "$lt_simple_link_test_code" > conftest.$ac_ext
17207
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17208
# The linker can only warn and ignore the option if not recognized
17209
# So say no if there are warnings
17210
if test -s conftest.err; then
17211
# Append any errors to the config.log.
17212
cat conftest.err 1>&5
17213
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17214
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17215
if diff conftest.exp conftest.er2 >/dev/null; then
17216
lt_cv_prog_compiler_static_works_GCJ=yes
17219
lt_cv_prog_compiler_static_works_GCJ=yes
17223
LDFLAGS="$save_LDFLAGS"
17226
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17227
echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17229
if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17232
lt_prog_compiler_static_GCJ=
17236
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17237
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17238
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17239
echo $ECHO_N "(cached) $ECHO_C" >&6
17241
lt_cv_prog_compiler_c_o_GCJ=no
17242
$rm -r conftest 2>/dev/null
17246
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17248
lt_compiler_flag="-o out/conftest2.$ac_objext"
17249
# Insert the option either (1) after the last *FLAGS variable, or
17250
# (2) before a word containing "conftest.", or (3) at the end.
17251
# Note that $ac_compile itself does not contain backslashes and begins
17252
# with a dollar sign (not a hyphen), so the echo should work correctly.
17253
lt_compile=`echo "$ac_compile" | $SED \
17254
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17255
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17256
-e 's:$: $lt_compiler_flag:'`
17257
(eval echo "\"\$as_me:17257: $lt_compile\"" >&5)
17258
(eval "$lt_compile" 2>out/conftest.err)
17260
cat out/conftest.err >&5
17261
echo "$as_me:17261: \$? = $ac_status" >&5
17262
if (exit $ac_status) && test -s out/conftest2.$ac_objext
17264
# The compiler can only warn and ignore the option if not recognized
17265
# So say no if there are warnings
17266
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17267
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17268
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17269
lt_cv_prog_compiler_c_o_GCJ=yes
17274
# SGI C++ compiler will create directory out/ii_files/ for
17275
# template instantiation
17276
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17277
$rm out/* && rmdir out
17283
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17284
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17287
hard_links="nottested"
17288
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17289
# do not overwrite the value of need_locks provided by the user
17290
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17291
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17294
ln conftest.a conftest.b 2>/dev/null && hard_links=no
17296
ln conftest.a conftest.b 2>&5 || hard_links=no
17297
ln conftest.a conftest.b 2>/dev/null && hard_links=no
17298
{ echo "$as_me:$LINENO: result: $hard_links" >&5
17299
echo "${ECHO_T}$hard_links" >&6; }
17300
if test "$hard_links" = no; then
17301
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17302
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17309
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17310
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17313
allow_undefined_flag_GCJ=
17314
enable_shared_with_static_runtimes_GCJ=no
17316
archive_expsym_cmds_GCJ=
17317
old_archive_From_new_cmds_GCJ=
17318
old_archive_from_expsyms_cmds_GCJ=
17319
export_dynamic_flag_spec_GCJ=
17320
whole_archive_flag_spec_GCJ=
17321
thread_safe_flag_spec_GCJ=
17322
hardcode_libdir_flag_spec_GCJ=
17323
hardcode_libdir_flag_spec_ld_GCJ=
17324
hardcode_libdir_separator_GCJ=
17325
hardcode_direct_GCJ=no
17326
hardcode_minus_L_GCJ=no
17327
hardcode_shlibpath_var_GCJ=unsupported
17328
link_all_deplibs_GCJ=unknown
17329
hardcode_automatic_GCJ=no
17331
module_expsym_cmds_GCJ=
17332
always_export_symbols_GCJ=no
17333
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17334
# include_expsyms should be a list of space-separated symbols to be *always*
17335
# included in the symbol list
17336
include_expsyms_GCJ=
17337
# exclude_expsyms can be an extended regexp of symbols to exclude
17338
# it will be wrapped by ` (' and `)$', so one must not match beginning or
17339
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17340
# as well as any symbol that contains `d'.
17341
exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17342
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17343
# platforms (ab)use it in PIC code, but their linkers get confused if
17344
# the symbol is explicitly referenced. Since portable code cannot
17345
# rely on this symbol name, it's probably fine to never include it in
17346
# preloaded symbol tables.
17347
# Exclude shared library initialization/finalization symbols.
17348
extract_expsyms_cmds=
17349
# Just being paranoid about ensuring that cc_basename is set.
17350
for cc_temp in $compiler""; do
17352
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17353
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17358
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17361
cygwin* | mingw* | pw32*)
17362
# FIXME: the MSVC++ port hasn't been tested in a loooong time
17363
# When not using gcc, we currently assume that we are using
17364
# Microsoft Visual C++.
17365
if test "$GCC" != yes; then
17370
# we just hope/assume this is gcc and not c89 (= MSVC++)
17379
if test "$with_gnu_ld" = yes; then
17380
# If archive_cmds runs LD, not CC, wlarc should be empty
17383
# Set some defaults for GNU ld with shared library support. These
17384
# are reset later if shared libraries are not supported. Putting them
17385
# here allows them to be overridden if necessary.
17386
runpath_var=LD_RUN_PATH
17387
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17388
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17389
# ancient GNU ld didn't support --whole-archive et. al.
17390
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17391
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17393
whole_archive_flag_spec_GCJ=
17395
supports_anon_versioning=no
17396
case `$LD -v 2>/dev/null` in
17397
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17398
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17399
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17400
*\ 2.11.*) ;; # other 2.11 versions
17401
*) supports_anon_versioning=yes ;;
17404
# See if GNU ld supports shared libraries.
17407
# On AIX/PPC, the GNU linker is very broken
17408
if test "$host_cpu" != ia64; then
17412
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17413
*** to be unable to reliably create shared libraries on AIX.
17414
*** Therefore, libtool is disabling shared libraries support. If you
17415
*** really care for shared libraries, you may want to modify your PATH
17416
*** so that a non-GNU linker is found, and then restart.
17423
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)'
17424
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17425
hardcode_minus_L_GCJ=yes
17427
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17428
# that the semantics of dynamic libraries on AmigaOS, at least up
17429
# to version 4, is to share data among multiple programs linked
17430
# with the same dynamic library. Since this doesn't match the
17431
# behavior of shared libraries on other platforms, we can't use
17437
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17438
allow_undefined_flag_GCJ=unsupported
17439
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17440
# support --undefined. This deserves some investigation. FIXME
17441
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17447
cygwin* | mingw* | pw32*)
17448
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17449
# as there is no search path for DLLs.
17450
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17451
allow_undefined_flag_GCJ=unsupported
17452
always_export_symbols_GCJ=no
17453
enable_shared_with_static_runtimes_GCJ=yes
17454
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17456
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17457
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17458
# If the export-symbols file already is a .def file (1st line
17459
# is EXPORTS), use it as is; otherwise, prepend...
17460
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17461
cp $export_symbols $output_objdir/$soname.def;
17463
echo EXPORTS > $output_objdir/$soname.def;
17464
cat $export_symbols >> $output_objdir/$soname.def;
17466
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17473
hardcode_direct_GCJ=no
17474
hardcode_shlibpath_var_GCJ=no
17475
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17476
export_dynamic_flag_spec_GCJ='${wl}-E'
17477
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17478
# Instead, shared libraries are loaded at an image base (0x10000000 by
17479
# default) and relocated if they conflict, which is a slow very memory
17480
# consuming and fragmenting process. To avoid this, we pick a random,
17481
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17482
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
17483
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'
17484
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'
17487
gnu* | linux* | k*bsd*-gnu)
17488
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17490
case $cc_basename,$host_cpu in
17491
pgcc*) # Portland Group C compiler
17492
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'
17493
tmp_addflag=' $pic_flag'
17495
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17496
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'
17497
tmp_addflag=' $pic_flag -Mnomain' ;;
17498
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17499
tmp_addflag=' -i_dynamic' ;;
17500
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17501
tmp_addflag=' -i_dynamic -nofor_main' ;;
17502
ifc* | ifort*) # Intel Fortran compiler
17503
tmp_addflag=' -nofor_main' ;;
17505
case `$CC -V 2>&1 | sed 5q` in
17506
*Sun\ C*) # Sun C 5.9
17507
whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17508
tmp_sharedflag='-G' ;;
17509
*Sun\ F*) # Sun Fortran 8.3
17510
tmp_sharedflag='-G' ;;
17512
tmp_sharedflag='-shared' ;;
17514
archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17516
if test $supports_anon_versioning = yes; then
17517
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17518
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17519
$echo "local: *; };" >> $output_objdir/$libname.ver~
17520
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17522
link_all_deplibs_GCJ=no
17528
netbsd* | netbsdelf*-gnu)
17529
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17530
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17533
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17534
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17539
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17543
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17544
*** create shared libraries on Solaris systems. Therefore, libtool
17545
*** is disabling shared libraries support. We urge you to upgrade GNU
17546
*** binutils to release 2.9.1 or newer. Another option is to modify
17547
*** your PATH or compiler configuration so that the native linker is
17548
*** used, and then restart.
17551
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17552
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17553
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17559
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17560
case `$LD -v 2>&1` in
17561
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17565
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17566
*** reliably create shared libraries on SCO systems. Therefore, libtool
17567
*** is disabling shared libraries support. We urge you to upgrade GNU
17568
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17569
*** your PATH or compiler configuration so that the native linker is
17570
*** used, and then restart.
17575
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17576
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17577
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17578
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17587
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17589
hardcode_direct_GCJ=yes
17590
hardcode_shlibpath_var_GCJ=no
17594
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17595
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17596
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17603
if test "$ld_shlibs_GCJ" = no; then
17605
hardcode_libdir_flag_spec_GCJ=
17606
export_dynamic_flag_spec_GCJ=
17607
whole_archive_flag_spec_GCJ=
17610
# PORTME fill in a description of your system's linker (not GNU ld)
17613
allow_undefined_flag_GCJ=unsupported
17614
always_export_symbols_GCJ=yes
17615
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'
17616
# Note: this linker hardcodes the directories in LIBPATH if there
17617
# are no directories specified by -L.
17618
hardcode_minus_L_GCJ=yes
17619
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17620
# Neither direct hardcoding nor static linking is supported with a
17622
hardcode_direct_GCJ=unsupported
17627
if test "$host_cpu" = ia64; then
17628
# On IA64, the linker does run time linking by default, so we don't
17629
# have to do anything special.
17630
aix_use_runtimelinking=no
17631
exp_sym_flag='-Bexport'
17634
# If we're using GNU nm, then we don't want the "-C" option.
17635
# -C means demangle to AIX nm, but means don't demangle with GNU nm
17636
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17637
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'
17639
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'
17641
aix_use_runtimelinking=no
17643
# Test if we are trying to use run time linking or normal
17644
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17645
# need to do runtime linking.
17646
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17647
for ld_flag in $LDFLAGS; do
17648
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17649
aix_use_runtimelinking=yes
17656
exp_sym_flag='-bexport'
17657
no_entry_flag='-bnoentry'
17660
# When large executables or shared objects are built, AIX ld can
17661
# have problems creating the table of contents. If linking a library
17662
# or program results in "error TOC overflow" add -mminimal-toc to
17663
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17664
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17666
archive_cmds_GCJ=''
17667
hardcode_direct_GCJ=yes
17668
hardcode_libdir_separator_GCJ=':'
17669
link_all_deplibs_GCJ=yes
17671
if test "$GCC" = yes; then
17672
case $host_os in aix4.[012]|aix4.[012].*)
17673
# We only want to do this on AIX 4.2 and lower, the check
17674
# below for broken collect2 doesn't work under 4.3+
17675
collect2name=`${CC} -print-prog-name=collect2`
17676
if test -f "$collect2name" && \
17677
strings "$collect2name" | grep resolve_lib_name >/dev/null
17679
# We have reworked collect2
17682
# We have old collect2
17683
hardcode_direct_GCJ=unsupported
17684
# It fails to find uninstalled libraries when the uninstalled
17685
# path is not listed in the libpath. Setting hardcode_minus_L
17686
# to unsupported forces relinking
17687
hardcode_minus_L_GCJ=yes
17688
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17689
hardcode_libdir_separator_GCJ=
17693
shared_flag='-shared'
17694
if test "$aix_use_runtimelinking" = yes; then
17695
shared_flag="$shared_flag "'${wl}-G'
17699
if test "$host_cpu" = ia64; then
17700
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17701
# chokes on -Wl,-G. The following line is correct:
17704
if test "$aix_use_runtimelinking" = yes; then
17705
shared_flag='${wl}-G'
17707
shared_flag='${wl}-bM:SRE'
17712
# It seems that -bexpall does not export symbols beginning with
17713
# underscore (_), so it is better to generate a list of symbols to export.
17714
always_export_symbols_GCJ=yes
17715
if test "$aix_use_runtimelinking" = yes; then
17716
# Warning - without using the other runtime loading flags (-brtl),
17717
# -berok will link without error, but may produce a broken library.
17718
allow_undefined_flag_GCJ='-berok'
17719
# Determine the default libpath from the value encoded in an empty executable.
17720
cat >conftest.$ac_ext <<_ACEOF
17723
cat confdefs.h >>conftest.$ac_ext
17724
cat >>conftest.$ac_ext <<_ACEOF
17725
/* end confdefs.h. */
17735
rm -f conftest.$ac_objext conftest$ac_exeext
17736
if { (ac_try="$ac_link"
17737
case "(($ac_try" in
17738
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17739
*) ac_try_echo=$ac_try;;
17741
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17742
(eval "$ac_link") 2>conftest.er1
17744
grep -v '^ *+' conftest.er1 >conftest.err
17746
cat conftest.err >&5
17747
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17748
(exit $ac_status); } && {
17749
test -z "$ac_c_werror_flag" ||
17750
test ! -s conftest.err
17751
} && test -s conftest$ac_exeext &&
17752
$as_test_x conftest$ac_exeext; then
17754
lt_aix_libpath_sed='
17755
/Import File Strings/,/^$/ {
17761
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17762
# Check for a 64-bit object if we didn't find anything.
17763
if test -z "$aix_libpath"; then
17764
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17767
echo "$as_me: failed program was:" >&5
17768
sed 's/^/| /' conftest.$ac_ext >&5
17773
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17774
conftest$ac_exeext conftest.$ac_ext
17775
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17777
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17778
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"
17780
if test "$host_cpu" = ia64; then
17781
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17782
allow_undefined_flag_GCJ="-z nodefs"
17783
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"
17785
# Determine the default libpath from the value encoded in an empty executable.
17786
cat >conftest.$ac_ext <<_ACEOF
17789
cat confdefs.h >>conftest.$ac_ext
17790
cat >>conftest.$ac_ext <<_ACEOF
17791
/* end confdefs.h. */
17801
rm -f conftest.$ac_objext conftest$ac_exeext
17802
if { (ac_try="$ac_link"
17803
case "(($ac_try" in
17804
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17805
*) ac_try_echo=$ac_try;;
17807
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17808
(eval "$ac_link") 2>conftest.er1
17810
grep -v '^ *+' conftest.er1 >conftest.err
17812
cat conftest.err >&5
17813
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17814
(exit $ac_status); } && {
17815
test -z "$ac_c_werror_flag" ||
17816
test ! -s conftest.err
17817
} && test -s conftest$ac_exeext &&
17818
$as_test_x conftest$ac_exeext; then
17820
lt_aix_libpath_sed='
17821
/Import File Strings/,/^$/ {
17827
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17828
# Check for a 64-bit object if we didn't find anything.
17829
if test -z "$aix_libpath"; then
17830
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17833
echo "$as_me: failed program was:" >&5
17834
sed 's/^/| /' conftest.$ac_ext >&5
17839
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17840
conftest$ac_exeext conftest.$ac_ext
17841
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17843
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17844
# Warning - without using the other run time loading flags,
17845
# -berok will link without error, but may produce a broken library.
17846
no_undefined_flag_GCJ=' ${wl}-bernotok'
17847
allow_undefined_flag_GCJ=' ${wl}-berok'
17848
# Exported symbols can be pulled into shared objects from archives
17849
whole_archive_flag_spec_GCJ='$convenience'
17850
archive_cmds_need_lc_GCJ=yes
17851
# This is similar to how AIX traditionally builds its shared libraries.
17852
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'
17858
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)'
17859
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17860
hardcode_minus_L_GCJ=yes
17861
# see comment about different semantics on the GNU ld section
17866
export_dynamic_flag_spec_GCJ=-rdynamic
17869
cygwin* | mingw* | pw32*)
17870
# When not using gcc, we currently assume that we are using
17871
# Microsoft Visual C++.
17872
# hardcode_libdir_flag_spec is actually meaningless, as there is
17873
# no search path for DLLs.
17874
hardcode_libdir_flag_spec_GCJ=' '
17875
allow_undefined_flag_GCJ=unsupported
17876
# Tell ltmain to make .lib files, not .a files.
17878
# Tell ltmain to make .dll files, not .so files.
17880
# FIXME: Setting linknames here is a bad hack.
17881
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17882
# The linker will automatically build a .lib file if we build a DLL.
17883
old_archive_From_new_cmds_GCJ='true'
17884
# FIXME: Should let the user specify the lib program.
17885
old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17886
fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17887
enable_shared_with_static_runtimes_GCJ=yes
17890
darwin* | rhapsody*)
17892
rhapsody* | darwin1.[012])
17893
allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17896
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17897
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17899
case ${MACOSX_DEPLOYMENT_TARGET} in
17901
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17904
allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17910
archive_cmds_need_lc_GCJ=no
17911
hardcode_direct_GCJ=no
17912
hardcode_automatic_GCJ=yes
17913
hardcode_shlibpath_var_GCJ=unsupported
17914
whole_archive_flag_spec_GCJ=''
17915
link_all_deplibs_GCJ=yes
17916
if test "$GCC" = yes ; then
17917
output_verbose_link_cmd='echo'
17918
archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17919
module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17920
archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
17921
module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
17923
case $cc_basename in
17925
output_verbose_link_cmd='echo'
17926
archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17927
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17928
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17929
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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17930
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}'
17940
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17941
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17942
hardcode_shlibpath_var_GCJ=no
17949
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17950
# support. Future versions do this automatically, but an explicit c++rt0.o
17951
# does not break anything, and helps significantly (at the cost of a little
17954
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17955
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17956
hardcode_direct_GCJ=yes
17957
hardcode_shlibpath_var_GCJ=no
17960
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
17962
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17963
hardcode_direct_GCJ=yes
17964
hardcode_minus_L_GCJ=yes
17965
hardcode_shlibpath_var_GCJ=no
17968
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17969
freebsd* | dragonfly*)
17970
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17971
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17972
hardcode_direct_GCJ=yes
17973
hardcode_shlibpath_var_GCJ=no
17977
if test "$GCC" = yes; then
17978
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'
17980
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'
17982
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17983
hardcode_libdir_separator_GCJ=:
17984
hardcode_direct_GCJ=yes
17986
# hardcode_minus_L: Not really in the search PATH,
17987
# but as the default location of the library.
17988
hardcode_minus_L_GCJ=yes
17989
export_dynamic_flag_spec_GCJ='${wl}-E'
17993
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17994
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17996
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17998
if test "$with_gnu_ld" = no; then
17999
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18000
hardcode_libdir_separator_GCJ=:
18002
hardcode_direct_GCJ=yes
18003
export_dynamic_flag_spec_GCJ='${wl}-E'
18005
# hardcode_minus_L: Not really in the search PATH,
18006
# but as the default location of the library.
18007
hardcode_minus_L_GCJ=yes
18012
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18015
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18018
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18021
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18027
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18030
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18033
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18037
if test "$with_gnu_ld" = no; then
18038
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18039
hardcode_libdir_separator_GCJ=:
18043
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18044
hardcode_direct_GCJ=no
18045
hardcode_shlibpath_var_GCJ=no
18048
hardcode_direct_GCJ=yes
18049
export_dynamic_flag_spec_GCJ='${wl}-E'
18051
# hardcode_minus_L: Not really in the search PATH,
18052
# but as the default location of the library.
18053
hardcode_minus_L_GCJ=yes
18059
irix5* | irix6* | nonstopux*)
18060
if test "$GCC" = yes; then
18061
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'
18063
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'
18064
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18066
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18067
hardcode_libdir_separator_GCJ=:
18068
link_all_deplibs_GCJ=yes
18071
netbsd* | netbsdelf*-gnu)
18072
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18073
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18075
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18077
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18078
hardcode_direct_GCJ=yes
18079
hardcode_shlibpath_var_GCJ=no
18083
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18084
hardcode_direct_GCJ=yes
18085
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18086
hardcode_libdir_separator_GCJ=:
18087
hardcode_shlibpath_var_GCJ=no
18091
if test -f /usr/libexec/ld.so; then
18092
hardcode_direct_GCJ=yes
18093
hardcode_shlibpath_var_GCJ=no
18094
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18095
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18096
archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18097
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18098
export_dynamic_flag_spec_GCJ='${wl}-E'
18101
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18102
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18103
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18106
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18107
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18117
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18118
hardcode_minus_L_GCJ=yes
18119
allow_undefined_flag_GCJ=unsupported
18120
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'
18121
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18125
if test "$GCC" = yes; then
18126
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18127
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'
18129
allow_undefined_flag_GCJ=' -expect_unresolved \*'
18130
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'
18132
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18133
hardcode_libdir_separator_GCJ=:
18136
osf4* | osf5*) # as osf3* with the addition of -msym flag
18137
if test "$GCC" = yes; then
18138
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18139
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'
18140
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18142
allow_undefined_flag_GCJ=' -expect_unresolved \*'
18143
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'
18144
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~
18145
$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'
18147
# Both c and cxx compiler support -rpath directly
18148
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18150
hardcode_libdir_separator_GCJ=:
18154
no_undefined_flag_GCJ=' -z text'
18155
if test "$GCC" = yes; then
18157
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18158
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18159
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18162
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18163
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18164
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18166
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18167
hardcode_shlibpath_var_GCJ=no
18169
solaris2.[0-5] | solaris2.[0-5].*) ;;
18171
# The compiler driver will combine and reorder linker options,
18172
# but understands `-z linker_flag'. GCC discards it without `$wl',
18173
# but is careful enough not to reorder.
18174
# Supported since Solaris 2.6 (maybe 2.5.1?)
18175
if test "$GCC" = yes; then
18176
whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18178
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18182
link_all_deplibs_GCJ=yes
18186
if test "x$host_vendor" = xsequent; then
18187
# Use $CC to link under sequent, because it throws in some extra .o
18188
# files that make .init and .fini sections work.
18189
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18191
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18193
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18194
hardcode_direct_GCJ=yes
18195
hardcode_minus_L_GCJ=yes
18196
hardcode_shlibpath_var_GCJ=no
18200
case $host_vendor in
18202
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18203
hardcode_direct_GCJ=yes # is this really true???
18206
## LD is ld it makes a PLAMLIB
18207
## CC just makes a GrossModule.
18208
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18209
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18210
hardcode_direct_GCJ=no
18213
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18214
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18217
runpath_var='LD_RUN_PATH'
18218
hardcode_shlibpath_var_GCJ=no
18222
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18223
hardcode_shlibpath_var_GCJ=no
18224
export_dynamic_flag_spec_GCJ='-Bexport'
18228
if test -d /usr/nec; then
18229
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18230
hardcode_shlibpath_var_GCJ=no
18231
runpath_var=LD_RUN_PATH
18232
hardcode_runpath_var=yes
18237
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18238
no_undefined_flag_GCJ='${wl}-z,text'
18239
archive_cmds_need_lc_GCJ=no
18240
hardcode_shlibpath_var_GCJ=no
18241
runpath_var='LD_RUN_PATH'
18243
if test "$GCC" = yes; then
18244
archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18245
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18247
archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18248
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18252
sysv5* | sco3.2v5* | sco5v6*)
18253
# Note: We can NOT use -z defs as we might desire, because we do not
18254
# link with -lc, and that would cause any symbols used from libc to
18255
# always be unresolved, which means just about no library would
18256
# ever link correctly. If we're not using GNU ld we use -z text
18257
# though, which does catch some bad symbols but isn't as heavy-handed
18259
no_undefined_flag_GCJ='${wl}-z,text'
18260
allow_undefined_flag_GCJ='${wl}-z,nodefs'
18261
archive_cmds_need_lc_GCJ=no
18262
hardcode_shlibpath_var_GCJ=no
18263
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18264
hardcode_libdir_separator_GCJ=':'
18265
link_all_deplibs_GCJ=yes
18266
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18267
runpath_var='LD_RUN_PATH'
18269
if test "$GCC" = yes; then
18270
archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18271
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18273
archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18274
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18279
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18280
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18281
hardcode_shlibpath_var_GCJ=no
18290
{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18291
echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18292
test "$ld_shlibs_GCJ" = no && can_build_shared=no
18295
# Do we need to explicitly link libc?
18297
case "x$archive_cmds_need_lc_GCJ" in
18299
# Assume -lc should be added
18300
archive_cmds_need_lc_GCJ=yes
18302
if test "$enable_shared" = yes && test "$GCC" = yes; then
18303
case $archive_cmds_GCJ in
18305
# FIXME: we may have to deal with multi-command sequences.
18308
# Test whether the compiler implicitly links with -lc since on some
18309
# systems, -lgcc has to come before -lc. If gcc already passes -lc
18310
# to ld, don't add -lc before -lgcc.
18311
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18312
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18314
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18316
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18317
(eval $ac_compile) 2>&5
18319
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18320
(exit $ac_status); } 2>conftest.err; then
18323
libobjs=conftest.$ac_objext
18325
wl=$lt_prog_compiler_wl_GCJ
18326
pic_flag=$lt_prog_compiler_pic_GCJ
18332
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18333
allow_undefined_flag_GCJ=
18334
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18335
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18337
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18338
(exit $ac_status); }
18340
archive_cmds_need_lc_GCJ=no
18342
archive_cmds_need_lc_GCJ=yes
18344
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18346
cat conftest.err 1>&5
18349
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18350
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18357
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18358
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18359
library_names_spec=
18360
libname_spec='lib$name'
18364
postuninstall_cmds=
18368
shlibpath_overrides_runpath=unknown
18370
dynamic_linker="$host_os ld.so"
18371
sys_lib_dlsearch_path_spec="/lib /usr/lib"
18373
need_lib_prefix=unknown
18374
hardcode_into_libs=no
18376
# when you set need_version to no, make sure it does not cause -set_version
18377
# flags to be left without arguments
18378
need_version=unknown
18383
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18384
shlibpath_var=LIBPATH
18386
# AIX 3 has no versioning support, so we append a major version to the name.
18387
soname_spec='${libname}${release}${shared_ext}$major'
18394
hardcode_into_libs=yes
18395
if test "$host_cpu" = ia64; then
18396
# AIX 5 supports IA64
18397
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18398
shlibpath_var=LD_LIBRARY_PATH
18400
# With GCC up to 2.95.x, collect2 would create an import file
18401
# for dependence libraries. The import file would start with
18402
# the line `#! .'. This would cause the generated library to
18403
# depend on `.', always an invalid library. This was fixed in
18404
# development snapshots of GCC prior to 3.0.
18406
aix4 | aix4.[01] | aix4.[01].*)
18407
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18409
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18412
can_build_shared=no
18416
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18417
# soname into executable. Probably we can add versioning support to
18418
# collect2, so additional links can be useful in future.
18419
if test "$aix_use_runtimelinking" = yes; then
18420
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
18421
# instead of lib<name>.a to let people know that these are not
18422
# typical AIX shared libraries.
18423
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18425
# We preserve .a as extension for shared libraries through AIX4.2
18426
# and later when we are not doing run time linking.
18427
library_names_spec='${libname}${release}.a $libname.a'
18428
soname_spec='${libname}${release}${shared_ext}$major'
18430
shlibpath_var=LIBPATH
18435
library_names_spec='$libname.ixlibrary $libname.a'
18436
# Create ${libname}_ixlibrary.a entries in /sys/libs.
18437
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'
18441
library_names_spec='${libname}${shared_ext}'
18442
dynamic_linker="$host_os ld.so"
18443
shlibpath_var=LIBRARY_PATH
18449
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18450
soname_spec='${libname}${release}${shared_ext}$major'
18451
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18452
shlibpath_var=LD_LIBRARY_PATH
18453
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18454
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18455
# the default ld.so.conf also contains /usr/contrib/lib and
18456
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18457
# libtool to hard-code these into programs
18460
cygwin* | mingw* | pw32*)
18461
version_type=windows
18466
case $GCC,$host_os in
18467
yes,cygwin* | yes,mingw* | yes,pw32*)
18468
library_names_spec='$libname.dll.a'
18469
# DLL is installed to $(libdir)/../bin by postinstall_cmds
18470
postinstall_cmds='base_file=`basename \${file}`~
18471
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18472
dldir=$destdir/`dirname \$dlpath`~
18473
test -d \$dldir || mkdir -p \$dldir~
18474
$install_prog $dir/$dlname \$dldir/$dlname~
18475
chmod a+x \$dldir/$dlname'
18476
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18477
dlpath=$dir/\$dldll~
18479
shlibpath_overrides_runpath=yes
18483
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
18484
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18485
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18488
# MinGW DLLs use traditional 'lib' prefix
18489
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18490
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18491
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18492
# It is most probably a Windows format PATH printed by
18493
# mingw gcc, but we are running on Cygwin. Gcc prints its search
18494
# path with ; separators, and with drive letters. We can handle the
18495
# drive letters (cygwin fileutils understands them), so leave them,
18496
# especially as we might pass files found there to a mingw objdump,
18497
# which wouldn't understand a cygwinified path. Ahh.
18498
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18500
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18504
# pw32 DLLs use 'pw' prefix rather than 'lib'
18505
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18511
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18514
dynamic_linker='Win32 ld.exe'
18515
# FIXME: first we should search . and the directory the executable is in
18519
darwin* | rhapsody*)
18520
dynamic_linker="$host_os dyld"
18521
version_type=darwin
18524
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18525
soname_spec='${libname}${release}${major}$shared_ext'
18526
shlibpath_overrides_runpath=yes
18527
shlibpath_var=DYLD_LIBRARY_PATH
18528
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18530
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18537
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18538
soname_spec='${libname}${release}${shared_ext}$major'
18539
shlibpath_var=LD_LIBRARY_PATH
18546
freebsd* | dragonfly*)
18547
# DragonFly does not have aout. When/if they implement a new
18548
# versioning mechanism, adjust this.
18549
if test -x /usr/bin/objformat; then
18550
objformat=`/usr/bin/objformat`
18553
freebsd[123]*) objformat=aout ;;
18554
*) objformat=elf ;;
18557
version_type=freebsd-$objformat
18558
case $version_type in
18560
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18565
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18569
shlibpath_var=LD_LIBRARY_PATH
18572
shlibpath_overrides_runpath=yes
18574
freebsd3.[01]* | freebsdelf3.[01]*)
18575
shlibpath_overrides_runpath=yes
18576
hardcode_into_libs=yes
18578
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18579
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18580
shlibpath_overrides_runpath=no
18581
hardcode_into_libs=yes
18583
*) # from 4.6 on, and DragonFly
18584
shlibpath_overrides_runpath=yes
18585
hardcode_into_libs=yes
18594
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18595
soname_spec='${libname}${release}${shared_ext}$major'
18596
shlibpath_var=LD_LIBRARY_PATH
18597
hardcode_into_libs=yes
18600
hpux9* | hpux10* | hpux11*)
18601
# Give a soname corresponding to the major version so that dld.sl refuses to
18602
# link against other versions.
18609
hardcode_into_libs=yes
18610
dynamic_linker="$host_os dld.so"
18611
shlibpath_var=LD_LIBRARY_PATH
18612
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18613
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18614
soname_spec='${libname}${release}${shared_ext}$major'
18615
if test "X$HPUX_IA64_MODE" = X32; then
18616
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18618
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18620
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18624
hardcode_into_libs=yes
18625
dynamic_linker="$host_os dld.sl"
18626
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18627
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18628
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18629
soname_spec='${libname}${release}${shared_ext}$major'
18630
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18631
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18635
dynamic_linker="$host_os dld.sl"
18636
shlibpath_var=SHLIB_PATH
18637
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18638
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18639
soname_spec='${libname}${release}${shared_ext}$major'
18642
# HP-UX runs *really* slowly unless shared libraries are mode 555.
18643
postinstall_cmds='chmod 555 $lib'
18650
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18651
soname_spec='${libname}${release}${shared_ext}$major'
18652
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18653
shlibpath_var=LD_LIBRARY_PATH
18654
shlibpath_overrides_runpath=no
18655
hardcode_into_libs=yes
18658
irix5* | irix6* | nonstopux*)
18660
nonstopux*) version_type=nonstopux ;;
18662
if test "$lt_cv_prog_gnu_ld" = yes; then
18670
soname_spec='${libname}${release}${shared_ext}$major'
18671
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18673
irix5* | nonstopux*)
18674
libsuff= shlibsuff=
18677
case $LD in # libtool.m4 will add one of these switches to LD
18678
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18679
libsuff= shlibsuff= libmagic=32-bit;;
18680
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18681
libsuff=32 shlibsuff=N32 libmagic=N32;;
18682
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18683
libsuff=64 shlibsuff=64 libmagic=64-bit;;
18684
*) libsuff= shlibsuff= libmagic=never-match;;
18688
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18689
shlibpath_overrides_runpath=no
18690
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18691
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18692
hardcode_into_libs=yes
18695
# No shared lib support for Linux oldld, aout, or coff.
18696
linux*oldld* | linux*aout* | linux*coff*)
18700
# This must be Linux ELF.
18701
linux* | k*bsd*-gnu)
18705
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18706
soname_spec='${libname}${release}${shared_ext}$major'
18707
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18708
shlibpath_var=LD_LIBRARY_PATH
18709
shlibpath_overrides_runpath=no
18710
# This implies no fast_install, which is unacceptable.
18711
# Some rework will be needed to allow for fast_install
18712
# before this can be enabled.
18713
hardcode_into_libs=yes
18715
# Append ld.so.conf contents to the search path
18716
if test -f /etc/ld.so.conf; then
18717
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18718
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18721
# We used to test for /lib/ld.so.1 and disable shared libraries on
18722
# powerpc, because MkLinux only supported shared libraries with the
18723
# GNU dynamic linker. Since this was broken with cross compilers,
18724
# most powerpc-linux boxes support dynamic linking these days and
18725
# people can always --disable-shared, the test was removed, and we
18726
# assume the GNU/Linux dynamic linker is in use.
18727
dynamic_linker='GNU/Linux ld.so'
18734
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18735
soname_spec='${libname}${release}${shared_ext}$major'
18736
shlibpath_var=LD_LIBRARY_PATH
18737
shlibpath_overrides_runpath=no
18738
hardcode_into_libs=yes
18739
dynamic_linker='NetBSD ld.elf_so'
18746
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18747
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18748
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18749
dynamic_linker='NetBSD (a.out) ld.so'
18751
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18752
soname_spec='${libname}${release}${shared_ext}$major'
18753
dynamic_linker='NetBSD ld.elf_so'
18755
shlibpath_var=LD_LIBRARY_PATH
18756
shlibpath_overrides_runpath=yes
18757
hardcode_into_libs=yes
18762
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18763
shlibpath_var=LD_LIBRARY_PATH
18764
shlibpath_overrides_runpath=yes
18771
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18772
soname_spec='${libname}${release}${shared_ext}$major'
18773
shlibpath_var=LD_LIBRARY_PATH
18774
shlibpath_overrides_runpath=yes
18779
sys_lib_dlsearch_path_spec="/usr/lib"
18781
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18783
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18784
*) need_version=no ;;
18786
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18787
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18788
shlibpath_var=LD_LIBRARY_PATH
18789
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18791
openbsd2.[89] | openbsd2.[89].*)
18792
shlibpath_overrides_runpath=no
18795
shlibpath_overrides_runpath=yes
18799
shlibpath_overrides_runpath=yes
18804
libname_spec='$name'
18807
library_names_spec='$libname${shared_ext} $libname.a'
18808
dynamic_linker='OS/2 ld.exe'
18809
shlibpath_var=LIBPATH
18812
osf3* | osf4* | osf5*)
18816
soname_spec='${libname}${release}${shared_ext}$major'
18817
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18818
shlibpath_var=LD_LIBRARY_PATH
18819
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18820
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18831
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18832
soname_spec='${libname}${release}${shared_ext}$major'
18833
shlibpath_var=LD_LIBRARY_PATH
18834
shlibpath_overrides_runpath=yes
18835
hardcode_into_libs=yes
18836
# ldd complains unless libraries are executable
18837
postinstall_cmds='chmod +x $lib'
18842
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18843
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18844
shlibpath_var=LD_LIBRARY_PATH
18845
shlibpath_overrides_runpath=yes
18846
if test "$with_gnu_ld" = yes; then
18854
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18855
soname_spec='${libname}${release}${shared_ext}$major'
18856
shlibpath_var=LD_LIBRARY_PATH
18857
case $host_vendor in
18859
shlibpath_overrides_runpath=no
18861
export_dynamic_flag_spec='${wl}-Blargedynsym'
18862
runpath_var=LD_RUN_PATH
18870
shlibpath_overrides_runpath=no
18871
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18877
if test -d /usr/nec ;then
18879
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18880
soname_spec='$libname${shared_ext}.$major'
18881
shlibpath_var=LD_LIBRARY_PATH
18885
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18886
version_type=freebsd-elf
18889
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18890
soname_spec='${libname}${release}${shared_ext}$major'
18891
shlibpath_var=LD_LIBRARY_PATH
18892
hardcode_into_libs=yes
18893
if test "$with_gnu_ld" = yes; then
18894
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18895
shlibpath_overrides_runpath=no
18897
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18898
shlibpath_overrides_runpath=yes
18901
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18905
sys_lib_dlsearch_path_spec='/usr/lib'
18910
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18911
soname_spec='${libname}${release}${shared_ext}$major'
18912
shlibpath_var=LD_LIBRARY_PATH
18919
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18920
echo "${ECHO_T}$dynamic_linker" >&6; }
18921
test "$dynamic_linker" = no && can_build_shared=no
18923
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18924
echo $ECHO_N "(cached) $ECHO_C" >&6
18926
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18929
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18930
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18931
echo $ECHO_N "(cached) $ECHO_C" >&6
18933
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18936
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18938
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18939
if test "$GCC" = yes; then
18940
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18943
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18944
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18945
hardcode_action_GCJ=
18946
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18947
test -n "$runpath_var_GCJ" || \
18948
test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18950
# We can hardcode non-existant directories.
18951
if test "$hardcode_direct_GCJ" != no &&
18952
# If the only mechanism to avoid hardcoding is shlibpath_var, we
18953
# have to relink, otherwise we might link with an installed library
18954
# when we should be linking with a yet-to-be-installed one
18955
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18956
test "$hardcode_minus_L_GCJ" != no; then
18957
# Linking always hardcodes the temporary library directory.
18958
hardcode_action_GCJ=relink
18960
# We can link without hardcoding, and we can hardcode nonexisting dirs.
18961
hardcode_action_GCJ=immediate
18964
# We cannot hardcode anything, or else we can only hardcode existing
18966
hardcode_action_GCJ=unsupported
18968
{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18969
echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18971
if test "$hardcode_action_GCJ" = relink; then
18972
# Fast installation is not supported
18973
enable_fast_install=no
18974
elif test "$shlibpath_overrides_runpath" = yes ||
18975
test "$enable_shared" = no; then
18976
# Fast installation is not necessary
18977
enable_fast_install=needless
18981
# The else clause should only fire when bootstrapping the
18982
# libtool distribution, otherwise you forgot to ship ltmain.sh
18983
# with your package, and you will get complaints that there are
18984
# no rules to generate ltmain.sh.
18985
if test -f "$ltmain"; then
18986
# See if we are running on zsh, and set the options which allow our commands through
18987
# without removal of \ escapes.
18988
if test -n "${ZSH_VERSION+set}" ; then
18989
setopt NO_GLOB_SUBST
18991
# Now quote all the things that may contain metacharacters while being
18992
# careful not to overquote the AC_SUBSTed values. We take copies of the
18993
# variables and quote the copies for generation of the libtool script.
18994
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18996
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18997
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18998
deplibs_check_method reload_flag reload_cmds need_locks \
18999
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19000
lt_cv_sys_global_symbol_to_c_name_address \
19001
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19002
old_postinstall_cmds old_postuninstall_cmds \
19006
lt_prog_compiler_wl_GCJ \
19007
lt_prog_compiler_pic_GCJ \
19008
lt_prog_compiler_static_GCJ \
19009
lt_prog_compiler_no_builtin_flag_GCJ \
19010
export_dynamic_flag_spec_GCJ \
19011
thread_safe_flag_spec_GCJ \
19012
whole_archive_flag_spec_GCJ \
19013
enable_shared_with_static_runtimes_GCJ \
19014
old_archive_cmds_GCJ \
19015
old_archive_from_new_cmds_GCJ \
19016
predep_objects_GCJ \
19017
postdep_objects_GCJ \
19020
compiler_lib_search_path_GCJ \
19021
compiler_lib_search_dirs_GCJ \
19023
archive_expsym_cmds_GCJ \
19024
postinstall_cmds_GCJ \
19025
postuninstall_cmds_GCJ \
19026
old_archive_from_expsyms_cmds_GCJ \
19027
allow_undefined_flag_GCJ \
19028
no_undefined_flag_GCJ \
19029
export_symbols_cmds_GCJ \
19030
hardcode_libdir_flag_spec_GCJ \
19031
hardcode_libdir_flag_spec_ld_GCJ \
19032
hardcode_libdir_separator_GCJ \
19033
hardcode_automatic_GCJ \
19035
module_expsym_cmds_GCJ \
19036
lt_cv_prog_compiler_c_o_GCJ \
19037
fix_srcfile_path_GCJ \
19038
exclude_expsyms_GCJ \
19039
include_expsyms_GCJ; do
19042
old_archive_cmds_GCJ | \
19043
old_archive_from_new_cmds_GCJ | \
19044
archive_cmds_GCJ | \
19045
archive_expsym_cmds_GCJ | \
19046
module_cmds_GCJ | \
19047
module_expsym_cmds_GCJ | \
19048
old_archive_from_expsyms_cmds_GCJ | \
19049
export_symbols_cmds_GCJ | \
19050
extract_expsyms_cmds | reload_cmds | finish_cmds | \
19051
postinstall_cmds | postuninstall_cmds | \
19052
old_postinstall_cmds | old_postuninstall_cmds | \
19053
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19054
# Double-quote double-evaled strings.
19055
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19058
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19064
*'\$0 --fallback-echo"')
19065
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19071
cat <<__EOF__ >> "$cfgfile"
19072
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19074
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19076
# Shell to use when invoking shell scripts.
19079
# Whether or not to build shared libraries.
19080
build_libtool_libs=$enable_shared
19082
# Whether or not to build static libraries.
19083
build_old_libs=$enable_static
19085
# Whether or not to add -lc for building shared libraries.
19086
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19088
# Whether or not to disallow shared libs when runtime libs are static
19089
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19091
# Whether or not to optimize for fast installation.
19092
fast_install=$enable_fast_install
19095
host_alias=$host_alias
19099
# The build system.
19100
build_alias=$build_alias
19104
# An echo program that does not interpret backslashes.
19109
AR_FLAGS=$lt_AR_FLAGS
19114
# LTCC compiler flags.
19115
LTCFLAGS=$lt_LTCFLAGS
19117
# A language-specific compiler.
19118
CC=$lt_compiler_GCJ
19120
# Is the compiler the GNU C compiler?
19126
# The linker used to build libraries.
19129
# Whether we need hard or soft links.
19132
# A BSD-compatible nm program.
19135
# A symbol stripping program
19138
# Used to examine libraries when file_magic_cmd begins "file"
19139
MAGIC_CMD=$MAGIC_CMD
19141
# Used on cygwin: DLL creation program.
19144
# Used on cygwin: object dumper.
19147
# Used on cygwin: assembler.
19150
# The name of the directory that contains temporary libtool files.
19153
# How to create reloadable object files.
19154
reload_flag=$lt_reload_flag
19155
reload_cmds=$lt_reload_cmds
19157
# How to pass a linker flag through the compiler.
19158
wl=$lt_lt_prog_compiler_wl_GCJ
19160
# Object file suffix (normally "o").
19161
objext="$ac_objext"
19163
# Old archive suffix (normally "a").
19166
# Shared library suffix (normally ".so").
19167
shrext_cmds='$shrext_cmds'
19169
# Executable file suffix (normally "").
19172
# Additional compiler flags for building library objects.
19173
pic_flag=$lt_lt_prog_compiler_pic_GCJ
19176
# What is the maximum length of a command?
19177
max_cmd_len=$lt_cv_sys_max_cmd_len
19179
# Does compiler simultaneously support -c and -o options?
19180
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19182
# Must we lock files when doing compilation?
19183
need_locks=$lt_need_locks
19185
# Do we need the lib prefix for modules?
19186
need_lib_prefix=$need_lib_prefix
19188
# Do we need a version for libraries?
19189
need_version=$need_version
19191
# Whether dlopen is supported.
19192
dlopen_support=$enable_dlopen
19194
# Whether dlopen of programs is supported.
19195
dlopen_self=$enable_dlopen_self
19197
# Whether dlopen of statically linked programs is supported.
19198
dlopen_self_static=$enable_dlopen_self_static
19200
# Compiler flag to prevent dynamic linking.
19201
link_static_flag=$lt_lt_prog_compiler_static_GCJ
19203
# Compiler flag to turn off builtin functions.
19204
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19206
# Compiler flag to allow reflexive dlopens.
19207
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19209
# Compiler flag to generate shared objects directly from archives.
19210
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19212
# Compiler flag to generate thread-safe objects.
19213
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19215
# Library versioning type.
19216
version_type=$version_type
19218
# Format of library name prefix.
19219
libname_spec=$lt_libname_spec
19221
# List of archive names. First name is the real one, the rest are links.
19222
# The last name is the one that the linker finds with -lNAME.
19223
library_names_spec=$lt_library_names_spec
19225
# The coded name of the library, if different from the real name.
19226
soname_spec=$lt_soname_spec
19228
# Commands used to build and install an old-style archive.
19230
old_archive_cmds=$lt_old_archive_cmds_GCJ
19231
old_postinstall_cmds=$lt_old_postinstall_cmds
19232
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19234
# Create an old-style archive from a shared archive.
19235
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19237
# Create a temporary old-style archive to link instead of a shared archive.
19238
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19240
# Commands used to build and install a shared archive.
19241
archive_cmds=$lt_archive_cmds_GCJ
19242
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19243
postinstall_cmds=$lt_postinstall_cmds
19244
postuninstall_cmds=$lt_postuninstall_cmds
19246
# Commands used to build a loadable module (assumed same as above if empty)
19247
module_cmds=$lt_module_cmds_GCJ
19248
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19250
# Commands to strip libraries.
19251
old_striplib=$lt_old_striplib
19252
striplib=$lt_striplib
19254
# Dependencies to place before the objects being linked to create a
19256
predep_objects=$lt_predep_objects_GCJ
19258
# Dependencies to place after the objects being linked to create a
19260
postdep_objects=$lt_postdep_objects_GCJ
19262
# Dependencies to place before the objects being linked to create a
19264
predeps=$lt_predeps_GCJ
19266
# Dependencies to place after the objects being linked to create a
19268
postdeps=$lt_postdeps_GCJ
19270
# The directories searched by this compiler when creating a shared
19272
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19274
# The library search path used internally by the compiler when linking
19275
# a shared library.
19276
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19278
# Method to check whether dependent libraries are shared objects.
19279
deplibs_check_method=$lt_deplibs_check_method
19281
# Command to use when deplibs_check_method == file_magic.
19282
file_magic_cmd=$lt_file_magic_cmd
19284
# Flag that allows shared libraries with undefined symbols to be built.
19285
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19287
# Flag that forces no undefined symbols.
19288
no_undefined_flag=$lt_no_undefined_flag_GCJ
19290
# Commands used to finish a libtool library installation in a directory.
19291
finish_cmds=$lt_finish_cmds
19293
# Same as above, but a single script fragment to be evaled but not shown.
19294
finish_eval=$lt_finish_eval
19296
# Take the output of nm and produce a listing of raw symbols and C names.
19297
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19299
# Transform the output of nm in a proper C declaration
19300
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19302
# Transform the output of nm in a C name address pair
19303
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19305
# This is the shared library runtime path variable.
19306
runpath_var=$runpath_var
19308
# This is the shared library path variable.
19309
shlibpath_var=$shlibpath_var
19311
# Is shlibpath searched before the hard-coded library search path?
19312
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19314
# How to hardcode a shared library path into an executable.
19315
hardcode_action=$hardcode_action_GCJ
19317
# Whether we should hardcode library paths into libraries.
19318
hardcode_into_libs=$hardcode_into_libs
19320
# Flag to hardcode \$libdir into a binary during linking.
19321
# This must work even if \$libdir does not exist.
19322
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19324
# If ld is used when linking, flag to hardcode \$libdir into
19325
# a binary during linking. This must work even if \$libdir does
19327
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19329
# Whether we need a single -rpath flag with a separated argument.
19330
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19332
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19333
# resulting binary.
19334
hardcode_direct=$hardcode_direct_GCJ
19336
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19337
# resulting binary.
19338
hardcode_minus_L=$hardcode_minus_L_GCJ
19340
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19341
# the resulting binary.
19342
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19344
# Set to yes if building a shared library automatically hardcodes DIR into the library
19345
# and all subsequent libraries and executables linked against it.
19346
hardcode_automatic=$hardcode_automatic_GCJ
19348
# Variables whose values should be saved in libtool wrapper scripts and
19349
# restored at relink time.
19350
variables_saved_for_relink="$variables_saved_for_relink"
19352
# Whether libtool must link a program against all its dependency libraries.
19353
link_all_deplibs=$link_all_deplibs_GCJ
19355
# Compile-time system search path for libraries
19356
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19358
# Run-time system search path for libraries
19359
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19361
# Fix the shell variable \$srcfile for the compiler.
19362
fix_srcfile_path=$lt_fix_srcfile_path
19364
# Set to yes if exported symbols are required.
19365
always_export_symbols=$always_export_symbols_GCJ
19367
# The commands to list exported symbols.
19368
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19370
# The commands to extract the exported symbol list from a shared archive.
19371
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19373
# Symbols that should not be listed in the preloaded symbols.
19374
exclude_expsyms=$lt_exclude_expsyms_GCJ
19376
# Symbols that must always be exported.
19377
include_expsyms=$lt_include_expsyms_GCJ
19379
# ### END LIBTOOL TAG CONFIG: $tagname
19385
# If there is no Makefile yet, we rely on a make rule to execute
19386
# `config.status --recheck' to rerun these tests and create the
19387
# libtool script then.
19388
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19389
if test -f "$ltmain_in"; then
19390
test -f Makefile && make "$ltmain"
19396
ac_cpp='$CPP $CPPFLAGS'
19397
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19398
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19399
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19411
# Source file extension for RC test sources.
19414
# Object file extension for compiled RC test sources.
19418
# Code to be used in simple compile tests
19419
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19421
# Code to be used in simple link tests
19422
lt_simple_link_test_code="$lt_simple_compile_test_code"
19424
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19426
# If no C compiler was specified, use CC.
19429
# If no C compiler flags were specified, use CFLAGS.
19430
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19432
# Allow CC to be a program name with arguments.
19436
# save warnings/boilerplate of simple test code
19437
ac_outfile=conftest.$ac_objext
19438
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19439
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19440
_lt_compiler_boilerplate=`cat conftest.err`
19443
ac_outfile=conftest.$ac_objext
19444
echo "$lt_simple_link_test_code" >conftest.$ac_ext
19445
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19446
_lt_linker_boilerplate=`cat conftest.err`
19450
# Allow CC to be a program name with arguments.
19455
for cc_temp in $compiler""; do
19457
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19458
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19463
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19465
lt_cv_prog_compiler_c_o_RC=yes
19467
# The else clause should only fire when bootstrapping the
19468
# libtool distribution, otherwise you forgot to ship ltmain.sh
19469
# with your package, and you will get complaints that there are
19470
# no rules to generate ltmain.sh.
19471
if test -f "$ltmain"; then
19472
# See if we are running on zsh, and set the options which allow our commands through
19473
# without removal of \ escapes.
19474
if test -n "${ZSH_VERSION+set}" ; then
19475
setopt NO_GLOB_SUBST
19477
# Now quote all the things that may contain metacharacters while being
19478
# careful not to overquote the AC_SUBSTed values. We take copies of the
19479
# variables and quote the copies for generation of the libtool script.
19480
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19482
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19483
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19484
deplibs_check_method reload_flag reload_cmds need_locks \
19485
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19486
lt_cv_sys_global_symbol_to_c_name_address \
19487
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19488
old_postinstall_cmds old_postuninstall_cmds \
19492
lt_prog_compiler_wl_RC \
19493
lt_prog_compiler_pic_RC \
19494
lt_prog_compiler_static_RC \
19495
lt_prog_compiler_no_builtin_flag_RC \
19496
export_dynamic_flag_spec_RC \
19497
thread_safe_flag_spec_RC \
19498
whole_archive_flag_spec_RC \
19499
enable_shared_with_static_runtimes_RC \
19500
old_archive_cmds_RC \
19501
old_archive_from_new_cmds_RC \
19502
predep_objects_RC \
19503
postdep_objects_RC \
19506
compiler_lib_search_path_RC \
19507
compiler_lib_search_dirs_RC \
19509
archive_expsym_cmds_RC \
19510
postinstall_cmds_RC \
19511
postuninstall_cmds_RC \
19512
old_archive_from_expsyms_cmds_RC \
19513
allow_undefined_flag_RC \
19514
no_undefined_flag_RC \
19515
export_symbols_cmds_RC \
19516
hardcode_libdir_flag_spec_RC \
19517
hardcode_libdir_flag_spec_ld_RC \
19518
hardcode_libdir_separator_RC \
19519
hardcode_automatic_RC \
19521
module_expsym_cmds_RC \
19522
lt_cv_prog_compiler_c_o_RC \
19523
fix_srcfile_path_RC \
19524
exclude_expsyms_RC \
19525
include_expsyms_RC; do
19528
old_archive_cmds_RC | \
19529
old_archive_from_new_cmds_RC | \
19530
archive_cmds_RC | \
19531
archive_expsym_cmds_RC | \
19533
module_expsym_cmds_RC | \
19534
old_archive_from_expsyms_cmds_RC | \
19535
export_symbols_cmds_RC | \
19536
extract_expsyms_cmds | reload_cmds | finish_cmds | \
19537
postinstall_cmds | postuninstall_cmds | \
19538
old_postinstall_cmds | old_postuninstall_cmds | \
19539
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19540
# Double-quote double-evaled strings.
19541
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19544
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19550
*'\$0 --fallback-echo"')
19551
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19557
cat <<__EOF__ >> "$cfgfile"
19558
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19560
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19562
# Shell to use when invoking shell scripts.
19565
# Whether or not to build shared libraries.
19566
build_libtool_libs=$enable_shared
19568
# Whether or not to build static libraries.
19569
build_old_libs=$enable_static
19571
# Whether or not to add -lc for building shared libraries.
19572
build_libtool_need_lc=$archive_cmds_need_lc_RC
19574
# Whether or not to disallow shared libs when runtime libs are static
19575
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19577
# Whether or not to optimize for fast installation.
19578
fast_install=$enable_fast_install
19581
host_alias=$host_alias
19585
# The build system.
19586
build_alias=$build_alias
19590
# An echo program that does not interpret backslashes.
19595
AR_FLAGS=$lt_AR_FLAGS
19600
# LTCC compiler flags.
19601
LTCFLAGS=$lt_LTCFLAGS
19603
# A language-specific compiler.
19606
# Is the compiler the GNU C compiler?
19612
# The linker used to build libraries.
19615
# Whether we need hard or soft links.
19618
# A BSD-compatible nm program.
19621
# A symbol stripping program
19624
# Used to examine libraries when file_magic_cmd begins "file"
19625
MAGIC_CMD=$MAGIC_CMD
19627
# Used on cygwin: DLL creation program.
19630
# Used on cygwin: object dumper.
19633
# Used on cygwin: assembler.
19636
# The name of the directory that contains temporary libtool files.
19639
# How to create reloadable object files.
19640
reload_flag=$lt_reload_flag
19641
reload_cmds=$lt_reload_cmds
19643
# How to pass a linker flag through the compiler.
19644
wl=$lt_lt_prog_compiler_wl_RC
19646
# Object file suffix (normally "o").
19647
objext="$ac_objext"
19649
# Old archive suffix (normally "a").
19652
# Shared library suffix (normally ".so").
19653
shrext_cmds='$shrext_cmds'
19655
# Executable file suffix (normally "").
19658
# Additional compiler flags for building library objects.
19659
pic_flag=$lt_lt_prog_compiler_pic_RC
19662
# What is the maximum length of a command?
19663
max_cmd_len=$lt_cv_sys_max_cmd_len
19665
# Does compiler simultaneously support -c and -o options?
19666
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19668
# Must we lock files when doing compilation?
19669
need_locks=$lt_need_locks
19671
# Do we need the lib prefix for modules?
19672
need_lib_prefix=$need_lib_prefix
19674
# Do we need a version for libraries?
19675
need_version=$need_version
19677
# Whether dlopen is supported.
19678
dlopen_support=$enable_dlopen
19680
# Whether dlopen of programs is supported.
19681
dlopen_self=$enable_dlopen_self
19683
# Whether dlopen of statically linked programs is supported.
19684
dlopen_self_static=$enable_dlopen_self_static
19686
# Compiler flag to prevent dynamic linking.
19687
link_static_flag=$lt_lt_prog_compiler_static_RC
19689
# Compiler flag to turn off builtin functions.
19690
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19692
# Compiler flag to allow reflexive dlopens.
19693
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19695
# Compiler flag to generate shared objects directly from archives.
19696
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19698
# Compiler flag to generate thread-safe objects.
19699
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19701
# Library versioning type.
19702
version_type=$version_type
19704
# Format of library name prefix.
19705
libname_spec=$lt_libname_spec
19707
# List of archive names. First name is the real one, the rest are links.
19708
# The last name is the one that the linker finds with -lNAME.
19709
library_names_spec=$lt_library_names_spec
19711
# The coded name of the library, if different from the real name.
19712
soname_spec=$lt_soname_spec
19714
# Commands used to build and install an old-style archive.
19716
old_archive_cmds=$lt_old_archive_cmds_RC
19717
old_postinstall_cmds=$lt_old_postinstall_cmds
19718
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19720
# Create an old-style archive from a shared archive.
19721
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19723
# Create a temporary old-style archive to link instead of a shared archive.
19724
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19726
# Commands used to build and install a shared archive.
19727
archive_cmds=$lt_archive_cmds_RC
19728
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19729
postinstall_cmds=$lt_postinstall_cmds
19730
postuninstall_cmds=$lt_postuninstall_cmds
19732
# Commands used to build a loadable module (assumed same as above if empty)
19733
module_cmds=$lt_module_cmds_RC
19734
module_expsym_cmds=$lt_module_expsym_cmds_RC
19736
# Commands to strip libraries.
19737
old_striplib=$lt_old_striplib
19738
striplib=$lt_striplib
19740
# Dependencies to place before the objects being linked to create a
19742
predep_objects=$lt_predep_objects_RC
19744
# Dependencies to place after the objects being linked to create a
19746
postdep_objects=$lt_postdep_objects_RC
19748
# Dependencies to place before the objects being linked to create a
19750
predeps=$lt_predeps_RC
19752
# Dependencies to place after the objects being linked to create a
19754
postdeps=$lt_postdeps_RC
19756
# The directories searched by this compiler when creating a shared
19758
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19760
# The library search path used internally by the compiler when linking
19761
# a shared library.
19762
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19764
# Method to check whether dependent libraries are shared objects.
19765
deplibs_check_method=$lt_deplibs_check_method
19767
# Command to use when deplibs_check_method == file_magic.
19768
file_magic_cmd=$lt_file_magic_cmd
19770
# Flag that allows shared libraries with undefined symbols to be built.
19771
allow_undefined_flag=$lt_allow_undefined_flag_RC
19773
# Flag that forces no undefined symbols.
19774
no_undefined_flag=$lt_no_undefined_flag_RC
19776
# Commands used to finish a libtool library installation in a directory.
19777
finish_cmds=$lt_finish_cmds
19779
# Same as above, but a single script fragment to be evaled but not shown.
19780
finish_eval=$lt_finish_eval
19782
# Take the output of nm and produce a listing of raw symbols and C names.
19783
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19785
# Transform the output of nm in a proper C declaration
19786
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19788
# Transform the output of nm in a C name address pair
19789
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19791
# This is the shared library runtime path variable.
19792
runpath_var=$runpath_var
19794
# This is the shared library path variable.
19795
shlibpath_var=$shlibpath_var
19797
# Is shlibpath searched before the hard-coded library search path?
19798
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19800
# How to hardcode a shared library path into an executable.
19801
hardcode_action=$hardcode_action_RC
19803
# Whether we should hardcode library paths into libraries.
19804
hardcode_into_libs=$hardcode_into_libs
19806
# Flag to hardcode \$libdir into a binary during linking.
19807
# This must work even if \$libdir does not exist.
19808
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19810
# If ld is used when linking, flag to hardcode \$libdir into
19811
# a binary during linking. This must work even if \$libdir does
19813
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19815
# Whether we need a single -rpath flag with a separated argument.
19816
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19818
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19819
# resulting binary.
19820
hardcode_direct=$hardcode_direct_RC
19822
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19823
# resulting binary.
19824
hardcode_minus_L=$hardcode_minus_L_RC
19826
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19827
# the resulting binary.
19828
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19830
# Set to yes if building a shared library automatically hardcodes DIR into the library
19831
# and all subsequent libraries and executables linked against it.
19832
hardcode_automatic=$hardcode_automatic_RC
19834
# Variables whose values should be saved in libtool wrapper scripts and
19835
# restored at relink time.
19836
variables_saved_for_relink="$variables_saved_for_relink"
19838
# Whether libtool must link a program against all its dependency libraries.
19839
link_all_deplibs=$link_all_deplibs_RC
19841
# Compile-time system search path for libraries
19842
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19844
# Run-time system search path for libraries
19845
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19847
# Fix the shell variable \$srcfile for the compiler.
19848
fix_srcfile_path=$lt_fix_srcfile_path
19850
# Set to yes if exported symbols are required.
19851
always_export_symbols=$always_export_symbols_RC
19853
# The commands to list exported symbols.
19854
export_symbols_cmds=$lt_export_symbols_cmds_RC
19856
# The commands to extract the exported symbol list from a shared archive.
19857
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19859
# Symbols that should not be listed in the preloaded symbols.
19860
exclude_expsyms=$lt_exclude_expsyms_RC
19862
# Symbols that must always be exported.
19863
include_expsyms=$lt_include_expsyms_RC
19865
# ### END LIBTOOL TAG CONFIG: $tagname
19871
# If there is no Makefile yet, we rely on a make rule to execute
19872
# `config.status --recheck' to rerun these tests and create the
19873
# libtool script then.
19874
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19875
if test -f "$ltmain_in"; then
19876
test -f Makefile && make "$ltmain"
19882
ac_cpp='$CPP $CPPFLAGS'
19883
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19884
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19885
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19892
{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19893
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19894
{ (exit 1); exit 1; }; }
19898
# Append the new tag name to the list of available tags.
19899
if test -n "$tagname" ; then
19900
available_tags="$available_tags $tagname"
19906
# Now substitute the updated list of available tags.
19907
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19908
mv "${ofile}T" "$ofile"
19912
{ { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19913
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19914
{ (exit 1); exit 1; }; }
19920
# This can be used to rebuild libtool when needed
19921
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19923
# Always use our own libtool.
19924
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19926
# Prevent multiple expansion
19949
case "${target_os}" in
19952
cat >>confdefs.h <<\_ACEOF
19958
# Checks for programs.
19960
ac_cpp='$CXXCPP $CPPFLAGS'
19961
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19962
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19963
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19964
if test -z "$CXX"; then
19965
if test -n "$CCC"; then
19968
if test -n "$ac_tool_prefix"; then
19969
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
19971
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19972
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19973
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19974
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19975
if test "${ac_cv_prog_CXX+set}" = set; then
19976
echo $ECHO_N "(cached) $ECHO_C" >&6
19978
if test -n "$CXX"; then
19979
ac_cv_prog_CXX="$CXX" # Let the user override the test.
19981
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19982
for as_dir in $PATH
19985
test -z "$as_dir" && as_dir=.
19986
for ac_exec_ext in '' $ac_executable_extensions; do
19987
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19988
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
19989
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19998
CXX=$ac_cv_prog_CXX
19999
if test -n "$CXX"; then
20000
{ echo "$as_me:$LINENO: result: $CXX" >&5
20001
echo "${ECHO_T}$CXX" >&6; }
20003
{ echo "$as_me:$LINENO: result: no" >&5
20004
echo "${ECHO_T}no" >&6; }
20008
test -n "$CXX" && break
20011
if test -z "$CXX"; then
20013
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
20015
# Extract the first word of "$ac_prog", so it can be a program name with args.
20016
set dummy $ac_prog; ac_word=$2
20017
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20018
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20019
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
20020
echo $ECHO_N "(cached) $ECHO_C" >&6
20022
if test -n "$ac_ct_CXX"; then
20023
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
20025
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20026
for as_dir in $PATH
20029
test -z "$as_dir" && as_dir=.
20030
for ac_exec_ext in '' $ac_executable_extensions; do
20031
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20032
ac_cv_prog_ac_ct_CXX="$ac_prog"
20033
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20042
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
20043
if test -n "$ac_ct_CXX"; then
20044
{ echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
20045
echo "${ECHO_T}$ac_ct_CXX" >&6; }
20047
{ echo "$as_me:$LINENO: result: no" >&5
20048
echo "${ECHO_T}no" >&6; }
20052
test -n "$ac_ct_CXX" && break
20055
if test "x$ac_ct_CXX" = x; then
20058
case $cross_compiling:$ac_tool_warned in
20060
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20061
whose name does not start with the host triplet. If you think this
20062
configuration is useful to you, please write to autoconf@gnu.org." >&5
20063
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20064
whose name does not start with the host triplet. If you think this
20065
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20066
ac_tool_warned=yes ;;
20074
# Provide some information about the compiler.
20075
echo "$as_me:$LINENO: checking for C++ compiler version" >&5
20076
ac_compiler=`set X $ac_compile; echo $2`
20077
{ (ac_try="$ac_compiler --version >&5"
20078
case "(($ac_try" in
20079
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20080
*) ac_try_echo=$ac_try;;
20082
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20083
(eval "$ac_compiler --version >&5") 2>&5
20085
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20086
(exit $ac_status); }
20087
{ (ac_try="$ac_compiler -v >&5"
20088
case "(($ac_try" in
20089
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20090
*) ac_try_echo=$ac_try;;
20092
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20093
(eval "$ac_compiler -v >&5") 2>&5
20095
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20096
(exit $ac_status); }
20097
{ (ac_try="$ac_compiler -V >&5"
20098
case "(($ac_try" in
20099
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20100
*) ac_try_echo=$ac_try;;
20102
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20103
(eval "$ac_compiler -V >&5") 2>&5
20105
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20106
(exit $ac_status); }
20108
{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
20109
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
20110
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
20111
echo $ECHO_N "(cached) $ECHO_C" >&6
20113
cat >conftest.$ac_ext <<_ACEOF
20116
cat confdefs.h >>conftest.$ac_ext
20117
cat >>conftest.$ac_ext <<_ACEOF
20118
/* end confdefs.h. */
20131
rm -f conftest.$ac_objext
20132
if { (ac_try="$ac_compile"
20133
case "(($ac_try" in
20134
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20135
*) ac_try_echo=$ac_try;;
20137
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20138
(eval "$ac_compile") 2>conftest.er1
20140
grep -v '^ *+' conftest.er1 >conftest.err
20142
cat conftest.err >&5
20143
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20144
(exit $ac_status); } && {
20145
test -z "$ac_cxx_werror_flag" ||
20146
test ! -s conftest.err
20147
} && test -s conftest.$ac_objext; then
20148
ac_compiler_gnu=yes
20150
echo "$as_me: failed program was:" >&5
20151
sed 's/^/| /' conftest.$ac_ext >&5
20156
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20157
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
20160
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
20161
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
20162
GXX=`test $ac_compiler_gnu = yes && echo yes`
20163
ac_test_CXXFLAGS=${CXXFLAGS+set}
20164
ac_save_CXXFLAGS=$CXXFLAGS
20165
{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
20166
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
20167
if test "${ac_cv_prog_cxx_g+set}" = set; then
20168
echo $ECHO_N "(cached) $ECHO_C" >&6
20170
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
20171
ac_cxx_werror_flag=yes
20172
ac_cv_prog_cxx_g=no
20174
cat >conftest.$ac_ext <<_ACEOF
20177
cat confdefs.h >>conftest.$ac_ext
20178
cat >>conftest.$ac_ext <<_ACEOF
20179
/* end confdefs.h. */
20189
rm -f conftest.$ac_objext
20190
if { (ac_try="$ac_compile"
20191
case "(($ac_try" in
20192
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20193
*) ac_try_echo=$ac_try;;
20195
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20196
(eval "$ac_compile") 2>conftest.er1
20198
grep -v '^ *+' conftest.er1 >conftest.err
20200
cat conftest.err >&5
20201
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20202
(exit $ac_status); } && {
20203
test -z "$ac_cxx_werror_flag" ||
20204
test ! -s conftest.err
20205
} && test -s conftest.$ac_objext; then
20206
ac_cv_prog_cxx_g=yes
20208
echo "$as_me: failed program was:" >&5
20209
sed 's/^/| /' conftest.$ac_ext >&5
20212
cat >conftest.$ac_ext <<_ACEOF
20215
cat confdefs.h >>conftest.$ac_ext
20216
cat >>conftest.$ac_ext <<_ACEOF
20217
/* end confdefs.h. */
20227
rm -f conftest.$ac_objext
20228
if { (ac_try="$ac_compile"
20229
case "(($ac_try" in
20230
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20231
*) ac_try_echo=$ac_try;;
20233
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20234
(eval "$ac_compile") 2>conftest.er1
20236
grep -v '^ *+' conftest.er1 >conftest.err
20238
cat conftest.err >&5
20239
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20240
(exit $ac_status); } && {
20241
test -z "$ac_cxx_werror_flag" ||
20242
test ! -s conftest.err
20243
} && test -s conftest.$ac_objext; then
20246
echo "$as_me: failed program was:" >&5
20247
sed 's/^/| /' conftest.$ac_ext >&5
20249
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
20251
cat >conftest.$ac_ext <<_ACEOF
20254
cat confdefs.h >>conftest.$ac_ext
20255
cat >>conftest.$ac_ext <<_ACEOF
20256
/* end confdefs.h. */
20266
rm -f conftest.$ac_objext
20267
if { (ac_try="$ac_compile"
20268
case "(($ac_try" in
20269
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20270
*) ac_try_echo=$ac_try;;
20272
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20273
(eval "$ac_compile") 2>conftest.er1
20275
grep -v '^ *+' conftest.er1 >conftest.err
20277
cat conftest.err >&5
20278
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20279
(exit $ac_status); } && {
20280
test -z "$ac_cxx_werror_flag" ||
20281
test ! -s conftest.err
20282
} && test -s conftest.$ac_objext; then
20283
ac_cv_prog_cxx_g=yes
20285
echo "$as_me: failed program was:" >&5
20286
sed 's/^/| /' conftest.$ac_ext >&5
20291
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20294
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20297
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20298
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
20300
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
20301
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
20302
if test "$ac_test_CXXFLAGS" = set; then
20303
CXXFLAGS=$ac_save_CXXFLAGS
20304
elif test $ac_cv_prog_cxx_g = yes; then
20305
if test "$GXX" = yes; then
20311
if test "$GXX" = yes; then
20318
ac_cpp='$CPP $CPPFLAGS'
20319
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20320
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20321
ac_compiler_gnu=$ac_cv_c_compiler_gnu
20323
depcc="$CXX" am_compiler_list=
20325
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
20326
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
20327
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
20328
echo $ECHO_N "(cached) $ECHO_C" >&6
20330
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20331
# We make a subdir and do the tests there. Otherwise we can end up
20332
# making bogus files that we don't know about and never remove. For
20333
# instance it was reported that on HP-UX the gcc test will end up
20334
# making a dummy file named `D' -- because `-MD' means `put the output
20337
# Copy depcomp to subdir because otherwise we won't find it if we're
20338
# using a relative directory.
20339
cp "$am_depcomp" conftest.dir
20341
# We will build objects and dependencies in a subdirectory because
20342
# it helps to detect inapplicable dependency modes. For instance
20343
# both Tru64's cc and ICC support -MD to output dependencies as a
20344
# side effect of compilation, but ICC will put the dependencies in
20345
# the current directory while Tru64 will put them in the object
20349
am_cv_CXX_dependencies_compiler_type=none
20350
if test "$am_compiler_list" = ""; then
20351
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20353
for depmode in $am_compiler_list; do
20354
# Setup a source with many dependencies, because some compilers
20355
# like to wrap large dependency lists on column 80 (with \), and
20356
# we should not choose a depcomp mode which is confused by this.
20358
# We need to recreate these files for each test, as the compiler may
20359
# overwrite some of them when testing with obscure command lines.
20360
# This happens at least with the AIX C compiler.
20362
for i in 1 2 3 4 5 6; do
20363
echo '#include "conftst'$i'.h"' >> sub/conftest.c
20364
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
20365
# Solaris 8's {/usr,}/bin/sh.
20366
touch sub/conftst$i.h
20368
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20372
# after this tag, mechanisms are not by side-effect, so they'll
20373
# only be used when explicitly requested
20374
if test "x$enable_dependency_tracking" = xyes; then
20382
# We check with `-c' and `-o' for the sake of the "dashmstdout"
20383
# mode. It turns out that the SunPro C++ compiler does not properly
20384
# handle `-M -o', and we need to detect this.
20385
if depmode=$depmode \
20386
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
20387
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20388
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
20389
>/dev/null 2>conftest.err &&
20390
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
20391
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20392
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
20393
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20394
# icc doesn't choke on unknown options, it will just issue warnings
20395
# or remarks (even with -Werror). So we grep stderr for any message
20396
# that says an option was ignored or not supported.
20397
# When given -MP, icc 7.0 and 7.1 complain thusly:
20398
# icc: Command line warning: ignoring option '-M'; no argument required
20399
# The diagnosis changed in icc 8.0:
20400
# icc: Command line remark: option '-MP' not supported
20401
if (grep 'ignoring option' conftest.err ||
20402
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20403
am_cv_CXX_dependencies_compiler_type=$depmode
20410
rm -rf conftest.dir
20412
am_cv_CXX_dependencies_compiler_type=none
20416
{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
20417
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
20418
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
20421
test "x$enable_dependency_tracking" != xno \
20422
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
20423
am__fastdepCXX_TRUE=
20424
am__fastdepCXX_FALSE='#'
20426
am__fastdepCXX_TRUE='#'
20427
am__fastdepCXX_FALSE=
20433
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
20434
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
20435
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
20436
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
20437
echo $ECHO_N "(cached) $ECHO_C" >&6
20439
cat >conftest.make <<\_ACEOF
20442
@echo '@@@%%%=$(MAKE)=@@@%%%'
20444
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20445
case `${MAKE-make} -f conftest.make 2>/dev/null` in
20446
*@@@%%%=?*=@@@%%%*)
20447
eval ac_cv_prog_make_${ac_make}_set=yes;;
20449
eval ac_cv_prog_make_${ac_make}_set=no;;
20451
rm -f conftest.make
20453
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
20454
{ echo "$as_me:$LINENO: result: yes" >&5
20455
echo "${ECHO_T}yes" >&6; }
20458
{ echo "$as_me:$LINENO: result: no" >&5
20459
echo "${ECHO_T}no" >&6; }
20460
SET_MAKE="MAKE=${MAKE-make}"
20465
# Checks for libraries.
20466
{ echo "$as_me:$LINENO: checking for pow in -lm" >&5
20467
echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; }
20468
if test "${ac_cv_lib_m_pow+set}" = set; then
20469
echo $ECHO_N "(cached) $ECHO_C" >&6
20471
ac_check_lib_save_LIBS=$LIBS
20473
cat >conftest.$ac_ext <<_ACEOF
20476
cat confdefs.h >>conftest.$ac_ext
20477
cat >>conftest.$ac_ext <<_ACEOF
20478
/* end confdefs.h. */
20480
/* Override any GCC internal prototype to avoid an error.
20481
Use char because int might match the return type of a GCC
20482
builtin and then its argument prototype would still apply. */
20495
rm -f conftest.$ac_objext conftest$ac_exeext
20496
if { (ac_try="$ac_link"
20497
case "(($ac_try" in
20498
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20499
*) ac_try_echo=$ac_try;;
20501
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20502
(eval "$ac_link") 2>conftest.er1
20504
grep -v '^ *+' conftest.er1 >conftest.err
20506
cat conftest.err >&5
20507
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20508
(exit $ac_status); } && {
20509
test -z "$ac_c_werror_flag" ||
20510
test ! -s conftest.err
20511
} && test -s conftest$ac_exeext &&
20512
$as_test_x conftest$ac_exeext; then
20513
ac_cv_lib_m_pow=yes
20515
echo "$as_me: failed program was:" >&5
20516
sed 's/^/| /' conftest.$ac_ext >&5
20521
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20522
conftest$ac_exeext conftest.$ac_ext
20523
LIBS=$ac_check_lib_save_LIBS
20525
{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
20526
echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
20527
if test $ac_cv_lib_m_pow = yes; then
20530
{ { echo "$as_me:$LINENO: error: libm not found
20531
See \`config.log' for more details." >&5
20532
echo "$as_me: error: libm not found
20533
See \`config.log' for more details." >&2;}
20534
{ (exit 1); exit 1; }; }
20537
{ echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
20538
echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
20539
if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
20540
echo $ECHO_N "(cached) $ECHO_C" >&6
20542
ac_check_lib_save_LIBS=$LIBS
20543
LIBS="-lpthread $LIBS"
20544
cat >conftest.$ac_ext <<_ACEOF
20547
cat confdefs.h >>conftest.$ac_ext
20548
cat >>conftest.$ac_ext <<_ACEOF
20549
/* end confdefs.h. */
20551
/* Override any GCC internal prototype to avoid an error.
20552
Use char because int might match the return type of a GCC
20553
builtin and then its argument prototype would still apply. */
20557
char pthread_create ();
20561
return pthread_create ();
20566
rm -f conftest.$ac_objext conftest$ac_exeext
20567
if { (ac_try="$ac_link"
20568
case "(($ac_try" in
20569
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20570
*) ac_try_echo=$ac_try;;
20572
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20573
(eval "$ac_link") 2>conftest.er1
20575
grep -v '^ *+' conftest.er1 >conftest.err
20577
cat conftest.err >&5
20578
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20579
(exit $ac_status); } && {
20580
test -z "$ac_c_werror_flag" ||
20581
test ! -s conftest.err
20582
} && test -s conftest$ac_exeext &&
20583
$as_test_x conftest$ac_exeext; then
20584
ac_cv_lib_pthread_pthread_create=yes
20586
echo "$as_me: failed program was:" >&5
20587
sed 's/^/| /' conftest.$ac_ext >&5
20589
ac_cv_lib_pthread_pthread_create=no
20592
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20593
conftest$ac_exeext conftest.$ac_ext
20594
LIBS=$ac_check_lib_save_LIBS
20596
{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
20597
echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
20598
if test $ac_cv_lib_pthread_pthread_create = yes; then
20601
{ { echo "$as_me:$LINENO: error: libpthread not found
20602
See \`config.log' for more details." >&5
20603
echo "$as_me: error: libpthread not found
20604
See \`config.log' for more details." >&2;}
20605
{ (exit 1); exit 1; }; }
20611
# Check whether --with-debug was given.
20612
if test "${with_debug+set}" = set; then
20613
withval=$with_debug; with_debug=yes
20618
if test "$with_debug" = "yes"; then
20620
WITH_DEBUG_FALSE='#'
20622
WITH_DEBUG_TRUE='#'
20629
# Check whether --with-radosgw was given.
20630
if test "${with_radosgw+set}" = set; then
20631
withval=$with_radosgw;
20637
if test "x$with_radosgw" != xno; then
20638
{ echo "$as_me:$LINENO: checking for FCGX_Init in -lfcgi" >&5
20639
echo $ECHO_N "checking for FCGX_Init in -lfcgi... $ECHO_C" >&6; }
20640
if test "${ac_cv_lib_fcgi_FCGX_Init+set}" = set; then
20641
echo $ECHO_N "(cached) $ECHO_C" >&6
20643
ac_check_lib_save_LIBS=$LIBS
20644
LIBS="-lfcgi $LIBS"
20645
cat >conftest.$ac_ext <<_ACEOF
20648
cat confdefs.h >>conftest.$ac_ext
20649
cat >>conftest.$ac_ext <<_ACEOF
20650
/* end confdefs.h. */
20652
/* Override any GCC internal prototype to avoid an error.
20653
Use char because int might match the return type of a GCC
20654
builtin and then its argument prototype would still apply. */
20662
return FCGX_Init ();
20667
rm -f conftest.$ac_objext conftest$ac_exeext
20668
if { (ac_try="$ac_link"
20669
case "(($ac_try" in
20670
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20671
*) ac_try_echo=$ac_try;;
20673
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20674
(eval "$ac_link") 2>conftest.er1
20676
grep -v '^ *+' conftest.er1 >conftest.err
20678
cat conftest.err >&5
20679
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20680
(exit $ac_status); } && {
20681
test -z "$ac_c_werror_flag" ||
20682
test ! -s conftest.err
20683
} && test -s conftest$ac_exeext &&
20684
$as_test_x conftest$ac_exeext; then
20685
ac_cv_lib_fcgi_FCGX_Init=yes
20687
echo "$as_me: failed program was:" >&5
20688
sed 's/^/| /' conftest.$ac_ext >&5
20690
ac_cv_lib_fcgi_FCGX_Init=no
20693
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20694
conftest$ac_exeext conftest.$ac_ext
20695
LIBS=$ac_check_lib_save_LIBS
20697
{ echo "$as_me:$LINENO: result: $ac_cv_lib_fcgi_FCGX_Init" >&5
20698
echo "${ECHO_T}$ac_cv_lib_fcgi_FCGX_Init" >&6; }
20699
if test $ac_cv_lib_fcgi_FCGX_Init = yes; then
20700
{ echo "$as_me:$LINENO: checking for XML_Parse in -lexpat" >&5
20701
echo $ECHO_N "checking for XML_Parse in -lexpat... $ECHO_C" >&6; }
20702
if test "${ac_cv_lib_expat_XML_Parse+set}" = set; then
20703
echo $ECHO_N "(cached) $ECHO_C" >&6
20705
ac_check_lib_save_LIBS=$LIBS
20706
LIBS="-lexpat $LIBS"
20707
cat >conftest.$ac_ext <<_ACEOF
20710
cat confdefs.h >>conftest.$ac_ext
20711
cat >>conftest.$ac_ext <<_ACEOF
20712
/* end confdefs.h. */
20714
/* Override any GCC internal prototype to avoid an error.
20715
Use char because int might match the return type of a GCC
20716
builtin and then its argument prototype would still apply. */
20724
return XML_Parse ();
20729
rm -f conftest.$ac_objext conftest$ac_exeext
20730
if { (ac_try="$ac_link"
20731
case "(($ac_try" in
20732
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20733
*) ac_try_echo=$ac_try;;
20735
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20736
(eval "$ac_link") 2>conftest.er1
20738
grep -v '^ *+' conftest.er1 >conftest.err
20740
cat conftest.err >&5
20741
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20742
(exit $ac_status); } && {
20743
test -z "$ac_c_werror_flag" ||
20744
test ! -s conftest.err
20745
} && test -s conftest$ac_exeext &&
20746
$as_test_x conftest$ac_exeext; then
20747
ac_cv_lib_expat_XML_Parse=yes
20749
echo "$as_me: failed program was:" >&5
20750
sed 's/^/| /' conftest.$ac_ext >&5
20752
ac_cv_lib_expat_XML_Parse=no
20755
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20756
conftest$ac_exeext conftest.$ac_ext
20757
LIBS=$ac_check_lib_save_LIBS
20759
{ echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_Parse" >&5
20760
echo "${ECHO_T}$ac_cv_lib_expat_XML_Parse" >&6; }
20761
if test $ac_cv_lib_expat_XML_Parse = yes; then
20764
if test "x$with_radosgw" != "xcheck"; then
20765
{ { echo "$as_me:$LINENO: error: --with-radosgw was given but libexpat (libexpat1-dev on debian) not found
20766
See \`config.log' for more details." >&5
20767
echo "$as_me: error: --with-radosgw was given but libexpat (libexpat1-dev on debian) not found
20768
See \`config.log' for more details." >&2;}
20769
{ (exit 1); exit 1; }; }
20775
if test "x$with_radosgw" != "xcheck"; then
20776
{ { echo "$as_me:$LINENO: error: --with-radosgw was given but libfcgi (libfcgi-dev on debian) not found
20777
See \`config.log' for more details." >&5
20778
echo "$as_me: error: --with-radosgw was given but libfcgi (libfcgi-dev on debian) not found
20779
See \`config.log' for more details." >&2;}
20780
{ (exit 1); exit 1; }; }
20786
if test "$RADOSGW" = "1"; then
20788
WITH_RADOSGW_FALSE='#'
20790
WITH_RADOSGW_TRUE='#'
20791
WITH_RADOSGW_FALSE=
20797
# Check whether --with-fuse was given.
20798
if test "${with_fuse+set}" = set; then
20799
withval=$with_fuse;
20805
if test "x$with_fuse" != xno; then
20806
{ echo "$as_me:$LINENO: checking for fuse_main in -lfuse" >&5
20807
echo $ECHO_N "checking for fuse_main in -lfuse... $ECHO_C" >&6; }
20808
if test "${ac_cv_lib_fuse_fuse_main+set}" = set; then
20809
echo $ECHO_N "(cached) $ECHO_C" >&6
20811
ac_check_lib_save_LIBS=$LIBS
20812
LIBS="-lfuse $LIBS"
20813
cat >conftest.$ac_ext <<_ACEOF
20816
cat confdefs.h >>conftest.$ac_ext
20817
cat >>conftest.$ac_ext <<_ACEOF
20818
/* end confdefs.h. */
20820
/* Override any GCC internal prototype to avoid an error.
20821
Use char because int might match the return type of a GCC
20822
builtin and then its argument prototype would still apply. */
20830
return fuse_main ();
20835
rm -f conftest.$ac_objext conftest$ac_exeext
20836
if { (ac_try="$ac_link"
20837
case "(($ac_try" in
20838
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20839
*) ac_try_echo=$ac_try;;
20841
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20842
(eval "$ac_link") 2>conftest.er1
20844
grep -v '^ *+' conftest.er1 >conftest.err
20846
cat conftest.err >&5
20847
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20848
(exit $ac_status); } && {
20849
test -z "$ac_c_werror_flag" ||
20850
test ! -s conftest.err
20851
} && test -s conftest$ac_exeext &&
20852
$as_test_x conftest$ac_exeext; then
20853
ac_cv_lib_fuse_fuse_main=yes
20855
echo "$as_me: failed program was:" >&5
20856
sed 's/^/| /' conftest.$ac_ext >&5
20858
ac_cv_lib_fuse_fuse_main=no
20861
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20862
conftest$ac_exeext conftest.$ac_ext
20863
LIBS=$ac_check_lib_save_LIBS
20865
{ echo "$as_me:$LINENO: result: $ac_cv_lib_fuse_fuse_main" >&5
20866
echo "${ECHO_T}$ac_cv_lib_fuse_fuse_main" >&6; }
20867
if test $ac_cv_lib_fuse_fuse_main = yes; then
20871
cat >>confdefs.h <<\_ACEOF
20872
#define HAVE_LIBFUSE 1
20878
if test "x$with_fuse" != xcheck; then
20879
{ { echo "$as_me:$LINENO: error: --with-fuse was given but test failed
20880
See \`config.log' for more details." >&5
20881
echo "$as_me: error: --with-fuse was given but test failed
20882
See \`config.log' for more details." >&2;}
20883
{ (exit 1); exit 1; }; }
20890
if test "$HAVE_LIBFUSE" = "1"; then
20892
WITH_FUSE_FALSE='#'
20901
# Check whether --with-hadoop was given.
20902
if test "${with_hadoop+set}" = set; then
20903
withval=$with_hadoop;
20908
if test "x$with_hadoop" != xno; then
20909
if test "${ac_cv_header_jni_h+set}" = set; then
20910
{ echo "$as_me:$LINENO: checking for jni.h" >&5
20911
echo $ECHO_N "checking for jni.h... $ECHO_C" >&6; }
20912
if test "${ac_cv_header_jni_h+set}" = set; then
20913
echo $ECHO_N "(cached) $ECHO_C" >&6
20915
{ echo "$as_me:$LINENO: result: $ac_cv_header_jni_h" >&5
20916
echo "${ECHO_T}$ac_cv_header_jni_h" >&6; }
20918
# Is the header compilable?
20919
{ echo "$as_me:$LINENO: checking jni.h usability" >&5
20920
echo $ECHO_N "checking jni.h usability... $ECHO_C" >&6; }
20921
cat >conftest.$ac_ext <<_ACEOF
20924
cat confdefs.h >>conftest.$ac_ext
20925
cat >>conftest.$ac_ext <<_ACEOF
20926
/* end confdefs.h. */
20927
$ac_includes_default
20930
rm -f conftest.$ac_objext
20931
if { (ac_try="$ac_compile"
20932
case "(($ac_try" in
20933
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20934
*) ac_try_echo=$ac_try;;
20936
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20937
(eval "$ac_compile") 2>conftest.er1
20939
grep -v '^ *+' conftest.er1 >conftest.err
20941
cat conftest.err >&5
20942
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20943
(exit $ac_status); } && {
20944
test -z "$ac_c_werror_flag" ||
20945
test ! -s conftest.err
20946
} && test -s conftest.$ac_objext; then
20947
ac_header_compiler=yes
20949
echo "$as_me: failed program was:" >&5
20950
sed 's/^/| /' conftest.$ac_ext >&5
20952
ac_header_compiler=no
20955
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20956
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20957
echo "${ECHO_T}$ac_header_compiler" >&6; }
20959
# Is the header present?
20960
{ echo "$as_me:$LINENO: checking jni.h presence" >&5
20961
echo $ECHO_N "checking jni.h presence... $ECHO_C" >&6; }
20962
cat >conftest.$ac_ext <<_ACEOF
20965
cat confdefs.h >>conftest.$ac_ext
20966
cat >>conftest.$ac_ext <<_ACEOF
20967
/* end confdefs.h. */
20970
if { (ac_try="$ac_cpp conftest.$ac_ext"
20971
case "(($ac_try" in
20972
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20973
*) ac_try_echo=$ac_try;;
20975
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20976
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20978
grep -v '^ *+' conftest.er1 >conftest.err
20980
cat conftest.err >&5
20981
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20982
(exit $ac_status); } >/dev/null && {
20983
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20984
test ! -s conftest.err
20986
ac_header_preproc=yes
20988
echo "$as_me: failed program was:" >&5
20989
sed 's/^/| /' conftest.$ac_ext >&5
20991
ac_header_preproc=no
20994
rm -f conftest.err conftest.$ac_ext
20995
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20996
echo "${ECHO_T}$ac_header_preproc" >&6; }
20998
# So? What about this header?
20999
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21001
{ echo "$as_me:$LINENO: WARNING: jni.h: accepted by the compiler, rejected by the preprocessor!" >&5
21002
echo "$as_me: WARNING: jni.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21003
{ echo "$as_me:$LINENO: WARNING: jni.h: proceeding with the compiler's result" >&5
21004
echo "$as_me: WARNING: jni.h: proceeding with the compiler's result" >&2;}
21005
ac_header_preproc=yes
21008
{ echo "$as_me:$LINENO: WARNING: jni.h: present but cannot be compiled" >&5
21009
echo "$as_me: WARNING: jni.h: present but cannot be compiled" >&2;}
21010
{ echo "$as_me:$LINENO: WARNING: jni.h: check for missing prerequisite headers?" >&5
21011
echo "$as_me: WARNING: jni.h: check for missing prerequisite headers?" >&2;}
21012
{ echo "$as_me:$LINENO: WARNING: jni.h: see the Autoconf documentation" >&5
21013
echo "$as_me: WARNING: jni.h: see the Autoconf documentation" >&2;}
21014
{ echo "$as_me:$LINENO: WARNING: jni.h: section \"Present But Cannot Be Compiled\"" >&5
21015
echo "$as_me: WARNING: jni.h: section \"Present But Cannot Be Compiled\"" >&2;}
21016
{ echo "$as_me:$LINENO: WARNING: jni.h: proceeding with the preprocessor's result" >&5
21017
echo "$as_me: WARNING: jni.h: proceeding with the preprocessor's result" >&2;}
21018
{ echo "$as_me:$LINENO: WARNING: jni.h: in the future, the compiler will take precedence" >&5
21019
echo "$as_me: WARNING: jni.h: in the future, the compiler will take precedence" >&2;}
21021
## -------------------------------------------- ##
21022
## Report this to Sage Weil <sage@newdream.net> ##
21023
## -------------------------------------------- ##
21025
) | sed "s/^/$as_me: WARNING: /" >&2
21028
{ echo "$as_me:$LINENO: checking for jni.h" >&5
21029
echo $ECHO_N "checking for jni.h... $ECHO_C" >&6; }
21030
if test "${ac_cv_header_jni_h+set}" = set; then
21031
echo $ECHO_N "(cached) $ECHO_C" >&6
21033
ac_cv_header_jni_h=$ac_header_preproc
21035
{ echo "$as_me:$LINENO: result: $ac_cv_header_jni_h" >&5
21036
echo "${ECHO_T}$ac_cv_header_jni_h" >&6; }
21039
if test $ac_cv_header_jni_h = yes; then
21042
if test "x$with_hadoop" != xcheck; then
21043
{ { echo "$as_me:$LINENO: error: --with-hadoop was given but jni.h not found
21044
See \`config.log' for more details." >&5
21045
echo "$as_me: error: --with-hadoop was given but jni.h not found
21046
See \`config.log' for more details." >&2;}
21047
{ (exit 1); exit 1; }; }
21055
if test "$HAVE_JNI" = "1"; then
21056
WITH_HADOOPCLIENT_TRUE=
21057
WITH_HADOOPCLIENT_FALSE='#'
21059
WITH_HADOOPCLIENT_TRUE='#'
21060
WITH_HADOOPCLIENT_FALSE=
21064
#libatomic-ops? You want it!
21066
# Check whether --with-libatomic-ops was given.
21067
if test "${with_libatomic_ops+set}" = set; then
21068
withval=$with_libatomic_ops;
21070
with_libatomic_ops=check
21073
if test "x$with_libatomic_ops" != xno; then
21074
if test "${ac_cv_header_atomic_ops_h+set}" = set; then
21075
{ echo "$as_me:$LINENO: checking for atomic_ops.h" >&5
21076
echo $ECHO_N "checking for atomic_ops.h... $ECHO_C" >&6; }
21077
if test "${ac_cv_header_atomic_ops_h+set}" = set; then
21078
echo $ECHO_N "(cached) $ECHO_C" >&6
21080
{ echo "$as_me:$LINENO: result: $ac_cv_header_atomic_ops_h" >&5
21081
echo "${ECHO_T}$ac_cv_header_atomic_ops_h" >&6; }
21083
# Is the header compilable?
21084
{ echo "$as_me:$LINENO: checking atomic_ops.h usability" >&5
21085
echo $ECHO_N "checking atomic_ops.h usability... $ECHO_C" >&6; }
21086
cat >conftest.$ac_ext <<_ACEOF
21089
cat confdefs.h >>conftest.$ac_ext
21090
cat >>conftest.$ac_ext <<_ACEOF
21091
/* end confdefs.h. */
21092
$ac_includes_default
21093
#include <atomic_ops.h>
21095
rm -f conftest.$ac_objext
21096
if { (ac_try="$ac_compile"
21097
case "(($ac_try" in
21098
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21099
*) ac_try_echo=$ac_try;;
21101
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21102
(eval "$ac_compile") 2>conftest.er1
21104
grep -v '^ *+' conftest.er1 >conftest.err
21106
cat conftest.err >&5
21107
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21108
(exit $ac_status); } && {
21109
test -z "$ac_c_werror_flag" ||
21110
test ! -s conftest.err
21111
} && test -s conftest.$ac_objext; then
21112
ac_header_compiler=yes
21114
echo "$as_me: failed program was:" >&5
21115
sed 's/^/| /' conftest.$ac_ext >&5
21117
ac_header_compiler=no
21120
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21121
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21122
echo "${ECHO_T}$ac_header_compiler" >&6; }
21124
# Is the header present?
21125
{ echo "$as_me:$LINENO: checking atomic_ops.h presence" >&5
21126
echo $ECHO_N "checking atomic_ops.h presence... $ECHO_C" >&6; }
21127
cat >conftest.$ac_ext <<_ACEOF
21130
cat confdefs.h >>conftest.$ac_ext
21131
cat >>conftest.$ac_ext <<_ACEOF
21132
/* end confdefs.h. */
21133
#include <atomic_ops.h>
21135
if { (ac_try="$ac_cpp conftest.$ac_ext"
21136
case "(($ac_try" in
21137
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21138
*) ac_try_echo=$ac_try;;
21140
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21141
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21143
grep -v '^ *+' conftest.er1 >conftest.err
21145
cat conftest.err >&5
21146
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21147
(exit $ac_status); } >/dev/null && {
21148
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21149
test ! -s conftest.err
21151
ac_header_preproc=yes
21153
echo "$as_me: failed program was:" >&5
21154
sed 's/^/| /' conftest.$ac_ext >&5
21156
ac_header_preproc=no
21159
rm -f conftest.err conftest.$ac_ext
21160
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21161
echo "${ECHO_T}$ac_header_preproc" >&6; }
21163
# So? What about this header?
21164
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21166
{ echo "$as_me:$LINENO: WARNING: atomic_ops.h: accepted by the compiler, rejected by the preprocessor!" >&5
21167
echo "$as_me: WARNING: atomic_ops.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21168
{ echo "$as_me:$LINENO: WARNING: atomic_ops.h: proceeding with the compiler's result" >&5
21169
echo "$as_me: WARNING: atomic_ops.h: proceeding with the compiler's result" >&2;}
21170
ac_header_preproc=yes
21173
{ echo "$as_me:$LINENO: WARNING: atomic_ops.h: present but cannot be compiled" >&5
21174
echo "$as_me: WARNING: atomic_ops.h: present but cannot be compiled" >&2;}
21175
{ echo "$as_me:$LINENO: WARNING: atomic_ops.h: check for missing prerequisite headers?" >&5
21176
echo "$as_me: WARNING: atomic_ops.h: check for missing prerequisite headers?" >&2;}
21177
{ echo "$as_me:$LINENO: WARNING: atomic_ops.h: see the Autoconf documentation" >&5
21178
echo "$as_me: WARNING: atomic_ops.h: see the Autoconf documentation" >&2;}
21179
{ echo "$as_me:$LINENO: WARNING: atomic_ops.h: section \"Present But Cannot Be Compiled\"" >&5
21180
echo "$as_me: WARNING: atomic_ops.h: section \"Present But Cannot Be Compiled\"" >&2;}
21181
{ echo "$as_me:$LINENO: WARNING: atomic_ops.h: proceeding with the preprocessor's result" >&5
21182
echo "$as_me: WARNING: atomic_ops.h: proceeding with the preprocessor's result" >&2;}
21183
{ echo "$as_me:$LINENO: WARNING: atomic_ops.h: in the future, the compiler will take precedence" >&5
21184
echo "$as_me: WARNING: atomic_ops.h: in the future, the compiler will take precedence" >&2;}
21186
## -------------------------------------------- ##
21187
## Report this to Sage Weil <sage@newdream.net> ##
21188
## -------------------------------------------- ##
21190
) | sed "s/^/$as_me: WARNING: /" >&2
21193
{ echo "$as_me:$LINENO: checking for atomic_ops.h" >&5
21194
echo $ECHO_N "checking for atomic_ops.h... $ECHO_C" >&6; }
21195
if test "${ac_cv_header_atomic_ops_h+set}" = set; then
21196
echo $ECHO_N "(cached) $ECHO_C" >&6
21198
ac_cv_header_atomic_ops_h=$ac_header_preproc
21200
{ echo "$as_me:$LINENO: result: $ac_cv_header_atomic_ops_h" >&5
21201
echo "${ECHO_T}$ac_cv_header_atomic_ops_h" >&6; }
21204
if test $ac_cv_header_atomic_ops_h = yes; then
21207
if test "x$with_libatomic_ops" != xcheck; then
21208
{ { echo "$as_me:$LINENO: error: --with-libatomic-ops was given but atomic_ops.h not found
21209
See \`config.log' for more details." >&5
21210
echo "$as_me: error: --with-libatomic-ops was given but atomic_ops.h not found
21211
See \`config.log' for more details." >&2;}
21212
{ (exit 1); exit 1; }; }
21220
if test "$HAVE_ATOMIC_OPS" = "1"; then
21224
cat >>confdefs.h <<\_ACEOF
21225
#define NO_ATOMIC_OPS 1
21230
if test "$HAVE_ATOMIC_OPS" = "1"; then
21231
WITH_LIBATOMIC_TRUE=
21232
WITH_LIBATOMIC_FALSE='#'
21234
WITH_LIBATOMIC_TRUE='#'
21235
WITH_LIBATOMIC_FALSE=
21239
# newsyn? requires mpi.
21240
#AC_ARG_WITH([newsyn],
21241
# [AS_HELP_STRING([--with-newsyn], [build newsyn target requires mpi])],
21243
# [with_newsyn=no])
21245
# Checks for header files.
21251
ac_header_dirent=no
21252
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21253
as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
21254
{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
21255
echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
21256
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21257
echo $ECHO_N "(cached) $ECHO_C" >&6
21259
cat >conftest.$ac_ext <<_ACEOF
21262
cat confdefs.h >>conftest.$ac_ext
21263
cat >>conftest.$ac_ext <<_ACEOF
21264
/* end confdefs.h. */
21265
#include <sys/types.h>
21277
rm -f conftest.$ac_objext
21278
if { (ac_try="$ac_compile"
21279
case "(($ac_try" in
21280
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21281
*) ac_try_echo=$ac_try;;
21283
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21284
(eval "$ac_compile") 2>conftest.er1
21286
grep -v '^ *+' conftest.er1 >conftest.err
21288
cat conftest.err >&5
21289
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21290
(exit $ac_status); } && {
21291
test -z "$ac_c_werror_flag" ||
21292
test ! -s conftest.err
21293
} && test -s conftest.$ac_objext; then
21294
eval "$as_ac_Header=yes"
21296
echo "$as_me: failed program was:" >&5
21297
sed 's/^/| /' conftest.$ac_ext >&5
21299
eval "$as_ac_Header=no"
21302
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21304
ac_res=`eval echo '${'$as_ac_Header'}'`
21305
{ echo "$as_me:$LINENO: result: $ac_res" >&5
21306
echo "${ECHO_T}$ac_res" >&6; }
21307
if test `eval echo '${'$as_ac_Header'}'` = yes; then
21308
cat >>confdefs.h <<_ACEOF
21309
#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21312
ac_header_dirent=$ac_hdr; break
21316
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21317
if test $ac_header_dirent = dirent.h; then
21318
{ echo "$as_me:$LINENO: checking for library containing opendir" >&5
21319
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
21320
if test "${ac_cv_search_opendir+set}" = set; then
21321
echo $ECHO_N "(cached) $ECHO_C" >&6
21323
ac_func_search_save_LIBS=$LIBS
21324
cat >conftest.$ac_ext <<_ACEOF
21327
cat confdefs.h >>conftest.$ac_ext
21328
cat >>conftest.$ac_ext <<_ACEOF
21329
/* end confdefs.h. */
21331
/* Override any GCC internal prototype to avoid an error.
21332
Use char because int might match the return type of a GCC
21333
builtin and then its argument prototype would still apply. */
21346
for ac_lib in '' dir; do
21347
if test -z "$ac_lib"; then
21348
ac_res="none required"
21351
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21353
rm -f conftest.$ac_objext conftest$ac_exeext
21354
if { (ac_try="$ac_link"
21355
case "(($ac_try" in
21356
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21357
*) ac_try_echo=$ac_try;;
21359
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21360
(eval "$ac_link") 2>conftest.er1
21362
grep -v '^ *+' conftest.er1 >conftest.err
21364
cat conftest.err >&5
21365
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21366
(exit $ac_status); } && {
21367
test -z "$ac_c_werror_flag" ||
21368
test ! -s conftest.err
21369
} && test -s conftest$ac_exeext &&
21370
$as_test_x conftest$ac_exeext; then
21371
ac_cv_search_opendir=$ac_res
21373
echo "$as_me: failed program was:" >&5
21374
sed 's/^/| /' conftest.$ac_ext >&5
21379
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21381
if test "${ac_cv_search_opendir+set}" = set; then
21385
if test "${ac_cv_search_opendir+set}" = set; then
21388
ac_cv_search_opendir=no
21390
rm conftest.$ac_ext
21391
LIBS=$ac_func_search_save_LIBS
21393
{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
21394
echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
21395
ac_res=$ac_cv_search_opendir
21396
if test "$ac_res" != no; then
21397
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21402
{ echo "$as_me:$LINENO: checking for library containing opendir" >&5
21403
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
21404
if test "${ac_cv_search_opendir+set}" = set; then
21405
echo $ECHO_N "(cached) $ECHO_C" >&6
21407
ac_func_search_save_LIBS=$LIBS
21408
cat >conftest.$ac_ext <<_ACEOF
21411
cat confdefs.h >>conftest.$ac_ext
21412
cat >>conftest.$ac_ext <<_ACEOF
21413
/* end confdefs.h. */
21415
/* Override any GCC internal prototype to avoid an error.
21416
Use char because int might match the return type of a GCC
21417
builtin and then its argument prototype would still apply. */
21430
for ac_lib in '' x; do
21431
if test -z "$ac_lib"; then
21432
ac_res="none required"
21435
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21437
rm -f conftest.$ac_objext conftest$ac_exeext
21438
if { (ac_try="$ac_link"
21439
case "(($ac_try" in
21440
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21441
*) ac_try_echo=$ac_try;;
21443
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21444
(eval "$ac_link") 2>conftest.er1
21446
grep -v '^ *+' conftest.er1 >conftest.err
21448
cat conftest.err >&5
21449
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21450
(exit $ac_status); } && {
21451
test -z "$ac_c_werror_flag" ||
21452
test ! -s conftest.err
21453
} && test -s conftest$ac_exeext &&
21454
$as_test_x conftest$ac_exeext; then
21455
ac_cv_search_opendir=$ac_res
21457
echo "$as_me: failed program was:" >&5
21458
sed 's/^/| /' conftest.$ac_ext >&5
21463
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21465
if test "${ac_cv_search_opendir+set}" = set; then
21469
if test "${ac_cv_search_opendir+set}" = set; then
21472
ac_cv_search_opendir=no
21474
rm conftest.$ac_ext
21475
LIBS=$ac_func_search_save_LIBS
21477
{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
21478
echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
21479
ac_res=$ac_cv_search_opendir
21480
if test "$ac_res" != no; then
21481
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21487
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21488
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
21489
if test "${ac_cv_header_stdc+set}" = set; then
21490
echo $ECHO_N "(cached) $ECHO_C" >&6
21492
cat >conftest.$ac_ext <<_ACEOF
21495
cat confdefs.h >>conftest.$ac_ext
21496
cat >>conftest.$ac_ext <<_ACEOF
21497
/* end confdefs.h. */
21498
#include <stdlib.h>
21499
#include <stdarg.h>
21500
#include <string.h>
21511
rm -f conftest.$ac_objext
21512
if { (ac_try="$ac_compile"
21513
case "(($ac_try" in
21514
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21515
*) ac_try_echo=$ac_try;;
21517
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21518
(eval "$ac_compile") 2>conftest.er1
21520
grep -v '^ *+' conftest.er1 >conftest.err
21522
cat conftest.err >&5
21523
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21524
(exit $ac_status); } && {
21525
test -z "$ac_c_werror_flag" ||
21526
test ! -s conftest.err
21527
} && test -s conftest.$ac_objext; then
21528
ac_cv_header_stdc=yes
21530
echo "$as_me: failed program was:" >&5
21531
sed 's/^/| /' conftest.$ac_ext >&5
21533
ac_cv_header_stdc=no
21536
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21538
if test $ac_cv_header_stdc = yes; then
21539
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21540
cat >conftest.$ac_ext <<_ACEOF
21543
cat confdefs.h >>conftest.$ac_ext
21544
cat >>conftest.$ac_ext <<_ACEOF
21545
/* end confdefs.h. */
21546
#include <string.h>
21549
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21550
$EGREP "memchr" >/dev/null 2>&1; then
21553
ac_cv_header_stdc=no
21559
if test $ac_cv_header_stdc = yes; then
21560
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21561
cat >conftest.$ac_ext <<_ACEOF
21564
cat confdefs.h >>conftest.$ac_ext
21565
cat >>conftest.$ac_ext <<_ACEOF
21566
/* end confdefs.h. */
21567
#include <stdlib.h>
21570
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21571
$EGREP "free" >/dev/null 2>&1; then
21574
ac_cv_header_stdc=no
21580
if test $ac_cv_header_stdc = yes; then
21581
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21582
if test "$cross_compiling" = yes; then
21585
cat >conftest.$ac_ext <<_ACEOF
21588
cat confdefs.h >>conftest.$ac_ext
21589
cat >>conftest.$ac_ext <<_ACEOF
21590
/* end confdefs.h. */
21592
#include <stdlib.h>
21593
#if ((' ' & 0x0FF) == 0x020)
21594
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21595
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21597
# define ISLOWER(c) \
21598
(('a' <= (c) && (c) <= 'i') \
21599
|| ('j' <= (c) && (c) <= 'r') \
21600
|| ('s' <= (c) && (c) <= 'z'))
21601
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21604
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21609
for (i = 0; i < 256; i++)
21610
if (XOR (islower (i), ISLOWER (i))
21611
|| toupper (i) != TOUPPER (i))
21616
rm -f conftest$ac_exeext
21617
if { (ac_try="$ac_link"
21618
case "(($ac_try" in
21619
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21620
*) ac_try_echo=$ac_try;;
21622
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21623
(eval "$ac_link") 2>&5
21625
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21626
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21627
{ (case "(($ac_try" in
21628
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21629
*) ac_try_echo=$ac_try;;
21631
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21632
(eval "$ac_try") 2>&5
21634
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21635
(exit $ac_status); }; }; then
21638
echo "$as_me: program exited with status $ac_status" >&5
21639
echo "$as_me: failed program was:" >&5
21640
sed 's/^/| /' conftest.$ac_ext >&5
21642
( exit $ac_status )
21643
ac_cv_header_stdc=no
21645
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21651
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21652
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21653
if test $ac_cv_header_stdc = yes; then
21655
cat >>confdefs.h <<\_ACEOF
21656
#define STDC_HEADERS 1
21661
{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
21662
echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
21663
if test "${ac_cv_header_sys_wait_h+set}" = set; then
21664
echo $ECHO_N "(cached) $ECHO_C" >&6
21666
cat >conftest.$ac_ext <<_ACEOF
21669
cat confdefs.h >>conftest.$ac_ext
21670
cat >>conftest.$ac_ext <<_ACEOF
21671
/* end confdefs.h. */
21672
#include <sys/types.h>
21673
#include <sys/wait.h>
21674
#ifndef WEXITSTATUS
21675
# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
21678
# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
21686
s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
21691
rm -f conftest.$ac_objext
21692
if { (ac_try="$ac_compile"
21693
case "(($ac_try" in
21694
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21695
*) ac_try_echo=$ac_try;;
21697
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21698
(eval "$ac_compile") 2>conftest.er1
21700
grep -v '^ *+' conftest.er1 >conftest.err
21702
cat conftest.err >&5
21703
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21704
(exit $ac_status); } && {
21705
test -z "$ac_c_werror_flag" ||
21706
test ! -s conftest.err
21707
} && test -s conftest.$ac_objext; then
21708
ac_cv_header_sys_wait_h=yes
21710
echo "$as_me: failed program was:" >&5
21711
sed 's/^/| /' conftest.$ac_ext >&5
21713
ac_cv_header_sys_wait_h=no
21716
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21718
{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
21719
echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
21720
if test $ac_cv_header_sys_wait_h = yes; then
21722
cat >>confdefs.h <<\_ACEOF
21723
#define HAVE_SYS_WAIT_H 1
21731
ac_cpp='$CXXCPP $CPPFLAGS'
21732
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21733
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21734
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21737
cat >>confdefs.h <<\_ACEOF
21738
#define HAVE_BOOST_SPIRIT_CORE_HPP
21742
if test "${ac_cv_header_boost_spirit_hpp+set}" = set; then
21743
{ echo "$as_me:$LINENO: checking for boost/spirit.hpp" >&5
21744
echo $ECHO_N "checking for boost/spirit.hpp... $ECHO_C" >&6; }
21745
if test "${ac_cv_header_boost_spirit_hpp+set}" = set; then
21746
echo $ECHO_N "(cached) $ECHO_C" >&6
21748
{ echo "$as_me:$LINENO: result: $ac_cv_header_boost_spirit_hpp" >&5
21749
echo "${ECHO_T}$ac_cv_header_boost_spirit_hpp" >&6; }
21751
# Is the header compilable?
21752
{ echo "$as_me:$LINENO: checking boost/spirit.hpp usability" >&5
21753
echo $ECHO_N "checking boost/spirit.hpp usability... $ECHO_C" >&6; }
21754
cat >conftest.$ac_ext <<_ACEOF
21757
cat confdefs.h >>conftest.$ac_ext
21758
cat >>conftest.$ac_ext <<_ACEOF
21759
/* end confdefs.h. */
21760
$ac_includes_default
21761
#include <boost/spirit.hpp>
21763
rm -f conftest.$ac_objext
21764
if { (ac_try="$ac_compile"
21765
case "(($ac_try" in
21766
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21767
*) ac_try_echo=$ac_try;;
21769
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21770
(eval "$ac_compile") 2>conftest.er1
21772
grep -v '^ *+' conftest.er1 >conftest.err
21774
cat conftest.err >&5
21775
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21776
(exit $ac_status); } && {
21777
test -z "$ac_cxx_werror_flag" ||
21778
test ! -s conftest.err
21779
} && test -s conftest.$ac_objext; then
21780
ac_header_compiler=yes
21782
echo "$as_me: failed program was:" >&5
21783
sed 's/^/| /' conftest.$ac_ext >&5
21785
ac_header_compiler=no
21788
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21789
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21790
echo "${ECHO_T}$ac_header_compiler" >&6; }
21792
# Is the header present?
21793
{ echo "$as_me:$LINENO: checking boost/spirit.hpp presence" >&5
21794
echo $ECHO_N "checking boost/spirit.hpp presence... $ECHO_C" >&6; }
21795
cat >conftest.$ac_ext <<_ACEOF
21798
cat confdefs.h >>conftest.$ac_ext
21799
cat >>conftest.$ac_ext <<_ACEOF
21800
/* end confdefs.h. */
21801
#include <boost/spirit.hpp>
21803
if { (ac_try="$ac_cpp conftest.$ac_ext"
21804
case "(($ac_try" in
21805
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21806
*) ac_try_echo=$ac_try;;
21808
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21809
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21811
grep -v '^ *+' conftest.er1 >conftest.err
21813
cat conftest.err >&5
21814
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21815
(exit $ac_status); } >/dev/null && {
21816
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
21817
test ! -s conftest.err
21819
ac_header_preproc=yes
21821
echo "$as_me: failed program was:" >&5
21822
sed 's/^/| /' conftest.$ac_ext >&5
21824
ac_header_preproc=no
21827
rm -f conftest.err conftest.$ac_ext
21828
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21829
echo "${ECHO_T}$ac_header_preproc" >&6; }
21831
# So? What about this header?
21832
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21834
{ echo "$as_me:$LINENO: WARNING: boost/spirit.hpp: accepted by the compiler, rejected by the preprocessor!" >&5
21835
echo "$as_me: WARNING: boost/spirit.hpp: accepted by the compiler, rejected by the preprocessor!" >&2;}
21836
{ echo "$as_me:$LINENO: WARNING: boost/spirit.hpp: proceeding with the compiler's result" >&5
21837
echo "$as_me: WARNING: boost/spirit.hpp: proceeding with the compiler's result" >&2;}
21838
ac_header_preproc=yes
21841
{ echo "$as_me:$LINENO: WARNING: boost/spirit.hpp: present but cannot be compiled" >&5
21842
echo "$as_me: WARNING: boost/spirit.hpp: present but cannot be compiled" >&2;}
21843
{ echo "$as_me:$LINENO: WARNING: boost/spirit.hpp: check for missing prerequisite headers?" >&5
21844
echo "$as_me: WARNING: boost/spirit.hpp: check for missing prerequisite headers?" >&2;}
21845
{ echo "$as_me:$LINENO: WARNING: boost/spirit.hpp: see the Autoconf documentation" >&5
21846
echo "$as_me: WARNING: boost/spirit.hpp: see the Autoconf documentation" >&2;}
21847
{ echo "$as_me:$LINENO: WARNING: boost/spirit.hpp: section \"Present But Cannot Be Compiled\"" >&5
21848
echo "$as_me: WARNING: boost/spirit.hpp: section \"Present But Cannot Be Compiled\"" >&2;}
21849
{ echo "$as_me:$LINENO: WARNING: boost/spirit.hpp: proceeding with the preprocessor's result" >&5
21850
echo "$as_me: WARNING: boost/spirit.hpp: proceeding with the preprocessor's result" >&2;}
21851
{ echo "$as_me:$LINENO: WARNING: boost/spirit.hpp: in the future, the compiler will take precedence" >&5
21852
echo "$as_me: WARNING: boost/spirit.hpp: in the future, the compiler will take precedence" >&2;}
21854
## -------------------------------------------- ##
21855
## Report this to Sage Weil <sage@newdream.net> ##
21856
## -------------------------------------------- ##
21858
) | sed "s/^/$as_me: WARNING: /" >&2
21861
{ echo "$as_me:$LINENO: checking for boost/spirit.hpp" >&5
21862
echo $ECHO_N "checking for boost/spirit.hpp... $ECHO_C" >&6; }
21863
if test "${ac_cv_header_boost_spirit_hpp+set}" = set; then
21864
echo $ECHO_N "(cached) $ECHO_C" >&6
21866
ac_cv_header_boost_spirit_hpp=$ac_header_preproc
21868
{ echo "$as_me:$LINENO: result: $ac_cv_header_boost_spirit_hpp" >&5
21869
echo "${ECHO_T}$ac_cv_header_boost_spirit_hpp" >&6; }
21872
if test $ac_cv_header_boost_spirit_hpp = yes; then
21873
cat >>confdefs.h <<\_ACEOF
21874
#define HAVE_BOOST_SPIRIT_CORE_HPP 1
21878
{ { echo "$as_me:$LINENO: error: Sorry you need to install the Boost spirit parser library (libboost-dev on debian)" >&5
21879
echo "$as_me: error: Sorry you need to install the Boost spirit parser library (libboost-dev on debian)" >&2;}
21880
{ (exit 1); exit 1; }; }
21886
ac_cpp='$CPP $CPPFLAGS'
21887
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21888
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21889
ac_compiler_gnu=$ac_cv_c_compiler_gnu
21892
if test "${ac_cv_header_histedit_h+set}" = set; then
21893
{ echo "$as_me:$LINENO: checking for histedit.h" >&5
21894
echo $ECHO_N "checking for histedit.h... $ECHO_C" >&6; }
21895
if test "${ac_cv_header_histedit_h+set}" = set; then
21896
echo $ECHO_N "(cached) $ECHO_C" >&6
21898
{ echo "$as_me:$LINENO: result: $ac_cv_header_histedit_h" >&5
21899
echo "${ECHO_T}$ac_cv_header_histedit_h" >&6; }
21901
# Is the header compilable?
21902
{ echo "$as_me:$LINENO: checking histedit.h usability" >&5
21903
echo $ECHO_N "checking histedit.h usability... $ECHO_C" >&6; }
21904
cat >conftest.$ac_ext <<_ACEOF
21907
cat confdefs.h >>conftest.$ac_ext
21908
cat >>conftest.$ac_ext <<_ACEOF
21909
/* end confdefs.h. */
21910
$ac_includes_default
21911
#include <histedit.h>
21913
rm -f conftest.$ac_objext
21914
if { (ac_try="$ac_compile"
21915
case "(($ac_try" in
21916
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21917
*) ac_try_echo=$ac_try;;
21919
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21920
(eval "$ac_compile") 2>conftest.er1
21922
grep -v '^ *+' conftest.er1 >conftest.err
21924
cat conftest.err >&5
21925
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21926
(exit $ac_status); } && {
21927
test -z "$ac_c_werror_flag" ||
21928
test ! -s conftest.err
21929
} && test -s conftest.$ac_objext; then
21930
ac_header_compiler=yes
21932
echo "$as_me: failed program was:" >&5
21933
sed 's/^/| /' conftest.$ac_ext >&5
21935
ac_header_compiler=no
21938
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21939
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21940
echo "${ECHO_T}$ac_header_compiler" >&6; }
21942
# Is the header present?
21943
{ echo "$as_me:$LINENO: checking histedit.h presence" >&5
21944
echo $ECHO_N "checking histedit.h presence... $ECHO_C" >&6; }
21945
cat >conftest.$ac_ext <<_ACEOF
21948
cat confdefs.h >>conftest.$ac_ext
21949
cat >>conftest.$ac_ext <<_ACEOF
21950
/* end confdefs.h. */
21951
#include <histedit.h>
21953
if { (ac_try="$ac_cpp conftest.$ac_ext"
21954
case "(($ac_try" in
21955
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21956
*) ac_try_echo=$ac_try;;
21958
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21959
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21961
grep -v '^ *+' conftest.er1 >conftest.err
21963
cat conftest.err >&5
21964
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21965
(exit $ac_status); } >/dev/null && {
21966
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21967
test ! -s conftest.err
21969
ac_header_preproc=yes
21971
echo "$as_me: failed program was:" >&5
21972
sed 's/^/| /' conftest.$ac_ext >&5
21974
ac_header_preproc=no
21977
rm -f conftest.err conftest.$ac_ext
21978
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21979
echo "${ECHO_T}$ac_header_preproc" >&6; }
21981
# So? What about this header?
21982
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21984
{ echo "$as_me:$LINENO: WARNING: histedit.h: accepted by the compiler, rejected by the preprocessor!" >&5
21985
echo "$as_me: WARNING: histedit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21986
{ echo "$as_me:$LINENO: WARNING: histedit.h: proceeding with the compiler's result" >&5
21987
echo "$as_me: WARNING: histedit.h: proceeding with the compiler's result" >&2;}
21988
ac_header_preproc=yes
21991
{ echo "$as_me:$LINENO: WARNING: histedit.h: present but cannot be compiled" >&5
21992
echo "$as_me: WARNING: histedit.h: present but cannot be compiled" >&2;}
21993
{ echo "$as_me:$LINENO: WARNING: histedit.h: check for missing prerequisite headers?" >&5
21994
echo "$as_me: WARNING: histedit.h: check for missing prerequisite headers?" >&2;}
21995
{ echo "$as_me:$LINENO: WARNING: histedit.h: see the Autoconf documentation" >&5
21996
echo "$as_me: WARNING: histedit.h: see the Autoconf documentation" >&2;}
21997
{ echo "$as_me:$LINENO: WARNING: histedit.h: section \"Present But Cannot Be Compiled\"" >&5
21998
echo "$as_me: WARNING: histedit.h: section \"Present But Cannot Be Compiled\"" >&2;}
21999
{ echo "$as_me:$LINENO: WARNING: histedit.h: proceeding with the preprocessor's result" >&5
22000
echo "$as_me: WARNING: histedit.h: proceeding with the preprocessor's result" >&2;}
22001
{ echo "$as_me:$LINENO: WARNING: histedit.h: in the future, the compiler will take precedence" >&5
22002
echo "$as_me: WARNING: histedit.h: in the future, the compiler will take precedence" >&2;}
22004
## -------------------------------------------- ##
22005
## Report this to Sage Weil <sage@newdream.net> ##
22006
## -------------------------------------------- ##
22008
) | sed "s/^/$as_me: WARNING: /" >&2
22011
{ echo "$as_me:$LINENO: checking for histedit.h" >&5
22012
echo $ECHO_N "checking for histedit.h... $ECHO_C" >&6; }
22013
if test "${ac_cv_header_histedit_h+set}" = set; then
22014
echo $ECHO_N "(cached) $ECHO_C" >&6
22016
ac_cv_header_histedit_h=$ac_header_preproc
22018
{ echo "$as_me:$LINENO: result: $ac_cv_header_histedit_h" >&5
22019
echo "${ECHO_T}$ac_cv_header_histedit_h" >&6; }
22022
if test $ac_cv_header_histedit_h = yes; then
22025
{ { echo "$as_me:$LINENO: error: Sorry you need histedit.h (libedit-dev on debian)" >&5
22026
echo "$as_me: error: Sorry you need histedit.h (libedit-dev on debian)" >&2;}
22027
{ (exit 1); exit 1; }; }
22032
if test "${ac_cv_header_openssl_md5_h+set}" = set; then
22033
{ echo "$as_me:$LINENO: checking for openssl/md5.h" >&5
22034
echo $ECHO_N "checking for openssl/md5.h... $ECHO_C" >&6; }
22035
if test "${ac_cv_header_openssl_md5_h+set}" = set; then
22036
echo $ECHO_N "(cached) $ECHO_C" >&6
22038
{ echo "$as_me:$LINENO: result: $ac_cv_header_openssl_md5_h" >&5
22039
echo "${ECHO_T}$ac_cv_header_openssl_md5_h" >&6; }
22041
# Is the header compilable?
22042
{ echo "$as_me:$LINENO: checking openssl/md5.h usability" >&5
22043
echo $ECHO_N "checking openssl/md5.h usability... $ECHO_C" >&6; }
22044
cat >conftest.$ac_ext <<_ACEOF
22047
cat confdefs.h >>conftest.$ac_ext
22048
cat >>conftest.$ac_ext <<_ACEOF
22049
/* end confdefs.h. */
22050
$ac_includes_default
22051
#include <openssl/md5.h>
22053
rm -f conftest.$ac_objext
22054
if { (ac_try="$ac_compile"
22055
case "(($ac_try" in
22056
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22057
*) ac_try_echo=$ac_try;;
22059
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22060
(eval "$ac_compile") 2>conftest.er1
22062
grep -v '^ *+' conftest.er1 >conftest.err
22064
cat conftest.err >&5
22065
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22066
(exit $ac_status); } && {
22067
test -z "$ac_c_werror_flag" ||
22068
test ! -s conftest.err
22069
} && test -s conftest.$ac_objext; then
22070
ac_header_compiler=yes
22072
echo "$as_me: failed program was:" >&5
22073
sed 's/^/| /' conftest.$ac_ext >&5
22075
ac_header_compiler=no
22078
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22079
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22080
echo "${ECHO_T}$ac_header_compiler" >&6; }
22082
# Is the header present?
22083
{ echo "$as_me:$LINENO: checking openssl/md5.h presence" >&5
22084
echo $ECHO_N "checking openssl/md5.h presence... $ECHO_C" >&6; }
22085
cat >conftest.$ac_ext <<_ACEOF
22088
cat confdefs.h >>conftest.$ac_ext
22089
cat >>conftest.$ac_ext <<_ACEOF
22090
/* end confdefs.h. */
22091
#include <openssl/md5.h>
22093
if { (ac_try="$ac_cpp conftest.$ac_ext"
22094
case "(($ac_try" in
22095
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22096
*) ac_try_echo=$ac_try;;
22098
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22099
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22101
grep -v '^ *+' conftest.er1 >conftest.err
22103
cat conftest.err >&5
22104
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22105
(exit $ac_status); } >/dev/null && {
22106
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22107
test ! -s conftest.err
22109
ac_header_preproc=yes
22111
echo "$as_me: failed program was:" >&5
22112
sed 's/^/| /' conftest.$ac_ext >&5
22114
ac_header_preproc=no
22117
rm -f conftest.err conftest.$ac_ext
22118
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22119
echo "${ECHO_T}$ac_header_preproc" >&6; }
22121
# So? What about this header?
22122
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22124
{ echo "$as_me:$LINENO: WARNING: openssl/md5.h: accepted by the compiler, rejected by the preprocessor!" >&5
22125
echo "$as_me: WARNING: openssl/md5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22126
{ echo "$as_me:$LINENO: WARNING: openssl/md5.h: proceeding with the compiler's result" >&5
22127
echo "$as_me: WARNING: openssl/md5.h: proceeding with the compiler's result" >&2;}
22128
ac_header_preproc=yes
22131
{ echo "$as_me:$LINENO: WARNING: openssl/md5.h: present but cannot be compiled" >&5
22132
echo "$as_me: WARNING: openssl/md5.h: present but cannot be compiled" >&2;}
22133
{ echo "$as_me:$LINENO: WARNING: openssl/md5.h: check for missing prerequisite headers?" >&5
22134
echo "$as_me: WARNING: openssl/md5.h: check for missing prerequisite headers?" >&2;}
22135
{ echo "$as_me:$LINENO: WARNING: openssl/md5.h: see the Autoconf documentation" >&5
22136
echo "$as_me: WARNING: openssl/md5.h: see the Autoconf documentation" >&2;}
22137
{ echo "$as_me:$LINENO: WARNING: openssl/md5.h: section \"Present But Cannot Be Compiled\"" >&5
22138
echo "$as_me: WARNING: openssl/md5.h: section \"Present But Cannot Be Compiled\"" >&2;}
22139
{ echo "$as_me:$LINENO: WARNING: openssl/md5.h: proceeding with the preprocessor's result" >&5
22140
echo "$as_me: WARNING: openssl/md5.h: proceeding with the preprocessor's result" >&2;}
22141
{ echo "$as_me:$LINENO: WARNING: openssl/md5.h: in the future, the compiler will take precedence" >&5
22142
echo "$as_me: WARNING: openssl/md5.h: in the future, the compiler will take precedence" >&2;}
22144
## -------------------------------------------- ##
22145
## Report this to Sage Weil <sage@newdream.net> ##
22146
## -------------------------------------------- ##
22148
) | sed "s/^/$as_me: WARNING: /" >&2
22151
{ echo "$as_me:$LINENO: checking for openssl/md5.h" >&5
22152
echo $ECHO_N "checking for openssl/md5.h... $ECHO_C" >&6; }
22153
if test "${ac_cv_header_openssl_md5_h+set}" = set; then
22154
echo $ECHO_N "(cached) $ECHO_C" >&6
22156
ac_cv_header_openssl_md5_h=$ac_header_preproc
22158
{ echo "$as_me:$LINENO: result: $ac_cv_header_openssl_md5_h" >&5
22159
echo "${ECHO_T}$ac_cv_header_openssl_md5_h" >&6; }
22162
if test $ac_cv_header_openssl_md5_h = yes; then
22165
{ { echo "$as_me:$LINENO: error: Sorry you need openssl dev files (libssl-dev on debian)" >&5
22166
echo "$as_me: error: Sorry you need openssl dev files (libssl-dev on debian)" >&2;}
22167
{ (exit 1); exit 1; }; }
22186
for ac_header in sys/xattr.h arpa/inet.h netdb.h netinet/in.h sys/file.h sys/ioctl.h sys/mount.h sys/param.h sys/socket.h sys/statvfs.h sys/time.h sys/vfs.h syslog.h utime.h
22188
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22189
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22190
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
22191
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22192
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22193
echo $ECHO_N "(cached) $ECHO_C" >&6
22195
ac_res=`eval echo '${'$as_ac_Header'}'`
22196
{ echo "$as_me:$LINENO: result: $ac_res" >&5
22197
echo "${ECHO_T}$ac_res" >&6; }
22199
# Is the header compilable?
22200
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
22201
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22202
cat >conftest.$ac_ext <<_ACEOF
22205
cat confdefs.h >>conftest.$ac_ext
22206
cat >>conftest.$ac_ext <<_ACEOF
22207
/* end confdefs.h. */
22208
$ac_includes_default
22209
#include <$ac_header>
22211
rm -f conftest.$ac_objext
22212
if { (ac_try="$ac_compile"
22213
case "(($ac_try" in
22214
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22215
*) ac_try_echo=$ac_try;;
22217
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22218
(eval "$ac_compile") 2>conftest.er1
22220
grep -v '^ *+' conftest.er1 >conftest.err
22222
cat conftest.err >&5
22223
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22224
(exit $ac_status); } && {
22225
test -z "$ac_c_werror_flag" ||
22226
test ! -s conftest.err
22227
} && test -s conftest.$ac_objext; then
22228
ac_header_compiler=yes
22230
echo "$as_me: failed program was:" >&5
22231
sed 's/^/| /' conftest.$ac_ext >&5
22233
ac_header_compiler=no
22236
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22237
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22238
echo "${ECHO_T}$ac_header_compiler" >&6; }
22240
# Is the header present?
22241
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
22242
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22243
cat >conftest.$ac_ext <<_ACEOF
22246
cat confdefs.h >>conftest.$ac_ext
22247
cat >>conftest.$ac_ext <<_ACEOF
22248
/* end confdefs.h. */
22249
#include <$ac_header>
22251
if { (ac_try="$ac_cpp conftest.$ac_ext"
22252
case "(($ac_try" in
22253
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22254
*) ac_try_echo=$ac_try;;
22256
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22257
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22259
grep -v '^ *+' conftest.er1 >conftest.err
22261
cat conftest.err >&5
22262
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22263
(exit $ac_status); } >/dev/null && {
22264
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22265
test ! -s conftest.err
22267
ac_header_preproc=yes
22269
echo "$as_me: failed program was:" >&5
22270
sed 's/^/| /' conftest.$ac_ext >&5
22272
ac_header_preproc=no
22275
rm -f conftest.err conftest.$ac_ext
22276
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22277
echo "${ECHO_T}$ac_header_preproc" >&6; }
22279
# So? What about this header?
22280
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22282
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22283
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22284
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22285
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22286
ac_header_preproc=yes
22289
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22290
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22291
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22292
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22293
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22294
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22295
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22296
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22297
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22298
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22299
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22300
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22302
## -------------------------------------------- ##
22303
## Report this to Sage Weil <sage@newdream.net> ##
22304
## -------------------------------------------- ##
22306
) | sed "s/^/$as_me: WARNING: /" >&2
22309
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
22310
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22311
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22312
echo $ECHO_N "(cached) $ECHO_C" >&6
22314
eval "$as_ac_Header=\$ac_header_preproc"
22316
ac_res=`eval echo '${'$as_ac_Header'}'`
22317
{ echo "$as_me:$LINENO: result: $ac_res" >&5
22318
echo "${ECHO_T}$ac_res" >&6; }
22321
if test `eval echo '${'$as_ac_Header'}'` = yes; then
22322
cat >>confdefs.h <<_ACEOF
22323
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22332
{ echo "$as_me:$LINENO: checking for sync_file_range" >&5
22333
echo $ECHO_N "checking for sync_file_range... $ECHO_C" >&6; }
22334
if test "${ac_cv_func_sync_file_range+set}" = set; then
22335
echo $ECHO_N "(cached) $ECHO_C" >&6
22337
cat >conftest.$ac_ext <<_ACEOF
22340
cat confdefs.h >>conftest.$ac_ext
22341
cat >>conftest.$ac_ext <<_ACEOF
22342
/* end confdefs.h. */
22343
/* Define sync_file_range to an innocuous variant, in case <limits.h> declares sync_file_range.
22344
For example, HP-UX 11i <limits.h> declares gettimeofday. */
22345
#define sync_file_range innocuous_sync_file_range
22347
/* System header to define __stub macros and hopefully few prototypes,
22348
which can conflict with char sync_file_range (); below.
22349
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22350
<limits.h> exists even on freestanding compilers. */
22353
# include <limits.h>
22355
# include <assert.h>
22358
#undef sync_file_range
22360
/* Override any GCC internal prototype to avoid an error.
22361
Use char because int might match the return type of a GCC
22362
builtin and then its argument prototype would still apply. */
22366
char sync_file_range ();
22367
/* The GNU C library defines this for functions which it implements
22368
to always fail with ENOSYS. Some functions are actually named
22369
something starting with __ and the normal name is an alias. */
22370
#if defined __stub_sync_file_range || defined __stub___sync_file_range
22377
return sync_file_range ();
22382
rm -f conftest.$ac_objext conftest$ac_exeext
22383
if { (ac_try="$ac_link"
22384
case "(($ac_try" in
22385
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22386
*) ac_try_echo=$ac_try;;
22388
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22389
(eval "$ac_link") 2>conftest.er1
22391
grep -v '^ *+' conftest.er1 >conftest.err
22393
cat conftest.err >&5
22394
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22395
(exit $ac_status); } && {
22396
test -z "$ac_c_werror_flag" ||
22397
test ! -s conftest.err
22398
} && test -s conftest$ac_exeext &&
22399
$as_test_x conftest$ac_exeext; then
22400
ac_cv_func_sync_file_range=yes
22402
echo "$as_me: failed program was:" >&5
22403
sed 's/^/| /' conftest.$ac_ext >&5
22405
ac_cv_func_sync_file_range=no
22408
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22409
conftest$ac_exeext conftest.$ac_ext
22411
{ echo "$as_me:$LINENO: result: $ac_cv_func_sync_file_range" >&5
22412
echo "${ECHO_T}$ac_cv_func_sync_file_range" >&6; }
22413
if test $ac_cv_func_sync_file_range = yes; then
22415
cat >>confdefs.h <<\_ACEOF
22416
#define HAVE_SYNC_FILE_RANGE
22422
# Checks for typedefs, structures, and compiler characteristics.
22436
#AC_CHECK_MEMBERS([struct stat.st_blksize])
22437
#AC_STRUCT_ST_BLOCKS
22438
#AC_CHECK_MEMBERS([struct stat.st_rdev])
22446
# Checks for library functions.
22448
#AC_FUNC_CLOSEDIR_VOID
22449
#AC_FUNC_ERROR_AT_LINE
22451
#AC_PROG_GCC_TRADITIONAL
22453
#AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK
22454
#AC_FUNC_MALLOC # this causes annoying rpl_malloc error on some machines; skip it
22458
#AC_FUNC_SELECT_ARGTYPES
22461
#AC_FUNC_UTIME_NULL
22462
#AC_CHECK_FUNCS([bzero fchdir fdatasync floor ftruncate getcwd gethostbyname gethostname gettimeofday inet_ntoa localtime_r memmove memset mkdir munmap pow rmdir select socket sqrt strcasecmp strchr strerror strstr utime])
22464
ac_config_headers="$ac_config_headers src/acconfig.h"
22466
ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile ceph.spec"
22468
cat >confcache <<\_ACEOF
22469
# This file is a shell script that caches the results of configure
22470
# tests run on this system so they can be shared between configure
22471
# scripts and configure runs, see configure's option --config-cache.
22472
# It is not useful on other systems. If it contains results you don't
22473
# want to keep, you may remove or edit it.
22475
# config.status only pays attention to the cache file if you give it
22476
# the --recheck option to rerun configure.
22478
# `ac_cv_env_foo' variables (set or unset) will be overridden when
22479
# loading this file, other *unset* `ac_cv_foo' will be assigned the
22480
# following values.
22484
# The following way of writing the cache mishandles newlines in values,
22485
# but we know of no workaround that is simple, portable, and efficient.
22486
# So, we kill variables containing newlines.
22487
# Ultrix sh set writes to stderr and can't be redirected directly,
22488
# and sets the high bit in the cache file unless we assign to the vars.
22490
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22491
eval ac_val=\$$ac_var
22495
*_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22496
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22499
_ | IFS | as_nl) ;; #(
22500
*) $as_unset $ac_var ;;
22506
case $as_nl`(ac_space=' '; set) 2>&1` in #(
22507
*${as_nl}ac_space=\ *)
22508
# `set' does not quote correctly, so add quotes (double-quote
22509
# substitution turns \\\\ into \\, and sed turns \\ into \).
22512
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22515
# `set' quotes correctly as required by POSIX, so do not add quotes.
22516
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22525
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22527
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22529
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22530
if test -w "$cache_file"; then
22531
test "x$cache_file" != "x/dev/null" &&
22532
{ echo "$as_me:$LINENO: updating cache $cache_file" >&5
22533
echo "$as_me: updating cache $cache_file" >&6;}
22534
cat confcache >$cache_file
22536
{ echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22537
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22542
test "x$prefix" = xNONE && prefix=$ac_default_prefix
22543
# Let make expand exec_prefix.
22544
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22546
DEFS=-DHAVE_CONFIG_H
22550
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22551
# 1. Remove the extension, and $U if already installed.
22552
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22553
ac_i=`echo "$ac_i" | sed "$ac_script"`
22554
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22555
# will be set to the directory where LIBOBJS objects are built.
22556
ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22557
ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22559
LIBOBJS=$ac_libobjs
22561
LTLIBOBJS=$ac_ltlibobjs
22564
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22565
{ { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22566
Usually this means the macro was only invoked conditionally." >&5
22567
echo "$as_me: error: conditional \"AMDEP\" was never defined.
22568
Usually this means the macro was only invoked conditionally." >&2;}
22569
{ (exit 1); exit 1; }; }
22571
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22572
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22573
Usually this means the macro was only invoked conditionally." >&5
22574
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22575
Usually this means the macro was only invoked conditionally." >&2;}
22576
{ (exit 1); exit 1; }; }
22578
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22579
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22580
Usually this means the macro was only invoked conditionally." >&5
22581
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22582
Usually this means the macro was only invoked conditionally." >&2;}
22583
{ (exit 1); exit 1; }; }
22585
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22586
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22587
Usually this means the macro was only invoked conditionally." >&5
22588
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22589
Usually this means the macro was only invoked conditionally." >&2;}
22590
{ (exit 1); exit 1; }; }
22592
if test -z "${WITH_DEBUG_TRUE}" && test -z "${WITH_DEBUG_FALSE}"; then
22593
{ { echo "$as_me:$LINENO: error: conditional \"WITH_DEBUG\" was never defined.
22594
Usually this means the macro was only invoked conditionally." >&5
22595
echo "$as_me: error: conditional \"WITH_DEBUG\" was never defined.
22596
Usually this means the macro was only invoked conditionally." >&2;}
22597
{ (exit 1); exit 1; }; }
22599
if test -z "${WITH_RADOSGW_TRUE}" && test -z "${WITH_RADOSGW_FALSE}"; then
22600
{ { echo "$as_me:$LINENO: error: conditional \"WITH_RADOSGW\" was never defined.
22601
Usually this means the macro was only invoked conditionally." >&5
22602
echo "$as_me: error: conditional \"WITH_RADOSGW\" was never defined.
22603
Usually this means the macro was only invoked conditionally." >&2;}
22604
{ (exit 1); exit 1; }; }
22606
if test -z "${WITH_FUSE_TRUE}" && test -z "${WITH_FUSE_FALSE}"; then
22607
{ { echo "$as_me:$LINENO: error: conditional \"WITH_FUSE\" was never defined.
22608
Usually this means the macro was only invoked conditionally." >&5
22609
echo "$as_me: error: conditional \"WITH_FUSE\" was never defined.
22610
Usually this means the macro was only invoked conditionally." >&2;}
22611
{ (exit 1); exit 1; }; }
22613
if test -z "${WITH_HADOOPCLIENT_TRUE}" && test -z "${WITH_HADOOPCLIENT_FALSE}"; then
22614
{ { echo "$as_me:$LINENO: error: conditional \"WITH_HADOOPCLIENT\" was never defined.
22615
Usually this means the macro was only invoked conditionally." >&5
22616
echo "$as_me: error: conditional \"WITH_HADOOPCLIENT\" was never defined.
22617
Usually this means the macro was only invoked conditionally." >&2;}
22618
{ (exit 1); exit 1; }; }
22620
if test -z "${WITH_LIBATOMIC_TRUE}" && test -z "${WITH_LIBATOMIC_FALSE}"; then
22621
{ { echo "$as_me:$LINENO: error: conditional \"WITH_LIBATOMIC\" was never defined.
22622
Usually this means the macro was only invoked conditionally." >&5
22623
echo "$as_me: error: conditional \"WITH_LIBATOMIC\" was never defined.
22624
Usually this means the macro was only invoked conditionally." >&2;}
22625
{ (exit 1); exit 1; }; }
22628
: ${CONFIG_STATUS=./config.status}
22629
ac_clean_files_save=$ac_clean_files
22630
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22631
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22632
echo "$as_me: creating $CONFIG_STATUS" >&6;}
22633
cat >$CONFIG_STATUS <<_ACEOF
22635
# Generated by $as_me.
22636
# Run this file to recreate the current configuration.
22637
# Compiler output produced by configure, useful for debugging
22638
# configure, is in config.log if it exists.
22641
ac_cs_recheck=false
22643
SHELL=\${CONFIG_SHELL-$SHELL}
22646
cat >>$CONFIG_STATUS <<\_ACEOF
22647
## --------------------- ##
22648
## M4sh Initialization. ##
22649
## --------------------- ##
22651
# Be more Bourne compatible
22652
DUALCASE=1; export DUALCASE # for MKS sh
22653
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22656
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22657
# is contrary to our usage. Disable this feature.
22658
alias -g '${1+"$@"}'='"$@"'
22659
setopt NO_GLOB_SUBST
22661
case `(set -o) 2>/dev/null` in
22662
*posix*) set -o posix ;;
22671
# Avoid depending upon Character Ranges.
22672
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22673
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22674
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22675
as_cr_digits='0123456789'
22676
as_cr_alnum=$as_cr_Letters$as_cr_digits
22678
# The user is always right.
22679
if test "${PATH_SEPARATOR+set}" != set; then
22680
echo "#! /bin/sh" >conf$$.sh
22681
echo "exit 0" >>conf$$.sh
22683
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22691
# Support unset when possible.
22692
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22700
# We need space, tab and new line, in precisely that order. Quoting is
22701
# there to prevent editors from complaining about space-tab.
22702
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
22703
# splitting by setting IFS to empty value.)
22708
# Find who we are. Look in the path if we contain no directory separator.
22710
*[\\/]* ) as_myself=$0 ;;
22711
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22712
for as_dir in $PATH
22715
test -z "$as_dir" && as_dir=.
22716
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22722
# We did not find ourselves, most probably we were run as `sh COMMAND'
22723
# in which case we are not to be found in the path.
22724
if test "x$as_myself" = x; then
22727
if test ! -f "$as_myself"; then
22728
echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22729
{ (exit 1); exit 1; }
22732
# Work around bugs in pre-3.0 UWIN ksh.
22733
for as_var in ENV MAIL MAILPATH
22734
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22742
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22743
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22744
LC_TELEPHONE LC_TIME
22746
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22747
eval $as_var=C; export $as_var
22749
($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22753
# Required to use basename.
22754
if expr a : '\(a\)' >/dev/null 2>&1 &&
22755
test "X`expr 00001 : '.*\(...\)'`" = X001; then
22761
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22762
as_basename=basename
22768
# Name of the executable.
22769
as_me=`$as_basename -- "$0" ||
22770
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22771
X"$0" : 'X\(//\)$' \| \
22772
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22774
sed '/^.*\/\([^/][^/]*\)\/*$/{
22793
as_lineno_1=$LINENO
22794
as_lineno_2=$LINENO
22795
test "x$as_lineno_1" != "x$as_lineno_2" &&
22796
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22798
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22799
# uniformly replaced by the line number. The first 'sed' inserts a
22800
# line-number line after each line using $LINENO; the second 'sed'
22801
# does the real work. The second script uses 'N' to pair each
22802
# line-number line with the line containing $LINENO, and appends
22803
# trailing '-' during substitution so that $LINENO is not a special
22804
# case at line end.
22805
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22806
# scripts with optimization help from Paolo Bonzini. Blame Lee
22807
# E. McMahon (1931-1989) for sed's syntax. :-)
22819
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22822
' >$as_me.lineno &&
22823
chmod +x "$as_me.lineno" ||
22824
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22825
{ (exit 1); exit 1; }; }
22827
# Don't try to exec as it changes $[0], causing all sort of problems
22828
# (the dirname of $[0] is not the place where we might find the
22829
# original and so on. Autoconf is especially sensitive to this).
22830
. "./$as_me.lineno"
22831
# Exit status is that of the last command.
22836
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22842
ECHO_C= ECHO_N= ECHO_T=
22843
case `echo -n x` in
22845
case `echo 'x\c'` in
22846
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
22853
if expr a : '\(a\)' >/dev/null 2>&1 &&
22854
test "X`expr 00001 : '.*\(...\)'`" = X001; then
22860
rm -f conf$$ conf$$.exe conf$$.file
22861
if test -d conf$$.dir; then
22862
rm -f conf$$.dir/conf$$.file
22868
if ln -s conf$$.file conf$$ 2>/dev/null; then
22870
# ... but there are two gotchas:
22871
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22872
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22873
# In both cases, we have to default to `cp -p'.
22874
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22876
elif ln conf$$.file conf$$ 2>/dev/null; then
22881
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22882
rmdir conf$$.dir 2>/dev/null
22884
if mkdir -p . 2>/dev/null; then
22887
test -d ./-p && rmdir ./-p
22891
if test -x / >/dev/null 2>&1; then
22892
as_test_x='test -x'
22894
if ls -dL / >/dev/null 2>&1; then
22901
if test -d "$1"; then
22907
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
22908
???[sx]*):;;*)false;;esac;fi
22912
as_executable_p=$as_test_x
22914
# Sed expression to map a string onto a valid CPP name.
22915
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22917
# Sed expression to map a string onto a valid variable name.
22918
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22923
# Save the log message, to keep $[0] and so on meaningful, and to
22924
# report actual input values of CONFIG_FILES etc. instead of their
22925
# values after options handling.
22927
This file was extended by Ceph distributed file system $as_me .1, which was
22928
generated by GNU Autoconf 2.61. Invocation command line was
22930
CONFIG_FILES = $CONFIG_FILES
22931
CONFIG_HEADERS = $CONFIG_HEADERS
22932
CONFIG_LINKS = $CONFIG_LINKS
22933
CONFIG_COMMANDS = $CONFIG_COMMANDS
22936
on `(hostname || uname -n) 2>/dev/null | sed 1q`
22941
cat >>$CONFIG_STATUS <<_ACEOF
22942
# Files that config.status was made for.
22943
config_files="$ac_config_files"
22944
config_headers="$ac_config_headers"
22945
config_commands="$ac_config_commands"
22949
cat >>$CONFIG_STATUS <<\_ACEOF
22951
\`$as_me' instantiates files from templates according to the
22952
current configuration.
22954
Usage: $0 [OPTIONS] [FILE]...
22956
-h, --help print this help, then exit
22957
-V, --version print version number and configuration settings, then exit
22958
-q, --quiet do not print progress messages
22959
-d, --debug don't remove temporary files
22960
--recheck update $as_me by reconfiguring in the same conditions
22961
--file=FILE[:TEMPLATE]
22962
instantiate the configuration file FILE
22963
--header=FILE[:TEMPLATE]
22964
instantiate the configuration header FILE
22966
Configuration files:
22969
Configuration headers:
22972
Configuration commands:
22975
Report bugs to <bug-autoconf@gnu.org>."
22978
cat >>$CONFIG_STATUS <<_ACEOF
22980
Ceph distributed file system config.status .1
22981
configured by $0, generated by GNU Autoconf 2.61,
22982
with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22984
Copyright (C) 2006 Free Software Foundation, Inc.
22985
This config.status script is free software; the Free Software Foundation
22986
gives unlimited permission to copy, distribute and modify it."
22994
cat >>$CONFIG_STATUS <<\_ACEOF
22995
# If no file are specified by the user, then we need to provide default
22996
# value. By we need to know if files were specified by the user.
23002
ac_option=`expr "X$1" : 'X\([^=]*\)='`
23003
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23014
# Handling of the options.
23015
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23017
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23018
echo "$ac_cs_version"; exit ;;
23019
--debug | --debu | --deb | --de | --d | -d )
23021
--file | --fil | --fi | --f )
23023
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23024
ac_need_defaults=false;;
23025
--header | --heade | --head | --hea )
23027
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23028
ac_need_defaults=false;;
23030
# Conflict between --help and --header
23031
{ echo "$as_me: error: ambiguous option: $1
23032
Try \`$0 --help' for more information." >&2
23033
{ (exit 1); exit 1; }; };;
23034
--help | --hel | -h )
23035
echo "$ac_cs_usage"; exit ;;
23036
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
23037
| -silent | --silent | --silen | --sile | --sil | --si | --s)
23040
# This is an error.
23041
-*) { echo "$as_me: error: unrecognized option: $1
23042
Try \`$0 --help' for more information." >&2
23043
{ (exit 1); exit 1; }; } ;;
23045
*) ac_config_targets="$ac_config_targets $1"
23046
ac_need_defaults=false ;;
23052
ac_configure_extra_args=
23054
if $ac_cs_silent; then
23056
ac_configure_extra_args="$ac_configure_extra_args --silent"
23060
cat >>$CONFIG_STATUS <<_ACEOF
23061
if \$ac_cs_recheck; then
23062
echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23063
CONFIG_SHELL=$SHELL
23064
export CONFIG_SHELL
23065
exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23069
cat >>$CONFIG_STATUS <<\_ACEOF
23073
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23074
## Running $as_me. ##
23080
cat >>$CONFIG_STATUS <<_ACEOF
23084
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23088
cat >>$CONFIG_STATUS <<\_ACEOF
23090
# Handling of arguments.
23091
for ac_config_target in $ac_config_targets
23093
case $ac_config_target in
23094
"depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23095
"src/acconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS src/acconfig.h" ;;
23096
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23097
"src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
23098
"man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
23099
"ceph.spec") CONFIG_FILES="$CONFIG_FILES ceph.spec" ;;
23101
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23102
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23103
{ (exit 1); exit 1; }; };;
23108
# If the user did not use the arguments to specify the items to instantiate,
23109
# then the envvar interface is used. Set only those that are not.
23110
# We use the long form for the default assignment because of an extremely
23111
# bizarre bug on SunOS 4.1.3.
23112
if $ac_need_defaults; then
23113
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23114
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23115
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23118
# Have a temporary directory for convenience. Make it in the build tree
23119
# simply because there is no reason against having it here, and in addition,
23120
# creating and moving files from /tmp can sometimes cause problems.
23121
# Hook for its removal unless debugging.
23122
# Note that there is a small window in which the directory will not be cleaned:
23123
# after its creation but before its name has been assigned to `$tmp'.
23127
trap 'exit_status=$?
23128
{ test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23130
trap '{ (exit 1); exit 1; }' 1 2 13 15
23132
# Create a (secure) tmp directory for tmp files.
23135
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23136
test -n "$tmp" && test -d "$tmp"
23139
tmp=./conf$$-$RANDOM
23140
(umask 077 && mkdir "$tmp")
23143
echo "$me: cannot create a temporary directory in ." >&2
23144
{ (exit 1); exit 1; }
23148
# Set up the sed scripts for CONFIG_FILES section.
23151
# No need to generate the scripts if there are no CONFIG_FILES.
23152
# This happens for instance when ./config.status config.h
23153
if test -n "$CONFIG_FILES"; then
23160
for ac_last_try in false false false false false :; do
23161
cat >conf$$subs.sed <<_ACEOF
23162
SHELL!$SHELL$ac_delim
23163
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23164
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23165
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23166
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23167
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23168
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23169
exec_prefix!$exec_prefix$ac_delim
23170
prefix!$prefix$ac_delim
23171
program_transform_name!$program_transform_name$ac_delim
23172
bindir!$bindir$ac_delim
23173
sbindir!$sbindir$ac_delim
23174
libexecdir!$libexecdir$ac_delim
23175
datarootdir!$datarootdir$ac_delim
23176
datadir!$datadir$ac_delim
23177
sysconfdir!$sysconfdir$ac_delim
23178
sharedstatedir!$sharedstatedir$ac_delim
23179
localstatedir!$localstatedir$ac_delim
23180
includedir!$includedir$ac_delim
23181
oldincludedir!$oldincludedir$ac_delim
23182
docdir!$docdir$ac_delim
23183
infodir!$infodir$ac_delim
23184
htmldir!$htmldir$ac_delim
23185
dvidir!$dvidir$ac_delim
23186
pdfdir!$pdfdir$ac_delim
23187
psdir!$psdir$ac_delim
23188
libdir!$libdir$ac_delim
23189
localedir!$localedir$ac_delim
23190
mandir!$mandir$ac_delim
23191
DEFS!$DEFS$ac_delim
23192
ECHO_C!$ECHO_C$ac_delim
23193
ECHO_N!$ECHO_N$ac_delim
23194
ECHO_T!$ECHO_T$ac_delim
23195
LIBS!$LIBS$ac_delim
23196
build_alias!$build_alias$ac_delim
23197
host_alias!$host_alias$ac_delim
23198
target_alias!$target_alias$ac_delim
23199
build!$build$ac_delim
23200
build_cpu!$build_cpu$ac_delim
23201
build_vendor!$build_vendor$ac_delim
23202
build_os!$build_os$ac_delim
23203
host!$host$ac_delim
23204
host_cpu!$host_cpu$ac_delim
23205
host_vendor!$host_vendor$ac_delim
23206
host_os!$host_os$ac_delim
23207
target!$target$ac_delim
23208
target_cpu!$target_cpu$ac_delim
23209
target_vendor!$target_vendor$ac_delim
23210
target_os!$target_os$ac_delim
23211
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23212
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23213
INSTALL_DATA!$INSTALL_DATA$ac_delim
23214
am__isrc!$am__isrc$ac_delim
23215
CYGPATH_W!$CYGPATH_W$ac_delim
23216
PACKAGE!$PACKAGE$ac_delim
23217
VERSION!$VERSION$ac_delim
23218
ACLOCAL!$ACLOCAL$ac_delim
23219
AUTOCONF!$AUTOCONF$ac_delim
23220
AUTOMAKE!$AUTOMAKE$ac_delim
23221
AUTOHEADER!$AUTOHEADER$ac_delim
23222
MAKEINFO!$MAKEINFO$ac_delim
23223
install_sh!$install_sh$ac_delim
23224
STRIP!$STRIP$ac_delim
23225
INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
23226
mkdir_p!$mkdir_p$ac_delim
23228
SET_MAKE!$SET_MAKE$ac_delim
23229
am__leading_dot!$am__leading_dot$ac_delim
23230
AMTAR!$AMTAR$ac_delim
23231
am__tar!$am__tar$ac_delim
23232
am__untar!$am__untar$ac_delim
23234
CFLAGS!$CFLAGS$ac_delim
23235
LDFLAGS!$LDFLAGS$ac_delim
23236
CPPFLAGS!$CPPFLAGS$ac_delim
23237
ac_ct_CC!$ac_ct_CC$ac_delim
23238
EXEEXT!$EXEEXT$ac_delim
23239
OBJEXT!$OBJEXT$ac_delim
23240
DEPDIR!$DEPDIR$ac_delim
23241
am__include!$am__include$ac_delim
23242
am__quote!$am__quote$ac_delim
23243
AMDEP_TRUE!$AMDEP_TRUE$ac_delim
23244
AMDEP_FALSE!$AMDEP_FALSE$ac_delim
23245
AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
23246
CCDEPMODE!$CCDEPMODE$ac_delim
23247
am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
23248
am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
23250
GREP!$GREP$ac_delim
23251
EGREP!$EGREP$ac_delim
23252
LN_S!$LN_S$ac_delim
23253
ECHO!$ECHO$ac_delim
23255
RANLIB!$RANLIB$ac_delim
23256
DSYMUTIL!$DSYMUTIL$ac_delim
23257
NMEDIT!$NMEDIT$ac_delim
23261
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23263
elif $ac_last_try; then
23264
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23265
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23266
{ (exit 1); exit 1; }; }
23268
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23272
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23273
if test -n "$ac_eof"; then
23274
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23275
ac_eof=`expr $ac_eof + 1`
23278
cat >>$CONFIG_STATUS <<_ACEOF
23279
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23280
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23283
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23284
s/^/s,@/; s/!/@,|#_!!_#|/
23287
s/'"$ac_delim"'$/,g/; t
23289
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23290
' >>$CONFIG_STATUS <conf$$subs.sed
23291
rm -f conf$$subs.sed
23292
cat >>$CONFIG_STATUS <<_ACEOF
23298
for ac_last_try in false false false false false :; do
23299
cat >conf$$subs.sed <<_ACEOF
23301
CXXFLAGS!$CXXFLAGS$ac_delim
23302
ac_ct_CXX!$ac_ct_CXX$ac_delim
23303
CXXDEPMODE!$CXXDEPMODE$ac_delim
23304
am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
23305
am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
23306
CXXCPP!$CXXCPP$ac_delim
23308
FFLAGS!$FFLAGS$ac_delim
23309
ac_ct_F77!$ac_ct_F77$ac_delim
23310
LIBTOOL!$LIBTOOL$ac_delim
23311
WITH_DEBUG_TRUE!$WITH_DEBUG_TRUE$ac_delim
23312
WITH_DEBUG_FALSE!$WITH_DEBUG_FALSE$ac_delim
23313
WITH_RADOSGW_TRUE!$WITH_RADOSGW_TRUE$ac_delim
23314
WITH_RADOSGW_FALSE!$WITH_RADOSGW_FALSE$ac_delim
23315
LIBFUSE!$LIBFUSE$ac_delim
23316
WITH_FUSE_TRUE!$WITH_FUSE_TRUE$ac_delim
23317
WITH_FUSE_FALSE!$WITH_FUSE_FALSE$ac_delim
23318
WITH_HADOOPCLIENT_TRUE!$WITH_HADOOPCLIENT_TRUE$ac_delim
23319
WITH_HADOOPCLIENT_FALSE!$WITH_HADOOPCLIENT_FALSE$ac_delim
23320
WITH_LIBATOMIC_TRUE!$WITH_LIBATOMIC_TRUE$ac_delim
23321
WITH_LIBATOMIC_FALSE!$WITH_LIBATOMIC_FALSE$ac_delim
23322
LIBOBJS!$LIBOBJS$ac_delim
23323
LTLIBOBJS!$LTLIBOBJS$ac_delim
23326
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 24; then
23328
elif $ac_last_try; then
23329
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23330
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23331
{ (exit 1); exit 1; }; }
23333
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23337
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23338
if test -n "$ac_eof"; then
23339
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23340
ac_eof=`expr $ac_eof + 1`
23343
cat >>$CONFIG_STATUS <<_ACEOF
23344
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23345
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23348
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23349
s/^/s,@/; s/!/@,|#_!!_#|/
23352
s/'"$ac_delim"'$/,g/; t
23354
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23355
' >>$CONFIG_STATUS <conf$$subs.sed
23356
rm -f conf$$subs.sed
23357
cat >>$CONFIG_STATUS <<_ACEOF
23364
# VPATH may cause trouble with some makes, so we remove $(srcdir),
23365
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23366
# trailing colons and then remove the whole line if VPATH becomes empty
23367
# (actually we leave an empty line to preserve line numbers).
23368
if test "x$srcdir" = x.; then
23369
ac_vpsub='/^[ ]*VPATH[ ]*=/{
23370
s/:*\$(srcdir):*/:/
23371
s/:*\${srcdir}:*/:/
23373
s/^\([^=]*=[ ]*\):*/\1/
23379
cat >>$CONFIG_STATUS <<\_ACEOF
23380
fi # test -n "$CONFIG_FILES"
23383
for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
23386
:[FHLC]) ac_mode=$ac_tag; continue;;
23388
case $ac_mode$ac_tag in
23390
:L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23391
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23392
{ (exit 1); exit 1; }; };;
23393
:[FH]-) ac_tag=-:-;;
23394
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23411
-) ac_f="$tmp/stdin";;
23412
*) # Look for the file first in the build tree, then in the source tree
23413
# (if the path is not absolute). The absolute path cannot be DOS-style,
23414
# because $ac_f cannot contain `:'.
23418
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23420
{ { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23421
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23422
{ (exit 1); exit 1; }; };;
23424
ac_file_inputs="$ac_file_inputs $ac_f"
23427
# Let's still pretend it is `configure' which instantiates (i.e., don't
23428
# use $as_me), people would be surprised to read:
23429
# /* config.h. Generated by config.status. */
23430
configure_input="Generated from "`IFS=:
23431
echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23432
if test x"$ac_file" != x-; then
23433
configure_input="$ac_file. $configure_input"
23434
{ echo "$as_me:$LINENO: creating $ac_file" >&5
23435
echo "$as_me: creating $ac_file" >&6;}
23439
*:-:* | *:-) cat >"$tmp/stdin";;
23444
ac_dir=`$as_dirname -- "$ac_file" ||
23445
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23446
X"$ac_file" : 'X\(//\)[^/]' \| \
23447
X"$ac_file" : 'X\(//\)$' \| \
23448
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23450
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23454
/^X\(\/\/\)[^/].*/{
23469
-*) as_dir=./$as_dir;;
23471
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23475
*\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23476
*) as_qdir=$as_dir;;
23478
as_dirs="'$as_qdir' $as_dirs"
23479
as_dir=`$as_dirname -- "$as_dir" ||
23480
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23481
X"$as_dir" : 'X\(//\)[^/]' \| \
23482
X"$as_dir" : 'X\(//\)$' \| \
23483
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23485
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23489
/^X\(\/\/\)[^/].*/{
23502
test -d "$as_dir" && break
23504
test -z "$as_dirs" || eval "mkdir $as_dirs"
23505
} || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23506
echo "$as_me: error: cannot create directory $as_dir" >&2;}
23507
{ (exit 1); exit 1; }; }; }
23511
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23513
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23514
# A ".." for each directory in $ac_dir_suffix.
23515
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23516
case $ac_top_builddir_sub in
23517
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23518
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23521
ac_abs_top_builddir=$ac_pwd
23522
ac_abs_builddir=$ac_pwd$ac_dir_suffix
23523
# for backward compatibility:
23524
ac_top_builddir=$ac_top_build_prefix
23527
.) # We are building in place.
23529
ac_top_srcdir=$ac_top_builddir_sub
23530
ac_abs_top_srcdir=$ac_pwd ;;
23531
[\\/]* | ?:[\\/]* ) # Absolute name.
23532
ac_srcdir=$srcdir$ac_dir_suffix;
23533
ac_top_srcdir=$srcdir
23534
ac_abs_top_srcdir=$srcdir ;;
23535
*) # Relative name.
23536
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23537
ac_top_srcdir=$ac_top_build_prefix$srcdir
23538
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23540
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23550
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23551
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23553
ac_MKDIR_P=$MKDIR_P
23555
[\\/$]* | ?:[\\/]* ) ;;
23556
*/*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23560
cat >>$CONFIG_STATUS <<\_ACEOF
23561
# If the template does not know about datarootdir, expand it.
23562
# FIXME: This hack should be removed a few years after 2.60.
23563
ac_datarootdir_hack=; ac_datarootdir_seen=
23565
case `sed -n '/datarootdir/ {
23574
' $ac_file_inputs` in
23575
*datarootdir*) ac_datarootdir_seen=yes;;
23576
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23577
{ echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23578
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23580
cat >>$CONFIG_STATUS <<_ACEOF
23581
ac_datarootdir_hack='
23582
s&@datadir@&$datadir&g
23583
s&@docdir@&$docdir&g
23584
s&@infodir@&$infodir&g
23585
s&@localedir@&$localedir&g
23586
s&@mandir@&$mandir&g
23587
s&\\\${datarootdir}&$datarootdir&g' ;;
23591
# Neutralize VPATH when `$srcdir' = `.'.
23592
# Shell code in configure.ac might set extrasub.
23593
# FIXME: do we really want to maintain this feature?
23594
cat >>$CONFIG_STATUS <<_ACEOF
23598
cat >>$CONFIG_STATUS <<\_ACEOF
23600
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23601
s&@configure_input@&$configure_input&;t t
23602
s&@top_builddir@&$ac_top_builddir_sub&;t t
23603
s&@srcdir@&$ac_srcdir&;t t
23604
s&@abs_srcdir@&$ac_abs_srcdir&;t t
23605
s&@top_srcdir@&$ac_top_srcdir&;t t
23606
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23607
s&@builddir@&$ac_builddir&;t t
23608
s&@abs_builddir@&$ac_abs_builddir&;t t
23609
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23610
s&@INSTALL@&$ac_INSTALL&;t t
23611
s&@MKDIR_P@&$ac_MKDIR_P&;t t
23612
$ac_datarootdir_hack
23613
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
23615
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23616
{ ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23617
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23618
{ echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23619
which seems to be undefined. Please make sure it is defined." >&5
23620
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23621
which seems to be undefined. Please make sure it is defined." >&2;}
23625
-) cat "$tmp/out"; rm -f "$tmp/out";;
23626
*) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23635
# Transform confdefs.h into a sed script `conftest.defines', that
23636
# substitutes the proper values into config.h.in to produce config.h.
23637
rm -f conftest.defines conftest.tail
23638
# First, append a space to every undef/define line, to ease matching.
23639
echo 's/$/ /' >conftest.defines
23640
# Then, protect against being on the right side of a sed subst, or in
23641
# an unquoted here document, in config.status. If some macros were
23642
# called several times there might be several #defines for the same
23643
# symbol, which is useless. But do not sort them, since the last
23644
# AC_DEFINE must be honored.
23645
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23646
# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23647
# NAME is the cpp macro being defined, VALUE is the value it is being given.
23648
# PARAMS is the parameter list in the macro definition--in most cases, it's
23649
# just an empty string.
23650
ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
23651
ac_dB='\\)[ (].*,\\1define\\2'
23659
s/^[ ]*#[ ]*define[ ][ ]*//
23664
s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23665
s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23666
' >>conftest.defines
23668
# Remove the space that was appended to ease matching.
23669
# Then replace #undef with comments. This is necessary, for
23670
# example, in the case of _POSIX_SOURCE, which is predefined and required
23671
# on some systems where configure will not decide to define it.
23672
# (The regexp can be short, since the line contains either #define or #undef.)
23674
s,^[ #]*u.*,/* & */,' >>conftest.defines
23676
# Break up conftest.defines:
23677
ac_max_sed_lines=50
23679
# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23680
# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23681
# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23683
ac_in='$ac_file_inputs'
23684
ac_out='"$tmp/out1"'
23685
ac_nxt='"$tmp/out2"'
23689
# Write a here document:
23690
cat >>$CONFIG_STATUS <<_ACEOF
23691
# First, check the format of the line:
23692
cat >"\$tmp/defines.sed" <<\\CEOF
23693
/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
23694
/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
23698
sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23700
sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23701
ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23702
sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23703
grep . conftest.tail >/dev/null || break
23704
rm -f conftest.defines
23705
mv conftest.tail conftest.defines
23707
rm -f conftest.defines conftest.tail
23709
echo "ac_result=$ac_in" >>$CONFIG_STATUS
23710
cat >>$CONFIG_STATUS <<\_ACEOF
23711
if test x"$ac_file" != x-; then
23712
echo "/* $configure_input */" >"$tmp/config.h"
23713
cat "$ac_result" >>"$tmp/config.h"
23714
if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23715
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23716
echo "$as_me: $ac_file is unchanged" >&6;}
23719
mv "$tmp/config.h" $ac_file
23722
echo "/* $configure_input */"
23726
# Compute $ac_file's index in $config_headers.
23729
for _am_header in $config_headers :; do
23730
case $_am_header in
23731
$_am_arg | $_am_arg:* )
23734
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
23737
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23738
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23739
X"$_am_arg" : 'X\(//\)[^/]' \| \
23740
X"$_am_arg" : 'X\(//\)$' \| \
23741
X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23743
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23747
/^X\(\/\/\)[^/].*/{
23759
s/.*/./; q'`/stamp-h$_am_stamp_count
23762
:C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23763
echo "$as_me: executing $ac_file commands" >&6;}
23768
case $ac_file$ac_mode in
23769
"depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23770
# Strip MF so we end up with the name of the file.
23771
mf=`echo "$mf" | sed -e 's/:.*$//'`
23772
# Check whether this is an Automake generated Makefile or not.
23773
# We used to match only the files named `Makefile.in', but
23774
# some people rename them; so instead we look at the file content.
23775
# Grep'ing the first line is not enough: some people post-process
23776
# each Makefile.in and add a new line on top of each file to say so.
23777
# Grep'ing the whole file is not good either: AIX grep has a line
23778
# limit of 2048, but all sed's we know have understand at least 4000.
23779
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
23780
dirpart=`$as_dirname -- "$mf" ||
23781
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23782
X"$mf" : 'X\(//\)[^/]' \| \
23783
X"$mf" : 'X\(//\)$' \| \
23784
X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23786
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23790
/^X\(\/\/\)[^/].*/{
23806
# Extract the definition of DEPDIR, am__include, and am__quote
23807
# from the Makefile without running `make'.
23808
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23809
test -z "$DEPDIR" && continue
23810
am__include=`sed -n 's/^am__include = //p' < "$mf"`
23811
test -z "am__include" && continue
23812
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23813
# When using ansi2knr, U may be empty or an underscore; expand it
23814
U=`sed -n 's/^U = //p' < "$mf"`
23815
# Find all dependency output files, they are included files with
23816
# $(DEPDIR) in their names. We invoke sed twice because it is the
23817
# simplest approach to changing $(DEPDIR) to its actual value in the
23819
for file in `sed -n "
23820
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23821
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23822
# Make sure the directory exists.
23823
test -f "$dirpart/$file" && continue
23824
fdir=`$as_dirname -- "$file" ||
23825
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23826
X"$file" : 'X\(//\)[^/]' \| \
23827
X"$file" : 'X\(//\)$' \| \
23828
X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23830
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23834
/^X\(\/\/\)[^/].*/{
23847
{ as_dir=$dirpart/$fdir
23849
-*) as_dir=./$as_dir;;
23851
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23855
*\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23856
*) as_qdir=$as_dir;;
23858
as_dirs="'$as_qdir' $as_dirs"
23859
as_dir=`$as_dirname -- "$as_dir" ||
23860
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23861
X"$as_dir" : 'X\(//\)[^/]' \| \
23862
X"$as_dir" : 'X\(//\)$' \| \
23863
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23865
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23869
/^X\(\/\/\)[^/].*/{
23882
test -d "$as_dir" && break
23884
test -z "$as_dirs" || eval "mkdir $as_dirs"
23885
} || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23886
echo "$as_me: error: cannot create directory $as_dir" >&2;}
23887
{ (exit 1); exit 1; }; }; }
23888
# echo "creating $dirpart/$file"
23889
echo '# dummy' > "$dirpart/$file"
23898
{ (exit 0); exit 0; }
23900
chmod +x $CONFIG_STATUS
23901
ac_clean_files=$ac_clean_files_save
23904
# configure is writing to config.log, and then calls config.status.
23905
# config.status does its own redirection, appending to config.log.
23906
# Unfortunately, on DOS this fails, as config.log is still kept open
23907
# by configure, so config.status won't be able to write to it; its
23908
# output is simply discarded. So we exec the FD to /dev/null,
23909
# effectively closing config.log, so it can be properly (re)opened and
23910
# appended to by config.status. When coming back to configure, we
23911
# need to make the FD available again.
23912
if test "$no_create" != yes; then
23914
ac_config_status_args=
23915
test "$silent" = yes &&
23916
ac_config_status_args="$ac_config_status_args --quiet"
23918
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23920
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
23921
# would make configure fail if this is the last instruction.
23922
$ac_cs_success || { (exit 1); exit 1; }