2
@%:@ Guess values for system-dependent variables and create Makefiles.
3
@%:@ Generated by GNU Autoconf 2.61.
5
@%:@ Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6
@%:@ 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7
@%:@ This configure script is free software; the Free Software Foundation
8
@%:@ gives unlimited permission to copy, distribute and modify it.
9
## --------------------- ##
10
## M4sh Initialization. ##
11
## --------------------- ##
13
# Be more Bourne compatible
14
DUALCASE=1; export DUALCASE # for MKS sh
15
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19
# is contrary to our usage. Disable this feature.
20
alias -g '${1+"$@"}'='"$@"'
23
case `(set -o) 2>/dev/null` in
24
*posix*) set -o posix ;;
33
# Avoid depending upon Character Ranges.
34
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37
as_cr_digits='0123456789'
38
as_cr_alnum=$as_cr_Letters$as_cr_digits
40
# The user is always right.
41
if test "${PATH_SEPARATOR+set}" != set; then
42
echo "#! /bin/sh" >conf$$.sh
43
echo "exit 0" >>conf$$.sh
45
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53
# Support unset when possible.
54
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62
# We need space, tab and new line, in precisely that order. Quoting is
63
# there to prevent editors from complaining about space-tab.
64
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65
# splitting by setting IFS to empty value.)
70
# Find who we are. Look in the path if we contain no directory separator.
72
*[\\/]* ) as_myself=$0 ;;
73
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77
test -z "$as_dir" && as_dir=.
78
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84
# We did not find ourselves, most probably we were run as `sh COMMAND'
85
# in which case we are not to be found in the path.
86
if test "x$as_myself" = x; then
89
if test ! -f "$as_myself"; then
90
echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94
# Work around bugs in pre-3.0 UWIN ksh.
95
for as_var in ENV MAIL MAILPATH
96
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109
eval $as_var=C; export $as_var
111
($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115
# Required to use basename.
116
if expr a : '\(a\)' >/dev/null 2>&1 &&
117
test "X`expr 00001 : '.*\(...\)'`" = X001; then
123
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130
# Name of the executable.
131
as_me=`$as_basename -- "$0" ||
132
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133
X"$0" : 'X\(//\)$' \| \
134
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136
sed '/^.*\/\([^/][^/]*\)\/*$/{
154
if test "x$CONFIG_SHELL" = x; then
155
if (eval ":") 2>/dev/null; then
161
if test $as_have_required = yes && (eval ":
171
as_func_ret_success () {
174
as_func_ret_failure () {
179
if as_func_success; then
183
echo as_func_success failed.
186
if as_func_failure; then
188
echo as_func_failure succeeded.
191
if as_func_ret_success; then
195
echo as_func_ret_success failed.
198
if as_func_ret_failure; then
200
echo as_func_ret_failure succeeded.
203
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207
echo positional parameters were not saved.
210
test \$exitcode = 0) || { (exit 1); exit 1; }
215
test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216
test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217
") 2> /dev/null; then
221
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225
test -z "$as_dir" && as_dir=.
228
for as_base in sh bash ksh sh5; do
229
as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236
for as_shell in $as_candidate_shells $SHELL; do
237
# Try only shells that exist, to save several forks.
238
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239
{ ("$as_shell") 2> /dev/null <<\_ASEOF
240
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244
# is contrary to our usage. Disable this feature.
245
alias -g '${1+"$@"}'='"$@"'
248
case `(set -o) 2>/dev/null` in
249
*posix*) set -o posix ;;
258
CONFIG_SHELL=$as_shell
260
if { "$as_shell" 2> /dev/null <<\_ASEOF
261
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265
# is contrary to our usage. Disable this feature.
266
alias -g '${1+"$@"}'='"$@"'
269
case `(set -o) 2>/dev/null` in
270
*posix*) set -o posix ;;
286
as_func_ret_success () {
289
as_func_ret_failure () {
294
if as_func_success; then
298
echo as_func_success failed.
301
if as_func_failure; then
303
echo as_func_failure succeeded.
306
if as_func_ret_success; then
310
echo as_func_ret_success failed.
313
if as_func_ret_failure; then
315
echo as_func_ret_failure succeeded.
318
if ( set x; as_func_ret_success y && test x = "$1" ); then
322
echo positional parameters were not saved.
325
test $exitcode = 0) || { (exit 1); exit 1; }
330
test "x$as_lineno_1" != "x$as_lineno_2" &&
331
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
342
if test "x$CONFIG_SHELL" != x; then
343
for as_var in BASH_ENV ENV
344
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347
exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351
if test $as_have_required = no; then
352
echo This script requires a shell more modern than all the
353
echo shells that I found on your system. Please install a
354
echo modern shell, or manually run the script under such a
355
echo shell if you do have one.
356
{ (exit 1); exit 1; }
366
(eval "as_func_return () {
375
as_func_ret_success () {
378
as_func_ret_failure () {
383
if as_func_success; then
387
echo as_func_success failed.
390
if as_func_failure; then
392
echo as_func_failure succeeded.
395
if as_func_ret_success; then
399
echo as_func_ret_success failed.
402
if as_func_ret_failure; then
404
echo as_func_ret_failure succeeded.
407
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411
echo positional parameters were not saved.
414
test \$exitcode = 0") || {
415
echo No shell found that supports shell functions.
416
echo Please tell autoconf@gnu.org about your system,
417
echo including any error possibly output before this
425
test "x$as_lineno_1" != "x$as_lineno_2" &&
426
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429
# uniformly replaced by the line number. The first 'sed' inserts a
430
# line-number line after each line using $LINENO; the second 'sed'
431
# does the real work. The second script uses 'N' to pair each
432
# line-number line with the line containing $LINENO, and appends
433
# trailing '-' during substitution so that $LINENO is not a special
435
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436
# scripts with optimization help from Paolo Bonzini. Blame Lee
437
# E. McMahon (1931-1989) for sed's syntax. :-)
449
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453
chmod +x "$as_me.lineno" ||
454
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455
{ (exit 1); exit 1; }; }
457
# Don't try to exec as it changes $[0], causing all sort of problems
458
# (the dirname of $[0] is not the place where we might find the
459
# original and so on. Autoconf is especially sensitive to this).
461
# Exit status is that of the last command.
466
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
472
ECHO_C= ECHO_N= ECHO_T=
476
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
483
if expr a : '\(a\)' >/dev/null 2>&1 &&
484
test "X`expr 00001 : '.*\(...\)'`" = X001; then
490
rm -f conf$$ conf$$.exe conf$$.file
491
if test -d conf$$.dir; then
492
rm -f conf$$.dir/conf$$.file
498
if ln -s conf$$.file conf$$ 2>/dev/null; then
500
# ... but there are two gotchas:
501
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503
# In both cases, we have to default to `cp -p'.
504
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506
elif ln conf$$.file conf$$ 2>/dev/null; then
511
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512
rmdir conf$$.dir 2>/dev/null
514
if mkdir -p . 2>/dev/null; then
517
test -d ./-p && rmdir ./-p
521
if test -x / >/dev/null 2>&1; then
524
if ls -dL / >/dev/null 2>&1; then
531
if test -d "$1"; then
537
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538
???[sx]*):;;*)false;;esac;fi
542
as_executable_p=$as_test_x
544
# Sed expression to map a string onto a valid CPP name.
545
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547
# Sed expression to map a string onto a valid variable name.
548
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
553
# Check that we are running under the correct shell.
554
SHELL=${CONFIG_SHELL-/bin/sh}
558
# Remove one level of quotation (which was required for Make).
559
ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
564
if test "X$1" = X--no-reexec; then
565
# Discard the --no-reexec flag, and continue.
567
elif test "X$1" = X--fallback-echo; then
568
# Avoid inline document here, it may be left over
570
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
571
# Yippee, $echo works!
574
# Restart under the correct shell.
575
exec $SHELL "$0" --no-reexec ${1+"$@"}
578
if test "X$1" = X--fallback-echo; then
579
# used as fallback echo
587
# The HP-UX ksh and POSIX shell print the target directory to stdout
589
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
591
if test -z "$ECHO"; then
592
if test "X${echo_test_string+set}" != Xset; then
593
# find a string as large as possible, as long as the shell can cope with it
594
for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596
if (echo_test_string=`eval $cmd`) 2>/dev/null &&
597
echo_test_string=`eval $cmd` &&
598
(test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
605
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
606
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
607
test "X$echo_testing_string" = "X$echo_test_string"; then
610
# The Solaris, AIX, and Digital Unix default echo programs unquote
611
# backslashes. This makes it impossible to quote backslashes using
612
# echo "$something" | sed 's/\\/\\\\/g'
614
# So, first we look for a working echo in the user's PATH.
616
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
617
for dir in $PATH /usr/ucb; do
619
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
620
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
621
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
622
test "X$echo_testing_string" = "X$echo_test_string"; then
629
if test "X$echo" = Xecho; then
630
# We didn't find a better echo, so look for alternatives.
631
if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
632
echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
633
test "X$echo_testing_string" = "X$echo_test_string"; then
634
# This shell has a builtin print -r that does the trick.
636
elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
637
test "X$CONFIG_SHELL" != X/bin/ksh; then
638
# If we have ksh, try running configure again with it.
639
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
640
export ORIGINAL_CONFIG_SHELL
641
CONFIG_SHELL=/bin/ksh
643
exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
647
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
648
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
649
test "X$echo_testing_string" = "X$echo_test_string"; then
652
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
653
test "X$echo_testing_string" = 'X\t' &&
654
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
655
test "X$echo_testing_string" = "X$echo_test_string"; then
656
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
658
SHELL="$CONFIG_SHELL"
660
echo="$CONFIG_SHELL $0 --fallback-echo"
661
elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
662
test "X$echo_testing_string" = 'X\t' &&
663
echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
664
test "X$echo_testing_string" = "X$echo_test_string"; then
665
echo="$CONFIG_SHELL $0 --fallback-echo"
667
# maybe with a smaller string...
670
for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
671
if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
678
if test "$prev" != 'sed 50q "$0"'; then
679
echo_test_string=`eval $prev`
680
export echo_test_string
681
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
683
# Oops. We lost completely, so just stick with echo.
692
# Copy echo and quote the copy suitably for passing to libtool from
693
# the Makefile, instead of quoting the original, which is used later.
695
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
696
ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
702
tagnames=${tagnames+${tagnames},}CXX
704
tagnames=${tagnames+${tagnames},}F77
706
exec 7<&0 </dev/null 6>&1
709
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
710
# so uname gets run too.
711
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
716
ac_default_prefix=/usr/local
718
ac_config_libobj_dir=.
724
SHELL=${CONFIG_SHELL-/bin/sh}
726
# Identity of this package.
733
ac_unique_file="TestGfxPrimitives.c"
734
# Factoring default headers for most tests.
735
ac_includes_default="\
737
#ifdef HAVE_SYS_TYPES_H
738
# include <sys/types.h>
740
#ifdef HAVE_SYS_STAT_H
741
# include <sys/stat.h>
747
# ifdef HAVE_STDLIB_H
752
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
757
#ifdef HAVE_STRINGS_H
758
# include <strings.h>
760
#ifdef HAVE_INTTYPES_H
761
# include <inttypes.h>
779
program_transform_name
833
INSTALL_STRIP_PROGRAM
888
ac_precious_vars='build_alias
905
# Initialize some variables set by options.
907
ac_init_version=false
908
# The variables have the same names as the options, with
909
# dashes changed to underlines.
917
program_transform_name=s,x,x,
925
# Installation directory options.
926
# These are left unexpanded so users can "make install exec_prefix=/foo"
927
# and all the variables that are supposed to be based on exec_prefix
928
# by default will actually change.
929
# Use braces instead of parens because sh, perl, etc. also accept them.
930
# (The list follows the same order as the GNU Coding Standards.)
931
bindir='${exec_prefix}/bin'
932
sbindir='${exec_prefix}/sbin'
933
libexecdir='${exec_prefix}/libexec'
934
datarootdir='${prefix}/share'
935
datadir='${datarootdir}'
936
sysconfdir='${prefix}/etc'
937
sharedstatedir='${prefix}/com'
938
localstatedir='${prefix}/var'
939
includedir='${prefix}/include'
940
oldincludedir='/usr/include'
941
docdir='${datarootdir}/doc/${PACKAGE}'
942
infodir='${datarootdir}/info'
947
libdir='${exec_prefix}/lib'
948
localedir='${datarootdir}/locale'
949
mandir='${datarootdir}/man'
955
# If the previous option needs an argument, assign it.
956
if test -n "$ac_prev"; then
957
eval $ac_prev=\$ac_option
963
*=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
967
# Accept the important Cygnus configure options, so we can diagnose typos.
969
case $ac_dashdash$ac_option in
973
-bindir | --bindir | --bindi | --bind | --bin | --bi)
975
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
978
-build | --build | --buil | --bui | --bu)
979
ac_prev=build_alias ;;
980
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
981
build_alias=$ac_optarg ;;
983
-cache-file | --cache-file | --cache-fil | --cache-fi \
984
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
985
ac_prev=cache_file ;;
986
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
987
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
988
cache_file=$ac_optarg ;;
991
cache_file=config.cache ;;
993
-datadir | --datadir | --datadi | --datad)
995
-datadir=* | --datadir=* | --datadi=* | --datad=*)
996
datadir=$ac_optarg ;;
998
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
999
| --dataroo | --dataro | --datar)
1000
ac_prev=datarootdir ;;
1001
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1002
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1003
datarootdir=$ac_optarg ;;
1005
-disable-* | --disable-*)
1006
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1007
# Reject names that are not valid shell variable names.
1008
expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1009
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
1010
{ (exit 1); exit 1; }; }
1011
ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1012
eval enable_$ac_feature=no ;;
1014
-docdir | --docdir | --docdi | --doc | --do)
1016
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1017
docdir=$ac_optarg ;;
1019
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1021
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1022
dvidir=$ac_optarg ;;
1024
-enable-* | --enable-*)
1025
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1026
# Reject names that are not valid shell variable names.
1027
expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1028
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
1029
{ (exit 1); exit 1; }; }
1030
ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1031
eval enable_$ac_feature=\$ac_optarg ;;
1033
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1034
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1035
| --exec | --exe | --ex)
1036
ac_prev=exec_prefix ;;
1037
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1038
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1039
| --exec=* | --exe=* | --ex=*)
1040
exec_prefix=$ac_optarg ;;
1042
-gas | --gas | --ga | --g)
1043
# Obsolete; use --with-gas.
1046
-help | --help | --hel | --he | -h)
1047
ac_init_help=long ;;
1048
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1049
ac_init_help=recursive ;;
1050
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1051
ac_init_help=short ;;
1053
-host | --host | --hos | --ho)
1054
ac_prev=host_alias ;;
1055
-host=* | --host=* | --hos=* | --ho=*)
1056
host_alias=$ac_optarg ;;
1058
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1060
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1062
htmldir=$ac_optarg ;;
1064
-includedir | --includedir | --includedi | --included | --include \
1065
| --includ | --inclu | --incl | --inc)
1066
ac_prev=includedir ;;
1067
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1068
| --includ=* | --inclu=* | --incl=* | --inc=*)
1069
includedir=$ac_optarg ;;
1071
-infodir | --infodir | --infodi | --infod | --info | --inf)
1073
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1074
infodir=$ac_optarg ;;
1076
-libdir | --libdir | --libdi | --libd)
1078
-libdir=* | --libdir=* | --libdi=* | --libd=*)
1079
libdir=$ac_optarg ;;
1081
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1082
| --libexe | --libex | --libe)
1083
ac_prev=libexecdir ;;
1084
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1085
| --libexe=* | --libex=* | --libe=*)
1086
libexecdir=$ac_optarg ;;
1088
-localedir | --localedir | --localedi | --localed | --locale)
1089
ac_prev=localedir ;;
1090
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1091
localedir=$ac_optarg ;;
1093
-localstatedir | --localstatedir | --localstatedi | --localstated \
1094
| --localstate | --localstat | --localsta | --localst | --locals)
1095
ac_prev=localstatedir ;;
1096
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1097
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1098
localstatedir=$ac_optarg ;;
1100
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1102
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1103
mandir=$ac_optarg ;;
1105
-nfp | --nfp | --nf)
1106
# Obsolete; use --without-fp.
1109
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
1110
| --no-cr | --no-c | -n)
1113
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
1114
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1117
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1118
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1119
| --oldin | --oldi | --old | --ol | --o)
1120
ac_prev=oldincludedir ;;
1121
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1122
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1123
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1124
oldincludedir=$ac_optarg ;;
1126
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1128
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1129
prefix=$ac_optarg ;;
1131
-program-prefix | --program-prefix | --program-prefi | --program-pref \
1132
| --program-pre | --program-pr | --program-p)
1133
ac_prev=program_prefix ;;
1134
-program-prefix=* | --program-prefix=* | --program-prefi=* \
1135
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1136
program_prefix=$ac_optarg ;;
1138
-program-suffix | --program-suffix | --program-suffi | --program-suff \
1139
| --program-suf | --program-su | --program-s)
1140
ac_prev=program_suffix ;;
1141
-program-suffix=* | --program-suffix=* | --program-suffi=* \
1142
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1143
program_suffix=$ac_optarg ;;
1145
-program-transform-name | --program-transform-name \
1146
| --program-transform-nam | --program-transform-na \
1147
| --program-transform-n | --program-transform- \
1148
| --program-transform | --program-transfor \
1149
| --program-transfo | --program-transf \
1150
| --program-trans | --program-tran \
1151
| --progr-tra | --program-tr | --program-t)
1152
ac_prev=program_transform_name ;;
1153
-program-transform-name=* | --program-transform-name=* \
1154
| --program-transform-nam=* | --program-transform-na=* \
1155
| --program-transform-n=* | --program-transform-=* \
1156
| --program-transform=* | --program-transfor=* \
1157
| --program-transfo=* | --program-transf=* \
1158
| --program-trans=* | --program-tran=* \
1159
| --progr-tra=* | --program-tr=* | --program-t=*)
1160
program_transform_name=$ac_optarg ;;
1162
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1164
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1165
pdfdir=$ac_optarg ;;
1167
-psdir | --psdir | --psdi | --psd | --ps)
1169
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1172
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1173
| -silent | --silent | --silen | --sile | --sil)
1176
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1178
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1180
sbindir=$ac_optarg ;;
1182
-sharedstatedir | --sharedstatedir | --sharedstatedi \
1183
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1184
| --sharedst | --shareds | --shared | --share | --shar \
1186
ac_prev=sharedstatedir ;;
1187
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1188
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1189
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1191
sharedstatedir=$ac_optarg ;;
1193
-site | --site | --sit)
1195
-site=* | --site=* | --sit=*)
1198
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1200
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1201
srcdir=$ac_optarg ;;
1203
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1204
| --syscon | --sysco | --sysc | --sys | --sy)
1205
ac_prev=sysconfdir ;;
1206
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1207
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1208
sysconfdir=$ac_optarg ;;
1210
-target | --target | --targe | --targ | --tar | --ta | --t)
1211
ac_prev=target_alias ;;
1212
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1213
target_alias=$ac_optarg ;;
1215
-v | -verbose | --verbose | --verbos | --verbo | --verb)
1218
-version | --version | --versio | --versi | --vers | -V)
1219
ac_init_version=: ;;
1222
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1223
# Reject names that are not valid shell variable names.
1224
expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1225
{ echo "$as_me: error: invalid package name: $ac_package" >&2
1226
{ (exit 1); exit 1; }; }
1227
ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1228
eval with_$ac_package=\$ac_optarg ;;
1230
-without-* | --without-*)
1231
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1232
# Reject names that are not valid shell variable names.
1233
expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1234
{ echo "$as_me: error: invalid package name: $ac_package" >&2
1235
{ (exit 1); exit 1; }; }
1236
ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1237
eval with_$ac_package=no ;;
1240
# Obsolete; use --with-x.
1243
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1244
| --x-incl | --x-inc | --x-in | --x-i)
1245
ac_prev=x_includes ;;
1246
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1247
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1248
x_includes=$ac_optarg ;;
1250
-x-libraries | --x-libraries | --x-librarie | --x-librari \
1251
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1252
ac_prev=x_libraries ;;
1253
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1254
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1255
x_libraries=$ac_optarg ;;
1257
-*) { echo "$as_me: error: unrecognized option: $ac_option
1258
Try \`$0 --help' for more information." >&2
1259
{ (exit 1); exit 1; }; }
1263
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1264
# Reject names that are not valid shell variable names.
1265
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1266
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1267
{ (exit 1); exit 1; }; }
1268
eval $ac_envvar=\$ac_optarg
1269
export $ac_envvar ;;
1272
# FIXME: should be removed in autoconf 3.0.
1273
echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1274
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1275
echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1276
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1282
if test -n "$ac_prev"; then
1283
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1284
{ echo "$as_me: error: missing argument to $ac_option" >&2
1285
{ (exit 1); exit 1; }; }
1288
# Be sure to have absolute directory names.
1289
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1290
datadir sysconfdir sharedstatedir localstatedir includedir \
1291
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1292
libdir localedir mandir
1294
eval ac_val=\$$ac_var
1296
[\\/$]* | ?:[\\/]* ) continue;;
1297
NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1299
{ echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1300
{ (exit 1); exit 1; }; }
1303
# There might be people who depend on the old broken behavior: `$host'
1304
# used to hold the argument of --host etc.
1305
# FIXME: To remove some day.
1308
target=$target_alias
1310
# FIXME: To remove some day.
1311
if test "x$host_alias" != x; then
1312
if test "x$build_alias" = x; then
1313
cross_compiling=maybe
1314
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1315
If a cross compiler is detected then cross compile mode will be used." >&2
1316
elif test "x$build_alias" != "x$host_alias"; then
1322
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1324
test "$silent" = yes && exec 6>/dev/null
1327
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1328
ac_ls_di=`ls -di .` &&
1329
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1330
{ echo "$as_me: error: Working directory cannot be determined" >&2
1331
{ (exit 1); exit 1; }; }
1332
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1333
{ echo "$as_me: error: pwd does not report name of working directory" >&2
1334
{ (exit 1); exit 1; }; }
1337
# Find the source files, if location was not specified.
1338
if test -z "$srcdir"; then
1339
ac_srcdir_defaulted=yes
1340
# Try the directory containing this script, then the parent directory.
1341
ac_confdir=`$as_dirname -- "$0" ||
1342
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1343
X"$0" : 'X\(//\)[^/]' \| \
1344
X"$0" : 'X\(//\)$' \| \
1345
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1347
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1365
if test ! -r "$srcdir/$ac_unique_file"; then
1369
ac_srcdir_defaulted=no
1371
if test ! -r "$srcdir/$ac_unique_file"; then
1372
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1373
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1374
{ (exit 1); exit 1; }; }
1376
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1378
cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1379
{ (exit 1); exit 1; }; }
1381
# When building in place, set srcdir=.
1382
if test "$ac_abs_confdir" = "$ac_pwd"; then
1385
# Remove unnecessary trailing slashes from srcdir.
1386
# Double slashes in file names in object file debugging info
1387
# mess up M-x gdb in Emacs.
1389
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1391
for ac_var in $ac_precious_vars; do
1392
eval ac_env_${ac_var}_set=\${${ac_var}+set}
1393
eval ac_env_${ac_var}_value=\$${ac_var}
1394
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1395
eval ac_cv_env_${ac_var}_value=\$${ac_var}
1399
# Report the --help message.
1401
if test "$ac_init_help" = "long"; then
1402
# Omit some internal or obsolete options to make the list less imposing.
1403
# This message is too long to be a string in the A/UX 3.1 sh.
1405
\`configure' configures this package to adapt to many kinds of systems.
1407
Usage: $0 [OPTION]... [VAR=VALUE]...
1409
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1410
VAR=VALUE. See below for descriptions of some of the useful variables.
1412
Defaults for the options are specified in brackets.
1415
-h, --help display this help and exit
1416
--help=short display options specific to this package
1417
--help=recursive display the short help of all the included packages
1418
-V, --version display version information and exit
1419
-q, --quiet, --silent do not print \`checking...' messages
1420
--cache-file=FILE cache test results in FILE [disabled]
1421
-C, --config-cache alias for \`--cache-file=config.cache'
1422
-n, --no-create do not create output files
1423
--srcdir=DIR find the sources in DIR [configure dir or \`..']
1425
Installation directories:
1426
--prefix=PREFIX install architecture-independent files in PREFIX
1427
[$ac_default_prefix]
1428
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1431
By default, \`make install' will install all the files in
1432
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1433
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1434
for instance \`--prefix=\$HOME'.
1436
For better control, use the options below.
1438
Fine tuning of the installation directories:
1439
--bindir=DIR user executables [EPREFIX/bin]
1440
--sbindir=DIR system admin executables [EPREFIX/sbin]
1441
--libexecdir=DIR program executables [EPREFIX/libexec]
1442
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1443
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1444
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1445
--libdir=DIR object code libraries [EPREFIX/lib]
1446
--includedir=DIR C header files [PREFIX/include]
1447
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1448
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1449
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1450
--infodir=DIR info documentation [DATAROOTDIR/info]
1451
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1452
--mandir=DIR man documentation [DATAROOTDIR/man]
1453
--docdir=DIR documentation root @<:@DATAROOTDIR/doc/PACKAGE@:>@
1454
--htmldir=DIR html documentation [DOCDIR]
1455
--dvidir=DIR dvi documentation [DOCDIR]
1456
--pdfdir=DIR pdf documentation [DOCDIR]
1457
--psdir=DIR ps documentation [DOCDIR]
1463
--program-prefix=PREFIX prepend PREFIX to installed program names
1464
--program-suffix=SUFFIX append SUFFIX to installed program names
1465
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
1468
--build=BUILD configure for building on BUILD [guessed]
1469
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1470
--target=TARGET configure for building compilers for TARGET [HOST]
1474
if test -n "$ac_init_help"; then
1479
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1480
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1481
--enable-shared@<:@=PKGS@:>@ build shared libraries @<:@default=yes@:>@
1482
--enable-static@<:@=PKGS@:>@ build static libraries @<:@default=yes@:>@
1483
--enable-fast-install@<:@=PKGS@:>@
1484
optimize for fast installation @<:@default=yes@:>@
1485
--disable-dependency-tracking speeds up one-time build
1486
--enable-dependency-tracking do not reject slow dependency extractors
1487
--disable-libtool-lock avoid locking (might break parallel builds)
1488
--disable-sdltest Do not try to compile and run a test SDL program
1491
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1492
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1493
--with-gnu-ld assume the C compiler uses GNU ld @<:@default=no@:>@
1494
--with-pic try to use only PIC/non-PIC objects @<:@default=use
1496
--with-tags@<:@=TAGS@:>@ include additional configurations @<:@automatic@:>@
1497
--with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1498
--with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1500
Some influential environment variables:
1501
CC C compiler command
1502
CFLAGS C compiler flags
1503
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1504
nonstandard directory <lib dir>
1505
LIBS libraries to pass to the linker, e.g. -l<library>
1506
CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1507
you have headers in a nonstandard directory <include dir>
1509
CXX C++ compiler command
1510
CXXFLAGS C++ compiler flags
1511
CXXCPP C++ preprocessor
1512
F77 Fortran 77 compiler command
1513
FFLAGS Fortran 77 compiler flags
1515
Use these variables to override the choices made by `configure' or to help
1516
it to find libraries and programs with nonstandard names/locations.
1522
if test "$ac_init_help" = "recursive"; then
1523
# If there are subdirs, report their specific --help.
1524
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1525
test -d "$ac_dir" || continue
1529
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1531
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1532
# A ".." for each directory in $ac_dir_suffix.
1533
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1534
case $ac_top_builddir_sub in
1535
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1536
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1539
ac_abs_top_builddir=$ac_pwd
1540
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1541
# for backward compatibility:
1542
ac_top_builddir=$ac_top_build_prefix
1545
.) # We are building in place.
1547
ac_top_srcdir=$ac_top_builddir_sub
1548
ac_abs_top_srcdir=$ac_pwd ;;
1549
[\\/]* | ?:[\\/]* ) # Absolute name.
1550
ac_srcdir=$srcdir$ac_dir_suffix;
1551
ac_top_srcdir=$srcdir
1552
ac_abs_top_srcdir=$srcdir ;;
1554
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1555
ac_top_srcdir=$ac_top_build_prefix$srcdir
1556
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1558
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1560
cd "$ac_dir" || { ac_status=$?; continue; }
1561
# Check for guested configure.
1562
if test -f "$ac_srcdir/configure.gnu"; then
1564
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
1565
elif test -f "$ac_srcdir/configure"; then
1567
$SHELL "$ac_srcdir/configure" --help=recursive
1569
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1571
cd "$ac_pwd" || { ac_status=$?; break; }
1575
test -n "$ac_init_help" && exit $ac_status
1576
if $ac_init_version; then
1579
generated by GNU Autoconf 2.61
1581
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1582
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1583
This configure script is free software; the Free Software Foundation
1584
gives unlimited permission to copy, distribute and modify it.
1588
cat >config.log <<_ACEOF
1589
This file contains any messages produced by compilers while
1590
running configure, to aid debugging if configure makes a mistake.
1592
It was created by $as_me, which was
1593
generated by GNU Autoconf 2.61. Invocation command line was
1601
@%:@@%:@ --------- @%:@@%:@
1602
@%:@@%:@ Platform. @%:@@%:@
1603
@%:@@%:@ --------- @%:@@%:@
1605
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1606
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1607
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1608
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1609
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1611
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1612
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1614
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1615
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1616
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1617
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1618
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1619
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1620
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1624
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1628
test -z "$as_dir" && as_dir=.
1629
echo "PATH: $as_dir"
1638
@%:@@%:@ ----------- @%:@@%:@
1639
@%:@@%:@ Core tests. @%:@@%:@
1640
@%:@@%:@ ----------- @%:@@%:@
1645
# Keep a trace of the command line.
1646
# Strip out --no-create and --no-recursion so they do not pile up.
1647
# Strip out --silent because we don't want to record it for future runs.
1648
# Also quote any args containing shell meta-characters.
1649
# Make two passes to allow for proper duplicate-argument suppression.
1653
ac_must_keep_next=false
1659
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1660
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1661
| -silent | --silent | --silen | --sile | --sil)
1664
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1667
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1669
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1670
if test $ac_must_keep_next = true; then
1671
ac_must_keep_next=false # Got value, back to normal.
1674
*=* | --config-cache | -C | -disable-* | --disable-* \
1675
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1676
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1677
| -with-* | --with-* | -without-* | --without-* | --x)
1678
case "$ac_configure_args0 " in
1679
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1682
-* ) ac_must_keep_next=true ;;
1685
ac_configure_args="$ac_configure_args '$ac_arg'"
1690
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1691
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1693
# When interrupted or exit'd, cleanup temporary files, and complete
1694
# config.log. We remove comments because anyway the quotes in there
1695
# would cause problems or look ugly.
1696
# WARNING: Use '\'' to represent an apostrophe within the trap.
1697
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1698
trap 'exit_status=$?
1699
# Save into config.log some information that might help in debugging.
1704
@%:@@%:@ ---------------- @%:@@%:@
1705
@%:@@%:@ Cache variables. @%:@@%:@
1706
@%:@@%:@ ---------------- @%:@@%:@
1709
# The following way of writing the cache mishandles newlines in values,
1711
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1712
eval ac_val=\$$ac_var
1716
*_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1717
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1720
_ | IFS | as_nl) ;; #(
1721
*) $as_unset $ac_var ;;
1726
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1727
*${as_nl}ac_space=\ *)
1729
"s/'\''/'\''\\\\'\'''\''/g;
1730
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1733
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1741
@%:@@%:@ ----------------- @%:@@%:@
1742
@%:@@%:@ Output variables. @%:@@%:@
1743
@%:@@%:@ ----------------- @%:@@%:@
1746
for ac_var in $ac_subst_vars
1748
eval ac_val=\$$ac_var
1750
*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1752
echo "$ac_var='\''$ac_val'\''"
1756
if test -n "$ac_subst_files"; then
1758
@%:@@%:@ ------------------- @%:@@%:@
1759
@%:@@%:@ File substitutions. @%:@@%:@
1760
@%:@@%:@ ------------------- @%:@@%:@
1763
for ac_var in $ac_subst_files
1765
eval ac_val=\$$ac_var
1767
*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1769
echo "$ac_var='\''$ac_val'\''"
1774
if test -s confdefs.h; then
1776
@%:@@%:@ ----------- @%:@@%:@
1777
@%:@@%:@ confdefs.h. @%:@@%:@
1778
@%:@@%:@ ----------- @%:@@%:@
1784
test "$ac_signal" != 0 &&
1785
echo "$as_me: caught signal $ac_signal"
1786
echo "$as_me: exit $exit_status"
1788
rm -f core *.core core.conftest.* &&
1789
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1792
for ac_signal in 1 2 13 15; do
1793
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1797
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1798
rm -f -r conftest* confdefs.h
1800
# Predefined preprocessor variables.
1802
cat >>confdefs.h <<_ACEOF
1803
@%:@define PACKAGE_NAME "$PACKAGE_NAME"
1807
cat >>confdefs.h <<_ACEOF
1808
@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1812
cat >>confdefs.h <<_ACEOF
1813
@%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
1817
cat >>confdefs.h <<_ACEOF
1818
@%:@define PACKAGE_STRING "$PACKAGE_STRING"
1822
cat >>confdefs.h <<_ACEOF
1823
@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1827
# Let the site file select an alternate cache file if it wants to.
1828
# Prefer explicitly selected file to automatically selected ones.
1829
if test -n "$CONFIG_SITE"; then
1830
set x "$CONFIG_SITE"
1831
elif test "x$prefix" != xNONE; then
1832
set x "$prefix/share/config.site" "$prefix/etc/config.site"
1834
set x "$ac_default_prefix/share/config.site" \
1835
"$ac_default_prefix/etc/config.site"
1840
if test -r "$ac_site_file"; then
1841
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1842
echo "$as_me: loading site script $ac_site_file" >&6;}
1843
sed 's/^/| /' "$ac_site_file" >&5
1848
if test -r "$cache_file"; then
1849
# Some versions of bash will fail to source /dev/null (special
1850
# files actually), so we avoid doing that.
1851
if test -f "$cache_file"; then
1852
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
1853
echo "$as_me: loading cache $cache_file" >&6;}
1855
[\\/]* | ?:[\\/]* ) . "$cache_file";;
1856
*) . "./$cache_file";;
1860
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
1861
echo "$as_me: creating cache $cache_file" >&6;}
1865
# Check that the precious variables saved in the cache have kept the same
1867
ac_cache_corrupted=false
1868
for ac_var in $ac_precious_vars; do
1869
eval ac_old_set=\$ac_cv_env_${ac_var}_set
1870
eval ac_new_set=\$ac_env_${ac_var}_set
1871
eval ac_old_val=\$ac_cv_env_${ac_var}_value
1872
eval ac_new_val=\$ac_env_${ac_var}_value
1873
case $ac_old_set,$ac_new_set in
1875
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1876
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1877
ac_cache_corrupted=: ;;
1879
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1880
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1881
ac_cache_corrupted=: ;;
1884
if test "x$ac_old_val" != "x$ac_new_val"; then
1885
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1886
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1887
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1888
echo "$as_me: former value: $ac_old_val" >&2;}
1889
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1890
echo "$as_me: current value: $ac_new_val" >&2;}
1891
ac_cache_corrupted=:
1894
# Pass precious variables to config.status.
1895
if test "$ac_new_set" = set; then
1897
*\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1898
*) ac_arg=$ac_var=$ac_new_val ;;
1900
case " $ac_configure_args " in
1901
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1902
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1906
if $ac_cache_corrupted; then
1907
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1908
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1909
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1910
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1911
{ (exit 1); exit 1; }; }
1931
ac_cpp='$CPP $CPPFLAGS'
1932
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1933
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1934
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1940
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1941
if test -f "$ac_dir/install-sh"; then
1943
ac_install_sh="$ac_aux_dir/install-sh -c"
1945
elif test -f "$ac_dir/install.sh"; then
1947
ac_install_sh="$ac_aux_dir/install.sh -c"
1949
elif test -f "$ac_dir/shtool"; then
1951
ac_install_sh="$ac_aux_dir/shtool install -c"
1955
if test -z "$ac_aux_dir"; then
1956
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1957
echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1958
{ (exit 1); exit 1; }; }
1961
# These three variables are undocumented and unsupported,
1962
# and are intended to be withdrawn in a future Autoconf release.
1963
# They can cause serious problems if a builder's source tree is in a directory
1964
# whose full name contains unusual characters.
1965
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1966
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1967
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1970
# Make sure we can run config.sub.
1971
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1972
{ { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1973
echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1974
{ (exit 1); exit 1; }; }
1976
{ echo "$as_me:$LINENO: checking build system type" >&5
1977
echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1978
if test "${ac_cv_build+set}" = set; then
1979
echo $ECHO_N "(cached) $ECHO_C" >&6
1981
ac_build_alias=$build_alias
1982
test "x$ac_build_alias" = x &&
1983
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1984
test "x$ac_build_alias" = x &&
1985
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1986
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1987
{ (exit 1); exit 1; }; }
1988
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1989
{ { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1990
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1991
{ (exit 1); exit 1; }; }
1994
{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1995
echo "${ECHO_T}$ac_cv_build" >&6; }
1996
case $ac_cv_build in
1998
*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1999
echo "$as_me: error: invalid value of canonical build" >&2;}
2000
{ (exit 1); exit 1; }; };;
2003
ac_save_IFS=$IFS; IFS='-'
2009
# Remember, the first character of IFS is used to create $*,
2010
# except with old shells:
2013
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2016
{ echo "$as_me:$LINENO: checking host system type" >&5
2017
echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2018
if test "${ac_cv_host+set}" = set; then
2019
echo $ECHO_N "(cached) $ECHO_C" >&6
2021
if test "x$host_alias" = x; then
2022
ac_cv_host=$ac_cv_build
2024
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2025
{ { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2026
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2027
{ (exit 1); exit 1; }; }
2031
{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2032
echo "${ECHO_T}$ac_cv_host" >&6; }
2035
*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2036
echo "$as_me: error: invalid value of canonical host" >&2;}
2037
{ (exit 1); exit 1; }; };;
2040
ac_save_IFS=$IFS; IFS='-'
2046
# Remember, the first character of IFS is used to create $*,
2047
# except with old shells:
2050
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2053
{ echo "$as_me:$LINENO: checking target system type" >&5
2054
echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2055
if test "${ac_cv_target+set}" = set; then
2056
echo $ECHO_N "(cached) $ECHO_C" >&6
2058
if test "x$target_alias" = x; then
2059
ac_cv_target=$ac_cv_host
2061
ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2062
{ { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2063
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2064
{ (exit 1); exit 1; }; }
2068
{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2069
echo "${ECHO_T}$ac_cv_target" >&6; }
2070
case $ac_cv_target in
2072
*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2073
echo "$as_me: error: invalid value of canonical target" >&2;}
2074
{ (exit 1); exit 1; }; };;
2076
target=$ac_cv_target
2077
ac_save_IFS=$IFS; IFS='-'
2083
# Remember, the first character of IFS is used to create $*,
2084
# except with old shells:
2087
case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2090
# The aliases save the names the user supplied, while $host etc.
2091
# will get canonicalized.
2092
test -n "$target_alias" &&
2093
test "$program_prefix$program_suffix$program_transform_name" = \
2095
program_prefix=${target_alias}-
2097
am__api_version='1.10'
2099
# Find a good install program. We prefer a C program (faster),
2100
# so one script is as good as another. But avoid the broken or
2101
# incompatible versions:
2102
# SysV /etc/install, /usr/sbin/install
2103
# SunOS /usr/etc/install
2104
# IRIX /sbin/install
2106
# AmigaOS /C/install, which installs bootblocks on floppy discs
2107
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2108
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2109
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2110
# OS/2's system install, which has a completely different semantic
2111
# ./install, which can be erroneously created by make from ./install.sh.
2112
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2113
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2114
if test -z "$INSTALL"; then
2115
if test "${ac_cv_path_install+set}" = set; then
2116
echo $ECHO_N "(cached) $ECHO_C" >&6
2118
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2122
test -z "$as_dir" && as_dir=.
2123
# Account for people who put trailing slashes in PATH elements.
2125
./ | .// | /cC/* | \
2126
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2127
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2130
# OSF1 and SCO ODT 3.0 have their own names for install.
2131
# Don't use installbsd from OSF since it installs stuff as root
2133
for ac_prog in ginstall scoinst install; do
2134
for ac_exec_ext in '' $ac_executable_extensions; do
2135
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2136
if test $ac_prog = install &&
2137
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2138
# AIX install. It has an incompatible calling convention.
2140
elif test $ac_prog = install &&
2141
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2142
# program-specific install script used by HP pwplus--don't use.
2145
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2158
if test "${ac_cv_path_install+set}" = set; then
2159
INSTALL=$ac_cv_path_install
2161
# As a last resort, use the slow shell script. Don't cache a
2162
# value for INSTALL within a source directory, because that will
2163
# break other packages using the cache if that directory is
2164
# removed, or if the value is a relative name.
2165
INSTALL=$ac_install_sh
2168
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2169
echo "${ECHO_T}$INSTALL" >&6; }
2171
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2172
# It thinks the first close brace ends the variable substitution.
2173
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2175
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2177
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2179
{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2180
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2183
echo timestamp > conftest.file
2184
# Do `set' in a subshell so we don't clobber the current shell's
2185
# arguments. Must try -L first in case configure is actually a
2186
# symlink; some systems play weird games with the mod time of symlinks
2187
# (eg FreeBSD returns the mod time of the symlink's containing
2190
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2191
if test "$*" = "X"; then
2193
set X `ls -t $srcdir/configure conftest.file`
2196
if test "$*" != "X $srcdir/configure conftest.file" \
2197
&& test "$*" != "X conftest.file $srcdir/configure"; then
2199
# If neither matched, then we have a broken ls. This can happen
2200
# if, for instance, CONFIG_SHELL is bash and it inherits a
2201
# broken ls alias from the environment. This has actually
2202
# happened. Such a system could not be considered "sane".
2203
{ { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2204
alias in your environment" >&5
2205
echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2206
alias in your environment" >&2;}
2207
{ (exit 1); exit 1; }; }
2210
test "$2" = conftest.file
2216
{ { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2217
Check your system clock" >&5
2218
echo "$as_me: error: newly created file is older than distributed files!
2219
Check your system clock" >&2;}
2220
{ (exit 1); exit 1; }; }
2222
{ echo "$as_me:$LINENO: result: yes" >&5
2223
echo "${ECHO_T}yes" >&6; }
2224
test "$program_prefix" != NONE &&
2225
program_transform_name="s&^&$program_prefix&;$program_transform_name"
2226
# Use a double $ so make ignores it.
2227
test "$program_suffix" != NONE &&
2228
program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2229
# Double any \ or $. echo might interpret backslashes.
2230
# By default was `s,x,x', remove it if useless.
2231
cat <<\_ACEOF >conftest.sed
2232
s/[\\$]/&&/g;s/;s,x,x,$//
2234
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2237
# expand $ac_aux_dir to an absolute path
2238
am_aux_dir=`cd $ac_aux_dir && pwd`
2240
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2241
# Use eval to expand $SHELL
2242
if eval "$MISSING --run true"; then
2243
am_missing_run="$MISSING --run "
2246
{ echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2247
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2250
{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2251
echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2252
if test -z "$MKDIR_P"; then
2253
if test "${ac_cv_path_mkdir+set}" = set; then
2254
echo $ECHO_N "(cached) $ECHO_C" >&6
2256
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2257
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2260
test -z "$as_dir" && as_dir=.
2261
for ac_prog in mkdir gmkdir; do
2262
for ac_exec_ext in '' $ac_executable_extensions; do
2263
{ test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2264
case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2265
'mkdir (GNU coreutils) '* | \
2266
'mkdir (coreutils) '* | \
2267
'mkdir (fileutils) '4.1*)
2268
ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2278
if test "${ac_cv_path_mkdir+set}" = set; then
2279
MKDIR_P="$ac_cv_path_mkdir -p"
2281
# As a last resort, use the slow shell script. Don't cache a
2282
# value for MKDIR_P within a source directory, because that will
2283
# break other packages using the cache if that directory is
2284
# removed, or if the value is a relative name.
2285
test -d ./--version && rmdir ./--version
2286
MKDIR_P="$ac_install_sh -d"
2289
{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2290
echo "${ECHO_T}$MKDIR_P" >&6; }
2294
[\\/$]* | ?:[\\/]*) ;;
2295
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2298
for ac_prog in gawk mawk nawk awk
2300
# Extract the first word of "$ac_prog", so it can be a program name with args.
2301
set dummy $ac_prog; ac_word=$2
2302
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2303
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2304
if test "${ac_cv_prog_AWK+set}" = set; then
2305
echo $ECHO_N "(cached) $ECHO_C" >&6
2307
if test -n "$AWK"; then
2308
ac_cv_prog_AWK="$AWK" # Let the user override the test.
2310
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2314
test -z "$as_dir" && as_dir=.
2315
for ac_exec_ext in '' $ac_executable_extensions; do
2316
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2317
ac_cv_prog_AWK="$ac_prog"
2318
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2328
if test -n "$AWK"; then
2329
{ echo "$as_me:$LINENO: result: $AWK" >&5
2330
echo "${ECHO_T}$AWK" >&6; }
2332
{ echo "$as_me:$LINENO: result: no" >&5
2333
echo "${ECHO_T}no" >&6; }
2337
test -n "$AWK" && break
2340
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2341
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2342
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2343
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2344
echo $ECHO_N "(cached) $ECHO_C" >&6
2346
cat >conftest.make <<\_ACEOF
2349
@echo '@@@%%%=$(MAKE)=@@@%%%'
2351
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2352
case `${MAKE-make} -f conftest.make 2>/dev/null` in
2354
eval ac_cv_prog_make_${ac_make}_set=yes;;
2356
eval ac_cv_prog_make_${ac_make}_set=no;;
2360
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2361
{ echo "$as_me:$LINENO: result: yes" >&5
2362
echo "${ECHO_T}yes" >&6; }
2365
{ echo "$as_me:$LINENO: result: no" >&5
2366
echo "${ECHO_T}no" >&6; }
2367
SET_MAKE="MAKE=${MAKE-make}"
2370
rm -rf .tst 2>/dev/null
2371
mkdir .tst 2>/dev/null
2372
if test -d .tst; then
2377
rmdir .tst 2>/dev/null
2379
if test "`cd $srcdir && pwd`" != "`pwd`"; then
2380
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2381
# is not polluted with repeated "-I."
2382
am__isrc=' -I$(srcdir)'
2383
# test to see if srcdir already configured
2384
if test -f $srcdir/config.status; then
2385
{ { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2386
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2387
{ (exit 1); exit 1; }; }
2391
# test whether we have cygpath
2392
if test -z "$CYGPATH_W"; then
2393
if (cygpath --version) >/dev/null 2>/dev/null; then
2394
CYGPATH_W='cygpath -w'
2401
# Define the identity of the package.
2402
PACKAGE=TestGfxPrimitives
2406
cat >>confdefs.h <<_ACEOF
2407
@%:@define PACKAGE "$PACKAGE"
2411
cat >>confdefs.h <<_ACEOF
2412
@%:@define VERSION "$VERSION"
2415
# Some tools Automake needs.
2417
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2420
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2423
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2426
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2429
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2431
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2433
# Installed binaries are usually stripped using `strip' when the user
2434
# run `make install-strip'. However `strip' might not be the right
2435
# tool to use in cross-compilation environments, therefore Automake
2436
# will honor the `STRIP' environment variable to overrule this program.
2437
if test "$cross_compiling" != no; then
2438
if test -n "$ac_tool_prefix"; then
2439
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2440
set dummy ${ac_tool_prefix}strip; ac_word=$2
2441
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2442
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2443
if test "${ac_cv_prog_STRIP+set}" = set; then
2444
echo $ECHO_N "(cached) $ECHO_C" >&6
2446
if test -n "$STRIP"; then
2447
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2449
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2453
test -z "$as_dir" && as_dir=.
2454
for ac_exec_ext in '' $ac_executable_extensions; do
2455
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2456
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2457
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2466
STRIP=$ac_cv_prog_STRIP
2467
if test -n "$STRIP"; then
2468
{ echo "$as_me:$LINENO: result: $STRIP" >&5
2469
echo "${ECHO_T}$STRIP" >&6; }
2471
{ echo "$as_me:$LINENO: result: no" >&5
2472
echo "${ECHO_T}no" >&6; }
2477
if test -z "$ac_cv_prog_STRIP"; then
2479
# Extract the first word of "strip", so it can be a program name with args.
2480
set dummy strip; ac_word=$2
2481
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2482
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2483
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2484
echo $ECHO_N "(cached) $ECHO_C" >&6
2486
if test -n "$ac_ct_STRIP"; then
2487
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2489
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2493
test -z "$as_dir" && as_dir=.
2494
for ac_exec_ext in '' $ac_executable_extensions; do
2495
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2496
ac_cv_prog_ac_ct_STRIP="strip"
2497
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2506
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2507
if test -n "$ac_ct_STRIP"; then
2508
{ echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2509
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2511
{ echo "$as_me:$LINENO: result: no" >&5
2512
echo "${ECHO_T}no" >&6; }
2515
if test "x$ac_ct_STRIP" = x; then
2518
case $cross_compiling:$ac_tool_warned in
2520
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2521
whose name does not start with the host triplet. If you think this
2522
configuration is useful to you, please write to autoconf@gnu.org." >&5
2523
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2524
whose name does not start with the host triplet. If you think this
2525
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2526
ac_tool_warned=yes ;;
2531
STRIP="$ac_cv_prog_STRIP"
2535
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2537
# We need awk for the "check" target. The system "awk" is bad on
2539
# Always define AMTAR for backward compatibility.
2541
AMTAR=${AMTAR-"${am_missing_run}tar"}
2543
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2554
# Check whether --enable-shared was given.
2555
if test "${enable_shared+set}" = set; then
2556
enableval=$enable_shared; p=${PACKAGE-default}
2558
yes) enable_shared=yes ;;
2559
no) enable_shared=no ;;
2562
# Look at the argument we got. We use all the common list separators.
2563
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2564
for pkg in $enableval; do
2566
if test "X$pkg" = "X$p"; then
2578
# Check whether --enable-static was given.
2579
if test "${enable_static+set}" = set; then
2580
enableval=$enable_static; p=${PACKAGE-default}
2582
yes) enable_static=yes ;;
2583
no) enable_static=no ;;
2586
# Look at the argument we got. We use all the common list separators.
2587
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2588
for pkg in $enableval; do
2590
if test "X$pkg" = "X$p"; then
2602
# Check whether --enable-fast-install was given.
2603
if test "${enable_fast_install+set}" = set; then
2604
enableval=$enable_fast_install; p=${PACKAGE-default}
2606
yes) enable_fast_install=yes ;;
2607
no) enable_fast_install=no ;;
2609
enable_fast_install=no
2610
# Look at the argument we got. We use all the common list separators.
2611
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2612
for pkg in $enableval; do
2614
if test "X$pkg" = "X$p"; then
2615
enable_fast_install=yes
2622
enable_fast_install=yes
2626
DEPDIR="${am__leading_dot}deps"
2628
ac_config_commands="$ac_config_commands depfiles"
2631
am_make=${MAKE-make}
2632
cat > confinc << 'END'
2637
# If we don't find an include directive, just comment out the code.
2638
{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2639
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2643
# First try GNU make style include.
2644
echo "include confinc" > confmf
2645
# We grep out `Entering directory' and `Leaving directory'
2646
# messages which can occur if `w' ends up in MAKEFLAGS.
2647
# In particular we don't look at `^make:' because GNU make might
2648
# be invoked under some other name (usually "gmake"), in which
2649
# case it prints its new name instead of `make'.
2650
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2655
# Now try BSD make style include.
2656
if test "$am__include" = "#"; then
2657
echo '.include "confinc"' > confmf
2658
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2659
am__include=.include
2666
{ echo "$as_me:$LINENO: result: $_am_result" >&5
2667
echo "${ECHO_T}$_am_result" >&6; }
2668
rm -f confinc confmf
2670
# Check whether --enable-dependency-tracking was given.
2671
if test "${enable_dependency_tracking+set}" = set; then
2672
enableval=$enable_dependency_tracking;
2675
if test "x$enable_dependency_tracking" != xno; then
2676
am_depcomp="$ac_aux_dir/depcomp"
2679
if test "x$enable_dependency_tracking" != xno; then
2689
ac_cpp='$CPP $CPPFLAGS'
2690
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2691
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2692
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2693
if test -n "$ac_tool_prefix"; then
2694
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2695
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2696
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2697
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2698
if test "${ac_cv_prog_CC+set}" = set; then
2699
echo $ECHO_N "(cached) $ECHO_C" >&6
2701
if test -n "$CC"; then
2702
ac_cv_prog_CC="$CC" # Let the user override the test.
2704
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2708
test -z "$as_dir" && as_dir=.
2709
for ac_exec_ext in '' $ac_executable_extensions; do
2710
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2711
ac_cv_prog_CC="${ac_tool_prefix}gcc"
2712
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2722
if test -n "$CC"; then
2723
{ echo "$as_me:$LINENO: result: $CC" >&5
2724
echo "${ECHO_T}$CC" >&6; }
2726
{ echo "$as_me:$LINENO: result: no" >&5
2727
echo "${ECHO_T}no" >&6; }
2732
if test -z "$ac_cv_prog_CC"; then
2734
# Extract the first word of "gcc", so it can be a program name with args.
2735
set dummy gcc; ac_word=$2
2736
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2737
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2738
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2739
echo $ECHO_N "(cached) $ECHO_C" >&6
2741
if test -n "$ac_ct_CC"; then
2742
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2744
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2748
test -z "$as_dir" && as_dir=.
2749
for ac_exec_ext in '' $ac_executable_extensions; do
2750
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2751
ac_cv_prog_ac_ct_CC="gcc"
2752
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2761
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2762
if test -n "$ac_ct_CC"; then
2763
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2764
echo "${ECHO_T}$ac_ct_CC" >&6; }
2766
{ echo "$as_me:$LINENO: result: no" >&5
2767
echo "${ECHO_T}no" >&6; }
2770
if test "x$ac_ct_CC" = x; then
2773
case $cross_compiling:$ac_tool_warned in
2775
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2776
whose name does not start with the host triplet. If you think this
2777
configuration is useful to you, please write to autoconf@gnu.org." >&5
2778
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2779
whose name does not start with the host triplet. If you think this
2780
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2781
ac_tool_warned=yes ;;
2789
if test -z "$CC"; then
2790
if test -n "$ac_tool_prefix"; then
2791
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2792
set dummy ${ac_tool_prefix}cc; ac_word=$2
2793
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2794
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2795
if test "${ac_cv_prog_CC+set}" = set; then
2796
echo $ECHO_N "(cached) $ECHO_C" >&6
2798
if test -n "$CC"; then
2799
ac_cv_prog_CC="$CC" # Let the user override the test.
2801
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2805
test -z "$as_dir" && as_dir=.
2806
for ac_exec_ext in '' $ac_executable_extensions; do
2807
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2808
ac_cv_prog_CC="${ac_tool_prefix}cc"
2809
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2819
if test -n "$CC"; then
2820
{ echo "$as_me:$LINENO: result: $CC" >&5
2821
echo "${ECHO_T}$CC" >&6; }
2823
{ echo "$as_me:$LINENO: result: no" >&5
2824
echo "${ECHO_T}no" >&6; }
2830
if test -z "$CC"; then
2831
# Extract the first word of "cc", so it can be a program name with args.
2832
set dummy cc; ac_word=$2
2833
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2834
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2835
if test "${ac_cv_prog_CC+set}" = set; then
2836
echo $ECHO_N "(cached) $ECHO_C" >&6
2838
if test -n "$CC"; then
2839
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
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2850
ac_prog_rejected=yes
2854
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2861
if test $ac_prog_rejected = yes; then
2862
# We found a bogon in the path, so make sure we never use it.
2863
set dummy $ac_cv_prog_CC
2865
if test $@%:@ != 0; then
2866
# We chose a different compiler from the bogus one.
2867
# However, it has the same basename, so the bogon will be chosen
2868
# first if we set CC to just the basename; use the full file name.
2870
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2876
if test -n "$CC"; then
2877
{ echo "$as_me:$LINENO: result: $CC" >&5
2878
echo "${ECHO_T}$CC" >&6; }
2880
{ echo "$as_me:$LINENO: result: no" >&5
2881
echo "${ECHO_T}no" >&6; }
2886
if test -z "$CC"; then
2887
if test -n "$ac_tool_prefix"; then
2888
for ac_prog in cl.exe
2890
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2891
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2892
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2893
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2894
if test "${ac_cv_prog_CC+set}" = set; then
2895
echo $ECHO_N "(cached) $ECHO_C" >&6
2897
if test -n "$CC"; then
2898
ac_cv_prog_CC="$CC" # Let the user override the test.
2900
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2904
test -z "$as_dir" && as_dir=.
2905
for ac_exec_ext in '' $ac_executable_extensions; do
2906
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2907
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2908
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2918
if test -n "$CC"; then
2919
{ echo "$as_me:$LINENO: result: $CC" >&5
2920
echo "${ECHO_T}$CC" >&6; }
2922
{ echo "$as_me:$LINENO: result: no" >&5
2923
echo "${ECHO_T}no" >&6; }
2927
test -n "$CC" && break
2930
if test -z "$CC"; then
2932
for ac_prog in cl.exe
2934
# Extract the first word of "$ac_prog", so it can be a program name with args.
2935
set dummy $ac_prog; ac_word=$2
2936
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2937
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2938
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2939
echo $ECHO_N "(cached) $ECHO_C" >&6
2941
if test -n "$ac_ct_CC"; then
2942
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2944
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2948
test -z "$as_dir" && as_dir=.
2949
for ac_exec_ext in '' $ac_executable_extensions; do
2950
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2951
ac_cv_prog_ac_ct_CC="$ac_prog"
2952
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2961
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2962
if test -n "$ac_ct_CC"; then
2963
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2964
echo "${ECHO_T}$ac_ct_CC" >&6; }
2966
{ echo "$as_me:$LINENO: result: no" >&5
2967
echo "${ECHO_T}no" >&6; }
2971
test -n "$ac_ct_CC" && break
2974
if test "x$ac_ct_CC" = x; then
2977
case $cross_compiling:$ac_tool_warned in
2979
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2980
whose name does not start with the host triplet. If you think this
2981
configuration is useful to you, please write to autoconf@gnu.org." >&5
2982
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2983
whose name does not start with the host triplet. If you think this
2984
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2985
ac_tool_warned=yes ;;
2994
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2995
See \`config.log' for more details." >&5
2996
echo "$as_me: error: no acceptable C compiler found in \$PATH
2997
See \`config.log' for more details." >&2;}
2998
{ (exit 1); exit 1; }; }
3000
# Provide some information about the compiler.
3001
echo "$as_me:$LINENO: checking for C compiler version" >&5
3002
ac_compiler=`set X $ac_compile; echo $2`
3003
{ (ac_try="$ac_compiler --version >&5"
3005
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3006
*) ac_try_echo=$ac_try;;
3008
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3009
(eval "$ac_compiler --version >&5") 2>&5
3011
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3012
(exit $ac_status); }
3013
{ (ac_try="$ac_compiler -v >&5"
3015
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3016
*) ac_try_echo=$ac_try;;
3018
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3019
(eval "$ac_compiler -v >&5") 2>&5
3021
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3022
(exit $ac_status); }
3023
{ (ac_try="$ac_compiler -V >&5"
3025
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3026
*) ac_try_echo=$ac_try;;
3028
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3029
(eval "$ac_compiler -V >&5") 2>&5
3031
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032
(exit $ac_status); }
3034
cat >conftest.$ac_ext <<_ACEOF
3037
cat confdefs.h >>conftest.$ac_ext
3038
cat >>conftest.$ac_ext <<_ACEOF
3039
/* end confdefs.h. */
3049
ac_clean_files_save=$ac_clean_files
3050
ac_clean_files="$ac_clean_files a.out a.exe b.out"
3051
# Try to create an executable without -o first, disregard a.out.
3052
# It will help us diagnose broken compilers, and finding out an intuition
3054
{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3055
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3056
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3058
# List of possible output files, starting from the most likely.
3059
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3060
# only as a last resort. b.out is created by i960 compilers.
3061
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3063
# The IRIX 6 linker writes into existing files which may not be
3064
# executable, retaining their permissions. Remove them first so a
3065
# subsequent execution test works.
3067
for ac_file in $ac_files
3070
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3071
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
3076
if { (ac_try="$ac_link_default"
3078
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3079
*) ac_try_echo=$ac_try;;
3081
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3082
(eval "$ac_link_default") 2>&5
3084
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3085
(exit $ac_status); }; then
3086
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3087
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3088
# in a Makefile. We should not override ac_cv_exeext if it was cached,
3089
# so that the user can short-circuit this test for compilers unknown to
3091
for ac_file in $ac_files ''
3093
test -f "$ac_file" || continue
3095
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3098
# We found the default executable, but exeext='' is most
3102
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3104
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3106
# We set ac_cv_exeext here because the later test for it is not
3107
# safe: cross compilers may not add the suffix if given an `-o'
3108
# argument, so we may need to know it at that point already.
3109
# Even if this section looks crufty: it has the advantage of
3116
test "$ac_cv_exeext" = no && ac_cv_exeext=
3122
{ echo "$as_me:$LINENO: result: $ac_file" >&5
3123
echo "${ECHO_T}$ac_file" >&6; }
3124
if test -z "$ac_file"; then
3125
echo "$as_me: failed program was:" >&5
3126
sed 's/^/| /' conftest.$ac_ext >&5
3128
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3129
See \`config.log' for more details." >&5
3130
echo "$as_me: error: C compiler cannot create executables
3131
See \`config.log' for more details." >&2;}
3132
{ (exit 77); exit 77; }; }
3135
ac_exeext=$ac_cv_exeext
3137
# Check that the compiler produces executables we can run. If not, either
3138
# the compiler is broken, or we cross compile.
3139
{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3140
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3141
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3142
# If not cross compiling, check that we can run a simple program.
3143
if test "$cross_compiling" != yes; then
3144
if { ac_try='./$ac_file'
3145
{ (case "(($ac_try" in
3146
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3147
*) ac_try_echo=$ac_try;;
3149
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3150
(eval "$ac_try") 2>&5
3152
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3153
(exit $ac_status); }; }; then
3156
if test "$cross_compiling" = maybe; then
3159
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3160
If you meant to cross compile, use \`--host'.
3161
See \`config.log' for more details." >&5
3162
echo "$as_me: error: cannot run C compiled programs.
3163
If you meant to cross compile, use \`--host'.
3164
See \`config.log' for more details." >&2;}
3165
{ (exit 1); exit 1; }; }
3169
{ echo "$as_me:$LINENO: result: yes" >&5
3170
echo "${ECHO_T}yes" >&6; }
3172
rm -f a.out a.exe conftest$ac_cv_exeext b.out
3173
ac_clean_files=$ac_clean_files_save
3174
# Check that the compiler produces executables we can run. If not, either
3175
# the compiler is broken, or we cross compile.
3176
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3177
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3178
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
3179
echo "${ECHO_T}$cross_compiling" >&6; }
3181
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
3182
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3183
if { (ac_try="$ac_link"
3185
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3186
*) ac_try_echo=$ac_try;;
3188
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3189
(eval "$ac_link") 2>&5
3191
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3192
(exit $ac_status); }; then
3193
# If both `conftest.exe' and `conftest' are `present' (well, observable)
3194
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3195
# work properly (i.e., refer to `conftest.exe'), while it won't with
3197
for ac_file in conftest.exe conftest conftest.*; do
3198
test -f "$ac_file" || continue
3200
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3201
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3207
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3208
See \`config.log' for more details." >&5
3209
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3210
See \`config.log' for more details." >&2;}
3211
{ (exit 1); exit 1; }; }
3214
rm -f conftest$ac_cv_exeext
3215
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3216
echo "${ECHO_T}$ac_cv_exeext" >&6; }
3218
rm -f conftest.$ac_ext
3219
EXEEXT=$ac_cv_exeext
3221
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3222
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3223
if test "${ac_cv_objext+set}" = set; then
3224
echo $ECHO_N "(cached) $ECHO_C" >&6
3226
cat >conftest.$ac_ext <<_ACEOF
3229
cat confdefs.h >>conftest.$ac_ext
3230
cat >>conftest.$ac_ext <<_ACEOF
3231
/* end confdefs.h. */
3241
rm -f conftest.o conftest.obj
3242
if { (ac_try="$ac_compile"
3244
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3245
*) ac_try_echo=$ac_try;;
3247
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3248
(eval "$ac_compile") 2>&5
3250
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3251
(exit $ac_status); }; then
3252
for ac_file in conftest.o conftest.obj conftest.*; do
3253
test -f "$ac_file" || continue;
3255
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3256
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3261
echo "$as_me: failed program was:" >&5
3262
sed 's/^/| /' conftest.$ac_ext >&5
3264
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3265
See \`config.log' for more details." >&5
3266
echo "$as_me: error: cannot compute suffix of object files: cannot compile
3267
See \`config.log' for more details." >&2;}
3268
{ (exit 1); exit 1; }; }
3271
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3273
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3274
echo "${ECHO_T}$ac_cv_objext" >&6; }
3275
OBJEXT=$ac_cv_objext
3277
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3278
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3279
if test "${ac_cv_c_compiler_gnu+set}" = set; then
3280
echo $ECHO_N "(cached) $ECHO_C" >&6
3282
cat >conftest.$ac_ext <<_ACEOF
3285
cat confdefs.h >>conftest.$ac_ext
3286
cat >>conftest.$ac_ext <<_ACEOF
3287
/* 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
3325
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3326
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3329
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3330
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3331
GCC=`test $ac_compiler_gnu = yes && echo yes`
3332
ac_test_CFLAGS=${CFLAGS+set}
3333
ac_save_CFLAGS=$CFLAGS
3334
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3335
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3336
if test "${ac_cv_prog_cc_g+set}" = set; then
3337
echo $ECHO_N "(cached) $ECHO_C" >&6
3339
ac_save_c_werror_flag=$ac_c_werror_flag
3340
ac_c_werror_flag=yes
3343
cat >conftest.$ac_ext <<_ACEOF
3346
cat confdefs.h >>conftest.$ac_ext
3347
cat >>conftest.$ac_ext <<_ACEOF
3348
/* end confdefs.h. */
3358
rm -f conftest.$ac_objext
3359
if { (ac_try="$ac_compile"
3361
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3362
*) ac_try_echo=$ac_try;;
3364
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3365
(eval "$ac_compile") 2>conftest.er1
3367
grep -v '^ *+' conftest.er1 >conftest.err
3369
cat conftest.err >&5
3370
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371
(exit $ac_status); } && {
3372
test -z "$ac_c_werror_flag" ||
3373
test ! -s conftest.err
3374
} && test -s conftest.$ac_objext; then
3377
echo "$as_me: failed program was:" >&5
3378
sed 's/^/| /' conftest.$ac_ext >&5
3381
cat >conftest.$ac_ext <<_ACEOF
3384
cat confdefs.h >>conftest.$ac_ext
3385
cat >>conftest.$ac_ext <<_ACEOF
3386
/* end confdefs.h. */
3396
rm -f conftest.$ac_objext
3397
if { (ac_try="$ac_compile"
3399
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3400
*) ac_try_echo=$ac_try;;
3402
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3403
(eval "$ac_compile") 2>conftest.er1
3405
grep -v '^ *+' conftest.er1 >conftest.err
3407
cat conftest.err >&5
3408
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3409
(exit $ac_status); } && {
3410
test -z "$ac_c_werror_flag" ||
3411
test ! -s conftest.err
3412
} && test -s conftest.$ac_objext; then
3415
echo "$as_me: failed program was:" >&5
3416
sed 's/^/| /' conftest.$ac_ext >&5
3418
ac_c_werror_flag=$ac_save_c_werror_flag
3420
cat >conftest.$ac_ext <<_ACEOF
3423
cat confdefs.h >>conftest.$ac_ext
3424
cat >>conftest.$ac_ext <<_ACEOF
3425
/* end confdefs.h. */
3435
rm -f conftest.$ac_objext
3436
if { (ac_try="$ac_compile"
3438
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3439
*) ac_try_echo=$ac_try;;
3441
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3442
(eval "$ac_compile") 2>conftest.er1
3444
grep -v '^ *+' conftest.er1 >conftest.err
3446
cat conftest.err >&5
3447
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3448
(exit $ac_status); } && {
3449
test -z "$ac_c_werror_flag" ||
3450
test ! -s conftest.err
3451
} && test -s conftest.$ac_objext; then
3454
echo "$as_me: failed program was:" >&5
3455
sed 's/^/| /' conftest.$ac_ext >&5
3460
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3463
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3466
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3467
ac_c_werror_flag=$ac_save_c_werror_flag
3469
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3470
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3471
if test "$ac_test_CFLAGS" = set; then
3472
CFLAGS=$ac_save_CFLAGS
3473
elif test $ac_cv_prog_cc_g = yes; then
3474
if test "$GCC" = yes; then
3480
if test "$GCC" = yes; then
3486
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3487
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3488
if test "${ac_cv_prog_cc_c89+set}" = set; then
3489
echo $ECHO_N "(cached) $ECHO_C" >&6
3491
ac_cv_prog_cc_c89=no
3493
cat >conftest.$ac_ext <<_ACEOF
3496
cat confdefs.h >>conftest.$ac_ext
3497
cat >>conftest.$ac_ext <<_ACEOF
3498
/* end confdefs.h. */
3501
#include <sys/types.h>
3502
#include <sys/stat.h>
3503
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3504
struct buf { int x; };
3505
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3506
static char *e (p, i)
3512
static char *f (char * (*g) (char **, int), char **p, ...)
3517
s = g (p, va_arg (v,int));
3522
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3523
function prototypes and stuff, but not '\xHH' hex character constants.
3524
These don't provoke an error unfortunately, instead are silently treated
3525
as 'x'. The following induces an error, until -std is added to get
3526
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3527
array size at least. It's necessary to write '\x00'==0 to get something
3528
that's true only with -std. */
3529
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3531
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3532
inside strings and character constants. */
3534
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3536
int test (int i, double x);
3537
struct s1 {int (*f) (int a);};
3538
struct s2 {int (*f) (double a);};
3539
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3545
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3550
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3551
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3553
CC="$ac_save_CC $ac_arg"
3554
rm -f conftest.$ac_objext
3555
if { (ac_try="$ac_compile"
3557
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3558
*) ac_try_echo=$ac_try;;
3560
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3561
(eval "$ac_compile") 2>conftest.er1
3563
grep -v '^ *+' conftest.er1 >conftest.err
3565
cat conftest.err >&5
3566
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567
(exit $ac_status); } && {
3568
test -z "$ac_c_werror_flag" ||
3569
test ! -s conftest.err
3570
} && test -s conftest.$ac_objext; then
3571
ac_cv_prog_cc_c89=$ac_arg
3573
echo "$as_me: failed program was:" >&5
3574
sed 's/^/| /' conftest.$ac_ext >&5
3579
rm -f core conftest.err conftest.$ac_objext
3580
test "x$ac_cv_prog_cc_c89" != "xno" && break
3582
rm -f conftest.$ac_ext
3587
case "x$ac_cv_prog_cc_c89" in
3589
{ echo "$as_me:$LINENO: result: none needed" >&5
3590
echo "${ECHO_T}none needed" >&6; } ;;
3592
{ echo "$as_me:$LINENO: result: unsupported" >&5
3593
echo "${ECHO_T}unsupported" >&6; } ;;
3595
CC="$CC $ac_cv_prog_cc_c89"
3596
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3597
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3602
ac_cpp='$CPP $CPPFLAGS'
3603
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3604
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3605
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3607
depcc="$CC" am_compiler_list=
3609
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3610
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3611
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3612
echo $ECHO_N "(cached) $ECHO_C" >&6
3614
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3615
# We make a subdir and do the tests there. Otherwise we can end up
3616
# making bogus files that we don't know about and never remove. For
3617
# instance it was reported that on HP-UX the gcc test will end up
3618
# making a dummy file named `D' -- because `-MD' means `put the output
3621
# Copy depcomp to subdir because otherwise we won't find it if we're
3622
# using a relative directory.
3623
cp "$am_depcomp" conftest.dir
3625
# We will build objects and dependencies in a subdirectory because
3626
# it helps to detect inapplicable dependency modes. For instance
3627
# both Tru64's cc and ICC support -MD to output dependencies as a
3628
# side effect of compilation, but ICC will put the dependencies in
3629
# the current directory while Tru64 will put them in the object
3633
am_cv_CC_dependencies_compiler_type=none
3634
if test "$am_compiler_list" = ""; then
3635
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3637
for depmode in $am_compiler_list; do
3638
# Setup a source with many dependencies, because some compilers
3639
# like to wrap large dependency lists on column 80 (with \), and
3640
# we should not choose a depcomp mode which is confused by this.
3642
# We need to recreate these files for each test, as the compiler may
3643
# overwrite some of them when testing with obscure command lines.
3644
# This happens at least with the AIX C compiler.
3646
for i in 1 2 3 4 5 6; do
3647
echo '#include "conftst'$i'.h"' >> sub/conftest.c
3648
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3649
# Solaris 8's {/usr,}/bin/sh.
3650
touch sub/conftst$i.h
3652
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3656
# after this tag, mechanisms are not by side-effect, so they'll
3657
# only be used when explicitly requested
3658
if test "x$enable_dependency_tracking" = xyes; then
3666
# We check with `-c' and `-o' for the sake of the "dashmstdout"
3667
# mode. It turns out that the SunPro C++ compiler does not properly
3668
# handle `-M -o', and we need to detect this.
3669
if depmode=$depmode \
3670
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3671
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3672
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3673
>/dev/null 2>conftest.err &&
3674
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3675
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3676
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3677
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3678
# icc doesn't choke on unknown options, it will just issue warnings
3679
# or remarks (even with -Werror). So we grep stderr for any message
3680
# that says an option was ignored or not supported.
3681
# When given -MP, icc 7.0 and 7.1 complain thusly:
3682
# icc: Command line warning: ignoring option '-M'; no argument required
3683
# The diagnosis changed in icc 8.0:
3684
# icc: Command line remark: option '-MP' not supported
3685
if (grep 'ignoring option' conftest.err ||
3686
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3687
am_cv_CC_dependencies_compiler_type=$depmode
3696
am_cv_CC_dependencies_compiler_type=none
3700
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3701
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3702
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3705
test "x$enable_dependency_tracking" != xno \
3706
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3708
am__fastdepCC_FALSE='#'
3710
am__fastdepCC_TRUE='#'
3711
am__fastdepCC_FALSE=
3715
{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3716
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3717
if test "${lt_cv_path_SED+set}" = set; then
3718
echo $ECHO_N "(cached) $ECHO_C" >&6
3720
# Loop through the user's path and test for sed and gsed.
3721
# Then use that list of sed's as ones to test for truncation.
3722
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3726
test -z "$as_dir" && as_dir=.
3727
for lt_ac_prog in sed gsed; do
3728
for ac_exec_ext in '' $ac_executable_extensions; do
3729
if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3730
lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3738
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3739
# along with /bin/sed that truncates output.
3740
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3741
test ! -f $lt_ac_sed && continue
3742
cat /dev/null > conftest.in
3744
echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3745
# Check for GNU sed and select it if it is found.
3746
if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3747
lt_cv_path_SED=$lt_ac_sed
3751
cat conftest.in conftest.in >conftest.tmp
3752
mv conftest.tmp conftest.in
3753
cp conftest.in conftest.nl
3755
$lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3756
cmp -s conftest.out conftest.nl || break
3757
# 10000 chars as input seems more than enough
3758
test $lt_ac_count -gt 10 && break
3759
lt_ac_count=`expr $lt_ac_count + 1`
3760
if test $lt_ac_count -gt $lt_ac_max; then
3761
lt_ac_max=$lt_ac_count
3762
lt_cv_path_SED=$lt_ac_sed
3771
{ echo "$as_me:$LINENO: result: $SED" >&5
3772
echo "${ECHO_T}$SED" >&6; }
3774
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3775
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3776
if test "${ac_cv_path_GREP+set}" = set; then
3777
echo $ECHO_N "(cached) $ECHO_C" >&6
3779
# Extract the first word of "grep ggrep" to use in msg output
3780
if test -z "$GREP"; then
3781
set dummy grep ggrep; ac_prog_name=$2
3782
if test "${ac_cv_path_GREP+set}" = set; then
3783
echo $ECHO_N "(cached) $ECHO_C" >&6
3785
ac_path_GREP_found=false
3786
# Loop through the user's path and test for each of PROGNAME-LIST
3787
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3788
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3791
test -z "$as_dir" && as_dir=.
3792
for ac_prog in grep ggrep; do
3793
for ac_exec_ext in '' $ac_executable_extensions; do
3794
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3795
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3796
# Check for GNU ac_path_GREP and select it if it is found.
3797
# Check for GNU $ac_path_GREP
3798
case `"$ac_path_GREP" --version 2>&1` in
3800
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3803
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3806
cat "conftest.in" "conftest.in" >"conftest.tmp"
3807
mv "conftest.tmp" "conftest.in"
3808
cp "conftest.in" "conftest.nl"
3809
echo 'GREP' >> "conftest.nl"
3810
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3811
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3812
ac_count=`expr $ac_count + 1`
3813
if test $ac_count -gt ${ac_path_GREP_max-0}; then
3814
# Best one so far, save it but keep looking for a better one
3815
ac_cv_path_GREP="$ac_path_GREP"
3816
ac_path_GREP_max=$ac_count
3818
# 10*(2^10) chars as input seems more than enough
3819
test $ac_count -gt 10 && break
3821
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3825
$ac_path_GREP_found && break 3
3835
GREP="$ac_cv_path_GREP"
3836
if test -z "$GREP"; then
3837
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3838
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3839
{ (exit 1); exit 1; }; }
3843
ac_cv_path_GREP=$GREP
3848
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3849
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3850
GREP="$ac_cv_path_GREP"
3853
{ echo "$as_me:$LINENO: checking for egrep" >&5
3854
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3855
if test "${ac_cv_path_EGREP+set}" = set; then
3856
echo $ECHO_N "(cached) $ECHO_C" >&6
3858
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3859
then ac_cv_path_EGREP="$GREP -E"
3861
# Extract the first word of "egrep" to use in msg output
3862
if test -z "$EGREP"; then
3863
set dummy egrep; ac_prog_name=$2
3864
if test "${ac_cv_path_EGREP+set}" = set; then
3865
echo $ECHO_N "(cached) $ECHO_C" >&6
3867
ac_path_EGREP_found=false
3868
# Loop through the user's path and test for each of PROGNAME-LIST
3869
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3870
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3873
test -z "$as_dir" && as_dir=.
3874
for ac_prog in egrep; do
3875
for ac_exec_ext in '' $ac_executable_extensions; do
3876
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3877
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3878
# Check for GNU ac_path_EGREP and select it if it is found.
3879
# Check for GNU $ac_path_EGREP
3880
case `"$ac_path_EGREP" --version 2>&1` in
3882
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3885
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3888
cat "conftest.in" "conftest.in" >"conftest.tmp"
3889
mv "conftest.tmp" "conftest.in"
3890
cp "conftest.in" "conftest.nl"
3891
echo 'EGREP' >> "conftest.nl"
3892
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3893
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3894
ac_count=`expr $ac_count + 1`
3895
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3896
# Best one so far, save it but keep looking for a better one
3897
ac_cv_path_EGREP="$ac_path_EGREP"
3898
ac_path_EGREP_max=$ac_count
3900
# 10*(2^10) chars as input seems more than enough
3901
test $ac_count -gt 10 && break
3903
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3907
$ac_path_EGREP_found && break 3
3917
EGREP="$ac_cv_path_EGREP"
3918
if test -z "$EGREP"; then
3919
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3920
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3921
{ (exit 1); exit 1; }; }
3925
ac_cv_path_EGREP=$EGREP
3931
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3932
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3933
EGREP="$ac_cv_path_EGREP"
3937
# Check whether --with-gnu-ld was given.
3938
if test "${with_gnu_ld+set}" = set; then
3939
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3945
if test "$GCC" = yes; then
3946
# Check if gcc -print-prog-name=ld gives a path.
3947
{ echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3948
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3951
# gcc leaves a trailing carriage return which upsets mingw
3952
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3954
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3957
# Accept absolute paths.
3959
re_direlt='/[^/][^/]*/\.\./'
3960
# Canonicalize the pathname of ld
3961
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3962
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3963
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3965
test -z "$LD" && LD="$ac_prog"
3968
# If it fails, then pretend we aren't using GCC.
3972
# If it is relative, then search for the first ld in PATH.
3976
elif test "$with_gnu_ld" = yes; then
3977
{ echo "$as_me:$LINENO: checking for GNU ld" >&5
3978
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3980
{ echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3981
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
3983
if test "${lt_cv_path_LD+set}" = set; then
3984
echo $ECHO_N "(cached) $ECHO_C" >&6
3986
if test -z "$LD"; then
3987
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3988
for ac_dir in $PATH; do
3990
test -z "$ac_dir" && ac_dir=.
3991
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3992
lt_cv_path_LD="$ac_dir/$ac_prog"
3993
# Check to see if the program is GNU ld. I'd rather use --version,
3994
# but apparently some variants of GNU ld only accept -v.
3995
# Break only if it was the GNU/non-GNU ld that we prefer.
3996
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3997
*GNU* | *'with BFD'*)
3998
test "$with_gnu_ld" != no && break
4001
test "$with_gnu_ld" != yes && break
4008
lt_cv_path_LD="$LD" # Let the user override the test with a path.
4013
if test -n "$LD"; then
4014
{ echo "$as_me:$LINENO: result: $LD" >&5
4015
echo "${ECHO_T}$LD" >&6; }
4017
{ echo "$as_me:$LINENO: result: no" >&5
4018
echo "${ECHO_T}no" >&6; }
4020
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4021
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4022
{ (exit 1); exit 1; }; }
4023
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4024
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4025
if test "${lt_cv_prog_gnu_ld+set}" = set; then
4026
echo $ECHO_N "(cached) $ECHO_C" >&6
4028
# I'd rather use --version here, but apparently some GNU lds only accept -v.
4029
case `$LD -v 2>&1 </dev/null` in
4030
*GNU* | *'with BFD'*)
4031
lt_cv_prog_gnu_ld=yes
4034
lt_cv_prog_gnu_ld=no
4038
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4039
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4040
with_gnu_ld=$lt_cv_prog_gnu_ld
4043
{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4044
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4045
if test "${lt_cv_ld_reload_flag+set}" = set; then
4046
echo $ECHO_N "(cached) $ECHO_C" >&6
4048
lt_cv_ld_reload_flag='-r'
4050
{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4051
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4052
reload_flag=$lt_cv_ld_reload_flag
4053
case $reload_flag in
4055
*) reload_flag=" $reload_flag" ;;
4057
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4060
if test "$GCC" = yes; then
4061
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4063
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4068
{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4069
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4070
if test "${lt_cv_path_NM+set}" = set; then
4071
echo $ECHO_N "(cached) $ECHO_C" >&6
4073
if test -n "$NM"; then
4074
# Let the user override the test.
4077
lt_nm_to_check="${ac_tool_prefix}nm"
4078
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4079
lt_nm_to_check="$lt_nm_to_check nm"
4081
for lt_tmp_nm in $lt_nm_to_check; do
4082
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4083
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4085
test -z "$ac_dir" && ac_dir=.
4086
tmp_nm="$ac_dir/$lt_tmp_nm"
4087
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4088
# Check to see if the nm accepts a BSD-compat flag.
4089
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4090
# nm: unknown option "B" ignored
4091
# Tru64's nm complains that /dev/null is an invalid object file
4092
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4093
*/dev/null* | *'Invalid file or object type'*)
4094
lt_cv_path_NM="$tmp_nm -B"
4098
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4100
lt_cv_path_NM="$tmp_nm -p"
4104
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4105
continue # so that we can try to find one that supports BSD flags
4114
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4117
{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4118
echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4121
{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
4122
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4124
if test "$LN_S" = "ln -s"; then
4125
{ echo "$as_me:$LINENO: result: yes" >&5
4126
echo "${ECHO_T}yes" >&6; }
4128
{ echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4129
echo "${ECHO_T}no, using $LN_S" >&6; }
4132
{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4133
echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4134
if test "${lt_cv_deplibs_check_method+set}" = set; then
4135
echo $ECHO_N "(cached) $ECHO_C" >&6
4137
lt_cv_file_magic_cmd='$MAGIC_CMD'
4138
lt_cv_file_magic_test_file=
4139
lt_cv_deplibs_check_method='unknown'
4140
# Need to set the preceding variable on all platforms that support
4141
# interlibrary dependencies.
4142
# 'none' -- dependencies not supported.
4143
# `unknown' -- same as none, but documents that we really don't know.
4144
# 'pass_all' -- all dependencies passed with no checks.
4145
# 'test_compile' -- check by making test program.
4146
# 'file_magic [[regex]]' -- check by looking for files in library path
4147
# which responds to the $file_magic_cmd with a given extended regex.
4148
# If you have `file' or equivalent on your system and you're not sure
4149
# whether `pass_all' will *always* work, you probably want this one.
4153
lt_cv_deplibs_check_method=pass_all
4157
lt_cv_deplibs_check_method=pass_all
4161
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4162
lt_cv_file_magic_cmd='/usr/bin/file -L'
4163
lt_cv_file_magic_test_file=/shlib/libc.so
4167
# func_win32_libid is a shell function defined in ltmain.sh
4168
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4169
lt_cv_file_magic_cmd='func_win32_libid'
4173
# Base MSYS/MinGW do not provide the 'file' command needed by
4174
# func_win32_libid shell function, so use a weaker test based on 'objdump',
4175
# unless we find 'file', for example because we are cross-compiling.
4176
if ( file / ) >/dev/null 2>&1; then
4177
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4178
lt_cv_file_magic_cmd='func_win32_libid'
4180
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4181
lt_cv_file_magic_cmd='$OBJDUMP -f'
4185
darwin* | rhapsody*)
4186
lt_cv_deplibs_check_method=pass_all
4189
freebsd* | dragonfly*)
4190
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4193
# Not sure whether the presence of OpenBSD here was a mistake.
4194
# Let's accept both of them until this is cleared up.
4195
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4196
lt_cv_file_magic_cmd=/usr/bin/file
4197
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4201
lt_cv_deplibs_check_method=pass_all
4206
lt_cv_deplibs_check_method=pass_all
4209
hpux10.20* | hpux11*)
4210
lt_cv_file_magic_cmd=/usr/bin/file
4213
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4214
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4217
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]'
4218
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4221
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4222
lt_cv_file_magic_test_file=/usr/lib/libc.sl
4228
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4229
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4232
irix5* | irix6* | nonstopux*)
4234
*-32|*"-32 ") libmagic=32-bit;;
4235
*-n32|*"-n32 ") libmagic=N32;;
4236
*-64|*"-64 ") libmagic=64-bit;;
4237
*) libmagic=never-match;;
4239
lt_cv_deplibs_check_method=pass_all
4242
# This must be Linux ELF.
4243
linux* | k*bsd*-gnu)
4244
lt_cv_deplibs_check_method=pass_all
4247
netbsd* | netbsdelf*-gnu)
4248
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4249
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4251
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4256
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4257
lt_cv_file_magic_cmd=/usr/bin/file
4258
lt_cv_file_magic_test_file=/usr/lib/libnls.so
4262
lt_cv_deplibs_check_method=unknown
4266
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4267
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4269
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4273
osf3* | osf4* | osf5*)
4274
lt_cv_deplibs_check_method=pass_all
4278
lt_cv_deplibs_check_method=pass_all
4282
lt_cv_deplibs_check_method=pass_all
4286
case $host_vendor in
4288
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]'
4289
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4292
lt_cv_deplibs_check_method=pass_all
4295
lt_cv_file_magic_cmd='/bin/file'
4296
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4299
lt_cv_file_magic_cmd='/bin/file'
4300
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4301
lt_cv_file_magic_test_file=/lib/libc.so
4304
lt_cv_deplibs_check_method=pass_all
4307
lt_cv_deplibs_check_method=pass_all
4312
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4313
lt_cv_deplibs_check_method=pass_all
4318
{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4319
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4320
file_magic_cmd=$lt_cv_file_magic_cmd
4321
deplibs_check_method=$lt_cv_deplibs_check_method
4322
test -z "$deplibs_check_method" && deplibs_check_method=unknown
4327
# If no C compiler was specified, use CC.
4330
# If no C compiler flags were specified, use CFLAGS.
4331
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4333
# Allow CC to be a program name with arguments.
4337
# Check whether --enable-libtool-lock was given.
4338
if test "${enable_libtool_lock+set}" = set; then
4339
enableval=$enable_libtool_lock;
4342
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4344
# Some flags need to be propagated to the compiler or linker for good
4348
# Find out which ABI we are using.
4349
echo 'int i;' > conftest.$ac_ext
4350
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4351
(eval $ac_compile) 2>&5
4353
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354
(exit $ac_status); }; then
4355
case `/usr/bin/file conftest.$ac_objext` in
4367
# Find out which ABI we are using.
4368
echo '#line __oline__ "configure"' > conftest.$ac_ext
4369
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4370
(eval $ac_compile) 2>&5
4372
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373
(exit $ac_status); }; then
4374
if test "$lt_cv_prog_gnu_ld" = yes; then
4375
case `/usr/bin/file conftest.$ac_objext` in
4377
LD="${LD-ld} -melf32bsmip"
4380
LD="${LD-ld} -melf32bmipn32"
4383
LD="${LD-ld} -melf64bmip"
4387
case `/usr/bin/file conftest.$ac_objext` in
4403
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4404
s390*-*linux*|sparc*-*linux*)
4405
# Find out which ABI we are using.
4406
echo 'int i;' > conftest.$ac_ext
4407
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4408
(eval $ac_compile) 2>&5
4410
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411
(exit $ac_status); }; then
4412
case `/usr/bin/file conftest.o` in
4415
x86_64-*kfreebsd*-gnu)
4416
LD="${LD-ld} -m elf_i386_fbsd"
4419
LD="${LD-ld} -m elf_i386"
4421
ppc64-*linux*|powerpc64-*linux*)
4422
LD="${LD-ld} -m elf32ppclinux"
4425
LD="${LD-ld} -m elf_s390"
4428
LD="${LD-ld} -m elf32_sparc"
4434
x86_64-*kfreebsd*-gnu)
4435
LD="${LD-ld} -m elf_x86_64_fbsd"
4438
LD="${LD-ld} -m elf_x86_64"
4440
ppc*-*linux*|powerpc*-*linux*)
4441
LD="${LD-ld} -m elf64ppc"
4444
LD="${LD-ld} -m elf64_s390"
4447
LD="${LD-ld} -m elf64_sparc"
4457
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
4458
SAVE_CFLAGS="$CFLAGS"
4459
CFLAGS="$CFLAGS -belf"
4460
{ echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4461
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4462
if test "${lt_cv_cc_needs_belf+set}" = set; then
4463
echo $ECHO_N "(cached) $ECHO_C" >&6
4466
ac_cpp='$CPP $CPPFLAGS'
4467
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4468
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4469
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4471
cat >conftest.$ac_ext <<_ACEOF
4474
cat confdefs.h >>conftest.$ac_ext
4475
cat >>conftest.$ac_ext <<_ACEOF
4476
/* end confdefs.h. */
4486
rm -f conftest.$ac_objext conftest$ac_exeext
4487
if { (ac_try="$ac_link"
4489
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4490
*) ac_try_echo=$ac_try;;
4492
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4493
(eval "$ac_link") 2>conftest.er1
4495
grep -v '^ *+' conftest.er1 >conftest.err
4497
cat conftest.err >&5
4498
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4499
(exit $ac_status); } && {
4500
test -z "$ac_c_werror_flag" ||
4501
test ! -s conftest.err
4502
} && test -s conftest$ac_exeext &&
4503
$as_test_x conftest$ac_exeext; then
4504
lt_cv_cc_needs_belf=yes
4506
echo "$as_me: failed program was:" >&5
4507
sed 's/^/| /' conftest.$ac_ext >&5
4509
lt_cv_cc_needs_belf=no
4512
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4513
conftest$ac_exeext conftest.$ac_ext
4515
ac_cpp='$CPP $CPPFLAGS'
4516
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4517
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4518
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4521
{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4522
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4523
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4524
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4525
CFLAGS="$SAVE_CFLAGS"
4529
# Find out which ABI we are using.
4530
echo 'int i;' > conftest.$ac_ext
4531
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4532
(eval $ac_compile) 2>&5
4534
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4535
(exit $ac_status); }; then
4536
case `/usr/bin/file conftest.o` in
4538
case $lt_cv_prog_gnu_ld in
4539
yes*) LD="${LD-ld} -m elf64_sparc" ;;
4541
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4552
*-*-cygwin* | *-*-mingw* | *-*-pw32*)
4553
if test -n "$ac_tool_prefix"; then
4554
# Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4555
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4556
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4557
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4558
if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4559
echo $ECHO_N "(cached) $ECHO_C" >&6
4561
if test -n "$DLLTOOL"; then
4562
ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4564
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4568
test -z "$as_dir" && as_dir=.
4569
for ac_exec_ext in '' $ac_executable_extensions; do
4570
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4571
ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4572
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4581
DLLTOOL=$ac_cv_prog_DLLTOOL
4582
if test -n "$DLLTOOL"; then
4583
{ echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4584
echo "${ECHO_T}$DLLTOOL" >&6; }
4586
{ echo "$as_me:$LINENO: result: no" >&5
4587
echo "${ECHO_T}no" >&6; }
4592
if test -z "$ac_cv_prog_DLLTOOL"; then
4593
ac_ct_DLLTOOL=$DLLTOOL
4594
# Extract the first word of "dlltool", so it can be a program name with args.
4595
set dummy dlltool; ac_word=$2
4596
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4597
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4598
if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4599
echo $ECHO_N "(cached) $ECHO_C" >&6
4601
if test -n "$ac_ct_DLLTOOL"; then
4602
ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4604
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4608
test -z "$as_dir" && as_dir=.
4609
for ac_exec_ext in '' $ac_executable_extensions; do
4610
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4611
ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4612
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4621
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4622
if test -n "$ac_ct_DLLTOOL"; then
4623
{ echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4624
echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
4626
{ echo "$as_me:$LINENO: result: no" >&5
4627
echo "${ECHO_T}no" >&6; }
4630
if test "x$ac_ct_DLLTOOL" = x; then
4633
case $cross_compiling:$ac_tool_warned in
4635
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4636
whose name does not start with the host triplet. If you think this
4637
configuration is useful to you, please write to autoconf@gnu.org." >&5
4638
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4639
whose name does not start with the host triplet. If you think this
4640
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4641
ac_tool_warned=yes ;;
4643
DLLTOOL=$ac_ct_DLLTOOL
4646
DLLTOOL="$ac_cv_prog_DLLTOOL"
4649
if test -n "$ac_tool_prefix"; then
4650
# Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4651
set dummy ${ac_tool_prefix}as; ac_word=$2
4652
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4653
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4654
if test "${ac_cv_prog_AS+set}" = set; then
4655
echo $ECHO_N "(cached) $ECHO_C" >&6
4657
if test -n "$AS"; then
4658
ac_cv_prog_AS="$AS" # Let the user override the test.
4660
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4664
test -z "$as_dir" && as_dir=.
4665
for ac_exec_ext in '' $ac_executable_extensions; do
4666
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4667
ac_cv_prog_AS="${ac_tool_prefix}as"
4668
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4678
if test -n "$AS"; then
4679
{ echo "$as_me:$LINENO: result: $AS" >&5
4680
echo "${ECHO_T}$AS" >&6; }
4682
{ echo "$as_me:$LINENO: result: no" >&5
4683
echo "${ECHO_T}no" >&6; }
4688
if test -z "$ac_cv_prog_AS"; then
4690
# Extract the first word of "as", so it can be a program name with args.
4691
set dummy as; ac_word=$2
4692
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4693
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4694
if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4695
echo $ECHO_N "(cached) $ECHO_C" >&6
4697
if test -n "$ac_ct_AS"; then
4698
ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4700
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4704
test -z "$as_dir" && as_dir=.
4705
for ac_exec_ext in '' $ac_executable_extensions; do
4706
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4707
ac_cv_prog_ac_ct_AS="as"
4708
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4717
ac_ct_AS=$ac_cv_prog_ac_ct_AS
4718
if test -n "$ac_ct_AS"; then
4719
{ echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4720
echo "${ECHO_T}$ac_ct_AS" >&6; }
4722
{ echo "$as_me:$LINENO: result: no" >&5
4723
echo "${ECHO_T}no" >&6; }
4726
if test "x$ac_ct_AS" = x; then
4729
case $cross_compiling:$ac_tool_warned in
4731
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4732
whose name does not start with the host triplet. If you think this
4733
configuration is useful to you, please write to autoconf@gnu.org." >&5
4734
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4735
whose name does not start with the host triplet. If you think this
4736
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4737
ac_tool_warned=yes ;;
4745
if test -n "$ac_tool_prefix"; then
4746
# Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4747
set dummy ${ac_tool_prefix}objdump; ac_word=$2
4748
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4749
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4750
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4751
echo $ECHO_N "(cached) $ECHO_C" >&6
4753
if test -n "$OBJDUMP"; then
4754
ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4756
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4760
test -z "$as_dir" && as_dir=.
4761
for ac_exec_ext in '' $ac_executable_extensions; do
4762
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4763
ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4764
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4773
OBJDUMP=$ac_cv_prog_OBJDUMP
4774
if test -n "$OBJDUMP"; then
4775
{ echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4776
echo "${ECHO_T}$OBJDUMP" >&6; }
4778
{ echo "$as_me:$LINENO: result: no" >&5
4779
echo "${ECHO_T}no" >&6; }
4784
if test -z "$ac_cv_prog_OBJDUMP"; then
4785
ac_ct_OBJDUMP=$OBJDUMP
4786
# Extract the first word of "objdump", so it can be a program name with args.
4787
set dummy objdump; ac_word=$2
4788
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4789
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4790
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4791
echo $ECHO_N "(cached) $ECHO_C" >&6
4793
if test -n "$ac_ct_OBJDUMP"; then
4794
ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4796
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4800
test -z "$as_dir" && as_dir=.
4801
for ac_exec_ext in '' $ac_executable_extensions; do
4802
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4803
ac_cv_prog_ac_ct_OBJDUMP="objdump"
4804
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4813
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4814
if test -n "$ac_ct_OBJDUMP"; then
4815
{ echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4816
echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
4818
{ echo "$as_me:$LINENO: result: no" >&5
4819
echo "${ECHO_T}no" >&6; }
4822
if test "x$ac_ct_OBJDUMP" = x; then
4825
case $cross_compiling:$ac_tool_warned in
4827
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4828
whose name does not start with the host triplet. If you think this
4829
configuration is useful to you, please write to autoconf@gnu.org." >&5
4830
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4831
whose name does not start with the host triplet. If you think this
4832
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4833
ac_tool_warned=yes ;;
4835
OBJDUMP=$ac_ct_OBJDUMP
4838
OBJDUMP="$ac_cv_prog_OBJDUMP"
4845
need_locks="$enable_libtool_lock"
4849
ac_cpp='$CPP $CPPFLAGS'
4850
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4851
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4852
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4853
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4854
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4855
# On Suns, sometimes $CPP names a directory.
4856
if test -n "$CPP" && test -d "$CPP"; then
4859
if test -z "$CPP"; then
4860
if test "${ac_cv_prog_CPP+set}" = set; then
4861
echo $ECHO_N "(cached) $ECHO_C" >&6
4863
# Double quotes because CPP needs to be expanded
4864
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4867
for ac_c_preproc_warn_flag in '' yes
4869
# Use a header file that comes with gcc, so configuring glibc
4870
# with a fresh cross-compiler works.
4871
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4872
# <limits.h> exists even on freestanding compilers.
4873
# On the NeXT, cc -E runs the code through the compiler's parser,
4874
# not just through cpp. "Syntax error" is here to catch this case.
4875
cat >conftest.$ac_ext <<_ACEOF
4878
cat confdefs.h >>conftest.$ac_ext
4879
cat >>conftest.$ac_ext <<_ACEOF
4880
/* end confdefs.h. */
4882
@%:@ include <limits.h>
4884
@%:@ include <assert.h>
4888
if { (ac_try="$ac_cpp conftest.$ac_ext"
4890
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4891
*) ac_try_echo=$ac_try;;
4893
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4894
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4896
grep -v '^ *+' conftest.er1 >conftest.err
4898
cat conftest.err >&5
4899
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4900
(exit $ac_status); } >/dev/null && {
4901
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4902
test ! -s conftest.err
4906
echo "$as_me: failed program was:" >&5
4907
sed 's/^/| /' conftest.$ac_ext >&5
4909
# Broken: fails on valid input.
4913
rm -f conftest.err conftest.$ac_ext
4915
# OK, works on sane cases. Now check whether nonexistent headers
4916
# can be detected and how.
4917
cat >conftest.$ac_ext <<_ACEOF
4920
cat confdefs.h >>conftest.$ac_ext
4921
cat >>conftest.$ac_ext <<_ACEOF
4922
/* end confdefs.h. */
4923
@%:@include <ac_nonexistent.h>
4925
if { (ac_try="$ac_cpp conftest.$ac_ext"
4927
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4928
*) ac_try_echo=$ac_try;;
4930
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4931
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4933
grep -v '^ *+' conftest.er1 >conftest.err
4935
cat conftest.err >&5
4936
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4937
(exit $ac_status); } >/dev/null && {
4938
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4939
test ! -s conftest.err
4941
# Broken: success on invalid input.
4944
echo "$as_me: failed program was:" >&5
4945
sed 's/^/| /' conftest.$ac_ext >&5
4947
# Passes both tests.
4952
rm -f conftest.err conftest.$ac_ext
4955
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4956
rm -f conftest.err conftest.$ac_ext
4957
if $ac_preproc_ok; then
4969
{ echo "$as_me:$LINENO: result: $CPP" >&5
4970
echo "${ECHO_T}$CPP" >&6; }
4972
for ac_c_preproc_warn_flag in '' yes
4974
# Use a header file that comes with gcc, so configuring glibc
4975
# with a fresh cross-compiler works.
4976
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4977
# <limits.h> exists even on freestanding compilers.
4978
# On the NeXT, cc -E runs the code through the compiler's parser,
4979
# not just through cpp. "Syntax error" is here to catch this case.
4980
cat >conftest.$ac_ext <<_ACEOF
4983
cat confdefs.h >>conftest.$ac_ext
4984
cat >>conftest.$ac_ext <<_ACEOF
4985
/* end confdefs.h. */
4987
@%:@ include <limits.h>
4989
@%:@ include <assert.h>
4993
if { (ac_try="$ac_cpp conftest.$ac_ext"
4995
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4996
*) ac_try_echo=$ac_try;;
4998
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4999
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5001
grep -v '^ *+' conftest.er1 >conftest.err
5003
cat conftest.err >&5
5004
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5005
(exit $ac_status); } >/dev/null && {
5006
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5007
test ! -s conftest.err
5011
echo "$as_me: failed program was:" >&5
5012
sed 's/^/| /' conftest.$ac_ext >&5
5014
# Broken: fails on valid input.
5018
rm -f conftest.err conftest.$ac_ext
5020
# OK, works on sane cases. Now check whether nonexistent headers
5021
# can be detected and how.
5022
cat >conftest.$ac_ext <<_ACEOF
5025
cat confdefs.h >>conftest.$ac_ext
5026
cat >>conftest.$ac_ext <<_ACEOF
5027
/* end confdefs.h. */
5028
@%:@include <ac_nonexistent.h>
5030
if { (ac_try="$ac_cpp conftest.$ac_ext"
5032
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5033
*) ac_try_echo=$ac_try;;
5035
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5036
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5038
grep -v '^ *+' conftest.er1 >conftest.err
5040
cat conftest.err >&5
5041
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042
(exit $ac_status); } >/dev/null && {
5043
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5044
test ! -s conftest.err
5046
# Broken: success on invalid input.
5049
echo "$as_me: failed program was:" >&5
5050
sed 's/^/| /' conftest.$ac_ext >&5
5052
# Passes both tests.
5057
rm -f conftest.err conftest.$ac_ext
5060
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5061
rm -f conftest.err conftest.$ac_ext
5062
if $ac_preproc_ok; then
5065
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5066
See \`config.log' for more details." >&5
5067
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5068
See \`config.log' for more details." >&2;}
5069
{ (exit 1); exit 1; }; }
5073
ac_cpp='$CPP $CPPFLAGS'
5074
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5075
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5076
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5079
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5080
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5081
if test "${ac_cv_header_stdc+set}" = set; then
5082
echo $ECHO_N "(cached) $ECHO_C" >&6
5084
cat >conftest.$ac_ext <<_ACEOF
5087
cat confdefs.h >>conftest.$ac_ext
5088
cat >>conftest.$ac_ext <<_ACEOF
5089
/* end confdefs.h. */
5103
rm -f conftest.$ac_objext
5104
if { (ac_try="$ac_compile"
5106
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5107
*) ac_try_echo=$ac_try;;
5109
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5110
(eval "$ac_compile") 2>conftest.er1
5112
grep -v '^ *+' conftest.er1 >conftest.err
5114
cat conftest.err >&5
5115
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5116
(exit $ac_status); } && {
5117
test -z "$ac_c_werror_flag" ||
5118
test ! -s conftest.err
5119
} && test -s conftest.$ac_objext; then
5120
ac_cv_header_stdc=yes
5122
echo "$as_me: failed program was:" >&5
5123
sed 's/^/| /' conftest.$ac_ext >&5
5125
ac_cv_header_stdc=no
5128
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5130
if test $ac_cv_header_stdc = yes; then
5131
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5132
cat >conftest.$ac_ext <<_ACEOF
5135
cat confdefs.h >>conftest.$ac_ext
5136
cat >>conftest.$ac_ext <<_ACEOF
5137
/* end confdefs.h. */
5141
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5142
$EGREP "memchr" >/dev/null 2>&1; then
5145
ac_cv_header_stdc=no
5151
if test $ac_cv_header_stdc = yes; then
5152
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5153
cat >conftest.$ac_ext <<_ACEOF
5156
cat confdefs.h >>conftest.$ac_ext
5157
cat >>conftest.$ac_ext <<_ACEOF
5158
/* end confdefs.h. */
5162
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5163
$EGREP "free" >/dev/null 2>&1; then
5166
ac_cv_header_stdc=no
5172
if test $ac_cv_header_stdc = yes; then
5173
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5174
if test "$cross_compiling" = yes; then
5177
cat >conftest.$ac_ext <<_ACEOF
5180
cat confdefs.h >>conftest.$ac_ext
5181
cat >>conftest.$ac_ext <<_ACEOF
5182
/* end confdefs.h. */
5185
#if ((' ' & 0x0FF) == 0x020)
5186
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5187
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5189
# define ISLOWER(c) \
5190
(('a' <= (c) && (c) <= 'i') \
5191
|| ('j' <= (c) && (c) <= 'r') \
5192
|| ('s' <= (c) && (c) <= 'z'))
5193
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5196
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5201
for (i = 0; i < 256; i++)
5202
if (XOR (islower (i), ISLOWER (i))
5203
|| toupper (i) != TOUPPER (i))
5208
rm -f conftest$ac_exeext
5209
if { (ac_try="$ac_link"
5211
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5212
*) ac_try_echo=$ac_try;;
5214
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5215
(eval "$ac_link") 2>&5
5217
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5218
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5219
{ (case "(($ac_try" in
5220
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5221
*) ac_try_echo=$ac_try;;
5223
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5224
(eval "$ac_try") 2>&5
5226
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5227
(exit $ac_status); }; }; then
5230
echo "$as_me: program exited with status $ac_status" >&5
5231
echo "$as_me: failed program was:" >&5
5232
sed 's/^/| /' conftest.$ac_ext >&5
5235
ac_cv_header_stdc=no
5237
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5243
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5244
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5245
if test $ac_cv_header_stdc = yes; then
5247
cat >>confdefs.h <<\_ACEOF
5248
@%:@define STDC_HEADERS 1
5253
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5263
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5264
inttypes.h stdint.h unistd.h
5266
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5267
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5268
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5269
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5270
echo $ECHO_N "(cached) $ECHO_C" >&6
5272
cat >conftest.$ac_ext <<_ACEOF
5275
cat confdefs.h >>conftest.$ac_ext
5276
cat >>conftest.$ac_ext <<_ACEOF
5277
/* end confdefs.h. */
5278
$ac_includes_default
5280
@%:@include <$ac_header>
5282
rm -f conftest.$ac_objext
5283
if { (ac_try="$ac_compile"
5285
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5286
*) ac_try_echo=$ac_try;;
5288
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5289
(eval "$ac_compile") 2>conftest.er1
5291
grep -v '^ *+' conftest.er1 >conftest.err
5293
cat conftest.err >&5
5294
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5295
(exit $ac_status); } && {
5296
test -z "$ac_c_werror_flag" ||
5297
test ! -s conftest.err
5298
} && test -s conftest.$ac_objext; then
5299
eval "$as_ac_Header=yes"
5301
echo "$as_me: failed program was:" >&5
5302
sed 's/^/| /' conftest.$ac_ext >&5
5304
eval "$as_ac_Header=no"
5307
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5309
ac_res=`eval echo '${'$as_ac_Header'}'`
5310
{ echo "$as_me:$LINENO: result: $ac_res" >&5
5311
echo "${ECHO_T}$ac_res" >&6; }
5312
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5313
cat >>confdefs.h <<_ACEOF
5314
@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5323
for ac_header in dlfcn.h
5325
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5326
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5327
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5328
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5329
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5330
echo $ECHO_N "(cached) $ECHO_C" >&6
5332
ac_res=`eval echo '${'$as_ac_Header'}'`
5333
{ echo "$as_me:$LINENO: result: $ac_res" >&5
5334
echo "${ECHO_T}$ac_res" >&6; }
5336
# Is the header compilable?
5337
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5338
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5339
cat >conftest.$ac_ext <<_ACEOF
5342
cat confdefs.h >>conftest.$ac_ext
5343
cat >>conftest.$ac_ext <<_ACEOF
5344
/* end confdefs.h. */
5345
$ac_includes_default
5346
@%:@include <$ac_header>
5348
rm -f conftest.$ac_objext
5349
if { (ac_try="$ac_compile"
5351
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5352
*) ac_try_echo=$ac_try;;
5354
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5355
(eval "$ac_compile") 2>conftest.er1
5357
grep -v '^ *+' conftest.er1 >conftest.err
5359
cat conftest.err >&5
5360
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5361
(exit $ac_status); } && {
5362
test -z "$ac_c_werror_flag" ||
5363
test ! -s conftest.err
5364
} && test -s conftest.$ac_objext; then
5365
ac_header_compiler=yes
5367
echo "$as_me: failed program was:" >&5
5368
sed 's/^/| /' conftest.$ac_ext >&5
5370
ac_header_compiler=no
5373
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5374
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5375
echo "${ECHO_T}$ac_header_compiler" >&6; }
5377
# Is the header present?
5378
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5379
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5380
cat >conftest.$ac_ext <<_ACEOF
5383
cat confdefs.h >>conftest.$ac_ext
5384
cat >>conftest.$ac_ext <<_ACEOF
5385
/* end confdefs.h. */
5386
@%:@include <$ac_header>
5388
if { (ac_try="$ac_cpp conftest.$ac_ext"
5390
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5391
*) ac_try_echo=$ac_try;;
5393
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5394
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5396
grep -v '^ *+' conftest.er1 >conftest.err
5398
cat conftest.err >&5
5399
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5400
(exit $ac_status); } >/dev/null && {
5401
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5402
test ! -s conftest.err
5404
ac_header_preproc=yes
5406
echo "$as_me: failed program was:" >&5
5407
sed 's/^/| /' conftest.$ac_ext >&5
5409
ac_header_preproc=no
5412
rm -f conftest.err conftest.$ac_ext
5413
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5414
echo "${ECHO_T}$ac_header_preproc" >&6; }
5416
# So? What about this header?
5417
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5419
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5420
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5421
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5422
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5423
ac_header_preproc=yes
5426
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5427
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5428
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5429
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5430
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5431
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5432
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5433
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5434
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5435
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5436
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5437
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5441
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5442
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5443
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5444
echo $ECHO_N "(cached) $ECHO_C" >&6
5446
eval "$as_ac_Header=\$ac_header_preproc"
5448
ac_res=`eval echo '${'$as_ac_Header'}'`
5449
{ echo "$as_me:$LINENO: result: $ac_res" >&5
5450
echo "${ECHO_T}$ac_res" >&6; }
5453
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5454
cat >>confdefs.h <<_ACEOF
5455
@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5463
ac_cpp='$CXXCPP $CPPFLAGS'
5464
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5465
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5466
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5467
if test -z "$CXX"; then
5468
if test -n "$CCC"; then
5471
if test -n "$ac_tool_prefix"; then
5472
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5474
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5475
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5476
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5477
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5478
if test "${ac_cv_prog_CXX+set}" = set; then
5479
echo $ECHO_N "(cached) $ECHO_C" >&6
5481
if test -n "$CXX"; then
5482
ac_cv_prog_CXX="$CXX" # Let the user override the test.
5484
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5488
test -z "$as_dir" && as_dir=.
5489
for ac_exec_ext in '' $ac_executable_extensions; do
5490
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5491
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5492
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5502
if test -n "$CXX"; then
5503
{ echo "$as_me:$LINENO: result: $CXX" >&5
5504
echo "${ECHO_T}$CXX" >&6; }
5506
{ echo "$as_me:$LINENO: result: no" >&5
5507
echo "${ECHO_T}no" >&6; }
5511
test -n "$CXX" && break
5514
if test -z "$CXX"; then
5516
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5518
# Extract the first word of "$ac_prog", so it can be a program name with args.
5519
set dummy $ac_prog; ac_word=$2
5520
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5521
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5522
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5523
echo $ECHO_N "(cached) $ECHO_C" >&6
5525
if test -n "$ac_ct_CXX"; then
5526
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5528
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5532
test -z "$as_dir" && as_dir=.
5533
for ac_exec_ext in '' $ac_executable_extensions; do
5534
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5535
ac_cv_prog_ac_ct_CXX="$ac_prog"
5536
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5545
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5546
if test -n "$ac_ct_CXX"; then
5547
{ echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5548
echo "${ECHO_T}$ac_ct_CXX" >&6; }
5550
{ echo "$as_me:$LINENO: result: no" >&5
5551
echo "${ECHO_T}no" >&6; }
5555
test -n "$ac_ct_CXX" && break
5558
if test "x$ac_ct_CXX" = x; then
5561
case $cross_compiling:$ac_tool_warned in
5563
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5564
whose name does not start with the host triplet. If you think this
5565
configuration is useful to you, please write to autoconf@gnu.org." >&5
5566
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5567
whose name does not start with the host triplet. If you think this
5568
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5569
ac_tool_warned=yes ;;
5577
# Provide some information about the compiler.
5578
echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5579
ac_compiler=`set X $ac_compile; echo $2`
5580
{ (ac_try="$ac_compiler --version >&5"
5582
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5583
*) ac_try_echo=$ac_try;;
5585
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5586
(eval "$ac_compiler --version >&5") 2>&5
5588
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5589
(exit $ac_status); }
5590
{ (ac_try="$ac_compiler -v >&5"
5592
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5593
*) ac_try_echo=$ac_try;;
5595
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5596
(eval "$ac_compiler -v >&5") 2>&5
5598
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599
(exit $ac_status); }
5600
{ (ac_try="$ac_compiler -V >&5"
5602
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5603
*) ac_try_echo=$ac_try;;
5605
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5606
(eval "$ac_compiler -V >&5") 2>&5
5608
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5609
(exit $ac_status); }
5611
{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5612
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5613
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5614
echo $ECHO_N "(cached) $ECHO_C" >&6
5616
cat >conftest.$ac_ext <<_ACEOF
5619
cat confdefs.h >>conftest.$ac_ext
5620
cat >>conftest.$ac_ext <<_ACEOF
5621
/* end confdefs.h. */
5634
rm -f conftest.$ac_objext
5635
if { (ac_try="$ac_compile"
5637
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5638
*) ac_try_echo=$ac_try;;
5640
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5641
(eval "$ac_compile") 2>conftest.er1
5643
grep -v '^ *+' conftest.er1 >conftest.err
5645
cat conftest.err >&5
5646
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5647
(exit $ac_status); } && {
5648
test -z "$ac_cxx_werror_flag" ||
5649
test ! -s conftest.err
5650
} && test -s conftest.$ac_objext; then
5653
echo "$as_me: failed program was:" >&5
5654
sed 's/^/| /' conftest.$ac_ext >&5
5659
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5660
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5663
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5664
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5665
GXX=`test $ac_compiler_gnu = yes && echo yes`
5666
ac_test_CXXFLAGS=${CXXFLAGS+set}
5667
ac_save_CXXFLAGS=$CXXFLAGS
5668
{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5669
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5670
if test "${ac_cv_prog_cxx_g+set}" = set; then
5671
echo $ECHO_N "(cached) $ECHO_C" >&6
5673
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5674
ac_cxx_werror_flag=yes
5677
cat >conftest.$ac_ext <<_ACEOF
5680
cat confdefs.h >>conftest.$ac_ext
5681
cat >>conftest.$ac_ext <<_ACEOF
5682
/* end confdefs.h. */
5692
rm -f conftest.$ac_objext
5693
if { (ac_try="$ac_compile"
5695
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5696
*) ac_try_echo=$ac_try;;
5698
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5699
(eval "$ac_compile") 2>conftest.er1
5701
grep -v '^ *+' conftest.er1 >conftest.err
5703
cat conftest.err >&5
5704
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5705
(exit $ac_status); } && {
5706
test -z "$ac_cxx_werror_flag" ||
5707
test ! -s conftest.err
5708
} && test -s conftest.$ac_objext; then
5709
ac_cv_prog_cxx_g=yes
5711
echo "$as_me: failed program was:" >&5
5712
sed 's/^/| /' conftest.$ac_ext >&5
5715
cat >conftest.$ac_ext <<_ACEOF
5718
cat confdefs.h >>conftest.$ac_ext
5719
cat >>conftest.$ac_ext <<_ACEOF
5720
/* end confdefs.h. */
5730
rm -f conftest.$ac_objext
5731
if { (ac_try="$ac_compile"
5733
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5734
*) ac_try_echo=$ac_try;;
5736
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5737
(eval "$ac_compile") 2>conftest.er1
5739
grep -v '^ *+' conftest.er1 >conftest.err
5741
cat conftest.err >&5
5742
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743
(exit $ac_status); } && {
5744
test -z "$ac_cxx_werror_flag" ||
5745
test ! -s conftest.err
5746
} && test -s conftest.$ac_objext; then
5749
echo "$as_me: failed program was:" >&5
5750
sed 's/^/| /' conftest.$ac_ext >&5
5752
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5754
cat >conftest.$ac_ext <<_ACEOF
5757
cat confdefs.h >>conftest.$ac_ext
5758
cat >>conftest.$ac_ext <<_ACEOF
5759
/* end confdefs.h. */
5769
rm -f conftest.$ac_objext
5770
if { (ac_try="$ac_compile"
5772
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5773
*) ac_try_echo=$ac_try;;
5775
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5776
(eval "$ac_compile") 2>conftest.er1
5778
grep -v '^ *+' conftest.er1 >conftest.err
5780
cat conftest.err >&5
5781
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782
(exit $ac_status); } && {
5783
test -z "$ac_cxx_werror_flag" ||
5784
test ! -s conftest.err
5785
} && test -s conftest.$ac_objext; then
5786
ac_cv_prog_cxx_g=yes
5788
echo "$as_me: failed program was:" >&5
5789
sed 's/^/| /' conftest.$ac_ext >&5
5794
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5797
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5800
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5801
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5803
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5804
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5805
if test "$ac_test_CXXFLAGS" = set; then
5806
CXXFLAGS=$ac_save_CXXFLAGS
5807
elif test $ac_cv_prog_cxx_g = yes; then
5808
if test "$GXX" = yes; then
5814
if test "$GXX" = yes; then
5821
ac_cpp='$CXXCPP $CPPFLAGS'
5822
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5823
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5824
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5826
depcc="$CXX" am_compiler_list=
5828
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5829
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5830
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5831
echo $ECHO_N "(cached) $ECHO_C" >&6
5833
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5834
# We make a subdir and do the tests there. Otherwise we can end up
5835
# making bogus files that we don't know about and never remove. For
5836
# instance it was reported that on HP-UX the gcc test will end up
5837
# making a dummy file named `D' -- because `-MD' means `put the output
5840
# Copy depcomp to subdir because otherwise we won't find it if we're
5841
# using a relative directory.
5842
cp "$am_depcomp" conftest.dir
5844
# We will build objects and dependencies in a subdirectory because
5845
# it helps to detect inapplicable dependency modes. For instance
5846
# both Tru64's cc and ICC support -MD to output dependencies as a
5847
# side effect of compilation, but ICC will put the dependencies in
5848
# the current directory while Tru64 will put them in the object
5852
am_cv_CXX_dependencies_compiler_type=none
5853
if test "$am_compiler_list" = ""; then
5854
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5856
for depmode in $am_compiler_list; do
5857
# Setup a source with many dependencies, because some compilers
5858
# like to wrap large dependency lists on column 80 (with \), and
5859
# we should not choose a depcomp mode which is confused by this.
5861
# We need to recreate these files for each test, as the compiler may
5862
# overwrite some of them when testing with obscure command lines.
5863
# This happens at least with the AIX C compiler.
5865
for i in 1 2 3 4 5 6; do
5866
echo '#include "conftst'$i'.h"' >> sub/conftest.c
5867
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5868
# Solaris 8's {/usr,}/bin/sh.
5869
touch sub/conftst$i.h
5871
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5875
# after this tag, mechanisms are not by side-effect, so they'll
5876
# only be used when explicitly requested
5877
if test "x$enable_dependency_tracking" = xyes; then
5885
# We check with `-c' and `-o' for the sake of the "dashmstdout"
5886
# mode. It turns out that the SunPro C++ compiler does not properly
5887
# handle `-M -o', and we need to detect this.
5888
if depmode=$depmode \
5889
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5890
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5891
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5892
>/dev/null 2>conftest.err &&
5893
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5894
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5895
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5896
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5897
# icc doesn't choke on unknown options, it will just issue warnings
5898
# or remarks (even with -Werror). So we grep stderr for any message
5899
# that says an option was ignored or not supported.
5900
# When given -MP, icc 7.0 and 7.1 complain thusly:
5901
# icc: Command line warning: ignoring option '-M'; no argument required
5902
# The diagnosis changed in icc 8.0:
5903
# icc: Command line remark: option '-MP' not supported
5904
if (grep 'ignoring option' conftest.err ||
5905
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5906
am_cv_CXX_dependencies_compiler_type=$depmode
5915
am_cv_CXX_dependencies_compiler_type=none
5919
{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5920
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5921
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5924
test "x$enable_dependency_tracking" != xno \
5925
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5926
am__fastdepCXX_TRUE=
5927
am__fastdepCXX_FALSE='#'
5929
am__fastdepCXX_TRUE='#'
5930
am__fastdepCXX_FALSE=
5936
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5937
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5938
(test "X$CXX" != "Xg++"))) ; then
5940
ac_cpp='$CXXCPP $CPPFLAGS'
5941
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5942
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5943
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5944
{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5945
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5946
if test -z "$CXXCPP"; then
5947
if test "${ac_cv_prog_CXXCPP+set}" = set; then
5948
echo $ECHO_N "(cached) $ECHO_C" >&6
5950
# Double quotes because CXXCPP needs to be expanded
5951
for CXXCPP in "$CXX -E" "/lib/cpp"
5954
for ac_cxx_preproc_warn_flag in '' yes
5956
# Use a header file that comes with gcc, so configuring glibc
5957
# with a fresh cross-compiler works.
5958
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5959
# <limits.h> exists even on freestanding compilers.
5960
# On the NeXT, cc -E runs the code through the compiler's parser,
5961
# not just through cpp. "Syntax error" is here to catch this case.
5962
cat >conftest.$ac_ext <<_ACEOF
5965
cat confdefs.h >>conftest.$ac_ext
5966
cat >>conftest.$ac_ext <<_ACEOF
5967
/* end confdefs.h. */
5969
@%:@ include <limits.h>
5971
@%:@ include <assert.h>
5975
if { (ac_try="$ac_cpp conftest.$ac_ext"
5977
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5978
*) ac_try_echo=$ac_try;;
5980
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5981
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5983
grep -v '^ *+' conftest.er1 >conftest.err
5985
cat conftest.err >&5
5986
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5987
(exit $ac_status); } >/dev/null && {
5988
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5989
test ! -s conftest.err
5993
echo "$as_me: failed program was:" >&5
5994
sed 's/^/| /' conftest.$ac_ext >&5
5996
# Broken: fails on valid input.
6000
rm -f conftest.err conftest.$ac_ext
6002
# OK, works on sane cases. Now check whether nonexistent headers
6003
# can be detected and how.
6004
cat >conftest.$ac_ext <<_ACEOF
6007
cat confdefs.h >>conftest.$ac_ext
6008
cat >>conftest.$ac_ext <<_ACEOF
6009
/* end confdefs.h. */
6010
@%:@include <ac_nonexistent.h>
6012
if { (ac_try="$ac_cpp conftest.$ac_ext"
6014
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6015
*) ac_try_echo=$ac_try;;
6017
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6018
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6020
grep -v '^ *+' conftest.er1 >conftest.err
6022
cat conftest.err >&5
6023
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6024
(exit $ac_status); } >/dev/null && {
6025
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6026
test ! -s conftest.err
6028
# Broken: success on invalid input.
6031
echo "$as_me: failed program was:" >&5
6032
sed 's/^/| /' conftest.$ac_ext >&5
6034
# Passes both tests.
6039
rm -f conftest.err conftest.$ac_ext
6042
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6043
rm -f conftest.err conftest.$ac_ext
6044
if $ac_preproc_ok; then
6049
ac_cv_prog_CXXCPP=$CXXCPP
6052
CXXCPP=$ac_cv_prog_CXXCPP
6054
ac_cv_prog_CXXCPP=$CXXCPP
6056
{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
6057
echo "${ECHO_T}$CXXCPP" >&6; }
6059
for ac_cxx_preproc_warn_flag in '' yes
6061
# Use a header file that comes with gcc, so configuring glibc
6062
# with a fresh cross-compiler works.
6063
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6064
# <limits.h> exists even on freestanding compilers.
6065
# On the NeXT, cc -E runs the code through the compiler's parser,
6066
# not just through cpp. "Syntax error" is here to catch this case.
6067
cat >conftest.$ac_ext <<_ACEOF
6070
cat confdefs.h >>conftest.$ac_ext
6071
cat >>conftest.$ac_ext <<_ACEOF
6072
/* end confdefs.h. */
6074
@%:@ include <limits.h>
6076
@%:@ include <assert.h>
6080
if { (ac_try="$ac_cpp conftest.$ac_ext"
6082
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6083
*) ac_try_echo=$ac_try;;
6085
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6086
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6088
grep -v '^ *+' conftest.er1 >conftest.err
6090
cat conftest.err >&5
6091
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6092
(exit $ac_status); } >/dev/null && {
6093
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6094
test ! -s conftest.err
6098
echo "$as_me: failed program was:" >&5
6099
sed 's/^/| /' conftest.$ac_ext >&5
6101
# Broken: fails on valid input.
6105
rm -f conftest.err conftest.$ac_ext
6107
# OK, works on sane cases. Now check whether nonexistent headers
6108
# can be detected and how.
6109
cat >conftest.$ac_ext <<_ACEOF
6112
cat confdefs.h >>conftest.$ac_ext
6113
cat >>conftest.$ac_ext <<_ACEOF
6114
/* end confdefs.h. */
6115
@%:@include <ac_nonexistent.h>
6117
if { (ac_try="$ac_cpp conftest.$ac_ext"
6119
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6120
*) ac_try_echo=$ac_try;;
6122
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6123
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6125
grep -v '^ *+' conftest.er1 >conftest.err
6127
cat conftest.err >&5
6128
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129
(exit $ac_status); } >/dev/null && {
6130
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6131
test ! -s conftest.err
6133
# Broken: success on invalid input.
6136
echo "$as_me: failed program was:" >&5
6137
sed 's/^/| /' conftest.$ac_ext >&5
6139
# Passes both tests.
6144
rm -f conftest.err conftest.$ac_ext
6147
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6148
rm -f conftest.err conftest.$ac_ext
6149
if $ac_preproc_ok; then
6152
{ { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6153
See \`config.log' for more details." >&5
6154
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6155
See \`config.log' for more details." >&2;}
6156
{ (exit 1); exit 1; }; }
6160
ac_cpp='$CXXCPP $CPPFLAGS'
6161
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6162
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6163
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6169
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6170
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6171
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6172
if test -n "$ac_tool_prefix"; then
6173
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
6175
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6176
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6177
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6178
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6179
if test "${ac_cv_prog_F77+set}" = set; then
6180
echo $ECHO_N "(cached) $ECHO_C" >&6
6182
if test -n "$F77"; then
6183
ac_cv_prog_F77="$F77" # Let the user override the test.
6185
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6189
test -z "$as_dir" && as_dir=.
6190
for ac_exec_ext in '' $ac_executable_extensions; do
6191
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6192
ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6193
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6203
if test -n "$F77"; then
6204
{ echo "$as_me:$LINENO: result: $F77" >&5
6205
echo "${ECHO_T}$F77" >&6; }
6207
{ echo "$as_me:$LINENO: result: no" >&5
6208
echo "${ECHO_T}no" >&6; }
6212
test -n "$F77" && break
6215
if test -z "$F77"; then
6217
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
6219
# Extract the first word of "$ac_prog", so it can be a program name with args.
6220
set dummy $ac_prog; ac_word=$2
6221
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6222
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6223
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6224
echo $ECHO_N "(cached) $ECHO_C" >&6
6226
if test -n "$ac_ct_F77"; then
6227
ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6229
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6233
test -z "$as_dir" && as_dir=.
6234
for ac_exec_ext in '' $ac_executable_extensions; do
6235
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6236
ac_cv_prog_ac_ct_F77="$ac_prog"
6237
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6246
ac_ct_F77=$ac_cv_prog_ac_ct_F77
6247
if test -n "$ac_ct_F77"; then
6248
{ echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6249
echo "${ECHO_T}$ac_ct_F77" >&6; }
6251
{ echo "$as_me:$LINENO: result: no" >&5
6252
echo "${ECHO_T}no" >&6; }
6256
test -n "$ac_ct_F77" && break
6259
if test "x$ac_ct_F77" = x; then
6262
case $cross_compiling:$ac_tool_warned in
6264
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6265
whose name does not start with the host triplet. If you think this
6266
configuration is useful to you, please write to autoconf@gnu.org." >&5
6267
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6268
whose name does not start with the host triplet. If you think this
6269
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6270
ac_tool_warned=yes ;;
6277
# Provide some information about the compiler.
6278
echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6279
ac_compiler=`set X $ac_compile; echo $2`
6280
{ (ac_try="$ac_compiler --version >&5"
6282
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6283
*) ac_try_echo=$ac_try;;
6285
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6286
(eval "$ac_compiler --version >&5") 2>&5
6288
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6289
(exit $ac_status); }
6290
{ (ac_try="$ac_compiler -v >&5"
6292
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6293
*) ac_try_echo=$ac_try;;
6295
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6296
(eval "$ac_compiler -v >&5") 2>&5
6298
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6299
(exit $ac_status); }
6300
{ (ac_try="$ac_compiler -V >&5"
6302
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6303
*) ac_try_echo=$ac_try;;
6305
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6306
(eval "$ac_compiler -V >&5") 2>&5
6308
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6309
(exit $ac_status); }
6312
# If we don't use `.F' as extension, the preprocessor is not run on the
6313
# input file. (Note that this only needs to work for GNU compilers.)
6316
{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6317
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6318
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6319
echo $ECHO_N "(cached) $ECHO_C" >&6
6321
cat >conftest.$ac_ext <<_ACEOF
6329
rm -f conftest.$ac_objext
6330
if { (ac_try="$ac_compile"
6332
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6333
*) ac_try_echo=$ac_try;;
6335
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6336
(eval "$ac_compile") 2>conftest.er1
6338
grep -v '^ *+' conftest.er1 >conftest.err
6340
cat conftest.err >&5
6341
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6342
(exit $ac_status); } && {
6343
test -z "$ac_f77_werror_flag" ||
6344
test ! -s conftest.err
6345
} && test -s conftest.$ac_objext; then
6348
echo "$as_me: failed program was:" >&5
6349
sed 's/^/| /' conftest.$ac_ext >&5
6354
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6355
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6358
{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6359
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6361
ac_test_FFLAGS=${FFLAGS+set}
6362
ac_save_FFLAGS=$FFLAGS
6364
{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6365
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6366
if test "${ac_cv_prog_f77_g+set}" = set; then
6367
echo $ECHO_N "(cached) $ECHO_C" >&6
6370
cat >conftest.$ac_ext <<_ACEOF
6375
rm -f conftest.$ac_objext
6376
if { (ac_try="$ac_compile"
6378
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6379
*) ac_try_echo=$ac_try;;
6381
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6382
(eval "$ac_compile") 2>conftest.er1
6384
grep -v '^ *+' conftest.er1 >conftest.err
6386
cat conftest.err >&5
6387
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6388
(exit $ac_status); } && {
6389
test -z "$ac_f77_werror_flag" ||
6390
test ! -s conftest.err
6391
} && test -s conftest.$ac_objext; then
6392
ac_cv_prog_f77_g=yes
6394
echo "$as_me: failed program was:" >&5
6395
sed 's/^/| /' conftest.$ac_ext >&5
6400
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6403
{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6404
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6405
if test "$ac_test_FFLAGS" = set; then
6406
FFLAGS=$ac_save_FFLAGS
6407
elif test $ac_cv_prog_f77_g = yes; then
6408
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6414
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6421
G77=`test $ac_compiler_gnu = yes && echo yes`
6423
ac_cpp='$CPP $CPPFLAGS'
6424
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6425
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6426
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6430
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6431
# find the maximum length of command line arguments
6432
{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6433
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6434
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6435
echo $ECHO_N "(cached) $ECHO_C" >&6
6442
# On DJGPP, this test can blow up pretty badly due to problems in libc
6443
# (any single argument exceeding 2000 bytes causes a buffer overrun
6444
# during glob expansion). Even if it were fixed, the result of this
6445
# check would be larger than it should be.
6446
lt_cv_sys_max_cmd_len=12288; # 12K is about right
6450
# Under GNU Hurd, this test is not required because there is
6451
# no limit to the length of command line arguments.
6452
# Libtool will interpret -1 as no limit whatsoever
6453
lt_cv_sys_max_cmd_len=-1;
6457
# On Win9x/ME, this test blows up -- it succeeds, but takes
6458
# about 5 minutes as the teststring grows exponentially.
6459
# Worse, since 9x/ME are not pre-emptively multitasking,
6460
# you end up with a "frozen" computer, even though with patience
6461
# the test eventually succeeds (with a max line length of 256k).
6462
# Instead, let's just punt: use the minimum linelength reported by
6463
# all of the supported platforms: 8192 (on NT/2K/XP).
6464
lt_cv_sys_max_cmd_len=8192;
6468
# On AmigaOS with pdksh, this test takes hours, literally.
6469
# So we just punt and use a minimum line length of 8192.
6470
lt_cv_sys_max_cmd_len=8192;
6473
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6474
# This has been around since 386BSD, at least. Likely further.
6475
if test -x /sbin/sysctl; then
6476
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6477
elif test -x /usr/sbin/sysctl; then
6478
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6480
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6482
# And add a safety zone
6483
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6484
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6488
# We know the value 262144 and hardcode it with a safety zone (like BSD)
6489
lt_cv_sys_max_cmd_len=196608
6493
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6494
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6495
# nice to cause kernel panics so lets avoid the loop below.
6496
# First set a reasonable default.
6497
lt_cv_sys_max_cmd_len=16384
6499
if test -x /sbin/sysconfig; then
6500
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6501
*1*) lt_cv_sys_max_cmd_len=-1 ;;
6506
lt_cv_sys_max_cmd_len=102400
6508
sysv5* | sco5v6* | sysv4.2uw2*)
6509
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6510
if test -n "$kargmax"; then
6511
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6513
lt_cv_sys_max_cmd_len=32768
6517
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6518
if test -n "$lt_cv_sys_max_cmd_len"; then
6519
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6520
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6522
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6523
while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6524
= "XX$teststring") >/dev/null 2>&1 &&
6525
new_result=`expr "X$teststring" : ".*" 2>&1` &&
6526
lt_cv_sys_max_cmd_len=$new_result &&
6527
test $i != 17 # 1/2 MB should be enough
6530
teststring=$teststring$teststring
6533
# Add a significant safety factor because C++ compilers can tack on massive
6534
# amounts of additional arguments before passing them to the linker.
6535
# It appears as though 1/2 is a usable value.
6536
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6543
if test -n $lt_cv_sys_max_cmd_len ; then
6544
{ echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6545
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6547
{ echo "$as_me:$LINENO: result: none" >&5
6548
echo "${ECHO_T}none" >&6; }
6555
# Check for command to grab the raw symbol name followed by C symbol from nm.
6556
{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6557
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6558
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6559
echo $ECHO_N "(cached) $ECHO_C" >&6
6562
# These are sane defaults that work on at least a few old systems.
6563
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6565
# Character class describing NM global symbol codes.
6566
symcode='[BCDEGRST]'
6568
# Regexp to match symbols that can be accessed directly from C.
6569
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6571
# Transform an extracted symbol line into a proper C declaration
6572
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6574
# Transform an extracted symbol line into symbol name and symbol address
6575
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'"
6577
# Define system-specific variables.
6582
cygwin* | mingw* | pw32*)
6583
symcode='[ABCDGISTW]'
6585
hpux*) # Its linker distinguishes data from code symbols
6586
if test "$host_cpu" = ia64; then
6587
symcode='[ABCDEGRST]'
6589
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6590
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'"
6592
linux* | k*bsd*-gnu)
6593
if test "$host_cpu" = ia64; then
6594
symcode='[ABCDGIRSTW]'
6595
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6596
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'"
6600
symcode='[BCDEGRST]'
6603
symcode='[BCDEGQRST]'
6614
sysv5* | sco5v6* | unixware* | OpenUNIX*)
6622
# Handle CRLF in mingw tool chain
6626
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6630
# If we're using GNU nm, then use its standard symbol codes.
6631
case `$NM -V 2>&1` in
6632
*GNU* | *'with BFD'*)
6633
symcode='[ABCDGIRSTW]' ;;
6636
# Try without a prefix undercore, then with it.
6637
for ac_symprfx in "" "_"; do
6639
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6640
symxfrm="\\1 $ac_symprfx\\2 \\2"
6642
# Write the raw and C identifiers.
6643
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6645
# Check to see that the pipe works correctly.
6649
cat > conftest.$ac_ext <<EOF
6654
void nm_test_func(){}
6658
int main(){nm_test_var='a';nm_test_func();return(0);}
6661
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6662
(eval $ac_compile) 2>&5
6664
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6665
(exit $ac_status); }; then
6666
# Now try to grab the symbols.
6668
if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6669
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6671
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6672
(exit $ac_status); } && test -s "$nlist"; then
6673
# Try sorting and uniquifying the output.
6674
if sort "$nlist" | uniq > "$nlist"T; then
6675
mv -f "$nlist"T "$nlist"
6680
# Make sure that we snagged all the symbols we need.
6681
if grep ' nm_test_var$' "$nlist" >/dev/null; then
6682
if grep ' nm_test_func$' "$nlist" >/dev/null; then
6683
cat <<EOF > conftest.$ac_ext
6689
# Now generate the symbol file.
6690
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6692
cat <<EOF >> conftest.$ac_ext
6693
#if defined (__STDC__) && __STDC__
6694
# define lt_ptr_t void *
6696
# define lt_ptr_t char *
6700
/* The mapping between symbol names and symbols. */
6705
lt_preloaded_symbols[] =
6708
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6709
cat <<\EOF >> conftest.$ac_ext
6717
# Now try linking the two files.
6718
mv conftest.$ac_objext conftstm.$ac_objext
6719
lt_save_LIBS="$LIBS"
6720
lt_save_CFLAGS="$CFLAGS"
6721
LIBS="conftstm.$ac_objext"
6722
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6723
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6724
(eval $ac_link) 2>&5
6726
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6727
(exit $ac_status); } && test -s conftest${ac_exeext}; then
6730
LIBS="$lt_save_LIBS"
6731
CFLAGS="$lt_save_CFLAGS"
6733
echo "cannot find nm_test_func in $nlist" >&5
6736
echo "cannot find nm_test_var in $nlist" >&5
6739
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6742
echo "$progname: failed program was:" >&5
6743
cat conftest.$ac_ext >&5
6745
rm -rf conftest* conftst*
6747
# Do not use the global_symbol_pipe unless it works.
6748
if test "$pipe_works" = yes; then
6751
lt_cv_sys_global_symbol_pipe=
6757
if test -z "$lt_cv_sys_global_symbol_pipe"; then
6758
lt_cv_sys_global_symbol_to_cdecl=
6760
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6761
{ echo "$as_me:$LINENO: result: failed" >&5
6762
echo "${ECHO_T}failed" >&6; }
6764
{ echo "$as_me:$LINENO: result: ok" >&5
6765
echo "${ECHO_T}ok" >&6; }
6768
{ echo "$as_me:$LINENO: checking for objdir" >&5
6769
echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6770
if test "${lt_cv_objdir+set}" = set; then
6771
echo $ECHO_N "(cached) $ECHO_C" >&6
6773
rm -f .libs 2>/dev/null
6774
mkdir .libs 2>/dev/null
6775
if test -d .libs; then
6778
# MS-DOS does not allow filenames that begin with a dot.
6781
rmdir .libs 2>/dev/null
6783
{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6784
echo "${ECHO_T}$lt_cv_objdir" >&6; }
6785
objdir=$lt_cv_objdir
6793
# AIX sometimes has problems with the GCC collect2 program. For some
6794
# reason, if we set the COLLECT_NAMES environment variable, the problems
6795
# vanish in a puff of smoke.
6796
if test "X${COLLECT_NAMES+set}" != Xset; then
6798
export COLLECT_NAMES
6803
# Sed substitution that helps us do robust quoting. It backslashifies
6804
# metacharacters that are still active within double-quoted strings.
6805
Xsed='sed -e 1s/^X//'
6806
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6808
# Same as above, but do not quote variable references.
6809
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6811
# Sed substitution to delay expansion of an escaped shell variable in a
6812
# double_quote_subst'ed string.
6813
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6815
# Sed substitution to avoid accidental globbing in evaled expressions
6816
no_glob_subst='s/\*/\\\*/g'
6822
default_ofile=libtool
6823
can_build_shared=yes
6825
# All known linkers require a `.a' archive for static linking (except MSVC,
6826
# which needs '.lib').
6828
ltmain="$ac_aux_dir/ltmain.sh"
6829
ofile="$default_ofile"
6830
with_gnu_ld="$lt_cv_prog_gnu_ld"
6832
if test -n "$ac_tool_prefix"; then
6833
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6834
set dummy ${ac_tool_prefix}ar; ac_word=$2
6835
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6836
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6837
if test "${ac_cv_prog_AR+set}" = set; then
6838
echo $ECHO_N "(cached) $ECHO_C" >&6
6840
if test -n "$AR"; then
6841
ac_cv_prog_AR="$AR" # Let the user override the test.
6843
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6847
test -z "$as_dir" && as_dir=.
6848
for ac_exec_ext in '' $ac_executable_extensions; do
6849
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6850
ac_cv_prog_AR="${ac_tool_prefix}ar"
6851
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6861
if test -n "$AR"; then
6862
{ echo "$as_me:$LINENO: result: $AR" >&5
6863
echo "${ECHO_T}$AR" >&6; }
6865
{ echo "$as_me:$LINENO: result: no" >&5
6866
echo "${ECHO_T}no" >&6; }
6871
if test -z "$ac_cv_prog_AR"; then
6873
# Extract the first word of "ar", so it can be a program name with args.
6874
set dummy ar; ac_word=$2
6875
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6876
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6877
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6878
echo $ECHO_N "(cached) $ECHO_C" >&6
6880
if test -n "$ac_ct_AR"; then
6881
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6883
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6887
test -z "$as_dir" && as_dir=.
6888
for ac_exec_ext in '' $ac_executable_extensions; do
6889
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6890
ac_cv_prog_ac_ct_AR="ar"
6891
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6900
ac_ct_AR=$ac_cv_prog_ac_ct_AR
6901
if test -n "$ac_ct_AR"; then
6902
{ echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6903
echo "${ECHO_T}$ac_ct_AR" >&6; }
6905
{ echo "$as_me:$LINENO: result: no" >&5
6906
echo "${ECHO_T}no" >&6; }
6909
if test "x$ac_ct_AR" = x; then
6912
case $cross_compiling:$ac_tool_warned in
6914
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6915
whose name does not start with the host triplet. If you think this
6916
configuration is useful to you, please write to autoconf@gnu.org." >&5
6917
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6918
whose name does not start with the host triplet. If you think this
6919
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6920
ac_tool_warned=yes ;;
6928
if test -n "$ac_tool_prefix"; then
6929
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6930
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6931
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6932
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6933
if test "${ac_cv_prog_RANLIB+set}" = set; then
6934
echo $ECHO_N "(cached) $ECHO_C" >&6
6936
if test -n "$RANLIB"; then
6937
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6939
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6943
test -z "$as_dir" && as_dir=.
6944
for ac_exec_ext in '' $ac_executable_extensions; do
6945
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6946
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6947
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6956
RANLIB=$ac_cv_prog_RANLIB
6957
if test -n "$RANLIB"; then
6958
{ echo "$as_me:$LINENO: result: $RANLIB" >&5
6959
echo "${ECHO_T}$RANLIB" >&6; }
6961
{ echo "$as_me:$LINENO: result: no" >&5
6962
echo "${ECHO_T}no" >&6; }
6967
if test -z "$ac_cv_prog_RANLIB"; then
6968
ac_ct_RANLIB=$RANLIB
6969
# Extract the first word of "ranlib", so it can be a program name with args.
6970
set dummy ranlib; ac_word=$2
6971
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6972
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6973
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6974
echo $ECHO_N "(cached) $ECHO_C" >&6
6976
if test -n "$ac_ct_RANLIB"; then
6977
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6979
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6983
test -z "$as_dir" && as_dir=.
6984
for ac_exec_ext in '' $ac_executable_extensions; do
6985
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6986
ac_cv_prog_ac_ct_RANLIB="ranlib"
6987
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6996
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6997
if test -n "$ac_ct_RANLIB"; then
6998
{ echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6999
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7001
{ echo "$as_me:$LINENO: result: no" >&5
7002
echo "${ECHO_T}no" >&6; }
7005
if test "x$ac_ct_RANLIB" = x; then
7008
case $cross_compiling:$ac_tool_warned in
7010
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7011
whose name does not start with the host triplet. If you think this
7012
configuration is useful to you, please write to autoconf@gnu.org." >&5
7013
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7014
whose name does not start with the host triplet. If you think this
7015
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7016
ac_tool_warned=yes ;;
7018
RANLIB=$ac_ct_RANLIB
7021
RANLIB="$ac_cv_prog_RANLIB"
7024
if test -n "$ac_tool_prefix"; then
7025
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7026
set dummy ${ac_tool_prefix}strip; ac_word=$2
7027
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7028
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7029
if test "${ac_cv_prog_STRIP+set}" = set; then
7030
echo $ECHO_N "(cached) $ECHO_C" >&6
7032
if test -n "$STRIP"; then
7033
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7035
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7039
test -z "$as_dir" && as_dir=.
7040
for ac_exec_ext in '' $ac_executable_extensions; do
7041
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7042
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7043
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7052
STRIP=$ac_cv_prog_STRIP
7053
if test -n "$STRIP"; then
7054
{ echo "$as_me:$LINENO: result: $STRIP" >&5
7055
echo "${ECHO_T}$STRIP" >&6; }
7057
{ echo "$as_me:$LINENO: result: no" >&5
7058
echo "${ECHO_T}no" >&6; }
7063
if test -z "$ac_cv_prog_STRIP"; then
7065
# Extract the first word of "strip", so it can be a program name with args.
7066
set dummy strip; ac_word=$2
7067
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7068
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7069
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7070
echo $ECHO_N "(cached) $ECHO_C" >&6
7072
if test -n "$ac_ct_STRIP"; then
7073
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7075
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7079
test -z "$as_dir" && as_dir=.
7080
for ac_exec_ext in '' $ac_executable_extensions; do
7081
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7082
ac_cv_prog_ac_ct_STRIP="strip"
7083
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7092
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7093
if test -n "$ac_ct_STRIP"; then
7094
{ echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7095
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7097
{ echo "$as_me:$LINENO: result: no" >&5
7098
echo "${ECHO_T}no" >&6; }
7101
if test "x$ac_ct_STRIP" = x; then
7104
case $cross_compiling:$ac_tool_warned in
7106
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7107
whose name does not start with the host triplet. If you think this
7108
configuration is useful to you, please write to autoconf@gnu.org." >&5
7109
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7110
whose name does not start with the host triplet. If you think this
7111
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7112
ac_tool_warned=yes ;;
7117
STRIP="$ac_cv_prog_STRIP"
7122
old_CFLAGS="$CFLAGS"
7124
# Set sane defaults for various variables
7125
test -z "$AR" && AR=ar
7126
test -z "$AR_FLAGS" && AR_FLAGS=cru
7127
test -z "$AS" && AS=as
7128
test -z "$CC" && CC=cc
7129
test -z "$LTCC" && LTCC=$CC
7130
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7131
test -z "$DLLTOOL" && DLLTOOL=dlltool
7132
test -z "$LD" && LD=ld
7133
test -z "$LN_S" && LN_S="ln -s"
7134
test -z "$MAGIC_CMD" && MAGIC_CMD=file
7135
test -z "$NM" && NM=nm
7136
test -z "$SED" && SED=sed
7137
test -z "$OBJDUMP" && OBJDUMP=objdump
7138
test -z "$RANLIB" && RANLIB=:
7139
test -z "$STRIP" && STRIP=:
7140
test -z "$ac_objext" && ac_objext=o
7142
# Determine commands to create old-style static archives.
7143
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7144
old_postinstall_cmds='chmod 644 $oldlib'
7145
old_postuninstall_cmds=
7147
if test -n "$RANLIB"; then
7150
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7153
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7156
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7159
for cc_temp in $compiler""; do
7161
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7162
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7167
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7170
# Only perform the check for file, if the check method requires it
7171
case $deplibs_check_method in
7173
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7174
{ echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7175
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7176
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7177
echo $ECHO_N "(cached) $ECHO_C" >&6
7181
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7184
lt_save_MAGIC_CMD="$MAGIC_CMD"
7185
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7186
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7187
for ac_dir in $ac_dummy; do
7189
test -z "$ac_dir" && ac_dir=.
7190
if test -f $ac_dir/${ac_tool_prefix}file; then
7191
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7192
if test -n "$file_magic_test_file"; then
7193
case $deplibs_check_method in
7195
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7196
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7197
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7198
$EGREP "$file_magic_regex" > /dev/null; then
7203
*** Warning: the command libtool uses to detect shared libraries,
7204
*** $file_magic_cmd, produces output that libtool cannot recognize.
7205
*** The result is that libtool may fail to recognize shared libraries
7206
*** as such. This will affect the creation of libtool libraries that
7207
*** depend on shared libraries, but programs linked with such libtool
7208
*** libraries will work regardless of this problem. Nevertheless, you
7209
*** may want to report the problem to your system manager and/or to
7210
*** bug-libtool@gnu.org
7220
MAGIC_CMD="$lt_save_MAGIC_CMD"
7225
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7226
if test -n "$MAGIC_CMD"; then
7227
{ echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7228
echo "${ECHO_T}$MAGIC_CMD" >&6; }
7230
{ echo "$as_me:$LINENO: result: no" >&5
7231
echo "${ECHO_T}no" >&6; }
7234
if test -z "$lt_cv_path_MAGIC_CMD"; then
7235
if test -n "$ac_tool_prefix"; then
7236
{ echo "$as_me:$LINENO: checking for file" >&5
7237
echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7238
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7239
echo $ECHO_N "(cached) $ECHO_C" >&6
7243
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7246
lt_save_MAGIC_CMD="$MAGIC_CMD"
7247
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7248
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7249
for ac_dir in $ac_dummy; do
7251
test -z "$ac_dir" && ac_dir=.
7252
if test -f $ac_dir/file; then
7253
lt_cv_path_MAGIC_CMD="$ac_dir/file"
7254
if test -n "$file_magic_test_file"; then
7255
case $deplibs_check_method in
7257
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7258
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7259
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7260
$EGREP "$file_magic_regex" > /dev/null; then
7265
*** Warning: the command libtool uses to detect shared libraries,
7266
*** $file_magic_cmd, produces output that libtool cannot recognize.
7267
*** The result is that libtool may fail to recognize shared libraries
7268
*** as such. This will affect the creation of libtool libraries that
7269
*** depend on shared libraries, but programs linked with such libtool
7270
*** libraries will work regardless of this problem. Nevertheless, you
7271
*** may want to report the problem to your system manager and/or to
7272
*** bug-libtool@gnu.org
7282
MAGIC_CMD="$lt_save_MAGIC_CMD"
7287
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7288
if test -n "$MAGIC_CMD"; then
7289
{ echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7290
echo "${ECHO_T}$MAGIC_CMD" >&6; }
7292
{ echo "$as_me:$LINENO: result: no" >&5
7293
echo "${ECHO_T}no" >&6; }
7307
rhapsody* | darwin*)
7308
if test -n "$ac_tool_prefix"; then
7309
# Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7310
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7311
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7312
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7313
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7314
echo $ECHO_N "(cached) $ECHO_C" >&6
7316
if test -n "$DSYMUTIL"; then
7317
ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7319
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7323
test -z "$as_dir" && as_dir=.
7324
for ac_exec_ext in '' $ac_executable_extensions; do
7325
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7326
ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7327
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7336
DSYMUTIL=$ac_cv_prog_DSYMUTIL
7337
if test -n "$DSYMUTIL"; then
7338
{ echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7339
echo "${ECHO_T}$DSYMUTIL" >&6; }
7341
{ echo "$as_me:$LINENO: result: no" >&5
7342
echo "${ECHO_T}no" >&6; }
7347
if test -z "$ac_cv_prog_DSYMUTIL"; then
7348
ac_ct_DSYMUTIL=$DSYMUTIL
7349
# Extract the first word of "dsymutil", so it can be a program name with args.
7350
set dummy dsymutil; ac_word=$2
7351
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7352
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7353
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7354
echo $ECHO_N "(cached) $ECHO_C" >&6
7356
if test -n "$ac_ct_DSYMUTIL"; then
7357
ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7359
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7363
test -z "$as_dir" && as_dir=.
7364
for ac_exec_ext in '' $ac_executable_extensions; do
7365
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7366
ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7367
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7376
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7377
if test -n "$ac_ct_DSYMUTIL"; then
7378
{ echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7379
echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7381
{ echo "$as_me:$LINENO: result: no" >&5
7382
echo "${ECHO_T}no" >&6; }
7385
if test "x$ac_ct_DSYMUTIL" = x; then
7388
case $cross_compiling:$ac_tool_warned in
7390
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7391
whose name does not start with the host triplet. If you think this
7392
configuration is useful to you, please write to autoconf@gnu.org." >&5
7393
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7394
whose name does not start with the host triplet. If you think this
7395
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7396
ac_tool_warned=yes ;;
7398
DSYMUTIL=$ac_ct_DSYMUTIL
7401
DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7404
if test -n "$ac_tool_prefix"; then
7405
# Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7406
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7407
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7408
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7409
if test "${ac_cv_prog_NMEDIT+set}" = set; then
7410
echo $ECHO_N "(cached) $ECHO_C" >&6
7412
if test -n "$NMEDIT"; then
7413
ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7415
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7419
test -z "$as_dir" && as_dir=.
7420
for ac_exec_ext in '' $ac_executable_extensions; do
7421
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7422
ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7423
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7432
NMEDIT=$ac_cv_prog_NMEDIT
7433
if test -n "$NMEDIT"; then
7434
{ echo "$as_me:$LINENO: result: $NMEDIT" >&5
7435
echo "${ECHO_T}$NMEDIT" >&6; }
7437
{ echo "$as_me:$LINENO: result: no" >&5
7438
echo "${ECHO_T}no" >&6; }
7443
if test -z "$ac_cv_prog_NMEDIT"; then
7444
ac_ct_NMEDIT=$NMEDIT
7445
# Extract the first word of "nmedit", so it can be a program name with args.
7446
set dummy nmedit; ac_word=$2
7447
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7448
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7449
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7450
echo $ECHO_N "(cached) $ECHO_C" >&6
7452
if test -n "$ac_ct_NMEDIT"; then
7453
ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7455
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7459
test -z "$as_dir" && as_dir=.
7460
for ac_exec_ext in '' $ac_executable_extensions; do
7461
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7462
ac_cv_prog_ac_ct_NMEDIT="nmedit"
7463
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7472
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7473
if test -n "$ac_ct_NMEDIT"; then
7474
{ echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7475
echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7477
{ echo "$as_me:$LINENO: result: no" >&5
7478
echo "${ECHO_T}no" >&6; }
7481
if test "x$ac_ct_NMEDIT" = x; then
7484
case $cross_compiling:$ac_tool_warned in
7486
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7487
whose name does not start with the host triplet. If you think this
7488
configuration is useful to you, please write to autoconf@gnu.org." >&5
7489
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7490
whose name does not start with the host triplet. If you think this
7491
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7492
ac_tool_warned=yes ;;
7494
NMEDIT=$ac_ct_NMEDIT
7497
NMEDIT="$ac_cv_prog_NMEDIT"
7501
{ echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7502
echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7503
if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7504
echo $ECHO_N "(cached) $ECHO_C" >&6
7506
lt_cv_apple_cc_single_mod=no
7507
if test -z "${LT_MULTI_MODULE}"; then
7508
# By default we will add the -single_module flag. You can override
7509
# by either setting the environment variable LT_MULTI_MODULE
7510
# non-empty at configure time, or by adding -multi_module to the
7512
echo "int foo(void){return 1;}" > conftest.c
7513
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7514
-dynamiclib ${wl}-single_module conftest.c
7515
if test -f libconftest.dylib; then
7516
lt_cv_apple_cc_single_mod=yes
7517
rm -rf libconftest.dylib*
7522
{ echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7523
echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7524
{ echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7525
echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7526
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7527
echo $ECHO_N "(cached) $ECHO_C" >&6
7529
lt_cv_ld_exported_symbols_list=no
7530
save_LDFLAGS=$LDFLAGS
7531
echo "_main" > conftest.sym
7532
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7533
cat >conftest.$ac_ext <<_ACEOF
7536
cat confdefs.h >>conftest.$ac_ext
7537
cat >>conftest.$ac_ext <<_ACEOF
7538
/* end confdefs.h. */
7548
rm -f conftest.$ac_objext conftest$ac_exeext
7549
if { (ac_try="$ac_link"
7551
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7552
*) ac_try_echo=$ac_try;;
7554
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7555
(eval "$ac_link") 2>conftest.er1
7557
grep -v '^ *+' conftest.er1 >conftest.err
7559
cat conftest.err >&5
7560
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7561
(exit $ac_status); } && {
7562
test -z "$ac_c_werror_flag" ||
7563
test ! -s conftest.err
7564
} && test -s conftest$ac_exeext &&
7565
$as_test_x conftest$ac_exeext; then
7566
lt_cv_ld_exported_symbols_list=yes
7568
echo "$as_me: failed program was:" >&5
7569
sed 's/^/| /' conftest.$ac_ext >&5
7571
lt_cv_ld_exported_symbols_list=no
7574
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7575
conftest$ac_exeext conftest.$ac_ext
7576
LDFLAGS="$save_LDFLAGS"
7579
{ echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7580
echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7582
rhapsody* | darwin1.[0123])
7583
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7585
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7587
# if running on 10.5 or later, the deployment target defaults
7588
# to the OS version, if on x86, and 10.4, the deployment
7589
# target defaults to 10.4. Don't you love it?
7590
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7591
10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7592
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7594
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7596
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7600
if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7601
_lt_dar_single_mod='$single_module'
7603
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7604
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7606
_lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7608
if test "$DSYMUTIL" != ":"; then
7609
_lt_dsymutil="~$DSYMUTIL \$lib || :"
7618
enable_win32_dll=yes
7620
# Check whether --enable-libtool-lock was given.
7621
if test "${enable_libtool_lock+set}" = set; then
7622
enableval=$enable_libtool_lock;
7625
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7628
# Check whether --with-pic was given.
7629
if test "${with_pic+set}" = set; then
7630
withval=$with_pic; pic_mode="$withval"
7635
test -z "$pic_mode" && pic_mode=default
7637
# Use C for the default configuration in the libtool script
7641
ac_cpp='$CPP $CPPFLAGS'
7642
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7643
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7644
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7647
# Source file extension for C test sources.
7650
# Object file extension for compiled C test sources.
7654
# Code to be used in simple compile tests
7655
lt_simple_compile_test_code="int some_variable = 0;"
7657
# Code to be used in simple link tests
7658
lt_simple_link_test_code='int main(){return(0);}'
7661
# If no C compiler was specified, use CC.
7664
# If no C compiler flags were specified, use CFLAGS.
7665
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7667
# Allow CC to be a program name with arguments.
7671
# save warnings/boilerplate of simple test code
7672
ac_outfile=conftest.$ac_objext
7673
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7674
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7675
_lt_compiler_boilerplate=`cat conftest.err`
7678
ac_outfile=conftest.$ac_objext
7679
echo "$lt_simple_link_test_code" >conftest.$ac_ext
7680
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7681
_lt_linker_boilerplate=`cat conftest.err`
7686
## There is no encapsulation within the following macros, do not change
7687
## the running order or otherwise move them around unless you know exactly
7688
## what you are doing...
7690
lt_prog_compiler_no_builtin_flag=
7692
if test "$GCC" = yes; then
7693
lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7696
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7697
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7698
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7699
echo $ECHO_N "(cached) $ECHO_C" >&6
7701
lt_cv_prog_compiler_rtti_exceptions=no
7702
ac_outfile=conftest.$ac_objext
7703
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7704
lt_compiler_flag="-fno-rtti -fno-exceptions"
7705
# Insert the option either (1) after the last *FLAGS variable, or
7706
# (2) before a word containing "conftest.", or (3) at the end.
7707
# Note that $ac_compile itself does not contain backslashes and begins
7708
# with a dollar sign (not a hyphen), so the echo should work correctly.
7709
# The option is referenced via a variable to avoid confusing sed.
7710
lt_compile=`echo "$ac_compile" | $SED \
7711
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7712
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7713
-e 's:$: $lt_compiler_flag:'`
7714
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
7715
(eval "$lt_compile" 2>conftest.err)
7717
cat conftest.err >&5
7718
echo "$as_me:__oline__: \$? = $ac_status" >&5
7719
if (exit $ac_status) && test -s "$ac_outfile"; then
7720
# The compiler can only warn and ignore the option if not recognized
7721
# So say no if there are warnings other than the usual output.
7722
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7723
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7724
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7725
lt_cv_prog_compiler_rtti_exceptions=yes
7731
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7732
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7734
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7735
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7742
lt_prog_compiler_wl=
7743
lt_prog_compiler_pic=
7744
lt_prog_compiler_static=
7746
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7747
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7749
if test "$GCC" = yes; then
7750
lt_prog_compiler_wl='-Wl,'
7751
lt_prog_compiler_static='-static'
7755
# All AIX code is PIC.
7756
if test "$host_cpu" = ia64; then
7757
# AIX 5 now supports IA64 processor
7758
lt_prog_compiler_static='-Bstatic'
7763
# FIXME: we need at least 68020 code to build shared libraries, but
7764
# adding the `-m68020' flag to GCC prevents building anything better,
7766
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7769
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7770
# PIC is the default for these OSes.
7773
mingw* | cygwin* | pw32* | os2*)
7774
# This hack is so that the source file can tell whether it is being
7775
# built for inclusion in a dll (and should export symbols for example).
7776
# Although the cygwin gcc ignores -fPIC, still need this for old-style
7777
# (--disable-auto-import) libraries
7778
lt_prog_compiler_pic='-DDLL_EXPORT'
7781
darwin* | rhapsody*)
7782
# PIC is the default on this platform
7783
# Common symbols not allowed in MH_DYLIB files
7784
lt_prog_compiler_pic='-fno-common'
7788
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
7789
# Instead, we relocate shared libraries at runtime.
7793
# Just because we use GCC doesn't mean we suddenly get shared libraries
7794
# on systems that don't support them.
7795
lt_prog_compiler_can_build_shared=no
7800
if test -d /usr/nec; then
7801
lt_prog_compiler_pic=-Kconform_pic
7806
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7813
lt_prog_compiler_pic='-fPIC'
7819
lt_prog_compiler_pic='-fPIC'
7823
# PORTME Check for flag to pass linker flags through the system compiler.
7826
lt_prog_compiler_wl='-Wl,'
7827
if test "$host_cpu" = ia64; then
7828
# AIX 5 now supports IA64 processor
7829
lt_prog_compiler_static='-Bstatic'
7831
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7835
# PIC is the default on this platform
7836
# Common symbols not allowed in MH_DYLIB files
7837
case $cc_basename in
7839
lt_prog_compiler_pic='-qnocommon'
7840
lt_prog_compiler_wl='-Wl,'
7845
mingw* | cygwin* | pw32* | os2*)
7846
# This hack is so that the source file can tell whether it is being
7847
# built for inclusion in a dll (and should export symbols for example).
7848
lt_prog_compiler_pic='-DDLL_EXPORT'
7851
hpux9* | hpux10* | hpux11*)
7852
lt_prog_compiler_wl='-Wl,'
7853
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7860
lt_prog_compiler_pic='+Z'
7863
# Is there a better lt_prog_compiler_static that works with the bundled CC?
7864
lt_prog_compiler_static='${wl}-a ${wl}archive'
7867
irix5* | irix6* | nonstopux*)
7868
lt_prog_compiler_wl='-Wl,'
7869
# PIC (with -KPIC) is the default.
7870
lt_prog_compiler_static='-non_shared'
7874
lt_prog_compiler_pic='-KPIC'
7875
lt_prog_compiler_static='-Bstatic'
7878
linux* | k*bsd*-gnu)
7879
case $cc_basename in
7881
lt_prog_compiler_wl='-Wl,'
7882
lt_prog_compiler_pic='-KPIC'
7883
lt_prog_compiler_static='-static'
7885
pgcc* | pgf77* | pgf90* | pgf95*)
7886
# Portland Group compilers (*not* the Pentium gcc compiler,
7887
# which looks to be a dead project)
7888
lt_prog_compiler_wl='-Wl,'
7889
lt_prog_compiler_pic='-fpic'
7890
lt_prog_compiler_static='-Bstatic'
7893
lt_prog_compiler_wl='-Wl,'
7894
# All Alpha code is PIC.
7895
lt_prog_compiler_static='-non_shared'
7898
case `$CC -V 2>&1 | sed 5q` in
7901
lt_prog_compiler_pic='-KPIC'
7902
lt_prog_compiler_static='-Bstatic'
7903
lt_prog_compiler_wl='-Wl,'
7906
# Sun Fortran 8.3 passes all unrecognized flags to the linker
7907
lt_prog_compiler_pic='-KPIC'
7908
lt_prog_compiler_static='-Bstatic'
7909
lt_prog_compiler_wl=''
7916
osf3* | osf4* | osf5*)
7917
lt_prog_compiler_wl='-Wl,'
7918
# All OSF/1 code is PIC.
7919
lt_prog_compiler_static='-non_shared'
7923
lt_prog_compiler_static='-non_shared'
7927
lt_prog_compiler_pic='-KPIC'
7928
lt_prog_compiler_static='-Bstatic'
7929
case $cc_basename in
7931
lt_prog_compiler_wl='-Qoption ld ';;
7933
lt_prog_compiler_wl='-Wl,';;
7938
lt_prog_compiler_wl='-Qoption ld '
7939
lt_prog_compiler_pic='-PIC'
7940
lt_prog_compiler_static='-Bstatic'
7943
sysv4 | sysv4.2uw2* | sysv4.3*)
7944
lt_prog_compiler_wl='-Wl,'
7945
lt_prog_compiler_pic='-KPIC'
7946
lt_prog_compiler_static='-Bstatic'
7950
if test -d /usr/nec ;then
7951
lt_prog_compiler_pic='-Kconform_pic'
7952
lt_prog_compiler_static='-Bstatic'
7956
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7957
lt_prog_compiler_wl='-Wl,'
7958
lt_prog_compiler_pic='-KPIC'
7959
lt_prog_compiler_static='-Bstatic'
7963
lt_prog_compiler_wl='-Wl,'
7964
lt_prog_compiler_can_build_shared=no
7968
lt_prog_compiler_pic='-pic'
7969
lt_prog_compiler_static='-Bstatic'
7973
lt_prog_compiler_can_build_shared=no
7978
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7979
echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7982
# Check to make sure the PIC flag actually works.
7984
if test -n "$lt_prog_compiler_pic"; then
7986
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7987
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7988
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7989
echo $ECHO_N "(cached) $ECHO_C" >&6
7991
lt_cv_prog_compiler_pic_works=no
7992
ac_outfile=conftest.$ac_objext
7993
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7994
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7995
# Insert the option either (1) after the last *FLAGS variable, or
7996
# (2) before a word containing "conftest.", or (3) at the end.
7997
# Note that $ac_compile itself does not contain backslashes and begins
7998
# with a dollar sign (not a hyphen), so the echo should work correctly.
7999
# The option is referenced via a variable to avoid confusing sed.
8000
lt_compile=`echo "$ac_compile" | $SED \
8001
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8002
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8003
-e 's:$: $lt_compiler_flag:'`
8004
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
8005
(eval "$lt_compile" 2>conftest.err)
8007
cat conftest.err >&5
8008
echo "$as_me:__oline__: \$? = $ac_status" >&5
8009
if (exit $ac_status) && test -s "$ac_outfile"; then
8010
# The compiler can only warn and ignore the option if not recognized
8011
# So say no if there are warnings other than the usual output.
8012
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8013
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8014
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8015
lt_cv_prog_compiler_pic_works=yes
8021
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8022
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
8024
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8025
case $lt_prog_compiler_pic in
8027
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8030
lt_prog_compiler_pic=
8031
lt_prog_compiler_can_build_shared=no
8036
# For platforms which do not support PIC, -DPIC is meaningless:
8038
lt_prog_compiler_pic=
8041
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8046
# Check to make sure the static flag actually works.
8048
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8049
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8050
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8051
if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8052
echo $ECHO_N "(cached) $ECHO_C" >&6
8054
lt_cv_prog_compiler_static_works=no
8055
save_LDFLAGS="$LDFLAGS"
8056
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8057
echo "$lt_simple_link_test_code" > conftest.$ac_ext
8058
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8059
# The linker can only warn and ignore the option if not recognized
8060
# So say no if there are warnings
8061
if test -s conftest.err; then
8062
# Append any errors to the config.log.
8063
cat conftest.err 1>&5
8064
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8065
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8066
if diff conftest.exp conftest.er2 >/dev/null; then
8067
lt_cv_prog_compiler_static_works=yes
8070
lt_cv_prog_compiler_static_works=yes
8074
LDFLAGS="$save_LDFLAGS"
8077
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8078
echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
8080
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8083
lt_prog_compiler_static=
8087
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8088
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8089
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8090
echo $ECHO_N "(cached) $ECHO_C" >&6
8092
lt_cv_prog_compiler_c_o=no
8093
$rm -r conftest 2>/dev/null
8097
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8099
lt_compiler_flag="-o out/conftest2.$ac_objext"
8100
# Insert the option either (1) after the last *FLAGS variable, or
8101
# (2) before a word containing "conftest.", or (3) at the end.
8102
# Note that $ac_compile itself does not contain backslashes and begins
8103
# with a dollar sign (not a hyphen), so the echo should work correctly.
8104
lt_compile=`echo "$ac_compile" | $SED \
8105
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8106
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8107
-e 's:$: $lt_compiler_flag:'`
8108
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
8109
(eval "$lt_compile" 2>out/conftest.err)
8111
cat out/conftest.err >&5
8112
echo "$as_me:__oline__: \$? = $ac_status" >&5
8113
if (exit $ac_status) && test -s out/conftest2.$ac_objext
8115
# The compiler can only warn and ignore the option if not recognized
8116
# So say no if there are warnings
8117
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8118
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8119
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8120
lt_cv_prog_compiler_c_o=yes
8125
# SGI C++ compiler will create directory out/ii_files/ for
8126
# template instantiation
8127
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8128
$rm out/* && rmdir out
8134
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8135
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8138
hard_links="nottested"
8139
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8140
# do not overwrite the value of need_locks provided by the user
8141
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8142
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8145
ln conftest.a conftest.b 2>/dev/null && hard_links=no
8147
ln conftest.a conftest.b 2>&5 || hard_links=no
8148
ln conftest.a conftest.b 2>/dev/null && hard_links=no
8149
{ echo "$as_me:$LINENO: result: $hard_links" >&5
8150
echo "${ECHO_T}$hard_links" >&6; }
8151
if test "$hard_links" = no; then
8152
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8153
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8160
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8161
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8164
allow_undefined_flag=
8165
enable_shared_with_static_runtimes=no
8167
archive_expsym_cmds=
8168
old_archive_From_new_cmds=
8169
old_archive_from_expsyms_cmds=
8170
export_dynamic_flag_spec=
8171
whole_archive_flag_spec=
8172
thread_safe_flag_spec=
8173
hardcode_libdir_flag_spec=
8174
hardcode_libdir_flag_spec_ld=
8175
hardcode_libdir_separator=
8178
hardcode_shlibpath_var=unsupported
8179
link_all_deplibs=unknown
8180
hardcode_automatic=no
8183
always_export_symbols=no
8184
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8185
# include_expsyms should be a list of space-separated symbols to be *always*
8186
# included in the symbol list
8188
# exclude_expsyms can be an extended regexp of symbols to exclude
8189
# it will be wrapped by ` (' and `)$', so one must not match beginning or
8190
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8191
# as well as any symbol that contains `d'.
8192
exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8193
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8194
# platforms (ab)use it in PIC code, but their linkers get confused if
8195
# the symbol is explicitly referenced. Since portable code cannot
8196
# rely on this symbol name, it's probably fine to never include it in
8197
# preloaded symbol tables.
8198
# Exclude shared library initialization/finalization symbols.
8199
extract_expsyms_cmds=
8200
# Just being paranoid about ensuring that cc_basename is set.
8201
for cc_temp in $compiler""; do
8203
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8204
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8209
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8212
cygwin* | mingw* | pw32*)
8213
# FIXME: the MSVC++ port hasn't been tested in a loooong time
8214
# When not using gcc, we currently assume that we are using
8215
# Microsoft Visual C++.
8216
if test "$GCC" != yes; then
8221
# we just hope/assume this is gcc and not c89 (= MSVC++)
8230
if test "$with_gnu_ld" = yes; then
8231
# If archive_cmds runs LD, not CC, wlarc should be empty
8234
# Set some defaults for GNU ld with shared library support. These
8235
# are reset later if shared libraries are not supported. Putting them
8236
# here allows them to be overridden if necessary.
8237
runpath_var=LD_RUN_PATH
8238
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8239
export_dynamic_flag_spec='${wl}--export-dynamic'
8240
# ancient GNU ld didn't support --whole-archive et. al.
8241
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8242
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8244
whole_archive_flag_spec=
8246
supports_anon_versioning=no
8247
case `$LD -v 2>/dev/null` in
8248
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8249
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8250
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8251
*\ 2.11.*) ;; # other 2.11 versions
8252
*) supports_anon_versioning=yes ;;
8255
# See if GNU ld supports shared libraries.
8258
# On AIX/PPC, the GNU linker is very broken
8259
if test "$host_cpu" != ia64; then
8263
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8264
*** to be unable to reliably create shared libraries on AIX.
8265
*** Therefore, libtool is disabling shared libraries support. If you
8266
*** really care for shared libraries, you may want to modify your PATH
8267
*** so that a non-GNU linker is found, and then restart.
8274
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)'
8275
hardcode_libdir_flag_spec='-L$libdir'
8276
hardcode_minus_L=yes
8278
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8279
# that the semantics of dynamic libraries on AmigaOS, at least up
8280
# to version 4, is to share data among multiple programs linked
8281
# with the same dynamic library. Since this doesn't match the
8282
# behavior of shared libraries on other platforms, we can't use
8288
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8289
allow_undefined_flag=unsupported
8290
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8291
# support --undefined. This deserves some investigation. FIXME
8292
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8298
cygwin* | mingw* | pw32*)
8299
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8300
# as there is no search path for DLLs.
8301
hardcode_libdir_flag_spec='-L$libdir'
8302
allow_undefined_flag=unsupported
8303
always_export_symbols=no
8304
enable_shared_with_static_runtimes=yes
8305
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8307
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8308
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8309
# If the export-symbols file already is a .def file (1st line
8310
# is EXPORTS), use it as is; otherwise, prepend...
8311
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8312
cp $export_symbols $output_objdir/$soname.def;
8314
echo EXPORTS > $output_objdir/$soname.def;
8315
cat $export_symbols >> $output_objdir/$soname.def;
8317
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8325
hardcode_shlibpath_var=no
8326
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8327
export_dynamic_flag_spec='${wl}-E'
8328
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8329
# Instead, shared libraries are loaded at an image base (0x10000000 by
8330
# default) and relocated if they conflict, which is a slow very memory
8331
# consuming and fragmenting process. To avoid this, we pick a random,
8332
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8333
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
8334
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8335
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'
8338
gnu* | linux* | k*bsd*-gnu)
8339
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8341
case $cc_basename,$host_cpu in
8342
pgcc*) # Portland Group C compiler
8343
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'
8344
tmp_addflag=' $pic_flag'
8346
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8347
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'
8348
tmp_addflag=' $pic_flag -Mnomain' ;;
8349
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8350
tmp_addflag=' -i_dynamic' ;;
8351
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8352
tmp_addflag=' -i_dynamic -nofor_main' ;;
8353
ifc* | ifort*) # Intel Fortran compiler
8354
tmp_addflag=' -nofor_main' ;;
8356
case `$CC -V 2>&1 | sed 5q` in
8357
*Sun\ C*) # Sun C 5.9
8358
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'
8359
tmp_sharedflag='-G' ;;
8360
*Sun\ F*) # Sun Fortran 8.3
8361
tmp_sharedflag='-G' ;;
8363
tmp_sharedflag='-shared' ;;
8365
archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8367
if test $supports_anon_versioning = yes; then
8368
archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8369
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8370
$echo "local: *; };" >> $output_objdir/$libname.ver~
8371
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8379
netbsd* | netbsdelf*-gnu)
8380
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8381
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8384
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8385
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8390
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8394
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8395
*** create shared libraries on Solaris systems. Therefore, libtool
8396
*** is disabling shared libraries support. We urge you to upgrade GNU
8397
*** binutils to release 2.9.1 or newer. Another option is to modify
8398
*** your PATH or compiler configuration so that the native linker is
8399
*** used, and then restart.
8402
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8403
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8404
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8410
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8411
case `$LD -v 2>&1` in
8412
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8416
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8417
*** reliably create shared libraries on SCO systems. Therefore, libtool
8418
*** is disabling shared libraries support. We urge you to upgrade GNU
8419
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8420
*** your PATH or compiler configuration so that the native linker is
8421
*** used, and then restart.
8426
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8427
hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8428
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8429
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8438
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8441
hardcode_shlibpath_var=no
8445
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8446
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8447
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8454
if test "$ld_shlibs" = no; then
8456
hardcode_libdir_flag_spec=
8457
export_dynamic_flag_spec=
8458
whole_archive_flag_spec=
8461
# PORTME fill in a description of your system's linker (not GNU ld)
8464
allow_undefined_flag=unsupported
8465
always_export_symbols=yes
8466
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'
8467
# Note: this linker hardcodes the directories in LIBPATH if there
8468
# are no directories specified by -L.
8469
hardcode_minus_L=yes
8470
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8471
# Neither direct hardcoding nor static linking is supported with a
8473
hardcode_direct=unsupported
8478
if test "$host_cpu" = ia64; then
8479
# On IA64, the linker does run time linking by default, so we don't
8480
# have to do anything special.
8481
aix_use_runtimelinking=no
8482
exp_sym_flag='-Bexport'
8485
# If we're using GNU nm, then we don't want the "-C" option.
8486
# -C means demangle to AIX nm, but means don't demangle with GNU nm
8487
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8488
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'
8490
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'
8492
aix_use_runtimelinking=no
8494
# Test if we are trying to use run time linking or normal
8495
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8496
# need to do runtime linking.
8497
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8498
for ld_flag in $LDFLAGS; do
8499
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8500
aix_use_runtimelinking=yes
8507
exp_sym_flag='-bexport'
8508
no_entry_flag='-bnoentry'
8511
# When large executables or shared objects are built, AIX ld can
8512
# have problems creating the table of contents. If linking a library
8513
# or program results in "error TOC overflow" add -mminimal-toc to
8514
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8515
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8519
hardcode_libdir_separator=':'
8520
link_all_deplibs=yes
8522
if test "$GCC" = yes; then
8523
case $host_os in aix4.[012]|aix4.[012].*)
8524
# We only want to do this on AIX 4.2 and lower, the check
8525
# below for broken collect2 doesn't work under 4.3+
8526
collect2name=`${CC} -print-prog-name=collect2`
8527
if test -f "$collect2name" && \
8528
strings "$collect2name" | grep resolve_lib_name >/dev/null
8530
# We have reworked collect2
8533
# We have old collect2
8534
hardcode_direct=unsupported
8535
# It fails to find uninstalled libraries when the uninstalled
8536
# path is not listed in the libpath. Setting hardcode_minus_L
8537
# to unsupported forces relinking
8538
hardcode_minus_L=yes
8539
hardcode_libdir_flag_spec='-L$libdir'
8540
hardcode_libdir_separator=
8544
shared_flag='-shared'
8545
if test "$aix_use_runtimelinking" = yes; then
8546
shared_flag="$shared_flag "'${wl}-G'
8550
if test "$host_cpu" = ia64; then
8551
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8552
# chokes on -Wl,-G. The following line is correct:
8555
if test "$aix_use_runtimelinking" = yes; then
8556
shared_flag='${wl}-G'
8558
shared_flag='${wl}-bM:SRE'
8563
# It seems that -bexpall does not export symbols beginning with
8564
# underscore (_), so it is better to generate a list of symbols to export.
8565
always_export_symbols=yes
8566
if test "$aix_use_runtimelinking" = yes; then
8567
# Warning - without using the other runtime loading flags (-brtl),
8568
# -berok will link without error, but may produce a broken library.
8569
allow_undefined_flag='-berok'
8570
# Determine the default libpath from the value encoded in an empty executable.
8571
cat >conftest.$ac_ext <<_ACEOF
8574
cat confdefs.h >>conftest.$ac_ext
8575
cat >>conftest.$ac_ext <<_ACEOF
8576
/* end confdefs.h. */
8586
rm -f conftest.$ac_objext conftest$ac_exeext
8587
if { (ac_try="$ac_link"
8589
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8590
*) ac_try_echo=$ac_try;;
8592
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8593
(eval "$ac_link") 2>conftest.er1
8595
grep -v '^ *+' conftest.er1 >conftest.err
8597
cat conftest.err >&5
8598
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8599
(exit $ac_status); } && {
8600
test -z "$ac_c_werror_flag" ||
8601
test ! -s conftest.err
8602
} && test -s conftest$ac_exeext &&
8603
$as_test_x conftest$ac_exeext; then
8605
lt_aix_libpath_sed='
8606
/Import File Strings/,/^$/ {
8612
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8613
# Check for a 64-bit object if we didn't find anything.
8614
if test -z "$aix_libpath"; then
8615
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8618
echo "$as_me: failed program was:" >&5
8619
sed 's/^/| /' conftest.$ac_ext >&5
8624
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8625
conftest$ac_exeext conftest.$ac_ext
8626
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8628
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8629
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"
8631
if test "$host_cpu" = ia64; then
8632
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8633
allow_undefined_flag="-z nodefs"
8634
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"
8636
# Determine the default libpath from the value encoded in an empty executable.
8637
cat >conftest.$ac_ext <<_ACEOF
8640
cat confdefs.h >>conftest.$ac_ext
8641
cat >>conftest.$ac_ext <<_ACEOF
8642
/* end confdefs.h. */
8652
rm -f conftest.$ac_objext conftest$ac_exeext
8653
if { (ac_try="$ac_link"
8655
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8656
*) ac_try_echo=$ac_try;;
8658
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8659
(eval "$ac_link") 2>conftest.er1
8661
grep -v '^ *+' conftest.er1 >conftest.err
8663
cat conftest.err >&5
8664
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8665
(exit $ac_status); } && {
8666
test -z "$ac_c_werror_flag" ||
8667
test ! -s conftest.err
8668
} && test -s conftest$ac_exeext &&
8669
$as_test_x conftest$ac_exeext; then
8671
lt_aix_libpath_sed='
8672
/Import File Strings/,/^$/ {
8678
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8679
# Check for a 64-bit object if we didn't find anything.
8680
if test -z "$aix_libpath"; then
8681
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8684
echo "$as_me: failed program was:" >&5
8685
sed 's/^/| /' conftest.$ac_ext >&5
8690
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8691
conftest$ac_exeext conftest.$ac_ext
8692
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8694
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8695
# Warning - without using the other run time loading flags,
8696
# -berok will link without error, but may produce a broken library.
8697
no_undefined_flag=' ${wl}-bernotok'
8698
allow_undefined_flag=' ${wl}-berok'
8699
# Exported symbols can be pulled into shared objects from archives
8700
whole_archive_flag_spec='$convenience'
8701
archive_cmds_need_lc=yes
8702
# This is similar to how AIX traditionally builds its shared libraries.
8703
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'
8709
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)'
8710
hardcode_libdir_flag_spec='-L$libdir'
8711
hardcode_minus_L=yes
8712
# see comment about different semantics on the GNU ld section
8717
export_dynamic_flag_spec=-rdynamic
8720
cygwin* | mingw* | pw32*)
8721
# When not using gcc, we currently assume that we are using
8722
# Microsoft Visual C++.
8723
# hardcode_libdir_flag_spec is actually meaningless, as there is
8724
# no search path for DLLs.
8725
hardcode_libdir_flag_spec=' '
8726
allow_undefined_flag=unsupported
8727
# Tell ltmain to make .lib files, not .a files.
8729
# Tell ltmain to make .dll files, not .so files.
8731
# FIXME: Setting linknames here is a bad hack.
8732
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8733
# The linker will automatically build a .lib file if we build a DLL.
8734
old_archive_From_new_cmds='true'
8735
# FIXME: Should let the user specify the lib program.
8736
old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8737
fix_srcfile_path='`cygpath -w "$srcfile"`'
8738
enable_shared_with_static_runtimes=yes
8741
darwin* | rhapsody*)
8743
rhapsody* | darwin1.[012])
8744
allow_undefined_flag='${wl}-undefined ${wl}suppress'
8747
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8748
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8750
case ${MACOSX_DEPLOYMENT_TARGET} in
8752
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8755
allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8761
archive_cmds_need_lc=no
8763
hardcode_automatic=yes
8764
hardcode_shlibpath_var=unsupported
8765
whole_archive_flag_spec=''
8766
link_all_deplibs=yes
8767
if test "$GCC" = yes ; then
8768
output_verbose_link_cmd='echo'
8769
archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8770
module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8771
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}"
8772
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}"
8774
case $cc_basename in
8776
output_verbose_link_cmd='echo'
8777
archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8778
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8779
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8780
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}'
8781
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}'
8791
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8792
hardcode_libdir_flag_spec='-L$libdir'
8793
hardcode_shlibpath_var=no
8800
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8801
# support. Future versions do this automatically, but an explicit c++rt0.o
8802
# does not break anything, and helps significantly (at the cost of a little
8805
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8806
hardcode_libdir_flag_spec='-R$libdir'
8808
hardcode_shlibpath_var=no
8811
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
8813
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8815
hardcode_minus_L=yes
8816
hardcode_shlibpath_var=no
8819
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8820
freebsd* | dragonfly*)
8821
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8822
hardcode_libdir_flag_spec='-R$libdir'
8824
hardcode_shlibpath_var=no
8828
if test "$GCC" = yes; then
8829
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'
8831
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'
8833
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8834
hardcode_libdir_separator=:
8837
# hardcode_minus_L: Not really in the search PATH,
8838
# but as the default location of the library.
8839
hardcode_minus_L=yes
8840
export_dynamic_flag_spec='${wl}-E'
8844
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8845
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8847
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8849
if test "$with_gnu_ld" = no; then
8850
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8851
hardcode_libdir_separator=:
8854
export_dynamic_flag_spec='${wl}-E'
8856
# hardcode_minus_L: Not really in the search PATH,
8857
# but as the default location of the library.
8858
hardcode_minus_L=yes
8863
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8866
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8869
archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8872
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8878
archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8881
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8884
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8888
if test "$with_gnu_ld" = no; then
8889
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8890
hardcode_libdir_separator=:
8894
hardcode_libdir_flag_spec_ld='+b $libdir'
8896
hardcode_shlibpath_var=no
8900
export_dynamic_flag_spec='${wl}-E'
8902
# hardcode_minus_L: Not really in the search PATH,
8903
# but as the default location of the library.
8904
hardcode_minus_L=yes
8910
irix5* | irix6* | nonstopux*)
8911
if test "$GCC" = yes; then
8912
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'
8914
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'
8915
hardcode_libdir_flag_spec_ld='-rpath $libdir'
8917
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8918
hardcode_libdir_separator=:
8919
link_all_deplibs=yes
8922
netbsd* | netbsdelf*-gnu)
8923
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8924
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8926
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8928
hardcode_libdir_flag_spec='-R$libdir'
8930
hardcode_shlibpath_var=no
8934
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8936
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8937
hardcode_libdir_separator=:
8938
hardcode_shlibpath_var=no
8942
if test -f /usr/libexec/ld.so; then
8944
hardcode_shlibpath_var=no
8945
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8946
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8947
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8948
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8949
export_dynamic_flag_spec='${wl}-E'
8952
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8953
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8954
hardcode_libdir_flag_spec='-R$libdir'
8957
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8958
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8968
hardcode_libdir_flag_spec='-L$libdir'
8969
hardcode_minus_L=yes
8970
allow_undefined_flag=unsupported
8971
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'
8972
old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8976
if test "$GCC" = yes; then
8977
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8978
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'
8980
allow_undefined_flag=' -expect_unresolved \*'
8981
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'
8983
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8984
hardcode_libdir_separator=:
8987
osf4* | osf5*) # as osf3* with the addition of -msym flag
8988
if test "$GCC" = yes; then
8989
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8990
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'
8991
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8993
allow_undefined_flag=' -expect_unresolved \*'
8994
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'
8995
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8996
$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'
8998
# Both c and cxx compiler support -rpath directly
8999
hardcode_libdir_flag_spec='-rpath $libdir'
9001
hardcode_libdir_separator=:
9005
no_undefined_flag=' -z text'
9006
if test "$GCC" = yes; then
9008
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9009
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9010
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9013
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9014
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9015
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9017
hardcode_libdir_flag_spec='-R$libdir'
9018
hardcode_shlibpath_var=no
9020
solaris2.[0-5] | solaris2.[0-5].*) ;;
9022
# The compiler driver will combine and reorder linker options,
9023
# but understands `-z linker_flag'. GCC discards it without `$wl',
9024
# but is careful enough not to reorder.
9025
# Supported since Solaris 2.6 (maybe 2.5.1?)
9026
if test "$GCC" = yes; then
9027
whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9029
whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9033
link_all_deplibs=yes
9037
if test "x$host_vendor" = xsequent; then
9038
# Use $CC to link under sequent, because it throws in some extra .o
9039
# files that make .init and .fini sections work.
9040
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9042
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9044
hardcode_libdir_flag_spec='-L$libdir'
9046
hardcode_minus_L=yes
9047
hardcode_shlibpath_var=no
9051
case $host_vendor in
9053
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9054
hardcode_direct=yes # is this really true???
9057
## LD is ld it makes a PLAMLIB
9058
## CC just makes a GrossModule.
9059
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9060
reload_cmds='$CC -r -o $output$reload_objs'
9064
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9065
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9068
runpath_var='LD_RUN_PATH'
9069
hardcode_shlibpath_var=no
9073
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9074
hardcode_shlibpath_var=no
9075
export_dynamic_flag_spec='-Bexport'
9079
if test -d /usr/nec; then
9080
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9081
hardcode_shlibpath_var=no
9082
runpath_var=LD_RUN_PATH
9083
hardcode_runpath_var=yes
9088
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9089
no_undefined_flag='${wl}-z,text'
9090
archive_cmds_need_lc=no
9091
hardcode_shlibpath_var=no
9092
runpath_var='LD_RUN_PATH'
9094
if test "$GCC" = yes; then
9095
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9096
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9098
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9099
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9103
sysv5* | sco3.2v5* | sco5v6*)
9104
# Note: We can NOT use -z defs as we might desire, because we do not
9105
# link with -lc, and that would cause any symbols used from libc to
9106
# always be unresolved, which means just about no library would
9107
# ever link correctly. If we're not using GNU ld we use -z text
9108
# though, which does catch some bad symbols but isn't as heavy-handed
9110
no_undefined_flag='${wl}-z,text'
9111
allow_undefined_flag='${wl}-z,nodefs'
9112
archive_cmds_need_lc=no
9113
hardcode_shlibpath_var=no
9114
hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9115
hardcode_libdir_separator=':'
9116
link_all_deplibs=yes
9117
export_dynamic_flag_spec='${wl}-Bexport'
9118
runpath_var='LD_RUN_PATH'
9120
if test "$GCC" = yes; then
9121
archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9122
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9124
archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9125
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9130
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9131
hardcode_libdir_flag_spec='-L$libdir'
9132
hardcode_shlibpath_var=no
9141
{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9142
echo "${ECHO_T}$ld_shlibs" >&6; }
9143
test "$ld_shlibs" = no && can_build_shared=no
9146
# Do we need to explicitly link libc?
9148
case "x$archive_cmds_need_lc" in
9150
# Assume -lc should be added
9151
archive_cmds_need_lc=yes
9153
if test "$enable_shared" = yes && test "$GCC" = yes; then
9154
case $archive_cmds in
9156
# FIXME: we may have to deal with multi-command sequences.
9159
# Test whether the compiler implicitly links with -lc since on some
9160
# systems, -lgcc has to come before -lc. If gcc already passes -lc
9161
# to ld, don't add -lc before -lgcc.
9162
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9163
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9165
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9167
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9168
(eval $ac_compile) 2>&5
9170
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9171
(exit $ac_status); } 2>conftest.err; then
9174
libobjs=conftest.$ac_objext
9176
wl=$lt_prog_compiler_wl
9177
pic_flag=$lt_prog_compiler_pic
9183
lt_save_allow_undefined_flag=$allow_undefined_flag
9184
allow_undefined_flag=
9185
if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9186
(eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9188
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9189
(exit $ac_status); }
9191
archive_cmds_need_lc=no
9193
archive_cmds_need_lc=yes
9195
allow_undefined_flag=$lt_save_allow_undefined_flag
9197
cat conftest.err 1>&5
9200
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9201
echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9208
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9209
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9211
libname_spec='lib$name'
9219
shlibpath_overrides_runpath=unknown
9221
dynamic_linker="$host_os ld.so"
9222
sys_lib_dlsearch_path_spec="/lib /usr/lib"
9224
if test "$GCC" = yes; then
9226
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9227
*) lt_awk_arg="/^libraries:/" ;;
9229
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9230
if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9231
# if the path contains ";" then we assume it to be the separator
9232
# otherwise default to the standard path separator (i.e. ":") - it is
9233
# assumed that no part of a normal pathname contains ";" but that should
9234
# okay in the real world where ";" in dirpaths is itself problematic.
9235
lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9237
lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9239
# Ok, now we have the path, separated by spaces, we can step through it
9240
# and add multilib dir if necessary.
9241
lt_tmp_lt_search_path_spec=
9242
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9243
for lt_sys_path in $lt_search_path_spec; do
9244
if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9245
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9247
test -d "$lt_sys_path" && \
9248
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9251
lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9252
BEGIN {RS=" "; FS="/|\n";} {
9255
for (lt_i = NF; lt_i > 0; lt_i--) {
9256
if ($lt_i != "" && $lt_i != ".") {
9257
if ($lt_i == "..") {
9260
if (lt_count == 0) {
9261
lt_foo="/" $lt_i lt_foo;
9268
if (lt_foo != "") { lt_freq[lt_foo]++; }
9269
if (lt_freq[lt_foo] == 1) { print lt_foo; }
9271
sys_lib_search_path_spec=`echo $lt_search_path_spec`
9273
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9275
need_lib_prefix=unknown
9276
hardcode_into_libs=no
9278
# when you set need_version to no, make sure it does not cause -set_version
9279
# flags to be left without arguments
9280
need_version=unknown
9285
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9286
shlibpath_var=LIBPATH
9288
# AIX 3 has no versioning support, so we append a major version to the name.
9289
soname_spec='${libname}${release}${shared_ext}$major'
9296
hardcode_into_libs=yes
9297
if test "$host_cpu" = ia64; then
9298
# AIX 5 supports IA64
9299
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9300
shlibpath_var=LD_LIBRARY_PATH
9302
# With GCC up to 2.95.x, collect2 would create an import file
9303
# for dependence libraries. The import file would start with
9304
# the line `#! .'. This would cause the generated library to
9305
# depend on `.', always an invalid library. This was fixed in
9306
# development snapshots of GCC prior to 3.0.
9308
aix4 | aix4.[01] | aix4.[01].*)
9309
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9311
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9318
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9319
# soname into executable. Probably we can add versioning support to
9320
# collect2, so additional links can be useful in future.
9321
if test "$aix_use_runtimelinking" = yes; then
9322
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
9323
# instead of lib<name>.a to let people know that these are not
9324
# typical AIX shared libraries.
9325
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9327
# We preserve .a as extension for shared libraries through AIX4.2
9328
# and later when we are not doing run time linking.
9329
library_names_spec='${libname}${release}.a $libname.a'
9330
soname_spec='${libname}${release}${shared_ext}$major'
9332
shlibpath_var=LIBPATH
9337
library_names_spec='$libname.ixlibrary $libname.a'
9338
# Create ${libname}_ixlibrary.a entries in /sys/libs.
9339
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'
9343
library_names_spec='${libname}${shared_ext}'
9344
dynamic_linker="$host_os ld.so"
9345
shlibpath_var=LIBRARY_PATH
9351
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9352
soname_spec='${libname}${release}${shared_ext}$major'
9353
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9354
shlibpath_var=LD_LIBRARY_PATH
9355
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9356
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9357
# the default ld.so.conf also contains /usr/contrib/lib and
9358
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9359
# libtool to hard-code these into programs
9362
cygwin* | mingw* | pw32*)
9363
version_type=windows
9368
case $GCC,$host_os in
9369
yes,cygwin* | yes,mingw* | yes,pw32*)
9370
library_names_spec='$libname.dll.a'
9371
# DLL is installed to $(libdir)/../bin by postinstall_cmds
9372
postinstall_cmds='base_file=`basename \${file}`~
9373
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9374
dldir=$destdir/`dirname \$dlpath`~
9375
test -d \$dldir || mkdir -p \$dldir~
9376
$install_prog $dir/$dlname \$dldir/$dlname~
9377
chmod a+x \$dldir/$dlname'
9378
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9379
dlpath=$dir/\$dldll~
9381
shlibpath_overrides_runpath=yes
9385
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
9386
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9387
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9390
# MinGW DLLs use traditional 'lib' prefix
9391
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9392
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9393
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9394
# It is most probably a Windows format PATH printed by
9395
# mingw gcc, but we are running on Cygwin. Gcc prints its search
9396
# path with ; separators, and with drive letters. We can handle the
9397
# drive letters (cygwin fileutils understands them), so leave them,
9398
# especially as we might pass files found there to a mingw objdump,
9399
# which wouldn't understand a cygwinified path. Ahh.
9400
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9402
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9406
# pw32 DLLs use 'pw' prefix rather than 'lib'
9407
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9413
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9416
dynamic_linker='Win32 ld.exe'
9417
# FIXME: first we should search . and the directory the executable is in
9421
darwin* | rhapsody*)
9422
dynamic_linker="$host_os dyld"
9426
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9427
soname_spec='${libname}${release}${major}$shared_ext'
9428
shlibpath_overrides_runpath=yes
9429
shlibpath_var=DYLD_LIBRARY_PATH
9430
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9432
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9433
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9440
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9441
soname_spec='${libname}${release}${shared_ext}$major'
9442
shlibpath_var=LD_LIBRARY_PATH
9449
freebsd* | dragonfly*)
9450
# DragonFly does not have aout. When/if they implement a new
9451
# versioning mechanism, adjust this.
9452
if test -x /usr/bin/objformat; then
9453
objformat=`/usr/bin/objformat`
9456
freebsd[123]*) objformat=aout ;;
9460
version_type=freebsd-$objformat
9461
case $version_type in
9463
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9468
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9472
shlibpath_var=LD_LIBRARY_PATH
9475
shlibpath_overrides_runpath=yes
9477
freebsd3.[01]* | freebsdelf3.[01]*)
9478
shlibpath_overrides_runpath=yes
9479
hardcode_into_libs=yes
9481
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9482
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9483
shlibpath_overrides_runpath=no
9484
hardcode_into_libs=yes
9486
*) # from 4.6 on, and DragonFly
9487
shlibpath_overrides_runpath=yes
9488
hardcode_into_libs=yes
9497
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9498
soname_spec='${libname}${release}${shared_ext}$major'
9499
shlibpath_var=LD_LIBRARY_PATH
9500
hardcode_into_libs=yes
9503
hpux9* | hpux10* | hpux11*)
9504
# Give a soname corresponding to the major version so that dld.sl refuses to
9505
# link against other versions.
9512
hardcode_into_libs=yes
9513
dynamic_linker="$host_os dld.so"
9514
shlibpath_var=LD_LIBRARY_PATH
9515
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9516
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9517
soname_spec='${libname}${release}${shared_ext}$major'
9518
if test "X$HPUX_IA64_MODE" = X32; then
9519
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9521
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9523
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9527
hardcode_into_libs=yes
9528
dynamic_linker="$host_os dld.sl"
9529
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9530
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9531
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9532
soname_spec='${libname}${release}${shared_ext}$major'
9533
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9534
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9538
dynamic_linker="$host_os dld.sl"
9539
shlibpath_var=SHLIB_PATH
9540
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9541
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9542
soname_spec='${libname}${release}${shared_ext}$major'
9545
# HP-UX runs *really* slowly unless shared libraries are mode 555.
9546
postinstall_cmds='chmod 555 $lib'
9553
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9554
soname_spec='${libname}${release}${shared_ext}$major'
9555
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9556
shlibpath_var=LD_LIBRARY_PATH
9557
shlibpath_overrides_runpath=no
9558
hardcode_into_libs=yes
9561
irix5* | irix6* | nonstopux*)
9563
nonstopux*) version_type=nonstopux ;;
9565
if test "$lt_cv_prog_gnu_ld" = yes; then
9573
soname_spec='${libname}${release}${shared_ext}$major'
9574
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9576
irix5* | nonstopux*)
9580
case $LD in # libtool.m4 will add one of these switches to LD
9581
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9582
libsuff= shlibsuff= libmagic=32-bit;;
9583
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9584
libsuff=32 shlibsuff=N32 libmagic=N32;;
9585
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9586
libsuff=64 shlibsuff=64 libmagic=64-bit;;
9587
*) libsuff= shlibsuff= libmagic=never-match;;
9591
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9592
shlibpath_overrides_runpath=no
9593
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9594
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9595
hardcode_into_libs=yes
9598
# No shared lib support for Linux oldld, aout, or coff.
9599
linux*oldld* | linux*aout* | linux*coff*)
9603
# This must be Linux ELF.
9604
linux* | k*bsd*-gnu)
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
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9611
shlibpath_var=LD_LIBRARY_PATH
9612
shlibpath_overrides_runpath=no
9613
# This implies no fast_install, which is unacceptable.
9614
# Some rework will be needed to allow for fast_install
9615
# before this can be enabled.
9616
hardcode_into_libs=yes
9618
# Append ld.so.conf contents to the search path
9619
if test -f /etc/ld.so.conf; then
9620
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' ' '`
9621
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9624
# We used to test for /lib/ld.so.1 and disable shared libraries on
9625
# powerpc, because MkLinux only supported shared libraries with the
9626
# GNU dynamic linker. Since this was broken with cross compilers,
9627
# most powerpc-linux boxes support dynamic linking these days and
9628
# people can always --disable-shared, the test was removed, and we
9629
# assume the GNU/Linux dynamic linker is in use.
9630
dynamic_linker='GNU/Linux ld.so'
9637
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9638
soname_spec='${libname}${release}${shared_ext}$major'
9639
shlibpath_var=LD_LIBRARY_PATH
9640
shlibpath_overrides_runpath=no
9641
hardcode_into_libs=yes
9642
dynamic_linker='NetBSD ld.elf_so'
9649
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9650
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9651
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9652
dynamic_linker='NetBSD (a.out) ld.so'
9654
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9655
soname_spec='${libname}${release}${shared_ext}$major'
9656
dynamic_linker='NetBSD ld.elf_so'
9658
shlibpath_var=LD_LIBRARY_PATH
9659
shlibpath_overrides_runpath=yes
9660
hardcode_into_libs=yes
9665
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9666
shlibpath_var=LD_LIBRARY_PATH
9667
shlibpath_overrides_runpath=yes
9674
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9675
soname_spec='${libname}${release}${shared_ext}$major'
9676
shlibpath_var=LD_LIBRARY_PATH
9677
shlibpath_overrides_runpath=yes
9682
sys_lib_dlsearch_path_spec="/usr/lib"
9684
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9686
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9687
*) need_version=no ;;
9689
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9690
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9691
shlibpath_var=LD_LIBRARY_PATH
9692
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9694
openbsd2.[89] | openbsd2.[89].*)
9695
shlibpath_overrides_runpath=no
9698
shlibpath_overrides_runpath=yes
9702
shlibpath_overrides_runpath=yes
9707
libname_spec='$name'
9710
library_names_spec='$libname${shared_ext} $libname.a'
9711
dynamic_linker='OS/2 ld.exe'
9712
shlibpath_var=LIBPATH
9715
osf3* | osf4* | osf5*)
9719
soname_spec='${libname}${release}${shared_ext}$major'
9720
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9721
shlibpath_var=LD_LIBRARY_PATH
9722
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9723
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9734
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9735
soname_spec='${libname}${release}${shared_ext}$major'
9736
shlibpath_var=LD_LIBRARY_PATH
9737
shlibpath_overrides_runpath=yes
9738
hardcode_into_libs=yes
9739
# ldd complains unless libraries are executable
9740
postinstall_cmds='chmod +x $lib'
9745
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9746
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9747
shlibpath_var=LD_LIBRARY_PATH
9748
shlibpath_overrides_runpath=yes
9749
if test "$with_gnu_ld" = yes; then
9757
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9758
soname_spec='${libname}${release}${shared_ext}$major'
9759
shlibpath_var=LD_LIBRARY_PATH
9760
case $host_vendor in
9762
shlibpath_overrides_runpath=no
9764
export_dynamic_flag_spec='${wl}-Blargedynsym'
9765
runpath_var=LD_RUN_PATH
9773
shlibpath_overrides_runpath=no
9774
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9780
if test -d /usr/nec ;then
9782
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9783
soname_spec='$libname${shared_ext}.$major'
9784
shlibpath_var=LD_LIBRARY_PATH
9788
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9789
version_type=freebsd-elf
9792
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9793
soname_spec='${libname}${release}${shared_ext}$major'
9794
shlibpath_var=LD_LIBRARY_PATH
9795
hardcode_into_libs=yes
9796
if test "$with_gnu_ld" = yes; then
9797
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9798
shlibpath_overrides_runpath=no
9800
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9801
shlibpath_overrides_runpath=yes
9804
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9808
sys_lib_dlsearch_path_spec='/usr/lib'
9813
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9814
soname_spec='${libname}${release}${shared_ext}$major'
9815
shlibpath_var=LD_LIBRARY_PATH
9822
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9823
echo "${ECHO_T}$dynamic_linker" >&6; }
9824
test "$dynamic_linker" = no && can_build_shared=no
9826
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9827
echo $ECHO_N "(cached) $ECHO_C" >&6
9829
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9832
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9833
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9834
echo $ECHO_N "(cached) $ECHO_C" >&6
9836
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9839
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9841
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9842
if test "$GCC" = yes; then
9843
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9846
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9847
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9849
if test -n "$hardcode_libdir_flag_spec" || \
9850
test -n "$runpath_var" || \
9851
test "X$hardcode_automatic" = "Xyes" ; then
9853
# We can hardcode non-existant directories.
9854
if test "$hardcode_direct" != no &&
9855
# If the only mechanism to avoid hardcoding is shlibpath_var, we
9856
# have to relink, otherwise we might link with an installed library
9857
# when we should be linking with a yet-to-be-installed one
9858
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9859
test "$hardcode_minus_L" != no; then
9860
# Linking always hardcodes the temporary library directory.
9861
hardcode_action=relink
9863
# We can link without hardcoding, and we can hardcode nonexisting dirs.
9864
hardcode_action=immediate
9867
# We cannot hardcode anything, or else we can only hardcode existing
9869
hardcode_action=unsupported
9871
{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
9872
echo "${ECHO_T}$hardcode_action" >&6; }
9874
if test "$hardcode_action" = relink; then
9875
# Fast installation is not supported
9876
enable_fast_install=no
9877
elif test "$shlibpath_overrides_runpath" = yes ||
9878
test "$enable_shared" = no; then
9879
# Fast installation is not necessary
9880
enable_fast_install=needless
9885
{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9886
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9887
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9888
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9889
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9890
{ echo "$as_me:$LINENO: result: yes" >&5
9891
echo "${ECHO_T}yes" >&6; }
9893
# FIXME - insert some real tests, host_os isn't really good enough
9896
if test -n "$STRIP" ; then
9897
striplib="$STRIP -x"
9898
old_striplib="$STRIP -S"
9899
{ echo "$as_me:$LINENO: result: yes" >&5
9900
echo "${ECHO_T}yes" >&6; }
9902
{ echo "$as_me:$LINENO: result: no" >&5
9903
echo "${ECHO_T}no" >&6; }
9907
{ echo "$as_me:$LINENO: result: no" >&5
9908
echo "${ECHO_T}no" >&6; }
9913
if test "x$enable_dlopen" != xyes; then
9914
enable_dlopen=unknown
9915
enable_dlopen_self=unknown
9916
enable_dlopen_self_static=unknown
9923
lt_cv_dlopen="load_add_on"
9925
lt_cv_dlopen_self=yes
9929
lt_cv_dlopen="LoadLibrary"
9934
lt_cv_dlopen="dlopen"
9939
# if libdl is installed we need to link against it
9940
{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9941
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9942
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9943
echo $ECHO_N "(cached) $ECHO_C" >&6
9945
ac_check_lib_save_LIBS=$LIBS
9947
cat >conftest.$ac_ext <<_ACEOF
9950
cat confdefs.h >>conftest.$ac_ext
9951
cat >>conftest.$ac_ext <<_ACEOF
9952
/* end confdefs.h. */
9954
/* Override any GCC internal prototype to avoid an error.
9955
Use char because int might match the return type of a GCC
9956
builtin and then its argument prototype would still apply. */
9969
rm -f conftest.$ac_objext conftest$ac_exeext
9970
if { (ac_try="$ac_link"
9972
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9973
*) ac_try_echo=$ac_try;;
9975
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9976
(eval "$ac_link") 2>conftest.er1
9978
grep -v '^ *+' conftest.er1 >conftest.err
9980
cat conftest.err >&5
9981
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9982
(exit $ac_status); } && {
9983
test -z "$ac_c_werror_flag" ||
9984
test ! -s conftest.err
9985
} && test -s conftest$ac_exeext &&
9986
$as_test_x conftest$ac_exeext; then
9987
ac_cv_lib_dl_dlopen=yes
9989
echo "$as_me: failed program was:" >&5
9990
sed 's/^/| /' conftest.$ac_ext >&5
9992
ac_cv_lib_dl_dlopen=no
9995
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9996
conftest$ac_exeext conftest.$ac_ext
9997
LIBS=$ac_check_lib_save_LIBS
9999
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10000
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10001
if test $ac_cv_lib_dl_dlopen = yes; then
10002
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10005
lt_cv_dlopen="dyld"
10007
lt_cv_dlopen_self=yes
10014
{ echo "$as_me:$LINENO: checking for shl_load" >&5
10015
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10016
if test "${ac_cv_func_shl_load+set}" = set; then
10017
echo $ECHO_N "(cached) $ECHO_C" >&6
10019
cat >conftest.$ac_ext <<_ACEOF
10022
cat confdefs.h >>conftest.$ac_ext
10023
cat >>conftest.$ac_ext <<_ACEOF
10024
/* end confdefs.h. */
10025
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10026
For example, HP-UX 11i <limits.h> declares gettimeofday. */
10027
#define shl_load innocuous_shl_load
10029
/* System header to define __stub macros and hopefully few prototypes,
10030
which can conflict with char shl_load (); below.
10031
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10032
<limits.h> exists even on freestanding compilers. */
10035
# include <limits.h>
10037
# include <assert.h>
10042
/* Override any GCC internal prototype to avoid an error.
10043
Use char because int might match the return type of a GCC
10044
builtin and then its argument prototype would still apply. */
10049
/* The GNU C library defines this for functions which it implements
10050
to always fail with ENOSYS. Some functions are actually named
10051
something starting with __ and the normal name is an alias. */
10052
#if defined __stub_shl_load || defined __stub___shl_load
10059
return shl_load ();
10064
rm -f conftest.$ac_objext conftest$ac_exeext
10065
if { (ac_try="$ac_link"
10066
case "(($ac_try" in
10067
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10068
*) ac_try_echo=$ac_try;;
10070
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10071
(eval "$ac_link") 2>conftest.er1
10073
grep -v '^ *+' conftest.er1 >conftest.err
10075
cat conftest.err >&5
10076
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10077
(exit $ac_status); } && {
10078
test -z "$ac_c_werror_flag" ||
10079
test ! -s conftest.err
10080
} && test -s conftest$ac_exeext &&
10081
$as_test_x conftest$ac_exeext; then
10082
ac_cv_func_shl_load=yes
10084
echo "$as_me: failed program was:" >&5
10085
sed 's/^/| /' conftest.$ac_ext >&5
10087
ac_cv_func_shl_load=no
10090
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10091
conftest$ac_exeext conftest.$ac_ext
10093
{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10094
echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10095
if test $ac_cv_func_shl_load = yes; then
10096
lt_cv_dlopen="shl_load"
10098
{ echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10099
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10100
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10101
echo $ECHO_N "(cached) $ECHO_C" >&6
10103
ac_check_lib_save_LIBS=$LIBS
10105
cat >conftest.$ac_ext <<_ACEOF
10108
cat confdefs.h >>conftest.$ac_ext
10109
cat >>conftest.$ac_ext <<_ACEOF
10110
/* end confdefs.h. */
10112
/* Override any GCC internal prototype to avoid an error.
10113
Use char because int might match the return type of a GCC
10114
builtin and then its argument prototype would still apply. */
10122
return shl_load ();
10127
rm -f conftest.$ac_objext conftest$ac_exeext
10128
if { (ac_try="$ac_link"
10129
case "(($ac_try" in
10130
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10131
*) ac_try_echo=$ac_try;;
10133
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10134
(eval "$ac_link") 2>conftest.er1
10136
grep -v '^ *+' conftest.er1 >conftest.err
10138
cat conftest.err >&5
10139
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10140
(exit $ac_status); } && {
10141
test -z "$ac_c_werror_flag" ||
10142
test ! -s conftest.err
10143
} && test -s conftest$ac_exeext &&
10144
$as_test_x conftest$ac_exeext; then
10145
ac_cv_lib_dld_shl_load=yes
10147
echo "$as_me: failed program was:" >&5
10148
sed 's/^/| /' conftest.$ac_ext >&5
10150
ac_cv_lib_dld_shl_load=no
10153
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10154
conftest$ac_exeext conftest.$ac_ext
10155
LIBS=$ac_check_lib_save_LIBS
10157
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10158
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10159
if test $ac_cv_lib_dld_shl_load = yes; then
10160
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10162
{ echo "$as_me:$LINENO: checking for dlopen" >&5
10163
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10164
if test "${ac_cv_func_dlopen+set}" = set; then
10165
echo $ECHO_N "(cached) $ECHO_C" >&6
10167
cat >conftest.$ac_ext <<_ACEOF
10170
cat confdefs.h >>conftest.$ac_ext
10171
cat >>conftest.$ac_ext <<_ACEOF
10172
/* end confdefs.h. */
10173
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10174
For example, HP-UX 11i <limits.h> declares gettimeofday. */
10175
#define dlopen innocuous_dlopen
10177
/* System header to define __stub macros and hopefully few prototypes,
10178
which can conflict with char dlopen (); below.
10179
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10180
<limits.h> exists even on freestanding compilers. */
10183
# include <limits.h>
10185
# include <assert.h>
10190
/* Override any GCC internal prototype to avoid an error.
10191
Use char because int might match the return type of a GCC
10192
builtin and then its argument prototype would still apply. */
10197
/* The GNU C library defines this for functions which it implements
10198
to always fail with ENOSYS. Some functions are actually named
10199
something starting with __ and the normal name is an alias. */
10200
#if defined __stub_dlopen || defined __stub___dlopen
10212
rm -f conftest.$ac_objext conftest$ac_exeext
10213
if { (ac_try="$ac_link"
10214
case "(($ac_try" in
10215
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10216
*) ac_try_echo=$ac_try;;
10218
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10219
(eval "$ac_link") 2>conftest.er1
10221
grep -v '^ *+' conftest.er1 >conftest.err
10223
cat conftest.err >&5
10224
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10225
(exit $ac_status); } && {
10226
test -z "$ac_c_werror_flag" ||
10227
test ! -s conftest.err
10228
} && test -s conftest$ac_exeext &&
10229
$as_test_x conftest$ac_exeext; then
10230
ac_cv_func_dlopen=yes
10232
echo "$as_me: failed program was:" >&5
10233
sed 's/^/| /' conftest.$ac_ext >&5
10235
ac_cv_func_dlopen=no
10238
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10239
conftest$ac_exeext conftest.$ac_ext
10241
{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10242
echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10243
if test $ac_cv_func_dlopen = yes; then
10244
lt_cv_dlopen="dlopen"
10246
{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10247
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10248
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10249
echo $ECHO_N "(cached) $ECHO_C" >&6
10251
ac_check_lib_save_LIBS=$LIBS
10253
cat >conftest.$ac_ext <<_ACEOF
10256
cat confdefs.h >>conftest.$ac_ext
10257
cat >>conftest.$ac_ext <<_ACEOF
10258
/* end confdefs.h. */
10260
/* Override any GCC internal prototype to avoid an error.
10261
Use char because int might match the return type of a GCC
10262
builtin and then its argument prototype would still apply. */
10275
rm -f conftest.$ac_objext conftest$ac_exeext
10276
if { (ac_try="$ac_link"
10277
case "(($ac_try" in
10278
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10279
*) ac_try_echo=$ac_try;;
10281
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10282
(eval "$ac_link") 2>conftest.er1
10284
grep -v '^ *+' conftest.er1 >conftest.err
10286
cat conftest.err >&5
10287
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10288
(exit $ac_status); } && {
10289
test -z "$ac_c_werror_flag" ||
10290
test ! -s conftest.err
10291
} && test -s conftest$ac_exeext &&
10292
$as_test_x conftest$ac_exeext; then
10293
ac_cv_lib_dl_dlopen=yes
10295
echo "$as_me: failed program was:" >&5
10296
sed 's/^/| /' conftest.$ac_ext >&5
10298
ac_cv_lib_dl_dlopen=no
10301
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10302
conftest$ac_exeext conftest.$ac_ext
10303
LIBS=$ac_check_lib_save_LIBS
10305
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10306
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10307
if test $ac_cv_lib_dl_dlopen = yes; then
10308
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10310
{ echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10311
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10312
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10313
echo $ECHO_N "(cached) $ECHO_C" >&6
10315
ac_check_lib_save_LIBS=$LIBS
10316
LIBS="-lsvld $LIBS"
10317
cat >conftest.$ac_ext <<_ACEOF
10320
cat confdefs.h >>conftest.$ac_ext
10321
cat >>conftest.$ac_ext <<_ACEOF
10322
/* end confdefs.h. */
10324
/* Override any GCC internal prototype to avoid an error.
10325
Use char because int might match the return type of a GCC
10326
builtin and then its argument prototype would still apply. */
10339
rm -f conftest.$ac_objext conftest$ac_exeext
10340
if { (ac_try="$ac_link"
10341
case "(($ac_try" in
10342
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10343
*) ac_try_echo=$ac_try;;
10345
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10346
(eval "$ac_link") 2>conftest.er1
10348
grep -v '^ *+' conftest.er1 >conftest.err
10350
cat conftest.err >&5
10351
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10352
(exit $ac_status); } && {
10353
test -z "$ac_c_werror_flag" ||
10354
test ! -s conftest.err
10355
} && test -s conftest$ac_exeext &&
10356
$as_test_x conftest$ac_exeext; then
10357
ac_cv_lib_svld_dlopen=yes
10359
echo "$as_me: failed program was:" >&5
10360
sed 's/^/| /' conftest.$ac_ext >&5
10362
ac_cv_lib_svld_dlopen=no
10365
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10366
conftest$ac_exeext conftest.$ac_ext
10367
LIBS=$ac_check_lib_save_LIBS
10369
{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10370
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10371
if test $ac_cv_lib_svld_dlopen = yes; then
10372
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10374
{ echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10375
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10376
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10377
echo $ECHO_N "(cached) $ECHO_C" >&6
10379
ac_check_lib_save_LIBS=$LIBS
10381
cat >conftest.$ac_ext <<_ACEOF
10384
cat confdefs.h >>conftest.$ac_ext
10385
cat >>conftest.$ac_ext <<_ACEOF
10386
/* end confdefs.h. */
10388
/* Override any GCC internal prototype to avoid an error.
10389
Use char because int might match the return type of a GCC
10390
builtin and then its argument prototype would still apply. */
10398
return dld_link ();
10403
rm -f conftest.$ac_objext conftest$ac_exeext
10404
if { (ac_try="$ac_link"
10405
case "(($ac_try" in
10406
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10407
*) ac_try_echo=$ac_try;;
10409
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10410
(eval "$ac_link") 2>conftest.er1
10412
grep -v '^ *+' conftest.er1 >conftest.err
10414
cat conftest.err >&5
10415
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10416
(exit $ac_status); } && {
10417
test -z "$ac_c_werror_flag" ||
10418
test ! -s conftest.err
10419
} && test -s conftest$ac_exeext &&
10420
$as_test_x conftest$ac_exeext; then
10421
ac_cv_lib_dld_dld_link=yes
10423
echo "$as_me: failed program was:" >&5
10424
sed 's/^/| /' conftest.$ac_ext >&5
10426
ac_cv_lib_dld_dld_link=no
10429
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10430
conftest$ac_exeext conftest.$ac_ext
10431
LIBS=$ac_check_lib_save_LIBS
10433
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10434
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10435
if test $ac_cv_lib_dld_dld_link = yes; then
10436
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10457
if test "x$lt_cv_dlopen" != xno; then
10463
case $lt_cv_dlopen in
10465
save_CPPFLAGS="$CPPFLAGS"
10466
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10468
save_LDFLAGS="$LDFLAGS"
10469
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10472
LIBS="$lt_cv_dlopen_libs $LIBS"
10474
{ echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10475
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10476
if test "${lt_cv_dlopen_self+set}" = set; then
10477
echo $ECHO_N "(cached) $ECHO_C" >&6
10479
if test "$cross_compiling" = yes; then :
10480
lt_cv_dlopen_self=cross
10482
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10483
lt_status=$lt_dlunknown
10484
cat > conftest.$ac_ext <<EOF
10485
#line __oline__ "configure"
10486
#include "confdefs.h"
10495
# define LT_DLGLOBAL RTLD_GLOBAL
10498
# define LT_DLGLOBAL DL_GLOBAL
10500
# define LT_DLGLOBAL 0
10504
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10505
find out it does not work in some platform. */
10506
#ifndef LT_DLLAZY_OR_NOW
10508
# define LT_DLLAZY_OR_NOW RTLD_LAZY
10511
# define LT_DLLAZY_OR_NOW DL_LAZY
10514
# define LT_DLLAZY_OR_NOW RTLD_NOW
10517
# define LT_DLLAZY_OR_NOW DL_NOW
10519
# define LT_DLLAZY_OR_NOW 0
10527
extern "C" void exit (int);
10530
void fnord() { int i=42;}
10533
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10534
int status = $lt_dlunknown;
10538
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10539
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10540
/* dlclose (self); */
10548
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10549
(eval $ac_link) 2>&5
10551
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10552
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10553
(./conftest; exit; ) >&5 2>/dev/null
10555
case x$lt_status in
10556
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10557
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10558
x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10561
# compilation failed
10562
lt_cv_dlopen_self=no
10569
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10570
echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10572
if test "x$lt_cv_dlopen_self" = xyes; then
10573
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10574
{ echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10575
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10576
if test "${lt_cv_dlopen_self_static+set}" = set; then
10577
echo $ECHO_N "(cached) $ECHO_C" >&6
10579
if test "$cross_compiling" = yes; then :
10580
lt_cv_dlopen_self_static=cross
10582
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10583
lt_status=$lt_dlunknown
10584
cat > conftest.$ac_ext <<EOF
10585
#line __oline__ "configure"
10586
#include "confdefs.h"
10595
# define LT_DLGLOBAL RTLD_GLOBAL
10598
# define LT_DLGLOBAL DL_GLOBAL
10600
# define LT_DLGLOBAL 0
10604
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10605
find out it does not work in some platform. */
10606
#ifndef LT_DLLAZY_OR_NOW
10608
# define LT_DLLAZY_OR_NOW RTLD_LAZY
10611
# define LT_DLLAZY_OR_NOW DL_LAZY
10614
# define LT_DLLAZY_OR_NOW RTLD_NOW
10617
# define LT_DLLAZY_OR_NOW DL_NOW
10619
# define LT_DLLAZY_OR_NOW 0
10627
extern "C" void exit (int);
10630
void fnord() { int i=42;}
10633
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10634
int status = $lt_dlunknown;
10638
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10639
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10640
/* dlclose (self); */
10648
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10649
(eval $ac_link) 2>&5
10651
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10652
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10653
(./conftest; exit; ) >&5 2>/dev/null
10655
case x$lt_status in
10656
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10657
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10658
x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10661
# compilation failed
10662
lt_cv_dlopen_self_static=no
10669
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10670
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10673
CPPFLAGS="$save_CPPFLAGS"
10674
LDFLAGS="$save_LDFLAGS"
10679
case $lt_cv_dlopen_self in
10680
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10681
*) enable_dlopen_self=unknown ;;
10684
case $lt_cv_dlopen_self_static in
10685
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10686
*) enable_dlopen_self_static=unknown ;;
10691
# Report which library types will actually be built
10692
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10693
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10694
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
10695
echo "${ECHO_T}$can_build_shared" >&6; }
10697
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10698
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10699
test "$can_build_shared" = "no" && enable_shared=no
10701
# On AIX, shared libraries and static libraries use the same namespace, and
10702
# are all built from PIC.
10705
test "$enable_shared" = yes && enable_static=no
10706
if test -n "$RANLIB"; then
10707
archive_cmds="$archive_cmds~\$RANLIB \$lib"
10708
postinstall_cmds='$RANLIB $lib'
10713
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10714
test "$enable_shared" = yes && enable_static=no
10718
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10719
echo "${ECHO_T}$enable_shared" >&6; }
10721
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10722
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10723
# Make sure either enable_shared or enable_static is yes.
10724
test "$enable_shared" = yes || enable_static=yes
10725
{ echo "$as_me:$LINENO: result: $enable_static" >&5
10726
echo "${ECHO_T}$enable_static" >&6; }
10728
# The else clause should only fire when bootstrapping the
10729
# libtool distribution, otherwise you forgot to ship ltmain.sh
10730
# with your package, and you will get complaints that there are
10731
# no rules to generate ltmain.sh.
10732
if test -f "$ltmain"; then
10733
# See if we are running on zsh, and set the options which allow our commands through
10734
# without removal of \ escapes.
10735
if test -n "${ZSH_VERSION+set}" ; then
10736
setopt NO_GLOB_SUBST
10738
# Now quote all the things that may contain metacharacters while being
10739
# careful not to overquote the AC_SUBSTed values. We take copies of the
10740
# variables and quote the copies for generation of the libtool script.
10741
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10743
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10744
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10745
deplibs_check_method reload_flag reload_cmds need_locks \
10746
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10747
lt_cv_sys_global_symbol_to_c_name_address \
10748
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10749
old_postinstall_cmds old_postuninstall_cmds \
10753
lt_prog_compiler_wl \
10754
lt_prog_compiler_pic \
10755
lt_prog_compiler_static \
10756
lt_prog_compiler_no_builtin_flag \
10757
export_dynamic_flag_spec \
10758
thread_safe_flag_spec \
10759
whole_archive_flag_spec \
10760
enable_shared_with_static_runtimes \
10762
old_archive_from_new_cmds \
10767
compiler_lib_search_path \
10768
compiler_lib_search_dirs \
10770
archive_expsym_cmds \
10772
postuninstall_cmds \
10773
old_archive_from_expsyms_cmds \
10774
allow_undefined_flag \
10775
no_undefined_flag \
10776
export_symbols_cmds \
10777
hardcode_libdir_flag_spec \
10778
hardcode_libdir_flag_spec_ld \
10779
hardcode_libdir_separator \
10780
hardcode_automatic \
10782
module_expsym_cmds \
10783
lt_cv_prog_compiler_c_o \
10786
include_expsyms; do
10789
old_archive_cmds | \
10790
old_archive_from_new_cmds | \
10792
archive_expsym_cmds | \
10794
module_expsym_cmds | \
10795
old_archive_from_expsyms_cmds | \
10796
export_symbols_cmds | \
10797
extract_expsyms_cmds | reload_cmds | finish_cmds | \
10798
postinstall_cmds | postuninstall_cmds | \
10799
old_postinstall_cmds | old_postuninstall_cmds | \
10800
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10801
# Double-quote double-evaled strings.
10802
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10805
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10811
*'\$0 --fallback-echo"')
10812
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10816
cfgfile="${ofile}T"
10817
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10819
{ echo "$as_me:$LINENO: creating $ofile" >&5
10820
echo "$as_me: creating $ofile" >&6;}
10822
cat <<__EOF__ >> "$cfgfile"
10825
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10826
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10827
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10829
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10830
# Free Software Foundation, Inc.
10832
# This file is part of GNU Libtool:
10833
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10835
# This program is free software; you can redistribute it and/or modify
10836
# it under the terms of the GNU General Public License as published by
10837
# the Free Software Foundation; either version 2 of the License, or
10838
# (at your option) any later version.
10840
# This program is distributed in the hope that it will be useful, but
10841
# WITHOUT ANY WARRANTY; without even the implied warranty of
10842
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10843
# General Public License for more details.
10845
# You should have received a copy of the GNU General Public License
10846
# along with this program; if not, write to the Free Software
10847
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10849
# As a special exception to the GNU General Public License, if you
10850
# distribute this file as part of a program that contains a
10851
# configuration script generated by Autoconf, you may include it under
10852
# the same distribution terms that you use for the rest of that program.
10854
# A sed program that does not truncate output.
10857
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10858
Xsed="$SED -e 1s/^X//"
10860
# The HP-UX ksh and POSIX shell print the target directory to stdout
10861
# if CDPATH is set.
10862
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10864
# The names of the tagged configurations supported by this script.
10867
# ### BEGIN LIBTOOL CONFIG
10869
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10871
# Shell to use when invoking shell scripts.
10874
# Whether or not to build shared libraries.
10875
build_libtool_libs=$enable_shared
10877
# Whether or not to build static libraries.
10878
build_old_libs=$enable_static
10880
# Whether or not to add -lc for building shared libraries.
10881
build_libtool_need_lc=$archive_cmds_need_lc
10883
# Whether or not to disallow shared libs when runtime libs are static
10884
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10886
# Whether or not to optimize for fast installation.
10887
fast_install=$enable_fast_install
10890
host_alias=$host_alias
10894
# The build system.
10895
build_alias=$build_alias
10899
# An echo program that does not interpret backslashes.
10904
AR_FLAGS=$lt_AR_FLAGS
10909
# LTCC compiler flags.
10910
LTCFLAGS=$lt_LTCFLAGS
10912
# A language-specific compiler.
10915
# Is the compiler the GNU C compiler?
10921
# The linker used to build libraries.
10924
# Whether we need hard or soft links.
10927
# A BSD-compatible nm program.
10930
# A symbol stripping program
10933
# Used to examine libraries when file_magic_cmd begins "file"
10934
MAGIC_CMD=$MAGIC_CMD
10936
# Used on cygwin: DLL creation program.
10939
# Used on cygwin: object dumper.
10942
# Used on cygwin: assembler.
10945
# The name of the directory that contains temporary libtool files.
10948
# How to create reloadable object files.
10949
reload_flag=$lt_reload_flag
10950
reload_cmds=$lt_reload_cmds
10952
# How to pass a linker flag through the compiler.
10953
wl=$lt_lt_prog_compiler_wl
10955
# Object file suffix (normally "o").
10956
objext="$ac_objext"
10958
# Old archive suffix (normally "a").
10961
# Shared library suffix (normally ".so").
10962
shrext_cmds='$shrext_cmds'
10964
# Executable file suffix (normally "").
10967
# Additional compiler flags for building library objects.
10968
pic_flag=$lt_lt_prog_compiler_pic
10971
# What is the maximum length of a command?
10972
max_cmd_len=$lt_cv_sys_max_cmd_len
10974
# Does compiler simultaneously support -c and -o options?
10975
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10977
# Must we lock files when doing compilation?
10978
need_locks=$lt_need_locks
10980
# Do we need the lib prefix for modules?
10981
need_lib_prefix=$need_lib_prefix
10983
# Do we need a version for libraries?
10984
need_version=$need_version
10986
# Whether dlopen is supported.
10987
dlopen_support=$enable_dlopen
10989
# Whether dlopen of programs is supported.
10990
dlopen_self=$enable_dlopen_self
10992
# Whether dlopen of statically linked programs is supported.
10993
dlopen_self_static=$enable_dlopen_self_static
10995
# Compiler flag to prevent dynamic linking.
10996
link_static_flag=$lt_lt_prog_compiler_static
10998
# Compiler flag to turn off builtin functions.
10999
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11001
# Compiler flag to allow reflexive dlopens.
11002
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11004
# Compiler flag to generate shared objects directly from archives.
11005
whole_archive_flag_spec=$lt_whole_archive_flag_spec
11007
# Compiler flag to generate thread-safe objects.
11008
thread_safe_flag_spec=$lt_thread_safe_flag_spec
11010
# Library versioning type.
11011
version_type=$version_type
11013
# Format of library name prefix.
11014
libname_spec=$lt_libname_spec
11016
# List of archive names. First name is the real one, the rest are links.
11017
# The last name is the one that the linker finds with -lNAME.
11018
library_names_spec=$lt_library_names_spec
11020
# The coded name of the library, if different from the real name.
11021
soname_spec=$lt_soname_spec
11023
# Commands used to build and install an old-style archive.
11025
old_archive_cmds=$lt_old_archive_cmds
11026
old_postinstall_cmds=$lt_old_postinstall_cmds
11027
old_postuninstall_cmds=$lt_old_postuninstall_cmds
11029
# Create an old-style archive from a shared archive.
11030
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11032
# Create a temporary old-style archive to link instead of a shared archive.
11033
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11035
# Commands used to build and install a shared archive.
11036
archive_cmds=$lt_archive_cmds
11037
archive_expsym_cmds=$lt_archive_expsym_cmds
11038
postinstall_cmds=$lt_postinstall_cmds
11039
postuninstall_cmds=$lt_postuninstall_cmds
11041
# Commands used to build a loadable module (assumed same as above if empty)
11042
module_cmds=$lt_module_cmds
11043
module_expsym_cmds=$lt_module_expsym_cmds
11045
# Commands to strip libraries.
11046
old_striplib=$lt_old_striplib
11047
striplib=$lt_striplib
11049
# Dependencies to place before the objects being linked to create a
11051
predep_objects=$lt_predep_objects
11053
# Dependencies to place after the objects being linked to create a
11055
postdep_objects=$lt_postdep_objects
11057
# Dependencies to place before the objects being linked to create a
11059
predeps=$lt_predeps
11061
# Dependencies to place after the objects being linked to create a
11063
postdeps=$lt_postdeps
11065
# The directories searched by this compiler when creating a shared
11067
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
11069
# The library search path used internally by the compiler when linking
11070
# a shared library.
11071
compiler_lib_search_path=$lt_compiler_lib_search_path
11073
# Method to check whether dependent libraries are shared objects.
11074
deplibs_check_method=$lt_deplibs_check_method
11076
# Command to use when deplibs_check_method == file_magic.
11077
file_magic_cmd=$lt_file_magic_cmd
11079
# Flag that allows shared libraries with undefined symbols to be built.
11080
allow_undefined_flag=$lt_allow_undefined_flag
11082
# Flag that forces no undefined symbols.
11083
no_undefined_flag=$lt_no_undefined_flag
11085
# Commands used to finish a libtool library installation in a directory.
11086
finish_cmds=$lt_finish_cmds
11088
# Same as above, but a single script fragment to be evaled but not shown.
11089
finish_eval=$lt_finish_eval
11091
# Take the output of nm and produce a listing of raw symbols and C names.
11092
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11094
# Transform the output of nm in a proper C declaration
11095
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11097
# Transform the output of nm in a C name address pair
11098
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11100
# This is the shared library runtime path variable.
11101
runpath_var=$runpath_var
11103
# This is the shared library path variable.
11104
shlibpath_var=$shlibpath_var
11106
# Is shlibpath searched before the hard-coded library search path?
11107
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11109
# How to hardcode a shared library path into an executable.
11110
hardcode_action=$hardcode_action
11112
# Whether we should hardcode library paths into libraries.
11113
hardcode_into_libs=$hardcode_into_libs
11115
# Flag to hardcode \$libdir into a binary during linking.
11116
# This must work even if \$libdir does not exist.
11117
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11119
# If ld is used when linking, flag to hardcode \$libdir into
11120
# a binary during linking. This must work even if \$libdir does
11122
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11124
# Whether we need a single -rpath flag with a separated argument.
11125
hardcode_libdir_separator=$lt_hardcode_libdir_separator
11127
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11128
# resulting binary.
11129
hardcode_direct=$hardcode_direct
11131
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11132
# resulting binary.
11133
hardcode_minus_L=$hardcode_minus_L
11135
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11136
# the resulting binary.
11137
hardcode_shlibpath_var=$hardcode_shlibpath_var
11139
# Set to yes if building a shared library automatically hardcodes DIR into the library
11140
# and all subsequent libraries and executables linked against it.
11141
hardcode_automatic=$hardcode_automatic
11143
# Variables whose values should be saved in libtool wrapper scripts and
11144
# restored at relink time.
11145
variables_saved_for_relink="$variables_saved_for_relink"
11147
# Whether libtool must link a program against all its dependency libraries.
11148
link_all_deplibs=$link_all_deplibs
11150
# Compile-time system search path for libraries
11151
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11153
# Run-time system search path for libraries
11154
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11156
# Fix the shell variable \$srcfile for the compiler.
11157
fix_srcfile_path=$lt_fix_srcfile_path
11159
# Set to yes if exported symbols are required.
11160
always_export_symbols=$always_export_symbols
11162
# The commands to list exported symbols.
11163
export_symbols_cmds=$lt_export_symbols_cmds
11165
# The commands to extract the exported symbol list from a shared archive.
11166
extract_expsyms_cmds=$lt_extract_expsyms_cmds
11168
# Symbols that should not be listed in the preloaded symbols.
11169
exclude_expsyms=$lt_exclude_expsyms
11171
# Symbols that must always be exported.
11172
include_expsyms=$lt_include_expsyms
11174
# ### END LIBTOOL CONFIG
11181
cat <<\EOF >> "$cfgfile"
11183
# AIX sometimes has problems with the GCC collect2 program. For some
11184
# reason, if we set the COLLECT_NAMES environment variable, the problems
11185
# vanish in a puff of smoke.
11186
if test "X${COLLECT_NAMES+set}" != Xset; then
11188
export COLLECT_NAMES
11194
# We use sed instead of cat because bash on DJGPP gets confused if
11195
# if finds mixed CR/LF and LF-only lines. Since sed operates in
11196
# text mode, it properly converts lines to CR/LF. This bash problem
11197
# is reportedly fixed, but why not run on old versions too?
11198
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11200
mv -f "$cfgfile" "$ofile" || \
11201
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11205
# If there is no Makefile yet, we rely on a make rule to execute
11206
# `config.status --recheck' to rerun these tests and create the
11207
# libtool script then.
11208
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11209
if test -f "$ltmain_in"; then
11210
test -f Makefile && make "$ltmain"
11216
ac_cpp='$CPP $CPPFLAGS'
11217
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11218
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11219
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11224
# Check whether --with-tags was given.
11225
if test "${with_tags+set}" = set; then
11226
withval=$with_tags; tagnames="$withval"
11230
if test -f "$ltmain" && test -n "$tagnames"; then
11231
if test ! -f "${ofile}"; then
11232
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11233
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11236
if test -z "$LTCC"; then
11237
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11238
if test -z "$LTCC"; then
11239
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11240
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11242
{ echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11243
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11246
if test -z "$LTCFLAGS"; then
11247
eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11250
# Extract list of available tagged configurations in $ofile.
11251
# Note that this assumes the entire list is on one line.
11252
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11254
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11255
for tagname in $tagnames; do
11257
# Check whether tagname contains only valid characters
11258
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11260
*) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11261
echo "$as_me: error: invalid tag name: $tagname" >&2;}
11262
{ (exit 1); exit 1; }; }
11266
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11268
{ { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11269
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11270
{ (exit 1); exit 1; }; }
11273
# Update the list of available tags.
11274
if test -n "$tagname"; then
11275
echo appending configuration tag \"$tagname\" to $ofile
11279
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11280
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11281
(test "X$CXX" != "Xg++"))) ; then
11283
ac_cpp='$CXXCPP $CPPFLAGS'
11284
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11285
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11286
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11291
archive_cmds_need_lc_CXX=no
11292
allow_undefined_flag_CXX=
11293
always_export_symbols_CXX=no
11294
archive_expsym_cmds_CXX=
11295
export_dynamic_flag_spec_CXX=
11296
hardcode_direct_CXX=no
11297
hardcode_libdir_flag_spec_CXX=
11298
hardcode_libdir_flag_spec_ld_CXX=
11299
hardcode_libdir_separator_CXX=
11300
hardcode_minus_L_CXX=no
11301
hardcode_shlibpath_var_CXX=unsupported
11302
hardcode_automatic_CXX=no
11304
module_expsym_cmds_CXX=
11305
link_all_deplibs_CXX=unknown
11306
old_archive_cmds_CXX=$old_archive_cmds
11307
no_undefined_flag_CXX=
11308
whole_archive_flag_spec_CXX=
11309
enable_shared_with_static_runtimes_CXX=no
11311
# Dependencies to place before and after the object being linked:
11312
predep_objects_CXX=
11313
postdep_objects_CXX=
11316
compiler_lib_search_path_CXX=
11317
compiler_lib_search_dirs_CXX=
11319
# Source file extension for C++ test sources.
11322
# Object file extension for compiled C++ test sources.
11326
# Code to be used in simple compile tests
11327
lt_simple_compile_test_code="int some_variable = 0;"
11329
# Code to be used in simple link tests
11330
lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11332
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11334
# If no C compiler was specified, use CC.
11337
# If no C compiler flags were specified, use CFLAGS.
11338
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11340
# Allow CC to be a program name with arguments.
11344
# save warnings/boilerplate of simple test code
11345
ac_outfile=conftest.$ac_objext
11346
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11347
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11348
_lt_compiler_boilerplate=`cat conftest.err`
11351
ac_outfile=conftest.$ac_objext
11352
echo "$lt_simple_link_test_code" >conftest.$ac_ext
11353
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11354
_lt_linker_boilerplate=`cat conftest.err`
11358
# Allow CC to be a program name with arguments.
11363
lt_save_with_gnu_ld=$with_gnu_ld
11364
lt_save_path_LD=$lt_cv_path_LD
11365
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11366
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11368
$as_unset lt_cv_prog_gnu_ld
11370
if test -n "${lt_cv_path_LDCXX+set}"; then
11371
lt_cv_path_LD=$lt_cv_path_LDCXX
11373
$as_unset lt_cv_path_LD
11375
test -z "${LDCXX+set}" || LD=$LDCXX
11379
for cc_temp in $compiler""; do
11381
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11382
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11387
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11390
# We don't want -fno-exception wen compiling C++ code, so set the
11391
# no_builtin_flag separately
11392
if test "$GXX" = yes; then
11393
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11395
lt_prog_compiler_no_builtin_flag_CXX=
11398
if test "$GXX" = yes; then
11399
# Set up default GNU C++ configuration
11402
# Check whether --with-gnu-ld was given.
11403
if test "${with_gnu_ld+set}" = set; then
11404
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11410
if test "$GCC" = yes; then
11411
# Check if gcc -print-prog-name=ld gives a path.
11412
{ echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11413
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11416
# gcc leaves a trailing carriage return which upsets mingw
11417
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11419
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11422
# Accept absolute paths.
11424
re_direlt='/[^/][^/]*/\.\./'
11425
# Canonicalize the pathname of ld
11426
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11427
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11428
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11430
test -z "$LD" && LD="$ac_prog"
11433
# If it fails, then pretend we aren't using GCC.
11437
# If it is relative, then search for the first ld in PATH.
11438
with_gnu_ld=unknown
11441
elif test "$with_gnu_ld" = yes; then
11442
{ echo "$as_me:$LINENO: checking for GNU ld" >&5
11443
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11445
{ echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11446
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11448
if test "${lt_cv_path_LD+set}" = set; then
11449
echo $ECHO_N "(cached) $ECHO_C" >&6
11451
if test -z "$LD"; then
11452
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11453
for ac_dir in $PATH; do
11455
test -z "$ac_dir" && ac_dir=.
11456
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11457
lt_cv_path_LD="$ac_dir/$ac_prog"
11458
# Check to see if the program is GNU ld. I'd rather use --version,
11459
# but apparently some variants of GNU ld only accept -v.
11460
# Break only if it was the GNU/non-GNU ld that we prefer.
11461
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11462
*GNU* | *'with BFD'*)
11463
test "$with_gnu_ld" != no && break
11466
test "$with_gnu_ld" != yes && break
11473
lt_cv_path_LD="$LD" # Let the user override the test with a path.
11477
LD="$lt_cv_path_LD"
11478
if test -n "$LD"; then
11479
{ echo "$as_me:$LINENO: result: $LD" >&5
11480
echo "${ECHO_T}$LD" >&6; }
11482
{ echo "$as_me:$LINENO: result: no" >&5
11483
echo "${ECHO_T}no" >&6; }
11485
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11486
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11487
{ (exit 1); exit 1; }; }
11488
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11489
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11490
if test "${lt_cv_prog_gnu_ld+set}" = set; then
11491
echo $ECHO_N "(cached) $ECHO_C" >&6
11493
# I'd rather use --version here, but apparently some GNU lds only accept -v.
11494
case `$LD -v 2>&1 </dev/null` in
11495
*GNU* | *'with BFD'*)
11496
lt_cv_prog_gnu_ld=yes
11499
lt_cv_prog_gnu_ld=no
11503
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11504
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11505
with_gnu_ld=$lt_cv_prog_gnu_ld
11509
# Check if GNU C++ uses GNU ld as the underlying linker, since the
11510
# archiving commands below assume that GNU ld is being used.
11511
if test "$with_gnu_ld" = yes; then
11512
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11513
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'
11515
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11516
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11518
# If archive_cmds runs LD, not CC, wlarc should be empty
11519
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11520
# investigate it a little bit more. (MM)
11523
# ancient GNU ld didn't support --whole-archive et. al.
11524
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11525
grep 'no-whole-archive' > /dev/null; then
11526
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11528
whole_archive_flag_spec_CXX=
11534
# A generic and very simple default shared library creation
11535
# command for GNU C++ for the case where it uses the native
11536
# linker, instead of GNU ld. If possible, this setting should
11537
# overridden to take advantage of the native linker features on
11538
# the platform it is being used on.
11539
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11542
# Commands to make compiler produce verbose output that lists
11543
# what "hidden" libraries, object files and flags are used when
11544
# linking a shared library.
11545
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11553
# PORTME: fill in a description of your system's C++ link characteristics
11554
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11555
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11559
# FIXME: insert proper C++ library support
11563
if test "$host_cpu" = ia64; then
11564
# On IA64, the linker does run time linking by default, so we don't
11565
# have to do anything special.
11566
aix_use_runtimelinking=no
11567
exp_sym_flag='-Bexport'
11570
aix_use_runtimelinking=no
11572
# Test if we are trying to use run time linking or normal
11573
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11574
# need to do runtime linking.
11575
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11576
for ld_flag in $LDFLAGS; do
11579
aix_use_runtimelinking=yes
11587
exp_sym_flag='-bexport'
11588
no_entry_flag='-bnoentry'
11591
# When large executables or shared objects are built, AIX ld can
11592
# have problems creating the table of contents. If linking a library
11593
# or program results in "error TOC overflow" add -mminimal-toc to
11594
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11595
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11597
archive_cmds_CXX=''
11598
hardcode_direct_CXX=yes
11599
hardcode_libdir_separator_CXX=':'
11600
link_all_deplibs_CXX=yes
11602
if test "$GXX" = yes; then
11603
case $host_os in aix4.[012]|aix4.[012].*)
11604
# We only want to do this on AIX 4.2 and lower, the check
11605
# below for broken collect2 doesn't work under 4.3+
11606
collect2name=`${CC} -print-prog-name=collect2`
11607
if test -f "$collect2name" && \
11608
strings "$collect2name" | grep resolve_lib_name >/dev/null
11610
# We have reworked collect2
11613
# We have old collect2
11614
hardcode_direct_CXX=unsupported
11615
# It fails to find uninstalled libraries when the uninstalled
11616
# path is not listed in the libpath. Setting hardcode_minus_L
11617
# to unsupported forces relinking
11618
hardcode_minus_L_CXX=yes
11619
hardcode_libdir_flag_spec_CXX='-L$libdir'
11620
hardcode_libdir_separator_CXX=
11624
shared_flag='-shared'
11625
if test "$aix_use_runtimelinking" = yes; then
11626
shared_flag="$shared_flag "'${wl}-G'
11630
if test "$host_cpu" = ia64; then
11631
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11632
# chokes on -Wl,-G. The following line is correct:
11635
if test "$aix_use_runtimelinking" = yes; then
11636
shared_flag='${wl}-G'
11638
shared_flag='${wl}-bM:SRE'
11643
# It seems that -bexpall does not export symbols beginning with
11644
# underscore (_), so it is better to generate a list of symbols to export.
11645
always_export_symbols_CXX=yes
11646
if test "$aix_use_runtimelinking" = yes; then
11647
# Warning - without using the other runtime loading flags (-brtl),
11648
# -berok will link without error, but may produce a broken library.
11649
allow_undefined_flag_CXX='-berok'
11650
# Determine the default libpath from the value encoded in an empty executable.
11651
cat >conftest.$ac_ext <<_ACEOF
11654
cat confdefs.h >>conftest.$ac_ext
11655
cat >>conftest.$ac_ext <<_ACEOF
11656
/* end confdefs.h. */
11666
rm -f conftest.$ac_objext conftest$ac_exeext
11667
if { (ac_try="$ac_link"
11668
case "(($ac_try" in
11669
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11670
*) ac_try_echo=$ac_try;;
11672
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11673
(eval "$ac_link") 2>conftest.er1
11675
grep -v '^ *+' conftest.er1 >conftest.err
11677
cat conftest.err >&5
11678
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11679
(exit $ac_status); } && {
11680
test -z "$ac_cxx_werror_flag" ||
11681
test ! -s conftest.err
11682
} && test -s conftest$ac_exeext &&
11683
$as_test_x conftest$ac_exeext; then
11685
lt_aix_libpath_sed='
11686
/Import File Strings/,/^$/ {
11692
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11693
# Check for a 64-bit object if we didn't find anything.
11694
if test -z "$aix_libpath"; then
11695
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11698
echo "$as_me: failed program was:" >&5
11699
sed 's/^/| /' conftest.$ac_ext >&5
11704
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11705
conftest$ac_exeext conftest.$ac_ext
11706
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11708
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11710
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"
11712
if test "$host_cpu" = ia64; then
11713
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11714
allow_undefined_flag_CXX="-z nodefs"
11715
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"
11717
# Determine the default libpath from the value encoded in an empty executable.
11718
cat >conftest.$ac_ext <<_ACEOF
11721
cat confdefs.h >>conftest.$ac_ext
11722
cat >>conftest.$ac_ext <<_ACEOF
11723
/* end confdefs.h. */
11733
rm -f conftest.$ac_objext conftest$ac_exeext
11734
if { (ac_try="$ac_link"
11735
case "(($ac_try" in
11736
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11737
*) ac_try_echo=$ac_try;;
11739
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11740
(eval "$ac_link") 2>conftest.er1
11742
grep -v '^ *+' conftest.er1 >conftest.err
11744
cat conftest.err >&5
11745
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11746
(exit $ac_status); } && {
11747
test -z "$ac_cxx_werror_flag" ||
11748
test ! -s conftest.err
11749
} && test -s conftest$ac_exeext &&
11750
$as_test_x conftest$ac_exeext; then
11752
lt_aix_libpath_sed='
11753
/Import File Strings/,/^$/ {
11759
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11760
# Check for a 64-bit object if we didn't find anything.
11761
if test -z "$aix_libpath"; then
11762
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11765
echo "$as_me: failed program was:" >&5
11766
sed 's/^/| /' conftest.$ac_ext >&5
11771
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11772
conftest$ac_exeext conftest.$ac_ext
11773
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11775
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11776
# Warning - without using the other run time loading flags,
11777
# -berok will link without error, but may produce a broken library.
11778
no_undefined_flag_CXX=' ${wl}-bernotok'
11779
allow_undefined_flag_CXX=' ${wl}-berok'
11780
# Exported symbols can be pulled into shared objects from archives
11781
whole_archive_flag_spec_CXX='$convenience'
11782
archive_cmds_need_lc_CXX=yes
11783
# This is similar to how AIX traditionally builds its shared libraries.
11784
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'
11790
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11791
allow_undefined_flag_CXX=unsupported
11792
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11793
# support --undefined. This deserves some investigation. FIXME
11794
archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11801
case $cc_basename in
11803
# FIXME: insert proper C++ library support
11809
cygwin* | mingw* | pw32*)
11810
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11811
# as there is no search path for DLLs.
11812
hardcode_libdir_flag_spec_CXX='-L$libdir'
11813
allow_undefined_flag_CXX=unsupported
11814
always_export_symbols_CXX=no
11815
enable_shared_with_static_runtimes_CXX=yes
11817
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11818
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'
11819
# If the export-symbols file already is a .def file (1st line
11820
# is EXPORTS), use it as is; otherwise, prepend...
11821
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11822
cp $export_symbols $output_objdir/$soname.def;
11824
echo EXPORTS > $output_objdir/$soname.def;
11825
cat $export_symbols >> $output_objdir/$soname.def;
11827
$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'
11832
darwin* | rhapsody*)
11833
archive_cmds_need_lc_CXX=no
11834
hardcode_direct_CXX=no
11835
hardcode_automatic_CXX=yes
11836
hardcode_shlibpath_var_CXX=unsupported
11837
whole_archive_flag_spec_CXX=''
11838
link_all_deplibs_CXX=yes
11839
allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11840
if test "$GXX" = yes ; then
11841
output_verbose_link_cmd='echo'
11842
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}"
11843
module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11844
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}"
11845
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}"
11846
if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11847
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}"
11848
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}"
11851
case $cc_basename in
11853
output_verbose_link_cmd='echo'
11854
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'
11855
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11856
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11857
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}'
11858
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}'
11868
case $cc_basename in
11870
# FIXME: insert proper C++ library support
11874
# Green Hills C++ Compiler
11875
# FIXME: insert proper C++ library support
11879
# FIXME: insert proper C++ library support
11885
# C++ shared libraries reported to be fairly broken before switch to ELF
11889
archive_cmds_need_lc_CXX=no
11891
freebsd* | dragonfly*)
11892
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11899
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11900
hardcode_libdir_separator_CXX=:
11901
export_dynamic_flag_spec_CXX='${wl}-E'
11902
hardcode_direct_CXX=yes
11903
hardcode_minus_L_CXX=yes # Not in the search PATH,
11904
# but as the default
11905
# location of the library.
11907
case $cc_basename in
11909
# FIXME: insert proper C++ library support
11913
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'
11914
# Commands to make compiler produce verbose output that lists
11915
# what "hidden" libraries, object files and flags are used when
11916
# linking a shared library.
11918
# There doesn't appear to be a way to prevent this compiler from
11919
# explicitly linking system object files so we need to strip them
11920
# from the output so that they don't get included in the library
11922
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'
11925
if test "$GXX" = yes; then
11926
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'
11928
# FIXME: insert proper C++ library support
11935
if test $with_gnu_ld = no; then
11936
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11937
hardcode_libdir_separator_CXX=:
11942
export_dynamic_flag_spec_CXX='${wl}-E'
11948
hardcode_direct_CXX=no
11949
hardcode_shlibpath_var_CXX=no
11952
hardcode_direct_CXX=yes
11953
hardcode_minus_L_CXX=yes # Not in the search PATH,
11954
# but as the default
11955
# location of the library.
11959
case $cc_basename in
11961
# FIXME: insert proper C++ library support
11967
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11970
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11973
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11976
# Commands to make compiler produce verbose output that lists
11977
# what "hidden" libraries, object files and flags are used when
11978
# linking a shared library.
11980
# There doesn't appear to be a way to prevent this compiler from
11981
# explicitly linking system object files so we need to strip them
11982
# from the output so that they don't get included in the library
11984
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'
11987
if test "$GXX" = yes; then
11988
if test $with_gnu_ld = no; then
11991
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11994
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11997
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'
12002
# FIXME: insert proper C++ library support
12009
hardcode_direct_CXX=no
12010
hardcode_shlibpath_var_CXX=no
12011
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12012
export_dynamic_flag_spec_CXX='${wl}-E'
12013
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12014
# Instead, shared libraries are loaded at an image base (0x10000000 by
12015
# default) and relocated if they conflict, which is a slow very memory
12016
# consuming and fragmenting process. To avoid this, we pick a random,
12017
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12018
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
12019
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'
12020
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'
12023
case $cc_basename in
12026
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'
12028
# Archives containing C++ object files must be created using
12029
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
12030
# necessary to make sure instantiated templates are included
12032
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12035
if test "$GXX" = yes; then
12036
if test "$with_gnu_ld" = no; then
12037
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'
12039
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'
12042
link_all_deplibs_CXX=yes
12045
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12046
hardcode_libdir_separator_CXX=:
12048
linux* | k*bsd*-gnu)
12049
case $cc_basename in
12051
# Kuck and Associates, Inc. (KAI) C++ Compiler
12053
# KCC will only create a shared library if the output file
12054
# ends with ".so" (or ".sl" for HP-UX), so rename the library
12055
# to its proper name (with version) after linking.
12056
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'
12057
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'
12058
# Commands to make compiler produce verbose output that lists
12059
# what "hidden" libraries, object files and flags are used when
12060
# linking a shared library.
12062
# There doesn't appear to be a way to prevent this compiler from
12063
# explicitly linking system object files so we need to strip them
12064
# from the output so that they don't get included in the library
12066
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'
12068
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12069
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12071
# Archives containing C++ object files must be created using
12072
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12073
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12078
# version 8.0 and above of icpc choke on multiply defined symbols
12079
# if we add $predep_objects and $postdep_objects, however 7.1 and
12080
# earlier do not add the objects themselves.
12081
case `$CC -V 2>&1` in
12083
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12084
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'
12086
*) # Version 8.0 or newer
12089
ia64*) tmp_idyn=' -i_dynamic';;
12091
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12092
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'
12095
archive_cmds_need_lc_CXX=no
12096
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12097
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12098
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12101
# Portland Group C++ compiler
12102
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12103
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'
12105
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12106
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12107
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'
12111
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12112
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'
12114
runpath_var=LD_RUN_PATH
12115
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12116
hardcode_libdir_separator_CXX=:
12118
# Commands to make compiler produce verbose output that lists
12119
# what "hidden" libraries, object files and flags are used when
12120
# linking a shared library.
12122
# There doesn't appear to be a way to prevent this compiler from
12123
# explicitly linking system object files so we need to strip them
12124
# from the output so that they don't get included in the library
12126
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'
12129
case `$CC -V 2>&1 | sed 5q` in
12132
no_undefined_flag_CXX=' -zdefs'
12133
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12134
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'
12135
hardcode_libdir_flag_spec_CXX='-R$libdir'
12136
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'
12138
# Not sure whether something based on
12139
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12141
output_verbose_link_cmd='echo'
12143
# Archives containing C++ object files must be created using
12144
# "CC -xar", where "CC" is the Sun C++ compiler. This is
12145
# necessary to make sure instantiated templates are included
12147
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12154
# FIXME: insert proper C++ library support
12158
# FIXME: insert proper C++ library support
12162
case $cc_basename in
12164
# FIXME: insert proper C++ library support
12168
# FIXME: insert proper C++ library support
12173
netbsd* | netbsdelf*-gnu)
12174
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12175
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12177
hardcode_libdir_flag_spec_CXX='-R$libdir'
12178
hardcode_direct_CXX=yes
12179
hardcode_shlibpath_var_CXX=no
12181
# Workaround some broken pre-1.5 toolchains
12182
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12185
# C++ shared libraries are fairly broken
12189
if test -f /usr/libexec/ld.so; then
12190
hardcode_direct_CXX=yes
12191
hardcode_shlibpath_var_CXX=no
12192
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12193
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12194
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12195
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12196
export_dynamic_flag_spec_CXX='${wl}-E'
12197
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12199
output_verbose_link_cmd='echo'
12205
case $cc_basename in
12207
# Kuck and Associates, Inc. (KAI) C++ Compiler
12209
# KCC will only create a shared library if the output file
12210
# ends with ".so" (or ".sl" for HP-UX), so rename the library
12211
# to its proper name (with version) after linking.
12212
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'
12214
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12215
hardcode_libdir_separator_CXX=:
12217
# Archives containing C++ object files must be created using
12218
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12219
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12223
# Rational C++ 2.4.1
12224
# FIXME: insert proper C++ library support
12228
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12229
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'
12231
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12232
hardcode_libdir_separator_CXX=:
12234
# Commands to make compiler produce verbose output that lists
12235
# what "hidden" libraries, object files and flags are used when
12236
# linking a shared library.
12238
# There doesn't appear to be a way to prevent this compiler from
12239
# explicitly linking system object files so we need to strip them
12240
# from the output so that they don't get included in the library
12242
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'
12245
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12246
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12247
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'
12249
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12250
hardcode_libdir_separator_CXX=:
12252
# Commands to make compiler produce verbose output that lists
12253
# what "hidden" libraries, object files and flags are used when
12254
# linking a shared library.
12255
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12258
# FIXME: insert proper C++ library support
12265
case $cc_basename in
12267
# Kuck and Associates, Inc. (KAI) C++ Compiler
12269
# KCC will only create a shared library if the output file
12270
# ends with ".so" (or ".sl" for HP-UX), so rename the library
12271
# to its proper name (with version) after linking.
12272
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'
12274
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12275
hardcode_libdir_separator_CXX=:
12277
# Archives containing C++ object files must be created using
12278
# the KAI C++ compiler.
12279
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12282
# Rational C++ 2.4.1
12283
# FIXME: insert proper C++ library support
12287
allow_undefined_flag_CXX=' -expect_unresolved \*'
12288
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'
12289
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12290
echo "-hidden">> $lib.exp~
12291
$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~
12294
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12295
hardcode_libdir_separator_CXX=:
12297
# Commands to make compiler produce verbose output that lists
12298
# what "hidden" libraries, object files and flags are used when
12299
# linking a shared library.
12301
# There doesn't appear to be a way to prevent this compiler from
12302
# explicitly linking system object files so we need to strip them
12303
# from the output so that they don't get included in the library
12305
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'
12308
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12309
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12310
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'
12312
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12313
hardcode_libdir_separator_CXX=:
12315
# Commands to make compiler produce verbose output that lists
12316
# what "hidden" libraries, object files and flags are used when
12317
# linking a shared library.
12318
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12321
# FIXME: insert proper C++ library support
12328
# FIXME: insert proper C++ library support
12332
case $cc_basename in
12335
# FIXME: insert proper C++ library support
12340
# FIXME: insert proper C++ library support
12344
# FIXME: insert proper C++ library support
12350
case $cc_basename in
12352
# Sun C++ 4.2, 5.x and Centerline C++
12353
archive_cmds_need_lc_CXX=yes
12354
no_undefined_flag_CXX=' -zdefs'
12355
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12356
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12357
$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'
12359
hardcode_libdir_flag_spec_CXX='-R$libdir'
12360
hardcode_shlibpath_var_CXX=no
12362
solaris2.[0-5] | solaris2.[0-5].*) ;;
12364
# The compiler driver will combine and reorder linker options,
12365
# but understands `-z linker_flag'.
12366
# Supported since Solaris 2.6 (maybe 2.5.1?)
12367
whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12370
link_all_deplibs_CXX=yes
12372
output_verbose_link_cmd='echo'
12374
# Archives containing C++ object files must be created using
12375
# "CC -xar", where "CC" is the Sun C++ compiler. This is
12376
# necessary to make sure instantiated templates are included
12378
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12381
# Green Hills C++ Compiler
12382
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12384
# The C++ compiler must be used to create the archive.
12385
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12388
# GNU C++ compiler with Solaris linker
12389
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12390
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12391
if $CC --version | grep -v '^2\.7' > /dev/null; then
12392
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12393
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12394
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12396
# Commands to make compiler produce verbose output that lists
12397
# what "hidden" libraries, object files and flags are used when
12398
# linking a shared library.
12399
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12401
# g++ 2.7 appears to require `-G' NOT `-shared' on this
12403
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12404
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12405
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12407
# Commands to make compiler produce verbose output that lists
12408
# what "hidden" libraries, object files and flags are used when
12409
# linking a shared library.
12410
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12413
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12415
solaris2.[0-5] | solaris2.[0-5].*) ;;
12417
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12424
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12425
no_undefined_flag_CXX='${wl}-z,text'
12426
archive_cmds_need_lc_CXX=no
12427
hardcode_shlibpath_var_CXX=no
12428
runpath_var='LD_RUN_PATH'
12430
case $cc_basename in
12432
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12433
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12436
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12437
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12441
sysv5* | sco3.2v5* | sco5v6*)
12442
# Note: We can NOT use -z defs as we might desire, because we do not
12443
# link with -lc, and that would cause any symbols used from libc to
12444
# always be unresolved, which means just about no library would
12445
# ever link correctly. If we're not using GNU ld we use -z text
12446
# though, which does catch some bad symbols but isn't as heavy-handed
12448
# For security reasons, it is highly recommended that you always
12449
# use absolute paths for naming shared libraries, and exclude the
12450
# DT_RUNPATH tag from executables and libraries. But doing so
12451
# requires that you compile everything twice, which is a pain.
12452
# So that behaviour is only enabled if SCOABSPATH is set to a
12453
# non-empty value in the environment. Most likely only useful for
12454
# creating official distributions of packages.
12455
# This is a hack until libtool officially supports absolute path
12456
# names for shared libraries.
12457
no_undefined_flag_CXX='${wl}-z,text'
12458
allow_undefined_flag_CXX='${wl}-z,nodefs'
12459
archive_cmds_need_lc_CXX=no
12460
hardcode_shlibpath_var_CXX=no
12461
hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12462
hardcode_libdir_separator_CXX=':'
12463
link_all_deplibs_CXX=yes
12464
export_dynamic_flag_spec_CXX='${wl}-Bexport'
12465
runpath_var='LD_RUN_PATH'
12467
case $cc_basename in
12469
archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12470
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12473
archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12474
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12479
case $cc_basename in
12481
# NonStop-UX NCC 3.20
12482
# FIXME: insert proper C++ library support
12486
# FIXME: insert proper C++ library support
12492
# FIXME: insert proper C++ library support
12496
# FIXME: insert proper C++ library support
12500
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12501
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12502
test "$ld_shlibs_CXX" = no && can_build_shared=no
12508
## There is no encapsulation within the following macros, do not change
12509
## the running order or otherwise move them around unless you know exactly
12510
## what you are doing...
12511
cat > conftest.$ac_ext <<EOF
12515
Foo (void) { a = 0; }
12521
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12522
(eval $ac_compile) 2>&5
12524
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12525
(exit $ac_status); }; then
12526
# Parse the compiler output and extract the necessary
12527
# objects, libraries and library flags.
12529
# Sentinel used to keep track of whether or not we are before
12530
# the conftest object file.
12531
pre_test_object_deps_done=no
12533
# The `*' in the case matches for architectures that use `case' in
12534
# $output_verbose_cmd can trigger glob expansion during the loop
12535
# eval without this substitution.
12536
output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12538
for p in `eval $output_verbose_link_cmd`; do
12542
# Some compilers place space between "-{L,R}" and the path.
12543
# Remove the space.
12544
if test $p = "-L" \
12545
|| test $p = "-R"; then
12552
if test "$pre_test_object_deps_done" = no; then
12555
# Internal compiler library paths should come after those
12556
# provided the user. The postdeps already come after the
12557
# user supplied libs so there is no need to process them.
12558
if test -z "$compiler_lib_search_path_CXX"; then
12559
compiler_lib_search_path_CXX="${prev}${p}"
12561
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12564
# The "-l" case would never come before the object being
12565
# linked, so don't bother handling this case.
12568
if test -z "$postdeps_CXX"; then
12569
postdeps_CXX="${prev}${p}"
12571
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12577
# This assumes that the test object file only shows up
12578
# once in the compiler output.
12579
if test "$p" = "conftest.$objext"; then
12580
pre_test_object_deps_done=yes
12584
if test "$pre_test_object_deps_done" = no; then
12585
if test -z "$predep_objects_CXX"; then
12586
predep_objects_CXX="$p"
12588
predep_objects_CXX="$predep_objects_CXX $p"
12591
if test -z "$postdep_objects_CXX"; then
12592
postdep_objects_CXX="$p"
12594
postdep_objects_CXX="$postdep_objects_CXX $p"
12599
*) ;; # Ignore the rest.
12607
echo "libtool.m4: error: problem compiling CXX test program"
12610
$rm -f confest.$objext
12612
compiler_lib_search_dirs_CXX=
12613
if test -n "$compiler_lib_search_path_CXX"; then
12614
compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12617
# PORTME: override above test on systems where it is broken
12620
# Interix 3.5 installs completely hosed .la files for C++, so rather than
12621
# hack all around it, let's just trust "g++" to DTRT.
12622
predep_objects_CXX=
12623
postdep_objects_CXX=
12628
case `$CC -V 2>&1 | sed 5q` in
12632
# The more standards-conforming stlport4 library is
12633
# incompatible with the Cstd library. Avoid specifying
12634
# it if it's in CXXFLAGS. Ignore libCrun as
12635
# -library=stlport4 depends on it.
12636
case " $CXX $CXXFLAGS " in
12637
*" -library=stlport4 "*)
12638
solaris_use_stlport4=yes
12641
if test "$solaris_use_stlport4" != yes; then
12642
postdeps_CXX='-library=Cstd -library=Crun'
12649
case $cc_basename in
12651
# The more standards-conforming stlport4 library is
12652
# incompatible with the Cstd library. Avoid specifying
12653
# it if it's in CXXFLAGS. Ignore libCrun as
12654
# -library=stlport4 depends on it.
12655
case " $CXX $CXXFLAGS " in
12656
*" -library=stlport4 "*)
12657
solaris_use_stlport4=yes
12661
# Adding this requires a known-good setup of shared libraries for
12662
# Sun compiler versions before 5.6, else PIC objects from an old
12663
# archive will be linked into the output, leading to subtle bugs.
12664
if test "$solaris_use_stlport4" != yes; then
12665
postdeps_CXX='-library=Cstd -library=Crun'
12672
case " $postdeps_CXX " in
12673
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12676
lt_prog_compiler_wl_CXX=
12677
lt_prog_compiler_pic_CXX=
12678
lt_prog_compiler_static_CXX=
12680
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12681
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12683
# C++ specific cases for pic, static, wl, etc.
12684
if test "$GXX" = yes; then
12685
lt_prog_compiler_wl_CXX='-Wl,'
12686
lt_prog_compiler_static_CXX='-static'
12690
# All AIX code is PIC.
12691
if test "$host_cpu" = ia64; then
12692
# AIX 5 now supports IA64 processor
12693
lt_prog_compiler_static_CXX='-Bstatic'
12697
# FIXME: we need at least 68020 code to build shared libraries, but
12698
# adding the `-m68020' flag to GCC prevents building anything better,
12700
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12702
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12703
# PIC is the default for these OSes.
12705
mingw* | cygwin* | os2* | pw32*)
12706
# This hack is so that the source file can tell whether it is being
12707
# built for inclusion in a dll (and should export symbols for example).
12708
# Although the cygwin gcc ignores -fPIC, still need this for old-style
12709
# (--disable-auto-import) libraries
12710
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12712
darwin* | rhapsody*)
12713
# PIC is the default on this platform
12714
# Common symbols not allowed in MH_DYLIB files
12715
lt_prog_compiler_pic_CXX='-fno-common'
12718
# DJGPP does not support shared libraries at all
12719
lt_prog_compiler_pic_CXX=
12722
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
12723
# Instead, we relocate shared libraries at runtime.
12726
if test -d /usr/nec; then
12727
lt_prog_compiler_pic_CXX=-Kconform_pic
12731
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12732
# not for PA HP-UX.
12737
lt_prog_compiler_pic_CXX='-fPIC'
12742
lt_prog_compiler_pic_CXX='-fPIC'
12748
# All AIX code is PIC.
12749
if test "$host_cpu" = ia64; then
12750
# AIX 5 now supports IA64 processor
12751
lt_prog_compiler_static_CXX='-Bstatic'
12753
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12757
case $cc_basename in
12759
# Green Hills C++ Compiler
12760
# _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"
12765
# PIC is the default on this platform
12766
# Common symbols not allowed in MH_DYLIB files
12767
case $cc_basename in
12769
lt_prog_compiler_pic_CXX='-qnocommon'
12770
lt_prog_compiler_wl_CXX='-Wl,'
12775
case $cc_basename in
12777
lt_prog_compiler_pic_CXX='-KPIC'
12780
# Green Hills C++ Compiler
12781
lt_prog_compiler_pic_CXX='-pic'
12787
freebsd* | dragonfly*)
12788
# FreeBSD uses GNU C++
12790
hpux9* | hpux10* | hpux11*)
12791
case $cc_basename in
12793
lt_prog_compiler_wl_CXX='-Wl,'
12794
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12795
if test "$host_cpu" != ia64; then
12796
lt_prog_compiler_pic_CXX='+Z'
12800
lt_prog_compiler_wl_CXX='-Wl,'
12801
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12807
lt_prog_compiler_pic_CXX='+Z'
12816
# This is c89, which is MS Visual C++ (no shared libs)
12817
# Anyone wants to do a port?
12819
irix5* | irix6* | nonstopux*)
12820
case $cc_basename in
12822
lt_prog_compiler_wl_CXX='-Wl,'
12823
lt_prog_compiler_static_CXX='-non_shared'
12824
# CC pic flag -KPIC is the default.
12830
linux* | k*bsd*-gnu)
12831
case $cc_basename in
12834
lt_prog_compiler_wl_CXX='--backend -Wl,'
12835
lt_prog_compiler_pic_CXX='-fPIC'
12839
lt_prog_compiler_wl_CXX='-Wl,'
12840
lt_prog_compiler_pic_CXX='-KPIC'
12841
lt_prog_compiler_static_CXX='-static'
12844
# Portland Group C++ compiler.
12845
lt_prog_compiler_wl_CXX='-Wl,'
12846
lt_prog_compiler_pic_CXX='-fpic'
12847
lt_prog_compiler_static_CXX='-Bstatic'
12851
# Make sure the PIC flag is empty. It appears that all Alpha
12852
# Linux and Compaq Tru64 Unix objects are PIC.
12853
lt_prog_compiler_pic_CXX=
12854
lt_prog_compiler_static_CXX='-non_shared'
12857
case `$CC -V 2>&1 | sed 5q` in
12860
lt_prog_compiler_pic_CXX='-KPIC'
12861
lt_prog_compiler_static_CXX='-Bstatic'
12862
lt_prog_compiler_wl_CXX='-Qoption ld '
12873
case $cc_basename in
12875
lt_prog_compiler_pic_CXX='-W c,exportall'
12881
netbsd* | netbsdelf*-gnu)
12883
osf3* | osf4* | osf5*)
12884
case $cc_basename in
12886
lt_prog_compiler_wl_CXX='--backend -Wl,'
12889
# Rational C++ 2.4.1
12890
lt_prog_compiler_pic_CXX='-pic'
12893
# Digital/Compaq C++
12894
lt_prog_compiler_wl_CXX='-Wl,'
12895
# Make sure the PIC flag is empty. It appears that all Alpha
12896
# Linux and Compaq Tru64 Unix objects are PIC.
12897
lt_prog_compiler_pic_CXX=
12898
lt_prog_compiler_static_CXX='-non_shared'
12907
case $cc_basename in
12909
# Sun C++ 4.2, 5.x and Centerline C++
12910
lt_prog_compiler_pic_CXX='-KPIC'
12911
lt_prog_compiler_static_CXX='-Bstatic'
12912
lt_prog_compiler_wl_CXX='-Qoption ld '
12915
# Green Hills C++ Compiler
12916
lt_prog_compiler_pic_CXX='-PIC'
12923
case $cc_basename in
12926
lt_prog_compiler_pic_CXX='-pic'
12927
lt_prog_compiler_static_CXX='-Bstatic'
12931
lt_prog_compiler_pic_CXX='-pic'
12938
case $cc_basename in
12940
# NonStop-UX NCC 3.20
12941
lt_prog_compiler_pic_CXX='-KPIC'
12947
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12948
case $cc_basename in
12950
lt_prog_compiler_wl_CXX='-Wl,'
12951
lt_prog_compiler_pic_CXX='-KPIC'
12952
lt_prog_compiler_static_CXX='-Bstatic'
12959
lt_prog_compiler_can_build_shared_CXX=no
12964
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12965
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12968
# Check to make sure the PIC flag actually works.
12970
if test -n "$lt_prog_compiler_pic_CXX"; then
12972
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12973
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12974
if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12975
echo $ECHO_N "(cached) $ECHO_C" >&6
12977
lt_cv_prog_compiler_pic_works_CXX=no
12978
ac_outfile=conftest.$ac_objext
12979
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12980
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12981
# Insert the option either (1) after the last *FLAGS variable, or
12982
# (2) before a word containing "conftest.", or (3) at the end.
12983
# Note that $ac_compile itself does not contain backslashes and begins
12984
# with a dollar sign (not a hyphen), so the echo should work correctly.
12985
# The option is referenced via a variable to avoid confusing sed.
12986
lt_compile=`echo "$ac_compile" | $SED \
12987
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12988
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12989
-e 's:$: $lt_compiler_flag:'`
12990
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
12991
(eval "$lt_compile" 2>conftest.err)
12993
cat conftest.err >&5
12994
echo "$as_me:__oline__: \$? = $ac_status" >&5
12995
if (exit $ac_status) && test -s "$ac_outfile"; then
12996
# The compiler can only warn and ignore the option if not recognized
12997
# So say no if there are warnings other than the usual output.
12998
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12999
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13000
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13001
lt_cv_prog_compiler_pic_works_CXX=yes
13007
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13008
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13010
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13011
case $lt_prog_compiler_pic_CXX in
13013
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13016
lt_prog_compiler_pic_CXX=
13017
lt_prog_compiler_can_build_shared_CXX=no
13022
# For platforms which do not support PIC, -DPIC is meaningless:
13024
lt_prog_compiler_pic_CXX=
13027
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13032
# Check to make sure the static flag actually works.
13034
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13035
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13036
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13037
if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
13038
echo $ECHO_N "(cached) $ECHO_C" >&6
13040
lt_cv_prog_compiler_static_works_CXX=no
13041
save_LDFLAGS="$LDFLAGS"
13042
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13043
echo "$lt_simple_link_test_code" > conftest.$ac_ext
13044
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13045
# The linker can only warn and ignore the option if not recognized
13046
# So say no if there are warnings
13047
if test -s conftest.err; then
13048
# Append any errors to the config.log.
13049
cat conftest.err 1>&5
13050
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13051
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13052
if diff conftest.exp conftest.er2 >/dev/null; then
13053
lt_cv_prog_compiler_static_works_CXX=yes
13056
lt_cv_prog_compiler_static_works_CXX=yes
13060
LDFLAGS="$save_LDFLAGS"
13063
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13064
echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
13066
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13069
lt_prog_compiler_static_CXX=
13073
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13074
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13075
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13076
echo $ECHO_N "(cached) $ECHO_C" >&6
13078
lt_cv_prog_compiler_c_o_CXX=no
13079
$rm -r conftest 2>/dev/null
13083
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13085
lt_compiler_flag="-o out/conftest2.$ac_objext"
13086
# Insert the option either (1) after the last *FLAGS variable, or
13087
# (2) before a word containing "conftest.", or (3) at the end.
13088
# Note that $ac_compile itself does not contain backslashes and begins
13089
# with a dollar sign (not a hyphen), so the echo should work correctly.
13090
lt_compile=`echo "$ac_compile" | $SED \
13091
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13092
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13093
-e 's:$: $lt_compiler_flag:'`
13094
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
13095
(eval "$lt_compile" 2>out/conftest.err)
13097
cat out/conftest.err >&5
13098
echo "$as_me:__oline__: \$? = $ac_status" >&5
13099
if (exit $ac_status) && test -s out/conftest2.$ac_objext
13101
# The compiler can only warn and ignore the option if not recognized
13102
# So say no if there are warnings
13103
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13104
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13105
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13106
lt_cv_prog_compiler_c_o_CXX=yes
13111
# SGI C++ compiler will create directory out/ii_files/ for
13112
# template instantiation
13113
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13114
$rm out/* && rmdir out
13120
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13121
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13124
hard_links="nottested"
13125
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13126
# do not overwrite the value of need_locks provided by the user
13127
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13128
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13131
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13133
ln conftest.a conftest.b 2>&5 || hard_links=no
13134
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13135
{ echo "$as_me:$LINENO: result: $hard_links" >&5
13136
echo "${ECHO_T}$hard_links" >&6; }
13137
if test "$hard_links" = no; then
13138
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13139
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13146
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13147
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13149
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13152
# If we're using GNU nm, then we don't want the "-C" option.
13153
# -C means demangle to AIX nm, but means don't demangle with GNU nm
13154
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13155
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'
13157
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'
13161
export_symbols_cmds_CXX="$ltdll_cmds"
13164
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'
13166
linux* | k*bsd*-gnu)
13167
link_all_deplibs_CXX=no
13170
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13173
exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13175
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13176
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13177
test "$ld_shlibs_CXX" = no && can_build_shared=no
13180
# Do we need to explicitly link libc?
13182
case "x$archive_cmds_need_lc_CXX" in
13184
# Assume -lc should be added
13185
archive_cmds_need_lc_CXX=yes
13187
if test "$enable_shared" = yes && test "$GCC" = yes; then
13188
case $archive_cmds_CXX in
13190
# FIXME: we may have to deal with multi-command sequences.
13193
# Test whether the compiler implicitly links with -lc since on some
13194
# systems, -lgcc has to come before -lc. If gcc already passes -lc
13195
# to ld, don't add -lc before -lgcc.
13196
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13197
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13199
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13201
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13202
(eval $ac_compile) 2>&5
13204
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13205
(exit $ac_status); } 2>conftest.err; then
13208
libobjs=conftest.$ac_objext
13210
wl=$lt_prog_compiler_wl_CXX
13211
pic_flag=$lt_prog_compiler_pic_CXX
13217
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13218
allow_undefined_flag_CXX=
13219
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13220
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13222
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13223
(exit $ac_status); }
13225
archive_cmds_need_lc_CXX=no
13227
archive_cmds_need_lc_CXX=yes
13229
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13231
cat conftest.err 1>&5
13234
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13235
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13242
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13243
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13244
library_names_spec=
13245
libname_spec='lib$name'
13249
postuninstall_cmds=
13253
shlibpath_overrides_runpath=unknown
13255
dynamic_linker="$host_os ld.so"
13256
sys_lib_dlsearch_path_spec="/lib /usr/lib"
13258
need_lib_prefix=unknown
13259
hardcode_into_libs=no
13261
# when you set need_version to no, make sure it does not cause -set_version
13262
# flags to be left without arguments
13263
need_version=unknown
13268
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13269
shlibpath_var=LIBPATH
13271
# AIX 3 has no versioning support, so we append a major version to the name.
13272
soname_spec='${libname}${release}${shared_ext}$major'
13279
hardcode_into_libs=yes
13280
if test "$host_cpu" = ia64; then
13281
# AIX 5 supports IA64
13282
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13283
shlibpath_var=LD_LIBRARY_PATH
13285
# With GCC up to 2.95.x, collect2 would create an import file
13286
# for dependence libraries. The import file would start with
13287
# the line `#! .'. This would cause the generated library to
13288
# depend on `.', always an invalid library. This was fixed in
13289
# development snapshots of GCC prior to 3.0.
13291
aix4 | aix4.[01] | aix4.[01].*)
13292
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13294
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13297
can_build_shared=no
13301
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13302
# soname into executable. Probably we can add versioning support to
13303
# collect2, so additional links can be useful in future.
13304
if test "$aix_use_runtimelinking" = yes; then
13305
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
13306
# instead of lib<name>.a to let people know that these are not
13307
# typical AIX shared libraries.
13308
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13310
# We preserve .a as extension for shared libraries through AIX4.2
13311
# and later when we are not doing run time linking.
13312
library_names_spec='${libname}${release}.a $libname.a'
13313
soname_spec='${libname}${release}${shared_ext}$major'
13315
shlibpath_var=LIBPATH
13320
library_names_spec='$libname.ixlibrary $libname.a'
13321
# Create ${libname}_ixlibrary.a entries in /sys/libs.
13322
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'
13326
library_names_spec='${libname}${shared_ext}'
13327
dynamic_linker="$host_os ld.so"
13328
shlibpath_var=LIBRARY_PATH
13334
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13335
soname_spec='${libname}${release}${shared_ext}$major'
13336
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13337
shlibpath_var=LD_LIBRARY_PATH
13338
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13339
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13340
# the default ld.so.conf also contains /usr/contrib/lib and
13341
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13342
# libtool to hard-code these into programs
13345
cygwin* | mingw* | pw32*)
13346
version_type=windows
13351
case $GCC,$host_os in
13352
yes,cygwin* | yes,mingw* | yes,pw32*)
13353
library_names_spec='$libname.dll.a'
13354
# DLL is installed to $(libdir)/../bin by postinstall_cmds
13355
postinstall_cmds='base_file=`basename \${file}`~
13356
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13357
dldir=$destdir/`dirname \$dlpath`~
13358
test -d \$dldir || mkdir -p \$dldir~
13359
$install_prog $dir/$dlname \$dldir/$dlname~
13360
chmod a+x \$dldir/$dlname'
13361
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13362
dlpath=$dir/\$dldll~
13364
shlibpath_overrides_runpath=yes
13368
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
13369
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13370
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13373
# MinGW DLLs use traditional 'lib' prefix
13374
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13375
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13376
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13377
# It is most probably a Windows format PATH printed by
13378
# mingw gcc, but we are running on Cygwin. Gcc prints its search
13379
# path with ; separators, and with drive letters. We can handle the
13380
# drive letters (cygwin fileutils understands them), so leave them,
13381
# especially as we might pass files found there to a mingw objdump,
13382
# which wouldn't understand a cygwinified path. Ahh.
13383
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13385
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13389
# pw32 DLLs use 'pw' prefix rather than 'lib'
13390
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13396
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13399
dynamic_linker='Win32 ld.exe'
13400
# FIXME: first we should search . and the directory the executable is in
13404
darwin* | rhapsody*)
13405
dynamic_linker="$host_os dyld"
13406
version_type=darwin
13409
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13410
soname_spec='${libname}${release}${major}$shared_ext'
13411
shlibpath_overrides_runpath=yes
13412
shlibpath_var=DYLD_LIBRARY_PATH
13413
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13415
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13422
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13423
soname_spec='${libname}${release}${shared_ext}$major'
13424
shlibpath_var=LD_LIBRARY_PATH
13431
freebsd* | dragonfly*)
13432
# DragonFly does not have aout. When/if they implement a new
13433
# versioning mechanism, adjust this.
13434
if test -x /usr/bin/objformat; then
13435
objformat=`/usr/bin/objformat`
13438
freebsd[123]*) objformat=aout ;;
13439
*) objformat=elf ;;
13442
version_type=freebsd-$objformat
13443
case $version_type in
13445
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13450
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13454
shlibpath_var=LD_LIBRARY_PATH
13457
shlibpath_overrides_runpath=yes
13459
freebsd3.[01]* | freebsdelf3.[01]*)
13460
shlibpath_overrides_runpath=yes
13461
hardcode_into_libs=yes
13463
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13464
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13465
shlibpath_overrides_runpath=no
13466
hardcode_into_libs=yes
13468
*) # from 4.6 on, and DragonFly
13469
shlibpath_overrides_runpath=yes
13470
hardcode_into_libs=yes
13479
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13480
soname_spec='${libname}${release}${shared_ext}$major'
13481
shlibpath_var=LD_LIBRARY_PATH
13482
hardcode_into_libs=yes
13485
hpux9* | hpux10* | hpux11*)
13486
# Give a soname corresponding to the major version so that dld.sl refuses to
13487
# link against other versions.
13494
hardcode_into_libs=yes
13495
dynamic_linker="$host_os dld.so"
13496
shlibpath_var=LD_LIBRARY_PATH
13497
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13498
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13499
soname_spec='${libname}${release}${shared_ext}$major'
13500
if test "X$HPUX_IA64_MODE" = X32; then
13501
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13503
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13505
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13509
hardcode_into_libs=yes
13510
dynamic_linker="$host_os dld.sl"
13511
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13512
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13513
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13514
soname_spec='${libname}${release}${shared_ext}$major'
13515
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13516
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13520
dynamic_linker="$host_os dld.sl"
13521
shlibpath_var=SHLIB_PATH
13522
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13523
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13524
soname_spec='${libname}${release}${shared_ext}$major'
13527
# HP-UX runs *really* slowly unless shared libraries are mode 555.
13528
postinstall_cmds='chmod 555 $lib'
13535
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13536
soname_spec='${libname}${release}${shared_ext}$major'
13537
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13538
shlibpath_var=LD_LIBRARY_PATH
13539
shlibpath_overrides_runpath=no
13540
hardcode_into_libs=yes
13543
irix5* | irix6* | nonstopux*)
13545
nonstopux*) version_type=nonstopux ;;
13547
if test "$lt_cv_prog_gnu_ld" = yes; then
13555
soname_spec='${libname}${release}${shared_ext}$major'
13556
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13558
irix5* | nonstopux*)
13559
libsuff= shlibsuff=
13562
case $LD in # libtool.m4 will add one of these switches to LD
13563
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13564
libsuff= shlibsuff= libmagic=32-bit;;
13565
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13566
libsuff=32 shlibsuff=N32 libmagic=N32;;
13567
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13568
libsuff=64 shlibsuff=64 libmagic=64-bit;;
13569
*) libsuff= shlibsuff= libmagic=never-match;;
13573
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13574
shlibpath_overrides_runpath=no
13575
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13576
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13577
hardcode_into_libs=yes
13580
# No shared lib support for Linux oldld, aout, or coff.
13581
linux*oldld* | linux*aout* | linux*coff*)
13585
# This must be Linux ELF.
13586
linux* | k*bsd*-gnu)
13590
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13591
soname_spec='${libname}${release}${shared_ext}$major'
13592
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13593
shlibpath_var=LD_LIBRARY_PATH
13594
shlibpath_overrides_runpath=no
13595
# This implies no fast_install, which is unacceptable.
13596
# Some rework will be needed to allow for fast_install
13597
# before this can be enabled.
13598
hardcode_into_libs=yes
13600
# Append ld.so.conf contents to the search path
13601
if test -f /etc/ld.so.conf; then
13602
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' ' '`
13603
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13606
# We used to test for /lib/ld.so.1 and disable shared libraries on
13607
# powerpc, because MkLinux only supported shared libraries with the
13608
# GNU dynamic linker. Since this was broken with cross compilers,
13609
# most powerpc-linux boxes support dynamic linking these days and
13610
# people can always --disable-shared, the test was removed, and we
13611
# assume the GNU/Linux dynamic linker is in use.
13612
dynamic_linker='GNU/Linux ld.so'
13619
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13620
soname_spec='${libname}${release}${shared_ext}$major'
13621
shlibpath_var=LD_LIBRARY_PATH
13622
shlibpath_overrides_runpath=no
13623
hardcode_into_libs=yes
13624
dynamic_linker='NetBSD ld.elf_so'
13631
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13632
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13633
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13634
dynamic_linker='NetBSD (a.out) ld.so'
13636
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13637
soname_spec='${libname}${release}${shared_ext}$major'
13638
dynamic_linker='NetBSD ld.elf_so'
13640
shlibpath_var=LD_LIBRARY_PATH
13641
shlibpath_overrides_runpath=yes
13642
hardcode_into_libs=yes
13647
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13648
shlibpath_var=LD_LIBRARY_PATH
13649
shlibpath_overrides_runpath=yes
13656
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13657
soname_spec='${libname}${release}${shared_ext}$major'
13658
shlibpath_var=LD_LIBRARY_PATH
13659
shlibpath_overrides_runpath=yes
13664
sys_lib_dlsearch_path_spec="/usr/lib"
13666
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13668
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13669
*) need_version=no ;;
13671
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13672
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13673
shlibpath_var=LD_LIBRARY_PATH
13674
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13676
openbsd2.[89] | openbsd2.[89].*)
13677
shlibpath_overrides_runpath=no
13680
shlibpath_overrides_runpath=yes
13684
shlibpath_overrides_runpath=yes
13689
libname_spec='$name'
13692
library_names_spec='$libname${shared_ext} $libname.a'
13693
dynamic_linker='OS/2 ld.exe'
13694
shlibpath_var=LIBPATH
13697
osf3* | osf4* | osf5*)
13701
soname_spec='${libname}${release}${shared_ext}$major'
13702
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13703
shlibpath_var=LD_LIBRARY_PATH
13704
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13705
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13716
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13717
soname_spec='${libname}${release}${shared_ext}$major'
13718
shlibpath_var=LD_LIBRARY_PATH
13719
shlibpath_overrides_runpath=yes
13720
hardcode_into_libs=yes
13721
# ldd complains unless libraries are executable
13722
postinstall_cmds='chmod +x $lib'
13727
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13728
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13729
shlibpath_var=LD_LIBRARY_PATH
13730
shlibpath_overrides_runpath=yes
13731
if test "$with_gnu_ld" = yes; then
13739
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13740
soname_spec='${libname}${release}${shared_ext}$major'
13741
shlibpath_var=LD_LIBRARY_PATH
13742
case $host_vendor in
13744
shlibpath_overrides_runpath=no
13746
export_dynamic_flag_spec='${wl}-Blargedynsym'
13747
runpath_var=LD_RUN_PATH
13755
shlibpath_overrides_runpath=no
13756
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13762
if test -d /usr/nec ;then
13764
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13765
soname_spec='$libname${shared_ext}.$major'
13766
shlibpath_var=LD_LIBRARY_PATH
13770
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13771
version_type=freebsd-elf
13774
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13775
soname_spec='${libname}${release}${shared_ext}$major'
13776
shlibpath_var=LD_LIBRARY_PATH
13777
hardcode_into_libs=yes
13778
if test "$with_gnu_ld" = yes; then
13779
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13780
shlibpath_overrides_runpath=no
13782
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13783
shlibpath_overrides_runpath=yes
13786
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13790
sys_lib_dlsearch_path_spec='/usr/lib'
13795
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13796
soname_spec='${libname}${release}${shared_ext}$major'
13797
shlibpath_var=LD_LIBRARY_PATH
13804
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13805
echo "${ECHO_T}$dynamic_linker" >&6; }
13806
test "$dynamic_linker" = no && can_build_shared=no
13808
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13809
echo $ECHO_N "(cached) $ECHO_C" >&6
13811
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13814
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13815
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13816
echo $ECHO_N "(cached) $ECHO_C" >&6
13818
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13821
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13823
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13824
if test "$GCC" = yes; then
13825
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13828
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13829
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13830
hardcode_action_CXX=
13831
if test -n "$hardcode_libdir_flag_spec_CXX" || \
13832
test -n "$runpath_var_CXX" || \
13833
test "X$hardcode_automatic_CXX" = "Xyes" ; then
13835
# We can hardcode non-existant directories.
13836
if test "$hardcode_direct_CXX" != no &&
13837
# If the only mechanism to avoid hardcoding is shlibpath_var, we
13838
# have to relink, otherwise we might link with an installed library
13839
# when we should be linking with a yet-to-be-installed one
13840
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13841
test "$hardcode_minus_L_CXX" != no; then
13842
# Linking always hardcodes the temporary library directory.
13843
hardcode_action_CXX=relink
13845
# We can link without hardcoding, and we can hardcode nonexisting dirs.
13846
hardcode_action_CXX=immediate
13849
# We cannot hardcode anything, or else we can only hardcode existing
13851
hardcode_action_CXX=unsupported
13853
{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13854
echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13856
if test "$hardcode_action_CXX" = relink; then
13857
# Fast installation is not supported
13858
enable_fast_install=no
13859
elif test "$shlibpath_overrides_runpath" = yes ||
13860
test "$enable_shared" = no; then
13861
# Fast installation is not necessary
13862
enable_fast_install=needless
13866
# The else clause should only fire when bootstrapping the
13867
# libtool distribution, otherwise you forgot to ship ltmain.sh
13868
# with your package, and you will get complaints that there are
13869
# no rules to generate ltmain.sh.
13870
if test -f "$ltmain"; then
13871
# See if we are running on zsh, and set the options which allow our commands through
13872
# without removal of \ escapes.
13873
if test -n "${ZSH_VERSION+set}" ; then
13874
setopt NO_GLOB_SUBST
13876
# Now quote all the things that may contain metacharacters while being
13877
# careful not to overquote the AC_SUBSTed values. We take copies of the
13878
# variables and quote the copies for generation of the libtool script.
13879
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13881
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13882
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13883
deplibs_check_method reload_flag reload_cmds need_locks \
13884
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13885
lt_cv_sys_global_symbol_to_c_name_address \
13886
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13887
old_postinstall_cmds old_postuninstall_cmds \
13891
lt_prog_compiler_wl_CXX \
13892
lt_prog_compiler_pic_CXX \
13893
lt_prog_compiler_static_CXX \
13894
lt_prog_compiler_no_builtin_flag_CXX \
13895
export_dynamic_flag_spec_CXX \
13896
thread_safe_flag_spec_CXX \
13897
whole_archive_flag_spec_CXX \
13898
enable_shared_with_static_runtimes_CXX \
13899
old_archive_cmds_CXX \
13900
old_archive_from_new_cmds_CXX \
13901
predep_objects_CXX \
13902
postdep_objects_CXX \
13905
compiler_lib_search_path_CXX \
13906
compiler_lib_search_dirs_CXX \
13908
archive_expsym_cmds_CXX \
13909
postinstall_cmds_CXX \
13910
postuninstall_cmds_CXX \
13911
old_archive_from_expsyms_cmds_CXX \
13912
allow_undefined_flag_CXX \
13913
no_undefined_flag_CXX \
13914
export_symbols_cmds_CXX \
13915
hardcode_libdir_flag_spec_CXX \
13916
hardcode_libdir_flag_spec_ld_CXX \
13917
hardcode_libdir_separator_CXX \
13918
hardcode_automatic_CXX \
13920
module_expsym_cmds_CXX \
13921
lt_cv_prog_compiler_c_o_CXX \
13922
fix_srcfile_path_CXX \
13923
exclude_expsyms_CXX \
13924
include_expsyms_CXX; do
13927
old_archive_cmds_CXX | \
13928
old_archive_from_new_cmds_CXX | \
13929
archive_cmds_CXX | \
13930
archive_expsym_cmds_CXX | \
13931
module_cmds_CXX | \
13932
module_expsym_cmds_CXX | \
13933
old_archive_from_expsyms_cmds_CXX | \
13934
export_symbols_cmds_CXX | \
13935
extract_expsyms_cmds | reload_cmds | finish_cmds | \
13936
postinstall_cmds | postuninstall_cmds | \
13937
old_postinstall_cmds | old_postuninstall_cmds | \
13938
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13939
# Double-quote double-evaled strings.
13940
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13943
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13949
*'\$0 --fallback-echo"')
13950
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13956
cat <<__EOF__ >> "$cfgfile"
13957
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13959
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13961
# Shell to use when invoking shell scripts.
13964
# Whether or not to build shared libraries.
13965
build_libtool_libs=$enable_shared
13967
# Whether or not to build static libraries.
13968
build_old_libs=$enable_static
13970
# Whether or not to add -lc for building shared libraries.
13971
build_libtool_need_lc=$archive_cmds_need_lc_CXX
13973
# Whether or not to disallow shared libs when runtime libs are static
13974
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13976
# Whether or not to optimize for fast installation.
13977
fast_install=$enable_fast_install
13980
host_alias=$host_alias
13984
# The build system.
13985
build_alias=$build_alias
13989
# An echo program that does not interpret backslashes.
13994
AR_FLAGS=$lt_AR_FLAGS
13999
# LTCC compiler flags.
14000
LTCFLAGS=$lt_LTCFLAGS
14002
# A language-specific compiler.
14003
CC=$lt_compiler_CXX
14005
# Is the compiler the GNU C compiler?
14011
# The linker used to build libraries.
14014
# Whether we need hard or soft links.
14017
# A BSD-compatible nm program.
14020
# A symbol stripping program
14023
# Used to examine libraries when file_magic_cmd begins "file"
14024
MAGIC_CMD=$MAGIC_CMD
14026
# Used on cygwin: DLL creation program.
14029
# Used on cygwin: object dumper.
14032
# Used on cygwin: assembler.
14035
# The name of the directory that contains temporary libtool files.
14038
# How to create reloadable object files.
14039
reload_flag=$lt_reload_flag
14040
reload_cmds=$lt_reload_cmds
14042
# How to pass a linker flag through the compiler.
14043
wl=$lt_lt_prog_compiler_wl_CXX
14045
# Object file suffix (normally "o").
14046
objext="$ac_objext"
14048
# Old archive suffix (normally "a").
14051
# Shared library suffix (normally ".so").
14052
shrext_cmds='$shrext_cmds'
14054
# Executable file suffix (normally "").
14057
# Additional compiler flags for building library objects.
14058
pic_flag=$lt_lt_prog_compiler_pic_CXX
14061
# What is the maximum length of a command?
14062
max_cmd_len=$lt_cv_sys_max_cmd_len
14064
# Does compiler simultaneously support -c and -o options?
14065
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14067
# Must we lock files when doing compilation?
14068
need_locks=$lt_need_locks
14070
# Do we need the lib prefix for modules?
14071
need_lib_prefix=$need_lib_prefix
14073
# Do we need a version for libraries?
14074
need_version=$need_version
14076
# Whether dlopen is supported.
14077
dlopen_support=$enable_dlopen
14079
# Whether dlopen of programs is supported.
14080
dlopen_self=$enable_dlopen_self
14082
# Whether dlopen of statically linked programs is supported.
14083
dlopen_self_static=$enable_dlopen_self_static
14085
# Compiler flag to prevent dynamic linking.
14086
link_static_flag=$lt_lt_prog_compiler_static_CXX
14088
# Compiler flag to turn off builtin functions.
14089
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14091
# Compiler flag to allow reflexive dlopens.
14092
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14094
# Compiler flag to generate shared objects directly from archives.
14095
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14097
# Compiler flag to generate thread-safe objects.
14098
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14100
# Library versioning type.
14101
version_type=$version_type
14103
# Format of library name prefix.
14104
libname_spec=$lt_libname_spec
14106
# List of archive names. First name is the real one, the rest are links.
14107
# The last name is the one that the linker finds with -lNAME.
14108
library_names_spec=$lt_library_names_spec
14110
# The coded name of the library, if different from the real name.
14111
soname_spec=$lt_soname_spec
14113
# Commands used to build and install an old-style archive.
14115
old_archive_cmds=$lt_old_archive_cmds_CXX
14116
old_postinstall_cmds=$lt_old_postinstall_cmds
14117
old_postuninstall_cmds=$lt_old_postuninstall_cmds
14119
# Create an old-style archive from a shared archive.
14120
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14122
# Create a temporary old-style archive to link instead of a shared archive.
14123
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14125
# Commands used to build and install a shared archive.
14126
archive_cmds=$lt_archive_cmds_CXX
14127
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14128
postinstall_cmds=$lt_postinstall_cmds
14129
postuninstall_cmds=$lt_postuninstall_cmds
14131
# Commands used to build a loadable module (assumed same as above if empty)
14132
module_cmds=$lt_module_cmds_CXX
14133
module_expsym_cmds=$lt_module_expsym_cmds_CXX
14135
# Commands to strip libraries.
14136
old_striplib=$lt_old_striplib
14137
striplib=$lt_striplib
14139
# Dependencies to place before the objects being linked to create a
14141
predep_objects=$lt_predep_objects_CXX
14143
# Dependencies to place after the objects being linked to create a
14145
postdep_objects=$lt_postdep_objects_CXX
14147
# Dependencies to place before the objects being linked to create a
14149
predeps=$lt_predeps_CXX
14151
# Dependencies to place after the objects being linked to create a
14153
postdeps=$lt_postdeps_CXX
14155
# The directories searched by this compiler when creating a shared
14157
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
14159
# The library search path used internally by the compiler when linking
14160
# a shared library.
14161
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14163
# Method to check whether dependent libraries are shared objects.
14164
deplibs_check_method=$lt_deplibs_check_method
14166
# Command to use when deplibs_check_method == file_magic.
14167
file_magic_cmd=$lt_file_magic_cmd
14169
# Flag that allows shared libraries with undefined symbols to be built.
14170
allow_undefined_flag=$lt_allow_undefined_flag_CXX
14172
# Flag that forces no undefined symbols.
14173
no_undefined_flag=$lt_no_undefined_flag_CXX
14175
# Commands used to finish a libtool library installation in a directory.
14176
finish_cmds=$lt_finish_cmds
14178
# Same as above, but a single script fragment to be evaled but not shown.
14179
finish_eval=$lt_finish_eval
14181
# Take the output of nm and produce a listing of raw symbols and C names.
14182
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14184
# Transform the output of nm in a proper C declaration
14185
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14187
# Transform the output of nm in a C name address pair
14188
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14190
# This is the shared library runtime path variable.
14191
runpath_var=$runpath_var
14193
# This is the shared library path variable.
14194
shlibpath_var=$shlibpath_var
14196
# Is shlibpath searched before the hard-coded library search path?
14197
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14199
# How to hardcode a shared library path into an executable.
14200
hardcode_action=$hardcode_action_CXX
14202
# Whether we should hardcode library paths into libraries.
14203
hardcode_into_libs=$hardcode_into_libs
14205
# Flag to hardcode \$libdir into a binary during linking.
14206
# This must work even if \$libdir does not exist.
14207
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14209
# If ld is used when linking, flag to hardcode \$libdir into
14210
# a binary during linking. This must work even if \$libdir does
14212
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14214
# Whether we need a single -rpath flag with a separated argument.
14215
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14217
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14218
# resulting binary.
14219
hardcode_direct=$hardcode_direct_CXX
14221
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14222
# resulting binary.
14223
hardcode_minus_L=$hardcode_minus_L_CXX
14225
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14226
# the resulting binary.
14227
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14229
# Set to yes if building a shared library automatically hardcodes DIR into the library
14230
# and all subsequent libraries and executables linked against it.
14231
hardcode_automatic=$hardcode_automatic_CXX
14233
# Variables whose values should be saved in libtool wrapper scripts and
14234
# restored at relink time.
14235
variables_saved_for_relink="$variables_saved_for_relink"
14237
# Whether libtool must link a program against all its dependency libraries.
14238
link_all_deplibs=$link_all_deplibs_CXX
14240
# Compile-time system search path for libraries
14241
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14243
# Run-time system search path for libraries
14244
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14246
# Fix the shell variable \$srcfile for the compiler.
14247
fix_srcfile_path=$lt_fix_srcfile_path
14249
# Set to yes if exported symbols are required.
14250
always_export_symbols=$always_export_symbols_CXX
14252
# The commands to list exported symbols.
14253
export_symbols_cmds=$lt_export_symbols_cmds_CXX
14255
# The commands to extract the exported symbol list from a shared archive.
14256
extract_expsyms_cmds=$lt_extract_expsyms_cmds
14258
# Symbols that should not be listed in the preloaded symbols.
14259
exclude_expsyms=$lt_exclude_expsyms_CXX
14261
# Symbols that must always be exported.
14262
include_expsyms=$lt_include_expsyms_CXX
14264
# ### END LIBTOOL TAG CONFIG: $tagname
14270
# If there is no Makefile yet, we rely on a make rule to execute
14271
# `config.status --recheck' to rerun these tests and create the
14272
# libtool script then.
14273
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14274
if test -f "$ltmain_in"; then
14275
test -f Makefile && make "$ltmain"
14281
ac_cpp='$CPP $CPPFLAGS'
14282
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14283
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14284
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14290
with_gnu_ldcxx=$with_gnu_ld
14291
with_gnu_ld=$lt_save_with_gnu_ld
14292
lt_cv_path_LDCXX=$lt_cv_path_LD
14293
lt_cv_path_LD=$lt_save_path_LD
14294
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14295
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14303
if test -n "$F77" && test "X$F77" != "Xno"; then
14306
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14307
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14308
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14311
archive_cmds_need_lc_F77=no
14312
allow_undefined_flag_F77=
14313
always_export_symbols_F77=no
14314
archive_expsym_cmds_F77=
14315
export_dynamic_flag_spec_F77=
14316
hardcode_direct_F77=no
14317
hardcode_libdir_flag_spec_F77=
14318
hardcode_libdir_flag_spec_ld_F77=
14319
hardcode_libdir_separator_F77=
14320
hardcode_minus_L_F77=no
14321
hardcode_automatic_F77=no
14323
module_expsym_cmds_F77=
14324
link_all_deplibs_F77=unknown
14325
old_archive_cmds_F77=$old_archive_cmds
14326
no_undefined_flag_F77=
14327
whole_archive_flag_spec_F77=
14328
enable_shared_with_static_runtimes_F77=no
14330
# Source file extension for f77 test sources.
14333
# Object file extension for compiled f77 test sources.
14337
# Code to be used in simple compile tests
14338
lt_simple_compile_test_code="\
14344
# Code to be used in simple link tests
14345
lt_simple_link_test_code="\
14350
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14352
# If no C compiler was specified, use CC.
14355
# If no C compiler flags were specified, use CFLAGS.
14356
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14358
# Allow CC to be a program name with arguments.
14362
# save warnings/boilerplate of simple test code
14363
ac_outfile=conftest.$ac_objext
14364
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14365
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14366
_lt_compiler_boilerplate=`cat conftest.err`
14369
ac_outfile=conftest.$ac_objext
14370
echo "$lt_simple_link_test_code" >conftest.$ac_ext
14371
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14372
_lt_linker_boilerplate=`cat conftest.err`
14376
# Allow CC to be a program name with arguments.
14381
for cc_temp in $compiler""; do
14383
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14384
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14389
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14392
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14393
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14394
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
14395
echo "${ECHO_T}$can_build_shared" >&6; }
14397
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14398
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14399
test "$can_build_shared" = "no" && enable_shared=no
14401
# On AIX, shared libraries and static libraries use the same namespace, and
14402
# are all built from PIC.
14405
test "$enable_shared" = yes && enable_static=no
14406
if test -n "$RANLIB"; then
14407
archive_cmds="$archive_cmds~\$RANLIB \$lib"
14408
postinstall_cmds='$RANLIB $lib'
14412
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14413
test "$enable_shared" = yes && enable_static=no
14417
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
14418
echo "${ECHO_T}$enable_shared" >&6; }
14420
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14421
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14422
# Make sure either enable_shared or enable_static is yes.
14423
test "$enable_shared" = yes || enable_static=yes
14424
{ echo "$as_me:$LINENO: result: $enable_static" >&5
14425
echo "${ECHO_T}$enable_static" >&6; }
14430
lt_prog_compiler_wl_F77=
14431
lt_prog_compiler_pic_F77=
14432
lt_prog_compiler_static_F77=
14434
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14435
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14437
if test "$GCC" = yes; then
14438
lt_prog_compiler_wl_F77='-Wl,'
14439
lt_prog_compiler_static_F77='-static'
14443
# All AIX code is PIC.
14444
if test "$host_cpu" = ia64; then
14445
# AIX 5 now supports IA64 processor
14446
lt_prog_compiler_static_F77='-Bstatic'
14451
# FIXME: we need at least 68020 code to build shared libraries, but
14452
# adding the `-m68020' flag to GCC prevents building anything better,
14454
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14457
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14458
# PIC is the default for these OSes.
14461
mingw* | cygwin* | pw32* | os2*)
14462
# This hack is so that the source file can tell whether it is being
14463
# built for inclusion in a dll (and should export symbols for example).
14464
# Although the cygwin gcc ignores -fPIC, still need this for old-style
14465
# (--disable-auto-import) libraries
14466
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14469
darwin* | rhapsody*)
14470
# PIC is the default on this platform
14471
# Common symbols not allowed in MH_DYLIB files
14472
lt_prog_compiler_pic_F77='-fno-common'
14476
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
14477
# Instead, we relocate shared libraries at runtime.
14481
# Just because we use GCC doesn't mean we suddenly get shared libraries
14482
# on systems that don't support them.
14483
lt_prog_compiler_can_build_shared_F77=no
14488
if test -d /usr/nec; then
14489
lt_prog_compiler_pic_F77=-Kconform_pic
14494
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14495
# not for PA HP-UX.
14501
lt_prog_compiler_pic_F77='-fPIC'
14507
lt_prog_compiler_pic_F77='-fPIC'
14511
# PORTME Check for flag to pass linker flags through the system compiler.
14514
lt_prog_compiler_wl_F77='-Wl,'
14515
if test "$host_cpu" = ia64; then
14516
# AIX 5 now supports IA64 processor
14517
lt_prog_compiler_static_F77='-Bstatic'
14519
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14523
# PIC is the default on this platform
14524
# Common symbols not allowed in MH_DYLIB files
14525
case $cc_basename in
14527
lt_prog_compiler_pic_F77='-qnocommon'
14528
lt_prog_compiler_wl_F77='-Wl,'
14533
mingw* | cygwin* | pw32* | os2*)
14534
# This hack is so that the source file can tell whether it is being
14535
# built for inclusion in a dll (and should export symbols for example).
14536
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14539
hpux9* | hpux10* | hpux11*)
14540
lt_prog_compiler_wl_F77='-Wl,'
14541
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14542
# not for PA HP-UX.
14548
lt_prog_compiler_pic_F77='+Z'
14551
# Is there a better lt_prog_compiler_static that works with the bundled CC?
14552
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14555
irix5* | irix6* | nonstopux*)
14556
lt_prog_compiler_wl_F77='-Wl,'
14557
# PIC (with -KPIC) is the default.
14558
lt_prog_compiler_static_F77='-non_shared'
14562
lt_prog_compiler_pic_F77='-KPIC'
14563
lt_prog_compiler_static_F77='-Bstatic'
14566
linux* | k*bsd*-gnu)
14567
case $cc_basename in
14569
lt_prog_compiler_wl_F77='-Wl,'
14570
lt_prog_compiler_pic_F77='-KPIC'
14571
lt_prog_compiler_static_F77='-static'
14573
pgcc* | pgf77* | pgf90* | pgf95*)
14574
# Portland Group compilers (*not* the Pentium gcc compiler,
14575
# which looks to be a dead project)
14576
lt_prog_compiler_wl_F77='-Wl,'
14577
lt_prog_compiler_pic_F77='-fpic'
14578
lt_prog_compiler_static_F77='-Bstatic'
14581
lt_prog_compiler_wl_F77='-Wl,'
14582
# All Alpha code is PIC.
14583
lt_prog_compiler_static_F77='-non_shared'
14586
case `$CC -V 2>&1 | sed 5q` in
14589
lt_prog_compiler_pic_F77='-KPIC'
14590
lt_prog_compiler_static_F77='-Bstatic'
14591
lt_prog_compiler_wl_F77='-Wl,'
14594
# Sun Fortran 8.3 passes all unrecognized flags to the linker
14595
lt_prog_compiler_pic_F77='-KPIC'
14596
lt_prog_compiler_static_F77='-Bstatic'
14597
lt_prog_compiler_wl_F77=''
14604
osf3* | osf4* | osf5*)
14605
lt_prog_compiler_wl_F77='-Wl,'
14606
# All OSF/1 code is PIC.
14607
lt_prog_compiler_static_F77='-non_shared'
14611
lt_prog_compiler_static_F77='-non_shared'
14615
lt_prog_compiler_pic_F77='-KPIC'
14616
lt_prog_compiler_static_F77='-Bstatic'
14617
case $cc_basename in
14618
f77* | f90* | f95*)
14619
lt_prog_compiler_wl_F77='-Qoption ld ';;
14621
lt_prog_compiler_wl_F77='-Wl,';;
14626
lt_prog_compiler_wl_F77='-Qoption ld '
14627
lt_prog_compiler_pic_F77='-PIC'
14628
lt_prog_compiler_static_F77='-Bstatic'
14631
sysv4 | sysv4.2uw2* | sysv4.3*)
14632
lt_prog_compiler_wl_F77='-Wl,'
14633
lt_prog_compiler_pic_F77='-KPIC'
14634
lt_prog_compiler_static_F77='-Bstatic'
14638
if test -d /usr/nec ;then
14639
lt_prog_compiler_pic_F77='-Kconform_pic'
14640
lt_prog_compiler_static_F77='-Bstatic'
14644
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14645
lt_prog_compiler_wl_F77='-Wl,'
14646
lt_prog_compiler_pic_F77='-KPIC'
14647
lt_prog_compiler_static_F77='-Bstatic'
14651
lt_prog_compiler_wl_F77='-Wl,'
14652
lt_prog_compiler_can_build_shared_F77=no
14656
lt_prog_compiler_pic_F77='-pic'
14657
lt_prog_compiler_static_F77='-Bstatic'
14661
lt_prog_compiler_can_build_shared_F77=no
14666
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14667
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14670
# Check to make sure the PIC flag actually works.
14672
if test -n "$lt_prog_compiler_pic_F77"; then
14674
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14675
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14676
if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14677
echo $ECHO_N "(cached) $ECHO_C" >&6
14679
lt_cv_prog_compiler_pic_works_F77=no
14680
ac_outfile=conftest.$ac_objext
14681
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14682
lt_compiler_flag="$lt_prog_compiler_pic_F77"
14683
# Insert the option either (1) after the last *FLAGS variable, or
14684
# (2) before a word containing "conftest.", or (3) at the end.
14685
# Note that $ac_compile itself does not contain backslashes and begins
14686
# with a dollar sign (not a hyphen), so the echo should work correctly.
14687
# The option is referenced via a variable to avoid confusing sed.
14688
lt_compile=`echo "$ac_compile" | $SED \
14689
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14690
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14691
-e 's:$: $lt_compiler_flag:'`
14692
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
14693
(eval "$lt_compile" 2>conftest.err)
14695
cat conftest.err >&5
14696
echo "$as_me:__oline__: \$? = $ac_status" >&5
14697
if (exit $ac_status) && test -s "$ac_outfile"; then
14698
# The compiler can only warn and ignore the option if not recognized
14699
# So say no if there are warnings other than the usual output.
14700
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14701
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14702
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14703
lt_cv_prog_compiler_pic_works_F77=yes
14709
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14710
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
14712
if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14713
case $lt_prog_compiler_pic_F77 in
14715
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14718
lt_prog_compiler_pic_F77=
14719
lt_prog_compiler_can_build_shared_F77=no
14724
# For platforms which do not support PIC, -DPIC is meaningless:
14726
lt_prog_compiler_pic_F77=
14729
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14734
# Check to make sure the static flag actually works.
14736
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14737
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14738
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14739
if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14740
echo $ECHO_N "(cached) $ECHO_C" >&6
14742
lt_cv_prog_compiler_static_works_F77=no
14743
save_LDFLAGS="$LDFLAGS"
14744
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14745
echo "$lt_simple_link_test_code" > conftest.$ac_ext
14746
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14747
# The linker can only warn and ignore the option if not recognized
14748
# So say no if there are warnings
14749
if test -s conftest.err; then
14750
# Append any errors to the config.log.
14751
cat conftest.err 1>&5
14752
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14753
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14754
if diff conftest.exp conftest.er2 >/dev/null; then
14755
lt_cv_prog_compiler_static_works_F77=yes
14758
lt_cv_prog_compiler_static_works_F77=yes
14762
LDFLAGS="$save_LDFLAGS"
14765
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14766
echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
14768
if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14771
lt_prog_compiler_static_F77=
14775
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14776
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14777
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14778
echo $ECHO_N "(cached) $ECHO_C" >&6
14780
lt_cv_prog_compiler_c_o_F77=no
14781
$rm -r conftest 2>/dev/null
14785
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14787
lt_compiler_flag="-o out/conftest2.$ac_objext"
14788
# Insert the option either (1) after the last *FLAGS variable, or
14789
# (2) before a word containing "conftest.", or (3) at the end.
14790
# Note that $ac_compile itself does not contain backslashes and begins
14791
# with a dollar sign (not a hyphen), so the echo should work correctly.
14792
lt_compile=`echo "$ac_compile" | $SED \
14793
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14794
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14795
-e 's:$: $lt_compiler_flag:'`
14796
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
14797
(eval "$lt_compile" 2>out/conftest.err)
14799
cat out/conftest.err >&5
14800
echo "$as_me:__oline__: \$? = $ac_status" >&5
14801
if (exit $ac_status) && test -s out/conftest2.$ac_objext
14803
# The compiler can only warn and ignore the option if not recognized
14804
# So say no if there are warnings
14805
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14806
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14807
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14808
lt_cv_prog_compiler_c_o_F77=yes
14813
# SGI C++ compiler will create directory out/ii_files/ for
14814
# template instantiation
14815
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14816
$rm out/* && rmdir out
14822
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14823
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14826
hard_links="nottested"
14827
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14828
# do not overwrite the value of need_locks provided by the user
14829
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14830
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14833
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14835
ln conftest.a conftest.b 2>&5 || hard_links=no
14836
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14837
{ echo "$as_me:$LINENO: result: $hard_links" >&5
14838
echo "${ECHO_T}$hard_links" >&6; }
14839
if test "$hard_links" = no; then
14840
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14841
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14848
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14849
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14852
allow_undefined_flag_F77=
14853
enable_shared_with_static_runtimes_F77=no
14855
archive_expsym_cmds_F77=
14856
old_archive_From_new_cmds_F77=
14857
old_archive_from_expsyms_cmds_F77=
14858
export_dynamic_flag_spec_F77=
14859
whole_archive_flag_spec_F77=
14860
thread_safe_flag_spec_F77=
14861
hardcode_libdir_flag_spec_F77=
14862
hardcode_libdir_flag_spec_ld_F77=
14863
hardcode_libdir_separator_F77=
14864
hardcode_direct_F77=no
14865
hardcode_minus_L_F77=no
14866
hardcode_shlibpath_var_F77=unsupported
14867
link_all_deplibs_F77=unknown
14868
hardcode_automatic_F77=no
14870
module_expsym_cmds_F77=
14871
always_export_symbols_F77=no
14872
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14873
# include_expsyms should be a list of space-separated symbols to be *always*
14874
# included in the symbol list
14875
include_expsyms_F77=
14876
# exclude_expsyms can be an extended regexp of symbols to exclude
14877
# it will be wrapped by ` (' and `)$', so one must not match beginning or
14878
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14879
# as well as any symbol that contains `d'.
14880
exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14881
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14882
# platforms (ab)use it in PIC code, but their linkers get confused if
14883
# the symbol is explicitly referenced. Since portable code cannot
14884
# rely on this symbol name, it's probably fine to never include it in
14885
# preloaded symbol tables.
14886
# Exclude shared library initialization/finalization symbols.
14887
extract_expsyms_cmds=
14888
# Just being paranoid about ensuring that cc_basename is set.
14889
for cc_temp in $compiler""; do
14891
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14892
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14897
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14900
cygwin* | mingw* | pw32*)
14901
# FIXME: the MSVC++ port hasn't been tested in a loooong time
14902
# When not using gcc, we currently assume that we are using
14903
# Microsoft Visual C++.
14904
if test "$GCC" != yes; then
14909
# we just hope/assume this is gcc and not c89 (= MSVC++)
14918
if test "$with_gnu_ld" = yes; then
14919
# If archive_cmds runs LD, not CC, wlarc should be empty
14922
# Set some defaults for GNU ld with shared library support. These
14923
# are reset later if shared libraries are not supported. Putting them
14924
# here allows them to be overridden if necessary.
14925
runpath_var=LD_RUN_PATH
14926
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14927
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14928
# ancient GNU ld didn't support --whole-archive et. al.
14929
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14930
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14932
whole_archive_flag_spec_F77=
14934
supports_anon_versioning=no
14935
case `$LD -v 2>/dev/null` in
14936
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14937
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14938
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14939
*\ 2.11.*) ;; # other 2.11 versions
14940
*) supports_anon_versioning=yes ;;
14943
# See if GNU ld supports shared libraries.
14946
# On AIX/PPC, the GNU linker is very broken
14947
if test "$host_cpu" != ia64; then
14951
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14952
*** to be unable to reliably create shared libraries on AIX.
14953
*** Therefore, libtool is disabling shared libraries support. If you
14954
*** really care for shared libraries, you may want to modify your PATH
14955
*** so that a non-GNU linker is found, and then restart.
14962
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)'
14963
hardcode_libdir_flag_spec_F77='-L$libdir'
14964
hardcode_minus_L_F77=yes
14966
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14967
# that the semantics of dynamic libraries on AmigaOS, at least up
14968
# to version 4, is to share data among multiple programs linked
14969
# with the same dynamic library. Since this doesn't match the
14970
# behavior of shared libraries on other platforms, we can't use
14976
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14977
allow_undefined_flag_F77=unsupported
14978
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14979
# support --undefined. This deserves some investigation. FIXME
14980
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14986
cygwin* | mingw* | pw32*)
14987
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14988
# as there is no search path for DLLs.
14989
hardcode_libdir_flag_spec_F77='-L$libdir'
14990
allow_undefined_flag_F77=unsupported
14991
always_export_symbols_F77=no
14992
enable_shared_with_static_runtimes_F77=yes
14993
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14995
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14996
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14997
# If the export-symbols file already is a .def file (1st line
14998
# is EXPORTS), use it as is; otherwise, prepend...
14999
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15000
cp $export_symbols $output_objdir/$soname.def;
15002
echo EXPORTS > $output_objdir/$soname.def;
15003
cat $export_symbols >> $output_objdir/$soname.def;
15005
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15012
hardcode_direct_F77=no
15013
hardcode_shlibpath_var_F77=no
15014
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15015
export_dynamic_flag_spec_F77='${wl}-E'
15016
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15017
# Instead, shared libraries are loaded at an image base (0x10000000 by
15018
# default) and relocated if they conflict, which is a slow very memory
15019
# consuming and fragmenting process. To avoid this, we pick a random,
15020
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15021
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
15022
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'
15023
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'
15026
gnu* | linux* | k*bsd*-gnu)
15027
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15029
case $cc_basename,$host_cpu in
15030
pgcc*) # Portland Group C compiler
15031
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'
15032
tmp_addflag=' $pic_flag'
15034
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15035
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'
15036
tmp_addflag=' $pic_flag -Mnomain' ;;
15037
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15038
tmp_addflag=' -i_dynamic' ;;
15039
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15040
tmp_addflag=' -i_dynamic -nofor_main' ;;
15041
ifc* | ifort*) # Intel Fortran compiler
15042
tmp_addflag=' -nofor_main' ;;
15044
case `$CC -V 2>&1 | sed 5q` in
15045
*Sun\ C*) # Sun C 5.9
15046
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'
15047
tmp_sharedflag='-G' ;;
15048
*Sun\ F*) # Sun Fortran 8.3
15049
tmp_sharedflag='-G' ;;
15051
tmp_sharedflag='-shared' ;;
15053
archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15055
if test $supports_anon_versioning = yes; then
15056
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15057
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15058
$echo "local: *; };" >> $output_objdir/$libname.ver~
15059
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15061
link_all_deplibs_F77=no
15067
netbsd* | netbsdelf*-gnu)
15068
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15069
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15072
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15073
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15078
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15082
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15083
*** create shared libraries on Solaris systems. Therefore, libtool
15084
*** is disabling shared libraries support. We urge you to upgrade GNU
15085
*** binutils to release 2.9.1 or newer. Another option is to modify
15086
*** your PATH or compiler configuration so that the native linker is
15087
*** used, and then restart.
15090
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15091
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15092
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15098
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15099
case `$LD -v 2>&1` in
15100
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15104
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15105
*** reliably create shared libraries on SCO systems. Therefore, libtool
15106
*** is disabling shared libraries support. We urge you to upgrade GNU
15107
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15108
*** your PATH or compiler configuration so that the native linker is
15109
*** used, and then restart.
15114
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15115
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15116
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15117
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15126
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15128
hardcode_direct_F77=yes
15129
hardcode_shlibpath_var_F77=no
15133
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15134
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15135
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15142
if test "$ld_shlibs_F77" = no; then
15144
hardcode_libdir_flag_spec_F77=
15145
export_dynamic_flag_spec_F77=
15146
whole_archive_flag_spec_F77=
15149
# PORTME fill in a description of your system's linker (not GNU ld)
15152
allow_undefined_flag_F77=unsupported
15153
always_export_symbols_F77=yes
15154
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'
15155
# Note: this linker hardcodes the directories in LIBPATH if there
15156
# are no directories specified by -L.
15157
hardcode_minus_L_F77=yes
15158
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15159
# Neither direct hardcoding nor static linking is supported with a
15161
hardcode_direct_F77=unsupported
15166
if test "$host_cpu" = ia64; then
15167
# On IA64, the linker does run time linking by default, so we don't
15168
# have to do anything special.
15169
aix_use_runtimelinking=no
15170
exp_sym_flag='-Bexport'
15173
# If we're using GNU nm, then we don't want the "-C" option.
15174
# -C means demangle to AIX nm, but means don't demangle with GNU nm
15175
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15176
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'
15178
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'
15180
aix_use_runtimelinking=no
15182
# Test if we are trying to use run time linking or normal
15183
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15184
# need to do runtime linking.
15185
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15186
for ld_flag in $LDFLAGS; do
15187
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15188
aix_use_runtimelinking=yes
15195
exp_sym_flag='-bexport'
15196
no_entry_flag='-bnoentry'
15199
# When large executables or shared objects are built, AIX ld can
15200
# have problems creating the table of contents. If linking a library
15201
# or program results in "error TOC overflow" add -mminimal-toc to
15202
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15203
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15205
archive_cmds_F77=''
15206
hardcode_direct_F77=yes
15207
hardcode_libdir_separator_F77=':'
15208
link_all_deplibs_F77=yes
15210
if test "$GCC" = yes; then
15211
case $host_os in aix4.[012]|aix4.[012].*)
15212
# We only want to do this on AIX 4.2 and lower, the check
15213
# below for broken collect2 doesn't work under 4.3+
15214
collect2name=`${CC} -print-prog-name=collect2`
15215
if test -f "$collect2name" && \
15216
strings "$collect2name" | grep resolve_lib_name >/dev/null
15218
# We have reworked collect2
15221
# We have old collect2
15222
hardcode_direct_F77=unsupported
15223
# It fails to find uninstalled libraries when the uninstalled
15224
# path is not listed in the libpath. Setting hardcode_minus_L
15225
# to unsupported forces relinking
15226
hardcode_minus_L_F77=yes
15227
hardcode_libdir_flag_spec_F77='-L$libdir'
15228
hardcode_libdir_separator_F77=
15232
shared_flag='-shared'
15233
if test "$aix_use_runtimelinking" = yes; then
15234
shared_flag="$shared_flag "'${wl}-G'
15238
if test "$host_cpu" = ia64; then
15239
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15240
# chokes on -Wl,-G. The following line is correct:
15243
if test "$aix_use_runtimelinking" = yes; then
15244
shared_flag='${wl}-G'
15246
shared_flag='${wl}-bM:SRE'
15251
# It seems that -bexpall does not export symbols beginning with
15252
# underscore (_), so it is better to generate a list of symbols to export.
15253
always_export_symbols_F77=yes
15254
if test "$aix_use_runtimelinking" = yes; then
15255
# Warning - without using the other runtime loading flags (-brtl),
15256
# -berok will link without error, but may produce a broken library.
15257
allow_undefined_flag_F77='-berok'
15258
# Determine the default libpath from the value encoded in an empty executable.
15259
cat >conftest.$ac_ext <<_ACEOF
15264
rm -f conftest.$ac_objext conftest$ac_exeext
15265
if { (ac_try="$ac_link"
15266
case "(($ac_try" in
15267
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15268
*) ac_try_echo=$ac_try;;
15270
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15271
(eval "$ac_link") 2>conftest.er1
15273
grep -v '^ *+' conftest.er1 >conftest.err
15275
cat conftest.err >&5
15276
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15277
(exit $ac_status); } && {
15278
test -z "$ac_f77_werror_flag" ||
15279
test ! -s conftest.err
15280
} && test -s conftest$ac_exeext &&
15281
$as_test_x conftest$ac_exeext; then
15283
lt_aix_libpath_sed='
15284
/Import File Strings/,/^$/ {
15290
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15291
# Check for a 64-bit object if we didn't find anything.
15292
if test -z "$aix_libpath"; then
15293
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15296
echo "$as_me: failed program was:" >&5
15297
sed 's/^/| /' conftest.$ac_ext >&5
15302
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15303
conftest$ac_exeext conftest.$ac_ext
15304
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15306
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15307
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"
15309
if test "$host_cpu" = ia64; then
15310
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15311
allow_undefined_flag_F77="-z nodefs"
15312
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"
15314
# Determine the default libpath from the value encoded in an empty executable.
15315
cat >conftest.$ac_ext <<_ACEOF
15320
rm -f conftest.$ac_objext conftest$ac_exeext
15321
if { (ac_try="$ac_link"
15322
case "(($ac_try" in
15323
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15324
*) ac_try_echo=$ac_try;;
15326
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15327
(eval "$ac_link") 2>conftest.er1
15329
grep -v '^ *+' conftest.er1 >conftest.err
15331
cat conftest.err >&5
15332
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15333
(exit $ac_status); } && {
15334
test -z "$ac_f77_werror_flag" ||
15335
test ! -s conftest.err
15336
} && test -s conftest$ac_exeext &&
15337
$as_test_x conftest$ac_exeext; then
15339
lt_aix_libpath_sed='
15340
/Import File Strings/,/^$/ {
15346
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15347
# Check for a 64-bit object if we didn't find anything.
15348
if test -z "$aix_libpath"; then
15349
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15352
echo "$as_me: failed program was:" >&5
15353
sed 's/^/| /' conftest.$ac_ext >&5
15358
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15359
conftest$ac_exeext conftest.$ac_ext
15360
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15362
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15363
# Warning - without using the other run time loading flags,
15364
# -berok will link without error, but may produce a broken library.
15365
no_undefined_flag_F77=' ${wl}-bernotok'
15366
allow_undefined_flag_F77=' ${wl}-berok'
15367
# Exported symbols can be pulled into shared objects from archives
15368
whole_archive_flag_spec_F77='$convenience'
15369
archive_cmds_need_lc_F77=yes
15370
# This is similar to how AIX traditionally builds its shared libraries.
15371
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'
15377
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)'
15378
hardcode_libdir_flag_spec_F77='-L$libdir'
15379
hardcode_minus_L_F77=yes
15380
# see comment about different semantics on the GNU ld section
15385
export_dynamic_flag_spec_F77=-rdynamic
15388
cygwin* | mingw* | pw32*)
15389
# When not using gcc, we currently assume that we are using
15390
# Microsoft Visual C++.
15391
# hardcode_libdir_flag_spec is actually meaningless, as there is
15392
# no search path for DLLs.
15393
hardcode_libdir_flag_spec_F77=' '
15394
allow_undefined_flag_F77=unsupported
15395
# Tell ltmain to make .lib files, not .a files.
15397
# Tell ltmain to make .dll files, not .so files.
15399
# FIXME: Setting linknames here is a bad hack.
15400
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15401
# The linker will automatically build a .lib file if we build a DLL.
15402
old_archive_From_new_cmds_F77='true'
15403
# FIXME: Should let the user specify the lib program.
15404
old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15405
fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15406
enable_shared_with_static_runtimes_F77=yes
15409
darwin* | rhapsody*)
15411
rhapsody* | darwin1.[012])
15412
allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15415
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15416
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15418
case ${MACOSX_DEPLOYMENT_TARGET} in
15420
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15423
allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15429
archive_cmds_need_lc_F77=no
15430
hardcode_direct_F77=no
15431
hardcode_automatic_F77=yes
15432
hardcode_shlibpath_var_F77=unsupported
15433
whole_archive_flag_spec_F77=''
15434
link_all_deplibs_F77=yes
15435
if test "$GCC" = yes ; then
15436
output_verbose_link_cmd='echo'
15437
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}"
15438
module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15439
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}"
15440
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}"
15442
case $cc_basename in
15444
output_verbose_link_cmd='echo'
15445
archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15446
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15447
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15448
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}'
15449
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}'
15459
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15460
hardcode_libdir_flag_spec_F77='-L$libdir'
15461
hardcode_shlibpath_var_F77=no
15468
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15469
# support. Future versions do this automatically, but an explicit c++rt0.o
15470
# does not break anything, and helps significantly (at the cost of a little
15473
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15474
hardcode_libdir_flag_spec_F77='-R$libdir'
15475
hardcode_direct_F77=yes
15476
hardcode_shlibpath_var_F77=no
15479
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
15481
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15482
hardcode_direct_F77=yes
15483
hardcode_minus_L_F77=yes
15484
hardcode_shlibpath_var_F77=no
15487
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15488
freebsd* | dragonfly*)
15489
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15490
hardcode_libdir_flag_spec_F77='-R$libdir'
15491
hardcode_direct_F77=yes
15492
hardcode_shlibpath_var_F77=no
15496
if test "$GCC" = yes; then
15497
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'
15499
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'
15501
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15502
hardcode_libdir_separator_F77=:
15503
hardcode_direct_F77=yes
15505
# hardcode_minus_L: Not really in the search PATH,
15506
# but as the default location of the library.
15507
hardcode_minus_L_F77=yes
15508
export_dynamic_flag_spec_F77='${wl}-E'
15512
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15513
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15515
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15517
if test "$with_gnu_ld" = no; then
15518
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15519
hardcode_libdir_separator_F77=:
15521
hardcode_direct_F77=yes
15522
export_dynamic_flag_spec_F77='${wl}-E'
15524
# hardcode_minus_L: Not really in the search PATH,
15525
# but as the default location of the library.
15526
hardcode_minus_L_F77=yes
15531
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15534
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15537
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15540
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15546
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15549
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15552
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15556
if test "$with_gnu_ld" = no; then
15557
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15558
hardcode_libdir_separator_F77=:
15562
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15563
hardcode_direct_F77=no
15564
hardcode_shlibpath_var_F77=no
15567
hardcode_direct_F77=yes
15568
export_dynamic_flag_spec_F77='${wl}-E'
15570
# hardcode_minus_L: Not really in the search PATH,
15571
# but as the default location of the library.
15572
hardcode_minus_L_F77=yes
15578
irix5* | irix6* | nonstopux*)
15579
if test "$GCC" = yes; then
15580
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'
15582
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'
15583
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15585
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15586
hardcode_libdir_separator_F77=:
15587
link_all_deplibs_F77=yes
15590
netbsd* | netbsdelf*-gnu)
15591
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15592
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15594
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15596
hardcode_libdir_flag_spec_F77='-R$libdir'
15597
hardcode_direct_F77=yes
15598
hardcode_shlibpath_var_F77=no
15602
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15603
hardcode_direct_F77=yes
15604
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15605
hardcode_libdir_separator_F77=:
15606
hardcode_shlibpath_var_F77=no
15610
if test -f /usr/libexec/ld.so; then
15611
hardcode_direct_F77=yes
15612
hardcode_shlibpath_var_F77=no
15613
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15614
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15615
archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15616
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15617
export_dynamic_flag_spec_F77='${wl}-E'
15620
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15621
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15622
hardcode_libdir_flag_spec_F77='-R$libdir'
15625
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15626
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15636
hardcode_libdir_flag_spec_F77='-L$libdir'
15637
hardcode_minus_L_F77=yes
15638
allow_undefined_flag_F77=unsupported
15639
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'
15640
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15644
if test "$GCC" = yes; then
15645
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15646
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'
15648
allow_undefined_flag_F77=' -expect_unresolved \*'
15649
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'
15651
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15652
hardcode_libdir_separator_F77=:
15655
osf4* | osf5*) # as osf3* with the addition of -msym flag
15656
if test "$GCC" = yes; then
15657
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15658
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'
15659
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15661
allow_undefined_flag_F77=' -expect_unresolved \*'
15662
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'
15663
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~
15664
$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'
15666
# Both c and cxx compiler support -rpath directly
15667
hardcode_libdir_flag_spec_F77='-rpath $libdir'
15669
hardcode_libdir_separator_F77=:
15673
no_undefined_flag_F77=' -z text'
15674
if test "$GCC" = yes; then
15676
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15677
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15678
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15681
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15682
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15683
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15685
hardcode_libdir_flag_spec_F77='-R$libdir'
15686
hardcode_shlibpath_var_F77=no
15688
solaris2.[0-5] | solaris2.[0-5].*) ;;
15690
# The compiler driver will combine and reorder linker options,
15691
# but understands `-z linker_flag'. GCC discards it without `$wl',
15692
# but is careful enough not to reorder.
15693
# Supported since Solaris 2.6 (maybe 2.5.1?)
15694
if test "$GCC" = yes; then
15695
whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15697
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15701
link_all_deplibs_F77=yes
15705
if test "x$host_vendor" = xsequent; then
15706
# Use $CC to link under sequent, because it throws in some extra .o
15707
# files that make .init and .fini sections work.
15708
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15710
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15712
hardcode_libdir_flag_spec_F77='-L$libdir'
15713
hardcode_direct_F77=yes
15714
hardcode_minus_L_F77=yes
15715
hardcode_shlibpath_var_F77=no
15719
case $host_vendor in
15721
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15722
hardcode_direct_F77=yes # is this really true???
15725
## LD is ld it makes a PLAMLIB
15726
## CC just makes a GrossModule.
15727
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15728
reload_cmds_F77='$CC -r -o $output$reload_objs'
15729
hardcode_direct_F77=no
15732
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15733
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15736
runpath_var='LD_RUN_PATH'
15737
hardcode_shlibpath_var_F77=no
15741
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15742
hardcode_shlibpath_var_F77=no
15743
export_dynamic_flag_spec_F77='-Bexport'
15747
if test -d /usr/nec; then
15748
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15749
hardcode_shlibpath_var_F77=no
15750
runpath_var=LD_RUN_PATH
15751
hardcode_runpath_var=yes
15756
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15757
no_undefined_flag_F77='${wl}-z,text'
15758
archive_cmds_need_lc_F77=no
15759
hardcode_shlibpath_var_F77=no
15760
runpath_var='LD_RUN_PATH'
15762
if test "$GCC" = yes; then
15763
archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15764
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15766
archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15767
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15771
sysv5* | sco3.2v5* | sco5v6*)
15772
# Note: We can NOT use -z defs as we might desire, because we do not
15773
# link with -lc, and that would cause any symbols used from libc to
15774
# always be unresolved, which means just about no library would
15775
# ever link correctly. If we're not using GNU ld we use -z text
15776
# though, which does catch some bad symbols but isn't as heavy-handed
15778
no_undefined_flag_F77='${wl}-z,text'
15779
allow_undefined_flag_F77='${wl}-z,nodefs'
15780
archive_cmds_need_lc_F77=no
15781
hardcode_shlibpath_var_F77=no
15782
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15783
hardcode_libdir_separator_F77=':'
15784
link_all_deplibs_F77=yes
15785
export_dynamic_flag_spec_F77='${wl}-Bexport'
15786
runpath_var='LD_RUN_PATH'
15788
if test "$GCC" = yes; then
15789
archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15790
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15792
archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15793
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15798
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15799
hardcode_libdir_flag_spec_F77='-L$libdir'
15800
hardcode_shlibpath_var_F77=no
15809
{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15810
echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15811
test "$ld_shlibs_F77" = no && can_build_shared=no
15814
# Do we need to explicitly link libc?
15816
case "x$archive_cmds_need_lc_F77" in
15818
# Assume -lc should be added
15819
archive_cmds_need_lc_F77=yes
15821
if test "$enable_shared" = yes && test "$GCC" = yes; then
15822
case $archive_cmds_F77 in
15824
# FIXME: we may have to deal with multi-command sequences.
15827
# Test whether the compiler implicitly links with -lc since on some
15828
# systems, -lgcc has to come before -lc. If gcc already passes -lc
15829
# to ld, don't add -lc before -lgcc.
15830
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15831
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15833
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15835
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15836
(eval $ac_compile) 2>&5
15838
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15839
(exit $ac_status); } 2>conftest.err; then
15842
libobjs=conftest.$ac_objext
15844
wl=$lt_prog_compiler_wl_F77
15845
pic_flag=$lt_prog_compiler_pic_F77
15851
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15852
allow_undefined_flag_F77=
15853
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15854
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15856
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15857
(exit $ac_status); }
15859
archive_cmds_need_lc_F77=no
15861
archive_cmds_need_lc_F77=yes
15863
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15865
cat conftest.err 1>&5
15868
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15869
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15876
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15877
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15878
library_names_spec=
15879
libname_spec='lib$name'
15883
postuninstall_cmds=
15887
shlibpath_overrides_runpath=unknown
15889
dynamic_linker="$host_os ld.so"
15890
sys_lib_dlsearch_path_spec="/lib /usr/lib"
15892
need_lib_prefix=unknown
15893
hardcode_into_libs=no
15895
# when you set need_version to no, make sure it does not cause -set_version
15896
# flags to be left without arguments
15897
need_version=unknown
15902
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15903
shlibpath_var=LIBPATH
15905
# AIX 3 has no versioning support, so we append a major version to the name.
15906
soname_spec='${libname}${release}${shared_ext}$major'
15913
hardcode_into_libs=yes
15914
if test "$host_cpu" = ia64; then
15915
# AIX 5 supports IA64
15916
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15917
shlibpath_var=LD_LIBRARY_PATH
15919
# With GCC up to 2.95.x, collect2 would create an import file
15920
# for dependence libraries. The import file would start with
15921
# the line `#! .'. This would cause the generated library to
15922
# depend on `.', always an invalid library. This was fixed in
15923
# development snapshots of GCC prior to 3.0.
15925
aix4 | aix4.[01] | aix4.[01].*)
15926
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15928
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15931
can_build_shared=no
15935
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15936
# soname into executable. Probably we can add versioning support to
15937
# collect2, so additional links can be useful in future.
15938
if test "$aix_use_runtimelinking" = yes; then
15939
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
15940
# instead of lib<name>.a to let people know that these are not
15941
# typical AIX shared libraries.
15942
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15944
# We preserve .a as extension for shared libraries through AIX4.2
15945
# and later when we are not doing run time linking.
15946
library_names_spec='${libname}${release}.a $libname.a'
15947
soname_spec='${libname}${release}${shared_ext}$major'
15949
shlibpath_var=LIBPATH
15954
library_names_spec='$libname.ixlibrary $libname.a'
15955
# Create ${libname}_ixlibrary.a entries in /sys/libs.
15956
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'
15960
library_names_spec='${libname}${shared_ext}'
15961
dynamic_linker="$host_os ld.so"
15962
shlibpath_var=LIBRARY_PATH
15968
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15969
soname_spec='${libname}${release}${shared_ext}$major'
15970
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15971
shlibpath_var=LD_LIBRARY_PATH
15972
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15973
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15974
# the default ld.so.conf also contains /usr/contrib/lib and
15975
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15976
# libtool to hard-code these into programs
15979
cygwin* | mingw* | pw32*)
15980
version_type=windows
15985
case $GCC,$host_os in
15986
yes,cygwin* | yes,mingw* | yes,pw32*)
15987
library_names_spec='$libname.dll.a'
15988
# DLL is installed to $(libdir)/../bin by postinstall_cmds
15989
postinstall_cmds='base_file=`basename \${file}`~
15990
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15991
dldir=$destdir/`dirname \$dlpath`~
15992
test -d \$dldir || mkdir -p \$dldir~
15993
$install_prog $dir/$dlname \$dldir/$dlname~
15994
chmod a+x \$dldir/$dlname'
15995
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15996
dlpath=$dir/\$dldll~
15998
shlibpath_overrides_runpath=yes
16002
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
16003
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16004
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16007
# MinGW DLLs use traditional 'lib' prefix
16008
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16009
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16010
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16011
# It is most probably a Windows format PATH printed by
16012
# mingw gcc, but we are running on Cygwin. Gcc prints its search
16013
# path with ; separators, and with drive letters. We can handle the
16014
# drive letters (cygwin fileutils understands them), so leave them,
16015
# especially as we might pass files found there to a mingw objdump,
16016
# which wouldn't understand a cygwinified path. Ahh.
16017
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16019
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16023
# pw32 DLLs use 'pw' prefix rather than 'lib'
16024
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16030
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16033
dynamic_linker='Win32 ld.exe'
16034
# FIXME: first we should search . and the directory the executable is in
16038
darwin* | rhapsody*)
16039
dynamic_linker="$host_os dyld"
16040
version_type=darwin
16043
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16044
soname_spec='${libname}${release}${major}$shared_ext'
16045
shlibpath_overrides_runpath=yes
16046
shlibpath_var=DYLD_LIBRARY_PATH
16047
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16049
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16056
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16057
soname_spec='${libname}${release}${shared_ext}$major'
16058
shlibpath_var=LD_LIBRARY_PATH
16065
freebsd* | dragonfly*)
16066
# DragonFly does not have aout. When/if they implement a new
16067
# versioning mechanism, adjust this.
16068
if test -x /usr/bin/objformat; then
16069
objformat=`/usr/bin/objformat`
16072
freebsd[123]*) objformat=aout ;;
16073
*) objformat=elf ;;
16076
version_type=freebsd-$objformat
16077
case $version_type in
16079
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16084
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16088
shlibpath_var=LD_LIBRARY_PATH
16091
shlibpath_overrides_runpath=yes
16093
freebsd3.[01]* | freebsdelf3.[01]*)
16094
shlibpath_overrides_runpath=yes
16095
hardcode_into_libs=yes
16097
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16098
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16099
shlibpath_overrides_runpath=no
16100
hardcode_into_libs=yes
16102
*) # from 4.6 on, and DragonFly
16103
shlibpath_overrides_runpath=yes
16104
hardcode_into_libs=yes
16113
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16114
soname_spec='${libname}${release}${shared_ext}$major'
16115
shlibpath_var=LD_LIBRARY_PATH
16116
hardcode_into_libs=yes
16119
hpux9* | hpux10* | hpux11*)
16120
# Give a soname corresponding to the major version so that dld.sl refuses to
16121
# link against other versions.
16128
hardcode_into_libs=yes
16129
dynamic_linker="$host_os dld.so"
16130
shlibpath_var=LD_LIBRARY_PATH
16131
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16132
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16133
soname_spec='${libname}${release}${shared_ext}$major'
16134
if test "X$HPUX_IA64_MODE" = X32; then
16135
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16137
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16139
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16143
hardcode_into_libs=yes
16144
dynamic_linker="$host_os dld.sl"
16145
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16146
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16147
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16148
soname_spec='${libname}${release}${shared_ext}$major'
16149
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16150
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16154
dynamic_linker="$host_os dld.sl"
16155
shlibpath_var=SHLIB_PATH
16156
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16157
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16158
soname_spec='${libname}${release}${shared_ext}$major'
16161
# HP-UX runs *really* slowly unless shared libraries are mode 555.
16162
postinstall_cmds='chmod 555 $lib'
16169
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16170
soname_spec='${libname}${release}${shared_ext}$major'
16171
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16172
shlibpath_var=LD_LIBRARY_PATH
16173
shlibpath_overrides_runpath=no
16174
hardcode_into_libs=yes
16177
irix5* | irix6* | nonstopux*)
16179
nonstopux*) version_type=nonstopux ;;
16181
if test "$lt_cv_prog_gnu_ld" = yes; then
16189
soname_spec='${libname}${release}${shared_ext}$major'
16190
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16192
irix5* | nonstopux*)
16193
libsuff= shlibsuff=
16196
case $LD in # libtool.m4 will add one of these switches to LD
16197
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16198
libsuff= shlibsuff= libmagic=32-bit;;
16199
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16200
libsuff=32 shlibsuff=N32 libmagic=N32;;
16201
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16202
libsuff=64 shlibsuff=64 libmagic=64-bit;;
16203
*) libsuff= shlibsuff= libmagic=never-match;;
16207
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16208
shlibpath_overrides_runpath=no
16209
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16210
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16211
hardcode_into_libs=yes
16214
# No shared lib support for Linux oldld, aout, or coff.
16215
linux*oldld* | linux*aout* | linux*coff*)
16219
# This must be Linux ELF.
16220
linux* | k*bsd*-gnu)
16224
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16225
soname_spec='${libname}${release}${shared_ext}$major'
16226
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16227
shlibpath_var=LD_LIBRARY_PATH
16228
shlibpath_overrides_runpath=no
16229
# This implies no fast_install, which is unacceptable.
16230
# Some rework will be needed to allow for fast_install
16231
# before this can be enabled.
16232
hardcode_into_libs=yes
16234
# Append ld.so.conf contents to the search path
16235
if test -f /etc/ld.so.conf; then
16236
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' ' '`
16237
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16240
# We used to test for /lib/ld.so.1 and disable shared libraries on
16241
# powerpc, because MkLinux only supported shared libraries with the
16242
# GNU dynamic linker. Since this was broken with cross compilers,
16243
# most powerpc-linux boxes support dynamic linking these days and
16244
# people can always --disable-shared, the test was removed, and we
16245
# assume the GNU/Linux dynamic linker is in use.
16246
dynamic_linker='GNU/Linux ld.so'
16253
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16254
soname_spec='${libname}${release}${shared_ext}$major'
16255
shlibpath_var=LD_LIBRARY_PATH
16256
shlibpath_overrides_runpath=no
16257
hardcode_into_libs=yes
16258
dynamic_linker='NetBSD ld.elf_so'
16265
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16266
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16267
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16268
dynamic_linker='NetBSD (a.out) ld.so'
16270
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16271
soname_spec='${libname}${release}${shared_ext}$major'
16272
dynamic_linker='NetBSD ld.elf_so'
16274
shlibpath_var=LD_LIBRARY_PATH
16275
shlibpath_overrides_runpath=yes
16276
hardcode_into_libs=yes
16281
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16282
shlibpath_var=LD_LIBRARY_PATH
16283
shlibpath_overrides_runpath=yes
16290
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16291
soname_spec='${libname}${release}${shared_ext}$major'
16292
shlibpath_var=LD_LIBRARY_PATH
16293
shlibpath_overrides_runpath=yes
16298
sys_lib_dlsearch_path_spec="/usr/lib"
16300
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16302
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16303
*) need_version=no ;;
16305
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16306
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16307
shlibpath_var=LD_LIBRARY_PATH
16308
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16310
openbsd2.[89] | openbsd2.[89].*)
16311
shlibpath_overrides_runpath=no
16314
shlibpath_overrides_runpath=yes
16318
shlibpath_overrides_runpath=yes
16323
libname_spec='$name'
16326
library_names_spec='$libname${shared_ext} $libname.a'
16327
dynamic_linker='OS/2 ld.exe'
16328
shlibpath_var=LIBPATH
16331
osf3* | osf4* | osf5*)
16335
soname_spec='${libname}${release}${shared_ext}$major'
16336
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16337
shlibpath_var=LD_LIBRARY_PATH
16338
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16339
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16350
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16351
soname_spec='${libname}${release}${shared_ext}$major'
16352
shlibpath_var=LD_LIBRARY_PATH
16353
shlibpath_overrides_runpath=yes
16354
hardcode_into_libs=yes
16355
# ldd complains unless libraries are executable
16356
postinstall_cmds='chmod +x $lib'
16361
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16362
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16363
shlibpath_var=LD_LIBRARY_PATH
16364
shlibpath_overrides_runpath=yes
16365
if test "$with_gnu_ld" = yes; then
16373
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16374
soname_spec='${libname}${release}${shared_ext}$major'
16375
shlibpath_var=LD_LIBRARY_PATH
16376
case $host_vendor in
16378
shlibpath_overrides_runpath=no
16380
export_dynamic_flag_spec='${wl}-Blargedynsym'
16381
runpath_var=LD_RUN_PATH
16389
shlibpath_overrides_runpath=no
16390
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16396
if test -d /usr/nec ;then
16398
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16399
soname_spec='$libname${shared_ext}.$major'
16400
shlibpath_var=LD_LIBRARY_PATH
16404
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16405
version_type=freebsd-elf
16408
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16409
soname_spec='${libname}${release}${shared_ext}$major'
16410
shlibpath_var=LD_LIBRARY_PATH
16411
hardcode_into_libs=yes
16412
if test "$with_gnu_ld" = yes; then
16413
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16414
shlibpath_overrides_runpath=no
16416
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16417
shlibpath_overrides_runpath=yes
16420
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16424
sys_lib_dlsearch_path_spec='/usr/lib'
16429
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16430
soname_spec='${libname}${release}${shared_ext}$major'
16431
shlibpath_var=LD_LIBRARY_PATH
16438
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16439
echo "${ECHO_T}$dynamic_linker" >&6; }
16440
test "$dynamic_linker" = no && can_build_shared=no
16442
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16443
echo $ECHO_N "(cached) $ECHO_C" >&6
16445
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16448
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16449
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16450
echo $ECHO_N "(cached) $ECHO_C" >&6
16452
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16455
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16457
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16458
if test "$GCC" = yes; then
16459
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16462
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16463
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16464
hardcode_action_F77=
16465
if test -n "$hardcode_libdir_flag_spec_F77" || \
16466
test -n "$runpath_var_F77" || \
16467
test "X$hardcode_automatic_F77" = "Xyes" ; then
16469
# We can hardcode non-existant directories.
16470
if test "$hardcode_direct_F77" != no &&
16471
# If the only mechanism to avoid hardcoding is shlibpath_var, we
16472
# have to relink, otherwise we might link with an installed library
16473
# when we should be linking with a yet-to-be-installed one
16474
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16475
test "$hardcode_minus_L_F77" != no; then
16476
# Linking always hardcodes the temporary library directory.
16477
hardcode_action_F77=relink
16479
# We can link without hardcoding, and we can hardcode nonexisting dirs.
16480
hardcode_action_F77=immediate
16483
# We cannot hardcode anything, or else we can only hardcode existing
16485
hardcode_action_F77=unsupported
16487
{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16488
echo "${ECHO_T}$hardcode_action_F77" >&6; }
16490
if test "$hardcode_action_F77" = relink; then
16491
# Fast installation is not supported
16492
enable_fast_install=no
16493
elif test "$shlibpath_overrides_runpath" = yes ||
16494
test "$enable_shared" = no; then
16495
# Fast installation is not necessary
16496
enable_fast_install=needless
16500
# The else clause should only fire when bootstrapping the
16501
# libtool distribution, otherwise you forgot to ship ltmain.sh
16502
# with your package, and you will get complaints that there are
16503
# no rules to generate ltmain.sh.
16504
if test -f "$ltmain"; then
16505
# See if we are running on zsh, and set the options which allow our commands through
16506
# without removal of \ escapes.
16507
if test -n "${ZSH_VERSION+set}" ; then
16508
setopt NO_GLOB_SUBST
16510
# Now quote all the things that may contain metacharacters while being
16511
# careful not to overquote the AC_SUBSTed values. We take copies of the
16512
# variables and quote the copies for generation of the libtool script.
16513
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16515
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16516
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16517
deplibs_check_method reload_flag reload_cmds need_locks \
16518
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16519
lt_cv_sys_global_symbol_to_c_name_address \
16520
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16521
old_postinstall_cmds old_postuninstall_cmds \
16525
lt_prog_compiler_wl_F77 \
16526
lt_prog_compiler_pic_F77 \
16527
lt_prog_compiler_static_F77 \
16528
lt_prog_compiler_no_builtin_flag_F77 \
16529
export_dynamic_flag_spec_F77 \
16530
thread_safe_flag_spec_F77 \
16531
whole_archive_flag_spec_F77 \
16532
enable_shared_with_static_runtimes_F77 \
16533
old_archive_cmds_F77 \
16534
old_archive_from_new_cmds_F77 \
16535
predep_objects_F77 \
16536
postdep_objects_F77 \
16539
compiler_lib_search_path_F77 \
16540
compiler_lib_search_dirs_F77 \
16542
archive_expsym_cmds_F77 \
16543
postinstall_cmds_F77 \
16544
postuninstall_cmds_F77 \
16545
old_archive_from_expsyms_cmds_F77 \
16546
allow_undefined_flag_F77 \
16547
no_undefined_flag_F77 \
16548
export_symbols_cmds_F77 \
16549
hardcode_libdir_flag_spec_F77 \
16550
hardcode_libdir_flag_spec_ld_F77 \
16551
hardcode_libdir_separator_F77 \
16552
hardcode_automatic_F77 \
16554
module_expsym_cmds_F77 \
16555
lt_cv_prog_compiler_c_o_F77 \
16556
fix_srcfile_path_F77 \
16557
exclude_expsyms_F77 \
16558
include_expsyms_F77; do
16561
old_archive_cmds_F77 | \
16562
old_archive_from_new_cmds_F77 | \
16563
archive_cmds_F77 | \
16564
archive_expsym_cmds_F77 | \
16565
module_cmds_F77 | \
16566
module_expsym_cmds_F77 | \
16567
old_archive_from_expsyms_cmds_F77 | \
16568
export_symbols_cmds_F77 | \
16569
extract_expsyms_cmds | reload_cmds | finish_cmds | \
16570
postinstall_cmds | postuninstall_cmds | \
16571
old_postinstall_cmds | old_postuninstall_cmds | \
16572
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16573
# Double-quote double-evaled strings.
16574
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16577
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16583
*'\$0 --fallback-echo"')
16584
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16590
cat <<__EOF__ >> "$cfgfile"
16591
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16593
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16595
# Shell to use when invoking shell scripts.
16598
# Whether or not to build shared libraries.
16599
build_libtool_libs=$enable_shared
16601
# Whether or not to build static libraries.
16602
build_old_libs=$enable_static
16604
# Whether or not to add -lc for building shared libraries.
16605
build_libtool_need_lc=$archive_cmds_need_lc_F77
16607
# Whether or not to disallow shared libs when runtime libs are static
16608
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16610
# Whether or not to optimize for fast installation.
16611
fast_install=$enable_fast_install
16614
host_alias=$host_alias
16618
# The build system.
16619
build_alias=$build_alias
16623
# An echo program that does not interpret backslashes.
16628
AR_FLAGS=$lt_AR_FLAGS
16633
# LTCC compiler flags.
16634
LTCFLAGS=$lt_LTCFLAGS
16636
# A language-specific compiler.
16637
CC=$lt_compiler_F77
16639
# Is the compiler the GNU C compiler?
16645
# The linker used to build libraries.
16648
# Whether we need hard or soft links.
16651
# A BSD-compatible nm program.
16654
# A symbol stripping program
16657
# Used to examine libraries when file_magic_cmd begins "file"
16658
MAGIC_CMD=$MAGIC_CMD
16660
# Used on cygwin: DLL creation program.
16663
# Used on cygwin: object dumper.
16666
# Used on cygwin: assembler.
16669
# The name of the directory that contains temporary libtool files.
16672
# How to create reloadable object files.
16673
reload_flag=$lt_reload_flag
16674
reload_cmds=$lt_reload_cmds
16676
# How to pass a linker flag through the compiler.
16677
wl=$lt_lt_prog_compiler_wl_F77
16679
# Object file suffix (normally "o").
16680
objext="$ac_objext"
16682
# Old archive suffix (normally "a").
16685
# Shared library suffix (normally ".so").
16686
shrext_cmds='$shrext_cmds'
16688
# Executable file suffix (normally "").
16691
# Additional compiler flags for building library objects.
16692
pic_flag=$lt_lt_prog_compiler_pic_F77
16695
# What is the maximum length of a command?
16696
max_cmd_len=$lt_cv_sys_max_cmd_len
16698
# Does compiler simultaneously support -c and -o options?
16699
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16701
# Must we lock files when doing compilation?
16702
need_locks=$lt_need_locks
16704
# Do we need the lib prefix for modules?
16705
need_lib_prefix=$need_lib_prefix
16707
# Do we need a version for libraries?
16708
need_version=$need_version
16710
# Whether dlopen is supported.
16711
dlopen_support=$enable_dlopen
16713
# Whether dlopen of programs is supported.
16714
dlopen_self=$enable_dlopen_self
16716
# Whether dlopen of statically linked programs is supported.
16717
dlopen_self_static=$enable_dlopen_self_static
16719
# Compiler flag to prevent dynamic linking.
16720
link_static_flag=$lt_lt_prog_compiler_static_F77
16722
# Compiler flag to turn off builtin functions.
16723
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16725
# Compiler flag to allow reflexive dlopens.
16726
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16728
# Compiler flag to generate shared objects directly from archives.
16729
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16731
# Compiler flag to generate thread-safe objects.
16732
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16734
# Library versioning type.
16735
version_type=$version_type
16737
# Format of library name prefix.
16738
libname_spec=$lt_libname_spec
16740
# List of archive names. First name is the real one, the rest are links.
16741
# The last name is the one that the linker finds with -lNAME.
16742
library_names_spec=$lt_library_names_spec
16744
# The coded name of the library, if different from the real name.
16745
soname_spec=$lt_soname_spec
16747
# Commands used to build and install an old-style archive.
16749
old_archive_cmds=$lt_old_archive_cmds_F77
16750
old_postinstall_cmds=$lt_old_postinstall_cmds
16751
old_postuninstall_cmds=$lt_old_postuninstall_cmds
16753
# Create an old-style archive from a shared archive.
16754
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16756
# Create a temporary old-style archive to link instead of a shared archive.
16757
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16759
# Commands used to build and install a shared archive.
16760
archive_cmds=$lt_archive_cmds_F77
16761
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16762
postinstall_cmds=$lt_postinstall_cmds
16763
postuninstall_cmds=$lt_postuninstall_cmds
16765
# Commands used to build a loadable module (assumed same as above if empty)
16766
module_cmds=$lt_module_cmds_F77
16767
module_expsym_cmds=$lt_module_expsym_cmds_F77
16769
# Commands to strip libraries.
16770
old_striplib=$lt_old_striplib
16771
striplib=$lt_striplib
16773
# Dependencies to place before the objects being linked to create a
16775
predep_objects=$lt_predep_objects_F77
16777
# Dependencies to place after the objects being linked to create a
16779
postdep_objects=$lt_postdep_objects_F77
16781
# Dependencies to place before the objects being linked to create a
16783
predeps=$lt_predeps_F77
16785
# Dependencies to place after the objects being linked to create a
16787
postdeps=$lt_postdeps_F77
16789
# The directories searched by this compiler when creating a shared
16791
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16793
# The library search path used internally by the compiler when linking
16794
# a shared library.
16795
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16797
# Method to check whether dependent libraries are shared objects.
16798
deplibs_check_method=$lt_deplibs_check_method
16800
# Command to use when deplibs_check_method == file_magic.
16801
file_magic_cmd=$lt_file_magic_cmd
16803
# Flag that allows shared libraries with undefined symbols to be built.
16804
allow_undefined_flag=$lt_allow_undefined_flag_F77
16806
# Flag that forces no undefined symbols.
16807
no_undefined_flag=$lt_no_undefined_flag_F77
16809
# Commands used to finish a libtool library installation in a directory.
16810
finish_cmds=$lt_finish_cmds
16812
# Same as above, but a single script fragment to be evaled but not shown.
16813
finish_eval=$lt_finish_eval
16815
# Take the output of nm and produce a listing of raw symbols and C names.
16816
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16818
# Transform the output of nm in a proper C declaration
16819
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16821
# Transform the output of nm in a C name address pair
16822
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16824
# This is the shared library runtime path variable.
16825
runpath_var=$runpath_var
16827
# This is the shared library path variable.
16828
shlibpath_var=$shlibpath_var
16830
# Is shlibpath searched before the hard-coded library search path?
16831
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16833
# How to hardcode a shared library path into an executable.
16834
hardcode_action=$hardcode_action_F77
16836
# Whether we should hardcode library paths into libraries.
16837
hardcode_into_libs=$hardcode_into_libs
16839
# Flag to hardcode \$libdir into a binary during linking.
16840
# This must work even if \$libdir does not exist.
16841
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16843
# If ld is used when linking, flag to hardcode \$libdir into
16844
# a binary during linking. This must work even if \$libdir does
16846
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16848
# Whether we need a single -rpath flag with a separated argument.
16849
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16851
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16852
# resulting binary.
16853
hardcode_direct=$hardcode_direct_F77
16855
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16856
# resulting binary.
16857
hardcode_minus_L=$hardcode_minus_L_F77
16859
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16860
# the resulting binary.
16861
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16863
# Set to yes if building a shared library automatically hardcodes DIR into the library
16864
# and all subsequent libraries and executables linked against it.
16865
hardcode_automatic=$hardcode_automatic_F77
16867
# Variables whose values should be saved in libtool wrapper scripts and
16868
# restored at relink time.
16869
variables_saved_for_relink="$variables_saved_for_relink"
16871
# Whether libtool must link a program against all its dependency libraries.
16872
link_all_deplibs=$link_all_deplibs_F77
16874
# Compile-time system search path for libraries
16875
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16877
# Run-time system search path for libraries
16878
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16880
# Fix the shell variable \$srcfile for the compiler.
16881
fix_srcfile_path=$lt_fix_srcfile_path
16883
# Set to yes if exported symbols are required.
16884
always_export_symbols=$always_export_symbols_F77
16886
# The commands to list exported symbols.
16887
export_symbols_cmds=$lt_export_symbols_cmds_F77
16889
# The commands to extract the exported symbol list from a shared archive.
16890
extract_expsyms_cmds=$lt_extract_expsyms_cmds
16892
# Symbols that should not be listed in the preloaded symbols.
16893
exclude_expsyms=$lt_exclude_expsyms_F77
16895
# Symbols that must always be exported.
16896
include_expsyms=$lt_include_expsyms_F77
16898
# ### END LIBTOOL TAG CONFIG: $tagname
16904
# If there is no Makefile yet, we rely on a make rule to execute
16905
# `config.status --recheck' to rerun these tests and create the
16906
# libtool script then.
16907
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16908
if test -f "$ltmain_in"; then
16909
test -f Makefile && make "$ltmain"
16915
ac_cpp='$CPP $CPPFLAGS'
16916
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16917
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16918
ac_compiler_gnu=$ac_cv_c_compiler_gnu
16928
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16931
# Source file extension for Java test sources.
16934
# Object file extension for compiled Java test sources.
16938
# Code to be used in simple compile tests
16939
lt_simple_compile_test_code="class foo {}"
16941
# Code to be used in simple link tests
16942
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16944
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16946
# If no C compiler was specified, use CC.
16949
# If no C compiler flags were specified, use CFLAGS.
16950
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16952
# Allow CC to be a program name with arguments.
16956
# save warnings/boilerplate of simple test code
16957
ac_outfile=conftest.$ac_objext
16958
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16959
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16960
_lt_compiler_boilerplate=`cat conftest.err`
16963
ac_outfile=conftest.$ac_objext
16964
echo "$lt_simple_link_test_code" >conftest.$ac_ext
16965
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16966
_lt_linker_boilerplate=`cat conftest.err`
16970
# Allow CC to be a program name with arguments.
16975
for cc_temp in $compiler""; do
16977
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16978
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16983
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16986
# GCJ did not exist at the time GCC didn't implicitly link libc in.
16987
archive_cmds_need_lc_GCJ=no
16989
old_archive_cmds_GCJ=$old_archive_cmds
16992
## There is no encapsulation within the following macros, do not change
16993
## the running order or otherwise move them around unless you know exactly
16994
## what you are doing...
16996
lt_prog_compiler_no_builtin_flag_GCJ=
16998
if test "$GCC" = yes; then
16999
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17002
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17003
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
17004
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17005
echo $ECHO_N "(cached) $ECHO_C" >&6
17007
lt_cv_prog_compiler_rtti_exceptions=no
17008
ac_outfile=conftest.$ac_objext
17009
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17010
lt_compiler_flag="-fno-rtti -fno-exceptions"
17011
# Insert the option either (1) after the last *FLAGS variable, or
17012
# (2) before a word containing "conftest.", or (3) at the end.
17013
# Note that $ac_compile itself does not contain backslashes and begins
17014
# with a dollar sign (not a hyphen), so the echo should work correctly.
17015
# The option is referenced via a variable to avoid confusing sed.
17016
lt_compile=`echo "$ac_compile" | $SED \
17017
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17018
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17019
-e 's:$: $lt_compiler_flag:'`
17020
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
17021
(eval "$lt_compile" 2>conftest.err)
17023
cat conftest.err >&5
17024
echo "$as_me:__oline__: \$? = $ac_status" >&5
17025
if (exit $ac_status) && test -s "$ac_outfile"; then
17026
# The compiler can only warn and ignore the option if not recognized
17027
# So say no if there are warnings other than the usual output.
17028
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17029
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17030
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17031
lt_cv_prog_compiler_rtti_exceptions=yes
17037
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17038
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17040
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17041
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17048
lt_prog_compiler_wl_GCJ=
17049
lt_prog_compiler_pic_GCJ=
17050
lt_prog_compiler_static_GCJ=
17052
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17053
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
17055
if test "$GCC" = yes; then
17056
lt_prog_compiler_wl_GCJ='-Wl,'
17057
lt_prog_compiler_static_GCJ='-static'
17061
# All AIX code is PIC.
17062
if test "$host_cpu" = ia64; then
17063
# AIX 5 now supports IA64 processor
17064
lt_prog_compiler_static_GCJ='-Bstatic'
17069
# FIXME: we need at least 68020 code to build shared libraries, but
17070
# adding the `-m68020' flag to GCC prevents building anything better,
17072
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17075
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17076
# PIC is the default for these OSes.
17079
mingw* | cygwin* | pw32* | os2*)
17080
# This hack is so that the source file can tell whether it is being
17081
# built for inclusion in a dll (and should export symbols for example).
17082
# Although the cygwin gcc ignores -fPIC, still need this for old-style
17083
# (--disable-auto-import) libraries
17087
darwin* | rhapsody*)
17088
# PIC is the default on this platform
17089
# Common symbols not allowed in MH_DYLIB files
17090
lt_prog_compiler_pic_GCJ='-fno-common'
17094
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
17095
# Instead, we relocate shared libraries at runtime.
17099
# Just because we use GCC doesn't mean we suddenly get shared libraries
17100
# on systems that don't support them.
17101
lt_prog_compiler_can_build_shared_GCJ=no
17106
if test -d /usr/nec; then
17107
lt_prog_compiler_pic_GCJ=-Kconform_pic
17112
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17113
# not for PA HP-UX.
17119
lt_prog_compiler_pic_GCJ='-fPIC'
17125
lt_prog_compiler_pic_GCJ='-fPIC'
17129
# PORTME Check for flag to pass linker flags through the system compiler.
17132
lt_prog_compiler_wl_GCJ='-Wl,'
17133
if test "$host_cpu" = ia64; then
17134
# AIX 5 now supports IA64 processor
17135
lt_prog_compiler_static_GCJ='-Bstatic'
17137
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17141
# PIC is the default on this platform
17142
# Common symbols not allowed in MH_DYLIB files
17143
case $cc_basename in
17145
lt_prog_compiler_pic_GCJ='-qnocommon'
17146
lt_prog_compiler_wl_GCJ='-Wl,'
17151
mingw* | cygwin* | pw32* | os2*)
17152
# This hack is so that the source file can tell whether it is being
17153
# built for inclusion in a dll (and should export symbols for example).
17157
hpux9* | hpux10* | hpux11*)
17158
lt_prog_compiler_wl_GCJ='-Wl,'
17159
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17160
# not for PA HP-UX.
17166
lt_prog_compiler_pic_GCJ='+Z'
17169
# Is there a better lt_prog_compiler_static that works with the bundled CC?
17170
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17173
irix5* | irix6* | nonstopux*)
17174
lt_prog_compiler_wl_GCJ='-Wl,'
17175
# PIC (with -KPIC) is the default.
17176
lt_prog_compiler_static_GCJ='-non_shared'
17180
lt_prog_compiler_pic_GCJ='-KPIC'
17181
lt_prog_compiler_static_GCJ='-Bstatic'
17184
linux* | k*bsd*-gnu)
17185
case $cc_basename in
17187
lt_prog_compiler_wl_GCJ='-Wl,'
17188
lt_prog_compiler_pic_GCJ='-KPIC'
17189
lt_prog_compiler_static_GCJ='-static'
17191
pgcc* | pgf77* | pgf90* | pgf95*)
17192
# Portland Group compilers (*not* the Pentium gcc compiler,
17193
# which looks to be a dead project)
17194
lt_prog_compiler_wl_GCJ='-Wl,'
17195
lt_prog_compiler_pic_GCJ='-fpic'
17196
lt_prog_compiler_static_GCJ='-Bstatic'
17199
lt_prog_compiler_wl_GCJ='-Wl,'
17200
# All Alpha code is PIC.
17201
lt_prog_compiler_static_GCJ='-non_shared'
17204
case `$CC -V 2>&1 | sed 5q` in
17207
lt_prog_compiler_pic_GCJ='-KPIC'
17208
lt_prog_compiler_static_GCJ='-Bstatic'
17209
lt_prog_compiler_wl_GCJ='-Wl,'
17212
# Sun Fortran 8.3 passes all unrecognized flags to the linker
17213
lt_prog_compiler_pic_GCJ='-KPIC'
17214
lt_prog_compiler_static_GCJ='-Bstatic'
17215
lt_prog_compiler_wl_GCJ=''
17222
osf3* | osf4* | osf5*)
17223
lt_prog_compiler_wl_GCJ='-Wl,'
17224
# All OSF/1 code is PIC.
17225
lt_prog_compiler_static_GCJ='-non_shared'
17229
lt_prog_compiler_static_GCJ='-non_shared'
17233
lt_prog_compiler_pic_GCJ='-KPIC'
17234
lt_prog_compiler_static_GCJ='-Bstatic'
17235
case $cc_basename in
17236
f77* | f90* | f95*)
17237
lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17239
lt_prog_compiler_wl_GCJ='-Wl,';;
17244
lt_prog_compiler_wl_GCJ='-Qoption ld '
17245
lt_prog_compiler_pic_GCJ='-PIC'
17246
lt_prog_compiler_static_GCJ='-Bstatic'
17249
sysv4 | sysv4.2uw2* | sysv4.3*)
17250
lt_prog_compiler_wl_GCJ='-Wl,'
17251
lt_prog_compiler_pic_GCJ='-KPIC'
17252
lt_prog_compiler_static_GCJ='-Bstatic'
17256
if test -d /usr/nec ;then
17257
lt_prog_compiler_pic_GCJ='-Kconform_pic'
17258
lt_prog_compiler_static_GCJ='-Bstatic'
17262
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17263
lt_prog_compiler_wl_GCJ='-Wl,'
17264
lt_prog_compiler_pic_GCJ='-KPIC'
17265
lt_prog_compiler_static_GCJ='-Bstatic'
17269
lt_prog_compiler_wl_GCJ='-Wl,'
17270
lt_prog_compiler_can_build_shared_GCJ=no
17274
lt_prog_compiler_pic_GCJ='-pic'
17275
lt_prog_compiler_static_GCJ='-Bstatic'
17279
lt_prog_compiler_can_build_shared_GCJ=no
17284
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17285
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17288
# Check to make sure the PIC flag actually works.
17290
if test -n "$lt_prog_compiler_pic_GCJ"; then
17292
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17293
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17294
if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17295
echo $ECHO_N "(cached) $ECHO_C" >&6
17297
lt_cv_prog_compiler_pic_works_GCJ=no
17298
ac_outfile=conftest.$ac_objext
17299
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17300
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17301
# Insert the option either (1) after the last *FLAGS variable, or
17302
# (2) before a word containing "conftest.", or (3) at the end.
17303
# Note that $ac_compile itself does not contain backslashes and begins
17304
# with a dollar sign (not a hyphen), so the echo should work correctly.
17305
# The option is referenced via a variable to avoid confusing sed.
17306
lt_compile=`echo "$ac_compile" | $SED \
17307
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17308
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17309
-e 's:$: $lt_compiler_flag:'`
17310
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
17311
(eval "$lt_compile" 2>conftest.err)
17313
cat conftest.err >&5
17314
echo "$as_me:__oline__: \$? = $ac_status" >&5
17315
if (exit $ac_status) && test -s "$ac_outfile"; then
17316
# The compiler can only warn and ignore the option if not recognized
17317
# So say no if there are warnings other than the usual output.
17318
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17319
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17320
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17321
lt_cv_prog_compiler_pic_works_GCJ=yes
17327
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17328
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17330
if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17331
case $lt_prog_compiler_pic_GCJ in
17333
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17336
lt_prog_compiler_pic_GCJ=
17337
lt_prog_compiler_can_build_shared_GCJ=no
17342
# For platforms which do not support PIC, -DPIC is meaningless:
17344
lt_prog_compiler_pic_GCJ=
17347
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17352
# Check to make sure the static flag actually works.
17354
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17355
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17356
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17357
if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17358
echo $ECHO_N "(cached) $ECHO_C" >&6
17360
lt_cv_prog_compiler_static_works_GCJ=no
17361
save_LDFLAGS="$LDFLAGS"
17362
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17363
echo "$lt_simple_link_test_code" > conftest.$ac_ext
17364
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17365
# The linker can only warn and ignore the option if not recognized
17366
# So say no if there are warnings
17367
if test -s conftest.err; then
17368
# Append any errors to the config.log.
17369
cat conftest.err 1>&5
17370
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17371
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17372
if diff conftest.exp conftest.er2 >/dev/null; then
17373
lt_cv_prog_compiler_static_works_GCJ=yes
17376
lt_cv_prog_compiler_static_works_GCJ=yes
17380
LDFLAGS="$save_LDFLAGS"
17383
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17384
echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17386
if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17389
lt_prog_compiler_static_GCJ=
17393
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17394
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17395
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17396
echo $ECHO_N "(cached) $ECHO_C" >&6
17398
lt_cv_prog_compiler_c_o_GCJ=no
17399
$rm -r conftest 2>/dev/null
17403
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17405
lt_compiler_flag="-o out/conftest2.$ac_objext"
17406
# Insert the option either (1) after the last *FLAGS variable, or
17407
# (2) before a word containing "conftest.", or (3) at the end.
17408
# Note that $ac_compile itself does not contain backslashes and begins
17409
# with a dollar sign (not a hyphen), so the echo should work correctly.
17410
lt_compile=`echo "$ac_compile" | $SED \
17411
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17412
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17413
-e 's:$: $lt_compiler_flag:'`
17414
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
17415
(eval "$lt_compile" 2>out/conftest.err)
17417
cat out/conftest.err >&5
17418
echo "$as_me:__oline__: \$? = $ac_status" >&5
17419
if (exit $ac_status) && test -s out/conftest2.$ac_objext
17421
# The compiler can only warn and ignore the option if not recognized
17422
# So say no if there are warnings
17423
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17424
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17425
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17426
lt_cv_prog_compiler_c_o_GCJ=yes
17431
# SGI C++ compiler will create directory out/ii_files/ for
17432
# template instantiation
17433
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17434
$rm out/* && rmdir out
17440
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17441
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17444
hard_links="nottested"
17445
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17446
# do not overwrite the value of need_locks provided by the user
17447
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17448
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17451
ln conftest.a conftest.b 2>/dev/null && hard_links=no
17453
ln conftest.a conftest.b 2>&5 || hard_links=no
17454
ln conftest.a conftest.b 2>/dev/null && hard_links=no
17455
{ echo "$as_me:$LINENO: result: $hard_links" >&5
17456
echo "${ECHO_T}$hard_links" >&6; }
17457
if test "$hard_links" = no; then
17458
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17459
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17466
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17467
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17470
allow_undefined_flag_GCJ=
17471
enable_shared_with_static_runtimes_GCJ=no
17473
archive_expsym_cmds_GCJ=
17474
old_archive_From_new_cmds_GCJ=
17475
old_archive_from_expsyms_cmds_GCJ=
17476
export_dynamic_flag_spec_GCJ=
17477
whole_archive_flag_spec_GCJ=
17478
thread_safe_flag_spec_GCJ=
17479
hardcode_libdir_flag_spec_GCJ=
17480
hardcode_libdir_flag_spec_ld_GCJ=
17481
hardcode_libdir_separator_GCJ=
17482
hardcode_direct_GCJ=no
17483
hardcode_minus_L_GCJ=no
17484
hardcode_shlibpath_var_GCJ=unsupported
17485
link_all_deplibs_GCJ=unknown
17486
hardcode_automatic_GCJ=no
17488
module_expsym_cmds_GCJ=
17489
always_export_symbols_GCJ=no
17490
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17491
# include_expsyms should be a list of space-separated symbols to be *always*
17492
# included in the symbol list
17493
include_expsyms_GCJ=
17494
# exclude_expsyms can be an extended regexp of symbols to exclude
17495
# it will be wrapped by ` (' and `)$', so one must not match beginning or
17496
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17497
# as well as any symbol that contains `d'.
17498
exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17499
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17500
# platforms (ab)use it in PIC code, but their linkers get confused if
17501
# the symbol is explicitly referenced. Since portable code cannot
17502
# rely on this symbol name, it's probably fine to never include it in
17503
# preloaded symbol tables.
17504
# Exclude shared library initialization/finalization symbols.
17505
extract_expsyms_cmds=
17506
# Just being paranoid about ensuring that cc_basename is set.
17507
for cc_temp in $compiler""; do
17509
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17510
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17515
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17518
cygwin* | mingw* | pw32*)
17519
# FIXME: the MSVC++ port hasn't been tested in a loooong time
17520
# When not using gcc, we currently assume that we are using
17521
# Microsoft Visual C++.
17522
if test "$GCC" != yes; then
17527
# we just hope/assume this is gcc and not c89 (= MSVC++)
17536
if test "$with_gnu_ld" = yes; then
17537
# If archive_cmds runs LD, not CC, wlarc should be empty
17540
# Set some defaults for GNU ld with shared library support. These
17541
# are reset later if shared libraries are not supported. Putting them
17542
# here allows them to be overridden if necessary.
17543
runpath_var=LD_RUN_PATH
17544
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17545
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17546
# ancient GNU ld didn't support --whole-archive et. al.
17547
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17548
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17550
whole_archive_flag_spec_GCJ=
17552
supports_anon_versioning=no
17553
case `$LD -v 2>/dev/null` in
17554
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17555
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17556
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17557
*\ 2.11.*) ;; # other 2.11 versions
17558
*) supports_anon_versioning=yes ;;
17561
# See if GNU ld supports shared libraries.
17564
# On AIX/PPC, the GNU linker is very broken
17565
if test "$host_cpu" != ia64; then
17569
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17570
*** to be unable to reliably create shared libraries on AIX.
17571
*** Therefore, libtool is disabling shared libraries support. If you
17572
*** really care for shared libraries, you may want to modify your PATH
17573
*** so that a non-GNU linker is found, and then restart.
17580
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)'
17581
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17582
hardcode_minus_L_GCJ=yes
17584
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17585
# that the semantics of dynamic libraries on AmigaOS, at least up
17586
# to version 4, is to share data among multiple programs linked
17587
# with the same dynamic library. Since this doesn't match the
17588
# behavior of shared libraries on other platforms, we can't use
17594
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17595
allow_undefined_flag_GCJ=unsupported
17596
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17597
# support --undefined. This deserves some investigation. FIXME
17598
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17604
cygwin* | mingw* | pw32*)
17605
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17606
# as there is no search path for DLLs.
17607
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17608
allow_undefined_flag_GCJ=unsupported
17609
always_export_symbols_GCJ=no
17610
enable_shared_with_static_runtimes_GCJ=yes
17611
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17613
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17614
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17615
# If the export-symbols file already is a .def file (1st line
17616
# is EXPORTS), use it as is; otherwise, prepend...
17617
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17618
cp $export_symbols $output_objdir/$soname.def;
17620
echo EXPORTS > $output_objdir/$soname.def;
17621
cat $export_symbols >> $output_objdir/$soname.def;
17623
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17630
hardcode_direct_GCJ=no
17631
hardcode_shlibpath_var_GCJ=no
17632
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17633
export_dynamic_flag_spec_GCJ='${wl}-E'
17634
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17635
# Instead, shared libraries are loaded at an image base (0x10000000 by
17636
# default) and relocated if they conflict, which is a slow very memory
17637
# consuming and fragmenting process. To avoid this, we pick a random,
17638
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17639
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
17640
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'
17641
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'
17644
gnu* | linux* | k*bsd*-gnu)
17645
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17647
case $cc_basename,$host_cpu in
17648
pgcc*) # Portland Group C compiler
17649
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'
17650
tmp_addflag=' $pic_flag'
17652
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17653
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'
17654
tmp_addflag=' $pic_flag -Mnomain' ;;
17655
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17656
tmp_addflag=' -i_dynamic' ;;
17657
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17658
tmp_addflag=' -i_dynamic -nofor_main' ;;
17659
ifc* | ifort*) # Intel Fortran compiler
17660
tmp_addflag=' -nofor_main' ;;
17662
case `$CC -V 2>&1 | sed 5q` in
17663
*Sun\ C*) # Sun C 5.9
17664
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'
17665
tmp_sharedflag='-G' ;;
17666
*Sun\ F*) # Sun Fortran 8.3
17667
tmp_sharedflag='-G' ;;
17669
tmp_sharedflag='-shared' ;;
17671
archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17673
if test $supports_anon_versioning = yes; then
17674
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17675
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17676
$echo "local: *; };" >> $output_objdir/$libname.ver~
17677
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17679
link_all_deplibs_GCJ=no
17685
netbsd* | netbsdelf*-gnu)
17686
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17687
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17690
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17691
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17696
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17700
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17701
*** create shared libraries on Solaris systems. Therefore, libtool
17702
*** is disabling shared libraries support. We urge you to upgrade GNU
17703
*** binutils to release 2.9.1 or newer. Another option is to modify
17704
*** your PATH or compiler configuration so that the native linker is
17705
*** used, and then restart.
17708
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17709
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17710
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17716
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17717
case `$LD -v 2>&1` in
17718
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17722
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17723
*** reliably create shared libraries on SCO systems. Therefore, libtool
17724
*** is disabling shared libraries support. We urge you to upgrade GNU
17725
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17726
*** your PATH or compiler configuration so that the native linker is
17727
*** used, and then restart.
17732
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17733
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17734
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17735
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17744
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17746
hardcode_direct_GCJ=yes
17747
hardcode_shlibpath_var_GCJ=no
17751
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17752
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17753
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17760
if test "$ld_shlibs_GCJ" = no; then
17762
hardcode_libdir_flag_spec_GCJ=
17763
export_dynamic_flag_spec_GCJ=
17764
whole_archive_flag_spec_GCJ=
17767
# PORTME fill in a description of your system's linker (not GNU ld)
17770
allow_undefined_flag_GCJ=unsupported
17771
always_export_symbols_GCJ=yes
17772
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'
17773
# Note: this linker hardcodes the directories in LIBPATH if there
17774
# are no directories specified by -L.
17775
hardcode_minus_L_GCJ=yes
17776
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17777
# Neither direct hardcoding nor static linking is supported with a
17779
hardcode_direct_GCJ=unsupported
17784
if test "$host_cpu" = ia64; then
17785
# On IA64, the linker does run time linking by default, so we don't
17786
# have to do anything special.
17787
aix_use_runtimelinking=no
17788
exp_sym_flag='-Bexport'
17791
# If we're using GNU nm, then we don't want the "-C" option.
17792
# -C means demangle to AIX nm, but means don't demangle with GNU nm
17793
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17794
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'
17796
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'
17798
aix_use_runtimelinking=no
17800
# Test if we are trying to use run time linking or normal
17801
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17802
# need to do runtime linking.
17803
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17804
for ld_flag in $LDFLAGS; do
17805
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17806
aix_use_runtimelinking=yes
17813
exp_sym_flag='-bexport'
17814
no_entry_flag='-bnoentry'
17817
# When large executables or shared objects are built, AIX ld can
17818
# have problems creating the table of contents. If linking a library
17819
# or program results in "error TOC overflow" add -mminimal-toc to
17820
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17821
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17823
archive_cmds_GCJ=''
17824
hardcode_direct_GCJ=yes
17825
hardcode_libdir_separator_GCJ=':'
17826
link_all_deplibs_GCJ=yes
17828
if test "$GCC" = yes; then
17829
case $host_os in aix4.[012]|aix4.[012].*)
17830
# We only want to do this on AIX 4.2 and lower, the check
17831
# below for broken collect2 doesn't work under 4.3+
17832
collect2name=`${CC} -print-prog-name=collect2`
17833
if test -f "$collect2name" && \
17834
strings "$collect2name" | grep resolve_lib_name >/dev/null
17836
# We have reworked collect2
17839
# We have old collect2
17840
hardcode_direct_GCJ=unsupported
17841
# It fails to find uninstalled libraries when the uninstalled
17842
# path is not listed in the libpath. Setting hardcode_minus_L
17843
# to unsupported forces relinking
17844
hardcode_minus_L_GCJ=yes
17845
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17846
hardcode_libdir_separator_GCJ=
17850
shared_flag='-shared'
17851
if test "$aix_use_runtimelinking" = yes; then
17852
shared_flag="$shared_flag "'${wl}-G'
17856
if test "$host_cpu" = ia64; then
17857
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17858
# chokes on -Wl,-G. The following line is correct:
17861
if test "$aix_use_runtimelinking" = yes; then
17862
shared_flag='${wl}-G'
17864
shared_flag='${wl}-bM:SRE'
17869
# It seems that -bexpall does not export symbols beginning with
17870
# underscore (_), so it is better to generate a list of symbols to export.
17871
always_export_symbols_GCJ=yes
17872
if test "$aix_use_runtimelinking" = yes; then
17873
# Warning - without using the other runtime loading flags (-brtl),
17874
# -berok will link without error, but may produce a broken library.
17875
allow_undefined_flag_GCJ='-berok'
17876
# Determine the default libpath from the value encoded in an empty executable.
17877
cat >conftest.$ac_ext <<_ACEOF
17880
cat confdefs.h >>conftest.$ac_ext
17881
cat >>conftest.$ac_ext <<_ACEOF
17882
/* end confdefs.h. */
17892
rm -f conftest.$ac_objext conftest$ac_exeext
17893
if { (ac_try="$ac_link"
17894
case "(($ac_try" in
17895
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17896
*) ac_try_echo=$ac_try;;
17898
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17899
(eval "$ac_link") 2>conftest.er1
17901
grep -v '^ *+' conftest.er1 >conftest.err
17903
cat conftest.err >&5
17904
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17905
(exit $ac_status); } && {
17906
test -z "$ac_c_werror_flag" ||
17907
test ! -s conftest.err
17908
} && test -s conftest$ac_exeext &&
17909
$as_test_x conftest$ac_exeext; then
17911
lt_aix_libpath_sed='
17912
/Import File Strings/,/^$/ {
17918
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17919
# Check for a 64-bit object if we didn't find anything.
17920
if test -z "$aix_libpath"; then
17921
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17924
echo "$as_me: failed program was:" >&5
17925
sed 's/^/| /' conftest.$ac_ext >&5
17930
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17931
conftest$ac_exeext conftest.$ac_ext
17932
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17934
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17935
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"
17937
if test "$host_cpu" = ia64; then
17938
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17939
allow_undefined_flag_GCJ="-z nodefs"
17940
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"
17942
# Determine the default libpath from the value encoded in an empty executable.
17943
cat >conftest.$ac_ext <<_ACEOF
17946
cat confdefs.h >>conftest.$ac_ext
17947
cat >>conftest.$ac_ext <<_ACEOF
17948
/* end confdefs.h. */
17958
rm -f conftest.$ac_objext conftest$ac_exeext
17959
if { (ac_try="$ac_link"
17960
case "(($ac_try" in
17961
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17962
*) ac_try_echo=$ac_try;;
17964
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17965
(eval "$ac_link") 2>conftest.er1
17967
grep -v '^ *+' conftest.er1 >conftest.err
17969
cat conftest.err >&5
17970
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17971
(exit $ac_status); } && {
17972
test -z "$ac_c_werror_flag" ||
17973
test ! -s conftest.err
17974
} && test -s conftest$ac_exeext &&
17975
$as_test_x conftest$ac_exeext; then
17977
lt_aix_libpath_sed='
17978
/Import File Strings/,/^$/ {
17984
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17985
# Check for a 64-bit object if we didn't find anything.
17986
if test -z "$aix_libpath"; then
17987
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17990
echo "$as_me: failed program was:" >&5
17991
sed 's/^/| /' conftest.$ac_ext >&5
17996
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17997
conftest$ac_exeext conftest.$ac_ext
17998
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18000
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18001
# Warning - without using the other run time loading flags,
18002
# -berok will link without error, but may produce a broken library.
18003
no_undefined_flag_GCJ=' ${wl}-bernotok'
18004
allow_undefined_flag_GCJ=' ${wl}-berok'
18005
# Exported symbols can be pulled into shared objects from archives
18006
whole_archive_flag_spec_GCJ='$convenience'
18007
archive_cmds_need_lc_GCJ=yes
18008
# This is similar to how AIX traditionally builds its shared libraries.
18009
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'
18015
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)'
18016
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18017
hardcode_minus_L_GCJ=yes
18018
# see comment about different semantics on the GNU ld section
18023
export_dynamic_flag_spec_GCJ=-rdynamic
18026
cygwin* | mingw* | pw32*)
18027
# When not using gcc, we currently assume that we are using
18028
# Microsoft Visual C++.
18029
# hardcode_libdir_flag_spec is actually meaningless, as there is
18030
# no search path for DLLs.
18031
hardcode_libdir_flag_spec_GCJ=' '
18032
allow_undefined_flag_GCJ=unsupported
18033
# Tell ltmain to make .lib files, not .a files.
18035
# Tell ltmain to make .dll files, not .so files.
18037
# FIXME: Setting linknames here is a bad hack.
18038
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18039
# The linker will automatically build a .lib file if we build a DLL.
18040
old_archive_From_new_cmds_GCJ='true'
18041
# FIXME: Should let the user specify the lib program.
18042
old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
18043
fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18044
enable_shared_with_static_runtimes_GCJ=yes
18047
darwin* | rhapsody*)
18049
rhapsody* | darwin1.[012])
18050
allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18053
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18054
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18056
case ${MACOSX_DEPLOYMENT_TARGET} in
18058
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18061
allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18067
archive_cmds_need_lc_GCJ=no
18068
hardcode_direct_GCJ=no
18069
hardcode_automatic_GCJ=yes
18070
hardcode_shlibpath_var_GCJ=unsupported
18071
whole_archive_flag_spec_GCJ=''
18072
link_all_deplibs_GCJ=yes
18073
if test "$GCC" = yes ; then
18074
output_verbose_link_cmd='echo'
18075
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}"
18076
module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18077
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}"
18078
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}"
18080
case $cc_basename in
18082
output_verbose_link_cmd='echo'
18083
archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
18084
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18085
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18086
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}'
18087
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}'
18097
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18098
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18099
hardcode_shlibpath_var_GCJ=no
18106
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18107
# support. Future versions do this automatically, but an explicit c++rt0.o
18108
# does not break anything, and helps significantly (at the cost of a little
18111
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18112
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18113
hardcode_direct_GCJ=yes
18114
hardcode_shlibpath_var_GCJ=no
18117
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
18119
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18120
hardcode_direct_GCJ=yes
18121
hardcode_minus_L_GCJ=yes
18122
hardcode_shlibpath_var_GCJ=no
18125
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18126
freebsd* | dragonfly*)
18127
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18128
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18129
hardcode_direct_GCJ=yes
18130
hardcode_shlibpath_var_GCJ=no
18134
if test "$GCC" = yes; then
18135
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'
18137
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'
18139
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18140
hardcode_libdir_separator_GCJ=:
18141
hardcode_direct_GCJ=yes
18143
# hardcode_minus_L: Not really in the search PATH,
18144
# but as the default location of the library.
18145
hardcode_minus_L_GCJ=yes
18146
export_dynamic_flag_spec_GCJ='${wl}-E'
18150
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18151
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18153
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18155
if test "$with_gnu_ld" = no; then
18156
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18157
hardcode_libdir_separator_GCJ=:
18159
hardcode_direct_GCJ=yes
18160
export_dynamic_flag_spec_GCJ='${wl}-E'
18162
# hardcode_minus_L: Not really in the search PATH,
18163
# but as the default location of the library.
18164
hardcode_minus_L_GCJ=yes
18169
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18172
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18175
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18178
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18184
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18187
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18190
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18194
if test "$with_gnu_ld" = no; then
18195
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18196
hardcode_libdir_separator_GCJ=:
18200
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18201
hardcode_direct_GCJ=no
18202
hardcode_shlibpath_var_GCJ=no
18205
hardcode_direct_GCJ=yes
18206
export_dynamic_flag_spec_GCJ='${wl}-E'
18208
# hardcode_minus_L: Not really in the search PATH,
18209
# but as the default location of the library.
18210
hardcode_minus_L_GCJ=yes
18216
irix5* | irix6* | nonstopux*)
18217
if test "$GCC" = yes; then
18218
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'
18220
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'
18221
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18223
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18224
hardcode_libdir_separator_GCJ=:
18225
link_all_deplibs_GCJ=yes
18228
netbsd* | netbsdelf*-gnu)
18229
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18230
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18232
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18234
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18235
hardcode_direct_GCJ=yes
18236
hardcode_shlibpath_var_GCJ=no
18240
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18241
hardcode_direct_GCJ=yes
18242
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18243
hardcode_libdir_separator_GCJ=:
18244
hardcode_shlibpath_var_GCJ=no
18248
if test -f /usr/libexec/ld.so; then
18249
hardcode_direct_GCJ=yes
18250
hardcode_shlibpath_var_GCJ=no
18251
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18252
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18253
archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18254
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18255
export_dynamic_flag_spec_GCJ='${wl}-E'
18258
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18259
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18260
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18263
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18264
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18274
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18275
hardcode_minus_L_GCJ=yes
18276
allow_undefined_flag_GCJ=unsupported
18277
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'
18278
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18282
if test "$GCC" = yes; then
18283
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18284
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'
18286
allow_undefined_flag_GCJ=' -expect_unresolved \*'
18287
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'
18289
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18290
hardcode_libdir_separator_GCJ=:
18293
osf4* | osf5*) # as osf3* with the addition of -msym flag
18294
if test "$GCC" = yes; then
18295
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18296
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'
18297
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18299
allow_undefined_flag_GCJ=' -expect_unresolved \*'
18300
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'
18301
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~
18302
$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'
18304
# Both c and cxx compiler support -rpath directly
18305
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18307
hardcode_libdir_separator_GCJ=:
18311
no_undefined_flag_GCJ=' -z text'
18312
if test "$GCC" = yes; then
18314
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18315
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18316
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18319
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18320
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18321
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18323
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18324
hardcode_shlibpath_var_GCJ=no
18326
solaris2.[0-5] | solaris2.[0-5].*) ;;
18328
# The compiler driver will combine and reorder linker options,
18329
# but understands `-z linker_flag'. GCC discards it without `$wl',
18330
# but is careful enough not to reorder.
18331
# Supported since Solaris 2.6 (maybe 2.5.1?)
18332
if test "$GCC" = yes; then
18333
whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18335
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18339
link_all_deplibs_GCJ=yes
18343
if test "x$host_vendor" = xsequent; then
18344
# Use $CC to link under sequent, because it throws in some extra .o
18345
# files that make .init and .fini sections work.
18346
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18348
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18350
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18351
hardcode_direct_GCJ=yes
18352
hardcode_minus_L_GCJ=yes
18353
hardcode_shlibpath_var_GCJ=no
18357
case $host_vendor in
18359
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18360
hardcode_direct_GCJ=yes # is this really true???
18363
## LD is ld it makes a PLAMLIB
18364
## CC just makes a GrossModule.
18365
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18366
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18367
hardcode_direct_GCJ=no
18370
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18371
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18374
runpath_var='LD_RUN_PATH'
18375
hardcode_shlibpath_var_GCJ=no
18379
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18380
hardcode_shlibpath_var_GCJ=no
18381
export_dynamic_flag_spec_GCJ='-Bexport'
18385
if test -d /usr/nec; then
18386
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18387
hardcode_shlibpath_var_GCJ=no
18388
runpath_var=LD_RUN_PATH
18389
hardcode_runpath_var=yes
18394
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18395
no_undefined_flag_GCJ='${wl}-z,text'
18396
archive_cmds_need_lc_GCJ=no
18397
hardcode_shlibpath_var_GCJ=no
18398
runpath_var='LD_RUN_PATH'
18400
if test "$GCC" = yes; then
18401
archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18402
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18404
archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18405
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18409
sysv5* | sco3.2v5* | sco5v6*)
18410
# Note: We can NOT use -z defs as we might desire, because we do not
18411
# link with -lc, and that would cause any symbols used from libc to
18412
# always be unresolved, which means just about no library would
18413
# ever link correctly. If we're not using GNU ld we use -z text
18414
# though, which does catch some bad symbols but isn't as heavy-handed
18416
no_undefined_flag_GCJ='${wl}-z,text'
18417
allow_undefined_flag_GCJ='${wl}-z,nodefs'
18418
archive_cmds_need_lc_GCJ=no
18419
hardcode_shlibpath_var_GCJ=no
18420
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18421
hardcode_libdir_separator_GCJ=':'
18422
link_all_deplibs_GCJ=yes
18423
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18424
runpath_var='LD_RUN_PATH'
18426
if test "$GCC" = yes; then
18427
archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18428
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18430
archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18431
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18436
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18437
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18438
hardcode_shlibpath_var_GCJ=no
18447
{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18448
echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18449
test "$ld_shlibs_GCJ" = no && can_build_shared=no
18452
# Do we need to explicitly link libc?
18454
case "x$archive_cmds_need_lc_GCJ" in
18456
# Assume -lc should be added
18457
archive_cmds_need_lc_GCJ=yes
18459
if test "$enable_shared" = yes && test "$GCC" = yes; then
18460
case $archive_cmds_GCJ in
18462
# FIXME: we may have to deal with multi-command sequences.
18465
# Test whether the compiler implicitly links with -lc since on some
18466
# systems, -lgcc has to come before -lc. If gcc already passes -lc
18467
# to ld, don't add -lc before -lgcc.
18468
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18469
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18471
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18473
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18474
(eval $ac_compile) 2>&5
18476
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18477
(exit $ac_status); } 2>conftest.err; then
18480
libobjs=conftest.$ac_objext
18482
wl=$lt_prog_compiler_wl_GCJ
18483
pic_flag=$lt_prog_compiler_pic_GCJ
18489
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18490
allow_undefined_flag_GCJ=
18491
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18492
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18494
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18495
(exit $ac_status); }
18497
archive_cmds_need_lc_GCJ=no
18499
archive_cmds_need_lc_GCJ=yes
18501
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18503
cat conftest.err 1>&5
18506
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18507
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18514
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18515
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18516
library_names_spec=
18517
libname_spec='lib$name'
18521
postuninstall_cmds=
18525
shlibpath_overrides_runpath=unknown
18527
dynamic_linker="$host_os ld.so"
18528
sys_lib_dlsearch_path_spec="/lib /usr/lib"
18530
need_lib_prefix=unknown
18531
hardcode_into_libs=no
18533
# when you set need_version to no, make sure it does not cause -set_version
18534
# flags to be left without arguments
18535
need_version=unknown
18540
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18541
shlibpath_var=LIBPATH
18543
# AIX 3 has no versioning support, so we append a major version to the name.
18544
soname_spec='${libname}${release}${shared_ext}$major'
18551
hardcode_into_libs=yes
18552
if test "$host_cpu" = ia64; then
18553
# AIX 5 supports IA64
18554
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18555
shlibpath_var=LD_LIBRARY_PATH
18557
# With GCC up to 2.95.x, collect2 would create an import file
18558
# for dependence libraries. The import file would start with
18559
# the line `#! .'. This would cause the generated library to
18560
# depend on `.', always an invalid library. This was fixed in
18561
# development snapshots of GCC prior to 3.0.
18563
aix4 | aix4.[01] | aix4.[01].*)
18564
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18566
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18569
can_build_shared=no
18573
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18574
# soname into executable. Probably we can add versioning support to
18575
# collect2, so additional links can be useful in future.
18576
if test "$aix_use_runtimelinking" = yes; then
18577
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
18578
# instead of lib<name>.a to let people know that these are not
18579
# typical AIX shared libraries.
18580
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18582
# We preserve .a as extension for shared libraries through AIX4.2
18583
# and later when we are not doing run time linking.
18584
library_names_spec='${libname}${release}.a $libname.a'
18585
soname_spec='${libname}${release}${shared_ext}$major'
18587
shlibpath_var=LIBPATH
18592
library_names_spec='$libname.ixlibrary $libname.a'
18593
# Create ${libname}_ixlibrary.a entries in /sys/libs.
18594
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'
18598
library_names_spec='${libname}${shared_ext}'
18599
dynamic_linker="$host_os ld.so"
18600
shlibpath_var=LIBRARY_PATH
18606
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18607
soname_spec='${libname}${release}${shared_ext}$major'
18608
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18609
shlibpath_var=LD_LIBRARY_PATH
18610
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18611
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18612
# the default ld.so.conf also contains /usr/contrib/lib and
18613
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18614
# libtool to hard-code these into programs
18617
cygwin* | mingw* | pw32*)
18618
version_type=windows
18623
case $GCC,$host_os in
18624
yes,cygwin* | yes,mingw* | yes,pw32*)
18625
library_names_spec='$libname.dll.a'
18626
# DLL is installed to $(libdir)/../bin by postinstall_cmds
18627
postinstall_cmds='base_file=`basename \${file}`~
18628
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18629
dldir=$destdir/`dirname \$dlpath`~
18630
test -d \$dldir || mkdir -p \$dldir~
18631
$install_prog $dir/$dlname \$dldir/$dlname~
18632
chmod a+x \$dldir/$dlname'
18633
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18634
dlpath=$dir/\$dldll~
18636
shlibpath_overrides_runpath=yes
18640
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
18641
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18642
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18645
# MinGW DLLs use traditional 'lib' prefix
18646
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18647
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18648
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18649
# It is most probably a Windows format PATH printed by
18650
# mingw gcc, but we are running on Cygwin. Gcc prints its search
18651
# path with ; separators, and with drive letters. We can handle the
18652
# drive letters (cygwin fileutils understands them), so leave them,
18653
# especially as we might pass files found there to a mingw objdump,
18654
# which wouldn't understand a cygwinified path. Ahh.
18655
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18657
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18661
# pw32 DLLs use 'pw' prefix rather than 'lib'
18662
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18668
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18671
dynamic_linker='Win32 ld.exe'
18672
# FIXME: first we should search . and the directory the executable is in
18676
darwin* | rhapsody*)
18677
dynamic_linker="$host_os dyld"
18678
version_type=darwin
18681
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18682
soname_spec='${libname}${release}${major}$shared_ext'
18683
shlibpath_overrides_runpath=yes
18684
shlibpath_var=DYLD_LIBRARY_PATH
18685
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18687
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18694
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18695
soname_spec='${libname}${release}${shared_ext}$major'
18696
shlibpath_var=LD_LIBRARY_PATH
18703
freebsd* | dragonfly*)
18704
# DragonFly does not have aout. When/if they implement a new
18705
# versioning mechanism, adjust this.
18706
if test -x /usr/bin/objformat; then
18707
objformat=`/usr/bin/objformat`
18710
freebsd[123]*) objformat=aout ;;
18711
*) objformat=elf ;;
18714
version_type=freebsd-$objformat
18715
case $version_type in
18717
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18722
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18726
shlibpath_var=LD_LIBRARY_PATH
18729
shlibpath_overrides_runpath=yes
18731
freebsd3.[01]* | freebsdelf3.[01]*)
18732
shlibpath_overrides_runpath=yes
18733
hardcode_into_libs=yes
18735
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18736
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18737
shlibpath_overrides_runpath=no
18738
hardcode_into_libs=yes
18740
*) # from 4.6 on, and DragonFly
18741
shlibpath_overrides_runpath=yes
18742
hardcode_into_libs=yes
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
shlibpath_var=LD_LIBRARY_PATH
18754
hardcode_into_libs=yes
18757
hpux9* | hpux10* | hpux11*)
18758
# Give a soname corresponding to the major version so that dld.sl refuses to
18759
# link against other versions.
18766
hardcode_into_libs=yes
18767
dynamic_linker="$host_os dld.so"
18768
shlibpath_var=LD_LIBRARY_PATH
18769
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18770
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18771
soname_spec='${libname}${release}${shared_ext}$major'
18772
if test "X$HPUX_IA64_MODE" = X32; then
18773
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18775
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18777
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18781
hardcode_into_libs=yes
18782
dynamic_linker="$host_os dld.sl"
18783
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18784
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18785
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18786
soname_spec='${libname}${release}${shared_ext}$major'
18787
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18788
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18792
dynamic_linker="$host_os dld.sl"
18793
shlibpath_var=SHLIB_PATH
18794
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18795
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18796
soname_spec='${libname}${release}${shared_ext}$major'
18799
# HP-UX runs *really* slowly unless shared libraries are mode 555.
18800
postinstall_cmds='chmod 555 $lib'
18807
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18808
soname_spec='${libname}${release}${shared_ext}$major'
18809
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18810
shlibpath_var=LD_LIBRARY_PATH
18811
shlibpath_overrides_runpath=no
18812
hardcode_into_libs=yes
18815
irix5* | irix6* | nonstopux*)
18817
nonstopux*) version_type=nonstopux ;;
18819
if test "$lt_cv_prog_gnu_ld" = yes; then
18827
soname_spec='${libname}${release}${shared_ext}$major'
18828
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18830
irix5* | nonstopux*)
18831
libsuff= shlibsuff=
18834
case $LD in # libtool.m4 will add one of these switches to LD
18835
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18836
libsuff= shlibsuff= libmagic=32-bit;;
18837
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18838
libsuff=32 shlibsuff=N32 libmagic=N32;;
18839
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18840
libsuff=64 shlibsuff=64 libmagic=64-bit;;
18841
*) libsuff= shlibsuff= libmagic=never-match;;
18845
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18846
shlibpath_overrides_runpath=no
18847
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18848
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18849
hardcode_into_libs=yes
18852
# No shared lib support for Linux oldld, aout, or coff.
18853
linux*oldld* | linux*aout* | linux*coff*)
18857
# This must be Linux ELF.
18858
linux* | k*bsd*-gnu)
18862
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18863
soname_spec='${libname}${release}${shared_ext}$major'
18864
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18865
shlibpath_var=LD_LIBRARY_PATH
18866
shlibpath_overrides_runpath=no
18867
# This implies no fast_install, which is unacceptable.
18868
# Some rework will be needed to allow for fast_install
18869
# before this can be enabled.
18870
hardcode_into_libs=yes
18872
# Append ld.so.conf contents to the search path
18873
if test -f /etc/ld.so.conf; then
18874
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' ' '`
18875
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18878
# We used to test for /lib/ld.so.1 and disable shared libraries on
18879
# powerpc, because MkLinux only supported shared libraries with the
18880
# GNU dynamic linker. Since this was broken with cross compilers,
18881
# most powerpc-linux boxes support dynamic linking these days and
18882
# people can always --disable-shared, the test was removed, and we
18883
# assume the GNU/Linux dynamic linker is in use.
18884
dynamic_linker='GNU/Linux ld.so'
18891
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18892
soname_spec='${libname}${release}${shared_ext}$major'
18893
shlibpath_var=LD_LIBRARY_PATH
18894
shlibpath_overrides_runpath=no
18895
hardcode_into_libs=yes
18896
dynamic_linker='NetBSD ld.elf_so'
18903
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18904
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18905
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18906
dynamic_linker='NetBSD (a.out) ld.so'
18908
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18909
soname_spec='${libname}${release}${shared_ext}$major'
18910
dynamic_linker='NetBSD ld.elf_so'
18912
shlibpath_var=LD_LIBRARY_PATH
18913
shlibpath_overrides_runpath=yes
18914
hardcode_into_libs=yes
18919
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18920
shlibpath_var=LD_LIBRARY_PATH
18921
shlibpath_overrides_runpath=yes
18928
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18929
soname_spec='${libname}${release}${shared_ext}$major'
18930
shlibpath_var=LD_LIBRARY_PATH
18931
shlibpath_overrides_runpath=yes
18936
sys_lib_dlsearch_path_spec="/usr/lib"
18938
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18940
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18941
*) need_version=no ;;
18943
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18944
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18945
shlibpath_var=LD_LIBRARY_PATH
18946
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18948
openbsd2.[89] | openbsd2.[89].*)
18949
shlibpath_overrides_runpath=no
18952
shlibpath_overrides_runpath=yes
18956
shlibpath_overrides_runpath=yes
18961
libname_spec='$name'
18964
library_names_spec='$libname${shared_ext} $libname.a'
18965
dynamic_linker='OS/2 ld.exe'
18966
shlibpath_var=LIBPATH
18969
osf3* | osf4* | osf5*)
18973
soname_spec='${libname}${release}${shared_ext}$major'
18974
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18975
shlibpath_var=LD_LIBRARY_PATH
18976
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18977
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18988
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18989
soname_spec='${libname}${release}${shared_ext}$major'
18990
shlibpath_var=LD_LIBRARY_PATH
18991
shlibpath_overrides_runpath=yes
18992
hardcode_into_libs=yes
18993
# ldd complains unless libraries are executable
18994
postinstall_cmds='chmod +x $lib'
18999
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19000
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19001
shlibpath_var=LD_LIBRARY_PATH
19002
shlibpath_overrides_runpath=yes
19003
if test "$with_gnu_ld" = yes; then
19011
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19012
soname_spec='${libname}${release}${shared_ext}$major'
19013
shlibpath_var=LD_LIBRARY_PATH
19014
case $host_vendor in
19016
shlibpath_overrides_runpath=no
19018
export_dynamic_flag_spec='${wl}-Blargedynsym'
19019
runpath_var=LD_RUN_PATH
19027
shlibpath_overrides_runpath=no
19028
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19034
if test -d /usr/nec ;then
19036
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19037
soname_spec='$libname${shared_ext}.$major'
19038
shlibpath_var=LD_LIBRARY_PATH
19042
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19043
version_type=freebsd-elf
19046
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19047
soname_spec='${libname}${release}${shared_ext}$major'
19048
shlibpath_var=LD_LIBRARY_PATH
19049
hardcode_into_libs=yes
19050
if test "$with_gnu_ld" = yes; then
19051
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19052
shlibpath_overrides_runpath=no
19054
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19055
shlibpath_overrides_runpath=yes
19058
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19062
sys_lib_dlsearch_path_spec='/usr/lib'
19067
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19068
soname_spec='${libname}${release}${shared_ext}$major'
19069
shlibpath_var=LD_LIBRARY_PATH
19076
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19077
echo "${ECHO_T}$dynamic_linker" >&6; }
19078
test "$dynamic_linker" = no && can_build_shared=no
19080
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19081
echo $ECHO_N "(cached) $ECHO_C" >&6
19083
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
19086
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19087
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19088
echo $ECHO_N "(cached) $ECHO_C" >&6
19090
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
19093
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19095
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19096
if test "$GCC" = yes; then
19097
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19100
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19101
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19102
hardcode_action_GCJ=
19103
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19104
test -n "$runpath_var_GCJ" || \
19105
test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19107
# We can hardcode non-existant directories.
19108
if test "$hardcode_direct_GCJ" != no &&
19109
# If the only mechanism to avoid hardcoding is shlibpath_var, we
19110
# have to relink, otherwise we might link with an installed library
19111
# when we should be linking with a yet-to-be-installed one
19112
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19113
test "$hardcode_minus_L_GCJ" != no; then
19114
# Linking always hardcodes the temporary library directory.
19115
hardcode_action_GCJ=relink
19117
# We can link without hardcoding, and we can hardcode nonexisting dirs.
19118
hardcode_action_GCJ=immediate
19121
# We cannot hardcode anything, or else we can only hardcode existing
19123
hardcode_action_GCJ=unsupported
19125
{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19126
echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
19128
if test "$hardcode_action_GCJ" = relink; then
19129
# Fast installation is not supported
19130
enable_fast_install=no
19131
elif test "$shlibpath_overrides_runpath" = yes ||
19132
test "$enable_shared" = no; then
19133
# Fast installation is not necessary
19134
enable_fast_install=needless
19138
# The else clause should only fire when bootstrapping the
19139
# libtool distribution, otherwise you forgot to ship ltmain.sh
19140
# with your package, and you will get complaints that there are
19141
# no rules to generate ltmain.sh.
19142
if test -f "$ltmain"; then
19143
# See if we are running on zsh, and set the options which allow our commands through
19144
# without removal of \ escapes.
19145
if test -n "${ZSH_VERSION+set}" ; then
19146
setopt NO_GLOB_SUBST
19148
# Now quote all the things that may contain metacharacters while being
19149
# careful not to overquote the AC_SUBSTed values. We take copies of the
19150
# variables and quote the copies for generation of the libtool script.
19151
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19153
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19154
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19155
deplibs_check_method reload_flag reload_cmds need_locks \
19156
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19157
lt_cv_sys_global_symbol_to_c_name_address \
19158
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19159
old_postinstall_cmds old_postuninstall_cmds \
19163
lt_prog_compiler_wl_GCJ \
19164
lt_prog_compiler_pic_GCJ \
19165
lt_prog_compiler_static_GCJ \
19166
lt_prog_compiler_no_builtin_flag_GCJ \
19167
export_dynamic_flag_spec_GCJ \
19168
thread_safe_flag_spec_GCJ \
19169
whole_archive_flag_spec_GCJ \
19170
enable_shared_with_static_runtimes_GCJ \
19171
old_archive_cmds_GCJ \
19172
old_archive_from_new_cmds_GCJ \
19173
predep_objects_GCJ \
19174
postdep_objects_GCJ \
19177
compiler_lib_search_path_GCJ \
19178
compiler_lib_search_dirs_GCJ \
19180
archive_expsym_cmds_GCJ \
19181
postinstall_cmds_GCJ \
19182
postuninstall_cmds_GCJ \
19183
old_archive_from_expsyms_cmds_GCJ \
19184
allow_undefined_flag_GCJ \
19185
no_undefined_flag_GCJ \
19186
export_symbols_cmds_GCJ \
19187
hardcode_libdir_flag_spec_GCJ \
19188
hardcode_libdir_flag_spec_ld_GCJ \
19189
hardcode_libdir_separator_GCJ \
19190
hardcode_automatic_GCJ \
19192
module_expsym_cmds_GCJ \
19193
lt_cv_prog_compiler_c_o_GCJ \
19194
fix_srcfile_path_GCJ \
19195
exclude_expsyms_GCJ \
19196
include_expsyms_GCJ; do
19199
old_archive_cmds_GCJ | \
19200
old_archive_from_new_cmds_GCJ | \
19201
archive_cmds_GCJ | \
19202
archive_expsym_cmds_GCJ | \
19203
module_cmds_GCJ | \
19204
module_expsym_cmds_GCJ | \
19205
old_archive_from_expsyms_cmds_GCJ | \
19206
export_symbols_cmds_GCJ | \
19207
extract_expsyms_cmds | reload_cmds | finish_cmds | \
19208
postinstall_cmds | postuninstall_cmds | \
19209
old_postinstall_cmds | old_postuninstall_cmds | \
19210
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19211
# Double-quote double-evaled strings.
19212
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19215
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19221
*'\$0 --fallback-echo"')
19222
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19228
cat <<__EOF__ >> "$cfgfile"
19229
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19231
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19233
# Shell to use when invoking shell scripts.
19236
# Whether or not to build shared libraries.
19237
build_libtool_libs=$enable_shared
19239
# Whether or not to build static libraries.
19240
build_old_libs=$enable_static
19242
# Whether or not to add -lc for building shared libraries.
19243
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19245
# Whether or not to disallow shared libs when runtime libs are static
19246
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19248
# Whether or not to optimize for fast installation.
19249
fast_install=$enable_fast_install
19252
host_alias=$host_alias
19256
# The build system.
19257
build_alias=$build_alias
19261
# An echo program that does not interpret backslashes.
19266
AR_FLAGS=$lt_AR_FLAGS
19271
# LTCC compiler flags.
19272
LTCFLAGS=$lt_LTCFLAGS
19274
# A language-specific compiler.
19275
CC=$lt_compiler_GCJ
19277
# Is the compiler the GNU C compiler?
19283
# The linker used to build libraries.
19286
# Whether we need hard or soft links.
19289
# A BSD-compatible nm program.
19292
# A symbol stripping program
19295
# Used to examine libraries when file_magic_cmd begins "file"
19296
MAGIC_CMD=$MAGIC_CMD
19298
# Used on cygwin: DLL creation program.
19301
# Used on cygwin: object dumper.
19304
# Used on cygwin: assembler.
19307
# The name of the directory that contains temporary libtool files.
19310
# How to create reloadable object files.
19311
reload_flag=$lt_reload_flag
19312
reload_cmds=$lt_reload_cmds
19314
# How to pass a linker flag through the compiler.
19315
wl=$lt_lt_prog_compiler_wl_GCJ
19317
# Object file suffix (normally "o").
19318
objext="$ac_objext"
19320
# Old archive suffix (normally "a").
19323
# Shared library suffix (normally ".so").
19324
shrext_cmds='$shrext_cmds'
19326
# Executable file suffix (normally "").
19329
# Additional compiler flags for building library objects.
19330
pic_flag=$lt_lt_prog_compiler_pic_GCJ
19333
# What is the maximum length of a command?
19334
max_cmd_len=$lt_cv_sys_max_cmd_len
19336
# Does compiler simultaneously support -c and -o options?
19337
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19339
# Must we lock files when doing compilation?
19340
need_locks=$lt_need_locks
19342
# Do we need the lib prefix for modules?
19343
need_lib_prefix=$need_lib_prefix
19345
# Do we need a version for libraries?
19346
need_version=$need_version
19348
# Whether dlopen is supported.
19349
dlopen_support=$enable_dlopen
19351
# Whether dlopen of programs is supported.
19352
dlopen_self=$enable_dlopen_self
19354
# Whether dlopen of statically linked programs is supported.
19355
dlopen_self_static=$enable_dlopen_self_static
19357
# Compiler flag to prevent dynamic linking.
19358
link_static_flag=$lt_lt_prog_compiler_static_GCJ
19360
# Compiler flag to turn off builtin functions.
19361
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19363
# Compiler flag to allow reflexive dlopens.
19364
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19366
# Compiler flag to generate shared objects directly from archives.
19367
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19369
# Compiler flag to generate thread-safe objects.
19370
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19372
# Library versioning type.
19373
version_type=$version_type
19375
# Format of library name prefix.
19376
libname_spec=$lt_libname_spec
19378
# List of archive names. First name is the real one, the rest are links.
19379
# The last name is the one that the linker finds with -lNAME.
19380
library_names_spec=$lt_library_names_spec
19382
# The coded name of the library, if different from the real name.
19383
soname_spec=$lt_soname_spec
19385
# Commands used to build and install an old-style archive.
19387
old_archive_cmds=$lt_old_archive_cmds_GCJ
19388
old_postinstall_cmds=$lt_old_postinstall_cmds
19389
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19391
# Create an old-style archive from a shared archive.
19392
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19394
# Create a temporary old-style archive to link instead of a shared archive.
19395
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19397
# Commands used to build and install a shared archive.
19398
archive_cmds=$lt_archive_cmds_GCJ
19399
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19400
postinstall_cmds=$lt_postinstall_cmds
19401
postuninstall_cmds=$lt_postuninstall_cmds
19403
# Commands used to build a loadable module (assumed same as above if empty)
19404
module_cmds=$lt_module_cmds_GCJ
19405
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19407
# Commands to strip libraries.
19408
old_striplib=$lt_old_striplib
19409
striplib=$lt_striplib
19411
# Dependencies to place before the objects being linked to create a
19413
predep_objects=$lt_predep_objects_GCJ
19415
# Dependencies to place after the objects being linked to create a
19417
postdep_objects=$lt_postdep_objects_GCJ
19419
# Dependencies to place before the objects being linked to create a
19421
predeps=$lt_predeps_GCJ
19423
# Dependencies to place after the objects being linked to create a
19425
postdeps=$lt_postdeps_GCJ
19427
# The directories searched by this compiler when creating a shared
19429
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19431
# The library search path used internally by the compiler when linking
19432
# a shared library.
19433
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19435
# Method to check whether dependent libraries are shared objects.
19436
deplibs_check_method=$lt_deplibs_check_method
19438
# Command to use when deplibs_check_method == file_magic.
19439
file_magic_cmd=$lt_file_magic_cmd
19441
# Flag that allows shared libraries with undefined symbols to be built.
19442
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19444
# Flag that forces no undefined symbols.
19445
no_undefined_flag=$lt_no_undefined_flag_GCJ
19447
# Commands used to finish a libtool library installation in a directory.
19448
finish_cmds=$lt_finish_cmds
19450
# Same as above, but a single script fragment to be evaled but not shown.
19451
finish_eval=$lt_finish_eval
19453
# Take the output of nm and produce a listing of raw symbols and C names.
19454
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19456
# Transform the output of nm in a proper C declaration
19457
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19459
# Transform the output of nm in a C name address pair
19460
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19462
# This is the shared library runtime path variable.
19463
runpath_var=$runpath_var
19465
# This is the shared library path variable.
19466
shlibpath_var=$shlibpath_var
19468
# Is shlibpath searched before the hard-coded library search path?
19469
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19471
# How to hardcode a shared library path into an executable.
19472
hardcode_action=$hardcode_action_GCJ
19474
# Whether we should hardcode library paths into libraries.
19475
hardcode_into_libs=$hardcode_into_libs
19477
# Flag to hardcode \$libdir into a binary during linking.
19478
# This must work even if \$libdir does not exist.
19479
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19481
# If ld is used when linking, flag to hardcode \$libdir into
19482
# a binary during linking. This must work even if \$libdir does
19484
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19486
# Whether we need a single -rpath flag with a separated argument.
19487
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19489
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19490
# resulting binary.
19491
hardcode_direct=$hardcode_direct_GCJ
19493
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19494
# resulting binary.
19495
hardcode_minus_L=$hardcode_minus_L_GCJ
19497
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19498
# the resulting binary.
19499
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19501
# Set to yes if building a shared library automatically hardcodes DIR into the library
19502
# and all subsequent libraries and executables linked against it.
19503
hardcode_automatic=$hardcode_automatic_GCJ
19505
# Variables whose values should be saved in libtool wrapper scripts and
19506
# restored at relink time.
19507
variables_saved_for_relink="$variables_saved_for_relink"
19509
# Whether libtool must link a program against all its dependency libraries.
19510
link_all_deplibs=$link_all_deplibs_GCJ
19512
# Compile-time system search path for libraries
19513
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19515
# Run-time system search path for libraries
19516
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19518
# Fix the shell variable \$srcfile for the compiler.
19519
fix_srcfile_path=$lt_fix_srcfile_path
19521
# Set to yes if exported symbols are required.
19522
always_export_symbols=$always_export_symbols_GCJ
19524
# The commands to list exported symbols.
19525
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19527
# The commands to extract the exported symbol list from a shared archive.
19528
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19530
# Symbols that should not be listed in the preloaded symbols.
19531
exclude_expsyms=$lt_exclude_expsyms_GCJ
19533
# Symbols that must always be exported.
19534
include_expsyms=$lt_include_expsyms_GCJ
19536
# ### END LIBTOOL TAG CONFIG: $tagname
19542
# If there is no Makefile yet, we rely on a make rule to execute
19543
# `config.status --recheck' to rerun these tests and create the
19544
# libtool script then.
19545
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19546
if test -f "$ltmain_in"; then
19547
test -f Makefile && make "$ltmain"
19553
ac_cpp='$CPP $CPPFLAGS'
19554
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19555
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19556
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19568
# Source file extension for RC test sources.
19571
# Object file extension for compiled RC test sources.
19575
# Code to be used in simple compile tests
19576
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19578
# Code to be used in simple link tests
19579
lt_simple_link_test_code="$lt_simple_compile_test_code"
19581
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19583
# If no C compiler was specified, use CC.
19586
# If no C compiler flags were specified, use CFLAGS.
19587
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19589
# Allow CC to be a program name with arguments.
19593
# save warnings/boilerplate of simple test code
19594
ac_outfile=conftest.$ac_objext
19595
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19596
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19597
_lt_compiler_boilerplate=`cat conftest.err`
19600
ac_outfile=conftest.$ac_objext
19601
echo "$lt_simple_link_test_code" >conftest.$ac_ext
19602
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19603
_lt_linker_boilerplate=`cat conftest.err`
19607
# Allow CC to be a program name with arguments.
19612
for cc_temp in $compiler""; do
19614
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19615
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19620
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19622
lt_cv_prog_compiler_c_o_RC=yes
19624
# The else clause should only fire when bootstrapping the
19625
# libtool distribution, otherwise you forgot to ship ltmain.sh
19626
# with your package, and you will get complaints that there are
19627
# no rules to generate ltmain.sh.
19628
if test -f "$ltmain"; then
19629
# See if we are running on zsh, and set the options which allow our commands through
19630
# without removal of \ escapes.
19631
if test -n "${ZSH_VERSION+set}" ; then
19632
setopt NO_GLOB_SUBST
19634
# Now quote all the things that may contain metacharacters while being
19635
# careful not to overquote the AC_SUBSTed values. We take copies of the
19636
# variables and quote the copies for generation of the libtool script.
19637
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19639
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19640
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19641
deplibs_check_method reload_flag reload_cmds need_locks \
19642
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19643
lt_cv_sys_global_symbol_to_c_name_address \
19644
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19645
old_postinstall_cmds old_postuninstall_cmds \
19649
lt_prog_compiler_wl_RC \
19650
lt_prog_compiler_pic_RC \
19651
lt_prog_compiler_static_RC \
19652
lt_prog_compiler_no_builtin_flag_RC \
19653
export_dynamic_flag_spec_RC \
19654
thread_safe_flag_spec_RC \
19655
whole_archive_flag_spec_RC \
19656
enable_shared_with_static_runtimes_RC \
19657
old_archive_cmds_RC \
19658
old_archive_from_new_cmds_RC \
19659
predep_objects_RC \
19660
postdep_objects_RC \
19663
compiler_lib_search_path_RC \
19664
compiler_lib_search_dirs_RC \
19666
archive_expsym_cmds_RC \
19667
postinstall_cmds_RC \
19668
postuninstall_cmds_RC \
19669
old_archive_from_expsyms_cmds_RC \
19670
allow_undefined_flag_RC \
19671
no_undefined_flag_RC \
19672
export_symbols_cmds_RC \
19673
hardcode_libdir_flag_spec_RC \
19674
hardcode_libdir_flag_spec_ld_RC \
19675
hardcode_libdir_separator_RC \
19676
hardcode_automatic_RC \
19678
module_expsym_cmds_RC \
19679
lt_cv_prog_compiler_c_o_RC \
19680
fix_srcfile_path_RC \
19681
exclude_expsyms_RC \
19682
include_expsyms_RC; do
19685
old_archive_cmds_RC | \
19686
old_archive_from_new_cmds_RC | \
19687
archive_cmds_RC | \
19688
archive_expsym_cmds_RC | \
19690
module_expsym_cmds_RC | \
19691
old_archive_from_expsyms_cmds_RC | \
19692
export_symbols_cmds_RC | \
19693
extract_expsyms_cmds | reload_cmds | finish_cmds | \
19694
postinstall_cmds | postuninstall_cmds | \
19695
old_postinstall_cmds | old_postuninstall_cmds | \
19696
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19697
# Double-quote double-evaled strings.
19698
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19701
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19707
*'\$0 --fallback-echo"')
19708
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19714
cat <<__EOF__ >> "$cfgfile"
19715
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19717
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19719
# Shell to use when invoking shell scripts.
19722
# Whether or not to build shared libraries.
19723
build_libtool_libs=$enable_shared
19725
# Whether or not to build static libraries.
19726
build_old_libs=$enable_static
19728
# Whether or not to add -lc for building shared libraries.
19729
build_libtool_need_lc=$archive_cmds_need_lc_RC
19731
# Whether or not to disallow shared libs when runtime libs are static
19732
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19734
# Whether or not to optimize for fast installation.
19735
fast_install=$enable_fast_install
19738
host_alias=$host_alias
19742
# The build system.
19743
build_alias=$build_alias
19747
# An echo program that does not interpret backslashes.
19752
AR_FLAGS=$lt_AR_FLAGS
19757
# LTCC compiler flags.
19758
LTCFLAGS=$lt_LTCFLAGS
19760
# A language-specific compiler.
19763
# Is the compiler the GNU C compiler?
19769
# The linker used to build libraries.
19772
# Whether we need hard or soft links.
19775
# A BSD-compatible nm program.
19778
# A symbol stripping program
19781
# Used to examine libraries when file_magic_cmd begins "file"
19782
MAGIC_CMD=$MAGIC_CMD
19784
# Used on cygwin: DLL creation program.
19787
# Used on cygwin: object dumper.
19790
# Used on cygwin: assembler.
19793
# The name of the directory that contains temporary libtool files.
19796
# How to create reloadable object files.
19797
reload_flag=$lt_reload_flag
19798
reload_cmds=$lt_reload_cmds
19800
# How to pass a linker flag through the compiler.
19801
wl=$lt_lt_prog_compiler_wl_RC
19803
# Object file suffix (normally "o").
19804
objext="$ac_objext"
19806
# Old archive suffix (normally "a").
19809
# Shared library suffix (normally ".so").
19810
shrext_cmds='$shrext_cmds'
19812
# Executable file suffix (normally "").
19815
# Additional compiler flags for building library objects.
19816
pic_flag=$lt_lt_prog_compiler_pic_RC
19819
# What is the maximum length of a command?
19820
max_cmd_len=$lt_cv_sys_max_cmd_len
19822
# Does compiler simultaneously support -c and -o options?
19823
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19825
# Must we lock files when doing compilation?
19826
need_locks=$lt_need_locks
19828
# Do we need the lib prefix for modules?
19829
need_lib_prefix=$need_lib_prefix
19831
# Do we need a version for libraries?
19832
need_version=$need_version
19834
# Whether dlopen is supported.
19835
dlopen_support=$enable_dlopen
19837
# Whether dlopen of programs is supported.
19838
dlopen_self=$enable_dlopen_self
19840
# Whether dlopen of statically linked programs is supported.
19841
dlopen_self_static=$enable_dlopen_self_static
19843
# Compiler flag to prevent dynamic linking.
19844
link_static_flag=$lt_lt_prog_compiler_static_RC
19846
# Compiler flag to turn off builtin functions.
19847
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19849
# Compiler flag to allow reflexive dlopens.
19850
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19852
# Compiler flag to generate shared objects directly from archives.
19853
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19855
# Compiler flag to generate thread-safe objects.
19856
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19858
# Library versioning type.
19859
version_type=$version_type
19861
# Format of library name prefix.
19862
libname_spec=$lt_libname_spec
19864
# List of archive names. First name is the real one, the rest are links.
19865
# The last name is the one that the linker finds with -lNAME.
19866
library_names_spec=$lt_library_names_spec
19868
# The coded name of the library, if different from the real name.
19869
soname_spec=$lt_soname_spec
19871
# Commands used to build and install an old-style archive.
19873
old_archive_cmds=$lt_old_archive_cmds_RC
19874
old_postinstall_cmds=$lt_old_postinstall_cmds
19875
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19877
# Create an old-style archive from a shared archive.
19878
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19880
# Create a temporary old-style archive to link instead of a shared archive.
19881
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19883
# Commands used to build and install a shared archive.
19884
archive_cmds=$lt_archive_cmds_RC
19885
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19886
postinstall_cmds=$lt_postinstall_cmds
19887
postuninstall_cmds=$lt_postuninstall_cmds
19889
# Commands used to build a loadable module (assumed same as above if empty)
19890
module_cmds=$lt_module_cmds_RC
19891
module_expsym_cmds=$lt_module_expsym_cmds_RC
19893
# Commands to strip libraries.
19894
old_striplib=$lt_old_striplib
19895
striplib=$lt_striplib
19897
# Dependencies to place before the objects being linked to create a
19899
predep_objects=$lt_predep_objects_RC
19901
# Dependencies to place after the objects being linked to create a
19903
postdep_objects=$lt_postdep_objects_RC
19905
# Dependencies to place before the objects being linked to create a
19907
predeps=$lt_predeps_RC
19909
# Dependencies to place after the objects being linked to create a
19911
postdeps=$lt_postdeps_RC
19913
# The directories searched by this compiler when creating a shared
19915
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19917
# The library search path used internally by the compiler when linking
19918
# a shared library.
19919
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19921
# Method to check whether dependent libraries are shared objects.
19922
deplibs_check_method=$lt_deplibs_check_method
19924
# Command to use when deplibs_check_method == file_magic.
19925
file_magic_cmd=$lt_file_magic_cmd
19927
# Flag that allows shared libraries with undefined symbols to be built.
19928
allow_undefined_flag=$lt_allow_undefined_flag_RC
19930
# Flag that forces no undefined symbols.
19931
no_undefined_flag=$lt_no_undefined_flag_RC
19933
# Commands used to finish a libtool library installation in a directory.
19934
finish_cmds=$lt_finish_cmds
19936
# Same as above, but a single script fragment to be evaled but not shown.
19937
finish_eval=$lt_finish_eval
19939
# Take the output of nm and produce a listing of raw symbols and C names.
19940
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19942
# Transform the output of nm in a proper C declaration
19943
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19945
# Transform the output of nm in a C name address pair
19946
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19948
# This is the shared library runtime path variable.
19949
runpath_var=$runpath_var
19951
# This is the shared library path variable.
19952
shlibpath_var=$shlibpath_var
19954
# Is shlibpath searched before the hard-coded library search path?
19955
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19957
# How to hardcode a shared library path into an executable.
19958
hardcode_action=$hardcode_action_RC
19960
# Whether we should hardcode library paths into libraries.
19961
hardcode_into_libs=$hardcode_into_libs
19963
# Flag to hardcode \$libdir into a binary during linking.
19964
# This must work even if \$libdir does not exist.
19965
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19967
# If ld is used when linking, flag to hardcode \$libdir into
19968
# a binary during linking. This must work even if \$libdir does
19970
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19972
# Whether we need a single -rpath flag with a separated argument.
19973
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19975
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19976
# resulting binary.
19977
hardcode_direct=$hardcode_direct_RC
19979
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19980
# resulting binary.
19981
hardcode_minus_L=$hardcode_minus_L_RC
19983
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19984
# the resulting binary.
19985
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19987
# Set to yes if building a shared library automatically hardcodes DIR into the library
19988
# and all subsequent libraries and executables linked against it.
19989
hardcode_automatic=$hardcode_automatic_RC
19991
# Variables whose values should be saved in libtool wrapper scripts and
19992
# restored at relink time.
19993
variables_saved_for_relink="$variables_saved_for_relink"
19995
# Whether libtool must link a program against all its dependency libraries.
19996
link_all_deplibs=$link_all_deplibs_RC
19998
# Compile-time system search path for libraries
19999
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20001
# Run-time system search path for libraries
20002
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20004
# Fix the shell variable \$srcfile for the compiler.
20005
fix_srcfile_path=$lt_fix_srcfile_path
20007
# Set to yes if exported symbols are required.
20008
always_export_symbols=$always_export_symbols_RC
20010
# The commands to list exported symbols.
20011
export_symbols_cmds=$lt_export_symbols_cmds_RC
20013
# The commands to extract the exported symbol list from a shared archive.
20014
extract_expsyms_cmds=$lt_extract_expsyms_cmds
20016
# Symbols that should not be listed in the preloaded symbols.
20017
exclude_expsyms=$lt_exclude_expsyms_RC
20019
# Symbols that must always be exported.
20020
include_expsyms=$lt_include_expsyms_RC
20022
# ### END LIBTOOL TAG CONFIG: $tagname
20028
# If there is no Makefile yet, we rely on a make rule to execute
20029
# `config.status --recheck' to rerun these tests and create the
20030
# libtool script then.
20031
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20032
if test -f "$ltmain_in"; then
20033
test -f Makefile && make "$ltmain"
20039
ac_cpp='$CPP $CPPFLAGS'
20040
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20041
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20042
ac_compiler_gnu=$ac_cv_c_compiler_gnu
20049
{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20050
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20051
{ (exit 1); exit 1; }; }
20055
# Append the new tag name to the list of available tags.
20056
if test -n "$tagname" ; then
20057
available_tags="$available_tags $tagname"
20063
# Now substitute the updated list of available tags.
20064
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20065
mv "${ofile}T" "$ofile"
20069
{ { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20070
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20071
{ (exit 1); exit 1; }; }
20077
# This can be used to rebuild libtool when needed
20078
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20080
# Always use our own libtool.
20081
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20083
# Prevent multiple expansion
20104
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
20105
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
20106
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
20107
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
20108
echo $ECHO_N "(cached) $ECHO_C" >&6
20110
cat >conftest.make <<\_ACEOF
20113
@echo '@@@%%%=$(MAKE)=@@@%%%'
20115
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20116
case `${MAKE-make} -f conftest.make 2>/dev/null` in
20117
*@@@%%%=?*=@@@%%%*)
20118
eval ac_cv_prog_make_${ac_make}_set=yes;;
20120
eval ac_cv_prog_make_${ac_make}_set=no;;
20122
rm -f conftest.make
20124
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
20125
{ echo "$as_me:$LINENO: result: yes" >&5
20126
echo "${ECHO_T}yes" >&6; }
20129
{ echo "$as_me:$LINENO: result: no" >&5
20130
echo "${ECHO_T}no" >&6; }
20131
SET_MAKE="MAKE=${MAKE-make}"
20135
ac_cpp='$CPP $CPPFLAGS'
20136
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20137
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20138
ac_compiler_gnu=$ac_cv_c_compiler_gnu
20139
if test -n "$ac_tool_prefix"; then
20140
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
20141
set dummy ${ac_tool_prefix}gcc; ac_word=$2
20142
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20143
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20144
if test "${ac_cv_prog_CC+set}" = set; then
20145
echo $ECHO_N "(cached) $ECHO_C" >&6
20147
if test -n "$CC"; then
20148
ac_cv_prog_CC="$CC" # Let the user override the test.
20150
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20151
for as_dir in $PATH
20154
test -z "$as_dir" && as_dir=.
20155
for ac_exec_ext in '' $ac_executable_extensions; do
20156
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20157
ac_cv_prog_CC="${ac_tool_prefix}gcc"
20158
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20168
if test -n "$CC"; then
20169
{ echo "$as_me:$LINENO: result: $CC" >&5
20170
echo "${ECHO_T}$CC" >&6; }
20172
{ echo "$as_me:$LINENO: result: no" >&5
20173
echo "${ECHO_T}no" >&6; }
20178
if test -z "$ac_cv_prog_CC"; then
20180
# Extract the first word of "gcc", so it can be a program name with args.
20181
set dummy gcc; ac_word=$2
20182
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20183
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20184
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
20185
echo $ECHO_N "(cached) $ECHO_C" >&6
20187
if test -n "$ac_ct_CC"; then
20188
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
20190
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20191
for as_dir in $PATH
20194
test -z "$as_dir" && as_dir=.
20195
for ac_exec_ext in '' $ac_executable_extensions; do
20196
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20197
ac_cv_prog_ac_ct_CC="gcc"
20198
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20207
ac_ct_CC=$ac_cv_prog_ac_ct_CC
20208
if test -n "$ac_ct_CC"; then
20209
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
20210
echo "${ECHO_T}$ac_ct_CC" >&6; }
20212
{ echo "$as_me:$LINENO: result: no" >&5
20213
echo "${ECHO_T}no" >&6; }
20216
if test "x$ac_ct_CC" = x; then
20219
case $cross_compiling:$ac_tool_warned in
20221
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20222
whose name does not start with the host triplet. If you think this
20223
configuration is useful to you, please write to autoconf@gnu.org." >&5
20224
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20225
whose name does not start with the host triplet. If you think this
20226
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20227
ac_tool_warned=yes ;;
20232
CC="$ac_cv_prog_CC"
20235
if test -z "$CC"; then
20236
if test -n "$ac_tool_prefix"; then
20237
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
20238
set dummy ${ac_tool_prefix}cc; ac_word=$2
20239
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20240
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20241
if test "${ac_cv_prog_CC+set}" = set; then
20242
echo $ECHO_N "(cached) $ECHO_C" >&6
20244
if test -n "$CC"; then
20245
ac_cv_prog_CC="$CC" # Let the user override the test.
20247
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20248
for as_dir in $PATH
20251
test -z "$as_dir" && as_dir=.
20252
for ac_exec_ext in '' $ac_executable_extensions; do
20253
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20254
ac_cv_prog_CC="${ac_tool_prefix}cc"
20255
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20265
if test -n "$CC"; then
20266
{ echo "$as_me:$LINENO: result: $CC" >&5
20267
echo "${ECHO_T}$CC" >&6; }
20269
{ echo "$as_me:$LINENO: result: no" >&5
20270
echo "${ECHO_T}no" >&6; }
20276
if test -z "$CC"; then
20277
# Extract the first word of "cc", so it can be a program name with args.
20278
set dummy cc; ac_word=$2
20279
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20280
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20281
if test "${ac_cv_prog_CC+set}" = set; then
20282
echo $ECHO_N "(cached) $ECHO_C" >&6
20284
if test -n "$CC"; then
20285
ac_cv_prog_CC="$CC" # Let the user override the test.
20287
ac_prog_rejected=no
20288
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20289
for as_dir in $PATH
20292
test -z "$as_dir" && as_dir=.
20293
for ac_exec_ext in '' $ac_executable_extensions; do
20294
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20295
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
20296
ac_prog_rejected=yes
20300
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20307
if test $ac_prog_rejected = yes; then
20308
# We found a bogon in the path, so make sure we never use it.
20309
set dummy $ac_cv_prog_CC
20311
if test $@%:@ != 0; then
20312
# We chose a different compiler from the bogus one.
20313
# However, it has the same basename, so the bogon will be chosen
20314
# first if we set CC to just the basename; use the full file name.
20316
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
20322
if test -n "$CC"; then
20323
{ echo "$as_me:$LINENO: result: $CC" >&5
20324
echo "${ECHO_T}$CC" >&6; }
20326
{ echo "$as_me:$LINENO: result: no" >&5
20327
echo "${ECHO_T}no" >&6; }
20332
if test -z "$CC"; then
20333
if test -n "$ac_tool_prefix"; then
20334
for ac_prog in cl.exe
20336
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20337
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20338
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20339
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20340
if test "${ac_cv_prog_CC+set}" = set; then
20341
echo $ECHO_N "(cached) $ECHO_C" >&6
20343
if test -n "$CC"; then
20344
ac_cv_prog_CC="$CC" # Let the user override the test.
20346
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20347
for as_dir in $PATH
20350
test -z "$as_dir" && as_dir=.
20351
for ac_exec_ext in '' $ac_executable_extensions; do
20352
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20353
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
20354
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20364
if test -n "$CC"; then
20365
{ echo "$as_me:$LINENO: result: $CC" >&5
20366
echo "${ECHO_T}$CC" >&6; }
20368
{ echo "$as_me:$LINENO: result: no" >&5
20369
echo "${ECHO_T}no" >&6; }
20373
test -n "$CC" && break
20376
if test -z "$CC"; then
20378
for ac_prog in cl.exe
20380
# Extract the first word of "$ac_prog", so it can be a program name with args.
20381
set dummy $ac_prog; ac_word=$2
20382
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20383
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20384
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
20385
echo $ECHO_N "(cached) $ECHO_C" >&6
20387
if test -n "$ac_ct_CC"; then
20388
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
20390
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20391
for as_dir in $PATH
20394
test -z "$as_dir" && as_dir=.
20395
for ac_exec_ext in '' $ac_executable_extensions; do
20396
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20397
ac_cv_prog_ac_ct_CC="$ac_prog"
20398
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20407
ac_ct_CC=$ac_cv_prog_ac_ct_CC
20408
if test -n "$ac_ct_CC"; then
20409
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
20410
echo "${ECHO_T}$ac_ct_CC" >&6; }
20412
{ echo "$as_me:$LINENO: result: no" >&5
20413
echo "${ECHO_T}no" >&6; }
20417
test -n "$ac_ct_CC" && break
20420
if test "x$ac_ct_CC" = x; then
20423
case $cross_compiling:$ac_tool_warned in
20425
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20426
whose name does not start with the host triplet. If you think this
20427
configuration is useful to you, please write to autoconf@gnu.org." >&5
20428
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20429
whose name does not start with the host triplet. If you think this
20430
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20431
ac_tool_warned=yes ;;
20440
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
20441
See \`config.log' for more details." >&5
20442
echo "$as_me: error: no acceptable C compiler found in \$PATH
20443
See \`config.log' for more details." >&2;}
20444
{ (exit 1); exit 1; }; }
20446
# Provide some information about the compiler.
20447
echo "$as_me:$LINENO: checking for C compiler version" >&5
20448
ac_compiler=`set X $ac_compile; echo $2`
20449
{ (ac_try="$ac_compiler --version >&5"
20450
case "(($ac_try" in
20451
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20452
*) ac_try_echo=$ac_try;;
20454
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20455
(eval "$ac_compiler --version >&5") 2>&5
20457
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20458
(exit $ac_status); }
20459
{ (ac_try="$ac_compiler -v >&5"
20460
case "(($ac_try" in
20461
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20462
*) ac_try_echo=$ac_try;;
20464
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20465
(eval "$ac_compiler -v >&5") 2>&5
20467
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20468
(exit $ac_status); }
20469
{ (ac_try="$ac_compiler -V >&5"
20470
case "(($ac_try" in
20471
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20472
*) ac_try_echo=$ac_try;;
20474
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20475
(eval "$ac_compiler -V >&5") 2>&5
20477
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20478
(exit $ac_status); }
20480
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
20481
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
20482
if test "${ac_cv_c_compiler_gnu+set}" = set; then
20483
echo $ECHO_N "(cached) $ECHO_C" >&6
20485
cat >conftest.$ac_ext <<_ACEOF
20488
cat confdefs.h >>conftest.$ac_ext
20489
cat >>conftest.$ac_ext <<_ACEOF
20490
/* end confdefs.h. */
20503
rm -f conftest.$ac_objext
20504
if { (ac_try="$ac_compile"
20505
case "(($ac_try" in
20506
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20507
*) ac_try_echo=$ac_try;;
20509
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20510
(eval "$ac_compile") 2>conftest.er1
20512
grep -v '^ *+' conftest.er1 >conftest.err
20514
cat conftest.err >&5
20515
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20516
(exit $ac_status); } && {
20517
test -z "$ac_c_werror_flag" ||
20518
test ! -s conftest.err
20519
} && test -s conftest.$ac_objext; then
20520
ac_compiler_gnu=yes
20522
echo "$as_me: failed program was:" >&5
20523
sed 's/^/| /' conftest.$ac_ext >&5
20528
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20529
ac_cv_c_compiler_gnu=$ac_compiler_gnu
20532
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
20533
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
20534
GCC=`test $ac_compiler_gnu = yes && echo yes`
20535
ac_test_CFLAGS=${CFLAGS+set}
20536
ac_save_CFLAGS=$CFLAGS
20537
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
20538
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
20539
if test "${ac_cv_prog_cc_g+set}" = set; then
20540
echo $ECHO_N "(cached) $ECHO_C" >&6
20542
ac_save_c_werror_flag=$ac_c_werror_flag
20543
ac_c_werror_flag=yes
20546
cat >conftest.$ac_ext <<_ACEOF
20549
cat confdefs.h >>conftest.$ac_ext
20550
cat >>conftest.$ac_ext <<_ACEOF
20551
/* end confdefs.h. */
20561
rm -f conftest.$ac_objext
20562
if { (ac_try="$ac_compile"
20563
case "(($ac_try" in
20564
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20565
*) ac_try_echo=$ac_try;;
20567
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20568
(eval "$ac_compile") 2>conftest.er1
20570
grep -v '^ *+' conftest.er1 >conftest.err
20572
cat conftest.err >&5
20573
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20574
(exit $ac_status); } && {
20575
test -z "$ac_c_werror_flag" ||
20576
test ! -s conftest.err
20577
} && test -s conftest.$ac_objext; then
20578
ac_cv_prog_cc_g=yes
20580
echo "$as_me: failed program was:" >&5
20581
sed 's/^/| /' conftest.$ac_ext >&5
20584
cat >conftest.$ac_ext <<_ACEOF
20587
cat confdefs.h >>conftest.$ac_ext
20588
cat >>conftest.$ac_ext <<_ACEOF
20589
/* end confdefs.h. */
20599
rm -f conftest.$ac_objext
20600
if { (ac_try="$ac_compile"
20601
case "(($ac_try" in
20602
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20603
*) ac_try_echo=$ac_try;;
20605
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20606
(eval "$ac_compile") 2>conftest.er1
20608
grep -v '^ *+' conftest.er1 >conftest.err
20610
cat conftest.err >&5
20611
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20612
(exit $ac_status); } && {
20613
test -z "$ac_c_werror_flag" ||
20614
test ! -s conftest.err
20615
} && test -s conftest.$ac_objext; then
20618
echo "$as_me: failed program was:" >&5
20619
sed 's/^/| /' conftest.$ac_ext >&5
20621
ac_c_werror_flag=$ac_save_c_werror_flag
20623
cat >conftest.$ac_ext <<_ACEOF
20626
cat confdefs.h >>conftest.$ac_ext
20627
cat >>conftest.$ac_ext <<_ACEOF
20628
/* end confdefs.h. */
20638
rm -f conftest.$ac_objext
20639
if { (ac_try="$ac_compile"
20640
case "(($ac_try" in
20641
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20642
*) ac_try_echo=$ac_try;;
20644
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20645
(eval "$ac_compile") 2>conftest.er1
20647
grep -v '^ *+' conftest.er1 >conftest.err
20649
cat conftest.err >&5
20650
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20651
(exit $ac_status); } && {
20652
test -z "$ac_c_werror_flag" ||
20653
test ! -s conftest.err
20654
} && test -s conftest.$ac_objext; then
20655
ac_cv_prog_cc_g=yes
20657
echo "$as_me: failed program was:" >&5
20658
sed 's/^/| /' conftest.$ac_ext >&5
20663
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20666
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20669
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20670
ac_c_werror_flag=$ac_save_c_werror_flag
20672
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
20673
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
20674
if test "$ac_test_CFLAGS" = set; then
20675
CFLAGS=$ac_save_CFLAGS
20676
elif test $ac_cv_prog_cc_g = yes; then
20677
if test "$GCC" = yes; then
20683
if test "$GCC" = yes; then
20689
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
20690
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
20691
if test "${ac_cv_prog_cc_c89+set}" = set; then
20692
echo $ECHO_N "(cached) $ECHO_C" >&6
20694
ac_cv_prog_cc_c89=no
20696
cat >conftest.$ac_ext <<_ACEOF
20699
cat confdefs.h >>conftest.$ac_ext
20700
cat >>conftest.$ac_ext <<_ACEOF
20701
/* end confdefs.h. */
20702
#include <stdarg.h>
20704
#include <sys/types.h>
20705
#include <sys/stat.h>
20706
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
20707
struct buf { int x; };
20708
FILE * (*rcsopen) (struct buf *, struct stat *, int);
20709
static char *e (p, i)
20715
static char *f (char * (*g) (char **, int), char **p, ...)
20720
s = g (p, va_arg (v,int));
20725
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
20726
function prototypes and stuff, but not '\xHH' hex character constants.
20727
These don't provoke an error unfortunately, instead are silently treated
20728
as 'x'. The following induces an error, until -std is added to get
20729
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
20730
array size at least. It's necessary to write '\x00'==0 to get something
20731
that's true only with -std. */
20732
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
20734
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
20735
inside strings and character constants. */
20737
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
20739
int test (int i, double x);
20740
struct s1 {int (*f) (int a);};
20741
struct s2 {int (*f) (double a);};
20742
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
20748
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
20753
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
20754
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
20756
CC="$ac_save_CC $ac_arg"
20757
rm -f conftest.$ac_objext
20758
if { (ac_try="$ac_compile"
20759
case "(($ac_try" in
20760
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20761
*) ac_try_echo=$ac_try;;
20763
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20764
(eval "$ac_compile") 2>conftest.er1
20766
grep -v '^ *+' conftest.er1 >conftest.err
20768
cat conftest.err >&5
20769
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20770
(exit $ac_status); } && {
20771
test -z "$ac_c_werror_flag" ||
20772
test ! -s conftest.err
20773
} && test -s conftest.$ac_objext; then
20774
ac_cv_prog_cc_c89=$ac_arg
20776
echo "$as_me: failed program was:" >&5
20777
sed 's/^/| /' conftest.$ac_ext >&5
20782
rm -f core conftest.err conftest.$ac_objext
20783
test "x$ac_cv_prog_cc_c89" != "xno" && break
20785
rm -f conftest.$ac_ext
20790
case "x$ac_cv_prog_cc_c89" in
20792
{ echo "$as_me:$LINENO: result: none needed" >&5
20793
echo "${ECHO_T}none needed" >&6; } ;;
20795
{ echo "$as_me:$LINENO: result: unsupported" >&5
20796
echo "${ECHO_T}unsupported" >&6; } ;;
20798
CC="$CC $ac_cv_prog_cc_c89"
20799
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
20800
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
20805
ac_cpp='$CPP $CPPFLAGS'
20806
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20807
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20808
ac_compiler_gnu=$ac_cv_c_compiler_gnu
20810
depcc="$CC" am_compiler_list=
20812
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
20813
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
20814
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
20815
echo $ECHO_N "(cached) $ECHO_C" >&6
20817
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20818
# We make a subdir and do the tests there. Otherwise we can end up
20819
# making bogus files that we don't know about and never remove. For
20820
# instance it was reported that on HP-UX the gcc test will end up
20821
# making a dummy file named `D' -- because `-MD' means `put the output
20824
# Copy depcomp to subdir because otherwise we won't find it if we're
20825
# using a relative directory.
20826
cp "$am_depcomp" conftest.dir
20828
# We will build objects and dependencies in a subdirectory because
20829
# it helps to detect inapplicable dependency modes. For instance
20830
# both Tru64's cc and ICC support -MD to output dependencies as a
20831
# side effect of compilation, but ICC will put the dependencies in
20832
# the current directory while Tru64 will put them in the object
20836
am_cv_CC_dependencies_compiler_type=none
20837
if test "$am_compiler_list" = ""; then
20838
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20840
for depmode in $am_compiler_list; do
20841
# Setup a source with many dependencies, because some compilers
20842
# like to wrap large dependency lists on column 80 (with \), and
20843
# we should not choose a depcomp mode which is confused by this.
20845
# We need to recreate these files for each test, as the compiler may
20846
# overwrite some of them when testing with obscure command lines.
20847
# This happens at least with the AIX C compiler.
20849
for i in 1 2 3 4 5 6; do
20850
echo '#include "conftst'$i'.h"' >> sub/conftest.c
20851
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
20852
# Solaris 8's {/usr,}/bin/sh.
20853
touch sub/conftst$i.h
20855
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20859
# after this tag, mechanisms are not by side-effect, so they'll
20860
# only be used when explicitly requested
20861
if test "x$enable_dependency_tracking" = xyes; then
20869
# We check with `-c' and `-o' for the sake of the "dashmstdout"
20870
# mode. It turns out that the SunPro C++ compiler does not properly
20871
# handle `-M -o', and we need to detect this.
20872
if depmode=$depmode \
20873
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
20874
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20875
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
20876
>/dev/null 2>conftest.err &&
20877
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
20878
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20879
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
20880
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20881
# icc doesn't choke on unknown options, it will just issue warnings
20882
# or remarks (even with -Werror). So we grep stderr for any message
20883
# that says an option was ignored or not supported.
20884
# When given -MP, icc 7.0 and 7.1 complain thusly:
20885
# icc: Command line warning: ignoring option '-M'; no argument required
20886
# The diagnosis changed in icc 8.0:
20887
# icc: Command line remark: option '-MP' not supported
20888
if (grep 'ignoring option' conftest.err ||
20889
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20890
am_cv_CC_dependencies_compiler_type=$depmode
20897
rm -rf conftest.dir
20899
am_cv_CC_dependencies_compiler_type=none
20903
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
20904
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
20905
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20908
test "x$enable_dependency_tracking" != xno \
20909
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20910
am__fastdepCC_TRUE=
20911
am__fastdepCC_FALSE='#'
20913
am__fastdepCC_TRUE='#'
20914
am__fastdepCC_FALSE=
20919
ac_cpp='$CXXCPP $CPPFLAGS'
20920
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20921
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20922
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20923
if test -z "$CXX"; then
20924
if test -n "$CCC"; then
20927
if test -n "$ac_tool_prefix"; then
20928
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
20930
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20931
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20932
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20933
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20934
if test "${ac_cv_prog_CXX+set}" = set; then
20935
echo $ECHO_N "(cached) $ECHO_C" >&6
20937
if test -n "$CXX"; then
20938
ac_cv_prog_CXX="$CXX" # Let the user override the test.
20940
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20941
for as_dir in $PATH
20944
test -z "$as_dir" && as_dir=.
20945
for ac_exec_ext in '' $ac_executable_extensions; do
20946
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20947
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
20948
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20957
CXX=$ac_cv_prog_CXX
20958
if test -n "$CXX"; then
20959
{ echo "$as_me:$LINENO: result: $CXX" >&5
20960
echo "${ECHO_T}$CXX" >&6; }
20962
{ echo "$as_me:$LINENO: result: no" >&5
20963
echo "${ECHO_T}no" >&6; }
20967
test -n "$CXX" && break
20970
if test -z "$CXX"; then
20972
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
20974
# Extract the first word of "$ac_prog", so it can be a program name with args.
20975
set dummy $ac_prog; ac_word=$2
20976
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20977
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20978
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
20979
echo $ECHO_N "(cached) $ECHO_C" >&6
20981
if test -n "$ac_ct_CXX"; then
20982
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
20984
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20985
for as_dir in $PATH
20988
test -z "$as_dir" && as_dir=.
20989
for ac_exec_ext in '' $ac_executable_extensions; do
20990
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20991
ac_cv_prog_ac_ct_CXX="$ac_prog"
20992
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21001
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
21002
if test -n "$ac_ct_CXX"; then
21003
{ echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
21004
echo "${ECHO_T}$ac_ct_CXX" >&6; }
21006
{ echo "$as_me:$LINENO: result: no" >&5
21007
echo "${ECHO_T}no" >&6; }
21011
test -n "$ac_ct_CXX" && break
21014
if test "x$ac_ct_CXX" = x; then
21017
case $cross_compiling:$ac_tool_warned in
21019
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21020
whose name does not start with the host triplet. If you think this
21021
configuration is useful to you, please write to autoconf@gnu.org." >&5
21022
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21023
whose name does not start with the host triplet. If you think this
21024
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21025
ac_tool_warned=yes ;;
21033
# Provide some information about the compiler.
21034
echo "$as_me:$LINENO: checking for C++ compiler version" >&5
21035
ac_compiler=`set X $ac_compile; echo $2`
21036
{ (ac_try="$ac_compiler --version >&5"
21037
case "(($ac_try" in
21038
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21039
*) ac_try_echo=$ac_try;;
21041
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21042
(eval "$ac_compiler --version >&5") 2>&5
21044
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21045
(exit $ac_status); }
21046
{ (ac_try="$ac_compiler -v >&5"
21047
case "(($ac_try" in
21048
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21049
*) ac_try_echo=$ac_try;;
21051
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21052
(eval "$ac_compiler -v >&5") 2>&5
21054
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21055
(exit $ac_status); }
21056
{ (ac_try="$ac_compiler -V >&5"
21057
case "(($ac_try" in
21058
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21059
*) ac_try_echo=$ac_try;;
21061
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21062
(eval "$ac_compiler -V >&5") 2>&5
21064
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21065
(exit $ac_status); }
21067
{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
21068
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
21069
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
21070
echo $ECHO_N "(cached) $ECHO_C" >&6
21072
cat >conftest.$ac_ext <<_ACEOF
21075
cat confdefs.h >>conftest.$ac_ext
21076
cat >>conftest.$ac_ext <<_ACEOF
21077
/* end confdefs.h. */
21090
rm -f conftest.$ac_objext
21091
if { (ac_try="$ac_compile"
21092
case "(($ac_try" in
21093
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21094
*) ac_try_echo=$ac_try;;
21096
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21097
(eval "$ac_compile") 2>conftest.er1
21099
grep -v '^ *+' conftest.er1 >conftest.err
21101
cat conftest.err >&5
21102
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21103
(exit $ac_status); } && {
21104
test -z "$ac_cxx_werror_flag" ||
21105
test ! -s conftest.err
21106
} && test -s conftest.$ac_objext; then
21107
ac_compiler_gnu=yes
21109
echo "$as_me: failed program was:" >&5
21110
sed 's/^/| /' conftest.$ac_ext >&5
21115
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21116
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
21119
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
21120
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
21121
GXX=`test $ac_compiler_gnu = yes && echo yes`
21122
ac_test_CXXFLAGS=${CXXFLAGS+set}
21123
ac_save_CXXFLAGS=$CXXFLAGS
21124
{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
21125
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
21126
if test "${ac_cv_prog_cxx_g+set}" = set; then
21127
echo $ECHO_N "(cached) $ECHO_C" >&6
21129
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
21130
ac_cxx_werror_flag=yes
21131
ac_cv_prog_cxx_g=no
21133
cat >conftest.$ac_ext <<_ACEOF
21136
cat confdefs.h >>conftest.$ac_ext
21137
cat >>conftest.$ac_ext <<_ACEOF
21138
/* end confdefs.h. */
21148
rm -f conftest.$ac_objext
21149
if { (ac_try="$ac_compile"
21150
case "(($ac_try" in
21151
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21152
*) ac_try_echo=$ac_try;;
21154
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21155
(eval "$ac_compile") 2>conftest.er1
21157
grep -v '^ *+' conftest.er1 >conftest.err
21159
cat conftest.err >&5
21160
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21161
(exit $ac_status); } && {
21162
test -z "$ac_cxx_werror_flag" ||
21163
test ! -s conftest.err
21164
} && test -s conftest.$ac_objext; then
21165
ac_cv_prog_cxx_g=yes
21167
echo "$as_me: failed program was:" >&5
21168
sed 's/^/| /' conftest.$ac_ext >&5
21171
cat >conftest.$ac_ext <<_ACEOF
21174
cat confdefs.h >>conftest.$ac_ext
21175
cat >>conftest.$ac_ext <<_ACEOF
21176
/* end confdefs.h. */
21186
rm -f conftest.$ac_objext
21187
if { (ac_try="$ac_compile"
21188
case "(($ac_try" in
21189
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21190
*) ac_try_echo=$ac_try;;
21192
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21193
(eval "$ac_compile") 2>conftest.er1
21195
grep -v '^ *+' conftest.er1 >conftest.err
21197
cat conftest.err >&5
21198
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21199
(exit $ac_status); } && {
21200
test -z "$ac_cxx_werror_flag" ||
21201
test ! -s conftest.err
21202
} && test -s conftest.$ac_objext; then
21205
echo "$as_me: failed program was:" >&5
21206
sed 's/^/| /' conftest.$ac_ext >&5
21208
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
21210
cat >conftest.$ac_ext <<_ACEOF
21213
cat confdefs.h >>conftest.$ac_ext
21214
cat >>conftest.$ac_ext <<_ACEOF
21215
/* end confdefs.h. */
21225
rm -f conftest.$ac_objext
21226
if { (ac_try="$ac_compile"
21227
case "(($ac_try" in
21228
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21229
*) ac_try_echo=$ac_try;;
21231
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21232
(eval "$ac_compile") 2>conftest.er1
21234
grep -v '^ *+' conftest.er1 >conftest.err
21236
cat conftest.err >&5
21237
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21238
(exit $ac_status); } && {
21239
test -z "$ac_cxx_werror_flag" ||
21240
test ! -s conftest.err
21241
} && test -s conftest.$ac_objext; then
21242
ac_cv_prog_cxx_g=yes
21244
echo "$as_me: failed program was:" >&5
21245
sed 's/^/| /' conftest.$ac_ext >&5
21250
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21253
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21256
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21257
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
21259
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
21260
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
21261
if test "$ac_test_CXXFLAGS" = set; then
21262
CXXFLAGS=$ac_save_CXXFLAGS
21263
elif test $ac_cv_prog_cxx_g = yes; then
21264
if test "$GXX" = yes; then
21270
if test "$GXX" = yes; then
21277
ac_cpp='$CPP $CPPFLAGS'
21278
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21279
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21280
ac_compiler_gnu=$ac_cv_c_compiler_gnu
21282
depcc="$CXX" am_compiler_list=
21284
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
21285
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
21286
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
21287
echo $ECHO_N "(cached) $ECHO_C" >&6
21289
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
21290
# We make a subdir and do the tests there. Otherwise we can end up
21291
# making bogus files that we don't know about and never remove. For
21292
# instance it was reported that on HP-UX the gcc test will end up
21293
# making a dummy file named `D' -- because `-MD' means `put the output
21296
# Copy depcomp to subdir because otherwise we won't find it if we're
21297
# using a relative directory.
21298
cp "$am_depcomp" conftest.dir
21300
# We will build objects and dependencies in a subdirectory because
21301
# it helps to detect inapplicable dependency modes. For instance
21302
# both Tru64's cc and ICC support -MD to output dependencies as a
21303
# side effect of compilation, but ICC will put the dependencies in
21304
# the current directory while Tru64 will put them in the object
21308
am_cv_CXX_dependencies_compiler_type=none
21309
if test "$am_compiler_list" = ""; then
21310
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
21312
for depmode in $am_compiler_list; do
21313
# Setup a source with many dependencies, because some compilers
21314
# like to wrap large dependency lists on column 80 (with \), and
21315
# we should not choose a depcomp mode which is confused by this.
21317
# We need to recreate these files for each test, as the compiler may
21318
# overwrite some of them when testing with obscure command lines.
21319
# This happens at least with the AIX C compiler.
21321
for i in 1 2 3 4 5 6; do
21322
echo '#include "conftst'$i'.h"' >> sub/conftest.c
21323
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
21324
# Solaris 8's {/usr,}/bin/sh.
21325
touch sub/conftst$i.h
21327
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
21331
# after this tag, mechanisms are not by side-effect, so they'll
21332
# only be used when explicitly requested
21333
if test "x$enable_dependency_tracking" = xyes; then
21341
# We check with `-c' and `-o' for the sake of the "dashmstdout"
21342
# mode. It turns out that the SunPro C++ compiler does not properly
21343
# handle `-M -o', and we need to detect this.
21344
if depmode=$depmode \
21345
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
21346
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
21347
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
21348
>/dev/null 2>conftest.err &&
21349
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
21350
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
21351
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
21352
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
21353
# icc doesn't choke on unknown options, it will just issue warnings
21354
# or remarks (even with -Werror). So we grep stderr for any message
21355
# that says an option was ignored or not supported.
21356
# When given -MP, icc 7.0 and 7.1 complain thusly:
21357
# icc: Command line warning: ignoring option '-M'; no argument required
21358
# The diagnosis changed in icc 8.0:
21359
# icc: Command line remark: option '-MP' not supported
21360
if (grep 'ignoring option' conftest.err ||
21361
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
21362
am_cv_CXX_dependencies_compiler_type=$depmode
21369
rm -rf conftest.dir
21371
am_cv_CXX_dependencies_compiler_type=none
21375
{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
21376
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
21377
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
21380
test "x$enable_dependency_tracking" != xno \
21381
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
21382
am__fastdepCXX_TRUE=
21383
am__fastdepCXX_FALSE='#'
21385
am__fastdepCXX_TRUE='#'
21386
am__fastdepCXX_FALSE=
21390
# Find a good install program. We prefer a C program (faster),
21391
# so one script is as good as another. But avoid the broken or
21392
# incompatible versions:
21393
# SysV /etc/install, /usr/sbin/install
21394
# SunOS /usr/etc/install
21395
# IRIX /sbin/install
21397
# AmigaOS /C/install, which installs bootblocks on floppy discs
21398
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
21399
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
21400
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
21401
# OS/2's system install, which has a completely different semantic
21402
# ./install, which can be erroneously created by make from ./install.sh.
21403
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
21404
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
21405
if test -z "$INSTALL"; then
21406
if test "${ac_cv_path_install+set}" = set; then
21407
echo $ECHO_N "(cached) $ECHO_C" >&6
21409
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21410
for as_dir in $PATH
21413
test -z "$as_dir" && as_dir=.
21414
# Account for people who put trailing slashes in PATH elements.
21416
./ | .// | /cC/* | \
21417
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
21418
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
21421
# OSF1 and SCO ODT 3.0 have their own names for install.
21422
# Don't use installbsd from OSF since it installs stuff as root
21424
for ac_prog in ginstall scoinst install; do
21425
for ac_exec_ext in '' $ac_executable_extensions; do
21426
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
21427
if test $ac_prog = install &&
21428
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
21429
# AIX install. It has an incompatible calling convention.
21431
elif test $ac_prog = install &&
21432
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
21433
# program-specific install script used by HP pwplus--don't use.
21436
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
21449
if test "${ac_cv_path_install+set}" = set; then
21450
INSTALL=$ac_cv_path_install
21452
# As a last resort, use the slow shell script. Don't cache a
21453
# value for INSTALL within a source directory, because that will
21454
# break other packages using the cache if that directory is
21455
# removed, or if the value is a relative name.
21456
INSTALL=$ac_install_sh
21459
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
21460
echo "${ECHO_T}$INSTALL" >&6; }
21462
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
21463
# It thinks the first close brace ends the variable substitution.
21464
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
21466
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
21468
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
21471
{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21472
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
21473
if test "${ac_cv_c_const+set}" = set; then
21474
echo $ECHO_N "(cached) $ECHO_C" >&6
21476
cat >conftest.$ac_ext <<_ACEOF
21479
cat confdefs.h >>conftest.$ac_ext
21480
cat >>conftest.$ac_ext <<_ACEOF
21481
/* end confdefs.h. */
21486
/* FIXME: Include the comments suggested by Paul. */
21487
#ifndef __cplusplus
21488
/* Ultrix mips cc rejects this. */
21489
typedef int charset[2];
21491
/* SunOS 4.1.1 cc rejects this. */
21492
char const *const *pcpcc;
21494
/* NEC SVR4.0.2 mips cc rejects this. */
21495
struct point {int x, y;};
21496
static struct point const zero = {0,0};
21497
/* AIX XL C 1.02.0.0 rejects this.
21498
It does not let you subtract one const X* pointer from another in
21499
an arm of an if-expression whose if-part is not a constant
21501
const char *g = "string";
21502
pcpcc = &g + (g ? g-g : 0);
21503
/* HPUX 7.0 cc rejects these. */
21505
ppc = (char**) pcpcc;
21506
pcpcc = (char const *const *) ppc;
21507
{ /* SCO 3.2v4 cc rejects this. */
21509
char const *s = 0 ? (char *) 0 : (char const *) 0;
21514
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21515
int x[] = {25, 17};
21516
const int *foo = &x[0];
21519
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21520
typedef const int *iptr;
21524
{ /* AIX XL C 1.02.0.0 rejects this saying
21525
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21526
struct s { int j; const int *ap[3]; };
21527
struct s *b; b->j = 5;
21529
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21530
const int foo = 10;
21531
if (!foo) return 0;
21533
return !cs[0] && !zero.x;
21540
rm -f conftest.$ac_objext
21541
if { (ac_try="$ac_compile"
21542
case "(($ac_try" in
21543
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21544
*) ac_try_echo=$ac_try;;
21546
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21547
(eval "$ac_compile") 2>conftest.er1
21549
grep -v '^ *+' conftest.er1 >conftest.err
21551
cat conftest.err >&5
21552
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21553
(exit $ac_status); } && {
21554
test -z "$ac_c_werror_flag" ||
21555
test ! -s conftest.err
21556
} && test -s conftest.$ac_objext; then
21559
echo "$as_me: failed program was:" >&5
21560
sed 's/^/| /' conftest.$ac_ext >&5
21565
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21567
{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21568
echo "${ECHO_T}$ac_cv_c_const" >&6; }
21569
if test $ac_cv_c_const = no; then
21571
cat >>confdefs.h <<\_ACEOF
21579
ac_cpp='$CPP $CPPFLAGS'
21580
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21581
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21582
ac_compiler_gnu=$ac_cv_c_compiler_gnu
21586
*-*-cygwin* | *-*-mingw32*)
21587
CFLAGS="$CFLAGS -DWIN32"
21588
if test "$build" != "$target"; then # cross-compiling
21589
ac_default_prefix=/usr/local/cross-tools/i386-mingw32msvc
21597
*-*-cygwin* | *-*-mingw32*)
21608
if test x$ac_cv_c_compiler_gnu = xyes; then
21617
LIBS="$LIBS $MATHLIB"
21621
# Check whether --with-sdl-prefix was given.
21622
if test "${with_sdl_prefix+set}" = set; then
21623
withval=$with_sdl_prefix; sdl_prefix="$withval"
21629
# Check whether --with-sdl-exec-prefix was given.
21630
if test "${with_sdl_exec_prefix+set}" = set; then
21631
withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
21636
# Check whether --enable-sdltest was given.
21637
if test "${enable_sdltest+set}" = set; then
21638
enableval=$enable_sdltest;
21644
if test x$sdl_exec_prefix != x ; then
21645
sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
21646
if test x${SDL_CONFIG+set} != xset ; then
21647
SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
21650
if test x$sdl_prefix != x ; then
21651
sdl_args="$sdl_args --prefix=$sdl_prefix"
21652
if test x${SDL_CONFIG+set} != xset ; then
21653
SDL_CONFIG=$sdl_prefix/bin/sdl-config
21657
if test "x$prefix" != xNONE; then
21658
PATH="$prefix/bin:$prefix/usr/bin:$PATH"
21660
# Extract the first word of "sdl-config", so it can be a program name with args.
21661
set dummy sdl-config; ac_word=$2
21662
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
21663
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21664
if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
21665
echo $ECHO_N "(cached) $ECHO_C" >&6
21667
case $SDL_CONFIG in
21669
ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
21672
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21673
for as_dir in $PATH
21676
test -z "$as_dir" && as_dir=.
21677
for ac_exec_ext in '' $ac_executable_extensions; do
21678
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21679
ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21680
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21687
test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
21691
SDL_CONFIG=$ac_cv_path_SDL_CONFIG
21692
if test -n "$SDL_CONFIG"; then
21693
{ echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
21694
echo "${ECHO_T}$SDL_CONFIG" >&6; }
21696
{ echo "$as_me:$LINENO: result: no" >&5
21697
echo "${ECHO_T}no" >&6; }
21701
min_sdl_version=$SDL_VERSION
21702
{ echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
21703
echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; }
21705
if test "$SDL_CONFIG" = "no" ; then
21708
SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
21709
SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
21711
sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
21712
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
21713
sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
21714
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
21715
sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
21716
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
21717
if test "x$enable_sdltest" = "xyes" ; then
21718
ac_save_CFLAGS="$CFLAGS"
21719
ac_save_CXXFLAGS="$CXXFLAGS"
21720
ac_save_LIBS="$LIBS"
21721
CFLAGS="$CFLAGS $SDL_CFLAGS"
21722
CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
21723
LIBS="$LIBS $SDL_LIBS"
21725
if test "$cross_compiling" = yes; then
21726
echo $ac_n "cross compiling; assumed OK... $ac_c"
21728
cat >conftest.$ac_ext <<_ACEOF
21731
cat confdefs.h >>conftest.$ac_ext
21732
cat >>conftest.$ac_ext <<_ACEOF
21733
/* end confdefs.h. */
21736
#include <stdlib.h>
21737
#include <string.h>
21741
my_strdup (char *str)
21747
new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
21748
strcpy (new_str, str);
21756
int main (int argc, char *argv[])
21758
int major, minor, micro;
21761
/* This hangs on some systems (?)
21762
system ("touch conf.sdltest");
21764
{ FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
21766
/* HP/UX 9 (%@#!) writes to sscanf strings */
21767
tmp_version = my_strdup("$min_sdl_version");
21768
if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
21769
printf("%s, bad version string\n", "$min_sdl_version");
21773
if (($sdl_major_version > major) ||
21774
(($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
21775
(($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
21781
printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
21782
printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
21783
printf("*** best to upgrade to the required version.\n");
21784
printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
21785
printf("*** to point to the correct copy of sdl-config, and remove the file\n");
21786
printf("*** config.cache before re-running configure\n");
21793
rm -f conftest$ac_exeext
21794
if { (ac_try="$ac_link"
21795
case "(($ac_try" in
21796
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21797
*) ac_try_echo=$ac_try;;
21799
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21800
(eval "$ac_link") 2>&5
21802
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21803
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
21811
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21812
(exit $ac_status); }; }; then
21815
echo "$as_me: program exited with status $ac_status" >&5
21816
echo "$as_me: failed program was:" >&5
21817
sed 's/^/| /' conftest.$ac_ext >&5
21819
( exit $ac_status )
21822
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21826
CFLAGS="$ac_save_CFLAGS"
21827
CXXFLAGS="$ac_save_CXXFLAGS"
21828
LIBS="$ac_save_LIBS"
21831
if test "x$no_sdl" = x ; then
21832
{ echo "$as_me:$LINENO: result: yes" >&5
21833
echo "${ECHO_T}yes" >&6; }
21836
{ echo "$as_me:$LINENO: result: no" >&5
21837
echo "${ECHO_T}no" >&6; }
21838
if test "$SDL_CONFIG" = "no" ; then
21839
echo "*** The sdl-config script installed by SDL could not be found"
21840
echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
21841
echo "*** your path, or set the SDL_CONFIG environment variable to the"
21842
echo "*** full path to sdl-config."
21844
if test -f conf.sdltest ; then
21847
echo "*** Could not run SDL test program, checking why..."
21848
CFLAGS="$CFLAGS $SDL_CFLAGS"
21849
CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
21850
LIBS="$LIBS $SDL_LIBS"
21851
cat >conftest.$ac_ext <<_ACEOF
21854
cat confdefs.h >>conftest.$ac_ext
21855
cat >>conftest.$ac_ext <<_ACEOF
21856
/* end confdefs.h. */
21861
int main(int argc, char *argv[])
21864
#define main K_and_R_C_main
21874
rm -f conftest.$ac_objext conftest$ac_exeext
21875
if { (ac_try="$ac_link"
21876
case "(($ac_try" in
21877
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21878
*) ac_try_echo=$ac_try;;
21880
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21881
(eval "$ac_link") 2>conftest.er1
21883
grep -v '^ *+' conftest.er1 >conftest.err
21885
cat conftest.err >&5
21886
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21887
(exit $ac_status); } && {
21888
test -z "$ac_c_werror_flag" ||
21889
test ! -s conftest.err
21890
} && test -s conftest$ac_exeext &&
21891
$as_test_x conftest$ac_exeext; then
21892
echo "*** The test program compiled, but did not run. This usually means"
21893
echo "*** that the run-time linker is not finding SDL or finding the wrong"
21894
echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
21895
echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
21896
echo "*** to the installed location Also, make sure you have run ldconfig if that"
21897
echo "*** is required on your system"
21899
echo "*** If you have an old version installed, it is best to remove it, although"
21900
echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
21902
echo "$as_me: failed program was:" >&5
21903
sed 's/^/| /' conftest.$ac_ext >&5
21905
echo "*** The test program failed to compile or link. See the file config.log for the"
21906
echo "*** exact error that occured. This usually means SDL was incorrectly installed"
21907
echo "*** or that you have moved SDL since it was installed. In the latter case, you"
21908
echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
21911
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21912
conftest$ac_exeext conftest.$ac_ext
21913
CFLAGS="$ac_save_CFLAGS"
21914
CXXFLAGS="$ac_save_CXXFLAGS"
21915
LIBS="$ac_save_LIBS"
21920
{ { echo "$as_me:$LINENO: error: *** SDL version $SDL_VERSION not found!" >&5
21921
echo "$as_me: error: *** SDL version $SDL_VERSION not found!" >&2;}
21922
{ (exit 1); exit 1; }; }
21929
CFLAGS="$CFLAGS $SDL_CFLAGS"
21930
LIBS="$LIBS $SDL_LIBS"
21933
{ echo "$as_me:$LINENO: checking for pixelColor in -lSDL_gfx" >&5
21934
echo $ECHO_N "checking for pixelColor in -lSDL_gfx... $ECHO_C" >&6; }
21935
if test "${ac_cv_lib_SDL_gfx_pixelColor_+set}" = set; then
21936
echo $ECHO_N "(cached) $ECHO_C" >&6
21938
ac_check_lib_save_LIBS=$LIBS
21939
LIBS="-lSDL_gfx $LIBS"
21940
cat >conftest.$ac_ext <<_ACEOF
21943
cat confdefs.h >>conftest.$ac_ext
21944
cat >>conftest.$ac_ext <<_ACEOF
21945
/* end confdefs.h. */
21947
/* Override any GCC internal prototype to avoid an error.
21948
Use char because int might match the return type of a GCC
21949
builtin and then its argument prototype would still apply. */
21953
char pixelColor ();
21957
return pixelColor ();
21962
rm -f conftest.$ac_objext conftest$ac_exeext
21963
if { (ac_try="$ac_link"
21964
case "(($ac_try" in
21965
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21966
*) ac_try_echo=$ac_try;;
21968
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21969
(eval "$ac_link") 2>conftest.er1
21971
grep -v '^ *+' conftest.er1 >conftest.err
21973
cat conftest.err >&5
21974
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21975
(exit $ac_status); } && {
21976
test -z "$ac_c_werror_flag" ||
21977
test ! -s conftest.err
21978
} && test -s conftest$ac_exeext &&
21979
$as_test_x conftest$ac_exeext; then
21980
ac_cv_lib_SDL_gfx_pixelColor_=yes
21982
echo "$as_me: failed program was:" >&5
21983
sed 's/^/| /' conftest.$ac_ext >&5
21985
ac_cv_lib_SDL_gfx_pixelColor_=no
21988
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21989
conftest$ac_exeext conftest.$ac_ext
21990
LIBS=$ac_check_lib_save_LIBS
21992
{ echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_gfx_pixelColor_" >&5
21993
echo "${ECHO_T}$ac_cv_lib_SDL_gfx_pixelColor_" >&6; }
21994
if test $ac_cv_lib_SDL_gfx_pixelColor_ = yes; then
21998
if test x$have_sdlgfx = xyes; then
21999
LIBS="$LIBS -lSDL_gfx"
22001
{ { echo "$as_me:$LINENO: error:
22002
*** Unable to find SDL_gfx library
22004
echo "$as_me: error:
22005
*** Unable to find SDL_gfx library
22007
{ (exit 1); exit 1; }; }
22010
# Finally create all the generated files
22011
ac_config_files="$ac_config_files Makefile"
22013
cat >confcache <<\_ACEOF
22014
# This file is a shell script that caches the results of configure
22015
# tests run on this system so they can be shared between configure
22016
# scripts and configure runs, see configure's option --config-cache.
22017
# It is not useful on other systems. If it contains results you don't
22018
# want to keep, you may remove or edit it.
22020
# config.status only pays attention to the cache file if you give it
22021
# the --recheck option to rerun configure.
22023
# `ac_cv_env_foo' variables (set or unset) will be overridden when
22024
# loading this file, other *unset* `ac_cv_foo' will be assigned the
22025
# following values.
22029
# The following way of writing the cache mishandles newlines in values,
22030
# but we know of no workaround that is simple, portable, and efficient.
22031
# So, we kill variables containing newlines.
22032
# Ultrix sh set writes to stderr and can't be redirected directly,
22033
# and sets the high bit in the cache file unless we assign to the vars.
22035
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22036
eval ac_val=\$$ac_var
22040
*_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22041
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22044
_ | IFS | as_nl) ;; #(
22045
*) $as_unset $ac_var ;;
22051
case $as_nl`(ac_space=' '; set) 2>&1` in #(
22052
*${as_nl}ac_space=\ *)
22053
# `set' does not quote correctly, so add quotes (double-quote
22054
# substitution turns \\\\ into \\, and sed turns \\ into \).
22057
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22060
# `set' quotes correctly as required by POSIX, so do not add quotes.
22061
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22070
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22072
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22074
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22075
if test -w "$cache_file"; then
22076
test "x$cache_file" != "x/dev/null" &&
22077
{ echo "$as_me:$LINENO: updating cache $cache_file" >&5
22078
echo "$as_me: updating cache $cache_file" >&6;}
22079
cat confcache >$cache_file
22081
{ echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22082
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22087
test "x$prefix" = xNONE && prefix=$ac_default_prefix
22088
# Let make expand exec_prefix.
22089
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22091
# Transform confdefs.h into DEFS.
22092
# Protect against shell expansion while executing Makefile rules.
22093
# Protect against Makefile macro expansion.
22095
# If the first sed substitution is executed (which looks for macros that
22096
# take arguments), then branch to the quote section. Otherwise,
22097
# look for a macro that doesn't take arguments.
22101
s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
22103
s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
22107
s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
22120
DEFS=`sed -n "$ac_script" confdefs.h`
22125
for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
22126
# 1. Remove the extension, and $U if already installed.
22127
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22128
ac_i=`echo "$ac_i" | sed "$ac_script"`
22129
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22130
# will be set to the directory where LIBOBJS objects are built.
22131
ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22132
ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22134
LIB@&t@OBJS=$ac_libobjs
22136
LTLIBOBJS=$ac_ltlibobjs
22139
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22140
{ { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22141
Usually this means the macro was only invoked conditionally." >&5
22142
echo "$as_me: error: conditional \"AMDEP\" was never defined.
22143
Usually this means the macro was only invoked conditionally." >&2;}
22144
{ (exit 1); exit 1; }; }
22146
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22147
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22148
Usually this means the macro was only invoked conditionally." >&5
22149
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22150
Usually this means the macro was only invoked conditionally." >&2;}
22151
{ (exit 1); exit 1; }; }
22153
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22154
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22155
Usually this means the macro was only invoked conditionally." >&5
22156
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22157
Usually this means the macro was only invoked conditionally." >&2;}
22158
{ (exit 1); exit 1; }; }
22160
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22161
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22162
Usually this means the macro was only invoked conditionally." >&5
22163
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22164
Usually this means the macro was only invoked conditionally." >&2;}
22165
{ (exit 1); exit 1; }; }
22167
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22168
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22169
Usually this means the macro was only invoked conditionally." >&5
22170
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22171
Usually this means the macro was only invoked conditionally." >&2;}
22172
{ (exit 1); exit 1; }; }
22175
: ${CONFIG_STATUS=./config.status}
22176
ac_clean_files_save=$ac_clean_files
22177
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22178
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22179
echo "$as_me: creating $CONFIG_STATUS" >&6;}
22180
cat >$CONFIG_STATUS <<_ACEOF
22182
# Generated by $as_me.
22183
# Run this file to recreate the current configuration.
22184
# Compiler output produced by configure, useful for debugging
22185
# configure, is in config.log if it exists.
22188
ac_cs_recheck=false
22190
SHELL=\${CONFIG_SHELL-$SHELL}
22193
cat >>$CONFIG_STATUS <<\_ACEOF
22194
## --------------------- ##
22195
## M4sh Initialization. ##
22196
## --------------------- ##
22198
# Be more Bourne compatible
22199
DUALCASE=1; export DUALCASE # for MKS sh
22200
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22203
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22204
# is contrary to our usage. Disable this feature.
22205
alias -g '${1+"$@"}'='"$@"'
22206
setopt NO_GLOB_SUBST
22208
case `(set -o) 2>/dev/null` in
22209
*posix*) set -o posix ;;
22218
# Avoid depending upon Character Ranges.
22219
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22220
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22221
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22222
as_cr_digits='0123456789'
22223
as_cr_alnum=$as_cr_Letters$as_cr_digits
22225
# The user is always right.
22226
if test "${PATH_SEPARATOR+set}" != set; then
22227
echo "#! /bin/sh" >conf$$.sh
22228
echo "exit 0" >>conf$$.sh
22230
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22238
# Support unset when possible.
22239
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22247
# We need space, tab and new line, in precisely that order. Quoting is
22248
# there to prevent editors from complaining about space-tab.
22249
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
22250
# splitting by setting IFS to empty value.)
22255
# Find who we are. Look in the path if we contain no directory separator.
22257
*[\\/]* ) as_myself=$0 ;;
22258
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22259
for as_dir in $PATH
22262
test -z "$as_dir" && as_dir=.
22263
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22269
# We did not find ourselves, most probably we were run as `sh COMMAND'
22270
# in which case we are not to be found in the path.
22271
if test "x$as_myself" = x; then
22274
if test ! -f "$as_myself"; then
22275
echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22276
{ (exit 1); exit 1; }
22279
# Work around bugs in pre-3.0 UWIN ksh.
22280
for as_var in ENV MAIL MAILPATH
22281
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22289
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22290
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22291
LC_TELEPHONE LC_TIME
22293
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22294
eval $as_var=C; export $as_var
22296
($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22300
# Required to use basename.
22301
if expr a : '\(a\)' >/dev/null 2>&1 &&
22302
test "X`expr 00001 : '.*\(...\)'`" = X001; then
22308
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22309
as_basename=basename
22315
# Name of the executable.
22316
as_me=`$as_basename -- "$0" ||
22317
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22318
X"$0" : 'X\(//\)$' \| \
22319
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22321
sed '/^.*\/\([^/][^/]*\)\/*$/{
22340
as_lineno_1=$LINENO
22341
as_lineno_2=$LINENO
22342
test "x$as_lineno_1" != "x$as_lineno_2" &&
22343
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22345
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22346
# uniformly replaced by the line number. The first 'sed' inserts a
22347
# line-number line after each line using $LINENO; the second 'sed'
22348
# does the real work. The second script uses 'N' to pair each
22349
# line-number line with the line containing $LINENO, and appends
22350
# trailing '-' during substitution so that $LINENO is not a special
22351
# case at line end.
22352
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22353
# scripts with optimization help from Paolo Bonzini. Blame Lee
22354
# E. McMahon (1931-1989) for sed's syntax. :-)
22366
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22369
' >$as_me.lineno &&
22370
chmod +x "$as_me.lineno" ||
22371
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22372
{ (exit 1); exit 1; }; }
22374
# Don't try to exec as it changes $[0], causing all sort of problems
22375
# (the dirname of $[0] is not the place where we might find the
22376
# original and so on. Autoconf is especially sensitive to this).
22377
. "./$as_me.lineno"
22378
# Exit status is that of the last command.
22383
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22389
ECHO_C= ECHO_N= ECHO_T=
22390
case `echo -n x` in
22392
case `echo 'x\c'` in
22393
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
22400
if expr a : '\(a\)' >/dev/null 2>&1 &&
22401
test "X`expr 00001 : '.*\(...\)'`" = X001; then
22407
rm -f conf$$ conf$$.exe conf$$.file
22408
if test -d conf$$.dir; then
22409
rm -f conf$$.dir/conf$$.file
22415
if ln -s conf$$.file conf$$ 2>/dev/null; then
22417
# ... but there are two gotchas:
22418
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22419
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22420
# In both cases, we have to default to `cp -p'.
22421
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22423
elif ln conf$$.file conf$$ 2>/dev/null; then
22428
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22429
rmdir conf$$.dir 2>/dev/null
22431
if mkdir -p . 2>/dev/null; then
22434
test -d ./-p && rmdir ./-p
22438
if test -x / >/dev/null 2>&1; then
22439
as_test_x='test -x'
22441
if ls -dL / >/dev/null 2>&1; then
22448
if test -d "$1"; then
22454
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
22455
???[sx]*):;;*)false;;esac;fi
22459
as_executable_p=$as_test_x
22461
# Sed expression to map a string onto a valid CPP name.
22462
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22464
# Sed expression to map a string onto a valid variable name.
22465
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22470
# Save the log message, to keep $[0] and so on meaningful, and to
22471
# report actual input values of CONFIG_FILES etc. instead of their
22472
# values after options handling.
22474
This file was extended by $as_me, which was
22475
generated by GNU Autoconf 2.61. Invocation command line was
22477
CONFIG_FILES = $CONFIG_FILES
22478
CONFIG_HEADERS = $CONFIG_HEADERS
22479
CONFIG_LINKS = $CONFIG_LINKS
22480
CONFIG_COMMANDS = $CONFIG_COMMANDS
22483
on `(hostname || uname -n) 2>/dev/null | sed 1q`
22488
cat >>$CONFIG_STATUS <<_ACEOF
22489
# Files that config.status was made for.
22490
config_files="$ac_config_files"
22491
config_commands="$ac_config_commands"
22495
cat >>$CONFIG_STATUS <<\_ACEOF
22497
\`$as_me' instantiates files from templates according to the
22498
current configuration.
22500
Usage: $0 [OPTIONS] [FILE]...
22502
-h, --help print this help, then exit
22503
-V, --version print version number and configuration settings, then exit
22504
-q, --quiet do not print progress messages
22505
-d, --debug don't remove temporary files
22506
--recheck update $as_me by reconfiguring in the same conditions
22507
--file=FILE[:TEMPLATE]
22508
instantiate the configuration file FILE
22510
Configuration files:
22513
Configuration commands:
22516
Report bugs to <bug-autoconf@gnu.org>."
22519
cat >>$CONFIG_STATUS <<_ACEOF
22522
configured by $0, generated by GNU Autoconf 2.61,
22523
with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22525
Copyright (C) 2006 Free Software Foundation, Inc.
22526
This config.status script is free software; the Free Software Foundation
22527
gives unlimited permission to copy, distribute and modify it."
22535
cat >>$CONFIG_STATUS <<\_ACEOF
22536
# If no file are specified by the user, then we need to provide default
22537
# value. By we need to know if files were specified by the user.
22543
ac_option=`expr "X$1" : 'X\([^=]*\)='`
22544
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22555
# Handling of the options.
22556
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22558
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22559
echo "$ac_cs_version"; exit ;;
22560
--debug | --debu | --deb | --de | --d | -d )
22562
--file | --fil | --fi | --f )
22564
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22565
ac_need_defaults=false;;
22566
--he | --h | --help | --hel | -h )
22567
echo "$ac_cs_usage"; exit ;;
22568
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
22569
| -silent | --silent | --silen | --sile | --sil | --si | --s)
22572
# This is an error.
22573
-*) { echo "$as_me: error: unrecognized option: $1
22574
Try \`$0 --help' for more information." >&2
22575
{ (exit 1); exit 1; }; } ;;
22577
*) ac_config_targets="$ac_config_targets $1"
22578
ac_need_defaults=false ;;
22584
ac_configure_extra_args=
22586
if $ac_cs_silent; then
22588
ac_configure_extra_args="$ac_configure_extra_args --silent"
22592
cat >>$CONFIG_STATUS <<_ACEOF
22593
if \$ac_cs_recheck; then
22594
echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22595
CONFIG_SHELL=$SHELL
22596
export CONFIG_SHELL
22597
exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22601
cat >>$CONFIG_STATUS <<\_ACEOF
22605
sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
22606
@%:@@%:@ Running $as_me. @%:@@%:@
22612
cat >>$CONFIG_STATUS <<_ACEOF
22616
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22620
cat >>$CONFIG_STATUS <<\_ACEOF
22622
# Handling of arguments.
22623
for ac_config_target in $ac_config_targets
22625
case $ac_config_target in
22626
"depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22627
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22629
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22630
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22631
{ (exit 1); exit 1; }; };;
22636
# If the user did not use the arguments to specify the items to instantiate,
22637
# then the envvar interface is used. Set only those that are not.
22638
# We use the long form for the default assignment because of an extremely
22639
# bizarre bug on SunOS 4.1.3.
22640
if $ac_need_defaults; then
22641
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22642
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22645
# Have a temporary directory for convenience. Make it in the build tree
22646
# simply because there is no reason against having it here, and in addition,
22647
# creating and moving files from /tmp can sometimes cause problems.
22648
# Hook for its removal unless debugging.
22649
# Note that there is a small window in which the directory will not be cleaned:
22650
# after its creation but before its name has been assigned to `$tmp'.
22654
trap 'exit_status=$?
22655
{ test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22657
trap '{ (exit 1); exit 1; }' 1 2 13 15
22659
# Create a (secure) tmp directory for tmp files.
22662
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22663
test -n "$tmp" && test -d "$tmp"
22666
tmp=./conf$$-$RANDOM
22667
(umask 077 && mkdir "$tmp")
22670
echo "$me: cannot create a temporary directory in ." >&2
22671
{ (exit 1); exit 1; }
22675
# Set up the sed scripts for CONFIG_FILES section.
22678
# No need to generate the scripts if there are no CONFIG_FILES.
22679
# This happens for instance when ./config.status config.h
22680
if test -n "$CONFIG_FILES"; then
22687
for ac_last_try in false false false false false :; do
22688
cat >conf$$subs.sed <<_ACEOF
22689
SHELL!$SHELL$ac_delim
22690
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22691
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22692
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22693
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22694
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22695
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22696
exec_prefix!$exec_prefix$ac_delim
22697
prefix!$prefix$ac_delim
22698
program_transform_name!$program_transform_name$ac_delim
22699
bindir!$bindir$ac_delim
22700
sbindir!$sbindir$ac_delim
22701
libexecdir!$libexecdir$ac_delim
22702
datarootdir!$datarootdir$ac_delim
22703
datadir!$datadir$ac_delim
22704
sysconfdir!$sysconfdir$ac_delim
22705
sharedstatedir!$sharedstatedir$ac_delim
22706
localstatedir!$localstatedir$ac_delim
22707
includedir!$includedir$ac_delim
22708
oldincludedir!$oldincludedir$ac_delim
22709
docdir!$docdir$ac_delim
22710
infodir!$infodir$ac_delim
22711
htmldir!$htmldir$ac_delim
22712
dvidir!$dvidir$ac_delim
22713
pdfdir!$pdfdir$ac_delim
22714
psdir!$psdir$ac_delim
22715
libdir!$libdir$ac_delim
22716
localedir!$localedir$ac_delim
22717
mandir!$mandir$ac_delim
22718
DEFS!$DEFS$ac_delim
22719
ECHO_C!$ECHO_C$ac_delim
22720
ECHO_N!$ECHO_N$ac_delim
22721
ECHO_T!$ECHO_T$ac_delim
22722
LIBS!$LIBS$ac_delim
22723
build_alias!$build_alias$ac_delim
22724
host_alias!$host_alias$ac_delim
22725
target_alias!$target_alias$ac_delim
22726
build!$build$ac_delim
22727
build_cpu!$build_cpu$ac_delim
22728
build_vendor!$build_vendor$ac_delim
22729
build_os!$build_os$ac_delim
22730
host!$host$ac_delim
22731
host_cpu!$host_cpu$ac_delim
22732
host_vendor!$host_vendor$ac_delim
22733
host_os!$host_os$ac_delim
22734
target!$target$ac_delim
22735
target_cpu!$target_cpu$ac_delim
22736
target_vendor!$target_vendor$ac_delim
22737
target_os!$target_os$ac_delim
22738
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22739
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22740
INSTALL_DATA!$INSTALL_DATA$ac_delim
22741
am__isrc!$am__isrc$ac_delim
22742
CYGPATH_W!$CYGPATH_W$ac_delim
22743
PACKAGE!$PACKAGE$ac_delim
22744
VERSION!$VERSION$ac_delim
22745
ACLOCAL!$ACLOCAL$ac_delim
22746
AUTOCONF!$AUTOCONF$ac_delim
22747
AUTOMAKE!$AUTOMAKE$ac_delim
22748
AUTOHEADER!$AUTOHEADER$ac_delim
22749
MAKEINFO!$MAKEINFO$ac_delim
22750
install_sh!$install_sh$ac_delim
22751
STRIP!$STRIP$ac_delim
22752
INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
22753
mkdir_p!$mkdir_p$ac_delim
22755
SET_MAKE!$SET_MAKE$ac_delim
22756
am__leading_dot!$am__leading_dot$ac_delim
22757
AMTAR!$AMTAR$ac_delim
22758
am__tar!$am__tar$ac_delim
22759
am__untar!$am__untar$ac_delim
22761
CFLAGS!$CFLAGS$ac_delim
22762
LDFLAGS!$LDFLAGS$ac_delim
22763
CPPFLAGS!$CPPFLAGS$ac_delim
22764
ac_ct_CC!$ac_ct_CC$ac_delim
22765
EXEEXT!$EXEEXT$ac_delim
22766
OBJEXT!$OBJEXT$ac_delim
22767
DEPDIR!$DEPDIR$ac_delim
22768
am__include!$am__include$ac_delim
22769
am__quote!$am__quote$ac_delim
22770
AMDEP_TRUE!$AMDEP_TRUE$ac_delim
22771
AMDEP_FALSE!$AMDEP_FALSE$ac_delim
22772
AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
22773
CCDEPMODE!$CCDEPMODE$ac_delim
22774
am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
22775
am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
22777
GREP!$GREP$ac_delim
22778
EGREP!$EGREP$ac_delim
22779
LN_S!$LN_S$ac_delim
22780
ECHO!$ECHO$ac_delim
22782
RANLIB!$RANLIB$ac_delim
22783
DSYMUTIL!$DSYMUTIL$ac_delim
22784
NMEDIT!$NMEDIT$ac_delim
22785
DLLTOOL!$DLLTOOL$ac_delim
22788
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22790
elif $ac_last_try; then
22791
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22792
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22793
{ (exit 1); exit 1; }; }
22795
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22799
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22800
if test -n "$ac_eof"; then
22801
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22802
ac_eof=`expr $ac_eof + 1`
22805
cat >>$CONFIG_STATUS <<_ACEOF
22806
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22807
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22810
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22811
s/^/s,@/; s/!/@,|#_!!_#|/
22814
s/'"$ac_delim"'$/,g/; t
22816
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22817
' >>$CONFIG_STATUS <conf$$subs.sed
22818
rm -f conf$$subs.sed
22819
cat >>$CONFIG_STATUS <<_ACEOF
22825
for ac_last_try in false false false false false :; do
22826
cat >conf$$subs.sed <<_ACEOF
22828
OBJDUMP!$OBJDUMP$ac_delim
22831
CXXFLAGS!$CXXFLAGS$ac_delim
22832
ac_ct_CXX!$ac_ct_CXX$ac_delim
22833
CXXDEPMODE!$CXXDEPMODE$ac_delim
22834
am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
22835
am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
22836
CXXCPP!$CXXCPP$ac_delim
22838
FFLAGS!$FFLAGS$ac_delim
22839
ac_ct_F77!$ac_ct_F77$ac_delim
22840
LIBTOOL!$LIBTOOL$ac_delim
22841
MATHLIB!$MATHLIB$ac_delim
22842
SDL_CONFIG!$SDL_CONFIG$ac_delim
22843
SDL_CFLAGS!$SDL_CFLAGS$ac_delim
22844
SDL_LIBS!$SDL_LIBS$ac_delim
22845
LIB@&t@OBJS!$LIB@&t@OBJS$ac_delim
22846
LTLIBOBJS!$LTLIBOBJS$ac_delim
22849
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 20; then
22851
elif $ac_last_try; then
22852
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22853
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22854
{ (exit 1); exit 1; }; }
22856
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22860
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22861
if test -n "$ac_eof"; then
22862
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22863
ac_eof=`expr $ac_eof + 1`
22866
cat >>$CONFIG_STATUS <<_ACEOF
22867
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22868
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22871
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22872
s/^/s,@/; s/!/@,|#_!!_#|/
22875
s/'"$ac_delim"'$/,g/; t
22877
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22878
' >>$CONFIG_STATUS <conf$$subs.sed
22879
rm -f conf$$subs.sed
22880
cat >>$CONFIG_STATUS <<_ACEOF
22887
# VPATH may cause trouble with some makes, so we remove $(srcdir),
22888
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22889
# trailing colons and then remove the whole line if VPATH becomes empty
22890
# (actually we leave an empty line to preserve line numbers).
22891
if test "x$srcdir" = x.; then
22892
ac_vpsub='/^[ ]*VPATH[ ]*=/{
22893
s/:*\$(srcdir):*/:/
22894
s/:*\${srcdir}:*/:/
22896
s/^\([^=]*=[ ]*\):*/\1/
22902
cat >>$CONFIG_STATUS <<\_ACEOF
22903
fi # test -n "$CONFIG_FILES"
22906
for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
22909
:[FHLC]) ac_mode=$ac_tag; continue;;
22911
case $ac_mode$ac_tag in
22913
:L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22914
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22915
{ (exit 1); exit 1; }; };;
22916
:[FH]-) ac_tag=-:-;;
22917
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22934
-) ac_f="$tmp/stdin";;
22935
*) # Look for the file first in the build tree, then in the source tree
22936
# (if the path is not absolute). The absolute path cannot be DOS-style,
22937
# because $ac_f cannot contain `:'.
22941
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22943
{ { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22944
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22945
{ (exit 1); exit 1; }; };;
22947
ac_file_inputs="$ac_file_inputs $ac_f"
22950
# Let's still pretend it is `configure' which instantiates (i.e., don't
22951
# use $as_me), people would be surprised to read:
22952
# /* config.h. Generated by config.status. */
22953
configure_input="Generated from "`IFS=:
22954
echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22955
if test x"$ac_file" != x-; then
22956
configure_input="$ac_file. $configure_input"
22957
{ echo "$as_me:$LINENO: creating $ac_file" >&5
22958
echo "$as_me: creating $ac_file" >&6;}
22962
*:-:* | *:-) cat >"$tmp/stdin";;
22967
ac_dir=`$as_dirname -- "$ac_file" ||
22968
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22969
X"$ac_file" : 'X\(//\)[^/]' \| \
22970
X"$ac_file" : 'X\(//\)$' \| \
22971
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22973
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22977
/^X\(\/\/\)[^/].*/{
22992
-*) as_dir=./$as_dir;;
22994
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22998
*\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22999
*) as_qdir=$as_dir;;
23001
as_dirs="'$as_qdir' $as_dirs"
23002
as_dir=`$as_dirname -- "$as_dir" ||
23003
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23004
X"$as_dir" : 'X\(//\)[^/]' \| \
23005
X"$as_dir" : 'X\(//\)$' \| \
23006
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23008
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23012
/^X\(\/\/\)[^/].*/{
23025
test -d "$as_dir" && break
23027
test -z "$as_dirs" || eval "mkdir $as_dirs"
23028
} || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23029
echo "$as_me: error: cannot create directory $as_dir" >&2;}
23030
{ (exit 1); exit 1; }; }; }
23034
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23036
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23037
# A ".." for each directory in $ac_dir_suffix.
23038
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23039
case $ac_top_builddir_sub in
23040
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23041
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23044
ac_abs_top_builddir=$ac_pwd
23045
ac_abs_builddir=$ac_pwd$ac_dir_suffix
23046
# for backward compatibility:
23047
ac_top_builddir=$ac_top_build_prefix
23050
.) # We are building in place.
23052
ac_top_srcdir=$ac_top_builddir_sub
23053
ac_abs_top_srcdir=$ac_pwd ;;
23054
[\\/]* | ?:[\\/]* ) # Absolute name.
23055
ac_srcdir=$srcdir$ac_dir_suffix;
23056
ac_top_srcdir=$srcdir
23057
ac_abs_top_srcdir=$srcdir ;;
23058
*) # Relative name.
23059
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23060
ac_top_srcdir=$ac_top_build_prefix$srcdir
23061
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23063
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23073
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23074
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23076
ac_MKDIR_P=$MKDIR_P
23078
[\\/$]* | ?:[\\/]* ) ;;
23079
*/*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23083
cat >>$CONFIG_STATUS <<\_ACEOF
23084
# If the template does not know about datarootdir, expand it.
23085
# FIXME: This hack should be removed a few years after 2.60.
23086
ac_datarootdir_hack=; ac_datarootdir_seen=
23088
case `sed -n '/datarootdir/ {
23097
' $ac_file_inputs` in
23098
*datarootdir*) ac_datarootdir_seen=yes;;
23099
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23100
{ echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23101
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23103
cat >>$CONFIG_STATUS <<_ACEOF
23104
ac_datarootdir_hack='
23105
s&@datadir@&$datadir&g
23106
s&@docdir@&$docdir&g
23107
s&@infodir@&$infodir&g
23108
s&@localedir@&$localedir&g
23109
s&@mandir@&$mandir&g
23110
s&\\\${datarootdir}&$datarootdir&g' ;;
23114
# Neutralize VPATH when `$srcdir' = `.'.
23115
# Shell code in configure.ac might set extrasub.
23116
# FIXME: do we really want to maintain this feature?
23117
cat >>$CONFIG_STATUS <<_ACEOF
23121
cat >>$CONFIG_STATUS <<\_ACEOF
23123
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23124
s&@configure_input@&$configure_input&;t t
23125
s&@top_builddir@&$ac_top_builddir_sub&;t t
23126
s&@srcdir@&$ac_srcdir&;t t
23127
s&@abs_srcdir@&$ac_abs_srcdir&;t t
23128
s&@top_srcdir@&$ac_top_srcdir&;t t
23129
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23130
s&@builddir@&$ac_builddir&;t t
23131
s&@abs_builddir@&$ac_abs_builddir&;t t
23132
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23133
s&@INSTALL@&$ac_INSTALL&;t t
23134
s&@MKDIR_P@&$ac_MKDIR_P&;t t
23135
$ac_datarootdir_hack
23136
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
23138
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23139
{ ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23140
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23141
{ echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23142
which seems to be undefined. Please make sure it is defined." >&5
23143
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23144
which seems to be undefined. Please make sure it is defined." >&2;}
23148
-) cat "$tmp/out"; rm -f "$tmp/out";;
23149
*) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23154
:C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23155
echo "$as_me: executing $ac_file commands" >&6;}
23160
case $ac_file$ac_mode in
23161
"depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23162
# Strip MF so we end up with the name of the file.
23163
mf=`echo "$mf" | sed -e 's/:.*$//'`
23164
# Check whether this is an Automake generated Makefile or not.
23165
# We used to match only the files named `Makefile.in', but
23166
# some people rename them; so instead we look at the file content.
23167
# Grep'ing the first line is not enough: some people post-process
23168
# each Makefile.in and add a new line on top of each file to say so.
23169
# Grep'ing the whole file is not good either: AIX grep has a line
23170
# limit of 2048, but all sed's we know have understand at least 4000.
23171
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
23172
dirpart=`$as_dirname -- "$mf" ||
23173
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23174
X"$mf" : 'X\(//\)[^/]' \| \
23175
X"$mf" : 'X\(//\)$' \| \
23176
X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23178
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23182
/^X\(\/\/\)[^/].*/{
23198
# Extract the definition of DEPDIR, am__include, and am__quote
23199
# from the Makefile without running `make'.
23200
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23201
test -z "$DEPDIR" && continue
23202
am__include=`sed -n 's/^am__include = //p' < "$mf"`
23203
test -z "am__include" && continue
23204
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23205
# When using ansi2knr, U may be empty or an underscore; expand it
23206
U=`sed -n 's/^U = //p' < "$mf"`
23207
# Find all dependency output files, they are included files with
23208
# $(DEPDIR) in their names. We invoke sed twice because it is the
23209
# simplest approach to changing $(DEPDIR) to its actual value in the
23211
for file in `sed -n "
23212
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23213
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23214
# Make sure the directory exists.
23215
test -f "$dirpart/$file" && continue
23216
fdir=`$as_dirname -- "$file" ||
23217
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23218
X"$file" : 'X\(//\)[^/]' \| \
23219
X"$file" : 'X\(//\)$' \| \
23220
X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23222
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23226
/^X\(\/\/\)[^/].*/{
23239
{ as_dir=$dirpart/$fdir
23241
-*) as_dir=./$as_dir;;
23243
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23247
*\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23248
*) as_qdir=$as_dir;;
23250
as_dirs="'$as_qdir' $as_dirs"
23251
as_dir=`$as_dirname -- "$as_dir" ||
23252
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23253
X"$as_dir" : 'X\(//\)[^/]' \| \
23254
X"$as_dir" : 'X\(//\)$' \| \
23255
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23257
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23261
/^X\(\/\/\)[^/].*/{
23274
test -d "$as_dir" && break
23276
test -z "$as_dirs" || eval "mkdir $as_dirs"
23277
} || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23278
echo "$as_me: error: cannot create directory $as_dir" >&2;}
23279
{ (exit 1); exit 1; }; }; }
23280
# echo "creating $dirpart/$file"
23281
echo '# dummy' > "$dirpart/$file"
23290
{ (exit 0); exit 0; }
23292
chmod +x $CONFIG_STATUS
23293
ac_clean_files=$ac_clean_files_save
23296
# configure is writing to config.log, and then calls config.status.
23297
# config.status does its own redirection, appending to config.log.
23298
# Unfortunately, on DOS this fails, as config.log is still kept open
23299
# by configure, so config.status won't be able to write to it; its
23300
# output is simply discarded. So we exec the FD to /dev/null,
23301
# effectively closing config.log, so it can be properly (re)opened and
23302
# appended to by config.status. When coming back to configure, we
23303
# need to make the FD available again.
23304
if test "$no_create" != yes; then
23306
ac_config_status_args=
23307
test "$silent" = yes &&
23308
ac_config_status_args="$ac_config_status_args --quiet"
23310
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23312
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
23313
# would make configure fail if this is the last instruction.
23314
$ac_cs_success || { (exit 1); exit 1; }