2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.61 for PACKAGE VERSION.
5
# Report bugs to <BUG-REPORT-ADDRESS>.
7
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8
# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9
# This configure script is free software; the Free Software Foundation
10
# gives unlimited permission to copy, distribute and modify it.
11
## --------------------- ##
12
## M4sh Initialization. ##
13
## --------------------- ##
15
# Be more Bourne compatible
16
DUALCASE=1; export DUALCASE # for MKS sh
17
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21
# is contrary to our usage. Disable this feature.
22
alias -g '${1+"$@"}'='"$@"'
25
case `(set -o) 2>/dev/null` in
26
*posix*) set -o posix ;;
35
# Avoid depending upon Character Ranges.
36
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39
as_cr_digits='0123456789'
40
as_cr_alnum=$as_cr_Letters$as_cr_digits
42
# The user is always right.
43
if test "${PATH_SEPARATOR+set}" != set; then
44
echo "#! /bin/sh" >conf$$.sh
45
echo "exit 0" >>conf$$.sh
47
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
55
# Support unset when possible.
56
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
64
# We need space, tab and new line, in precisely that order. Quoting is
65
# there to prevent editors from complaining about space-tab.
66
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
67
# splitting by setting IFS to empty value.)
72
# Find who we are. Look in the path if we contain no directory separator.
74
*[\\/]* ) as_myself=$0 ;;
75
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
79
test -z "$as_dir" && as_dir=.
80
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
86
# We did not find ourselves, most probably we were run as `sh COMMAND'
87
# in which case we are not to be found in the path.
88
if test "x$as_myself" = x; then
91
if test ! -f "$as_myself"; then
92
echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
96
# Work around bugs in pre-3.0 UWIN ksh.
97
for as_var in ENV MAIL MAILPATH
98
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
106
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
110
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111
eval $as_var=C; export $as_var
113
($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
117
# Required to use basename.
118
if expr a : '\(a\)' >/dev/null 2>&1 &&
119
test "X`expr 00001 : '.*\(...\)'`" = X001; then
125
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
132
# Name of the executable.
133
as_me=`$as_basename -- "$0" ||
134
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135
X"$0" : 'X\(//\)$' \| \
136
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138
sed '/^.*\/\([^/][^/]*\)\/*$/{
156
if test "x$CONFIG_SHELL" = x; then
157
if (eval ":") 2>/dev/null; then
163
if test $as_have_required = yes && (eval ":
173
as_func_ret_success () {
176
as_func_ret_failure () {
181
if as_func_success; then
185
echo as_func_success failed.
188
if as_func_failure; then
190
echo as_func_failure succeeded.
193
if as_func_ret_success; then
197
echo as_func_ret_success failed.
200
if as_func_ret_failure; then
202
echo as_func_ret_failure succeeded.
205
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
209
echo positional parameters were not saved.
212
test \$exitcode = 0) || { (exit 1); exit 1; }
217
test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218
test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219
") 2> /dev/null; then
223
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
227
test -z "$as_dir" && as_dir=.
230
for as_base in sh bash ksh sh5; do
231
as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
238
for as_shell in $as_candidate_shells $SHELL; do
239
# Try only shells that exist, to save several forks.
240
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241
{ ("$as_shell") 2> /dev/null <<\_ASEOF
242
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
245
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246
# is contrary to our usage. Disable this feature.
247
alias -g '${1+"$@"}'='"$@"'
250
case `(set -o) 2>/dev/null` in
251
*posix*) set -o posix ;;
260
CONFIG_SHELL=$as_shell
262
if { "$as_shell" 2> /dev/null <<\_ASEOF
263
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
266
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267
# is contrary to our usage. Disable this feature.
268
alias -g '${1+"$@"}'='"$@"'
271
case `(set -o) 2>/dev/null` in
272
*posix*) set -o posix ;;
288
as_func_ret_success () {
291
as_func_ret_failure () {
296
if as_func_success; then
300
echo as_func_success failed.
303
if as_func_failure; then
305
echo as_func_failure succeeded.
308
if as_func_ret_success; then
312
echo as_func_ret_success failed.
315
if as_func_ret_failure; then
317
echo as_func_ret_failure succeeded.
320
if ( set x; as_func_ret_success y && test x = "$1" ); then
324
echo positional parameters were not saved.
327
test $exitcode = 0) || { (exit 1); exit 1; }
332
test "x$as_lineno_1" != "x$as_lineno_2" &&
333
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
344
if test "x$CONFIG_SHELL" != x; then
345
for as_var in BASH_ENV ENV
346
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
349
exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
353
if test $as_have_required = no; then
354
echo This script requires a shell more modern than all the
355
echo shells that I found on your system. Please install a
356
echo modern shell, or manually run the script under such a
357
echo shell if you do have one.
358
{ (exit 1); exit 1; }
368
(eval "as_func_return () {
377
as_func_ret_success () {
380
as_func_ret_failure () {
385
if as_func_success; then
389
echo as_func_success failed.
392
if as_func_failure; then
394
echo as_func_failure succeeded.
397
if as_func_ret_success; then
401
echo as_func_ret_success failed.
404
if as_func_ret_failure; then
406
echo as_func_ret_failure succeeded.
409
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
413
echo positional parameters were not saved.
416
test \$exitcode = 0") || {
417
echo No shell found that supports shell functions.
418
echo Please tell autoconf@gnu.org about your system,
419
echo including any error possibly output before this
427
test "x$as_lineno_1" != "x$as_lineno_2" &&
428
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431
# uniformly replaced by the line number. The first 'sed' inserts a
432
# line-number line after each line using $LINENO; the second 'sed'
433
# does the real work. The second script uses 'N' to pair each
434
# line-number line with the line containing $LINENO, and appends
435
# trailing '-' during substitution so that $LINENO is not a special
437
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438
# scripts with optimization help from Paolo Bonzini. Blame Lee
439
# E. McMahon (1931-1989) for sed's syntax. :-)
451
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
455
chmod +x "$as_me.lineno" ||
456
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457
{ (exit 1); exit 1; }; }
459
# Don't try to exec as it changes $[0], causing all sort of problems
460
# (the dirname of $[0] is not the place where we might find the
461
# original and so on. Autoconf is especially sensitive to this).
463
# Exit status is that of the last command.
468
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
474
ECHO_C= ECHO_N= ECHO_T=
478
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
485
if expr a : '\(a\)' >/dev/null 2>&1 &&
486
test "X`expr 00001 : '.*\(...\)'`" = X001; then
492
rm -f conf$$ conf$$.exe conf$$.file
493
if test -d conf$$.dir; then
494
rm -f conf$$.dir/conf$$.file
500
if ln -s conf$$.file conf$$ 2>/dev/null; then
502
# ... but there are two gotchas:
503
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505
# In both cases, we have to default to `cp -p'.
506
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508
elif ln conf$$.file conf$$ 2>/dev/null; then
513
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514
rmdir conf$$.dir 2>/dev/null
516
if mkdir -p . 2>/dev/null; then
519
test -d ./-p && rmdir ./-p
523
if test -x / >/dev/null 2>&1; then
526
if ls -dL / >/dev/null 2>&1; then
533
if test -d "$1"; then
539
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540
???[sx]*):;;*)false;;esac;fi
544
as_executable_p=$as_test_x
546
# Sed expression to map a string onto a valid CPP name.
547
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549
# Sed expression to map a string onto a valid variable name.
550
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
# Check that we are running under the correct shell.
556
SHELL=${CONFIG_SHELL-/bin/sh}
560
# Remove one level of quotation (which was required for Make).
561
ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
566
if test "X$1" = X--no-reexec; then
567
# Discard the --no-reexec flag, and continue.
569
elif test "X$1" = X--fallback-echo; then
570
# Avoid inline document here, it may be left over
572
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573
# Yippee, $echo works!
576
# Restart under the correct shell.
577
exec $SHELL "$0" --no-reexec ${1+"$@"}
580
if test "X$1" = X--fallback-echo; then
581
# used as fallback echo
589
# The HP-UX ksh and POSIX shell print the target directory to stdout
591
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
593
if test -z "$ECHO"; then
594
if test "X${echo_test_string+set}" != Xset; then
595
# find a string as large as possible, as long as the shell can cope with it
596
for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598
if (echo_test_string=`eval $cmd`) 2>/dev/null &&
599
echo_test_string=`eval $cmd` &&
600
(test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
607
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609
test "X$echo_testing_string" = "X$echo_test_string"; then
612
# The Solaris, AIX, and Digital Unix default echo programs unquote
613
# backslashes. This makes it impossible to quote backslashes using
614
# echo "$something" | sed 's/\\/\\\\/g'
616
# So, first we look for a working echo in the user's PATH.
618
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619
for dir in $PATH /usr/ucb; do
621
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624
test "X$echo_testing_string" = "X$echo_test_string"; then
631
if test "X$echo" = Xecho; then
632
# We didn't find a better echo, so look for alternatives.
633
if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634
echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635
test "X$echo_testing_string" = "X$echo_test_string"; then
636
# This shell has a builtin print -r that does the trick.
638
elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639
test "X$CONFIG_SHELL" != X/bin/ksh; then
640
# If we have ksh, try running configure again with it.
641
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642
export ORIGINAL_CONFIG_SHELL
643
CONFIG_SHELL=/bin/ksh
645
exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
649
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651
test "X$echo_testing_string" = "X$echo_test_string"; then
654
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655
test "X$echo_testing_string" = 'X\t' &&
656
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657
test "X$echo_testing_string" = "X$echo_test_string"; then
658
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
660
SHELL="$CONFIG_SHELL"
662
echo="$CONFIG_SHELL $0 --fallback-echo"
663
elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664
test "X$echo_testing_string" = 'X\t' &&
665
echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666
test "X$echo_testing_string" = "X$echo_test_string"; then
667
echo="$CONFIG_SHELL $0 --fallback-echo"
669
# maybe with a smaller string...
672
for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673
if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
680
if test "$prev" != 'sed 50q "$0"'; then
681
echo_test_string=`eval $prev`
682
export echo_test_string
683
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
685
# Oops. We lost completely, so just stick with echo.
694
# Copy echo and quote the copy suitably for passing to libtool from
695
# the Makefile, instead of quoting the original, which is used later.
697
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698
ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
704
tagnames=${tagnames+${tagnames},}CXX
706
tagnames=${tagnames+${tagnames},}F77
708
exec 7<&0 </dev/null 6>&1
711
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712
# so uname gets run too.
713
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
718
ac_default_prefix=/usr/local
720
ac_config_libobj_dir=.
726
SHELL=${CONFIG_SHELL-/bin/sh}
728
# Identity of this package.
729
PACKAGE_NAME='PACKAGE'
730
PACKAGE_TARNAME='package'
731
PACKAGE_VERSION='VERSION'
732
PACKAGE_STRING='PACKAGE VERSION'
733
PACKAGE_BUGREPORT='BUG-REPORT-ADDRESS'
735
ac_unique_file="libobgtk/GTK.m"
736
# Factoring default headers for most tests.
737
ac_includes_default="\
739
#ifdef HAVE_SYS_TYPES_H
740
# include <sys/types.h>
742
#ifdef HAVE_SYS_STAT_H
743
# include <sys/stat.h>
749
# ifdef HAVE_STDLIB_H
754
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
759
#ifdef HAVE_STRINGS_H
760
# include <strings.h>
762
#ifdef HAVE_INTTYPES_H
763
# include <inttypes.h>
781
program_transform_name
822
INSTALL_STRIP_PROGRAM
838
am__fastdepOBJC_FALSE
887
ac_precious_vars='build_alias
909
# Initialize some variables set by options.
911
ac_init_version=false
912
# The variables have the same names as the options, with
913
# dashes changed to underlines.
921
program_transform_name=s,x,x,
929
# Installation directory options.
930
# These are left unexpanded so users can "make install exec_prefix=/foo"
931
# and all the variables that are supposed to be based on exec_prefix
932
# by default will actually change.
933
# Use braces instead of parens because sh, perl, etc. also accept them.
934
# (The list follows the same order as the GNU Coding Standards.)
935
bindir='${exec_prefix}/bin'
936
sbindir='${exec_prefix}/sbin'
937
libexecdir='${exec_prefix}/libexec'
938
datarootdir='${prefix}/share'
939
datadir='${datarootdir}'
940
sysconfdir='${prefix}/etc'
941
sharedstatedir='${prefix}/com'
942
localstatedir='${prefix}/var'
943
includedir='${prefix}/include'
944
oldincludedir='/usr/include'
945
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
946
infodir='${datarootdir}/info'
951
libdir='${exec_prefix}/lib'
952
localedir='${datarootdir}/locale'
953
mandir='${datarootdir}/man'
959
# If the previous option needs an argument, assign it.
960
if test -n "$ac_prev"; then
961
eval $ac_prev=\$ac_option
967
*=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
971
# Accept the important Cygnus configure options, so we can diagnose typos.
973
case $ac_dashdash$ac_option in
977
-bindir | --bindir | --bindi | --bind | --bin | --bi)
979
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
982
-build | --build | --buil | --bui | --bu)
983
ac_prev=build_alias ;;
984
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
985
build_alias=$ac_optarg ;;
987
-cache-file | --cache-file | --cache-fil | --cache-fi \
988
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
989
ac_prev=cache_file ;;
990
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
991
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
992
cache_file=$ac_optarg ;;
995
cache_file=config.cache ;;
997
-datadir | --datadir | --datadi | --datad)
999
-datadir=* | --datadir=* | --datadi=* | --datad=*)
1000
datadir=$ac_optarg ;;
1002
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1003
| --dataroo | --dataro | --datar)
1004
ac_prev=datarootdir ;;
1005
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1006
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1007
datarootdir=$ac_optarg ;;
1009
-disable-* | --disable-*)
1010
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1011
# Reject names that are not valid shell variable names.
1012
expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1013
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
1014
{ (exit 1); exit 1; }; }
1015
ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1016
eval enable_$ac_feature=no ;;
1018
-docdir | --docdir | --docdi | --doc | --do)
1020
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1021
docdir=$ac_optarg ;;
1023
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1025
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1026
dvidir=$ac_optarg ;;
1028
-enable-* | --enable-*)
1029
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1030
# Reject names that are not valid shell variable names.
1031
expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1032
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
1033
{ (exit 1); exit 1; }; }
1034
ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1035
eval enable_$ac_feature=\$ac_optarg ;;
1037
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1038
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1039
| --exec | --exe | --ex)
1040
ac_prev=exec_prefix ;;
1041
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1042
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1043
| --exec=* | --exe=* | --ex=*)
1044
exec_prefix=$ac_optarg ;;
1046
-gas | --gas | --ga | --g)
1047
# Obsolete; use --with-gas.
1050
-help | --help | --hel | --he | -h)
1051
ac_init_help=long ;;
1052
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1053
ac_init_help=recursive ;;
1054
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1055
ac_init_help=short ;;
1057
-host | --host | --hos | --ho)
1058
ac_prev=host_alias ;;
1059
-host=* | --host=* | --hos=* | --ho=*)
1060
host_alias=$ac_optarg ;;
1062
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1064
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1066
htmldir=$ac_optarg ;;
1068
-includedir | --includedir | --includedi | --included | --include \
1069
| --includ | --inclu | --incl | --inc)
1070
ac_prev=includedir ;;
1071
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1072
| --includ=* | --inclu=* | --incl=* | --inc=*)
1073
includedir=$ac_optarg ;;
1075
-infodir | --infodir | --infodi | --infod | --info | --inf)
1077
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1078
infodir=$ac_optarg ;;
1080
-libdir | --libdir | --libdi | --libd)
1082
-libdir=* | --libdir=* | --libdi=* | --libd=*)
1083
libdir=$ac_optarg ;;
1085
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1086
| --libexe | --libex | --libe)
1087
ac_prev=libexecdir ;;
1088
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1089
| --libexe=* | --libex=* | --libe=*)
1090
libexecdir=$ac_optarg ;;
1092
-localedir | --localedir | --localedi | --localed | --locale)
1093
ac_prev=localedir ;;
1094
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1095
localedir=$ac_optarg ;;
1097
-localstatedir | --localstatedir | --localstatedi | --localstated \
1098
| --localstate | --localstat | --localsta | --localst | --locals)
1099
ac_prev=localstatedir ;;
1100
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1101
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1102
localstatedir=$ac_optarg ;;
1104
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1106
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1107
mandir=$ac_optarg ;;
1109
-nfp | --nfp | --nf)
1110
# Obsolete; use --without-fp.
1113
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
1114
| --no-cr | --no-c | -n)
1117
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
1118
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1121
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1122
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1123
| --oldin | --oldi | --old | --ol | --o)
1124
ac_prev=oldincludedir ;;
1125
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1126
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1127
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1128
oldincludedir=$ac_optarg ;;
1130
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1132
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1133
prefix=$ac_optarg ;;
1135
-program-prefix | --program-prefix | --program-prefi | --program-pref \
1136
| --program-pre | --program-pr | --program-p)
1137
ac_prev=program_prefix ;;
1138
-program-prefix=* | --program-prefix=* | --program-prefi=* \
1139
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1140
program_prefix=$ac_optarg ;;
1142
-program-suffix | --program-suffix | --program-suffi | --program-suff \
1143
| --program-suf | --program-su | --program-s)
1144
ac_prev=program_suffix ;;
1145
-program-suffix=* | --program-suffix=* | --program-suffi=* \
1146
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1147
program_suffix=$ac_optarg ;;
1149
-program-transform-name | --program-transform-name \
1150
| --program-transform-nam | --program-transform-na \
1151
| --program-transform-n | --program-transform- \
1152
| --program-transform | --program-transfor \
1153
| --program-transfo | --program-transf \
1154
| --program-trans | --program-tran \
1155
| --progr-tra | --program-tr | --program-t)
1156
ac_prev=program_transform_name ;;
1157
-program-transform-name=* | --program-transform-name=* \
1158
| --program-transform-nam=* | --program-transform-na=* \
1159
| --program-transform-n=* | --program-transform-=* \
1160
| --program-transform=* | --program-transfor=* \
1161
| --program-transfo=* | --program-transf=* \
1162
| --program-trans=* | --program-tran=* \
1163
| --progr-tra=* | --program-tr=* | --program-t=*)
1164
program_transform_name=$ac_optarg ;;
1166
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1168
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1169
pdfdir=$ac_optarg ;;
1171
-psdir | --psdir | --psdi | --psd | --ps)
1173
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1176
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1177
| -silent | --silent | --silen | --sile | --sil)
1180
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1182
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1184
sbindir=$ac_optarg ;;
1186
-sharedstatedir | --sharedstatedir | --sharedstatedi \
1187
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1188
| --sharedst | --shareds | --shared | --share | --shar \
1190
ac_prev=sharedstatedir ;;
1191
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1192
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1193
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1195
sharedstatedir=$ac_optarg ;;
1197
-site | --site | --sit)
1199
-site=* | --site=* | --sit=*)
1202
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1204
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1205
srcdir=$ac_optarg ;;
1207
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1208
| --syscon | --sysco | --sysc | --sys | --sy)
1209
ac_prev=sysconfdir ;;
1210
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1211
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1212
sysconfdir=$ac_optarg ;;
1214
-target | --target | --targe | --targ | --tar | --ta | --t)
1215
ac_prev=target_alias ;;
1216
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1217
target_alias=$ac_optarg ;;
1219
-v | -verbose | --verbose | --verbos | --verbo | --verb)
1222
-version | --version | --versio | --versi | --vers | -V)
1223
ac_init_version=: ;;
1226
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1227
# Reject names that are not valid shell variable names.
1228
expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1229
{ echo "$as_me: error: invalid package name: $ac_package" >&2
1230
{ (exit 1); exit 1; }; }
1231
ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1232
eval with_$ac_package=\$ac_optarg ;;
1234
-without-* | --without-*)
1235
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1236
# Reject names that are not valid shell variable names.
1237
expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1238
{ echo "$as_me: error: invalid package name: $ac_package" >&2
1239
{ (exit 1); exit 1; }; }
1240
ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1241
eval with_$ac_package=no ;;
1244
# Obsolete; use --with-x.
1247
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1248
| --x-incl | --x-inc | --x-in | --x-i)
1249
ac_prev=x_includes ;;
1250
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1251
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1252
x_includes=$ac_optarg ;;
1254
-x-libraries | --x-libraries | --x-librarie | --x-librari \
1255
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1256
ac_prev=x_libraries ;;
1257
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1258
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1259
x_libraries=$ac_optarg ;;
1261
-*) { echo "$as_me: error: unrecognized option: $ac_option
1262
Try \`$0 --help' for more information." >&2
1263
{ (exit 1); exit 1; }; }
1267
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1268
# Reject names that are not valid shell variable names.
1269
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1270
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1271
{ (exit 1); exit 1; }; }
1272
eval $ac_envvar=\$ac_optarg
1273
export $ac_envvar ;;
1276
# FIXME: should be removed in autoconf 3.0.
1277
echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1278
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1279
echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1280
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1286
if test -n "$ac_prev"; then
1287
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1288
{ echo "$as_me: error: missing argument to $ac_option" >&2
1289
{ (exit 1); exit 1; }; }
1292
# Be sure to have absolute directory names.
1293
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1294
datadir sysconfdir sharedstatedir localstatedir includedir \
1295
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1296
libdir localedir mandir
1298
eval ac_val=\$$ac_var
1300
[\\/$]* | ?:[\\/]* ) continue;;
1301
NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1303
{ echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1304
{ (exit 1); exit 1; }; }
1307
# There might be people who depend on the old broken behavior: `$host'
1308
# used to hold the argument of --host etc.
1309
# FIXME: To remove some day.
1312
target=$target_alias
1314
# FIXME: To remove some day.
1315
if test "x$host_alias" != x; then
1316
if test "x$build_alias" = x; then
1317
cross_compiling=maybe
1318
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1319
If a cross compiler is detected then cross compile mode will be used." >&2
1320
elif test "x$build_alias" != "x$host_alias"; then
1326
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1328
test "$silent" = yes && exec 6>/dev/null
1331
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1332
ac_ls_di=`ls -di .` &&
1333
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1334
{ echo "$as_me: error: Working directory cannot be determined" >&2
1335
{ (exit 1); exit 1; }; }
1336
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1337
{ echo "$as_me: error: pwd does not report name of working directory" >&2
1338
{ (exit 1); exit 1; }; }
1341
# Find the source files, if location was not specified.
1342
if test -z "$srcdir"; then
1343
ac_srcdir_defaulted=yes
1344
# Try the directory containing this script, then the parent directory.
1345
ac_confdir=`$as_dirname -- "$0" ||
1346
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1347
X"$0" : 'X\(//\)[^/]' \| \
1348
X"$0" : 'X\(//\)$' \| \
1349
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1351
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1369
if test ! -r "$srcdir/$ac_unique_file"; then
1373
ac_srcdir_defaulted=no
1375
if test ! -r "$srcdir/$ac_unique_file"; then
1376
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1377
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1378
{ (exit 1); exit 1; }; }
1380
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1382
cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1383
{ (exit 1); exit 1; }; }
1385
# When building in place, set srcdir=.
1386
if test "$ac_abs_confdir" = "$ac_pwd"; then
1389
# Remove unnecessary trailing slashes from srcdir.
1390
# Double slashes in file names in object file debugging info
1391
# mess up M-x gdb in Emacs.
1393
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1395
for ac_var in $ac_precious_vars; do
1396
eval ac_env_${ac_var}_set=\${${ac_var}+set}
1397
eval ac_env_${ac_var}_value=\$${ac_var}
1398
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1399
eval ac_cv_env_${ac_var}_value=\$${ac_var}
1403
# Report the --help message.
1405
if test "$ac_init_help" = "long"; then
1406
# Omit some internal or obsolete options to make the list less imposing.
1407
# This message is too long to be a string in the A/UX 3.1 sh.
1409
\`configure' configures PACKAGE VERSION to adapt to many kinds of systems.
1411
Usage: $0 [OPTION]... [VAR=VALUE]...
1413
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1414
VAR=VALUE. See below for descriptions of some of the useful variables.
1416
Defaults for the options are specified in brackets.
1419
-h, --help display this help and exit
1420
--help=short display options specific to this package
1421
--help=recursive display the short help of all the included packages
1422
-V, --version display version information and exit
1423
-q, --quiet, --silent do not print \`checking...' messages
1424
--cache-file=FILE cache test results in FILE [disabled]
1425
-C, --config-cache alias for \`--cache-file=config.cache'
1426
-n, --no-create do not create output files
1427
--srcdir=DIR find the sources in DIR [configure dir or \`..']
1429
Installation directories:
1430
--prefix=PREFIX install architecture-independent files in PREFIX
1431
[$ac_default_prefix]
1432
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1435
By default, \`make install' will install all the files in
1436
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1437
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1438
for instance \`--prefix=\$HOME'.
1440
For better control, use the options below.
1442
Fine tuning of the installation directories:
1443
--bindir=DIR user executables [EPREFIX/bin]
1444
--sbindir=DIR system admin executables [EPREFIX/sbin]
1445
--libexecdir=DIR program executables [EPREFIX/libexec]
1446
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1447
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1448
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1449
--libdir=DIR object code libraries [EPREFIX/lib]
1450
--includedir=DIR C header files [PREFIX/include]
1451
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1452
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1453
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1454
--infodir=DIR info documentation [DATAROOTDIR/info]
1455
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1456
--mandir=DIR man documentation [DATAROOTDIR/man]
1457
--docdir=DIR documentation root [DATAROOTDIR/doc/package]
1458
--htmldir=DIR html documentation [DOCDIR]
1459
--dvidir=DIR dvi documentation [DOCDIR]
1460
--pdfdir=DIR pdf documentation [DOCDIR]
1461
--psdir=DIR ps documentation [DOCDIR]
1467
--program-prefix=PREFIX prepend PREFIX to installed program names
1468
--program-suffix=SUFFIX append SUFFIX to installed program names
1469
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
1472
--build=BUILD configure for building on BUILD [guessed]
1473
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1477
if test -n "$ac_init_help"; then
1478
case $ac_init_help in
1479
short | recursive ) echo "Configuration of PACKAGE VERSION:";;
1484
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1485
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1486
--disable-dependency-tracking speeds up one-time build
1487
--enable-dependency-tracking do not reject slow dependency extractors
1488
--enable-shared[=PKGS] build shared libraries [default=yes]
1489
--enable-static[=PKGS] build static libraries [default=yes]
1490
--enable-fast-install[=PKGS]
1491
optimize for fast installation [default=yes]
1492
--disable-libtool-lock avoid locking (might break parallel builds)
1495
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1496
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1497
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
1498
--with-pic try to use only PIC/non-PIC objects [default=use
1500
--with-tags[=TAGS] include additional configurations [automatic]
1502
Some influential environment variables:
1503
OBJC Objective C compiler command
1504
OBJCFLAGS Objective C compiler flags
1505
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1506
nonstandard directory <lib dir>
1507
LIBS libraries to pass to the linker, e.g. -l<library>
1508
CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1509
you have headers in a nonstandard directory <include dir>
1510
CC C compiler command
1511
CFLAGS C compiler flags
1513
CXX C++ compiler command
1514
CXXFLAGS C++ compiler flags
1515
CXXCPP C++ preprocessor
1516
F77 Fortran 77 compiler command
1517
FFLAGS Fortran 77 compiler flags
1518
PKG_CONFIG path to pkg-config utility
1519
DEPS_CFLAGS C compiler flags for DEPS, overriding pkg-config
1520
DEPS_LIBS linker flags for DEPS, overriding pkg-config
1522
Use these variables to override the choices made by `configure' or to help
1523
it to find libraries and programs with nonstandard names/locations.
1525
Report bugs to <BUG-REPORT-ADDRESS>.
1530
if test "$ac_init_help" = "recursive"; then
1531
# If there are subdirs, report their specific --help.
1532
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1533
test -d "$ac_dir" || continue
1537
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1539
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1540
# A ".." for each directory in $ac_dir_suffix.
1541
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1542
case $ac_top_builddir_sub in
1543
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1544
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1547
ac_abs_top_builddir=$ac_pwd
1548
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1549
# for backward compatibility:
1550
ac_top_builddir=$ac_top_build_prefix
1553
.) # We are building in place.
1555
ac_top_srcdir=$ac_top_builddir_sub
1556
ac_abs_top_srcdir=$ac_pwd ;;
1557
[\\/]* | ?:[\\/]* ) # Absolute name.
1558
ac_srcdir=$srcdir$ac_dir_suffix;
1559
ac_top_srcdir=$srcdir
1560
ac_abs_top_srcdir=$srcdir ;;
1562
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1563
ac_top_srcdir=$ac_top_build_prefix$srcdir
1564
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1566
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1568
cd "$ac_dir" || { ac_status=$?; continue; }
1569
# Check for guested configure.
1570
if test -f "$ac_srcdir/configure.gnu"; then
1572
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
1573
elif test -f "$ac_srcdir/configure"; then
1575
$SHELL "$ac_srcdir/configure" --help=recursive
1577
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1579
cd "$ac_pwd" || { ac_status=$?; break; }
1583
test -n "$ac_init_help" && exit $ac_status
1584
if $ac_init_version; then
1586
PACKAGE configure VERSION
1587
generated by GNU Autoconf 2.61
1589
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1590
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1591
This configure script is free software; the Free Software Foundation
1592
gives unlimited permission to copy, distribute and modify it.
1596
cat >config.log <<_ACEOF
1597
This file contains any messages produced by compilers while
1598
running configure, to aid debugging if configure makes a mistake.
1600
It was created by PACKAGE $as_me VERSION, which was
1601
generated by GNU Autoconf 2.61. Invocation command line was
1613
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1614
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1615
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1616
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1617
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1619
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1620
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1622
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1623
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1624
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1625
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1626
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1627
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1628
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1632
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1636
test -z "$as_dir" && as_dir=.
1637
echo "PATH: $as_dir"
1653
# Keep a trace of the command line.
1654
# Strip out --no-create and --no-recursion so they do not pile up.
1655
# Strip out --silent because we don't want to record it for future runs.
1656
# Also quote any args containing shell meta-characters.
1657
# Make two passes to allow for proper duplicate-argument suppression.
1661
ac_must_keep_next=false
1667
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1668
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1669
| -silent | --silent | --silen | --sile | --sil)
1672
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1675
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1677
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1678
if test $ac_must_keep_next = true; then
1679
ac_must_keep_next=false # Got value, back to normal.
1682
*=* | --config-cache | -C | -disable-* | --disable-* \
1683
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1684
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1685
| -with-* | --with-* | -without-* | --without-* | --x)
1686
case "$ac_configure_args0 " in
1687
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1690
-* ) ac_must_keep_next=true ;;
1693
ac_configure_args="$ac_configure_args '$ac_arg'"
1698
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1699
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1701
# When interrupted or exit'd, cleanup temporary files, and complete
1702
# config.log. We remove comments because anyway the quotes in there
1703
# would cause problems or look ugly.
1704
# WARNING: Use '\'' to represent an apostrophe within the trap.
1705
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1706
trap 'exit_status=$?
1707
# Save into config.log some information that might help in debugging.
1712
## ---------------- ##
1713
## Cache variables. ##
1714
## ---------------- ##
1717
# The following way of writing the cache mishandles newlines in values,
1719
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1720
eval ac_val=\$$ac_var
1724
*_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1725
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1728
_ | IFS | as_nl) ;; #(
1729
*) $as_unset $ac_var ;;
1734
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1735
*${as_nl}ac_space=\ *)
1737
"s/'\''/'\''\\\\'\'''\''/g;
1738
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1741
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1749
## ----------------- ##
1750
## Output variables. ##
1751
## ----------------- ##
1754
for ac_var in $ac_subst_vars
1756
eval ac_val=\$$ac_var
1758
*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1760
echo "$ac_var='\''$ac_val'\''"
1764
if test -n "$ac_subst_files"; then
1766
## ------------------- ##
1767
## File substitutions. ##
1768
## ------------------- ##
1771
for ac_var in $ac_subst_files
1773
eval ac_val=\$$ac_var
1775
*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1777
echo "$ac_var='\''$ac_val'\''"
1782
if test -s confdefs.h; then
1792
test "$ac_signal" != 0 &&
1793
echo "$as_me: caught signal $ac_signal"
1794
echo "$as_me: exit $exit_status"
1796
rm -f core *.core core.conftest.* &&
1797
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1800
for ac_signal in 1 2 13 15; do
1801
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1805
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1806
rm -f -r conftest* confdefs.h
1808
# Predefined preprocessor variables.
1810
cat >>confdefs.h <<_ACEOF
1811
#define PACKAGE_NAME "$PACKAGE_NAME"
1815
cat >>confdefs.h <<_ACEOF
1816
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1820
cat >>confdefs.h <<_ACEOF
1821
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1825
cat >>confdefs.h <<_ACEOF
1826
#define PACKAGE_STRING "$PACKAGE_STRING"
1830
cat >>confdefs.h <<_ACEOF
1831
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1835
# Let the site file select an alternate cache file if it wants to.
1836
# Prefer explicitly selected file to automatically selected ones.
1837
if test -n "$CONFIG_SITE"; then
1838
set x "$CONFIG_SITE"
1839
elif test "x$prefix" != xNONE; then
1840
set x "$prefix/share/config.site" "$prefix/etc/config.site"
1842
set x "$ac_default_prefix/share/config.site" \
1843
"$ac_default_prefix/etc/config.site"
1848
if test -r "$ac_site_file"; then
1849
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1850
echo "$as_me: loading site script $ac_site_file" >&6;}
1851
sed 's/^/| /' "$ac_site_file" >&5
1856
if test -r "$cache_file"; then
1857
# Some versions of bash will fail to source /dev/null (special
1858
# files actually), so we avoid doing that.
1859
if test -f "$cache_file"; then
1860
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
1861
echo "$as_me: loading cache $cache_file" >&6;}
1863
[\\/]* | ?:[\\/]* ) . "$cache_file";;
1864
*) . "./$cache_file";;
1868
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
1869
echo "$as_me: creating cache $cache_file" >&6;}
1873
# Check that the precious variables saved in the cache have kept the same
1875
ac_cache_corrupted=false
1876
for ac_var in $ac_precious_vars; do
1877
eval ac_old_set=\$ac_cv_env_${ac_var}_set
1878
eval ac_new_set=\$ac_env_${ac_var}_set
1879
eval ac_old_val=\$ac_cv_env_${ac_var}_value
1880
eval ac_new_val=\$ac_env_${ac_var}_value
1881
case $ac_old_set,$ac_new_set in
1883
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1884
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1885
ac_cache_corrupted=: ;;
1887
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1888
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1889
ac_cache_corrupted=: ;;
1892
if test "x$ac_old_val" != "x$ac_new_val"; then
1893
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1894
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1895
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1896
echo "$as_me: former value: $ac_old_val" >&2;}
1897
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1898
echo "$as_me: current value: $ac_new_val" >&2;}
1899
ac_cache_corrupted=:
1902
# Pass precious variables to config.status.
1903
if test "$ac_new_set" = set; then
1905
*\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1906
*) ac_arg=$ac_var=$ac_new_val ;;
1908
case " $ac_configure_args " in
1909
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1910
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1914
if $ac_cache_corrupted; then
1915
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1916
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1917
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1918
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1919
{ (exit 1); exit 1; }; }
1947
ac_cpp='$CPP $CPPFLAGS'
1948
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1949
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1950
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1954
ac_config_headers="$ac_config_headers config.h"
1956
am__api_version="1.9"
1958
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1959
if test -f "$ac_dir/install-sh"; then
1961
ac_install_sh="$ac_aux_dir/install-sh -c"
1963
elif test -f "$ac_dir/install.sh"; then
1965
ac_install_sh="$ac_aux_dir/install.sh -c"
1967
elif test -f "$ac_dir/shtool"; then
1969
ac_install_sh="$ac_aux_dir/shtool install -c"
1973
if test -z "$ac_aux_dir"; then
1974
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1975
echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1976
{ (exit 1); exit 1; }; }
1979
# These three variables are undocumented and unsupported,
1980
# and are intended to be withdrawn in a future Autoconf release.
1981
# They can cause serious problems if a builder's source tree is in a directory
1982
# whose full name contains unusual characters.
1983
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1984
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1985
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1988
# Find a good install program. We prefer a C program (faster),
1989
# so one script is as good as another. But avoid the broken or
1990
# incompatible versions:
1991
# SysV /etc/install, /usr/sbin/install
1992
# SunOS /usr/etc/install
1993
# IRIX /sbin/install
1995
# AmigaOS /C/install, which installs bootblocks on floppy discs
1996
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1997
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1998
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1999
# OS/2's system install, which has a completely different semantic
2000
# ./install, which can be erroneously created by make from ./install.sh.
2001
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2002
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2003
if test -z "$INSTALL"; then
2004
if test "${ac_cv_path_install+set}" = set; then
2005
echo $ECHO_N "(cached) $ECHO_C" >&6
2007
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2011
test -z "$as_dir" && as_dir=.
2012
# Account for people who put trailing slashes in PATH elements.
2014
./ | .// | /cC/* | \
2015
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2016
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2019
# OSF1 and SCO ODT 3.0 have their own names for install.
2020
# Don't use installbsd from OSF since it installs stuff as root
2022
for ac_prog in ginstall scoinst install; do
2023
for ac_exec_ext in '' $ac_executable_extensions; do
2024
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2025
if test $ac_prog = install &&
2026
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2027
# AIX install. It has an incompatible calling convention.
2029
elif test $ac_prog = install &&
2030
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2031
# program-specific install script used by HP pwplus--don't use.
2034
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2047
if test "${ac_cv_path_install+set}" = set; then
2048
INSTALL=$ac_cv_path_install
2050
# As a last resort, use the slow shell script. Don't cache a
2051
# value for INSTALL within a source directory, because that will
2052
# break other packages using the cache if that directory is
2053
# removed, or if the value is a relative name.
2054
INSTALL=$ac_install_sh
2057
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2058
echo "${ECHO_T}$INSTALL" >&6; }
2060
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2061
# It thinks the first close brace ends the variable substitution.
2062
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2064
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2066
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2068
{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2069
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2072
echo timestamp > conftest.file
2073
# Do `set' in a subshell so we don't clobber the current shell's
2074
# arguments. Must try -L first in case configure is actually a
2075
# symlink; some systems play weird games with the mod time of symlinks
2076
# (eg FreeBSD returns the mod time of the symlink's containing
2079
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2080
if test "$*" = "X"; then
2082
set X `ls -t $srcdir/configure conftest.file`
2085
if test "$*" != "X $srcdir/configure conftest.file" \
2086
&& test "$*" != "X conftest.file $srcdir/configure"; then
2088
# If neither matched, then we have a broken ls. This can happen
2089
# if, for instance, CONFIG_SHELL is bash and it inherits a
2090
# broken ls alias from the environment. This has actually
2091
# happened. Such a system could not be considered "sane".
2092
{ { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2093
alias in your environment" >&5
2094
echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2095
alias in your environment" >&2;}
2096
{ (exit 1); exit 1; }; }
2099
test "$2" = conftest.file
2105
{ { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2106
Check your system clock" >&5
2107
echo "$as_me: error: newly created file is older than distributed files!
2108
Check your system clock" >&2;}
2109
{ (exit 1); exit 1; }; }
2111
{ echo "$as_me:$LINENO: result: yes" >&5
2112
echo "${ECHO_T}yes" >&6; }
2113
test "$program_prefix" != NONE &&
2114
program_transform_name="s&^&$program_prefix&;$program_transform_name"
2115
# Use a double $ so make ignores it.
2116
test "$program_suffix" != NONE &&
2117
program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2118
# Double any \ or $. echo might interpret backslashes.
2119
# By default was `s,x,x', remove it if useless.
2120
cat <<\_ACEOF >conftest.sed
2121
s/[\\$]/&&/g;s/;s,x,x,$//
2123
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2126
# expand $ac_aux_dir to an absolute path
2127
am_aux_dir=`cd $ac_aux_dir && pwd`
2129
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2130
# Use eval to expand $SHELL
2131
if eval "$MISSING --run true"; then
2132
am_missing_run="$MISSING --run "
2135
{ echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2136
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2139
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2140
# We used to keeping the `.' as first argument, in order to
2141
# allow $(mkdir_p) to be used without argument. As in
2142
# $(mkdir_p) $(somedir)
2143
# where $(somedir) is conditionally defined. However this is wrong
2145
# 1. if the package is installed by a user who cannot write `.'
2146
# make install will fail,
2147
# 2. the above comment should most certainly read
2148
# $(mkdir_p) $(DESTDIR)$(somedir)
2149
# so it does not work when $(somedir) is undefined and
2150
# $(DESTDIR) is not.
2151
# To support the latter case, we have to write
2152
# test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2153
# so the `.' trick is pointless.
2154
mkdir_p='mkdir -p --'
2156
# On NextStep and OpenStep, the `mkdir' command does not
2157
# recognize any option. It will interpret all options as
2158
# directories to create, and then abort because `.' already
2160
for d in ./-p ./--version;
2162
test -d $d && rmdir $d
2164
# $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2165
if test -f "$ac_aux_dir/mkinstalldirs"; then
2166
mkdir_p='$(mkinstalldirs)'
2168
mkdir_p='$(install_sh) -d'
2172
for ac_prog in gawk mawk nawk awk
2174
# Extract the first word of "$ac_prog", so it can be a program name with args.
2175
set dummy $ac_prog; ac_word=$2
2176
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2177
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2178
if test "${ac_cv_prog_AWK+set}" = set; then
2179
echo $ECHO_N "(cached) $ECHO_C" >&6
2181
if test -n "$AWK"; then
2182
ac_cv_prog_AWK="$AWK" # Let the user override the test.
2184
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2188
test -z "$as_dir" && as_dir=.
2189
for ac_exec_ext in '' $ac_executable_extensions; do
2190
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2191
ac_cv_prog_AWK="$ac_prog"
2192
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2202
if test -n "$AWK"; then
2203
{ echo "$as_me:$LINENO: result: $AWK" >&5
2204
echo "${ECHO_T}$AWK" >&6; }
2206
{ echo "$as_me:$LINENO: result: no" >&5
2207
echo "${ECHO_T}no" >&6; }
2211
test -n "$AWK" && break
2214
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2215
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2216
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2217
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2218
echo $ECHO_N "(cached) $ECHO_C" >&6
2220
cat >conftest.make <<\_ACEOF
2223
@echo '@@@%%%=$(MAKE)=@@@%%%'
2225
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2226
case `${MAKE-make} -f conftest.make 2>/dev/null` in
2228
eval ac_cv_prog_make_${ac_make}_set=yes;;
2230
eval ac_cv_prog_make_${ac_make}_set=no;;
2234
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2235
{ echo "$as_me:$LINENO: result: yes" >&5
2236
echo "${ECHO_T}yes" >&6; }
2239
{ echo "$as_me:$LINENO: result: no" >&5
2240
echo "${ECHO_T}no" >&6; }
2241
SET_MAKE="MAKE=${MAKE-make}"
2244
rm -rf .tst 2>/dev/null
2245
mkdir .tst 2>/dev/null
2246
if test -d .tst; then
2251
rmdir .tst 2>/dev/null
2253
# test to see if srcdir already configured
2254
if test "`cd $srcdir && pwd`" != "`pwd`" &&
2255
test -f $srcdir/config.status; then
2256
{ { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2257
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2258
{ (exit 1); exit 1; }; }
2261
# test whether we have cygpath
2262
if test -z "$CYGPATH_W"; then
2263
if (cygpath --version) >/dev/null 2>/dev/null; then
2264
CYGPATH_W='cygpath -w'
2271
# Define the identity of the package.
2276
cat >>confdefs.h <<_ACEOF
2277
#define PACKAGE "$PACKAGE"
2281
cat >>confdefs.h <<_ACEOF
2282
#define VERSION "$VERSION"
2285
# Some tools Automake needs.
2287
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2290
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2293
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2296
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2299
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2301
install_sh=${install_sh-"$am_aux_dir/install-sh"}
2303
# Installed binaries are usually stripped using `strip' when the user
2304
# run `make install-strip'. However `strip' might not be the right
2305
# tool to use in cross-compilation environments, therefore Automake
2306
# will honor the `STRIP' environment variable to overrule this program.
2307
if test "$cross_compiling" != no; then
2308
if test -n "$ac_tool_prefix"; then
2309
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2310
set dummy ${ac_tool_prefix}strip; ac_word=$2
2311
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2312
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2313
if test "${ac_cv_prog_STRIP+set}" = set; then
2314
echo $ECHO_N "(cached) $ECHO_C" >&6
2316
if test -n "$STRIP"; then
2317
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2319
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2323
test -z "$as_dir" && as_dir=.
2324
for ac_exec_ext in '' $ac_executable_extensions; do
2325
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2326
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2327
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2336
STRIP=$ac_cv_prog_STRIP
2337
if test -n "$STRIP"; then
2338
{ echo "$as_me:$LINENO: result: $STRIP" >&5
2339
echo "${ECHO_T}$STRIP" >&6; }
2341
{ echo "$as_me:$LINENO: result: no" >&5
2342
echo "${ECHO_T}no" >&6; }
2347
if test -z "$ac_cv_prog_STRIP"; then
2349
# Extract the first word of "strip", so it can be a program name with args.
2350
set dummy strip; ac_word=$2
2351
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2352
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2353
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2354
echo $ECHO_N "(cached) $ECHO_C" >&6
2356
if test -n "$ac_ct_STRIP"; then
2357
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2359
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2363
test -z "$as_dir" && as_dir=.
2364
for ac_exec_ext in '' $ac_executable_extensions; do
2365
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2366
ac_cv_prog_ac_ct_STRIP="strip"
2367
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2376
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2377
if test -n "$ac_ct_STRIP"; then
2378
{ echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2379
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2381
{ echo "$as_me:$LINENO: result: no" >&5
2382
echo "${ECHO_T}no" >&6; }
2385
if test "x$ac_ct_STRIP" = x; then
2388
case $cross_compiling:$ac_tool_warned in
2390
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2391
whose name does not start with the host triplet. If you think this
2392
configuration is useful to you, please write to autoconf@gnu.org." >&5
2393
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2394
whose name does not start with the host triplet. If you think this
2395
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2396
ac_tool_warned=yes ;;
2401
STRIP="$ac_cv_prog_STRIP"
2405
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2407
# We need awk for the "check" target. The system "awk" is bad on
2409
# Always define AMTAR for backward compatibility.
2411
AMTAR=${AMTAR-"${am_missing_run}tar"}
2413
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2419
# Checks for programs.
2420
DEPDIR="${am__leading_dot}deps"
2422
ac_config_commands="$ac_config_commands depfiles"
2425
am_make=${MAKE-make}
2426
cat > confinc << 'END'
2431
# If we don't find an include directive, just comment out the code.
2432
{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2433
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2437
# First try GNU make style include.
2438
echo "include confinc" > confmf
2439
# We grep out `Entering directory' and `Leaving directory'
2440
# messages which can occur if `w' ends up in MAKEFLAGS.
2441
# In particular we don't look at `^make:' because GNU make might
2442
# be invoked under some other name (usually "gmake"), in which
2443
# case it prints its new name instead of `make'.
2444
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2449
# Now try BSD make style include.
2450
if test "$am__include" = "#"; then
2451
echo '.include "confinc"' > confmf
2452
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2453
am__include=.include
2460
{ echo "$as_me:$LINENO: result: $_am_result" >&5
2461
echo "${ECHO_T}$_am_result" >&6; }
2462
rm -f confinc confmf
2464
# Check whether --enable-dependency-tracking was given.
2465
if test "${enable_dependency_tracking+set}" = set; then
2466
enableval=$enable_dependency_tracking;
2469
if test "x$enable_dependency_tracking" != xno; then
2470
am_depcomp="$ac_aux_dir/depcomp"
2475
if test "x$enable_dependency_tracking" != xno; then
2486
depcc="$OBJC" am_compiler_list='gcc3 gcc'
2488
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2489
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
2490
if test "${am_cv_OBJC_dependencies_compiler_type+set}" = set; then
2491
echo $ECHO_N "(cached) $ECHO_C" >&6
2493
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2494
# We make a subdir and do the tests there. Otherwise we can end up
2495
# making bogus files that we don't know about and never remove. For
2496
# instance it was reported that on HP-UX the gcc test will end up
2497
# making a dummy file named `D' -- because `-MD' means `put the output
2500
# Copy depcomp to subdir because otherwise we won't find it if we're
2501
# using a relative directory.
2502
cp "$am_depcomp" conftest.dir
2504
# We will build objects and dependencies in a subdirectory because
2505
# it helps to detect inapplicable dependency modes. For instance
2506
# both Tru64's cc and ICC support -MD to output dependencies as a
2507
# side effect of compilation, but ICC will put the dependencies in
2508
# the current directory while Tru64 will put them in the object
2512
am_cv_OBJC_dependencies_compiler_type=none
2513
if test "$am_compiler_list" = ""; then
2514
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2516
for depmode in $am_compiler_list; do
2517
# Setup a source with many dependencies, because some compilers
2518
# like to wrap large dependency lists on column 80 (with \), and
2519
# we should not choose a depcomp mode which is confused by this.
2521
# We need to recreate these files for each test, as the compiler may
2522
# overwrite some of them when testing with obscure command lines.
2523
# This happens at least with the AIX C compiler.
2525
for i in 1 2 3 4 5 6; do
2526
echo '#include "conftst'$i'.h"' >> sub/conftest.c
2527
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2528
# Solaris 8's {/usr,}/bin/sh.
2529
touch sub/conftst$i.h
2531
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2535
# after this tag, mechanisms are not by side-effect, so they'll
2536
# only be used when explicitly requested
2537
if test "x$enable_dependency_tracking" = xyes; then
2545
# We check with `-c' and `-o' for the sake of the "dashmstdout"
2546
# mode. It turns out that the SunPro C++ compiler does not properly
2547
# handle `-M -o', and we need to detect this.
2548
if depmode=$depmode \
2549
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2550
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2551
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2552
>/dev/null 2>conftest.err &&
2553
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2554
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2555
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2556
# icc doesn't choke on unknown options, it will just issue warnings
2557
# or remarks (even with -Werror). So we grep stderr for any message
2558
# that says an option was ignored or not supported.
2559
# When given -MP, icc 7.0 and 7.1 complain thusly:
2560
# icc: Command line warning: ignoring option '-M'; no argument required
2561
# The diagnosis changed in icc 8.0:
2562
# icc: Command line remark: option '-MP' not supported
2563
if (grep 'ignoring option' conftest.err ||
2564
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2565
am_cv_OBJC_dependencies_compiler_type=$depmode
2574
am_cv_OBJC_dependencies_compiler_type=none
2578
{ echo "$as_me:$LINENO: result: $am_cv_OBJC_dependencies_compiler_type" >&5
2579
echo "${ECHO_T}$am_cv_OBJC_dependencies_compiler_type" >&6; }
2580
OBJCDEPMODE=depmode=$am_cv_OBJC_dependencies_compiler_type
2585
test "x$enable_dependency_tracking" != xno \
2586
&& test "$am_cv_OBJC_dependencies_compiler_type" = gcc3; then
2587
am__fastdepOBJC_TRUE=
2588
am__fastdepOBJC_FALSE='#'
2590
am__fastdepOBJC_TRUE='#'
2591
am__fastdepOBJC_FALSE=
2596
ac_cpp='$OBJCPP $CPPFLAGS'
2597
ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2598
ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2599
ac_compiler_gnu=$ac_cv_objc_compiler_gnu
2600
if test -n "$ac_tool_prefix"; then
2601
for ac_prog in gcc objcc objc cc CC
2603
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2604
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2605
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2606
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2607
if test "${ac_cv_prog_OBJC+set}" = set; then
2608
echo $ECHO_N "(cached) $ECHO_C" >&6
2610
if test -n "$OBJC"; then
2611
ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
2613
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2617
test -z "$as_dir" && as_dir=.
2618
for ac_exec_ext in '' $ac_executable_extensions; do
2619
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2620
ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
2621
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2630
OBJC=$ac_cv_prog_OBJC
2631
if test -n "$OBJC"; then
2632
{ echo "$as_me:$LINENO: result: $OBJC" >&5
2633
echo "${ECHO_T}$OBJC" >&6; }
2635
{ echo "$as_me:$LINENO: result: no" >&5
2636
echo "${ECHO_T}no" >&6; }
2640
test -n "$OBJC" && break
2643
if test -z "$OBJC"; then
2645
for ac_prog in gcc objcc objc cc CC
2647
# Extract the first word of "$ac_prog", so it can be a program name with args.
2648
set dummy $ac_prog; ac_word=$2
2649
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2650
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2651
if test "${ac_cv_prog_ac_ct_OBJC+set}" = set; then
2652
echo $ECHO_N "(cached) $ECHO_C" >&6
2654
if test -n "$ac_ct_OBJC"; then
2655
ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
2657
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2661
test -z "$as_dir" && as_dir=.
2662
for ac_exec_ext in '' $ac_executable_extensions; do
2663
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2664
ac_cv_prog_ac_ct_OBJC="$ac_prog"
2665
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2674
ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC
2675
if test -n "$ac_ct_OBJC"; then
2676
{ echo "$as_me:$LINENO: result: $ac_ct_OBJC" >&5
2677
echo "${ECHO_T}$ac_ct_OBJC" >&6; }
2679
{ echo "$as_me:$LINENO: result: no" >&5
2680
echo "${ECHO_T}no" >&6; }
2684
test -n "$ac_ct_OBJC" && break
2687
if test "x$ac_ct_OBJC" = x; then
2690
case $cross_compiling:$ac_tool_warned in
2692
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2693
whose name does not start with the host triplet. If you think this
2694
configuration is useful to you, please write to autoconf@gnu.org." >&5
2695
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2696
whose name does not start with the host triplet. If you think this
2697
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2698
ac_tool_warned=yes ;;
2704
# Provide some information about the compiler.
2705
echo "$as_me:$LINENO: checking for Objective C compiler version" >&5
2706
ac_compiler=`set X $ac_compile; echo $2`
2707
{ (ac_try="$ac_compiler --version >&5"
2709
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2710
*) ac_try_echo=$ac_try;;
2712
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2713
(eval "$ac_compiler --version >&5") 2>&5
2715
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716
(exit $ac_status); }
2717
{ (ac_try="$ac_compiler -v >&5"
2719
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2720
*) ac_try_echo=$ac_try;;
2722
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2723
(eval "$ac_compiler -v >&5") 2>&5
2725
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726
(exit $ac_status); }
2727
{ (ac_try="$ac_compiler -V >&5"
2729
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2730
*) ac_try_echo=$ac_try;;
2732
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2733
(eval "$ac_compiler -V >&5") 2>&5
2735
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2736
(exit $ac_status); }
2738
cat >conftest.$ac_ext <<_ACEOF
2741
cat confdefs.h >>conftest.$ac_ext
2742
cat >>conftest.$ac_ext <<_ACEOF
2743
/* end confdefs.h. */
2753
ac_clean_files_save=$ac_clean_files
2754
ac_clean_files="$ac_clean_files a.out a.exe b.out"
2755
# Try to create an executable without -o first, disregard a.out.
2756
# It will help us diagnose broken compilers, and finding out an intuition
2758
{ echo "$as_me:$LINENO: checking for Objective C compiler default output file name" >&5
2759
echo $ECHO_N "checking for Objective C compiler default output file name... $ECHO_C" >&6; }
2760
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2762
# List of possible output files, starting from the most likely.
2763
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2764
# only as a last resort. b.out is created by i960 compilers.
2765
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2767
# The IRIX 6 linker writes into existing files which may not be
2768
# executable, retaining their permissions. Remove them first so a
2769
# subsequent execution test works.
2771
for ac_file in $ac_files
2774
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2775
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
2780
if { (ac_try="$ac_link_default"
2782
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2783
*) ac_try_echo=$ac_try;;
2785
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2786
(eval "$ac_link_default") 2>&5
2788
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789
(exit $ac_status); }; then
2790
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2791
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2792
# in a Makefile. We should not override ac_cv_exeext if it was cached,
2793
# so that the user can short-circuit this test for compilers unknown to
2795
for ac_file in $ac_files ''
2797
test -f "$ac_file" || continue
2799
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2802
# We found the default executable, but exeext='' is most
2806
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2808
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2810
# We set ac_cv_exeext here because the later test for it is not
2811
# safe: cross compilers may not add the suffix if given an `-o'
2812
# argument, so we may need to know it at that point already.
2813
# Even if this section looks crufty: it has the advantage of
2820
test "$ac_cv_exeext" = no && ac_cv_exeext=
2826
{ echo "$as_me:$LINENO: result: $ac_file" >&5
2827
echo "${ECHO_T}$ac_file" >&6; }
2828
if test -z "$ac_file"; then
2829
echo "$as_me: failed program was:" >&5
2830
sed 's/^/| /' conftest.$ac_ext >&5
2832
{ { echo "$as_me:$LINENO: error: Objective C compiler cannot create executables
2833
See \`config.log' for more details." >&5
2834
echo "$as_me: error: Objective C compiler cannot create executables
2835
See \`config.log' for more details." >&2;}
2836
{ (exit 77); exit 77; }; }
2839
ac_exeext=$ac_cv_exeext
2841
# Check that the compiler produces executables we can run. If not, either
2842
# the compiler is broken, or we cross compile.
2843
{ echo "$as_me:$LINENO: checking whether the Objective C compiler works" >&5
2844
echo $ECHO_N "checking whether the Objective C compiler works... $ECHO_C" >&6; }
2845
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2846
# If not cross compiling, check that we can run a simple program.
2847
if test "$cross_compiling" != yes; then
2848
if { ac_try='./$ac_file'
2849
{ (case "(($ac_try" in
2850
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2851
*) ac_try_echo=$ac_try;;
2853
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2854
(eval "$ac_try") 2>&5
2856
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857
(exit $ac_status); }; }; then
2860
if test "$cross_compiling" = maybe; then
2863
{ { echo "$as_me:$LINENO: error: cannot run Objective C compiled programs.
2864
If you meant to cross compile, use \`--host'.
2865
See \`config.log' for more details." >&5
2866
echo "$as_me: error: cannot run Objective C compiled programs.
2867
If you meant to cross compile, use \`--host'.
2868
See \`config.log' for more details." >&2;}
2869
{ (exit 1); exit 1; }; }
2873
{ echo "$as_me:$LINENO: result: yes" >&5
2874
echo "${ECHO_T}yes" >&6; }
2876
rm -f a.out a.exe conftest$ac_cv_exeext b.out
2877
ac_clean_files=$ac_clean_files_save
2878
# Check that the compiler produces executables we can run. If not, either
2879
# the compiler is broken, or we cross compile.
2880
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2881
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2882
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2883
echo "${ECHO_T}$cross_compiling" >&6; }
2885
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2886
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2887
if { (ac_try="$ac_link"
2889
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2890
*) ac_try_echo=$ac_try;;
2892
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2893
(eval "$ac_link") 2>&5
2895
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896
(exit $ac_status); }; then
2897
# If both `conftest.exe' and `conftest' are `present' (well, observable)
2898
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2899
# work properly (i.e., refer to `conftest.exe'), while it won't with
2901
for ac_file in conftest.exe conftest conftest.*; do
2902
test -f "$ac_file" || continue
2904
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2905
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2911
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2912
See \`config.log' for more details." >&5
2913
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2914
See \`config.log' for more details." >&2;}
2915
{ (exit 1); exit 1; }; }
2918
rm -f conftest$ac_cv_exeext
2919
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2920
echo "${ECHO_T}$ac_cv_exeext" >&6; }
2922
rm -f conftest.$ac_ext
2923
EXEEXT=$ac_cv_exeext
2925
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2926
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2927
if test "${ac_cv_objext+set}" = set; then
2928
echo $ECHO_N "(cached) $ECHO_C" >&6
2930
cat >conftest.$ac_ext <<_ACEOF
2933
cat confdefs.h >>conftest.$ac_ext
2934
cat >>conftest.$ac_ext <<_ACEOF
2935
/* end confdefs.h. */
2945
rm -f conftest.o conftest.obj
2946
if { (ac_try="$ac_compile"
2948
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2949
*) ac_try_echo=$ac_try;;
2951
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2952
(eval "$ac_compile") 2>&5
2954
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955
(exit $ac_status); }; then
2956
for ac_file in conftest.o conftest.obj conftest.*; do
2957
test -f "$ac_file" || continue;
2959
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2960
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2965
echo "$as_me: failed program was:" >&5
2966
sed 's/^/| /' conftest.$ac_ext >&5
2968
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2969
See \`config.log' for more details." >&5
2970
echo "$as_me: error: cannot compute suffix of object files: cannot compile
2971
See \`config.log' for more details." >&2;}
2972
{ (exit 1); exit 1; }; }
2975
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2977
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2978
echo "${ECHO_T}$ac_cv_objext" >&6; }
2979
OBJEXT=$ac_cv_objext
2981
{ echo "$as_me:$LINENO: checking whether we are using the GNU Objective C compiler" >&5
2982
echo $ECHO_N "checking whether we are using the GNU Objective C compiler... $ECHO_C" >&6; }
2983
if test "${ac_cv_objc_compiler_gnu+set}" = set; then
2984
echo $ECHO_N "(cached) $ECHO_C" >&6
2986
cat >conftest.$ac_ext <<_ACEOF
2989
cat confdefs.h >>conftest.$ac_ext
2990
cat >>conftest.$ac_ext <<_ACEOF
2991
/* end confdefs.h. */
3004
rm -f conftest.$ac_objext
3005
if { (ac_try="$ac_compile"
3007
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3008
*) ac_try_echo=$ac_try;;
3010
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3011
(eval "$ac_compile") 2>conftest.er1
3013
grep -v '^ *+' conftest.er1 >conftest.err
3015
cat conftest.err >&5
3016
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3017
(exit $ac_status); } && {
3018
test -z "$ac_objc_werror_flag" ||
3019
test ! -s conftest.err
3020
} && test -s conftest.$ac_objext; then
3023
echo "$as_me: failed program was:" >&5
3024
sed 's/^/| /' conftest.$ac_ext >&5
3029
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3030
ac_cv_objc_compiler_gnu=$ac_compiler_gnu
3033
{ echo "$as_me:$LINENO: result: $ac_cv_objc_compiler_gnu" >&5
3034
echo "${ECHO_T}$ac_cv_objc_compiler_gnu" >&6; }
3035
GOBJC=`test $ac_compiler_gnu = yes && echo yes`
3036
ac_test_OBJCFLAGS=${OBJCFLAGS+set}
3037
ac_save_OBJCFLAGS=$OBJCFLAGS
3038
{ echo "$as_me:$LINENO: checking whether $OBJC accepts -g" >&5
3039
echo $ECHO_N "checking whether $OBJC accepts -g... $ECHO_C" >&6; }
3040
if test "${ac_cv_prog_objc_g+set}" = set; then
3041
echo $ECHO_N "(cached) $ECHO_C" >&6
3043
ac_save_objc_werror_flag=$ac_objc_werror_flag
3044
ac_objc_werror_flag=yes
3045
ac_cv_prog_objc_g=no
3047
cat >conftest.$ac_ext <<_ACEOF
3050
cat confdefs.h >>conftest.$ac_ext
3051
cat >>conftest.$ac_ext <<_ACEOF
3052
/* end confdefs.h. */
3062
rm -f conftest.$ac_objext
3063
if { (ac_try="$ac_compile"
3065
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3066
*) ac_try_echo=$ac_try;;
3068
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3069
(eval "$ac_compile") 2>conftest.er1
3071
grep -v '^ *+' conftest.er1 >conftest.err
3073
cat conftest.err >&5
3074
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075
(exit $ac_status); } && {
3076
test -z "$ac_objc_werror_flag" ||
3077
test ! -s conftest.err
3078
} && test -s conftest.$ac_objext; then
3079
ac_cv_prog_objc_g=yes
3081
echo "$as_me: failed program was:" >&5
3082
sed 's/^/| /' conftest.$ac_ext >&5
3085
cat >conftest.$ac_ext <<_ACEOF
3088
cat confdefs.h >>conftest.$ac_ext
3089
cat >>conftest.$ac_ext <<_ACEOF
3090
/* end confdefs.h. */
3100
rm -f conftest.$ac_objext
3101
if { (ac_try="$ac_compile"
3103
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3104
*) ac_try_echo=$ac_try;;
3106
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3107
(eval "$ac_compile") 2>conftest.er1
3109
grep -v '^ *+' conftest.er1 >conftest.err
3111
cat conftest.err >&5
3112
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113
(exit $ac_status); } && {
3114
test -z "$ac_objc_werror_flag" ||
3115
test ! -s conftest.err
3116
} && test -s conftest.$ac_objext; then
3119
echo "$as_me: failed program was:" >&5
3120
sed 's/^/| /' conftest.$ac_ext >&5
3122
ac_objc_werror_flag=$ac_save_objc_werror_flag
3124
cat >conftest.$ac_ext <<_ACEOF
3127
cat confdefs.h >>conftest.$ac_ext
3128
cat >>conftest.$ac_ext <<_ACEOF
3129
/* end confdefs.h. */
3139
rm -f conftest.$ac_objext
3140
if { (ac_try="$ac_compile"
3142
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3143
*) ac_try_echo=$ac_try;;
3145
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3146
(eval "$ac_compile") 2>conftest.er1
3148
grep -v '^ *+' conftest.er1 >conftest.err
3150
cat conftest.err >&5
3151
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152
(exit $ac_status); } && {
3153
test -z "$ac_objc_werror_flag" ||
3154
test ! -s conftest.err
3155
} && test -s conftest.$ac_objext; then
3156
ac_cv_prog_objc_g=yes
3158
echo "$as_me: failed program was:" >&5
3159
sed 's/^/| /' conftest.$ac_ext >&5
3164
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3167
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3170
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3171
ac_objc_werror_flag=$ac_save_objc_werror_flag
3173
{ echo "$as_me:$LINENO: result: $ac_cv_prog_objc_g" >&5
3174
echo "${ECHO_T}$ac_cv_prog_objc_g" >&6; }
3175
if test "$ac_test_OBJCFLAGS" = set; then
3176
OBJCFLAGS=$ac_save_OBJCFLAGS
3177
elif test $ac_cv_prog_objc_g = yes; then
3178
if test "$GOBJC" = yes; then
3184
if test "$GOBJC" = yes; then
3191
ac_cpp='$CPP $CPPFLAGS'
3192
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3193
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3194
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3196
# Find a good install program. We prefer a C program (faster),
3197
# so one script is as good as another. But avoid the broken or
3198
# incompatible versions:
3199
# SysV /etc/install, /usr/sbin/install
3200
# SunOS /usr/etc/install
3201
# IRIX /sbin/install
3203
# AmigaOS /C/install, which installs bootblocks on floppy discs
3204
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3205
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3206
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3207
# OS/2's system install, which has a completely different semantic
3208
# ./install, which can be erroneously created by make from ./install.sh.
3209
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3210
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3211
if test -z "$INSTALL"; then
3212
if test "${ac_cv_path_install+set}" = set; then
3213
echo $ECHO_N "(cached) $ECHO_C" >&6
3215
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3219
test -z "$as_dir" && as_dir=.
3220
# Account for people who put trailing slashes in PATH elements.
3222
./ | .// | /cC/* | \
3223
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3224
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3227
# OSF1 and SCO ODT 3.0 have their own names for install.
3228
# Don't use installbsd from OSF since it installs stuff as root
3230
for ac_prog in ginstall scoinst install; do
3231
for ac_exec_ext in '' $ac_executable_extensions; do
3232
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3233
if test $ac_prog = install &&
3234
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3235
# AIX install. It has an incompatible calling convention.
3237
elif test $ac_prog = install &&
3238
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3239
# program-specific install script used by HP pwplus--don't use.
3242
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3255
if test "${ac_cv_path_install+set}" = set; then
3256
INSTALL=$ac_cv_path_install
3258
# As a last resort, use the slow shell script. Don't cache a
3259
# value for INSTALL within a source directory, because that will
3260
# break other packages using the cache if that directory is
3261
# removed, or if the value is a relative name.
3262
INSTALL=$ac_install_sh
3265
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
3266
echo "${ECHO_T}$INSTALL" >&6; }
3268
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3269
# It thinks the first close brace ends the variable substitution.
3270
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3272
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3274
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3276
# Check whether --enable-shared was given.
3277
if test "${enable_shared+set}" = set; then
3278
enableval=$enable_shared; p=${PACKAGE-default}
3280
yes) enable_shared=yes ;;
3281
no) enable_shared=no ;;
3284
# Look at the argument we got. We use all the common list separators.
3285
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3286
for pkg in $enableval; do
3288
if test "X$pkg" = "X$p"; then
3300
# Check whether --enable-static was given.
3301
if test "${enable_static+set}" = set; then
3302
enableval=$enable_static; p=${PACKAGE-default}
3304
yes) enable_static=yes ;;
3305
no) enable_static=no ;;
3308
# Look at the argument we got. We use all the common list separators.
3309
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3310
for pkg in $enableval; do
3312
if test "X$pkg" = "X$p"; then
3324
# Check whether --enable-fast-install was given.
3325
if test "${enable_fast_install+set}" = set; then
3326
enableval=$enable_fast_install; p=${PACKAGE-default}
3328
yes) enable_fast_install=yes ;;
3329
no) enable_fast_install=no ;;
3331
enable_fast_install=no
3332
# Look at the argument we got. We use all the common list separators.
3333
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3334
for pkg in $enableval; do
3336
if test "X$pkg" = "X$p"; then
3337
enable_fast_install=yes
3344
enable_fast_install=yes
3348
# Make sure we can run config.sub.
3349
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3350
{ { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3351
echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3352
{ (exit 1); exit 1; }; }
3354
{ echo "$as_me:$LINENO: checking build system type" >&5
3355
echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3356
if test "${ac_cv_build+set}" = set; then
3357
echo $ECHO_N "(cached) $ECHO_C" >&6
3359
ac_build_alias=$build_alias
3360
test "x$ac_build_alias" = x &&
3361
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3362
test "x$ac_build_alias" = x &&
3363
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3364
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3365
{ (exit 1); exit 1; }; }
3366
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3367
{ { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3368
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3369
{ (exit 1); exit 1; }; }
3372
{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3373
echo "${ECHO_T}$ac_cv_build" >&6; }
3374
case $ac_cv_build in
3376
*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3377
echo "$as_me: error: invalid value of canonical build" >&2;}
3378
{ (exit 1); exit 1; }; };;
3381
ac_save_IFS=$IFS; IFS='-'
3387
# Remember, the first character of IFS is used to create $*,
3388
# except with old shells:
3391
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3394
{ echo "$as_me:$LINENO: checking host system type" >&5
3395
echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3396
if test "${ac_cv_host+set}" = set; then
3397
echo $ECHO_N "(cached) $ECHO_C" >&6
3399
if test "x$host_alias" = x; then
3400
ac_cv_host=$ac_cv_build
3402
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3403
{ { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3404
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3405
{ (exit 1); exit 1; }; }
3409
{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3410
echo "${ECHO_T}$ac_cv_host" >&6; }
3413
*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3414
echo "$as_me: error: invalid value of canonical host" >&2;}
3415
{ (exit 1); exit 1; }; };;
3418
ac_save_IFS=$IFS; IFS='-'
3424
# Remember, the first character of IFS is used to create $*,
3425
# except with old shells:
3428
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3432
ac_cpp='$CPP $CPPFLAGS'
3433
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3434
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3435
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3436
if test -n "$ac_tool_prefix"; then
3437
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3438
set dummy ${ac_tool_prefix}gcc; ac_word=$2
3439
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3440
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3441
if test "${ac_cv_prog_CC+set}" = set; then
3442
echo $ECHO_N "(cached) $ECHO_C" >&6
3444
if test -n "$CC"; then
3445
ac_cv_prog_CC="$CC" # Let the user override the test.
3447
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3451
test -z "$as_dir" && as_dir=.
3452
for ac_exec_ext in '' $ac_executable_extensions; do
3453
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3454
ac_cv_prog_CC="${ac_tool_prefix}gcc"
3455
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3465
if test -n "$CC"; then
3466
{ echo "$as_me:$LINENO: result: $CC" >&5
3467
echo "${ECHO_T}$CC" >&6; }
3469
{ echo "$as_me:$LINENO: result: no" >&5
3470
echo "${ECHO_T}no" >&6; }
3475
if test -z "$ac_cv_prog_CC"; then
3477
# Extract the first word of "gcc", so it can be a program name with args.
3478
set dummy gcc; ac_word=$2
3479
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3480
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3481
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3482
echo $ECHO_N "(cached) $ECHO_C" >&6
3484
if test -n "$ac_ct_CC"; then
3485
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3487
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3491
test -z "$as_dir" && as_dir=.
3492
for ac_exec_ext in '' $ac_executable_extensions; do
3493
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3494
ac_cv_prog_ac_ct_CC="gcc"
3495
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3504
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3505
if test -n "$ac_ct_CC"; then
3506
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3507
echo "${ECHO_T}$ac_ct_CC" >&6; }
3509
{ echo "$as_me:$LINENO: result: no" >&5
3510
echo "${ECHO_T}no" >&6; }
3513
if test "x$ac_ct_CC" = x; then
3516
case $cross_compiling:$ac_tool_warned in
3518
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3519
whose name does not start with the host triplet. If you think this
3520
configuration is useful to you, please write to autoconf@gnu.org." >&5
3521
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3522
whose name does not start with the host triplet. If you think this
3523
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3524
ac_tool_warned=yes ;;
3532
if test -z "$CC"; then
3533
if test -n "$ac_tool_prefix"; then
3534
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3535
set dummy ${ac_tool_prefix}cc; ac_word=$2
3536
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3537
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3538
if test "${ac_cv_prog_CC+set}" = set; then
3539
echo $ECHO_N "(cached) $ECHO_C" >&6
3541
if test -n "$CC"; then
3542
ac_cv_prog_CC="$CC" # Let the user override the test.
3544
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3548
test -z "$as_dir" && as_dir=.
3549
for ac_exec_ext in '' $ac_executable_extensions; do
3550
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3551
ac_cv_prog_CC="${ac_tool_prefix}cc"
3552
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3562
if test -n "$CC"; then
3563
{ echo "$as_me:$LINENO: result: $CC" >&5
3564
echo "${ECHO_T}$CC" >&6; }
3566
{ echo "$as_me:$LINENO: result: no" >&5
3567
echo "${ECHO_T}no" >&6; }
3573
if test -z "$CC"; then
3574
# Extract the first word of "cc", so it can be a program name with args.
3575
set dummy cc; ac_word=$2
3576
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3577
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3578
if test "${ac_cv_prog_CC+set}" = set; then
3579
echo $ECHO_N "(cached) $ECHO_C" >&6
3581
if test -n "$CC"; then
3582
ac_cv_prog_CC="$CC" # Let the user override the test.
3585
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3589
test -z "$as_dir" && as_dir=.
3590
for ac_exec_ext in '' $ac_executable_extensions; do
3591
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3592
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3593
ac_prog_rejected=yes
3597
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3604
if test $ac_prog_rejected = yes; then
3605
# We found a bogon in the path, so make sure we never use it.
3606
set dummy $ac_cv_prog_CC
3608
if test $# != 0; then
3609
# We chose a different compiler from the bogus one.
3610
# However, it has the same basename, so the bogon will be chosen
3611
# first if we set CC to just the basename; use the full file name.
3613
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3619
if test -n "$CC"; then
3620
{ echo "$as_me:$LINENO: result: $CC" >&5
3621
echo "${ECHO_T}$CC" >&6; }
3623
{ echo "$as_me:$LINENO: result: no" >&5
3624
echo "${ECHO_T}no" >&6; }
3629
if test -z "$CC"; then
3630
if test -n "$ac_tool_prefix"; then
3631
for ac_prog in cl.exe
3633
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3634
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3635
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3636
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3637
if test "${ac_cv_prog_CC+set}" = set; then
3638
echo $ECHO_N "(cached) $ECHO_C" >&6
3640
if test -n "$CC"; then
3641
ac_cv_prog_CC="$CC" # Let the user override the test.
3643
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3647
test -z "$as_dir" && as_dir=.
3648
for ac_exec_ext in '' $ac_executable_extensions; do
3649
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3650
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3651
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3661
if test -n "$CC"; then
3662
{ echo "$as_me:$LINENO: result: $CC" >&5
3663
echo "${ECHO_T}$CC" >&6; }
3665
{ echo "$as_me:$LINENO: result: no" >&5
3666
echo "${ECHO_T}no" >&6; }
3670
test -n "$CC" && break
3673
if test -z "$CC"; then
3675
for ac_prog in cl.exe
3677
# Extract the first word of "$ac_prog", so it can be a program name with args.
3678
set dummy $ac_prog; ac_word=$2
3679
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3680
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3681
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3682
echo $ECHO_N "(cached) $ECHO_C" >&6
3684
if test -n "$ac_ct_CC"; then
3685
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3687
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3691
test -z "$as_dir" && as_dir=.
3692
for ac_exec_ext in '' $ac_executable_extensions; do
3693
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3694
ac_cv_prog_ac_ct_CC="$ac_prog"
3695
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3704
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3705
if test -n "$ac_ct_CC"; then
3706
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3707
echo "${ECHO_T}$ac_ct_CC" >&6; }
3709
{ echo "$as_me:$LINENO: result: no" >&5
3710
echo "${ECHO_T}no" >&6; }
3714
test -n "$ac_ct_CC" && break
3717
if test "x$ac_ct_CC" = x; then
3720
case $cross_compiling:$ac_tool_warned in
3722
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3723
whose name does not start with the host triplet. If you think this
3724
configuration is useful to you, please write to autoconf@gnu.org." >&5
3725
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3726
whose name does not start with the host triplet. If you think this
3727
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3728
ac_tool_warned=yes ;;
3737
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3738
See \`config.log' for more details." >&5
3739
echo "$as_me: error: no acceptable C compiler found in \$PATH
3740
See \`config.log' for more details." >&2;}
3741
{ (exit 1); exit 1; }; }
3743
# Provide some information about the compiler.
3744
echo "$as_me:$LINENO: checking for C compiler version" >&5
3745
ac_compiler=`set X $ac_compile; echo $2`
3746
{ (ac_try="$ac_compiler --version >&5"
3748
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3749
*) ac_try_echo=$ac_try;;
3751
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3752
(eval "$ac_compiler --version >&5") 2>&5
3754
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3755
(exit $ac_status); }
3756
{ (ac_try="$ac_compiler -v >&5"
3758
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3759
*) ac_try_echo=$ac_try;;
3761
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3762
(eval "$ac_compiler -v >&5") 2>&5
3764
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3765
(exit $ac_status); }
3766
{ (ac_try="$ac_compiler -V >&5"
3768
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3769
*) ac_try_echo=$ac_try;;
3771
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3772
(eval "$ac_compiler -V >&5") 2>&5
3774
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3775
(exit $ac_status); }
3777
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3778
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3779
if test "${ac_cv_c_compiler_gnu+set}" = set; then
3780
echo $ECHO_N "(cached) $ECHO_C" >&6
3782
cat >conftest.$ac_ext <<_ACEOF
3785
cat confdefs.h >>conftest.$ac_ext
3786
cat >>conftest.$ac_ext <<_ACEOF
3787
/* end confdefs.h. */
3800
rm -f conftest.$ac_objext
3801
if { (ac_try="$ac_compile"
3803
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3804
*) ac_try_echo=$ac_try;;
3806
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3807
(eval "$ac_compile") 2>conftest.er1
3809
grep -v '^ *+' conftest.er1 >conftest.err
3811
cat conftest.err >&5
3812
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3813
(exit $ac_status); } && {
3814
test -z "$ac_c_werror_flag" ||
3815
test ! -s conftest.err
3816
} && test -s conftest.$ac_objext; then
3819
echo "$as_me: failed program was:" >&5
3820
sed 's/^/| /' conftest.$ac_ext >&5
3825
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3826
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3829
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3830
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3831
GCC=`test $ac_compiler_gnu = yes && echo yes`
3832
ac_test_CFLAGS=${CFLAGS+set}
3833
ac_save_CFLAGS=$CFLAGS
3834
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3835
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3836
if test "${ac_cv_prog_cc_g+set}" = set; then
3837
echo $ECHO_N "(cached) $ECHO_C" >&6
3839
ac_save_c_werror_flag=$ac_c_werror_flag
3840
ac_c_werror_flag=yes
3843
cat >conftest.$ac_ext <<_ACEOF
3846
cat confdefs.h >>conftest.$ac_ext
3847
cat >>conftest.$ac_ext <<_ACEOF
3848
/* end confdefs.h. */
3858
rm -f conftest.$ac_objext
3859
if { (ac_try="$ac_compile"
3861
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3862
*) ac_try_echo=$ac_try;;
3864
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3865
(eval "$ac_compile") 2>conftest.er1
3867
grep -v '^ *+' conftest.er1 >conftest.err
3869
cat conftest.err >&5
3870
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3871
(exit $ac_status); } && {
3872
test -z "$ac_c_werror_flag" ||
3873
test ! -s conftest.err
3874
} && test -s conftest.$ac_objext; then
3877
echo "$as_me: failed program was:" >&5
3878
sed 's/^/| /' conftest.$ac_ext >&5
3881
cat >conftest.$ac_ext <<_ACEOF
3884
cat confdefs.h >>conftest.$ac_ext
3885
cat >>conftest.$ac_ext <<_ACEOF
3886
/* end confdefs.h. */
3896
rm -f conftest.$ac_objext
3897
if { (ac_try="$ac_compile"
3899
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3900
*) ac_try_echo=$ac_try;;
3902
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3903
(eval "$ac_compile") 2>conftest.er1
3905
grep -v '^ *+' conftest.er1 >conftest.err
3907
cat conftest.err >&5
3908
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3909
(exit $ac_status); } && {
3910
test -z "$ac_c_werror_flag" ||
3911
test ! -s conftest.err
3912
} && test -s conftest.$ac_objext; then
3915
echo "$as_me: failed program was:" >&5
3916
sed 's/^/| /' conftest.$ac_ext >&5
3918
ac_c_werror_flag=$ac_save_c_werror_flag
3920
cat >conftest.$ac_ext <<_ACEOF
3923
cat confdefs.h >>conftest.$ac_ext
3924
cat >>conftest.$ac_ext <<_ACEOF
3925
/* end confdefs.h. */
3935
rm -f conftest.$ac_objext
3936
if { (ac_try="$ac_compile"
3938
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3939
*) ac_try_echo=$ac_try;;
3941
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3942
(eval "$ac_compile") 2>conftest.er1
3944
grep -v '^ *+' conftest.er1 >conftest.err
3946
cat conftest.err >&5
3947
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3948
(exit $ac_status); } && {
3949
test -z "$ac_c_werror_flag" ||
3950
test ! -s conftest.err
3951
} && test -s conftest.$ac_objext; then
3954
echo "$as_me: failed program was:" >&5
3955
sed 's/^/| /' conftest.$ac_ext >&5
3960
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3963
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3966
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3967
ac_c_werror_flag=$ac_save_c_werror_flag
3969
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3970
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3971
if test "$ac_test_CFLAGS" = set; then
3972
CFLAGS=$ac_save_CFLAGS
3973
elif test $ac_cv_prog_cc_g = yes; then
3974
if test "$GCC" = yes; then
3980
if test "$GCC" = yes; then
3986
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3987
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3988
if test "${ac_cv_prog_cc_c89+set}" = set; then
3989
echo $ECHO_N "(cached) $ECHO_C" >&6
3991
ac_cv_prog_cc_c89=no
3993
cat >conftest.$ac_ext <<_ACEOF
3996
cat confdefs.h >>conftest.$ac_ext
3997
cat >>conftest.$ac_ext <<_ACEOF
3998
/* end confdefs.h. */
4001
#include <sys/types.h>
4002
#include <sys/stat.h>
4003
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4004
struct buf { int x; };
4005
FILE * (*rcsopen) (struct buf *, struct stat *, int);
4006
static char *e (p, i)
4012
static char *f (char * (*g) (char **, int), char **p, ...)
4017
s = g (p, va_arg (v,int));
4022
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4023
function prototypes and stuff, but not '\xHH' hex character constants.
4024
These don't provoke an error unfortunately, instead are silently treated
4025
as 'x'. The following induces an error, until -std is added to get
4026
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4027
array size at least. It's necessary to write '\x00'==0 to get something
4028
that's true only with -std. */
4029
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4031
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4032
inside strings and character constants. */
4034
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4036
int test (int i, double x);
4037
struct s1 {int (*f) (int a);};
4038
struct s2 {int (*f) (double a);};
4039
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4045
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4050
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4051
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4053
CC="$ac_save_CC $ac_arg"
4054
rm -f conftest.$ac_objext
4055
if { (ac_try="$ac_compile"
4057
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4058
*) ac_try_echo=$ac_try;;
4060
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4061
(eval "$ac_compile") 2>conftest.er1
4063
grep -v '^ *+' conftest.er1 >conftest.err
4065
cat conftest.err >&5
4066
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067
(exit $ac_status); } && {
4068
test -z "$ac_c_werror_flag" ||
4069
test ! -s conftest.err
4070
} && test -s conftest.$ac_objext; then
4071
ac_cv_prog_cc_c89=$ac_arg
4073
echo "$as_me: failed program was:" >&5
4074
sed 's/^/| /' conftest.$ac_ext >&5
4079
rm -f core conftest.err conftest.$ac_objext
4080
test "x$ac_cv_prog_cc_c89" != "xno" && break
4082
rm -f conftest.$ac_ext
4087
case "x$ac_cv_prog_cc_c89" in
4089
{ echo "$as_me:$LINENO: result: none needed" >&5
4090
echo "${ECHO_T}none needed" >&6; } ;;
4092
{ echo "$as_me:$LINENO: result: unsupported" >&5
4093
echo "${ECHO_T}unsupported" >&6; } ;;
4095
CC="$CC $ac_cv_prog_cc_c89"
4096
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4097
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4102
ac_cpp='$CPP $CPPFLAGS'
4103
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4104
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4105
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4107
depcc="$CC" am_compiler_list=
4109
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4110
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4111
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4112
echo $ECHO_N "(cached) $ECHO_C" >&6
4114
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4115
# We make a subdir and do the tests there. Otherwise we can end up
4116
# making bogus files that we don't know about and never remove. For
4117
# instance it was reported that on HP-UX the gcc test will end up
4118
# making a dummy file named `D' -- because `-MD' means `put the output
4121
# Copy depcomp to subdir because otherwise we won't find it if we're
4122
# using a relative directory.
4123
cp "$am_depcomp" conftest.dir
4125
# We will build objects and dependencies in a subdirectory because
4126
# it helps to detect inapplicable dependency modes. For instance
4127
# both Tru64's cc and ICC support -MD to output dependencies as a
4128
# side effect of compilation, but ICC will put the dependencies in
4129
# the current directory while Tru64 will put them in the object
4133
am_cv_CC_dependencies_compiler_type=none
4134
if test "$am_compiler_list" = ""; then
4135
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4137
for depmode in $am_compiler_list; do
4138
# Setup a source with many dependencies, because some compilers
4139
# like to wrap large dependency lists on column 80 (with \), and
4140
# we should not choose a depcomp mode which is confused by this.
4142
# We need to recreate these files for each test, as the compiler may
4143
# overwrite some of them when testing with obscure command lines.
4144
# This happens at least with the AIX C compiler.
4146
for i in 1 2 3 4 5 6; do
4147
echo '#include "conftst'$i'.h"' >> sub/conftest.c
4148
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4149
# Solaris 8's {/usr,}/bin/sh.
4150
touch sub/conftst$i.h
4152
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4156
# after this tag, mechanisms are not by side-effect, so they'll
4157
# only be used when explicitly requested
4158
if test "x$enable_dependency_tracking" = xyes; then
4166
# We check with `-c' and `-o' for the sake of the "dashmstdout"
4167
# mode. It turns out that the SunPro C++ compiler does not properly
4168
# handle `-M -o', and we need to detect this.
4169
if depmode=$depmode \
4170
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4171
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4172
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4173
>/dev/null 2>conftest.err &&
4174
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4175
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4176
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4177
# icc doesn't choke on unknown options, it will just issue warnings
4178
# or remarks (even with -Werror). So we grep stderr for any message
4179
# that says an option was ignored or not supported.
4180
# When given -MP, icc 7.0 and 7.1 complain thusly:
4181
# icc: Command line warning: ignoring option '-M'; no argument required
4182
# The diagnosis changed in icc 8.0:
4183
# icc: Command line remark: option '-MP' not supported
4184
if (grep 'ignoring option' conftest.err ||
4185
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4186
am_cv_CC_dependencies_compiler_type=$depmode
4195
am_cv_CC_dependencies_compiler_type=none
4199
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4200
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4201
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4206
test "x$enable_dependency_tracking" != xno \
4207
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4209
am__fastdepCC_FALSE='#'
4211
am__fastdepCC_TRUE='#'
4212
am__fastdepCC_FALSE=
4216
{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4217
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4218
if test "${lt_cv_path_SED+set}" = set; then
4219
echo $ECHO_N "(cached) $ECHO_C" >&6
4221
# Loop through the user's path and test for sed and gsed.
4222
# Then use that list of sed's as ones to test for truncation.
4223
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4227
test -z "$as_dir" && as_dir=.
4228
for lt_ac_prog in sed gsed; do
4229
for ac_exec_ext in '' $ac_executable_extensions; do
4230
if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
4231
lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4239
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4240
# along with /bin/sed that truncates output.
4241
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4242
test ! -f $lt_ac_sed && continue
4243
cat /dev/null > conftest.in
4245
echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4246
# Check for GNU sed and select it if it is found.
4247
if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4248
lt_cv_path_SED=$lt_ac_sed
4252
cat conftest.in conftest.in >conftest.tmp
4253
mv conftest.tmp conftest.in
4254
cp conftest.in conftest.nl
4256
$lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4257
cmp -s conftest.out conftest.nl || break
4258
# 10000 chars as input seems more than enough
4259
test $lt_ac_count -gt 10 && break
4260
lt_ac_count=`expr $lt_ac_count + 1`
4261
if test $lt_ac_count -gt $lt_ac_max; then
4262
lt_ac_max=$lt_ac_count
4263
lt_cv_path_SED=$lt_ac_sed
4272
{ echo "$as_me:$LINENO: result: $SED" >&5
4273
echo "${ECHO_T}$SED" >&6; }
4275
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4276
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4277
if test "${ac_cv_path_GREP+set}" = set; then
4278
echo $ECHO_N "(cached) $ECHO_C" >&6
4280
# Extract the first word of "grep ggrep" to use in msg output
4281
if test -z "$GREP"; then
4282
set dummy grep ggrep; ac_prog_name=$2
4283
if test "${ac_cv_path_GREP+set}" = set; then
4284
echo $ECHO_N "(cached) $ECHO_C" >&6
4286
ac_path_GREP_found=false
4287
# Loop through the user's path and test for each of PROGNAME-LIST
4288
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4289
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4292
test -z "$as_dir" && as_dir=.
4293
for ac_prog in grep ggrep; do
4294
for ac_exec_ext in '' $ac_executable_extensions; do
4295
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4296
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4297
# Check for GNU ac_path_GREP and select it if it is found.
4298
# Check for GNU $ac_path_GREP
4299
case `"$ac_path_GREP" --version 2>&1` in
4301
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4304
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4307
cat "conftest.in" "conftest.in" >"conftest.tmp"
4308
mv "conftest.tmp" "conftest.in"
4309
cp "conftest.in" "conftest.nl"
4310
echo 'GREP' >> "conftest.nl"
4311
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4312
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4313
ac_count=`expr $ac_count + 1`
4314
if test $ac_count -gt ${ac_path_GREP_max-0}; then
4315
# Best one so far, save it but keep looking for a better one
4316
ac_cv_path_GREP="$ac_path_GREP"
4317
ac_path_GREP_max=$ac_count
4319
# 10*(2^10) chars as input seems more than enough
4320
test $ac_count -gt 10 && break
4322
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4326
$ac_path_GREP_found && break 3
4336
GREP="$ac_cv_path_GREP"
4337
if test -z "$GREP"; then
4338
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4339
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4340
{ (exit 1); exit 1; }; }
4344
ac_cv_path_GREP=$GREP
4349
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4350
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4351
GREP="$ac_cv_path_GREP"
4354
{ echo "$as_me:$LINENO: checking for egrep" >&5
4355
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4356
if test "${ac_cv_path_EGREP+set}" = set; then
4357
echo $ECHO_N "(cached) $ECHO_C" >&6
4359
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4360
then ac_cv_path_EGREP="$GREP -E"
4362
# Extract the first word of "egrep" to use in msg output
4363
if test -z "$EGREP"; then
4364
set dummy egrep; ac_prog_name=$2
4365
if test "${ac_cv_path_EGREP+set}" = set; then
4366
echo $ECHO_N "(cached) $ECHO_C" >&6
4368
ac_path_EGREP_found=false
4369
# Loop through the user's path and test for each of PROGNAME-LIST
4370
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4371
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4374
test -z "$as_dir" && as_dir=.
4375
for ac_prog in egrep; do
4376
for ac_exec_ext in '' $ac_executable_extensions; do
4377
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4378
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4379
# Check for GNU ac_path_EGREP and select it if it is found.
4380
# Check for GNU $ac_path_EGREP
4381
case `"$ac_path_EGREP" --version 2>&1` in
4383
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4386
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4389
cat "conftest.in" "conftest.in" >"conftest.tmp"
4390
mv "conftest.tmp" "conftest.in"
4391
cp "conftest.in" "conftest.nl"
4392
echo 'EGREP' >> "conftest.nl"
4393
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4394
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4395
ac_count=`expr $ac_count + 1`
4396
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4397
# Best one so far, save it but keep looking for a better one
4398
ac_cv_path_EGREP="$ac_path_EGREP"
4399
ac_path_EGREP_max=$ac_count
4401
# 10*(2^10) chars as input seems more than enough
4402
test $ac_count -gt 10 && break
4404
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4408
$ac_path_EGREP_found && break 3
4418
EGREP="$ac_cv_path_EGREP"
4419
if test -z "$EGREP"; then
4420
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4421
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4422
{ (exit 1); exit 1; }; }
4426
ac_cv_path_EGREP=$EGREP
4432
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4433
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4434
EGREP="$ac_cv_path_EGREP"
4438
# Check whether --with-gnu-ld was given.
4439
if test "${with_gnu_ld+set}" = set; then
4440
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4446
if test "$GCC" = yes; then
4447
# Check if gcc -print-prog-name=ld gives a path.
4448
{ echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4449
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4452
# gcc leaves a trailing carriage return which upsets mingw
4453
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4455
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4458
# Accept absolute paths.
4460
re_direlt='/[^/][^/]*/\.\./'
4461
# Canonicalize the pathname of ld
4462
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4463
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4464
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4466
test -z "$LD" && LD="$ac_prog"
4469
# If it fails, then pretend we aren't using GCC.
4473
# If it is relative, then search for the first ld in PATH.
4477
elif test "$with_gnu_ld" = yes; then
4478
{ echo "$as_me:$LINENO: checking for GNU ld" >&5
4479
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4481
{ echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4482
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4484
if test "${lt_cv_path_LD+set}" = set; then
4485
echo $ECHO_N "(cached) $ECHO_C" >&6
4487
if test -z "$LD"; then
4488
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4489
for ac_dir in $PATH; do
4491
test -z "$ac_dir" && ac_dir=.
4492
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4493
lt_cv_path_LD="$ac_dir/$ac_prog"
4494
# Check to see if the program is GNU ld. I'd rather use --version,
4495
# but apparently some variants of GNU ld only accept -v.
4496
# Break only if it was the GNU/non-GNU ld that we prefer.
4497
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4498
*GNU* | *'with BFD'*)
4499
test "$with_gnu_ld" != no && break
4502
test "$with_gnu_ld" != yes && break
4509
lt_cv_path_LD="$LD" # Let the user override the test with a path.
4514
if test -n "$LD"; then
4515
{ echo "$as_me:$LINENO: result: $LD" >&5
4516
echo "${ECHO_T}$LD" >&6; }
4518
{ echo "$as_me:$LINENO: result: no" >&5
4519
echo "${ECHO_T}no" >&6; }
4521
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4522
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4523
{ (exit 1); exit 1; }; }
4524
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4525
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4526
if test "${lt_cv_prog_gnu_ld+set}" = set; then
4527
echo $ECHO_N "(cached) $ECHO_C" >&6
4529
# I'd rather use --version here, but apparently some GNU lds only accept -v.
4530
case `$LD -v 2>&1 </dev/null` in
4531
*GNU* | *'with BFD'*)
4532
lt_cv_prog_gnu_ld=yes
4535
lt_cv_prog_gnu_ld=no
4539
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4540
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4541
with_gnu_ld=$lt_cv_prog_gnu_ld
4544
{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4545
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4546
if test "${lt_cv_ld_reload_flag+set}" = set; then
4547
echo $ECHO_N "(cached) $ECHO_C" >&6
4549
lt_cv_ld_reload_flag='-r'
4551
{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4552
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4553
reload_flag=$lt_cv_ld_reload_flag
4554
case $reload_flag in
4556
*) reload_flag=" $reload_flag" ;;
4558
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4561
if test "$GCC" = yes; then
4562
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4564
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4569
{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4570
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4571
if test "${lt_cv_path_NM+set}" = set; then
4572
echo $ECHO_N "(cached) $ECHO_C" >&6
4574
if test -n "$NM"; then
4575
# Let the user override the test.
4578
lt_nm_to_check="${ac_tool_prefix}nm"
4579
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4580
lt_nm_to_check="$lt_nm_to_check nm"
4582
for lt_tmp_nm in $lt_nm_to_check; do
4583
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4584
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4586
test -z "$ac_dir" && ac_dir=.
4587
tmp_nm="$ac_dir/$lt_tmp_nm"
4588
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4589
# Check to see if the nm accepts a BSD-compat flag.
4590
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4591
# nm: unknown option "B" ignored
4592
# Tru64's nm complains that /dev/null is an invalid object file
4593
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4594
*/dev/null* | *'Invalid file or object type'*)
4595
lt_cv_path_NM="$tmp_nm -B"
4599
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4601
lt_cv_path_NM="$tmp_nm -p"
4605
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4606
continue # so that we can try to find one that supports BSD flags
4615
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4618
{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4619
echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4622
{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
4623
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4625
if test "$LN_S" = "ln -s"; then
4626
{ echo "$as_me:$LINENO: result: yes" >&5
4627
echo "${ECHO_T}yes" >&6; }
4629
{ echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4630
echo "${ECHO_T}no, using $LN_S" >&6; }
4633
{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4634
echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4635
if test "${lt_cv_deplibs_check_method+set}" = set; then
4636
echo $ECHO_N "(cached) $ECHO_C" >&6
4638
lt_cv_file_magic_cmd='$MAGIC_CMD'
4639
lt_cv_file_magic_test_file=
4640
lt_cv_deplibs_check_method='unknown'
4641
# Need to set the preceding variable on all platforms that support
4642
# interlibrary dependencies.
4643
# 'none' -- dependencies not supported.
4644
# `unknown' -- same as none, but documents that we really don't know.
4645
# 'pass_all' -- all dependencies passed with no checks.
4646
# 'test_compile' -- check by making test program.
4647
# 'file_magic [[regex]]' -- check by looking for files in library path
4648
# which responds to the $file_magic_cmd with a given extended regex.
4649
# If you have `file' or equivalent on your system and you're not sure
4650
# whether `pass_all' will *always* work, you probably want this one.
4654
lt_cv_deplibs_check_method=pass_all
4658
lt_cv_deplibs_check_method=pass_all
4662
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4663
lt_cv_file_magic_cmd='/usr/bin/file -L'
4664
lt_cv_file_magic_test_file=/shlib/libc.so
4668
# func_win32_libid is a shell function defined in ltmain.sh
4669
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4670
lt_cv_file_magic_cmd='func_win32_libid'
4674
# Base MSYS/MinGW do not provide the 'file' command needed by
4675
# func_win32_libid shell function, so use a weaker test based on 'objdump',
4676
# unless we find 'file', for example because we are cross-compiling.
4677
if ( file / ) >/dev/null 2>&1; then
4678
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4679
lt_cv_file_magic_cmd='func_win32_libid'
4681
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4682
lt_cv_file_magic_cmd='$OBJDUMP -f'
4686
darwin* | rhapsody*)
4687
lt_cv_deplibs_check_method=pass_all
4690
freebsd* | dragonfly*)
4691
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4694
# Not sure whether the presence of OpenBSD here was a mistake.
4695
# Let's accept both of them until this is cleared up.
4696
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4697
lt_cv_file_magic_cmd=/usr/bin/file
4698
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4702
lt_cv_deplibs_check_method=pass_all
4707
lt_cv_deplibs_check_method=pass_all
4710
hpux10.20* | hpux11*)
4711
lt_cv_file_magic_cmd=/usr/bin/file
4714
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4715
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4718
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]'
4719
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4722
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4723
lt_cv_file_magic_test_file=/usr/lib/libc.sl
4729
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4730
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4733
irix5* | irix6* | nonstopux*)
4735
*-32|*"-32 ") libmagic=32-bit;;
4736
*-n32|*"-n32 ") libmagic=N32;;
4737
*-64|*"-64 ") libmagic=64-bit;;
4738
*) libmagic=never-match;;
4740
lt_cv_deplibs_check_method=pass_all
4743
# This must be Linux ELF.
4744
linux* | k*bsd*-gnu)
4745
lt_cv_deplibs_check_method=pass_all
4748
netbsd* | netbsdelf*-gnu)
4749
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4750
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4752
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4757
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4758
lt_cv_file_magic_cmd=/usr/bin/file
4759
lt_cv_file_magic_test_file=/usr/lib/libnls.so
4763
lt_cv_deplibs_check_method=unknown
4767
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4768
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4770
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4774
osf3* | osf4* | osf5*)
4775
lt_cv_deplibs_check_method=pass_all
4779
lt_cv_deplibs_check_method=pass_all
4783
lt_cv_deplibs_check_method=pass_all
4787
case $host_vendor in
4789
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]'
4790
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4793
lt_cv_deplibs_check_method=pass_all
4796
lt_cv_file_magic_cmd='/bin/file'
4797
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4800
lt_cv_file_magic_cmd='/bin/file'
4801
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4802
lt_cv_file_magic_test_file=/lib/libc.so
4805
lt_cv_deplibs_check_method=pass_all
4808
lt_cv_deplibs_check_method=pass_all
4813
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4814
lt_cv_deplibs_check_method=pass_all
4819
{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4820
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4821
file_magic_cmd=$lt_cv_file_magic_cmd
4822
deplibs_check_method=$lt_cv_deplibs_check_method
4823
test -z "$deplibs_check_method" && deplibs_check_method=unknown
4828
# If no C compiler was specified, use CC.
4831
# If no C compiler flags were specified, use CFLAGS.
4832
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4834
# Allow CC to be a program name with arguments.
4838
# Check whether --enable-libtool-lock was given.
4839
if test "${enable_libtool_lock+set}" = set; then
4840
enableval=$enable_libtool_lock;
4843
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4845
# Some flags need to be propagated to the compiler or linker for good
4849
# Find out which ABI we are using.
4850
echo 'int i;' > conftest.$ac_ext
4851
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4852
(eval $ac_compile) 2>&5
4854
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4855
(exit $ac_status); }; then
4856
case `/usr/bin/file conftest.$ac_objext` in
4868
# Find out which ABI we are using.
4869
echo '#line 4869 "configure"' > conftest.$ac_ext
4870
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4871
(eval $ac_compile) 2>&5
4873
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874
(exit $ac_status); }; then
4875
if test "$lt_cv_prog_gnu_ld" = yes; then
4876
case `/usr/bin/file conftest.$ac_objext` in
4878
LD="${LD-ld} -melf32bsmip"
4881
LD="${LD-ld} -melf32bmipn32"
4884
LD="${LD-ld} -melf64bmip"
4888
case `/usr/bin/file conftest.$ac_objext` in
4904
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4905
s390*-*linux*|sparc*-*linux*)
4906
# Find out which ABI we are using.
4907
echo 'int i;' > conftest.$ac_ext
4908
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4909
(eval $ac_compile) 2>&5
4911
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4912
(exit $ac_status); }; then
4913
case `/usr/bin/file conftest.o` in
4916
x86_64-*kfreebsd*-gnu)
4917
LD="${LD-ld} -m elf_i386_fbsd"
4920
LD="${LD-ld} -m elf_i386"
4922
ppc64-*linux*|powerpc64-*linux*)
4923
LD="${LD-ld} -m elf32ppclinux"
4926
LD="${LD-ld} -m elf_s390"
4929
LD="${LD-ld} -m elf32_sparc"
4935
x86_64-*kfreebsd*-gnu)
4936
LD="${LD-ld} -m elf_x86_64_fbsd"
4939
LD="${LD-ld} -m elf_x86_64"
4941
ppc*-*linux*|powerpc*-*linux*)
4942
LD="${LD-ld} -m elf64ppc"
4945
LD="${LD-ld} -m elf64_s390"
4948
LD="${LD-ld} -m elf64_sparc"
4958
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
4959
SAVE_CFLAGS="$CFLAGS"
4960
CFLAGS="$CFLAGS -belf"
4961
{ echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4962
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4963
if test "${lt_cv_cc_needs_belf+set}" = set; then
4964
echo $ECHO_N "(cached) $ECHO_C" >&6
4967
ac_cpp='$CPP $CPPFLAGS'
4968
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4969
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4970
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4972
cat >conftest.$ac_ext <<_ACEOF
4975
cat confdefs.h >>conftest.$ac_ext
4976
cat >>conftest.$ac_ext <<_ACEOF
4977
/* end confdefs.h. */
4987
rm -f conftest.$ac_objext conftest$ac_exeext
4988
if { (ac_try="$ac_link"
4990
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4991
*) ac_try_echo=$ac_try;;
4993
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4994
(eval "$ac_link") 2>conftest.er1
4996
grep -v '^ *+' conftest.er1 >conftest.err
4998
cat conftest.err >&5
4999
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5000
(exit $ac_status); } && {
5001
test -z "$ac_c_werror_flag" ||
5002
test ! -s conftest.err
5003
} && test -s conftest$ac_exeext &&
5004
$as_test_x conftest$ac_exeext; then
5005
lt_cv_cc_needs_belf=yes
5007
echo "$as_me: failed program was:" >&5
5008
sed 's/^/| /' conftest.$ac_ext >&5
5010
lt_cv_cc_needs_belf=no
5013
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5014
conftest$ac_exeext conftest.$ac_ext
5016
ac_cpp='$CPP $CPPFLAGS'
5017
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5018
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5019
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5022
{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5023
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5024
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5025
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5026
CFLAGS="$SAVE_CFLAGS"
5030
# Find out which ABI we are using.
5031
echo 'int i;' > conftest.$ac_ext
5032
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5033
(eval $ac_compile) 2>&5
5035
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036
(exit $ac_status); }; then
5037
case `/usr/bin/file conftest.o` in
5039
case $lt_cv_prog_gnu_ld in
5040
yes*) LD="${LD-ld} -m elf64_sparc" ;;
5042
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5056
need_locks="$enable_libtool_lock"
5060
ac_cpp='$CPP $CPPFLAGS'
5061
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5062
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5063
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5064
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5065
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5066
# On Suns, sometimes $CPP names a directory.
5067
if test -n "$CPP" && test -d "$CPP"; then
5070
if test -z "$CPP"; then
5071
if test "${ac_cv_prog_CPP+set}" = set; then
5072
echo $ECHO_N "(cached) $ECHO_C" >&6
5074
# Double quotes because CPP needs to be expanded
5075
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5078
for ac_c_preproc_warn_flag in '' yes
5080
# Use a header file that comes with gcc, so configuring glibc
5081
# with a fresh cross-compiler works.
5082
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5083
# <limits.h> exists even on freestanding compilers.
5084
# On the NeXT, cc -E runs the code through the compiler's parser,
5085
# not just through cpp. "Syntax error" is here to catch this case.
5086
cat >conftest.$ac_ext <<_ACEOF
5089
cat confdefs.h >>conftest.$ac_ext
5090
cat >>conftest.$ac_ext <<_ACEOF
5091
/* end confdefs.h. */
5093
# include <limits.h>
5095
# include <assert.h>
5099
if { (ac_try="$ac_cpp conftest.$ac_ext"
5101
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5102
*) ac_try_echo=$ac_try;;
5104
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5105
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5107
grep -v '^ *+' conftest.er1 >conftest.err
5109
cat conftest.err >&5
5110
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5111
(exit $ac_status); } >/dev/null && {
5112
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5113
test ! -s conftest.err
5117
echo "$as_me: failed program was:" >&5
5118
sed 's/^/| /' conftest.$ac_ext >&5
5120
# Broken: fails on valid input.
5124
rm -f conftest.err conftest.$ac_ext
5126
# OK, works on sane cases. Now check whether nonexistent headers
5127
# can be detected and how.
5128
cat >conftest.$ac_ext <<_ACEOF
5131
cat confdefs.h >>conftest.$ac_ext
5132
cat >>conftest.$ac_ext <<_ACEOF
5133
/* end confdefs.h. */
5134
#include <ac_nonexistent.h>
5136
if { (ac_try="$ac_cpp conftest.$ac_ext"
5138
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5139
*) ac_try_echo=$ac_try;;
5141
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5142
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5144
grep -v '^ *+' conftest.er1 >conftest.err
5146
cat conftest.err >&5
5147
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5148
(exit $ac_status); } >/dev/null && {
5149
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5150
test ! -s conftest.err
5152
# Broken: success on invalid input.
5155
echo "$as_me: failed program was:" >&5
5156
sed 's/^/| /' conftest.$ac_ext >&5
5158
# Passes both tests.
5163
rm -f conftest.err conftest.$ac_ext
5166
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5167
rm -f conftest.err conftest.$ac_ext
5168
if $ac_preproc_ok; then
5180
{ echo "$as_me:$LINENO: result: $CPP" >&5
5181
echo "${ECHO_T}$CPP" >&6; }
5183
for ac_c_preproc_warn_flag in '' yes
5185
# Use a header file that comes with gcc, so configuring glibc
5186
# with a fresh cross-compiler works.
5187
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5188
# <limits.h> exists even on freestanding compilers.
5189
# On the NeXT, cc -E runs the code through the compiler's parser,
5190
# not just through cpp. "Syntax error" is here to catch this case.
5191
cat >conftest.$ac_ext <<_ACEOF
5194
cat confdefs.h >>conftest.$ac_ext
5195
cat >>conftest.$ac_ext <<_ACEOF
5196
/* end confdefs.h. */
5198
# include <limits.h>
5200
# include <assert.h>
5204
if { (ac_try="$ac_cpp conftest.$ac_ext"
5206
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5207
*) ac_try_echo=$ac_try;;
5209
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5210
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5212
grep -v '^ *+' conftest.er1 >conftest.err
5214
cat conftest.err >&5
5215
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5216
(exit $ac_status); } >/dev/null && {
5217
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5218
test ! -s conftest.err
5222
echo "$as_me: failed program was:" >&5
5223
sed 's/^/| /' conftest.$ac_ext >&5
5225
# Broken: fails on valid input.
5229
rm -f conftest.err conftest.$ac_ext
5231
# OK, works on sane cases. Now check whether nonexistent headers
5232
# can be detected and how.
5233
cat >conftest.$ac_ext <<_ACEOF
5236
cat confdefs.h >>conftest.$ac_ext
5237
cat >>conftest.$ac_ext <<_ACEOF
5238
/* end confdefs.h. */
5239
#include <ac_nonexistent.h>
5241
if { (ac_try="$ac_cpp conftest.$ac_ext"
5243
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5244
*) ac_try_echo=$ac_try;;
5246
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5247
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5249
grep -v '^ *+' conftest.er1 >conftest.err
5251
cat conftest.err >&5
5252
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5253
(exit $ac_status); } >/dev/null && {
5254
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5255
test ! -s conftest.err
5257
# Broken: success on invalid input.
5260
echo "$as_me: failed program was:" >&5
5261
sed 's/^/| /' conftest.$ac_ext >&5
5263
# Passes both tests.
5268
rm -f conftest.err conftest.$ac_ext
5271
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5272
rm -f conftest.err conftest.$ac_ext
5273
if $ac_preproc_ok; then
5276
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5277
See \`config.log' for more details." >&5
5278
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5279
See \`config.log' for more details." >&2;}
5280
{ (exit 1); exit 1; }; }
5284
ac_cpp='$CPP $CPPFLAGS'
5285
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5286
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5287
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5290
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5291
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5292
if test "${ac_cv_header_stdc+set}" = set; then
5293
echo $ECHO_N "(cached) $ECHO_C" >&6
5295
cat >conftest.$ac_ext <<_ACEOF
5298
cat confdefs.h >>conftest.$ac_ext
5299
cat >>conftest.$ac_ext <<_ACEOF
5300
/* end confdefs.h. */
5314
rm -f conftest.$ac_objext
5315
if { (ac_try="$ac_compile"
5317
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5318
*) ac_try_echo=$ac_try;;
5320
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5321
(eval "$ac_compile") 2>conftest.er1
5323
grep -v '^ *+' conftest.er1 >conftest.err
5325
cat conftest.err >&5
5326
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5327
(exit $ac_status); } && {
5328
test -z "$ac_c_werror_flag" ||
5329
test ! -s conftest.err
5330
} && test -s conftest.$ac_objext; then
5331
ac_cv_header_stdc=yes
5333
echo "$as_me: failed program was:" >&5
5334
sed 's/^/| /' conftest.$ac_ext >&5
5336
ac_cv_header_stdc=no
5339
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5341
if test $ac_cv_header_stdc = yes; then
5342
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5343
cat >conftest.$ac_ext <<_ACEOF
5346
cat confdefs.h >>conftest.$ac_ext
5347
cat >>conftest.$ac_ext <<_ACEOF
5348
/* end confdefs.h. */
5352
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5353
$EGREP "memchr" >/dev/null 2>&1; then
5356
ac_cv_header_stdc=no
5362
if test $ac_cv_header_stdc = yes; then
5363
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5364
cat >conftest.$ac_ext <<_ACEOF
5367
cat confdefs.h >>conftest.$ac_ext
5368
cat >>conftest.$ac_ext <<_ACEOF
5369
/* end confdefs.h. */
5373
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5374
$EGREP "free" >/dev/null 2>&1; then
5377
ac_cv_header_stdc=no
5383
if test $ac_cv_header_stdc = yes; then
5384
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5385
if test "$cross_compiling" = yes; then
5388
cat >conftest.$ac_ext <<_ACEOF
5391
cat confdefs.h >>conftest.$ac_ext
5392
cat >>conftest.$ac_ext <<_ACEOF
5393
/* end confdefs.h. */
5396
#if ((' ' & 0x0FF) == 0x020)
5397
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5398
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5400
# define ISLOWER(c) \
5401
(('a' <= (c) && (c) <= 'i') \
5402
|| ('j' <= (c) && (c) <= 'r') \
5403
|| ('s' <= (c) && (c) <= 'z'))
5404
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5407
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5412
for (i = 0; i < 256; i++)
5413
if (XOR (islower (i), ISLOWER (i))
5414
|| toupper (i) != TOUPPER (i))
5419
rm -f conftest$ac_exeext
5420
if { (ac_try="$ac_link"
5422
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5423
*) ac_try_echo=$ac_try;;
5425
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5426
(eval "$ac_link") 2>&5
5428
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5429
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5430
{ (case "(($ac_try" in
5431
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5432
*) ac_try_echo=$ac_try;;
5434
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5435
(eval "$ac_try") 2>&5
5437
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438
(exit $ac_status); }; }; then
5441
echo "$as_me: program exited with status $ac_status" >&5
5442
echo "$as_me: failed program was:" >&5
5443
sed 's/^/| /' conftest.$ac_ext >&5
5446
ac_cv_header_stdc=no
5448
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5454
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5455
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5456
if test $ac_cv_header_stdc = yes; then
5458
cat >>confdefs.h <<\_ACEOF
5459
#define STDC_HEADERS 1
5464
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5474
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5475
inttypes.h stdint.h unistd.h
5477
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5478
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5479
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5480
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5481
echo $ECHO_N "(cached) $ECHO_C" >&6
5483
cat >conftest.$ac_ext <<_ACEOF
5486
cat confdefs.h >>conftest.$ac_ext
5487
cat >>conftest.$ac_ext <<_ACEOF
5488
/* end confdefs.h. */
5489
$ac_includes_default
5491
#include <$ac_header>
5493
rm -f conftest.$ac_objext
5494
if { (ac_try="$ac_compile"
5496
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5497
*) ac_try_echo=$ac_try;;
5499
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5500
(eval "$ac_compile") 2>conftest.er1
5502
grep -v '^ *+' conftest.er1 >conftest.err
5504
cat conftest.err >&5
5505
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5506
(exit $ac_status); } && {
5507
test -z "$ac_c_werror_flag" ||
5508
test ! -s conftest.err
5509
} && test -s conftest.$ac_objext; then
5510
eval "$as_ac_Header=yes"
5512
echo "$as_me: failed program was:" >&5
5513
sed 's/^/| /' conftest.$ac_ext >&5
5515
eval "$as_ac_Header=no"
5518
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5520
ac_res=`eval echo '${'$as_ac_Header'}'`
5521
{ echo "$as_me:$LINENO: result: $ac_res" >&5
5522
echo "${ECHO_T}$ac_res" >&6; }
5523
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5524
cat >>confdefs.h <<_ACEOF
5525
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5534
for ac_header in dlfcn.h
5536
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5537
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5538
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5539
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5540
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5541
echo $ECHO_N "(cached) $ECHO_C" >&6
5543
ac_res=`eval echo '${'$as_ac_Header'}'`
5544
{ echo "$as_me:$LINENO: result: $ac_res" >&5
5545
echo "${ECHO_T}$ac_res" >&6; }
5547
# Is the header compilable?
5548
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5549
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5550
cat >conftest.$ac_ext <<_ACEOF
5553
cat confdefs.h >>conftest.$ac_ext
5554
cat >>conftest.$ac_ext <<_ACEOF
5555
/* end confdefs.h. */
5556
$ac_includes_default
5557
#include <$ac_header>
5559
rm -f conftest.$ac_objext
5560
if { (ac_try="$ac_compile"
5562
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5563
*) ac_try_echo=$ac_try;;
5565
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5566
(eval "$ac_compile") 2>conftest.er1
5568
grep -v '^ *+' conftest.er1 >conftest.err
5570
cat conftest.err >&5
5571
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5572
(exit $ac_status); } && {
5573
test -z "$ac_c_werror_flag" ||
5574
test ! -s conftest.err
5575
} && test -s conftest.$ac_objext; then
5576
ac_header_compiler=yes
5578
echo "$as_me: failed program was:" >&5
5579
sed 's/^/| /' conftest.$ac_ext >&5
5581
ac_header_compiler=no
5584
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5585
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5586
echo "${ECHO_T}$ac_header_compiler" >&6; }
5588
# Is the header present?
5589
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5590
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5591
cat >conftest.$ac_ext <<_ACEOF
5594
cat confdefs.h >>conftest.$ac_ext
5595
cat >>conftest.$ac_ext <<_ACEOF
5596
/* end confdefs.h. */
5597
#include <$ac_header>
5599
if { (ac_try="$ac_cpp conftest.$ac_ext"
5601
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5602
*) ac_try_echo=$ac_try;;
5604
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5605
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5607
grep -v '^ *+' conftest.er1 >conftest.err
5609
cat conftest.err >&5
5610
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611
(exit $ac_status); } >/dev/null && {
5612
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5613
test ! -s conftest.err
5615
ac_header_preproc=yes
5617
echo "$as_me: failed program was:" >&5
5618
sed 's/^/| /' conftest.$ac_ext >&5
5620
ac_header_preproc=no
5623
rm -f conftest.err conftest.$ac_ext
5624
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5625
echo "${ECHO_T}$ac_header_preproc" >&6; }
5627
# So? What about this header?
5628
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5630
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5631
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5632
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5633
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5634
ac_header_preproc=yes
5637
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5638
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5639
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5640
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5641
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5642
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5643
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5644
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5645
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5646
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5647
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5648
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5650
## --------------------------------- ##
5651
## Report this to BUG-REPORT-ADDRESS ##
5652
## --------------------------------- ##
5654
) | sed "s/^/$as_me: WARNING: /" >&2
5657
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5658
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5659
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5660
echo $ECHO_N "(cached) $ECHO_C" >&6
5662
eval "$as_ac_Header=\$ac_header_preproc"
5664
ac_res=`eval echo '${'$as_ac_Header'}'`
5665
{ echo "$as_me:$LINENO: result: $ac_res" >&5
5666
echo "${ECHO_T}$ac_res" >&6; }
5669
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5670
cat >>confdefs.h <<_ACEOF
5671
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5679
ac_cpp='$CXXCPP $CPPFLAGS'
5680
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5681
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5682
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5683
if test -z "$CXX"; then
5684
if test -n "$CCC"; then
5687
if test -n "$ac_tool_prefix"; then
5688
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5690
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5691
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5692
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5693
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5694
if test "${ac_cv_prog_CXX+set}" = set; then
5695
echo $ECHO_N "(cached) $ECHO_C" >&6
5697
if test -n "$CXX"; then
5698
ac_cv_prog_CXX="$CXX" # Let the user override the test.
5700
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5704
test -z "$as_dir" && as_dir=.
5705
for ac_exec_ext in '' $ac_executable_extensions; do
5706
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5707
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5708
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5718
if test -n "$CXX"; then
5719
{ echo "$as_me:$LINENO: result: $CXX" >&5
5720
echo "${ECHO_T}$CXX" >&6; }
5722
{ echo "$as_me:$LINENO: result: no" >&5
5723
echo "${ECHO_T}no" >&6; }
5727
test -n "$CXX" && break
5730
if test -z "$CXX"; then
5732
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5734
# Extract the first word of "$ac_prog", so it can be a program name with args.
5735
set dummy $ac_prog; ac_word=$2
5736
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5737
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5738
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5739
echo $ECHO_N "(cached) $ECHO_C" >&6
5741
if test -n "$ac_ct_CXX"; then
5742
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5744
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5748
test -z "$as_dir" && as_dir=.
5749
for ac_exec_ext in '' $ac_executable_extensions; do
5750
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5751
ac_cv_prog_ac_ct_CXX="$ac_prog"
5752
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5761
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5762
if test -n "$ac_ct_CXX"; then
5763
{ echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5764
echo "${ECHO_T}$ac_ct_CXX" >&6; }
5766
{ echo "$as_me:$LINENO: result: no" >&5
5767
echo "${ECHO_T}no" >&6; }
5771
test -n "$ac_ct_CXX" && break
5774
if test "x$ac_ct_CXX" = x; then
5777
case $cross_compiling:$ac_tool_warned in
5779
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5780
whose name does not start with the host triplet. If you think this
5781
configuration is useful to you, please write to autoconf@gnu.org." >&5
5782
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5783
whose name does not start with the host triplet. If you think this
5784
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5785
ac_tool_warned=yes ;;
5793
# Provide some information about the compiler.
5794
echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5795
ac_compiler=`set X $ac_compile; echo $2`
5796
{ (ac_try="$ac_compiler --version >&5"
5798
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5799
*) ac_try_echo=$ac_try;;
5801
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5802
(eval "$ac_compiler --version >&5") 2>&5
5804
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5805
(exit $ac_status); }
5806
{ (ac_try="$ac_compiler -v >&5"
5808
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5809
*) ac_try_echo=$ac_try;;
5811
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5812
(eval "$ac_compiler -v >&5") 2>&5
5814
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5815
(exit $ac_status); }
5816
{ (ac_try="$ac_compiler -V >&5"
5818
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5819
*) ac_try_echo=$ac_try;;
5821
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5822
(eval "$ac_compiler -V >&5") 2>&5
5824
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825
(exit $ac_status); }
5827
{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5828
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5829
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5830
echo $ECHO_N "(cached) $ECHO_C" >&6
5832
cat >conftest.$ac_ext <<_ACEOF
5835
cat confdefs.h >>conftest.$ac_ext
5836
cat >>conftest.$ac_ext <<_ACEOF
5837
/* end confdefs.h. */
5850
rm -f conftest.$ac_objext
5851
if { (ac_try="$ac_compile"
5853
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5854
*) ac_try_echo=$ac_try;;
5856
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5857
(eval "$ac_compile") 2>conftest.er1
5859
grep -v '^ *+' conftest.er1 >conftest.err
5861
cat conftest.err >&5
5862
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5863
(exit $ac_status); } && {
5864
test -z "$ac_cxx_werror_flag" ||
5865
test ! -s conftest.err
5866
} && test -s conftest.$ac_objext; then
5869
echo "$as_me: failed program was:" >&5
5870
sed 's/^/| /' conftest.$ac_ext >&5
5875
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5876
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5879
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5880
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5881
GXX=`test $ac_compiler_gnu = yes && echo yes`
5882
ac_test_CXXFLAGS=${CXXFLAGS+set}
5883
ac_save_CXXFLAGS=$CXXFLAGS
5884
{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5885
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5886
if test "${ac_cv_prog_cxx_g+set}" = set; then
5887
echo $ECHO_N "(cached) $ECHO_C" >&6
5889
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5890
ac_cxx_werror_flag=yes
5893
cat >conftest.$ac_ext <<_ACEOF
5896
cat confdefs.h >>conftest.$ac_ext
5897
cat >>conftest.$ac_ext <<_ACEOF
5898
/* end confdefs.h. */
5908
rm -f conftest.$ac_objext
5909
if { (ac_try="$ac_compile"
5911
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5912
*) ac_try_echo=$ac_try;;
5914
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5915
(eval "$ac_compile") 2>conftest.er1
5917
grep -v '^ *+' conftest.er1 >conftest.err
5919
cat conftest.err >&5
5920
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921
(exit $ac_status); } && {
5922
test -z "$ac_cxx_werror_flag" ||
5923
test ! -s conftest.err
5924
} && test -s conftest.$ac_objext; then
5925
ac_cv_prog_cxx_g=yes
5927
echo "$as_me: failed program was:" >&5
5928
sed 's/^/| /' conftest.$ac_ext >&5
5931
cat >conftest.$ac_ext <<_ACEOF
5934
cat confdefs.h >>conftest.$ac_ext
5935
cat >>conftest.$ac_ext <<_ACEOF
5936
/* end confdefs.h. */
5946
rm -f conftest.$ac_objext
5947
if { (ac_try="$ac_compile"
5949
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5950
*) ac_try_echo=$ac_try;;
5952
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5953
(eval "$ac_compile") 2>conftest.er1
5955
grep -v '^ *+' conftest.er1 >conftest.err
5957
cat conftest.err >&5
5958
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5959
(exit $ac_status); } && {
5960
test -z "$ac_cxx_werror_flag" ||
5961
test ! -s conftest.err
5962
} && test -s conftest.$ac_objext; then
5965
echo "$as_me: failed program was:" >&5
5966
sed 's/^/| /' conftest.$ac_ext >&5
5968
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5970
cat >conftest.$ac_ext <<_ACEOF
5973
cat confdefs.h >>conftest.$ac_ext
5974
cat >>conftest.$ac_ext <<_ACEOF
5975
/* end confdefs.h. */
5985
rm -f conftest.$ac_objext
5986
if { (ac_try="$ac_compile"
5988
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5989
*) ac_try_echo=$ac_try;;
5991
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5992
(eval "$ac_compile") 2>conftest.er1
5994
grep -v '^ *+' conftest.er1 >conftest.err
5996
cat conftest.err >&5
5997
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998
(exit $ac_status); } && {
5999
test -z "$ac_cxx_werror_flag" ||
6000
test ! -s conftest.err
6001
} && test -s conftest.$ac_objext; then
6002
ac_cv_prog_cxx_g=yes
6004
echo "$as_me: failed program was:" >&5
6005
sed 's/^/| /' conftest.$ac_ext >&5
6010
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6013
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6016
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6017
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6019
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6020
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6021
if test "$ac_test_CXXFLAGS" = set; then
6022
CXXFLAGS=$ac_save_CXXFLAGS
6023
elif test $ac_cv_prog_cxx_g = yes; then
6024
if test "$GXX" = yes; then
6030
if test "$GXX" = yes; then
6037
ac_cpp='$CXXCPP $CPPFLAGS'
6038
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6039
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6040
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6042
depcc="$CXX" am_compiler_list=
6044
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6045
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
6046
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6047
echo $ECHO_N "(cached) $ECHO_C" >&6
6049
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6050
# We make a subdir and do the tests there. Otherwise we can end up
6051
# making bogus files that we don't know about and never remove. For
6052
# instance it was reported that on HP-UX the gcc test will end up
6053
# making a dummy file named `D' -- because `-MD' means `put the output
6056
# Copy depcomp to subdir because otherwise we won't find it if we're
6057
# using a relative directory.
6058
cp "$am_depcomp" conftest.dir
6060
# We will build objects and dependencies in a subdirectory because
6061
# it helps to detect inapplicable dependency modes. For instance
6062
# both Tru64's cc and ICC support -MD to output dependencies as a
6063
# side effect of compilation, but ICC will put the dependencies in
6064
# the current directory while Tru64 will put them in the object
6068
am_cv_CXX_dependencies_compiler_type=none
6069
if test "$am_compiler_list" = ""; then
6070
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6072
for depmode in $am_compiler_list; do
6073
# Setup a source with many dependencies, because some compilers
6074
# like to wrap large dependency lists on column 80 (with \), and
6075
# we should not choose a depcomp mode which is confused by this.
6077
# We need to recreate these files for each test, as the compiler may
6078
# overwrite some of them when testing with obscure command lines.
6079
# This happens at least with the AIX C compiler.
6081
for i in 1 2 3 4 5 6; do
6082
echo '#include "conftst'$i'.h"' >> sub/conftest.c
6083
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6084
# Solaris 8's {/usr,}/bin/sh.
6085
touch sub/conftst$i.h
6087
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6091
# after this tag, mechanisms are not by side-effect, so they'll
6092
# only be used when explicitly requested
6093
if test "x$enable_dependency_tracking" = xyes; then
6101
# We check with `-c' and `-o' for the sake of the "dashmstdout"
6102
# mode. It turns out that the SunPro C++ compiler does not properly
6103
# handle `-M -o', and we need to detect this.
6104
if depmode=$depmode \
6105
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6106
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6107
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6108
>/dev/null 2>conftest.err &&
6109
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6110
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6111
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6112
# icc doesn't choke on unknown options, it will just issue warnings
6113
# or remarks (even with -Werror). So we grep stderr for any message
6114
# that says an option was ignored or not supported.
6115
# When given -MP, icc 7.0 and 7.1 complain thusly:
6116
# icc: Command line warning: ignoring option '-M'; no argument required
6117
# The diagnosis changed in icc 8.0:
6118
# icc: Command line remark: option '-MP' not supported
6119
if (grep 'ignoring option' conftest.err ||
6120
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6121
am_cv_CXX_dependencies_compiler_type=$depmode
6130
am_cv_CXX_dependencies_compiler_type=none
6134
{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6135
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
6136
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6141
test "x$enable_dependency_tracking" != xno \
6142
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6143
am__fastdepCXX_TRUE=
6144
am__fastdepCXX_FALSE='#'
6146
am__fastdepCXX_TRUE='#'
6147
am__fastdepCXX_FALSE=
6153
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6154
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6155
(test "X$CXX" != "Xg++"))) ; then
6157
ac_cpp='$CXXCPP $CPPFLAGS'
6158
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6159
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6160
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6161
{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6162
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6163
if test -z "$CXXCPP"; then
6164
if test "${ac_cv_prog_CXXCPP+set}" = set; then
6165
echo $ECHO_N "(cached) $ECHO_C" >&6
6167
# Double quotes because CXXCPP needs to be expanded
6168
for CXXCPP in "$CXX -E" "/lib/cpp"
6171
for ac_cxx_preproc_warn_flag in '' yes
6173
# Use a header file that comes with gcc, so configuring glibc
6174
# with a fresh cross-compiler works.
6175
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6176
# <limits.h> exists even on freestanding compilers.
6177
# On the NeXT, cc -E runs the code through the compiler's parser,
6178
# not just through cpp. "Syntax error" is here to catch this case.
6179
cat >conftest.$ac_ext <<_ACEOF
6182
cat confdefs.h >>conftest.$ac_ext
6183
cat >>conftest.$ac_ext <<_ACEOF
6184
/* end confdefs.h. */
6186
# include <limits.h>
6188
# include <assert.h>
6192
if { (ac_try="$ac_cpp conftest.$ac_ext"
6194
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6195
*) ac_try_echo=$ac_try;;
6197
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6198
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6200
grep -v '^ *+' conftest.er1 >conftest.err
6202
cat conftest.err >&5
6203
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204
(exit $ac_status); } >/dev/null && {
6205
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6206
test ! -s conftest.err
6210
echo "$as_me: failed program was:" >&5
6211
sed 's/^/| /' conftest.$ac_ext >&5
6213
# Broken: fails on valid input.
6217
rm -f conftest.err conftest.$ac_ext
6219
# OK, works on sane cases. Now check whether nonexistent headers
6220
# can be detected and how.
6221
cat >conftest.$ac_ext <<_ACEOF
6224
cat confdefs.h >>conftest.$ac_ext
6225
cat >>conftest.$ac_ext <<_ACEOF
6226
/* end confdefs.h. */
6227
#include <ac_nonexistent.h>
6229
if { (ac_try="$ac_cpp conftest.$ac_ext"
6231
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6232
*) ac_try_echo=$ac_try;;
6234
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6235
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6237
grep -v '^ *+' conftest.er1 >conftest.err
6239
cat conftest.err >&5
6240
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6241
(exit $ac_status); } >/dev/null && {
6242
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6243
test ! -s conftest.err
6245
# Broken: success on invalid input.
6248
echo "$as_me: failed program was:" >&5
6249
sed 's/^/| /' conftest.$ac_ext >&5
6251
# Passes both tests.
6256
rm -f conftest.err conftest.$ac_ext
6259
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6260
rm -f conftest.err conftest.$ac_ext
6261
if $ac_preproc_ok; then
6266
ac_cv_prog_CXXCPP=$CXXCPP
6269
CXXCPP=$ac_cv_prog_CXXCPP
6271
ac_cv_prog_CXXCPP=$CXXCPP
6273
{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
6274
echo "${ECHO_T}$CXXCPP" >&6; }
6276
for ac_cxx_preproc_warn_flag in '' yes
6278
# Use a header file that comes with gcc, so configuring glibc
6279
# with a fresh cross-compiler works.
6280
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6281
# <limits.h> exists even on freestanding compilers.
6282
# On the NeXT, cc -E runs the code through the compiler's parser,
6283
# not just through cpp. "Syntax error" is here to catch this case.
6284
cat >conftest.$ac_ext <<_ACEOF
6287
cat confdefs.h >>conftest.$ac_ext
6288
cat >>conftest.$ac_ext <<_ACEOF
6289
/* end confdefs.h. */
6291
# include <limits.h>
6293
# include <assert.h>
6297
if { (ac_try="$ac_cpp conftest.$ac_ext"
6299
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6300
*) ac_try_echo=$ac_try;;
6302
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6303
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6305
grep -v '^ *+' conftest.er1 >conftest.err
6307
cat conftest.err >&5
6308
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6309
(exit $ac_status); } >/dev/null && {
6310
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6311
test ! -s conftest.err
6315
echo "$as_me: failed program was:" >&5
6316
sed 's/^/| /' conftest.$ac_ext >&5
6318
# Broken: fails on valid input.
6322
rm -f conftest.err conftest.$ac_ext
6324
# OK, works on sane cases. Now check whether nonexistent headers
6325
# can be detected and how.
6326
cat >conftest.$ac_ext <<_ACEOF
6329
cat confdefs.h >>conftest.$ac_ext
6330
cat >>conftest.$ac_ext <<_ACEOF
6331
/* end confdefs.h. */
6332
#include <ac_nonexistent.h>
6334
if { (ac_try="$ac_cpp conftest.$ac_ext"
6336
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6337
*) ac_try_echo=$ac_try;;
6339
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6340
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6342
grep -v '^ *+' conftest.er1 >conftest.err
6344
cat conftest.err >&5
6345
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6346
(exit $ac_status); } >/dev/null && {
6347
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6348
test ! -s conftest.err
6350
# Broken: success on invalid input.
6353
echo "$as_me: failed program was:" >&5
6354
sed 's/^/| /' conftest.$ac_ext >&5
6356
# Passes both tests.
6361
rm -f conftest.err conftest.$ac_ext
6364
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6365
rm -f conftest.err conftest.$ac_ext
6366
if $ac_preproc_ok; then
6369
{ { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6370
See \`config.log' for more details." >&5
6371
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6372
See \`config.log' for more details." >&2;}
6373
{ (exit 1); exit 1; }; }
6377
ac_cpp='$CXXCPP $CPPFLAGS'
6378
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6379
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6380
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6386
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6387
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6388
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6389
if test -n "$ac_tool_prefix"; then
6390
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
6392
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6393
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6394
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6395
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6396
if test "${ac_cv_prog_F77+set}" = set; then
6397
echo $ECHO_N "(cached) $ECHO_C" >&6
6399
if test -n "$F77"; then
6400
ac_cv_prog_F77="$F77" # Let the user override the test.
6402
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6406
test -z "$as_dir" && as_dir=.
6407
for ac_exec_ext in '' $ac_executable_extensions; do
6408
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6409
ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6410
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6420
if test -n "$F77"; then
6421
{ echo "$as_me:$LINENO: result: $F77" >&5
6422
echo "${ECHO_T}$F77" >&6; }
6424
{ echo "$as_me:$LINENO: result: no" >&5
6425
echo "${ECHO_T}no" >&6; }
6429
test -n "$F77" && break
6432
if test -z "$F77"; then
6434
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
6436
# Extract the first word of "$ac_prog", so it can be a program name with args.
6437
set dummy $ac_prog; ac_word=$2
6438
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6439
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6440
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6441
echo $ECHO_N "(cached) $ECHO_C" >&6
6443
if test -n "$ac_ct_F77"; then
6444
ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6446
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6450
test -z "$as_dir" && as_dir=.
6451
for ac_exec_ext in '' $ac_executable_extensions; do
6452
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6453
ac_cv_prog_ac_ct_F77="$ac_prog"
6454
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6463
ac_ct_F77=$ac_cv_prog_ac_ct_F77
6464
if test -n "$ac_ct_F77"; then
6465
{ echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6466
echo "${ECHO_T}$ac_ct_F77" >&6; }
6468
{ echo "$as_me:$LINENO: result: no" >&5
6469
echo "${ECHO_T}no" >&6; }
6473
test -n "$ac_ct_F77" && break
6476
if test "x$ac_ct_F77" = x; then
6479
case $cross_compiling:$ac_tool_warned in
6481
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6482
whose name does not start with the host triplet. If you think this
6483
configuration is useful to you, please write to autoconf@gnu.org." >&5
6484
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6485
whose name does not start with the host triplet. If you think this
6486
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6487
ac_tool_warned=yes ;;
6494
# Provide some information about the compiler.
6495
echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6496
ac_compiler=`set X $ac_compile; echo $2`
6497
{ (ac_try="$ac_compiler --version >&5"
6499
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6500
*) ac_try_echo=$ac_try;;
6502
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6503
(eval "$ac_compiler --version >&5") 2>&5
6505
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6506
(exit $ac_status); }
6507
{ (ac_try="$ac_compiler -v >&5"
6509
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6510
*) ac_try_echo=$ac_try;;
6512
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6513
(eval "$ac_compiler -v >&5") 2>&5
6515
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6516
(exit $ac_status); }
6517
{ (ac_try="$ac_compiler -V >&5"
6519
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6520
*) ac_try_echo=$ac_try;;
6522
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6523
(eval "$ac_compiler -V >&5") 2>&5
6525
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6526
(exit $ac_status); }
6529
# If we don't use `.F' as extension, the preprocessor is not run on the
6530
# input file. (Note that this only needs to work for GNU compilers.)
6533
{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6534
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6535
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6536
echo $ECHO_N "(cached) $ECHO_C" >&6
6538
cat >conftest.$ac_ext <<_ACEOF
6546
rm -f conftest.$ac_objext
6547
if { (ac_try="$ac_compile"
6549
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6550
*) ac_try_echo=$ac_try;;
6552
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6553
(eval "$ac_compile") 2>conftest.er1
6555
grep -v '^ *+' conftest.er1 >conftest.err
6557
cat conftest.err >&5
6558
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6559
(exit $ac_status); } && {
6560
test -z "$ac_f77_werror_flag" ||
6561
test ! -s conftest.err
6562
} && test -s conftest.$ac_objext; then
6565
echo "$as_me: failed program was:" >&5
6566
sed 's/^/| /' conftest.$ac_ext >&5
6571
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6572
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6575
{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6576
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6578
ac_test_FFLAGS=${FFLAGS+set}
6579
ac_save_FFLAGS=$FFLAGS
6581
{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6582
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6583
if test "${ac_cv_prog_f77_g+set}" = set; then
6584
echo $ECHO_N "(cached) $ECHO_C" >&6
6587
cat >conftest.$ac_ext <<_ACEOF
6592
rm -f conftest.$ac_objext
6593
if { (ac_try="$ac_compile"
6595
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6596
*) ac_try_echo=$ac_try;;
6598
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6599
(eval "$ac_compile") 2>conftest.er1
6601
grep -v '^ *+' conftest.er1 >conftest.err
6603
cat conftest.err >&5
6604
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6605
(exit $ac_status); } && {
6606
test -z "$ac_f77_werror_flag" ||
6607
test ! -s conftest.err
6608
} && test -s conftest.$ac_objext; then
6609
ac_cv_prog_f77_g=yes
6611
echo "$as_me: failed program was:" >&5
6612
sed 's/^/| /' conftest.$ac_ext >&5
6617
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6620
{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6621
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6622
if test "$ac_test_FFLAGS" = set; then
6623
FFLAGS=$ac_save_FFLAGS
6624
elif test $ac_cv_prog_f77_g = yes; then
6625
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6631
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6638
G77=`test $ac_compiler_gnu = yes && echo yes`
6640
ac_cpp='$CPP $CPPFLAGS'
6641
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6642
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6643
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6647
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6648
# find the maximum length of command line arguments
6649
{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6650
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6651
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6652
echo $ECHO_N "(cached) $ECHO_C" >&6
6659
# On DJGPP, this test can blow up pretty badly due to problems in libc
6660
# (any single argument exceeding 2000 bytes causes a buffer overrun
6661
# during glob expansion). Even if it were fixed, the result of this
6662
# check would be larger than it should be.
6663
lt_cv_sys_max_cmd_len=12288; # 12K is about right
6667
# Under GNU Hurd, this test is not required because there is
6668
# no limit to the length of command line arguments.
6669
# Libtool will interpret -1 as no limit whatsoever
6670
lt_cv_sys_max_cmd_len=-1;
6674
# On Win9x/ME, this test blows up -- it succeeds, but takes
6675
# about 5 minutes as the teststring grows exponentially.
6676
# Worse, since 9x/ME are not pre-emptively multitasking,
6677
# you end up with a "frozen" computer, even though with patience
6678
# the test eventually succeeds (with a max line length of 256k).
6679
# Instead, let's just punt: use the minimum linelength reported by
6680
# all of the supported platforms: 8192 (on NT/2K/XP).
6681
lt_cv_sys_max_cmd_len=8192;
6685
# On AmigaOS with pdksh, this test takes hours, literally.
6686
# So we just punt and use a minimum line length of 8192.
6687
lt_cv_sys_max_cmd_len=8192;
6690
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6691
# This has been around since 386BSD, at least. Likely further.
6692
if test -x /sbin/sysctl; then
6693
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6694
elif test -x /usr/sbin/sysctl; then
6695
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6697
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6699
# And add a safety zone
6700
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6701
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6705
# We know the value 262144 and hardcode it with a safety zone (like BSD)
6706
lt_cv_sys_max_cmd_len=196608
6710
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6711
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6712
# nice to cause kernel panics so lets avoid the loop below.
6713
# First set a reasonable default.
6714
lt_cv_sys_max_cmd_len=16384
6716
if test -x /sbin/sysconfig; then
6717
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6718
*1*) lt_cv_sys_max_cmd_len=-1 ;;
6723
lt_cv_sys_max_cmd_len=102400
6725
sysv5* | sco5v6* | sysv4.2uw2*)
6726
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6727
if test -n "$kargmax"; then
6728
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6730
lt_cv_sys_max_cmd_len=32768
6734
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6735
if test -n "$lt_cv_sys_max_cmd_len"; then
6736
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6737
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6739
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6740
while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6741
= "XX$teststring") >/dev/null 2>&1 &&
6742
new_result=`expr "X$teststring" : ".*" 2>&1` &&
6743
lt_cv_sys_max_cmd_len=$new_result &&
6744
test $i != 17 # 1/2 MB should be enough
6747
teststring=$teststring$teststring
6750
# Add a significant safety factor because C++ compilers can tack on massive
6751
# amounts of additional arguments before passing them to the linker.
6752
# It appears as though 1/2 is a usable value.
6753
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6760
if test -n $lt_cv_sys_max_cmd_len ; then
6761
{ echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6762
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6764
{ echo "$as_me:$LINENO: result: none" >&5
6765
echo "${ECHO_T}none" >&6; }
6772
# Check for command to grab the raw symbol name followed by C symbol from nm.
6773
{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6774
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6775
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6776
echo $ECHO_N "(cached) $ECHO_C" >&6
6779
# These are sane defaults that work on at least a few old systems.
6780
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6782
# Character class describing NM global symbol codes.
6783
symcode='[BCDEGRST]'
6785
# Regexp to match symbols that can be accessed directly from C.
6786
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6788
# Transform an extracted symbol line into a proper C declaration
6789
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6791
# Transform an extracted symbol line into symbol name and symbol address
6792
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'"
6794
# Define system-specific variables.
6799
cygwin* | mingw* | pw32*)
6800
symcode='[ABCDGISTW]'
6802
hpux*) # Its linker distinguishes data from code symbols
6803
if test "$host_cpu" = ia64; then
6804
symcode='[ABCDEGRST]'
6806
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6807
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'"
6809
linux* | k*bsd*-gnu)
6810
if test "$host_cpu" = ia64; then
6811
symcode='[ABCDGIRSTW]'
6812
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6813
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'"
6817
symcode='[BCDEGRST]'
6820
symcode='[BCDEGQRST]'
6831
sysv5* | sco5v6* | unixware* | OpenUNIX*)
6839
# Handle CRLF in mingw tool chain
6843
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6847
# If we're using GNU nm, then use its standard symbol codes.
6848
case `$NM -V 2>&1` in
6849
*GNU* | *'with BFD'*)
6850
symcode='[ABCDGIRSTW]' ;;
6853
# Try without a prefix undercore, then with it.
6854
for ac_symprfx in "" "_"; do
6856
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6857
symxfrm="\\1 $ac_symprfx\\2 \\2"
6859
# Write the raw and C identifiers.
6860
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6862
# Check to see that the pipe works correctly.
6866
cat > conftest.$ac_ext <<EOF
6871
void nm_test_func(){}
6875
int main(){nm_test_var='a';nm_test_func();return(0);}
6878
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6879
(eval $ac_compile) 2>&5
6881
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6882
(exit $ac_status); }; then
6883
# Now try to grab the symbols.
6885
if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6886
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6888
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6889
(exit $ac_status); } && test -s "$nlist"; then
6890
# Try sorting and uniquifying the output.
6891
if sort "$nlist" | uniq > "$nlist"T; then
6892
mv -f "$nlist"T "$nlist"
6897
# Make sure that we snagged all the symbols we need.
6898
if grep ' nm_test_var$' "$nlist" >/dev/null; then
6899
if grep ' nm_test_func$' "$nlist" >/dev/null; then
6900
cat <<EOF > conftest.$ac_ext
6906
# Now generate the symbol file.
6907
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6909
cat <<EOF >> conftest.$ac_ext
6910
#if defined (__STDC__) && __STDC__
6911
# define lt_ptr_t void *
6913
# define lt_ptr_t char *
6917
/* The mapping between symbol names and symbols. */
6922
lt_preloaded_symbols[] =
6925
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6926
cat <<\EOF >> conftest.$ac_ext
6934
# Now try linking the two files.
6935
mv conftest.$ac_objext conftstm.$ac_objext
6936
lt_save_LIBS="$LIBS"
6937
lt_save_CFLAGS="$CFLAGS"
6938
LIBS="conftstm.$ac_objext"
6939
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6940
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6941
(eval $ac_link) 2>&5
6943
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6944
(exit $ac_status); } && test -s conftest${ac_exeext}; then
6947
LIBS="$lt_save_LIBS"
6948
CFLAGS="$lt_save_CFLAGS"
6950
echo "cannot find nm_test_func in $nlist" >&5
6953
echo "cannot find nm_test_var in $nlist" >&5
6956
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6959
echo "$progname: failed program was:" >&5
6960
cat conftest.$ac_ext >&5
6962
rm -rf conftest* conftst*
6964
# Do not use the global_symbol_pipe unless it works.
6965
if test "$pipe_works" = yes; then
6968
lt_cv_sys_global_symbol_pipe=
6974
if test -z "$lt_cv_sys_global_symbol_pipe"; then
6975
lt_cv_sys_global_symbol_to_cdecl=
6977
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6978
{ echo "$as_me:$LINENO: result: failed" >&5
6979
echo "${ECHO_T}failed" >&6; }
6981
{ echo "$as_me:$LINENO: result: ok" >&5
6982
echo "${ECHO_T}ok" >&6; }
6985
{ echo "$as_me:$LINENO: checking for objdir" >&5
6986
echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6987
if test "${lt_cv_objdir+set}" = set; then
6988
echo $ECHO_N "(cached) $ECHO_C" >&6
6990
rm -f .libs 2>/dev/null
6991
mkdir .libs 2>/dev/null
6992
if test -d .libs; then
6995
# MS-DOS does not allow filenames that begin with a dot.
6998
rmdir .libs 2>/dev/null
7000
{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7001
echo "${ECHO_T}$lt_cv_objdir" >&6; }
7002
objdir=$lt_cv_objdir
7010
# AIX sometimes has problems with the GCC collect2 program. For some
7011
# reason, if we set the COLLECT_NAMES environment variable, the problems
7012
# vanish in a puff of smoke.
7013
if test "X${COLLECT_NAMES+set}" != Xset; then
7015
export COLLECT_NAMES
7020
# Sed substitution that helps us do robust quoting. It backslashifies
7021
# metacharacters that are still active within double-quoted strings.
7022
Xsed='sed -e 1s/^X//'
7023
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7025
# Same as above, but do not quote variable references.
7026
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7028
# Sed substitution to delay expansion of an escaped shell variable in a
7029
# double_quote_subst'ed string.
7030
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7032
# Sed substitution to avoid accidental globbing in evaled expressions
7033
no_glob_subst='s/\*/\\\*/g'
7039
default_ofile=libtool
7040
can_build_shared=yes
7042
# All known linkers require a `.a' archive for static linking (except MSVC,
7043
# which needs '.lib').
7045
ltmain="$ac_aux_dir/ltmain.sh"
7046
ofile="$default_ofile"
7047
with_gnu_ld="$lt_cv_prog_gnu_ld"
7049
if test -n "$ac_tool_prefix"; then
7050
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7051
set dummy ${ac_tool_prefix}ar; ac_word=$2
7052
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7053
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7054
if test "${ac_cv_prog_AR+set}" = set; then
7055
echo $ECHO_N "(cached) $ECHO_C" >&6
7057
if test -n "$AR"; then
7058
ac_cv_prog_AR="$AR" # Let the user override the test.
7060
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7064
test -z "$as_dir" && as_dir=.
7065
for ac_exec_ext in '' $ac_executable_extensions; do
7066
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7067
ac_cv_prog_AR="${ac_tool_prefix}ar"
7068
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7078
if test -n "$AR"; then
7079
{ echo "$as_me:$LINENO: result: $AR" >&5
7080
echo "${ECHO_T}$AR" >&6; }
7082
{ echo "$as_me:$LINENO: result: no" >&5
7083
echo "${ECHO_T}no" >&6; }
7088
if test -z "$ac_cv_prog_AR"; then
7090
# Extract the first word of "ar", so it can be a program name with args.
7091
set dummy ar; ac_word=$2
7092
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7093
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7094
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7095
echo $ECHO_N "(cached) $ECHO_C" >&6
7097
if test -n "$ac_ct_AR"; then
7098
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7100
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7104
test -z "$as_dir" && as_dir=.
7105
for ac_exec_ext in '' $ac_executable_extensions; do
7106
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7107
ac_cv_prog_ac_ct_AR="ar"
7108
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7117
ac_ct_AR=$ac_cv_prog_ac_ct_AR
7118
if test -n "$ac_ct_AR"; then
7119
{ echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7120
echo "${ECHO_T}$ac_ct_AR" >&6; }
7122
{ echo "$as_me:$LINENO: result: no" >&5
7123
echo "${ECHO_T}no" >&6; }
7126
if test "x$ac_ct_AR" = x; then
7129
case $cross_compiling:$ac_tool_warned in
7131
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7132
whose name does not start with the host triplet. If you think this
7133
configuration is useful to you, please write to autoconf@gnu.org." >&5
7134
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7135
whose name does not start with the host triplet. If you think this
7136
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7137
ac_tool_warned=yes ;;
7145
if test -n "$ac_tool_prefix"; then
7146
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7147
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7148
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7149
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7150
if test "${ac_cv_prog_RANLIB+set}" = set; then
7151
echo $ECHO_N "(cached) $ECHO_C" >&6
7153
if test -n "$RANLIB"; then
7154
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7156
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7160
test -z "$as_dir" && as_dir=.
7161
for ac_exec_ext in '' $ac_executable_extensions; do
7162
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7163
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7164
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7173
RANLIB=$ac_cv_prog_RANLIB
7174
if test -n "$RANLIB"; then
7175
{ echo "$as_me:$LINENO: result: $RANLIB" >&5
7176
echo "${ECHO_T}$RANLIB" >&6; }
7178
{ echo "$as_me:$LINENO: result: no" >&5
7179
echo "${ECHO_T}no" >&6; }
7184
if test -z "$ac_cv_prog_RANLIB"; then
7185
ac_ct_RANLIB=$RANLIB
7186
# Extract the first word of "ranlib", so it can be a program name with args.
7187
set dummy ranlib; ac_word=$2
7188
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7189
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7190
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7191
echo $ECHO_N "(cached) $ECHO_C" >&6
7193
if test -n "$ac_ct_RANLIB"; then
7194
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7196
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7200
test -z "$as_dir" && as_dir=.
7201
for ac_exec_ext in '' $ac_executable_extensions; do
7202
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7203
ac_cv_prog_ac_ct_RANLIB="ranlib"
7204
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7213
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7214
if test -n "$ac_ct_RANLIB"; then
7215
{ echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7216
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7218
{ echo "$as_me:$LINENO: result: no" >&5
7219
echo "${ECHO_T}no" >&6; }
7222
if test "x$ac_ct_RANLIB" = x; then
7225
case $cross_compiling:$ac_tool_warned in
7227
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7228
whose name does not start with the host triplet. If you think this
7229
configuration is useful to you, please write to autoconf@gnu.org." >&5
7230
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7231
whose name does not start with the host triplet. If you think this
7232
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7233
ac_tool_warned=yes ;;
7235
RANLIB=$ac_ct_RANLIB
7238
RANLIB="$ac_cv_prog_RANLIB"
7241
if test -n "$ac_tool_prefix"; then
7242
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7243
set dummy ${ac_tool_prefix}strip; ac_word=$2
7244
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7245
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7246
if test "${ac_cv_prog_STRIP+set}" = set; then
7247
echo $ECHO_N "(cached) $ECHO_C" >&6
7249
if test -n "$STRIP"; then
7250
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7252
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7256
test -z "$as_dir" && as_dir=.
7257
for ac_exec_ext in '' $ac_executable_extensions; do
7258
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7259
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7260
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7269
STRIP=$ac_cv_prog_STRIP
7270
if test -n "$STRIP"; then
7271
{ echo "$as_me:$LINENO: result: $STRIP" >&5
7272
echo "${ECHO_T}$STRIP" >&6; }
7274
{ echo "$as_me:$LINENO: result: no" >&5
7275
echo "${ECHO_T}no" >&6; }
7280
if test -z "$ac_cv_prog_STRIP"; then
7282
# Extract the first word of "strip", so it can be a program name with args.
7283
set dummy strip; ac_word=$2
7284
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7285
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7286
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7287
echo $ECHO_N "(cached) $ECHO_C" >&6
7289
if test -n "$ac_ct_STRIP"; then
7290
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7292
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7296
test -z "$as_dir" && as_dir=.
7297
for ac_exec_ext in '' $ac_executable_extensions; do
7298
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7299
ac_cv_prog_ac_ct_STRIP="strip"
7300
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7309
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7310
if test -n "$ac_ct_STRIP"; then
7311
{ echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7312
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7314
{ echo "$as_me:$LINENO: result: no" >&5
7315
echo "${ECHO_T}no" >&6; }
7318
if test "x$ac_ct_STRIP" = x; then
7321
case $cross_compiling:$ac_tool_warned in
7323
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7324
whose name does not start with the host triplet. If you think this
7325
configuration is useful to you, please write to autoconf@gnu.org." >&5
7326
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7327
whose name does not start with the host triplet. If you think this
7328
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7329
ac_tool_warned=yes ;;
7334
STRIP="$ac_cv_prog_STRIP"
7339
old_CFLAGS="$CFLAGS"
7341
# Set sane defaults for various variables
7342
test -z "$AR" && AR=ar
7343
test -z "$AR_FLAGS" && AR_FLAGS=cru
7344
test -z "$AS" && AS=as
7345
test -z "$CC" && CC=cc
7346
test -z "$LTCC" && LTCC=$CC
7347
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7348
test -z "$DLLTOOL" && DLLTOOL=dlltool
7349
test -z "$LD" && LD=ld
7350
test -z "$LN_S" && LN_S="ln -s"
7351
test -z "$MAGIC_CMD" && MAGIC_CMD=file
7352
test -z "$NM" && NM=nm
7353
test -z "$SED" && SED=sed
7354
test -z "$OBJDUMP" && OBJDUMP=objdump
7355
test -z "$RANLIB" && RANLIB=:
7356
test -z "$STRIP" && STRIP=:
7357
test -z "$ac_objext" && ac_objext=o
7359
# Determine commands to create old-style static archives.
7360
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7361
old_postinstall_cmds='chmod 644 $oldlib'
7362
old_postuninstall_cmds=
7364
if test -n "$RANLIB"; then
7367
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7370
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7373
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7376
for cc_temp in $compiler""; do
7378
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7379
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7384
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7387
# Only perform the check for file, if the check method requires it
7388
case $deplibs_check_method in
7390
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7391
{ echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7392
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7393
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7394
echo $ECHO_N "(cached) $ECHO_C" >&6
7398
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7401
lt_save_MAGIC_CMD="$MAGIC_CMD"
7402
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7403
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7404
for ac_dir in $ac_dummy; do
7406
test -z "$ac_dir" && ac_dir=.
7407
if test -f $ac_dir/${ac_tool_prefix}file; then
7408
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7409
if test -n "$file_magic_test_file"; then
7410
case $deplibs_check_method in
7412
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7413
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7414
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7415
$EGREP "$file_magic_regex" > /dev/null; then
7420
*** Warning: the command libtool uses to detect shared libraries,
7421
*** $file_magic_cmd, produces output that libtool cannot recognize.
7422
*** The result is that libtool may fail to recognize shared libraries
7423
*** as such. This will affect the creation of libtool libraries that
7424
*** depend on shared libraries, but programs linked with such libtool
7425
*** libraries will work regardless of this problem. Nevertheless, you
7426
*** may want to report the problem to your system manager and/or to
7427
*** bug-libtool@gnu.org
7437
MAGIC_CMD="$lt_save_MAGIC_CMD"
7442
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7443
if test -n "$MAGIC_CMD"; then
7444
{ echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7445
echo "${ECHO_T}$MAGIC_CMD" >&6; }
7447
{ echo "$as_me:$LINENO: result: no" >&5
7448
echo "${ECHO_T}no" >&6; }
7451
if test -z "$lt_cv_path_MAGIC_CMD"; then
7452
if test -n "$ac_tool_prefix"; then
7453
{ echo "$as_me:$LINENO: checking for file" >&5
7454
echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7455
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7456
echo $ECHO_N "(cached) $ECHO_C" >&6
7460
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7463
lt_save_MAGIC_CMD="$MAGIC_CMD"
7464
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7465
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7466
for ac_dir in $ac_dummy; do
7468
test -z "$ac_dir" && ac_dir=.
7469
if test -f $ac_dir/file; then
7470
lt_cv_path_MAGIC_CMD="$ac_dir/file"
7471
if test -n "$file_magic_test_file"; then
7472
case $deplibs_check_method in
7474
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7475
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7476
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7477
$EGREP "$file_magic_regex" > /dev/null; then
7482
*** Warning: the command libtool uses to detect shared libraries,
7483
*** $file_magic_cmd, produces output that libtool cannot recognize.
7484
*** The result is that libtool may fail to recognize shared libraries
7485
*** as such. This will affect the creation of libtool libraries that
7486
*** depend on shared libraries, but programs linked with such libtool
7487
*** libraries will work regardless of this problem. Nevertheless, you
7488
*** may want to report the problem to your system manager and/or to
7489
*** bug-libtool@gnu.org
7499
MAGIC_CMD="$lt_save_MAGIC_CMD"
7504
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7505
if test -n "$MAGIC_CMD"; then
7506
{ echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7507
echo "${ECHO_T}$MAGIC_CMD" >&6; }
7509
{ echo "$as_me:$LINENO: result: no" >&5
7510
echo "${ECHO_T}no" >&6; }
7524
rhapsody* | darwin*)
7525
if test -n "$ac_tool_prefix"; then
7526
# Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7527
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7528
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7529
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7530
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7531
echo $ECHO_N "(cached) $ECHO_C" >&6
7533
if test -n "$DSYMUTIL"; then
7534
ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7536
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7540
test -z "$as_dir" && as_dir=.
7541
for ac_exec_ext in '' $ac_executable_extensions; do
7542
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7543
ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7544
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7553
DSYMUTIL=$ac_cv_prog_DSYMUTIL
7554
if test -n "$DSYMUTIL"; then
7555
{ echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7556
echo "${ECHO_T}$DSYMUTIL" >&6; }
7558
{ echo "$as_me:$LINENO: result: no" >&5
7559
echo "${ECHO_T}no" >&6; }
7564
if test -z "$ac_cv_prog_DSYMUTIL"; then
7565
ac_ct_DSYMUTIL=$DSYMUTIL
7566
# Extract the first word of "dsymutil", so it can be a program name with args.
7567
set dummy dsymutil; ac_word=$2
7568
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7569
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7570
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7571
echo $ECHO_N "(cached) $ECHO_C" >&6
7573
if test -n "$ac_ct_DSYMUTIL"; then
7574
ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7576
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7580
test -z "$as_dir" && as_dir=.
7581
for ac_exec_ext in '' $ac_executable_extensions; do
7582
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7583
ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7584
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7593
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7594
if test -n "$ac_ct_DSYMUTIL"; then
7595
{ echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7596
echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7598
{ echo "$as_me:$LINENO: result: no" >&5
7599
echo "${ECHO_T}no" >&6; }
7602
if test "x$ac_ct_DSYMUTIL" = x; then
7605
case $cross_compiling:$ac_tool_warned in
7607
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7608
whose name does not start with the host triplet. If you think this
7609
configuration is useful to you, please write to autoconf@gnu.org." >&5
7610
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7611
whose name does not start with the host triplet. If you think this
7612
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7613
ac_tool_warned=yes ;;
7615
DSYMUTIL=$ac_ct_DSYMUTIL
7618
DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7621
if test -n "$ac_tool_prefix"; then
7622
# Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7623
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7624
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7625
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7626
if test "${ac_cv_prog_NMEDIT+set}" = set; then
7627
echo $ECHO_N "(cached) $ECHO_C" >&6
7629
if test -n "$NMEDIT"; then
7630
ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7632
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7636
test -z "$as_dir" && as_dir=.
7637
for ac_exec_ext in '' $ac_executable_extensions; do
7638
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7639
ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7640
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7649
NMEDIT=$ac_cv_prog_NMEDIT
7650
if test -n "$NMEDIT"; then
7651
{ echo "$as_me:$LINENO: result: $NMEDIT" >&5
7652
echo "${ECHO_T}$NMEDIT" >&6; }
7654
{ echo "$as_me:$LINENO: result: no" >&5
7655
echo "${ECHO_T}no" >&6; }
7660
if test -z "$ac_cv_prog_NMEDIT"; then
7661
ac_ct_NMEDIT=$NMEDIT
7662
# Extract the first word of "nmedit", so it can be a program name with args.
7663
set dummy nmedit; ac_word=$2
7664
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7665
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7666
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7667
echo $ECHO_N "(cached) $ECHO_C" >&6
7669
if test -n "$ac_ct_NMEDIT"; then
7670
ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7672
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7676
test -z "$as_dir" && as_dir=.
7677
for ac_exec_ext in '' $ac_executable_extensions; do
7678
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7679
ac_cv_prog_ac_ct_NMEDIT="nmedit"
7680
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7689
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7690
if test -n "$ac_ct_NMEDIT"; then
7691
{ echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7692
echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7694
{ echo "$as_me:$LINENO: result: no" >&5
7695
echo "${ECHO_T}no" >&6; }
7698
if test "x$ac_ct_NMEDIT" = x; then
7701
case $cross_compiling:$ac_tool_warned in
7703
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7704
whose name does not start with the host triplet. If you think this
7705
configuration is useful to you, please write to autoconf@gnu.org." >&5
7706
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7707
whose name does not start with the host triplet. If you think this
7708
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7709
ac_tool_warned=yes ;;
7711
NMEDIT=$ac_ct_NMEDIT
7714
NMEDIT="$ac_cv_prog_NMEDIT"
7718
{ echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7719
echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7720
if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7721
echo $ECHO_N "(cached) $ECHO_C" >&6
7723
lt_cv_apple_cc_single_mod=no
7724
if test -z "${LT_MULTI_MODULE}"; then
7725
# By default we will add the -single_module flag. You can override
7726
# by either setting the environment variable LT_MULTI_MODULE
7727
# non-empty at configure time, or by adding -multi_module to the
7729
echo "int foo(void){return 1;}" > conftest.c
7730
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7731
-dynamiclib ${wl}-single_module conftest.c
7732
if test -f libconftest.dylib; then
7733
lt_cv_apple_cc_single_mod=yes
7734
rm -rf libconftest.dylib*
7739
{ echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7740
echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7741
{ echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7742
echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7743
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7744
echo $ECHO_N "(cached) $ECHO_C" >&6
7746
lt_cv_ld_exported_symbols_list=no
7747
save_LDFLAGS=$LDFLAGS
7748
echo "_main" > conftest.sym
7749
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7750
cat >conftest.$ac_ext <<_ACEOF
7753
cat confdefs.h >>conftest.$ac_ext
7754
cat >>conftest.$ac_ext <<_ACEOF
7755
/* end confdefs.h. */
7765
rm -f conftest.$ac_objext conftest$ac_exeext
7766
if { (ac_try="$ac_link"
7768
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7769
*) ac_try_echo=$ac_try;;
7771
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7772
(eval "$ac_link") 2>conftest.er1
7774
grep -v '^ *+' conftest.er1 >conftest.err
7776
cat conftest.err >&5
7777
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7778
(exit $ac_status); } && {
7779
test -z "$ac_c_werror_flag" ||
7780
test ! -s conftest.err
7781
} && test -s conftest$ac_exeext &&
7782
$as_test_x conftest$ac_exeext; then
7783
lt_cv_ld_exported_symbols_list=yes
7785
echo "$as_me: failed program was:" >&5
7786
sed 's/^/| /' conftest.$ac_ext >&5
7788
lt_cv_ld_exported_symbols_list=no
7791
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7792
conftest$ac_exeext conftest.$ac_ext
7793
LDFLAGS="$save_LDFLAGS"
7796
{ echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7797
echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7799
rhapsody* | darwin1.[0123])
7800
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7802
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7804
# if running on 10.5 or later, the deployment target defaults
7805
# to the OS version, if on x86, and 10.4, the deployment
7806
# target defaults to 10.4. Don't you love it?
7807
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7808
10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7809
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7811
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7813
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7817
if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7818
_lt_dar_single_mod='$single_module'
7820
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7821
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7823
_lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7825
if test "$DSYMUTIL" != ":"; then
7826
_lt_dsymutil="~$DSYMUTIL \$lib || :"
7837
# Check whether --enable-libtool-lock was given.
7838
if test "${enable_libtool_lock+set}" = set; then
7839
enableval=$enable_libtool_lock;
7842
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7845
# Check whether --with-pic was given.
7846
if test "${with_pic+set}" = set; then
7847
withval=$with_pic; pic_mode="$withval"
7852
test -z "$pic_mode" && pic_mode=default
7854
# Use C for the default configuration in the libtool script
7858
ac_cpp='$CPP $CPPFLAGS'
7859
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7860
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7861
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7864
# Source file extension for C test sources.
7867
# Object file extension for compiled C test sources.
7871
# Code to be used in simple compile tests
7872
lt_simple_compile_test_code="int some_variable = 0;"
7874
# Code to be used in simple link tests
7875
lt_simple_link_test_code='int main(){return(0);}'
7878
# If no C compiler was specified, use CC.
7881
# If no C compiler flags were specified, use CFLAGS.
7882
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7884
# Allow CC to be a program name with arguments.
7888
# save warnings/boilerplate of simple test code
7889
ac_outfile=conftest.$ac_objext
7890
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7891
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7892
_lt_compiler_boilerplate=`cat conftest.err`
7895
ac_outfile=conftest.$ac_objext
7896
echo "$lt_simple_link_test_code" >conftest.$ac_ext
7897
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7898
_lt_linker_boilerplate=`cat conftest.err`
7903
lt_prog_compiler_no_builtin_flag=
7905
if test "$GCC" = yes; then
7906
lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7909
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7910
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7911
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7912
echo $ECHO_N "(cached) $ECHO_C" >&6
7914
lt_cv_prog_compiler_rtti_exceptions=no
7915
ac_outfile=conftest.$ac_objext
7916
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7917
lt_compiler_flag="-fno-rtti -fno-exceptions"
7918
# Insert the option either (1) after the last *FLAGS variable, or
7919
# (2) before a word containing "conftest.", or (3) at the end.
7920
# Note that $ac_compile itself does not contain backslashes and begins
7921
# with a dollar sign (not a hyphen), so the echo should work correctly.
7922
# The option is referenced via a variable to avoid confusing sed.
7923
lt_compile=`echo "$ac_compile" | $SED \
7924
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7925
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7926
-e 's:$: $lt_compiler_flag:'`
7927
(eval echo "\"\$as_me:7927: $lt_compile\"" >&5)
7928
(eval "$lt_compile" 2>conftest.err)
7930
cat conftest.err >&5
7931
echo "$as_me:7931: \$? = $ac_status" >&5
7932
if (exit $ac_status) && test -s "$ac_outfile"; then
7933
# The compiler can only warn and ignore the option if not recognized
7934
# So say no if there are warnings other than the usual output.
7935
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7936
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7937
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7938
lt_cv_prog_compiler_rtti_exceptions=yes
7944
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7945
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7947
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7948
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7955
lt_prog_compiler_wl=
7956
lt_prog_compiler_pic=
7957
lt_prog_compiler_static=
7959
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7960
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7962
if test "$GCC" = yes; then
7963
lt_prog_compiler_wl='-Wl,'
7964
lt_prog_compiler_static='-static'
7968
# All AIX code is PIC.
7969
if test "$host_cpu" = ia64; then
7970
# AIX 5 now supports IA64 processor
7971
lt_prog_compiler_static='-Bstatic'
7976
# FIXME: we need at least 68020 code to build shared libraries, but
7977
# adding the `-m68020' flag to GCC prevents building anything better,
7979
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7982
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7983
# PIC is the default for these OSes.
7986
mingw* | cygwin* | pw32* | os2*)
7987
# This hack is so that the source file can tell whether it is being
7988
# built for inclusion in a dll (and should export symbols for example).
7989
# Although the cygwin gcc ignores -fPIC, still need this for old-style
7990
# (--disable-auto-import) libraries
7991
lt_prog_compiler_pic='-DDLL_EXPORT'
7994
darwin* | rhapsody*)
7995
# PIC is the default on this platform
7996
# Common symbols not allowed in MH_DYLIB files
7997
lt_prog_compiler_pic='-fno-common'
8001
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
8002
# Instead, we relocate shared libraries at runtime.
8006
# Just because we use GCC doesn't mean we suddenly get shared libraries
8007
# on systems that don't support them.
8008
lt_prog_compiler_can_build_shared=no
8013
if test -d /usr/nec; then
8014
lt_prog_compiler_pic=-Kconform_pic
8019
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8026
lt_prog_compiler_pic='-fPIC'
8032
lt_prog_compiler_pic='-fPIC'
8036
# PORTME Check for flag to pass linker flags through the system compiler.
8039
lt_prog_compiler_wl='-Wl,'
8040
if test "$host_cpu" = ia64; then
8041
# AIX 5 now supports IA64 processor
8042
lt_prog_compiler_static='-Bstatic'
8044
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8048
# PIC is the default on this platform
8049
# Common symbols not allowed in MH_DYLIB files
8050
case $cc_basename in
8052
lt_prog_compiler_pic='-qnocommon'
8053
lt_prog_compiler_wl='-Wl,'
8058
mingw* | cygwin* | pw32* | os2*)
8059
# This hack is so that the source file can tell whether it is being
8060
# built for inclusion in a dll (and should export symbols for example).
8061
lt_prog_compiler_pic='-DDLL_EXPORT'
8064
hpux9* | hpux10* | hpux11*)
8065
lt_prog_compiler_wl='-Wl,'
8066
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8073
lt_prog_compiler_pic='+Z'
8076
# Is there a better lt_prog_compiler_static that works with the bundled CC?
8077
lt_prog_compiler_static='${wl}-a ${wl}archive'
8080
irix5* | irix6* | nonstopux*)
8081
lt_prog_compiler_wl='-Wl,'
8082
# PIC (with -KPIC) is the default.
8083
lt_prog_compiler_static='-non_shared'
8087
lt_prog_compiler_pic='-KPIC'
8088
lt_prog_compiler_static='-Bstatic'
8091
linux* | k*bsd*-gnu)
8092
case $cc_basename in
8094
lt_prog_compiler_wl='-Wl,'
8095
lt_prog_compiler_pic='-KPIC'
8096
lt_prog_compiler_static='-static'
8098
pgcc* | pgf77* | pgf90* | pgf95*)
8099
# Portland Group compilers (*not* the Pentium gcc compiler,
8100
# which looks to be a dead project)
8101
lt_prog_compiler_wl='-Wl,'
8102
lt_prog_compiler_pic='-fpic'
8103
lt_prog_compiler_static='-Bstatic'
8106
lt_prog_compiler_wl='-Wl,'
8107
# All Alpha code is PIC.
8108
lt_prog_compiler_static='-non_shared'
8111
case `$CC -V 2>&1 | sed 5q` in
8114
lt_prog_compiler_pic='-KPIC'
8115
lt_prog_compiler_static='-Bstatic'
8116
lt_prog_compiler_wl='-Wl,'
8119
# Sun Fortran 8.3 passes all unrecognized flags to the linker
8120
lt_prog_compiler_pic='-KPIC'
8121
lt_prog_compiler_static='-Bstatic'
8122
lt_prog_compiler_wl=''
8129
osf3* | osf4* | osf5*)
8130
lt_prog_compiler_wl='-Wl,'
8131
# All OSF/1 code is PIC.
8132
lt_prog_compiler_static='-non_shared'
8136
lt_prog_compiler_static='-non_shared'
8140
lt_prog_compiler_pic='-KPIC'
8141
lt_prog_compiler_static='-Bstatic'
8142
case $cc_basename in
8144
lt_prog_compiler_wl='-Qoption ld ';;
8146
lt_prog_compiler_wl='-Wl,';;
8151
lt_prog_compiler_wl='-Qoption ld '
8152
lt_prog_compiler_pic='-PIC'
8153
lt_prog_compiler_static='-Bstatic'
8156
sysv4 | sysv4.2uw2* | sysv4.3*)
8157
lt_prog_compiler_wl='-Wl,'
8158
lt_prog_compiler_pic='-KPIC'
8159
lt_prog_compiler_static='-Bstatic'
8163
if test -d /usr/nec ;then
8164
lt_prog_compiler_pic='-Kconform_pic'
8165
lt_prog_compiler_static='-Bstatic'
8169
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8170
lt_prog_compiler_wl='-Wl,'
8171
lt_prog_compiler_pic='-KPIC'
8172
lt_prog_compiler_static='-Bstatic'
8176
lt_prog_compiler_wl='-Wl,'
8177
lt_prog_compiler_can_build_shared=no
8181
lt_prog_compiler_pic='-pic'
8182
lt_prog_compiler_static='-Bstatic'
8186
lt_prog_compiler_can_build_shared=no
8191
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8192
echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8195
# Check to make sure the PIC flag actually works.
8197
if test -n "$lt_prog_compiler_pic"; then
8199
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8200
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8201
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8202
echo $ECHO_N "(cached) $ECHO_C" >&6
8204
lt_cv_prog_compiler_pic_works=no
8205
ac_outfile=conftest.$ac_objext
8206
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8207
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8208
# Insert the option either (1) after the last *FLAGS variable, or
8209
# (2) before a word containing "conftest.", or (3) at the end.
8210
# Note that $ac_compile itself does not contain backslashes and begins
8211
# with a dollar sign (not a hyphen), so the echo should work correctly.
8212
# The option is referenced via a variable to avoid confusing sed.
8213
lt_compile=`echo "$ac_compile" | $SED \
8214
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8215
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8216
-e 's:$: $lt_compiler_flag:'`
8217
(eval echo "\"\$as_me:8217: $lt_compile\"" >&5)
8218
(eval "$lt_compile" 2>conftest.err)
8220
cat conftest.err >&5
8221
echo "$as_me:8221: \$? = $ac_status" >&5
8222
if (exit $ac_status) && test -s "$ac_outfile"; then
8223
# The compiler can only warn and ignore the option if not recognized
8224
# So say no if there are warnings other than the usual output.
8225
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8226
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8227
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8228
lt_cv_prog_compiler_pic_works=yes
8234
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8235
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
8237
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8238
case $lt_prog_compiler_pic in
8240
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8243
lt_prog_compiler_pic=
8244
lt_prog_compiler_can_build_shared=no
8249
# For platforms which do not support PIC, -DPIC is meaningless:
8251
lt_prog_compiler_pic=
8254
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8259
# Check to make sure the static flag actually works.
8261
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8262
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8263
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8264
if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8265
echo $ECHO_N "(cached) $ECHO_C" >&6
8267
lt_cv_prog_compiler_static_works=no
8268
save_LDFLAGS="$LDFLAGS"
8269
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8270
echo "$lt_simple_link_test_code" > conftest.$ac_ext
8271
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8272
# The linker can only warn and ignore the option if not recognized
8273
# So say no if there are warnings
8274
if test -s conftest.err; then
8275
# Append any errors to the config.log.
8276
cat conftest.err 1>&5
8277
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8278
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8279
if diff conftest.exp conftest.er2 >/dev/null; then
8280
lt_cv_prog_compiler_static_works=yes
8283
lt_cv_prog_compiler_static_works=yes
8287
LDFLAGS="$save_LDFLAGS"
8290
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8291
echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
8293
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8296
lt_prog_compiler_static=
8300
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8301
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8302
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8303
echo $ECHO_N "(cached) $ECHO_C" >&6
8305
lt_cv_prog_compiler_c_o=no
8306
$rm -r conftest 2>/dev/null
8310
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8312
lt_compiler_flag="-o out/conftest2.$ac_objext"
8313
# Insert the option either (1) after the last *FLAGS variable, or
8314
# (2) before a word containing "conftest.", or (3) at the end.
8315
# Note that $ac_compile itself does not contain backslashes and begins
8316
# with a dollar sign (not a hyphen), so the echo should work correctly.
8317
lt_compile=`echo "$ac_compile" | $SED \
8318
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8319
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8320
-e 's:$: $lt_compiler_flag:'`
8321
(eval echo "\"\$as_me:8321: $lt_compile\"" >&5)
8322
(eval "$lt_compile" 2>out/conftest.err)
8324
cat out/conftest.err >&5
8325
echo "$as_me:8325: \$? = $ac_status" >&5
8326
if (exit $ac_status) && test -s out/conftest2.$ac_objext
8328
# The compiler can only warn and ignore the option if not recognized
8329
# So say no if there are warnings
8330
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8331
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8332
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8333
lt_cv_prog_compiler_c_o=yes
8338
# SGI C++ compiler will create directory out/ii_files/ for
8339
# template instantiation
8340
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8341
$rm out/* && rmdir out
8347
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8348
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8351
hard_links="nottested"
8352
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8353
# do not overwrite the value of need_locks provided by the user
8354
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8355
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8358
ln conftest.a conftest.b 2>/dev/null && hard_links=no
8360
ln conftest.a conftest.b 2>&5 || hard_links=no
8361
ln conftest.a conftest.b 2>/dev/null && hard_links=no
8362
{ echo "$as_me:$LINENO: result: $hard_links" >&5
8363
echo "${ECHO_T}$hard_links" >&6; }
8364
if test "$hard_links" = no; then
8365
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8366
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8373
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8374
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8377
allow_undefined_flag=
8378
enable_shared_with_static_runtimes=no
8380
archive_expsym_cmds=
8381
old_archive_From_new_cmds=
8382
old_archive_from_expsyms_cmds=
8383
export_dynamic_flag_spec=
8384
whole_archive_flag_spec=
8385
thread_safe_flag_spec=
8386
hardcode_libdir_flag_spec=
8387
hardcode_libdir_flag_spec_ld=
8388
hardcode_libdir_separator=
8391
hardcode_shlibpath_var=unsupported
8392
link_all_deplibs=unknown
8393
hardcode_automatic=no
8396
always_export_symbols=no
8397
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8398
# include_expsyms should be a list of space-separated symbols to be *always*
8399
# included in the symbol list
8401
# exclude_expsyms can be an extended regexp of symbols to exclude
8402
# it will be wrapped by ` (' and `)$', so one must not match beginning or
8403
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8404
# as well as any symbol that contains `d'.
8405
exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8406
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8407
# platforms (ab)use it in PIC code, but their linkers get confused if
8408
# the symbol is explicitly referenced. Since portable code cannot
8409
# rely on this symbol name, it's probably fine to never include it in
8410
# preloaded symbol tables.
8411
# Exclude shared library initialization/finalization symbols.
8412
extract_expsyms_cmds=
8413
# Just being paranoid about ensuring that cc_basename is set.
8414
for cc_temp in $compiler""; do
8416
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8417
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8422
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8425
cygwin* | mingw* | pw32*)
8426
# FIXME: the MSVC++ port hasn't been tested in a loooong time
8427
# When not using gcc, we currently assume that we are using
8428
# Microsoft Visual C++.
8429
if test "$GCC" != yes; then
8434
# we just hope/assume this is gcc and not c89 (= MSVC++)
8443
if test "$with_gnu_ld" = yes; then
8444
# If archive_cmds runs LD, not CC, wlarc should be empty
8447
# Set some defaults for GNU ld with shared library support. These
8448
# are reset later if shared libraries are not supported. Putting them
8449
# here allows them to be overridden if necessary.
8450
runpath_var=LD_RUN_PATH
8451
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8452
export_dynamic_flag_spec='${wl}--export-dynamic'
8453
# ancient GNU ld didn't support --whole-archive et. al.
8454
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8455
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8457
whole_archive_flag_spec=
8459
supports_anon_versioning=no
8460
case `$LD -v 2>/dev/null` in
8461
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8462
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8463
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8464
*\ 2.11.*) ;; # other 2.11 versions
8465
*) supports_anon_versioning=yes ;;
8468
# See if GNU ld supports shared libraries.
8471
# On AIX/PPC, the GNU linker is very broken
8472
if test "$host_cpu" != ia64; then
8476
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8477
*** to be unable to reliably create shared libraries on AIX.
8478
*** Therefore, libtool is disabling shared libraries support. If you
8479
*** really care for shared libraries, you may want to modify your PATH
8480
*** so that a non-GNU linker is found, and then restart.
8487
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)'
8488
hardcode_libdir_flag_spec='-L$libdir'
8489
hardcode_minus_L=yes
8491
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8492
# that the semantics of dynamic libraries on AmigaOS, at least up
8493
# to version 4, is to share data among multiple programs linked
8494
# with the same dynamic library. Since this doesn't match the
8495
# behavior of shared libraries on other platforms, we can't use
8501
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8502
allow_undefined_flag=unsupported
8503
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8504
# support --undefined. This deserves some investigation. FIXME
8505
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8511
cygwin* | mingw* | pw32*)
8512
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8513
# as there is no search path for DLLs.
8514
hardcode_libdir_flag_spec='-L$libdir'
8515
allow_undefined_flag=unsupported
8516
always_export_symbols=no
8517
enable_shared_with_static_runtimes=yes
8518
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8520
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8521
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8522
# If the export-symbols file already is a .def file (1st line
8523
# is EXPORTS), use it as is; otherwise, prepend...
8524
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8525
cp $export_symbols $output_objdir/$soname.def;
8527
echo EXPORTS > $output_objdir/$soname.def;
8528
cat $export_symbols >> $output_objdir/$soname.def;
8530
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8538
hardcode_shlibpath_var=no
8539
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8540
export_dynamic_flag_spec='${wl}-E'
8541
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8542
# Instead, shared libraries are loaded at an image base (0x10000000 by
8543
# default) and relocated if they conflict, which is a slow very memory
8544
# consuming and fragmenting process. To avoid this, we pick a random,
8545
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8546
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
8547
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8548
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'
8551
gnu* | linux* | k*bsd*-gnu)
8552
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8554
case $cc_basename,$host_cpu in
8555
pgcc*) # Portland Group C compiler
8556
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'
8557
tmp_addflag=' $pic_flag'
8559
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8560
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'
8561
tmp_addflag=' $pic_flag -Mnomain' ;;
8562
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8563
tmp_addflag=' -i_dynamic' ;;
8564
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8565
tmp_addflag=' -i_dynamic -nofor_main' ;;
8566
ifc* | ifort*) # Intel Fortran compiler
8567
tmp_addflag=' -nofor_main' ;;
8569
case `$CC -V 2>&1 | sed 5q` in
8570
*Sun\ C*) # Sun C 5.9
8571
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'
8572
tmp_sharedflag='-G' ;;
8573
*Sun\ F*) # Sun Fortran 8.3
8574
tmp_sharedflag='-G' ;;
8576
tmp_sharedflag='-shared' ;;
8578
archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8580
if test $supports_anon_versioning = yes; then
8581
archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8582
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8583
$echo "local: *; };" >> $output_objdir/$libname.ver~
8584
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8592
netbsd* | netbsdelf*-gnu)
8593
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8594
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8597
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8598
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8603
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8607
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8608
*** create shared libraries on Solaris systems. Therefore, libtool
8609
*** is disabling shared libraries support. We urge you to upgrade GNU
8610
*** binutils to release 2.9.1 or newer. Another option is to modify
8611
*** your PATH or compiler configuration so that the native linker is
8612
*** used, and then restart.
8615
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8616
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8617
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8623
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8624
case `$LD -v 2>&1` in
8625
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8629
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8630
*** reliably create shared libraries on SCO systems. Therefore, libtool
8631
*** is disabling shared libraries support. We urge you to upgrade GNU
8632
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8633
*** your PATH or compiler configuration so that the native linker is
8634
*** used, and then restart.
8639
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8640
hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8641
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8642
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8651
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8654
hardcode_shlibpath_var=no
8658
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8659
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8660
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8667
if test "$ld_shlibs" = no; then
8669
hardcode_libdir_flag_spec=
8670
export_dynamic_flag_spec=
8671
whole_archive_flag_spec=
8674
# PORTME fill in a description of your system's linker (not GNU ld)
8677
allow_undefined_flag=unsupported
8678
always_export_symbols=yes
8679
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'
8680
# Note: this linker hardcodes the directories in LIBPATH if there
8681
# are no directories specified by -L.
8682
hardcode_minus_L=yes
8683
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8684
# Neither direct hardcoding nor static linking is supported with a
8686
hardcode_direct=unsupported
8691
if test "$host_cpu" = ia64; then
8692
# On IA64, the linker does run time linking by default, so we don't
8693
# have to do anything special.
8694
aix_use_runtimelinking=no
8695
exp_sym_flag='-Bexport'
8698
# If we're using GNU nm, then we don't want the "-C" option.
8699
# -C means demangle to AIX nm, but means don't demangle with GNU nm
8700
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8701
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'
8703
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'
8705
aix_use_runtimelinking=no
8707
# Test if we are trying to use run time linking or normal
8708
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8709
# need to do runtime linking.
8710
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8711
for ld_flag in $LDFLAGS; do
8712
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8713
aix_use_runtimelinking=yes
8720
exp_sym_flag='-bexport'
8721
no_entry_flag='-bnoentry'
8724
# When large executables or shared objects are built, AIX ld can
8725
# have problems creating the table of contents. If linking a library
8726
# or program results in "error TOC overflow" add -mminimal-toc to
8727
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8728
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8732
hardcode_libdir_separator=':'
8733
link_all_deplibs=yes
8735
if test "$GCC" = yes; then
8736
case $host_os in aix4.[012]|aix4.[012].*)
8737
# We only want to do this on AIX 4.2 and lower, the check
8738
# below for broken collect2 doesn't work under 4.3+
8739
collect2name=`${CC} -print-prog-name=collect2`
8740
if test -f "$collect2name" && \
8741
strings "$collect2name" | grep resolve_lib_name >/dev/null
8743
# We have reworked collect2
8746
# We have old collect2
8747
hardcode_direct=unsupported
8748
# It fails to find uninstalled libraries when the uninstalled
8749
# path is not listed in the libpath. Setting hardcode_minus_L
8750
# to unsupported forces relinking
8751
hardcode_minus_L=yes
8752
hardcode_libdir_flag_spec='-L$libdir'
8753
hardcode_libdir_separator=
8757
shared_flag='-shared'
8758
if test "$aix_use_runtimelinking" = yes; then
8759
shared_flag="$shared_flag "'${wl}-G'
8763
if test "$host_cpu" = ia64; then
8764
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8765
# chokes on -Wl,-G. The following line is correct:
8768
if test "$aix_use_runtimelinking" = yes; then
8769
shared_flag='${wl}-G'
8771
shared_flag='${wl}-bM:SRE'
8776
# It seems that -bexpall does not export symbols beginning with
8777
# underscore (_), so it is better to generate a list of symbols to export.
8778
always_export_symbols=yes
8779
if test "$aix_use_runtimelinking" = yes; then
8780
# Warning - without using the other runtime loading flags (-brtl),
8781
# -berok will link without error, but may produce a broken library.
8782
allow_undefined_flag='-berok'
8783
# Determine the default libpath from the value encoded in an empty executable.
8784
cat >conftest.$ac_ext <<_ACEOF
8787
cat confdefs.h >>conftest.$ac_ext
8788
cat >>conftest.$ac_ext <<_ACEOF
8789
/* end confdefs.h. */
8799
rm -f conftest.$ac_objext conftest$ac_exeext
8800
if { (ac_try="$ac_link"
8802
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8803
*) ac_try_echo=$ac_try;;
8805
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8806
(eval "$ac_link") 2>conftest.er1
8808
grep -v '^ *+' conftest.er1 >conftest.err
8810
cat conftest.err >&5
8811
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8812
(exit $ac_status); } && {
8813
test -z "$ac_c_werror_flag" ||
8814
test ! -s conftest.err
8815
} && test -s conftest$ac_exeext &&
8816
$as_test_x conftest$ac_exeext; then
8818
lt_aix_libpath_sed='
8819
/Import File Strings/,/^$/ {
8825
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8826
# Check for a 64-bit object if we didn't find anything.
8827
if test -z "$aix_libpath"; then
8828
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8831
echo "$as_me: failed program was:" >&5
8832
sed 's/^/| /' conftest.$ac_ext >&5
8837
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8838
conftest$ac_exeext conftest.$ac_ext
8839
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8841
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8842
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"
8844
if test "$host_cpu" = ia64; then
8845
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8846
allow_undefined_flag="-z nodefs"
8847
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"
8849
# Determine the default libpath from the value encoded in an empty executable.
8850
cat >conftest.$ac_ext <<_ACEOF
8853
cat confdefs.h >>conftest.$ac_ext
8854
cat >>conftest.$ac_ext <<_ACEOF
8855
/* end confdefs.h. */
8865
rm -f conftest.$ac_objext conftest$ac_exeext
8866
if { (ac_try="$ac_link"
8868
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8869
*) ac_try_echo=$ac_try;;
8871
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8872
(eval "$ac_link") 2>conftest.er1
8874
grep -v '^ *+' conftest.er1 >conftest.err
8876
cat conftest.err >&5
8877
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8878
(exit $ac_status); } && {
8879
test -z "$ac_c_werror_flag" ||
8880
test ! -s conftest.err
8881
} && test -s conftest$ac_exeext &&
8882
$as_test_x conftest$ac_exeext; then
8884
lt_aix_libpath_sed='
8885
/Import File Strings/,/^$/ {
8891
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8892
# Check for a 64-bit object if we didn't find anything.
8893
if test -z "$aix_libpath"; then
8894
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8897
echo "$as_me: failed program was:" >&5
8898
sed 's/^/| /' conftest.$ac_ext >&5
8903
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8904
conftest$ac_exeext conftest.$ac_ext
8905
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8907
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8908
# Warning - without using the other run time loading flags,
8909
# -berok will link without error, but may produce a broken library.
8910
no_undefined_flag=' ${wl}-bernotok'
8911
allow_undefined_flag=' ${wl}-berok'
8912
# Exported symbols can be pulled into shared objects from archives
8913
whole_archive_flag_spec='$convenience'
8914
archive_cmds_need_lc=yes
8915
# This is similar to how AIX traditionally builds its shared libraries.
8916
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'
8922
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)'
8923
hardcode_libdir_flag_spec='-L$libdir'
8924
hardcode_minus_L=yes
8925
# see comment about different semantics on the GNU ld section
8930
export_dynamic_flag_spec=-rdynamic
8933
cygwin* | mingw* | pw32*)
8934
# When not using gcc, we currently assume that we are using
8935
# Microsoft Visual C++.
8936
# hardcode_libdir_flag_spec is actually meaningless, as there is
8937
# no search path for DLLs.
8938
hardcode_libdir_flag_spec=' '
8939
allow_undefined_flag=unsupported
8940
# Tell ltmain to make .lib files, not .a files.
8942
# Tell ltmain to make .dll files, not .so files.
8944
# FIXME: Setting linknames here is a bad hack.
8945
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8946
# The linker will automatically build a .lib file if we build a DLL.
8947
old_archive_From_new_cmds='true'
8948
# FIXME: Should let the user specify the lib program.
8949
old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8950
fix_srcfile_path='`cygpath -w "$srcfile"`'
8951
enable_shared_with_static_runtimes=yes
8954
darwin* | rhapsody*)
8956
rhapsody* | darwin1.[012])
8957
allow_undefined_flag='${wl}-undefined ${wl}suppress'
8960
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8961
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8963
case ${MACOSX_DEPLOYMENT_TARGET} in
8965
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8968
allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8974
archive_cmds_need_lc=no
8976
hardcode_automatic=yes
8977
hardcode_shlibpath_var=unsupported
8978
whole_archive_flag_spec=''
8979
link_all_deplibs=yes
8980
if test "$GCC" = yes ; then
8981
output_verbose_link_cmd='echo'
8982
archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8983
module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8984
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}"
8985
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}"
8987
case $cc_basename in
8989
output_verbose_link_cmd='echo'
8990
archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8991
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8992
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8993
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}'
8994
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}'
9004
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9005
hardcode_libdir_flag_spec='-L$libdir'
9006
hardcode_shlibpath_var=no
9013
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9014
# support. Future versions do this automatically, but an explicit c++rt0.o
9015
# does not break anything, and helps significantly (at the cost of a little
9018
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9019
hardcode_libdir_flag_spec='-R$libdir'
9021
hardcode_shlibpath_var=no
9024
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
9026
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9028
hardcode_minus_L=yes
9029
hardcode_shlibpath_var=no
9032
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9033
freebsd* | dragonfly*)
9034
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9035
hardcode_libdir_flag_spec='-R$libdir'
9037
hardcode_shlibpath_var=no
9041
if test "$GCC" = yes; then
9042
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'
9044
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'
9046
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9047
hardcode_libdir_separator=:
9050
# hardcode_minus_L: Not really in the search PATH,
9051
# but as the default location of the library.
9052
hardcode_minus_L=yes
9053
export_dynamic_flag_spec='${wl}-E'
9057
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9058
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9060
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9062
if test "$with_gnu_ld" = no; then
9063
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9064
hardcode_libdir_separator=:
9067
export_dynamic_flag_spec='${wl}-E'
9069
# hardcode_minus_L: Not really in the search PATH,
9070
# but as the default location of the library.
9071
hardcode_minus_L=yes
9076
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9079
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9082
archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9085
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9091
archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9094
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9097
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9101
if test "$with_gnu_ld" = no; then
9102
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9103
hardcode_libdir_separator=:
9107
hardcode_libdir_flag_spec_ld='+b $libdir'
9109
hardcode_shlibpath_var=no
9113
export_dynamic_flag_spec='${wl}-E'
9115
# hardcode_minus_L: Not really in the search PATH,
9116
# but as the default location of the library.
9117
hardcode_minus_L=yes
9123
irix5* | irix6* | nonstopux*)
9124
if test "$GCC" = yes; then
9125
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'
9127
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'
9128
hardcode_libdir_flag_spec_ld='-rpath $libdir'
9130
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9131
hardcode_libdir_separator=:
9132
link_all_deplibs=yes
9135
netbsd* | netbsdelf*-gnu)
9136
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9137
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9139
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9141
hardcode_libdir_flag_spec='-R$libdir'
9143
hardcode_shlibpath_var=no
9147
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9149
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9150
hardcode_libdir_separator=:
9151
hardcode_shlibpath_var=no
9155
if test -f /usr/libexec/ld.so; then
9157
hardcode_shlibpath_var=no
9158
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9159
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9160
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9161
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9162
export_dynamic_flag_spec='${wl}-E'
9165
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9166
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9167
hardcode_libdir_flag_spec='-R$libdir'
9170
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9171
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9181
hardcode_libdir_flag_spec='-L$libdir'
9182
hardcode_minus_L=yes
9183
allow_undefined_flag=unsupported
9184
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'
9185
old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9189
if test "$GCC" = yes; then
9190
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9191
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'
9193
allow_undefined_flag=' -expect_unresolved \*'
9194
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'
9196
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9197
hardcode_libdir_separator=:
9200
osf4* | osf5*) # as osf3* with the addition of -msym flag
9201
if test "$GCC" = yes; then
9202
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9203
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'
9204
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9206
allow_undefined_flag=' -expect_unresolved \*'
9207
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'
9208
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9209
$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'
9211
# Both c and cxx compiler support -rpath directly
9212
hardcode_libdir_flag_spec='-rpath $libdir'
9214
hardcode_libdir_separator=:
9218
no_undefined_flag=' -z text'
9219
if test "$GCC" = yes; then
9221
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9222
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9223
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9226
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9227
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9228
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9230
hardcode_libdir_flag_spec='-R$libdir'
9231
hardcode_shlibpath_var=no
9233
solaris2.[0-5] | solaris2.[0-5].*) ;;
9235
# The compiler driver will combine and reorder linker options,
9236
# but understands `-z linker_flag'. GCC discards it without `$wl',
9237
# but is careful enough not to reorder.
9238
# Supported since Solaris 2.6 (maybe 2.5.1?)
9239
if test "$GCC" = yes; then
9240
whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9242
whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9246
link_all_deplibs=yes
9250
if test "x$host_vendor" = xsequent; then
9251
# Use $CC to link under sequent, because it throws in some extra .o
9252
# files that make .init and .fini sections work.
9253
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9255
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9257
hardcode_libdir_flag_spec='-L$libdir'
9259
hardcode_minus_L=yes
9260
hardcode_shlibpath_var=no
9264
case $host_vendor in
9266
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9267
hardcode_direct=yes # is this really true???
9270
## LD is ld it makes a PLAMLIB
9271
## CC just makes a GrossModule.
9272
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9273
reload_cmds='$CC -r -o $output$reload_objs'
9277
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9278
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9281
runpath_var='LD_RUN_PATH'
9282
hardcode_shlibpath_var=no
9286
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9287
hardcode_shlibpath_var=no
9288
export_dynamic_flag_spec='-Bexport'
9292
if test -d /usr/nec; then
9293
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9294
hardcode_shlibpath_var=no
9295
runpath_var=LD_RUN_PATH
9296
hardcode_runpath_var=yes
9301
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9302
no_undefined_flag='${wl}-z,text'
9303
archive_cmds_need_lc=no
9304
hardcode_shlibpath_var=no
9305
runpath_var='LD_RUN_PATH'
9307
if test "$GCC" = yes; then
9308
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9309
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9311
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9312
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9316
sysv5* | sco3.2v5* | sco5v6*)
9317
# Note: We can NOT use -z defs as we might desire, because we do not
9318
# link with -lc, and that would cause any symbols used from libc to
9319
# always be unresolved, which means just about no library would
9320
# ever link correctly. If we're not using GNU ld we use -z text
9321
# though, which does catch some bad symbols but isn't as heavy-handed
9323
no_undefined_flag='${wl}-z,text'
9324
allow_undefined_flag='${wl}-z,nodefs'
9325
archive_cmds_need_lc=no
9326
hardcode_shlibpath_var=no
9327
hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9328
hardcode_libdir_separator=':'
9329
link_all_deplibs=yes
9330
export_dynamic_flag_spec='${wl}-Bexport'
9331
runpath_var='LD_RUN_PATH'
9333
if test "$GCC" = yes; then
9334
archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9335
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9337
archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9338
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9343
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9344
hardcode_libdir_flag_spec='-L$libdir'
9345
hardcode_shlibpath_var=no
9354
{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9355
echo "${ECHO_T}$ld_shlibs" >&6; }
9356
test "$ld_shlibs" = no && can_build_shared=no
9359
# Do we need to explicitly link libc?
9361
case "x$archive_cmds_need_lc" in
9363
# Assume -lc should be added
9364
archive_cmds_need_lc=yes
9366
if test "$enable_shared" = yes && test "$GCC" = yes; then
9367
case $archive_cmds in
9369
# FIXME: we may have to deal with multi-command sequences.
9372
# Test whether the compiler implicitly links with -lc since on some
9373
# systems, -lgcc has to come before -lc. If gcc already passes -lc
9374
# to ld, don't add -lc before -lgcc.
9375
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9376
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9378
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9380
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9381
(eval $ac_compile) 2>&5
9383
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384
(exit $ac_status); } 2>conftest.err; then
9387
libobjs=conftest.$ac_objext
9389
wl=$lt_prog_compiler_wl
9390
pic_flag=$lt_prog_compiler_pic
9396
lt_save_allow_undefined_flag=$allow_undefined_flag
9397
allow_undefined_flag=
9398
if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9399
(eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9401
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9402
(exit $ac_status); }
9404
archive_cmds_need_lc=no
9406
archive_cmds_need_lc=yes
9408
allow_undefined_flag=$lt_save_allow_undefined_flag
9410
cat conftest.err 1>&5
9413
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9414
echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9421
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9422
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9424
libname_spec='lib$name'
9432
shlibpath_overrides_runpath=unknown
9434
dynamic_linker="$host_os ld.so"
9435
sys_lib_dlsearch_path_spec="/lib /usr/lib"
9437
if test "$GCC" = yes; then
9439
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9440
*) lt_awk_arg="/^libraries:/" ;;
9442
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9443
if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9444
# if the path contains ";" then we assume it to be the separator
9445
# otherwise default to the standard path separator (i.e. ":") - it is
9446
# assumed that no part of a normal pathname contains ";" but that should
9447
# okay in the real world where ";" in dirpaths is itself problematic.
9448
lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9450
lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9452
# Ok, now we have the path, separated by spaces, we can step through it
9453
# and add multilib dir if necessary.
9454
lt_tmp_lt_search_path_spec=
9455
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9456
for lt_sys_path in $lt_search_path_spec; do
9457
if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9458
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9460
test -d "$lt_sys_path" && \
9461
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9464
lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9465
BEGIN {RS=" "; FS="/|\n";} {
9468
for (lt_i = NF; lt_i > 0; lt_i--) {
9469
if ($lt_i != "" && $lt_i != ".") {
9470
if ($lt_i == "..") {
9473
if (lt_count == 0) {
9474
lt_foo="/" $lt_i lt_foo;
9481
if (lt_foo != "") { lt_freq[lt_foo]++; }
9482
if (lt_freq[lt_foo] == 1) { print lt_foo; }
9484
sys_lib_search_path_spec=`echo $lt_search_path_spec`
9486
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9488
need_lib_prefix=unknown
9489
hardcode_into_libs=no
9491
# when you set need_version to no, make sure it does not cause -set_version
9492
# flags to be left without arguments
9493
need_version=unknown
9498
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9499
shlibpath_var=LIBPATH
9501
# AIX 3 has no versioning support, so we append a major version to the name.
9502
soname_spec='${libname}${release}${shared_ext}$major'
9509
hardcode_into_libs=yes
9510
if test "$host_cpu" = ia64; then
9511
# AIX 5 supports IA64
9512
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9513
shlibpath_var=LD_LIBRARY_PATH
9515
# With GCC up to 2.95.x, collect2 would create an import file
9516
# for dependence libraries. The import file would start with
9517
# the line `#! .'. This would cause the generated library to
9518
# depend on `.', always an invalid library. This was fixed in
9519
# development snapshots of GCC prior to 3.0.
9521
aix4 | aix4.[01] | aix4.[01].*)
9522
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9524
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9531
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9532
# soname into executable. Probably we can add versioning support to
9533
# collect2, so additional links can be useful in future.
9534
if test "$aix_use_runtimelinking" = yes; then
9535
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
9536
# instead of lib<name>.a to let people know that these are not
9537
# typical AIX shared libraries.
9538
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9540
# We preserve .a as extension for shared libraries through AIX4.2
9541
# and later when we are not doing run time linking.
9542
library_names_spec='${libname}${release}.a $libname.a'
9543
soname_spec='${libname}${release}${shared_ext}$major'
9545
shlibpath_var=LIBPATH
9550
library_names_spec='$libname.ixlibrary $libname.a'
9551
# Create ${libname}_ixlibrary.a entries in /sys/libs.
9552
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'
9556
library_names_spec='${libname}${shared_ext}'
9557
dynamic_linker="$host_os ld.so"
9558
shlibpath_var=LIBRARY_PATH
9564
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9565
soname_spec='${libname}${release}${shared_ext}$major'
9566
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9567
shlibpath_var=LD_LIBRARY_PATH
9568
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9569
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9570
# the default ld.so.conf also contains /usr/contrib/lib and
9571
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9572
# libtool to hard-code these into programs
9575
cygwin* | mingw* | pw32*)
9576
version_type=windows
9581
case $GCC,$host_os in
9582
yes,cygwin* | yes,mingw* | yes,pw32*)
9583
library_names_spec='$libname.dll.a'
9584
# DLL is installed to $(libdir)/../bin by postinstall_cmds
9585
postinstall_cmds='base_file=`basename \${file}`~
9586
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9587
dldir=$destdir/`dirname \$dlpath`~
9588
test -d \$dldir || mkdir -p \$dldir~
9589
$install_prog $dir/$dlname \$dldir/$dlname~
9590
chmod a+x \$dldir/$dlname'
9591
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9592
dlpath=$dir/\$dldll~
9594
shlibpath_overrides_runpath=yes
9598
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
9599
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9600
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9603
# MinGW DLLs use traditional 'lib' prefix
9604
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9605
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9606
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9607
# It is most probably a Windows format PATH printed by
9608
# mingw gcc, but we are running on Cygwin. Gcc prints its search
9609
# path with ; separators, and with drive letters. We can handle the
9610
# drive letters (cygwin fileutils understands them), so leave them,
9611
# especially as we might pass files found there to a mingw objdump,
9612
# which wouldn't understand a cygwinified path. Ahh.
9613
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9615
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9619
# pw32 DLLs use 'pw' prefix rather than 'lib'
9620
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9626
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9629
dynamic_linker='Win32 ld.exe'
9630
# FIXME: first we should search . and the directory the executable is in
9634
darwin* | rhapsody*)
9635
dynamic_linker="$host_os dyld"
9639
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9640
soname_spec='${libname}${release}${major}$shared_ext'
9641
shlibpath_overrides_runpath=yes
9642
shlibpath_var=DYLD_LIBRARY_PATH
9643
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9645
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9646
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9653
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9654
soname_spec='${libname}${release}${shared_ext}$major'
9655
shlibpath_var=LD_LIBRARY_PATH
9662
freebsd* | dragonfly*)
9663
# DragonFly does not have aout. When/if they implement a new
9664
# versioning mechanism, adjust this.
9665
if test -x /usr/bin/objformat; then
9666
objformat=`/usr/bin/objformat`
9669
freebsd[123]*) objformat=aout ;;
9673
version_type=freebsd-$objformat
9674
case $version_type in
9676
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9681
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9685
shlibpath_var=LD_LIBRARY_PATH
9688
shlibpath_overrides_runpath=yes
9690
freebsd3.[01]* | freebsdelf3.[01]*)
9691
shlibpath_overrides_runpath=yes
9692
hardcode_into_libs=yes
9694
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9695
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9696
shlibpath_overrides_runpath=no
9697
hardcode_into_libs=yes
9699
*) # from 4.6 on, and DragonFly
9700
shlibpath_overrides_runpath=yes
9701
hardcode_into_libs=yes
9710
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9711
soname_spec='${libname}${release}${shared_ext}$major'
9712
shlibpath_var=LD_LIBRARY_PATH
9713
hardcode_into_libs=yes
9716
hpux9* | hpux10* | hpux11*)
9717
# Give a soname corresponding to the major version so that dld.sl refuses to
9718
# link against other versions.
9725
hardcode_into_libs=yes
9726
dynamic_linker="$host_os dld.so"
9727
shlibpath_var=LD_LIBRARY_PATH
9728
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9729
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9730
soname_spec='${libname}${release}${shared_ext}$major'
9731
if test "X$HPUX_IA64_MODE" = X32; then
9732
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9734
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9736
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9740
hardcode_into_libs=yes
9741
dynamic_linker="$host_os dld.sl"
9742
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9743
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9744
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9745
soname_spec='${libname}${release}${shared_ext}$major'
9746
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9747
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9751
dynamic_linker="$host_os dld.sl"
9752
shlibpath_var=SHLIB_PATH
9753
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9754
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9755
soname_spec='${libname}${release}${shared_ext}$major'
9758
# HP-UX runs *really* slowly unless shared libraries are mode 555.
9759
postinstall_cmds='chmod 555 $lib'
9766
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9767
soname_spec='${libname}${release}${shared_ext}$major'
9768
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9769
shlibpath_var=LD_LIBRARY_PATH
9770
shlibpath_overrides_runpath=no
9771
hardcode_into_libs=yes
9774
irix5* | irix6* | nonstopux*)
9776
nonstopux*) version_type=nonstopux ;;
9778
if test "$lt_cv_prog_gnu_ld" = yes; then
9786
soname_spec='${libname}${release}${shared_ext}$major'
9787
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9789
irix5* | nonstopux*)
9793
case $LD in # libtool.m4 will add one of these switches to LD
9794
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9795
libsuff= shlibsuff= libmagic=32-bit;;
9796
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9797
libsuff=32 shlibsuff=N32 libmagic=N32;;
9798
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9799
libsuff=64 shlibsuff=64 libmagic=64-bit;;
9800
*) libsuff= shlibsuff= libmagic=never-match;;
9804
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9805
shlibpath_overrides_runpath=no
9806
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9807
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9808
hardcode_into_libs=yes
9811
# No shared lib support for Linux oldld, aout, or coff.
9812
linux*oldld* | linux*aout* | linux*coff*)
9816
# This must be Linux ELF.
9817
linux* | k*bsd*-gnu)
9821
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9822
soname_spec='${libname}${release}${shared_ext}$major'
9823
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9824
shlibpath_var=LD_LIBRARY_PATH
9825
shlibpath_overrides_runpath=no
9826
# This implies no fast_install, which is unacceptable.
9827
# Some rework will be needed to allow for fast_install
9828
# before this can be enabled.
9829
hardcode_into_libs=yes
9831
# Append ld.so.conf contents to the search path
9832
if test -f /etc/ld.so.conf; then
9833
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' ' '`
9834
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9837
# We used to test for /lib/ld.so.1 and disable shared libraries on
9838
# powerpc, because MkLinux only supported shared libraries with the
9839
# GNU dynamic linker. Since this was broken with cross compilers,
9840
# most powerpc-linux boxes support dynamic linking these days and
9841
# people can always --disable-shared, the test was removed, and we
9842
# assume the GNU/Linux dynamic linker is in use.
9843
dynamic_linker='GNU/Linux ld.so'
9850
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9851
soname_spec='${libname}${release}${shared_ext}$major'
9852
shlibpath_var=LD_LIBRARY_PATH
9853
shlibpath_overrides_runpath=no
9854
hardcode_into_libs=yes
9855
dynamic_linker='NetBSD ld.elf_so'
9862
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9863
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9864
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9865
dynamic_linker='NetBSD (a.out) ld.so'
9867
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9868
soname_spec='${libname}${release}${shared_ext}$major'
9869
dynamic_linker='NetBSD ld.elf_so'
9871
shlibpath_var=LD_LIBRARY_PATH
9872
shlibpath_overrides_runpath=yes
9873
hardcode_into_libs=yes
9878
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9879
shlibpath_var=LD_LIBRARY_PATH
9880
shlibpath_overrides_runpath=yes
9887
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9888
soname_spec='${libname}${release}${shared_ext}$major'
9889
shlibpath_var=LD_LIBRARY_PATH
9890
shlibpath_overrides_runpath=yes
9895
sys_lib_dlsearch_path_spec="/usr/lib"
9897
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9899
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9900
*) need_version=no ;;
9902
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9903
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9904
shlibpath_var=LD_LIBRARY_PATH
9905
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9907
openbsd2.[89] | openbsd2.[89].*)
9908
shlibpath_overrides_runpath=no
9911
shlibpath_overrides_runpath=yes
9915
shlibpath_overrides_runpath=yes
9920
libname_spec='$name'
9923
library_names_spec='$libname${shared_ext} $libname.a'
9924
dynamic_linker='OS/2 ld.exe'
9925
shlibpath_var=LIBPATH
9928
osf3* | osf4* | osf5*)
9932
soname_spec='${libname}${release}${shared_ext}$major'
9933
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9934
shlibpath_var=LD_LIBRARY_PATH
9935
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9936
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9947
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9948
soname_spec='${libname}${release}${shared_ext}$major'
9949
shlibpath_var=LD_LIBRARY_PATH
9950
shlibpath_overrides_runpath=yes
9951
hardcode_into_libs=yes
9952
# ldd complains unless libraries are executable
9953
postinstall_cmds='chmod +x $lib'
9958
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9959
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9960
shlibpath_var=LD_LIBRARY_PATH
9961
shlibpath_overrides_runpath=yes
9962
if test "$with_gnu_ld" = yes; then
9970
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9971
soname_spec='${libname}${release}${shared_ext}$major'
9972
shlibpath_var=LD_LIBRARY_PATH
9973
case $host_vendor in
9975
shlibpath_overrides_runpath=no
9977
export_dynamic_flag_spec='${wl}-Blargedynsym'
9978
runpath_var=LD_RUN_PATH
9986
shlibpath_overrides_runpath=no
9987
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9993
if test -d /usr/nec ;then
9995
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9996
soname_spec='$libname${shared_ext}.$major'
9997
shlibpath_var=LD_LIBRARY_PATH
10001
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10002
version_type=freebsd-elf
10005
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10006
soname_spec='${libname}${release}${shared_ext}$major'
10007
shlibpath_var=LD_LIBRARY_PATH
10008
hardcode_into_libs=yes
10009
if test "$with_gnu_ld" = yes; then
10010
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10011
shlibpath_overrides_runpath=no
10013
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10014
shlibpath_overrides_runpath=yes
10017
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10021
sys_lib_dlsearch_path_spec='/usr/lib'
10026
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10027
soname_spec='${libname}${release}${shared_ext}$major'
10028
shlibpath_var=LD_LIBRARY_PATH
10035
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10036
echo "${ECHO_T}$dynamic_linker" >&6; }
10037
test "$dynamic_linker" = no && can_build_shared=no
10039
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10040
echo $ECHO_N "(cached) $ECHO_C" >&6
10042
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
10045
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10046
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10047
echo $ECHO_N "(cached) $ECHO_C" >&6
10049
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
10052
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10054
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10055
if test "$GCC" = yes; then
10056
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10059
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10060
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10062
if test -n "$hardcode_libdir_flag_spec" || \
10063
test -n "$runpath_var" || \
10064
test "X$hardcode_automatic" = "Xyes" ; then
10066
# We can hardcode non-existant directories.
10067
if test "$hardcode_direct" != no &&
10068
# If the only mechanism to avoid hardcoding is shlibpath_var, we
10069
# have to relink, otherwise we might link with an installed library
10070
# when we should be linking with a yet-to-be-installed one
10071
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10072
test "$hardcode_minus_L" != no; then
10073
# Linking always hardcodes the temporary library directory.
10074
hardcode_action=relink
10076
# We can link without hardcoding, and we can hardcode nonexisting dirs.
10077
hardcode_action=immediate
10080
# We cannot hardcode anything, or else we can only hardcode existing
10082
hardcode_action=unsupported
10084
{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
10085
echo "${ECHO_T}$hardcode_action" >&6; }
10087
if test "$hardcode_action" = relink; then
10088
# Fast installation is not supported
10089
enable_fast_install=no
10090
elif test "$shlibpath_overrides_runpath" = yes ||
10091
test "$enable_shared" = no; then
10092
# Fast installation is not necessary
10093
enable_fast_install=needless
10098
{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10099
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10100
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10101
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10102
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10103
{ echo "$as_me:$LINENO: result: yes" >&5
10104
echo "${ECHO_T}yes" >&6; }
10106
# FIXME - insert some real tests, host_os isn't really good enough
10109
if test -n "$STRIP" ; then
10110
striplib="$STRIP -x"
10111
old_striplib="$STRIP -S"
10112
{ echo "$as_me:$LINENO: result: yes" >&5
10113
echo "${ECHO_T}yes" >&6; }
10115
{ echo "$as_me:$LINENO: result: no" >&5
10116
echo "${ECHO_T}no" >&6; }
10120
{ echo "$as_me:$LINENO: result: no" >&5
10121
echo "${ECHO_T}no" >&6; }
10126
if test "x$enable_dlopen" != xyes; then
10127
enable_dlopen=unknown
10128
enable_dlopen_self=unknown
10129
enable_dlopen_self_static=unknown
10136
lt_cv_dlopen="load_add_on"
10138
lt_cv_dlopen_self=yes
10142
lt_cv_dlopen="LoadLibrary"
10147
lt_cv_dlopen="dlopen"
10152
# if libdl is installed we need to link against it
10153
{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10154
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10155
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10156
echo $ECHO_N "(cached) $ECHO_C" >&6
10158
ac_check_lib_save_LIBS=$LIBS
10160
cat >conftest.$ac_ext <<_ACEOF
10163
cat confdefs.h >>conftest.$ac_ext
10164
cat >>conftest.$ac_ext <<_ACEOF
10165
/* end confdefs.h. */
10167
/* Override any GCC internal prototype to avoid an error.
10168
Use char because int might match the return type of a GCC
10169
builtin and then its argument prototype would still apply. */
10182
rm -f conftest.$ac_objext conftest$ac_exeext
10183
if { (ac_try="$ac_link"
10184
case "(($ac_try" in
10185
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10186
*) ac_try_echo=$ac_try;;
10188
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10189
(eval "$ac_link") 2>conftest.er1
10191
grep -v '^ *+' conftest.er1 >conftest.err
10193
cat conftest.err >&5
10194
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10195
(exit $ac_status); } && {
10196
test -z "$ac_c_werror_flag" ||
10197
test ! -s conftest.err
10198
} && test -s conftest$ac_exeext &&
10199
$as_test_x conftest$ac_exeext; then
10200
ac_cv_lib_dl_dlopen=yes
10202
echo "$as_me: failed program was:" >&5
10203
sed 's/^/| /' conftest.$ac_ext >&5
10205
ac_cv_lib_dl_dlopen=no
10208
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10209
conftest$ac_exeext conftest.$ac_ext
10210
LIBS=$ac_check_lib_save_LIBS
10212
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10213
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10214
if test $ac_cv_lib_dl_dlopen = yes; then
10215
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10218
lt_cv_dlopen="dyld"
10220
lt_cv_dlopen_self=yes
10227
{ echo "$as_me:$LINENO: checking for shl_load" >&5
10228
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10229
if test "${ac_cv_func_shl_load+set}" = set; then
10230
echo $ECHO_N "(cached) $ECHO_C" >&6
10232
cat >conftest.$ac_ext <<_ACEOF
10235
cat confdefs.h >>conftest.$ac_ext
10236
cat >>conftest.$ac_ext <<_ACEOF
10237
/* end confdefs.h. */
10238
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10239
For example, HP-UX 11i <limits.h> declares gettimeofday. */
10240
#define shl_load innocuous_shl_load
10242
/* System header to define __stub macros and hopefully few prototypes,
10243
which can conflict with char shl_load (); below.
10244
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10245
<limits.h> exists even on freestanding compilers. */
10248
# include <limits.h>
10250
# include <assert.h>
10255
/* Override any GCC internal prototype to avoid an error.
10256
Use char because int might match the return type of a GCC
10257
builtin and then its argument prototype would still apply. */
10262
/* The GNU C library defines this for functions which it implements
10263
to always fail with ENOSYS. Some functions are actually named
10264
something starting with __ and the normal name is an alias. */
10265
#if defined __stub_shl_load || defined __stub___shl_load
10272
return shl_load ();
10277
rm -f conftest.$ac_objext conftest$ac_exeext
10278
if { (ac_try="$ac_link"
10279
case "(($ac_try" in
10280
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10281
*) ac_try_echo=$ac_try;;
10283
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10284
(eval "$ac_link") 2>conftest.er1
10286
grep -v '^ *+' conftest.er1 >conftest.err
10288
cat conftest.err >&5
10289
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10290
(exit $ac_status); } && {
10291
test -z "$ac_c_werror_flag" ||
10292
test ! -s conftest.err
10293
} && test -s conftest$ac_exeext &&
10294
$as_test_x conftest$ac_exeext; then
10295
ac_cv_func_shl_load=yes
10297
echo "$as_me: failed program was:" >&5
10298
sed 's/^/| /' conftest.$ac_ext >&5
10300
ac_cv_func_shl_load=no
10303
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10304
conftest$ac_exeext conftest.$ac_ext
10306
{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10307
echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10308
if test $ac_cv_func_shl_load = yes; then
10309
lt_cv_dlopen="shl_load"
10311
{ echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10312
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10313
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10314
echo $ECHO_N "(cached) $ECHO_C" >&6
10316
ac_check_lib_save_LIBS=$LIBS
10318
cat >conftest.$ac_ext <<_ACEOF
10321
cat confdefs.h >>conftest.$ac_ext
10322
cat >>conftest.$ac_ext <<_ACEOF
10323
/* end confdefs.h. */
10325
/* Override any GCC internal prototype to avoid an error.
10326
Use char because int might match the return type of a GCC
10327
builtin and then its argument prototype would still apply. */
10335
return shl_load ();
10340
rm -f conftest.$ac_objext conftest$ac_exeext
10341
if { (ac_try="$ac_link"
10342
case "(($ac_try" in
10343
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10344
*) ac_try_echo=$ac_try;;
10346
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10347
(eval "$ac_link") 2>conftest.er1
10349
grep -v '^ *+' conftest.er1 >conftest.err
10351
cat conftest.err >&5
10352
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10353
(exit $ac_status); } && {
10354
test -z "$ac_c_werror_flag" ||
10355
test ! -s conftest.err
10356
} && test -s conftest$ac_exeext &&
10357
$as_test_x conftest$ac_exeext; then
10358
ac_cv_lib_dld_shl_load=yes
10360
echo "$as_me: failed program was:" >&5
10361
sed 's/^/| /' conftest.$ac_ext >&5
10363
ac_cv_lib_dld_shl_load=no
10366
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10367
conftest$ac_exeext conftest.$ac_ext
10368
LIBS=$ac_check_lib_save_LIBS
10370
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10371
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10372
if test $ac_cv_lib_dld_shl_load = yes; then
10373
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10375
{ echo "$as_me:$LINENO: checking for dlopen" >&5
10376
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10377
if test "${ac_cv_func_dlopen+set}" = set; then
10378
echo $ECHO_N "(cached) $ECHO_C" >&6
10380
cat >conftest.$ac_ext <<_ACEOF
10383
cat confdefs.h >>conftest.$ac_ext
10384
cat >>conftest.$ac_ext <<_ACEOF
10385
/* end confdefs.h. */
10386
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10387
For example, HP-UX 11i <limits.h> declares gettimeofday. */
10388
#define dlopen innocuous_dlopen
10390
/* System header to define __stub macros and hopefully few prototypes,
10391
which can conflict with char dlopen (); below.
10392
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10393
<limits.h> exists even on freestanding compilers. */
10396
# include <limits.h>
10398
# include <assert.h>
10403
/* Override any GCC internal prototype to avoid an error.
10404
Use char because int might match the return type of a GCC
10405
builtin and then its argument prototype would still apply. */
10410
/* The GNU C library defines this for functions which it implements
10411
to always fail with ENOSYS. Some functions are actually named
10412
something starting with __ and the normal name is an alias. */
10413
#if defined __stub_dlopen || defined __stub___dlopen
10425
rm -f conftest.$ac_objext conftest$ac_exeext
10426
if { (ac_try="$ac_link"
10427
case "(($ac_try" in
10428
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10429
*) ac_try_echo=$ac_try;;
10431
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10432
(eval "$ac_link") 2>conftest.er1
10434
grep -v '^ *+' conftest.er1 >conftest.err
10436
cat conftest.err >&5
10437
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10438
(exit $ac_status); } && {
10439
test -z "$ac_c_werror_flag" ||
10440
test ! -s conftest.err
10441
} && test -s conftest$ac_exeext &&
10442
$as_test_x conftest$ac_exeext; then
10443
ac_cv_func_dlopen=yes
10445
echo "$as_me: failed program was:" >&5
10446
sed 's/^/| /' conftest.$ac_ext >&5
10448
ac_cv_func_dlopen=no
10451
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10452
conftest$ac_exeext conftest.$ac_ext
10454
{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10455
echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10456
if test $ac_cv_func_dlopen = yes; then
10457
lt_cv_dlopen="dlopen"
10459
{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10460
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10461
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10462
echo $ECHO_N "(cached) $ECHO_C" >&6
10464
ac_check_lib_save_LIBS=$LIBS
10466
cat >conftest.$ac_ext <<_ACEOF
10469
cat confdefs.h >>conftest.$ac_ext
10470
cat >>conftest.$ac_ext <<_ACEOF
10471
/* end confdefs.h. */
10473
/* Override any GCC internal prototype to avoid an error.
10474
Use char because int might match the return type of a GCC
10475
builtin and then its argument prototype would still apply. */
10488
rm -f conftest.$ac_objext conftest$ac_exeext
10489
if { (ac_try="$ac_link"
10490
case "(($ac_try" in
10491
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10492
*) ac_try_echo=$ac_try;;
10494
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10495
(eval "$ac_link") 2>conftest.er1
10497
grep -v '^ *+' conftest.er1 >conftest.err
10499
cat conftest.err >&5
10500
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10501
(exit $ac_status); } && {
10502
test -z "$ac_c_werror_flag" ||
10503
test ! -s conftest.err
10504
} && test -s conftest$ac_exeext &&
10505
$as_test_x conftest$ac_exeext; then
10506
ac_cv_lib_dl_dlopen=yes
10508
echo "$as_me: failed program was:" >&5
10509
sed 's/^/| /' conftest.$ac_ext >&5
10511
ac_cv_lib_dl_dlopen=no
10514
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10515
conftest$ac_exeext conftest.$ac_ext
10516
LIBS=$ac_check_lib_save_LIBS
10518
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10519
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10520
if test $ac_cv_lib_dl_dlopen = yes; then
10521
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10523
{ echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10524
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10525
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10526
echo $ECHO_N "(cached) $ECHO_C" >&6
10528
ac_check_lib_save_LIBS=$LIBS
10529
LIBS="-lsvld $LIBS"
10530
cat >conftest.$ac_ext <<_ACEOF
10533
cat confdefs.h >>conftest.$ac_ext
10534
cat >>conftest.$ac_ext <<_ACEOF
10535
/* end confdefs.h. */
10537
/* Override any GCC internal prototype to avoid an error.
10538
Use char because int might match the return type of a GCC
10539
builtin and then its argument prototype would still apply. */
10552
rm -f conftest.$ac_objext conftest$ac_exeext
10553
if { (ac_try="$ac_link"
10554
case "(($ac_try" in
10555
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10556
*) ac_try_echo=$ac_try;;
10558
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10559
(eval "$ac_link") 2>conftest.er1
10561
grep -v '^ *+' conftest.er1 >conftest.err
10563
cat conftest.err >&5
10564
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10565
(exit $ac_status); } && {
10566
test -z "$ac_c_werror_flag" ||
10567
test ! -s conftest.err
10568
} && test -s conftest$ac_exeext &&
10569
$as_test_x conftest$ac_exeext; then
10570
ac_cv_lib_svld_dlopen=yes
10572
echo "$as_me: failed program was:" >&5
10573
sed 's/^/| /' conftest.$ac_ext >&5
10575
ac_cv_lib_svld_dlopen=no
10578
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10579
conftest$ac_exeext conftest.$ac_ext
10580
LIBS=$ac_check_lib_save_LIBS
10582
{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10583
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10584
if test $ac_cv_lib_svld_dlopen = yes; then
10585
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10587
{ echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10588
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10589
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10590
echo $ECHO_N "(cached) $ECHO_C" >&6
10592
ac_check_lib_save_LIBS=$LIBS
10594
cat >conftest.$ac_ext <<_ACEOF
10597
cat confdefs.h >>conftest.$ac_ext
10598
cat >>conftest.$ac_ext <<_ACEOF
10599
/* end confdefs.h. */
10601
/* Override any GCC internal prototype to avoid an error.
10602
Use char because int might match the return type of a GCC
10603
builtin and then its argument prototype would still apply. */
10611
return dld_link ();
10616
rm -f conftest.$ac_objext conftest$ac_exeext
10617
if { (ac_try="$ac_link"
10618
case "(($ac_try" in
10619
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10620
*) ac_try_echo=$ac_try;;
10622
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10623
(eval "$ac_link") 2>conftest.er1
10625
grep -v '^ *+' conftest.er1 >conftest.err
10627
cat conftest.err >&5
10628
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10629
(exit $ac_status); } && {
10630
test -z "$ac_c_werror_flag" ||
10631
test ! -s conftest.err
10632
} && test -s conftest$ac_exeext &&
10633
$as_test_x conftest$ac_exeext; then
10634
ac_cv_lib_dld_dld_link=yes
10636
echo "$as_me: failed program was:" >&5
10637
sed 's/^/| /' conftest.$ac_ext >&5
10639
ac_cv_lib_dld_dld_link=no
10642
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10643
conftest$ac_exeext conftest.$ac_ext
10644
LIBS=$ac_check_lib_save_LIBS
10646
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10647
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10648
if test $ac_cv_lib_dld_dld_link = yes; then
10649
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10670
if test "x$lt_cv_dlopen" != xno; then
10676
case $lt_cv_dlopen in
10678
save_CPPFLAGS="$CPPFLAGS"
10679
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10681
save_LDFLAGS="$LDFLAGS"
10682
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10685
LIBS="$lt_cv_dlopen_libs $LIBS"
10687
{ echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10688
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10689
if test "${lt_cv_dlopen_self+set}" = set; then
10690
echo $ECHO_N "(cached) $ECHO_C" >&6
10692
if test "$cross_compiling" = yes; then :
10693
lt_cv_dlopen_self=cross
10695
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10696
lt_status=$lt_dlunknown
10697
cat > conftest.$ac_ext <<EOF
10698
#line 10698 "configure"
10699
#include "confdefs.h"
10708
# define LT_DLGLOBAL RTLD_GLOBAL
10711
# define LT_DLGLOBAL DL_GLOBAL
10713
# define LT_DLGLOBAL 0
10717
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10718
find out it does not work in some platform. */
10719
#ifndef LT_DLLAZY_OR_NOW
10721
# define LT_DLLAZY_OR_NOW RTLD_LAZY
10724
# define LT_DLLAZY_OR_NOW DL_LAZY
10727
# define LT_DLLAZY_OR_NOW RTLD_NOW
10730
# define LT_DLLAZY_OR_NOW DL_NOW
10732
# define LT_DLLAZY_OR_NOW 0
10740
extern "C" void exit (int);
10743
void fnord() { int i=42;}
10746
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10747
int status = $lt_dlunknown;
10751
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10752
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10753
/* dlclose (self); */
10761
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10762
(eval $ac_link) 2>&5
10764
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10765
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10766
(./conftest; exit; ) >&5 2>/dev/null
10768
case x$lt_status in
10769
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10770
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10771
x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10774
# compilation failed
10775
lt_cv_dlopen_self=no
10782
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10783
echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10785
if test "x$lt_cv_dlopen_self" = xyes; then
10786
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10787
{ echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10788
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10789
if test "${lt_cv_dlopen_self_static+set}" = set; then
10790
echo $ECHO_N "(cached) $ECHO_C" >&6
10792
if test "$cross_compiling" = yes; then :
10793
lt_cv_dlopen_self_static=cross
10795
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10796
lt_status=$lt_dlunknown
10797
cat > conftest.$ac_ext <<EOF
10798
#line 10798 "configure"
10799
#include "confdefs.h"
10808
# define LT_DLGLOBAL RTLD_GLOBAL
10811
# define LT_DLGLOBAL DL_GLOBAL
10813
# define LT_DLGLOBAL 0
10817
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10818
find out it does not work in some platform. */
10819
#ifndef LT_DLLAZY_OR_NOW
10821
# define LT_DLLAZY_OR_NOW RTLD_LAZY
10824
# define LT_DLLAZY_OR_NOW DL_LAZY
10827
# define LT_DLLAZY_OR_NOW RTLD_NOW
10830
# define LT_DLLAZY_OR_NOW DL_NOW
10832
# define LT_DLLAZY_OR_NOW 0
10840
extern "C" void exit (int);
10843
void fnord() { int i=42;}
10846
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10847
int status = $lt_dlunknown;
10851
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10852
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10853
/* dlclose (self); */
10861
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10862
(eval $ac_link) 2>&5
10864
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10865
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10866
(./conftest; exit; ) >&5 2>/dev/null
10868
case x$lt_status in
10869
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10870
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10871
x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10874
# compilation failed
10875
lt_cv_dlopen_self_static=no
10882
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10883
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10886
CPPFLAGS="$save_CPPFLAGS"
10887
LDFLAGS="$save_LDFLAGS"
10892
case $lt_cv_dlopen_self in
10893
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10894
*) enable_dlopen_self=unknown ;;
10897
case $lt_cv_dlopen_self_static in
10898
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10899
*) enable_dlopen_self_static=unknown ;;
10904
# Report which library types will actually be built
10905
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10906
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10907
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
10908
echo "${ECHO_T}$can_build_shared" >&6; }
10910
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10911
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10912
test "$can_build_shared" = "no" && enable_shared=no
10914
# On AIX, shared libraries and static libraries use the same namespace, and
10915
# are all built from PIC.
10918
test "$enable_shared" = yes && enable_static=no
10919
if test -n "$RANLIB"; then
10920
archive_cmds="$archive_cmds~\$RANLIB \$lib"
10921
postinstall_cmds='$RANLIB $lib'
10926
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10927
test "$enable_shared" = yes && enable_static=no
10931
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10932
echo "${ECHO_T}$enable_shared" >&6; }
10934
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10935
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10936
# Make sure either enable_shared or enable_static is yes.
10937
test "$enable_shared" = yes || enable_static=yes
10938
{ echo "$as_me:$LINENO: result: $enable_static" >&5
10939
echo "${ECHO_T}$enable_static" >&6; }
10941
# The else clause should only fire when bootstrapping the
10942
# libtool distribution, otherwise you forgot to ship ltmain.sh
10943
# with your package, and you will get complaints that there are
10944
# no rules to generate ltmain.sh.
10945
if test -f "$ltmain"; then
10946
# See if we are running on zsh, and set the options which allow our commands through
10947
# without removal of \ escapes.
10948
if test -n "${ZSH_VERSION+set}" ; then
10949
setopt NO_GLOB_SUBST
10951
# Now quote all the things that may contain metacharacters while being
10952
# careful not to overquote the AC_SUBSTed values. We take copies of the
10953
# variables and quote the copies for generation of the libtool script.
10954
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10956
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10957
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10958
deplibs_check_method reload_flag reload_cmds need_locks \
10959
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10960
lt_cv_sys_global_symbol_to_c_name_address \
10961
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10962
old_postinstall_cmds old_postuninstall_cmds \
10966
lt_prog_compiler_wl \
10967
lt_prog_compiler_pic \
10968
lt_prog_compiler_static \
10969
lt_prog_compiler_no_builtin_flag \
10970
export_dynamic_flag_spec \
10971
thread_safe_flag_spec \
10972
whole_archive_flag_spec \
10973
enable_shared_with_static_runtimes \
10975
old_archive_from_new_cmds \
10980
compiler_lib_search_path \
10981
compiler_lib_search_dirs \
10983
archive_expsym_cmds \
10985
postuninstall_cmds \
10986
old_archive_from_expsyms_cmds \
10987
allow_undefined_flag \
10988
no_undefined_flag \
10989
export_symbols_cmds \
10990
hardcode_libdir_flag_spec \
10991
hardcode_libdir_flag_spec_ld \
10992
hardcode_libdir_separator \
10993
hardcode_automatic \
10995
module_expsym_cmds \
10996
lt_cv_prog_compiler_c_o \
10999
include_expsyms; do
11002
old_archive_cmds | \
11003
old_archive_from_new_cmds | \
11005
archive_expsym_cmds | \
11007
module_expsym_cmds | \
11008
old_archive_from_expsyms_cmds | \
11009
export_symbols_cmds | \
11010
extract_expsyms_cmds | reload_cmds | finish_cmds | \
11011
postinstall_cmds | postuninstall_cmds | \
11012
old_postinstall_cmds | old_postuninstall_cmds | \
11013
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11014
# Double-quote double-evaled strings.
11015
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11018
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11024
*'\$0 --fallback-echo"')
11025
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11029
cfgfile="${ofile}T"
11030
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11032
{ echo "$as_me:$LINENO: creating $ofile" >&5
11033
echo "$as_me: creating $ofile" >&6;}
11035
cat <<__EOF__ >> "$cfgfile"
11038
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11039
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11040
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
11042
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
11043
# Free Software Foundation, Inc.
11045
# This file is part of GNU Libtool:
11046
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11048
# This program is free software; you can redistribute it and/or modify
11049
# it under the terms of the GNU General Public License as published by
11050
# the Free Software Foundation; either version 2 of the License, or
11051
# (at your option) any later version.
11053
# This program is distributed in the hope that it will be useful, but
11054
# WITHOUT ANY WARRANTY; without even the implied warranty of
11055
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11056
# General Public License for more details.
11058
# You should have received a copy of the GNU General Public License
11059
# along with this program; if not, write to the Free Software
11060
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11062
# As a special exception to the GNU General Public License, if you
11063
# distribute this file as part of a program that contains a
11064
# configuration script generated by Autoconf, you may include it under
11065
# the same distribution terms that you use for the rest of that program.
11067
# A sed program that does not truncate output.
11070
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
11071
Xsed="$SED -e 1s/^X//"
11073
# The HP-UX ksh and POSIX shell print the target directory to stdout
11074
# if CDPATH is set.
11075
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11077
# The names of the tagged configurations supported by this script.
11080
# ### BEGIN LIBTOOL CONFIG
11082
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11084
# Shell to use when invoking shell scripts.
11087
# Whether or not to build shared libraries.
11088
build_libtool_libs=$enable_shared
11090
# Whether or not to build static libraries.
11091
build_old_libs=$enable_static
11093
# Whether or not to add -lc for building shared libraries.
11094
build_libtool_need_lc=$archive_cmds_need_lc
11096
# Whether or not to disallow shared libs when runtime libs are static
11097
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11099
# Whether or not to optimize for fast installation.
11100
fast_install=$enable_fast_install
11103
host_alias=$host_alias
11107
# The build system.
11108
build_alias=$build_alias
11112
# An echo program that does not interpret backslashes.
11117
AR_FLAGS=$lt_AR_FLAGS
11122
# LTCC compiler flags.
11123
LTCFLAGS=$lt_LTCFLAGS
11125
# A language-specific compiler.
11128
# Is the compiler the GNU C compiler?
11134
# The linker used to build libraries.
11137
# Whether we need hard or soft links.
11140
# A BSD-compatible nm program.
11143
# A symbol stripping program
11146
# Used to examine libraries when file_magic_cmd begins "file"
11147
MAGIC_CMD=$MAGIC_CMD
11149
# Used on cygwin: DLL creation program.
11152
# Used on cygwin: object dumper.
11155
# Used on cygwin: assembler.
11158
# The name of the directory that contains temporary libtool files.
11161
# How to create reloadable object files.
11162
reload_flag=$lt_reload_flag
11163
reload_cmds=$lt_reload_cmds
11165
# How to pass a linker flag through the compiler.
11166
wl=$lt_lt_prog_compiler_wl
11168
# Object file suffix (normally "o").
11169
objext="$ac_objext"
11171
# Old archive suffix (normally "a").
11174
# Shared library suffix (normally ".so").
11175
shrext_cmds='$shrext_cmds'
11177
# Executable file suffix (normally "").
11180
# Additional compiler flags for building library objects.
11181
pic_flag=$lt_lt_prog_compiler_pic
11184
# What is the maximum length of a command?
11185
max_cmd_len=$lt_cv_sys_max_cmd_len
11187
# Does compiler simultaneously support -c and -o options?
11188
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11190
# Must we lock files when doing compilation?
11191
need_locks=$lt_need_locks
11193
# Do we need the lib prefix for modules?
11194
need_lib_prefix=$need_lib_prefix
11196
# Do we need a version for libraries?
11197
need_version=$need_version
11199
# Whether dlopen is supported.
11200
dlopen_support=$enable_dlopen
11202
# Whether dlopen of programs is supported.
11203
dlopen_self=$enable_dlopen_self
11205
# Whether dlopen of statically linked programs is supported.
11206
dlopen_self_static=$enable_dlopen_self_static
11208
# Compiler flag to prevent dynamic linking.
11209
link_static_flag=$lt_lt_prog_compiler_static
11211
# Compiler flag to turn off builtin functions.
11212
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11214
# Compiler flag to allow reflexive dlopens.
11215
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11217
# Compiler flag to generate shared objects directly from archives.
11218
whole_archive_flag_spec=$lt_whole_archive_flag_spec
11220
# Compiler flag to generate thread-safe objects.
11221
thread_safe_flag_spec=$lt_thread_safe_flag_spec
11223
# Library versioning type.
11224
version_type=$version_type
11226
# Format of library name prefix.
11227
libname_spec=$lt_libname_spec
11229
# List of archive names. First name is the real one, the rest are links.
11230
# The last name is the one that the linker finds with -lNAME.
11231
library_names_spec=$lt_library_names_spec
11233
# The coded name of the library, if different from the real name.
11234
soname_spec=$lt_soname_spec
11236
# Commands used to build and install an old-style archive.
11238
old_archive_cmds=$lt_old_archive_cmds
11239
old_postinstall_cmds=$lt_old_postinstall_cmds
11240
old_postuninstall_cmds=$lt_old_postuninstall_cmds
11242
# Create an old-style archive from a shared archive.
11243
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11245
# Create a temporary old-style archive to link instead of a shared archive.
11246
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11248
# Commands used to build and install a shared archive.
11249
archive_cmds=$lt_archive_cmds
11250
archive_expsym_cmds=$lt_archive_expsym_cmds
11251
postinstall_cmds=$lt_postinstall_cmds
11252
postuninstall_cmds=$lt_postuninstall_cmds
11254
# Commands used to build a loadable module (assumed same as above if empty)
11255
module_cmds=$lt_module_cmds
11256
module_expsym_cmds=$lt_module_expsym_cmds
11258
# Commands to strip libraries.
11259
old_striplib=$lt_old_striplib
11260
striplib=$lt_striplib
11262
# Dependencies to place before the objects being linked to create a
11264
predep_objects=$lt_predep_objects
11266
# Dependencies to place after the objects being linked to create a
11268
postdep_objects=$lt_postdep_objects
11270
# Dependencies to place before the objects being linked to create a
11272
predeps=$lt_predeps
11274
# Dependencies to place after the objects being linked to create a
11276
postdeps=$lt_postdeps
11278
# The directories searched by this compiler when creating a shared
11280
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
11282
# The library search path used internally by the compiler when linking
11283
# a shared library.
11284
compiler_lib_search_path=$lt_compiler_lib_search_path
11286
# Method to check whether dependent libraries are shared objects.
11287
deplibs_check_method=$lt_deplibs_check_method
11289
# Command to use when deplibs_check_method == file_magic.
11290
file_magic_cmd=$lt_file_magic_cmd
11292
# Flag that allows shared libraries with undefined symbols to be built.
11293
allow_undefined_flag=$lt_allow_undefined_flag
11295
# Flag that forces no undefined symbols.
11296
no_undefined_flag=$lt_no_undefined_flag
11298
# Commands used to finish a libtool library installation in a directory.
11299
finish_cmds=$lt_finish_cmds
11301
# Same as above, but a single script fragment to be evaled but not shown.
11302
finish_eval=$lt_finish_eval
11304
# Take the output of nm and produce a listing of raw symbols and C names.
11305
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11307
# Transform the output of nm in a proper C declaration
11308
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11310
# Transform the output of nm in a C name address pair
11311
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11313
# This is the shared library runtime path variable.
11314
runpath_var=$runpath_var
11316
# This is the shared library path variable.
11317
shlibpath_var=$shlibpath_var
11319
# Is shlibpath searched before the hard-coded library search path?
11320
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11322
# How to hardcode a shared library path into an executable.
11323
hardcode_action=$hardcode_action
11325
# Whether we should hardcode library paths into libraries.
11326
hardcode_into_libs=$hardcode_into_libs
11328
# Flag to hardcode \$libdir into a binary during linking.
11329
# This must work even if \$libdir does not exist.
11330
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11332
# If ld is used when linking, flag to hardcode \$libdir into
11333
# a binary during linking. This must work even if \$libdir does
11335
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11337
# Whether we need a single -rpath flag with a separated argument.
11338
hardcode_libdir_separator=$lt_hardcode_libdir_separator
11340
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11341
# resulting binary.
11342
hardcode_direct=$hardcode_direct
11344
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11345
# resulting binary.
11346
hardcode_minus_L=$hardcode_minus_L
11348
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11349
# the resulting binary.
11350
hardcode_shlibpath_var=$hardcode_shlibpath_var
11352
# Set to yes if building a shared library automatically hardcodes DIR into the library
11353
# and all subsequent libraries and executables linked against it.
11354
hardcode_automatic=$hardcode_automatic
11356
# Variables whose values should be saved in libtool wrapper scripts and
11357
# restored at relink time.
11358
variables_saved_for_relink="$variables_saved_for_relink"
11360
# Whether libtool must link a program against all its dependency libraries.
11361
link_all_deplibs=$link_all_deplibs
11363
# Compile-time system search path for libraries
11364
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11366
# Run-time system search path for libraries
11367
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11369
# Fix the shell variable \$srcfile for the compiler.
11370
fix_srcfile_path=$lt_fix_srcfile_path
11372
# Set to yes if exported symbols are required.
11373
always_export_symbols=$always_export_symbols
11375
# The commands to list exported symbols.
11376
export_symbols_cmds=$lt_export_symbols_cmds
11378
# The commands to extract the exported symbol list from a shared archive.
11379
extract_expsyms_cmds=$lt_extract_expsyms_cmds
11381
# Symbols that should not be listed in the preloaded symbols.
11382
exclude_expsyms=$lt_exclude_expsyms
11384
# Symbols that must always be exported.
11385
include_expsyms=$lt_include_expsyms
11387
# ### END LIBTOOL CONFIG
11394
cat <<\EOF >> "$cfgfile"
11396
# AIX sometimes has problems with the GCC collect2 program. For some
11397
# reason, if we set the COLLECT_NAMES environment variable, the problems
11398
# vanish in a puff of smoke.
11399
if test "X${COLLECT_NAMES+set}" != Xset; then
11401
export COLLECT_NAMES
11407
# We use sed instead of cat because bash on DJGPP gets confused if
11408
# if finds mixed CR/LF and LF-only lines. Since sed operates in
11409
# text mode, it properly converts lines to CR/LF. This bash problem
11410
# is reportedly fixed, but why not run on old versions too?
11411
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11413
mv -f "$cfgfile" "$ofile" || \
11414
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11418
# If there is no Makefile yet, we rely on a make rule to execute
11419
# `config.status --recheck' to rerun these tests and create the
11420
# libtool script then.
11421
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11422
if test -f "$ltmain_in"; then
11423
test -f Makefile && make "$ltmain"
11429
ac_cpp='$CPP $CPPFLAGS'
11430
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11431
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11432
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11437
# Check whether --with-tags was given.
11438
if test "${with_tags+set}" = set; then
11439
withval=$with_tags; tagnames="$withval"
11443
if test -f "$ltmain" && test -n "$tagnames"; then
11444
if test ! -f "${ofile}"; then
11445
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11446
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11449
if test -z "$LTCC"; then
11450
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11451
if test -z "$LTCC"; then
11452
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11453
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11455
{ echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11456
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11459
if test -z "$LTCFLAGS"; then
11460
eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11463
# Extract list of available tagged configurations in $ofile.
11464
# Note that this assumes the entire list is on one line.
11465
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11467
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11468
for tagname in $tagnames; do
11470
# Check whether tagname contains only valid characters
11471
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11473
*) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11474
echo "$as_me: error: invalid tag name: $tagname" >&2;}
11475
{ (exit 1); exit 1; }; }
11479
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11481
{ { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11482
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11483
{ (exit 1); exit 1; }; }
11486
# Update the list of available tags.
11487
if test -n "$tagname"; then
11488
echo appending configuration tag \"$tagname\" to $ofile
11492
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11493
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11494
(test "X$CXX" != "Xg++"))) ; then
11496
ac_cpp='$CXXCPP $CPPFLAGS'
11497
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11498
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11499
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11504
archive_cmds_need_lc_CXX=no
11505
allow_undefined_flag_CXX=
11506
always_export_symbols_CXX=no
11507
archive_expsym_cmds_CXX=
11508
export_dynamic_flag_spec_CXX=
11509
hardcode_direct_CXX=no
11510
hardcode_libdir_flag_spec_CXX=
11511
hardcode_libdir_flag_spec_ld_CXX=
11512
hardcode_libdir_separator_CXX=
11513
hardcode_minus_L_CXX=no
11514
hardcode_shlibpath_var_CXX=unsupported
11515
hardcode_automatic_CXX=no
11517
module_expsym_cmds_CXX=
11518
link_all_deplibs_CXX=unknown
11519
old_archive_cmds_CXX=$old_archive_cmds
11520
no_undefined_flag_CXX=
11521
whole_archive_flag_spec_CXX=
11522
enable_shared_with_static_runtimes_CXX=no
11524
# Dependencies to place before and after the object being linked:
11525
predep_objects_CXX=
11526
postdep_objects_CXX=
11529
compiler_lib_search_path_CXX=
11530
compiler_lib_search_dirs_CXX=
11532
# Source file extension for C++ test sources.
11535
# Object file extension for compiled C++ test sources.
11539
# Code to be used in simple compile tests
11540
lt_simple_compile_test_code="int some_variable = 0;"
11542
# Code to be used in simple link tests
11543
lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11545
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11547
# If no C compiler was specified, use CC.
11550
# If no C compiler flags were specified, use CFLAGS.
11551
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11553
# Allow CC to be a program name with arguments.
11557
# save warnings/boilerplate of simple test code
11558
ac_outfile=conftest.$ac_objext
11559
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11560
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11561
_lt_compiler_boilerplate=`cat conftest.err`
11564
ac_outfile=conftest.$ac_objext
11565
echo "$lt_simple_link_test_code" >conftest.$ac_ext
11566
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11567
_lt_linker_boilerplate=`cat conftest.err`
11571
# Allow CC to be a program name with arguments.
11576
lt_save_with_gnu_ld=$with_gnu_ld
11577
lt_save_path_LD=$lt_cv_path_LD
11578
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11579
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11581
$as_unset lt_cv_prog_gnu_ld
11583
if test -n "${lt_cv_path_LDCXX+set}"; then
11584
lt_cv_path_LD=$lt_cv_path_LDCXX
11586
$as_unset lt_cv_path_LD
11588
test -z "${LDCXX+set}" || LD=$LDCXX
11592
for cc_temp in $compiler""; do
11594
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11595
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11600
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11603
# We don't want -fno-exception wen compiling C++ code, so set the
11604
# no_builtin_flag separately
11605
if test "$GXX" = yes; then
11606
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11608
lt_prog_compiler_no_builtin_flag_CXX=
11611
if test "$GXX" = yes; then
11612
# Set up default GNU C++ configuration
11615
# Check whether --with-gnu-ld was given.
11616
if test "${with_gnu_ld+set}" = set; then
11617
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11623
if test "$GCC" = yes; then
11624
# Check if gcc -print-prog-name=ld gives a path.
11625
{ echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11626
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11629
# gcc leaves a trailing carriage return which upsets mingw
11630
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11632
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11635
# Accept absolute paths.
11637
re_direlt='/[^/][^/]*/\.\./'
11638
# Canonicalize the pathname of ld
11639
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11640
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11641
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11643
test -z "$LD" && LD="$ac_prog"
11646
# If it fails, then pretend we aren't using GCC.
11650
# If it is relative, then search for the first ld in PATH.
11651
with_gnu_ld=unknown
11654
elif test "$with_gnu_ld" = yes; then
11655
{ echo "$as_me:$LINENO: checking for GNU ld" >&5
11656
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11658
{ echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11659
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11661
if test "${lt_cv_path_LD+set}" = set; then
11662
echo $ECHO_N "(cached) $ECHO_C" >&6
11664
if test -z "$LD"; then
11665
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11666
for ac_dir in $PATH; do
11668
test -z "$ac_dir" && ac_dir=.
11669
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11670
lt_cv_path_LD="$ac_dir/$ac_prog"
11671
# Check to see if the program is GNU ld. I'd rather use --version,
11672
# but apparently some variants of GNU ld only accept -v.
11673
# Break only if it was the GNU/non-GNU ld that we prefer.
11674
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11675
*GNU* | *'with BFD'*)
11676
test "$with_gnu_ld" != no && break
11679
test "$with_gnu_ld" != yes && break
11686
lt_cv_path_LD="$LD" # Let the user override the test with a path.
11690
LD="$lt_cv_path_LD"
11691
if test -n "$LD"; then
11692
{ echo "$as_me:$LINENO: result: $LD" >&5
11693
echo "${ECHO_T}$LD" >&6; }
11695
{ echo "$as_me:$LINENO: result: no" >&5
11696
echo "${ECHO_T}no" >&6; }
11698
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11699
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11700
{ (exit 1); exit 1; }; }
11701
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11702
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11703
if test "${lt_cv_prog_gnu_ld+set}" = set; then
11704
echo $ECHO_N "(cached) $ECHO_C" >&6
11706
# I'd rather use --version here, but apparently some GNU lds only accept -v.
11707
case `$LD -v 2>&1 </dev/null` in
11708
*GNU* | *'with BFD'*)
11709
lt_cv_prog_gnu_ld=yes
11712
lt_cv_prog_gnu_ld=no
11716
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11717
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11718
with_gnu_ld=$lt_cv_prog_gnu_ld
11722
# Check if GNU C++ uses GNU ld as the underlying linker, since the
11723
# archiving commands below assume that GNU ld is being used.
11724
if test "$with_gnu_ld" = yes; then
11725
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11726
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'
11728
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11729
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11731
# If archive_cmds runs LD, not CC, wlarc should be empty
11732
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11733
# investigate it a little bit more. (MM)
11736
# ancient GNU ld didn't support --whole-archive et. al.
11737
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11738
grep 'no-whole-archive' > /dev/null; then
11739
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11741
whole_archive_flag_spec_CXX=
11747
# A generic and very simple default shared library creation
11748
# command for GNU C++ for the case where it uses the native
11749
# linker, instead of GNU ld. If possible, this setting should
11750
# overridden to take advantage of the native linker features on
11751
# the platform it is being used on.
11752
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11755
# Commands to make compiler produce verbose output that lists
11756
# what "hidden" libraries, object files and flags are used when
11757
# linking a shared library.
11758
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11766
# PORTME: fill in a description of your system's C++ link characteristics
11767
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11768
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11772
# FIXME: insert proper C++ library support
11776
if test "$host_cpu" = ia64; then
11777
# On IA64, the linker does run time linking by default, so we don't
11778
# have to do anything special.
11779
aix_use_runtimelinking=no
11780
exp_sym_flag='-Bexport'
11783
aix_use_runtimelinking=no
11785
# Test if we are trying to use run time linking or normal
11786
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11787
# need to do runtime linking.
11788
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11789
for ld_flag in $LDFLAGS; do
11792
aix_use_runtimelinking=yes
11800
exp_sym_flag='-bexport'
11801
no_entry_flag='-bnoentry'
11804
# When large executables or shared objects are built, AIX ld can
11805
# have problems creating the table of contents. If linking a library
11806
# or program results in "error TOC overflow" add -mminimal-toc to
11807
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11808
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11810
archive_cmds_CXX=''
11811
hardcode_direct_CXX=yes
11812
hardcode_libdir_separator_CXX=':'
11813
link_all_deplibs_CXX=yes
11815
if test "$GXX" = yes; then
11816
case $host_os in aix4.[012]|aix4.[012].*)
11817
# We only want to do this on AIX 4.2 and lower, the check
11818
# below for broken collect2 doesn't work under 4.3+
11819
collect2name=`${CC} -print-prog-name=collect2`
11820
if test -f "$collect2name" && \
11821
strings "$collect2name" | grep resolve_lib_name >/dev/null
11823
# We have reworked collect2
11826
# We have old collect2
11827
hardcode_direct_CXX=unsupported
11828
# It fails to find uninstalled libraries when the uninstalled
11829
# path is not listed in the libpath. Setting hardcode_minus_L
11830
# to unsupported forces relinking
11831
hardcode_minus_L_CXX=yes
11832
hardcode_libdir_flag_spec_CXX='-L$libdir'
11833
hardcode_libdir_separator_CXX=
11837
shared_flag='-shared'
11838
if test "$aix_use_runtimelinking" = yes; then
11839
shared_flag="$shared_flag "'${wl}-G'
11843
if test "$host_cpu" = ia64; then
11844
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11845
# chokes on -Wl,-G. The following line is correct:
11848
if test "$aix_use_runtimelinking" = yes; then
11849
shared_flag='${wl}-G'
11851
shared_flag='${wl}-bM:SRE'
11856
# It seems that -bexpall does not export symbols beginning with
11857
# underscore (_), so it is better to generate a list of symbols to export.
11858
always_export_symbols_CXX=yes
11859
if test "$aix_use_runtimelinking" = yes; then
11860
# Warning - without using the other runtime loading flags (-brtl),
11861
# -berok will link without error, but may produce a broken library.
11862
allow_undefined_flag_CXX='-berok'
11863
# Determine the default libpath from the value encoded in an empty executable.
11864
cat >conftest.$ac_ext <<_ACEOF
11867
cat confdefs.h >>conftest.$ac_ext
11868
cat >>conftest.$ac_ext <<_ACEOF
11869
/* end confdefs.h. */
11879
rm -f conftest.$ac_objext conftest$ac_exeext
11880
if { (ac_try="$ac_link"
11881
case "(($ac_try" in
11882
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11883
*) ac_try_echo=$ac_try;;
11885
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11886
(eval "$ac_link") 2>conftest.er1
11888
grep -v '^ *+' conftest.er1 >conftest.err
11890
cat conftest.err >&5
11891
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892
(exit $ac_status); } && {
11893
test -z "$ac_cxx_werror_flag" ||
11894
test ! -s conftest.err
11895
} && test -s conftest$ac_exeext &&
11896
$as_test_x conftest$ac_exeext; then
11898
lt_aix_libpath_sed='
11899
/Import File Strings/,/^$/ {
11905
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11906
# Check for a 64-bit object if we didn't find anything.
11907
if test -z "$aix_libpath"; then
11908
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11911
echo "$as_me: failed program was:" >&5
11912
sed 's/^/| /' conftest.$ac_ext >&5
11917
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11918
conftest$ac_exeext conftest.$ac_ext
11919
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11921
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11923
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"
11925
if test "$host_cpu" = ia64; then
11926
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11927
allow_undefined_flag_CXX="-z nodefs"
11928
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"
11930
# Determine the default libpath from the value encoded in an empty executable.
11931
cat >conftest.$ac_ext <<_ACEOF
11934
cat confdefs.h >>conftest.$ac_ext
11935
cat >>conftest.$ac_ext <<_ACEOF
11936
/* end confdefs.h. */
11946
rm -f conftest.$ac_objext conftest$ac_exeext
11947
if { (ac_try="$ac_link"
11948
case "(($ac_try" in
11949
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11950
*) ac_try_echo=$ac_try;;
11952
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11953
(eval "$ac_link") 2>conftest.er1
11955
grep -v '^ *+' conftest.er1 >conftest.err
11957
cat conftest.err >&5
11958
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11959
(exit $ac_status); } && {
11960
test -z "$ac_cxx_werror_flag" ||
11961
test ! -s conftest.err
11962
} && test -s conftest$ac_exeext &&
11963
$as_test_x conftest$ac_exeext; then
11965
lt_aix_libpath_sed='
11966
/Import File Strings/,/^$/ {
11972
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11973
# Check for a 64-bit object if we didn't find anything.
11974
if test -z "$aix_libpath"; then
11975
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11978
echo "$as_me: failed program was:" >&5
11979
sed 's/^/| /' conftest.$ac_ext >&5
11984
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11985
conftest$ac_exeext conftest.$ac_ext
11986
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11988
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11989
# Warning - without using the other run time loading flags,
11990
# -berok will link without error, but may produce a broken library.
11991
no_undefined_flag_CXX=' ${wl}-bernotok'
11992
allow_undefined_flag_CXX=' ${wl}-berok'
11993
# Exported symbols can be pulled into shared objects from archives
11994
whole_archive_flag_spec_CXX='$convenience'
11995
archive_cmds_need_lc_CXX=yes
11996
# This is similar to how AIX traditionally builds its shared libraries.
11997
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'
12003
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12004
allow_undefined_flag_CXX=unsupported
12005
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12006
# support --undefined. This deserves some investigation. FIXME
12007
archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12014
case $cc_basename in
12016
# FIXME: insert proper C++ library support
12022
cygwin* | mingw* | pw32*)
12023
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12024
# as there is no search path for DLLs.
12025
hardcode_libdir_flag_spec_CXX='-L$libdir'
12026
allow_undefined_flag_CXX=unsupported
12027
always_export_symbols_CXX=no
12028
enable_shared_with_static_runtimes_CXX=yes
12030
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12031
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'
12032
# If the export-symbols file already is a .def file (1st line
12033
# is EXPORTS), use it as is; otherwise, prepend...
12034
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12035
cp $export_symbols $output_objdir/$soname.def;
12037
echo EXPORTS > $output_objdir/$soname.def;
12038
cat $export_symbols >> $output_objdir/$soname.def;
12040
$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'
12045
darwin* | rhapsody*)
12046
archive_cmds_need_lc_CXX=no
12047
hardcode_direct_CXX=no
12048
hardcode_automatic_CXX=yes
12049
hardcode_shlibpath_var_CXX=unsupported
12050
whole_archive_flag_spec_CXX=''
12051
link_all_deplibs_CXX=yes
12052
allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12053
if test "$GXX" = yes ; then
12054
output_verbose_link_cmd='echo'
12055
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}"
12056
module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12057
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}"
12058
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}"
12059
if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12060
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}"
12061
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}"
12064
case $cc_basename in
12066
output_verbose_link_cmd='echo'
12067
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'
12068
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12069
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12070
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}'
12071
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}'
12081
case $cc_basename in
12083
# FIXME: insert proper C++ library support
12087
# Green Hills C++ Compiler
12088
# FIXME: insert proper C++ library support
12092
# FIXME: insert proper C++ library support
12098
# C++ shared libraries reported to be fairly broken before switch to ELF
12102
archive_cmds_need_lc_CXX=no
12104
freebsd* | dragonfly*)
12105
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12112
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12113
hardcode_libdir_separator_CXX=:
12114
export_dynamic_flag_spec_CXX='${wl}-E'
12115
hardcode_direct_CXX=yes
12116
hardcode_minus_L_CXX=yes # Not in the search PATH,
12117
# but as the default
12118
# location of the library.
12120
case $cc_basename in
12122
# FIXME: insert proper C++ library support
12126
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'
12127
# Commands to make compiler produce verbose output that lists
12128
# what "hidden" libraries, object files and flags are used when
12129
# linking a shared library.
12131
# There doesn't appear to be a way to prevent this compiler from
12132
# explicitly linking system object files so we need to strip them
12133
# from the output so that they don't get included in the library
12135
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'
12138
if test "$GXX" = yes; then
12139
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'
12141
# FIXME: insert proper C++ library support
12148
if test $with_gnu_ld = no; then
12149
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12150
hardcode_libdir_separator_CXX=:
12155
export_dynamic_flag_spec_CXX='${wl}-E'
12161
hardcode_direct_CXX=no
12162
hardcode_shlibpath_var_CXX=no
12165
hardcode_direct_CXX=yes
12166
hardcode_minus_L_CXX=yes # Not in the search PATH,
12167
# but as the default
12168
# location of the library.
12172
case $cc_basename in
12174
# FIXME: insert proper C++ library support
12180
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12183
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12186
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12189
# Commands to make compiler produce verbose output that lists
12190
# what "hidden" libraries, object files and flags are used when
12191
# linking a shared library.
12193
# There doesn't appear to be a way to prevent this compiler from
12194
# explicitly linking system object files so we need to strip them
12195
# from the output so that they don't get included in the library
12197
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'
12200
if test "$GXX" = yes; then
12201
if test $with_gnu_ld = no; then
12204
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12207
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12210
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'
12215
# FIXME: insert proper C++ library support
12222
hardcode_direct_CXX=no
12223
hardcode_shlibpath_var_CXX=no
12224
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12225
export_dynamic_flag_spec_CXX='${wl}-E'
12226
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12227
# Instead, shared libraries are loaded at an image base (0x10000000 by
12228
# default) and relocated if they conflict, which is a slow very memory
12229
# consuming and fragmenting process. To avoid this, we pick a random,
12230
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12231
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
12232
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'
12233
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'
12236
case $cc_basename in
12239
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'
12241
# Archives containing C++ object files must be created using
12242
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
12243
# necessary to make sure instantiated templates are included
12245
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12248
if test "$GXX" = yes; then
12249
if test "$with_gnu_ld" = no; then
12250
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'
12252
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'
12255
link_all_deplibs_CXX=yes
12258
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12259
hardcode_libdir_separator_CXX=:
12261
linux* | k*bsd*-gnu)
12262
case $cc_basename in
12264
# Kuck and Associates, Inc. (KAI) C++ Compiler
12266
# KCC will only create a shared library if the output file
12267
# ends with ".so" (or ".sl" for HP-UX), so rename the library
12268
# to its proper name (with version) after linking.
12269
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'
12270
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'
12271
# Commands to make compiler produce verbose output that lists
12272
# what "hidden" libraries, object files and flags are used when
12273
# linking a shared library.
12275
# There doesn't appear to be a way to prevent this compiler from
12276
# explicitly linking system object files so we need to strip them
12277
# from the output so that they don't get included in the library
12279
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'
12281
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12282
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12284
# Archives containing C++ object files must be created using
12285
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12286
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12291
# version 8.0 and above of icpc choke on multiply defined symbols
12292
# if we add $predep_objects and $postdep_objects, however 7.1 and
12293
# earlier do not add the objects themselves.
12294
case `$CC -V 2>&1` in
12296
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12297
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'
12299
*) # Version 8.0 or newer
12302
ia64*) tmp_idyn=' -i_dynamic';;
12304
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12305
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'
12308
archive_cmds_need_lc_CXX=no
12309
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12310
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12311
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12314
# Portland Group C++ compiler
12315
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12316
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'
12318
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12319
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12320
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'
12324
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12325
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'
12327
runpath_var=LD_RUN_PATH
12328
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12329
hardcode_libdir_separator_CXX=:
12331
# Commands to make compiler produce verbose output that lists
12332
# what "hidden" libraries, object files and flags are used when
12333
# linking a shared library.
12335
# There doesn't appear to be a way to prevent this compiler from
12336
# explicitly linking system object files so we need to strip them
12337
# from the output so that they don't get included in the library
12339
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'
12342
case `$CC -V 2>&1 | sed 5q` in
12345
no_undefined_flag_CXX=' -zdefs'
12346
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12347
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'
12348
hardcode_libdir_flag_spec_CXX='-R$libdir'
12349
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'
12351
# Not sure whether something based on
12352
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12354
output_verbose_link_cmd='echo'
12356
# Archives containing C++ object files must be created using
12357
# "CC -xar", where "CC" is the Sun C++ compiler. This is
12358
# necessary to make sure instantiated templates are included
12360
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12367
# FIXME: insert proper C++ library support
12371
# FIXME: insert proper C++ library support
12375
case $cc_basename in
12377
# FIXME: insert proper C++ library support
12381
# FIXME: insert proper C++ library support
12386
netbsd* | netbsdelf*-gnu)
12387
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12388
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12390
hardcode_libdir_flag_spec_CXX='-R$libdir'
12391
hardcode_direct_CXX=yes
12392
hardcode_shlibpath_var_CXX=no
12394
# Workaround some broken pre-1.5 toolchains
12395
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12398
# C++ shared libraries are fairly broken
12402
if test -f /usr/libexec/ld.so; then
12403
hardcode_direct_CXX=yes
12404
hardcode_shlibpath_var_CXX=no
12405
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12406
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12407
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12408
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12409
export_dynamic_flag_spec_CXX='${wl}-E'
12410
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12412
output_verbose_link_cmd='echo'
12418
case $cc_basename in
12420
# Kuck and Associates, Inc. (KAI) C++ Compiler
12422
# KCC will only create a shared library if the output file
12423
# ends with ".so" (or ".sl" for HP-UX), so rename the library
12424
# to its proper name (with version) after linking.
12425
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'
12427
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12428
hardcode_libdir_separator_CXX=:
12430
# Archives containing C++ object files must be created using
12431
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12432
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12436
# Rational C++ 2.4.1
12437
# FIXME: insert proper C++ library support
12441
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12442
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'
12444
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12445
hardcode_libdir_separator_CXX=:
12447
# Commands to make compiler produce verbose output that lists
12448
# what "hidden" libraries, object files and flags are used when
12449
# linking a shared library.
12451
# There doesn't appear to be a way to prevent this compiler from
12452
# explicitly linking system object files so we need to strip them
12453
# from the output so that they don't get included in the library
12455
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'
12458
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12459
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12460
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'
12462
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12463
hardcode_libdir_separator_CXX=:
12465
# Commands to make compiler produce verbose output that lists
12466
# what "hidden" libraries, object files and flags are used when
12467
# linking a shared library.
12468
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12471
# FIXME: insert proper C++ library support
12478
case $cc_basename in
12480
# Kuck and Associates, Inc. (KAI) C++ Compiler
12482
# KCC will only create a shared library if the output file
12483
# ends with ".so" (or ".sl" for HP-UX), so rename the library
12484
# to its proper name (with version) after linking.
12485
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'
12487
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12488
hardcode_libdir_separator_CXX=:
12490
# Archives containing C++ object files must be created using
12491
# the KAI C++ compiler.
12492
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12495
# Rational C++ 2.4.1
12496
# FIXME: insert proper C++ library support
12500
allow_undefined_flag_CXX=' -expect_unresolved \*'
12501
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'
12502
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12503
echo "-hidden">> $lib.exp~
12504
$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~
12507
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12508
hardcode_libdir_separator_CXX=:
12510
# Commands to make compiler produce verbose output that lists
12511
# what "hidden" libraries, object files and flags are used when
12512
# linking a shared library.
12514
# There doesn't appear to be a way to prevent this compiler from
12515
# explicitly linking system object files so we need to strip them
12516
# from the output so that they don't get included in the library
12518
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'
12521
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12522
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12523
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'
12525
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12526
hardcode_libdir_separator_CXX=:
12528
# Commands to make compiler produce verbose output that lists
12529
# what "hidden" libraries, object files and flags are used when
12530
# linking a shared library.
12531
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12534
# FIXME: insert proper C++ library support
12541
# FIXME: insert proper C++ library support
12545
case $cc_basename in
12548
# FIXME: insert proper C++ library support
12553
# FIXME: insert proper C++ library support
12557
# FIXME: insert proper C++ library support
12563
case $cc_basename in
12565
# Sun C++ 4.2, 5.x and Centerline C++
12566
archive_cmds_need_lc_CXX=yes
12567
no_undefined_flag_CXX=' -zdefs'
12568
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12569
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12570
$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'
12572
hardcode_libdir_flag_spec_CXX='-R$libdir'
12573
hardcode_shlibpath_var_CXX=no
12575
solaris2.[0-5] | solaris2.[0-5].*) ;;
12577
# The compiler driver will combine and reorder linker options,
12578
# but understands `-z linker_flag'.
12579
# Supported since Solaris 2.6 (maybe 2.5.1?)
12580
whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12583
link_all_deplibs_CXX=yes
12585
output_verbose_link_cmd='echo'
12587
# Archives containing C++ object files must be created using
12588
# "CC -xar", where "CC" is the Sun C++ compiler. This is
12589
# necessary to make sure instantiated templates are included
12591
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12594
# Green Hills C++ Compiler
12595
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12597
# The C++ compiler must be used to create the archive.
12598
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12601
# GNU C++ compiler with Solaris linker
12602
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12603
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12604
if $CC --version | grep -v '^2\.7' > /dev/null; then
12605
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12606
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12607
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12609
# Commands to make compiler produce verbose output that lists
12610
# what "hidden" libraries, object files and flags are used when
12611
# linking a shared library.
12612
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12614
# g++ 2.7 appears to require `-G' NOT `-shared' on this
12616
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12617
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12618
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12620
# Commands to make compiler produce verbose output that lists
12621
# what "hidden" libraries, object files and flags are used when
12622
# linking a shared library.
12623
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12626
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12628
solaris2.[0-5] | solaris2.[0-5].*) ;;
12630
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12637
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12638
no_undefined_flag_CXX='${wl}-z,text'
12639
archive_cmds_need_lc_CXX=no
12640
hardcode_shlibpath_var_CXX=no
12641
runpath_var='LD_RUN_PATH'
12643
case $cc_basename in
12645
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12646
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12649
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12650
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12654
sysv5* | sco3.2v5* | sco5v6*)
12655
# Note: We can NOT use -z defs as we might desire, because we do not
12656
# link with -lc, and that would cause any symbols used from libc to
12657
# always be unresolved, which means just about no library would
12658
# ever link correctly. If we're not using GNU ld we use -z text
12659
# though, which does catch some bad symbols but isn't as heavy-handed
12661
# For security reasons, it is highly recommended that you always
12662
# use absolute paths for naming shared libraries, and exclude the
12663
# DT_RUNPATH tag from executables and libraries. But doing so
12664
# requires that you compile everything twice, which is a pain.
12665
# So that behaviour is only enabled if SCOABSPATH is set to a
12666
# non-empty value in the environment. Most likely only useful for
12667
# creating official distributions of packages.
12668
# This is a hack until libtool officially supports absolute path
12669
# names for shared libraries.
12670
no_undefined_flag_CXX='${wl}-z,text'
12671
allow_undefined_flag_CXX='${wl}-z,nodefs'
12672
archive_cmds_need_lc_CXX=no
12673
hardcode_shlibpath_var_CXX=no
12674
hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12675
hardcode_libdir_separator_CXX=':'
12676
link_all_deplibs_CXX=yes
12677
export_dynamic_flag_spec_CXX='${wl}-Bexport'
12678
runpath_var='LD_RUN_PATH'
12680
case $cc_basename in
12682
archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12683
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12686
archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12687
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12692
case $cc_basename in
12694
# NonStop-UX NCC 3.20
12695
# FIXME: insert proper C++ library support
12699
# FIXME: insert proper C++ library support
12705
# FIXME: insert proper C++ library support
12709
# FIXME: insert proper C++ library support
12713
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12714
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12715
test "$ld_shlibs_CXX" = no && can_build_shared=no
12720
cat > conftest.$ac_ext <<EOF
12724
Foo (void) { a = 0; }
12730
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12731
(eval $ac_compile) 2>&5
12733
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12734
(exit $ac_status); }; then
12735
# Parse the compiler output and extract the necessary
12736
# objects, libraries and library flags.
12738
# Sentinel used to keep track of whether or not we are before
12739
# the conftest object file.
12740
pre_test_object_deps_done=no
12742
# The `*' in the case matches for architectures that use `case' in
12743
# $output_verbose_cmd can trigger glob expansion during the loop
12744
# eval without this substitution.
12745
output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12747
for p in `eval $output_verbose_link_cmd`; do
12751
# Some compilers place space between "-{L,R}" and the path.
12752
# Remove the space.
12753
if test $p = "-L" \
12754
|| test $p = "-R"; then
12761
if test "$pre_test_object_deps_done" = no; then
12764
# Internal compiler library paths should come after those
12765
# provided the user. The postdeps already come after the
12766
# user supplied libs so there is no need to process them.
12767
if test -z "$compiler_lib_search_path_CXX"; then
12768
compiler_lib_search_path_CXX="${prev}${p}"
12770
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12773
# The "-l" case would never come before the object being
12774
# linked, so don't bother handling this case.
12777
if test -z "$postdeps_CXX"; then
12778
postdeps_CXX="${prev}${p}"
12780
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12786
# This assumes that the test object file only shows up
12787
# once in the compiler output.
12788
if test "$p" = "conftest.$objext"; then
12789
pre_test_object_deps_done=yes
12793
if test "$pre_test_object_deps_done" = no; then
12794
if test -z "$predep_objects_CXX"; then
12795
predep_objects_CXX="$p"
12797
predep_objects_CXX="$predep_objects_CXX $p"
12800
if test -z "$postdep_objects_CXX"; then
12801
postdep_objects_CXX="$p"
12803
postdep_objects_CXX="$postdep_objects_CXX $p"
12808
*) ;; # Ignore the rest.
12816
echo "libtool.m4: error: problem compiling CXX test program"
12819
$rm -f confest.$objext
12821
compiler_lib_search_dirs_CXX=
12822
if test -n "$compiler_lib_search_path_CXX"; then
12823
compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12826
# PORTME: override above test on systems where it is broken
12829
# Interix 3.5 installs completely hosed .la files for C++, so rather than
12830
# hack all around it, let's just trust "g++" to DTRT.
12831
predep_objects_CXX=
12832
postdep_objects_CXX=
12837
case `$CC -V 2>&1 | sed 5q` in
12841
# The more standards-conforming stlport4 library is
12842
# incompatible with the Cstd library. Avoid specifying
12843
# it if it's in CXXFLAGS. Ignore libCrun as
12844
# -library=stlport4 depends on it.
12845
case " $CXX $CXXFLAGS " in
12846
*" -library=stlport4 "*)
12847
solaris_use_stlport4=yes
12850
if test "$solaris_use_stlport4" != yes; then
12851
postdeps_CXX='-library=Cstd -library=Crun'
12858
case $cc_basename in
12860
# The more standards-conforming stlport4 library is
12861
# incompatible with the Cstd library. Avoid specifying
12862
# it if it's in CXXFLAGS. Ignore libCrun as
12863
# -library=stlport4 depends on it.
12864
case " $CXX $CXXFLAGS " in
12865
*" -library=stlport4 "*)
12866
solaris_use_stlport4=yes
12870
# Adding this requires a known-good setup of shared libraries for
12871
# Sun compiler versions before 5.6, else PIC objects from an old
12872
# archive will be linked into the output, leading to subtle bugs.
12873
if test "$solaris_use_stlport4" != yes; then
12874
postdeps_CXX='-library=Cstd -library=Crun'
12881
case " $postdeps_CXX " in
12882
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12885
lt_prog_compiler_wl_CXX=
12886
lt_prog_compiler_pic_CXX=
12887
lt_prog_compiler_static_CXX=
12889
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12890
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12892
# C++ specific cases for pic, static, wl, etc.
12893
if test "$GXX" = yes; then
12894
lt_prog_compiler_wl_CXX='-Wl,'
12895
lt_prog_compiler_static_CXX='-static'
12899
# All AIX code is PIC.
12900
if test "$host_cpu" = ia64; then
12901
# AIX 5 now supports IA64 processor
12902
lt_prog_compiler_static_CXX='-Bstatic'
12906
# FIXME: we need at least 68020 code to build shared libraries, but
12907
# adding the `-m68020' flag to GCC prevents building anything better,
12909
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12911
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12912
# PIC is the default for these OSes.
12914
mingw* | cygwin* | os2* | pw32*)
12915
# This hack is so that the source file can tell whether it is being
12916
# built for inclusion in a dll (and should export symbols for example).
12917
# Although the cygwin gcc ignores -fPIC, still need this for old-style
12918
# (--disable-auto-import) libraries
12919
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12921
darwin* | rhapsody*)
12922
# PIC is the default on this platform
12923
# Common symbols not allowed in MH_DYLIB files
12924
lt_prog_compiler_pic_CXX='-fno-common'
12927
# DJGPP does not support shared libraries at all
12928
lt_prog_compiler_pic_CXX=
12931
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
12932
# Instead, we relocate shared libraries at runtime.
12935
if test -d /usr/nec; then
12936
lt_prog_compiler_pic_CXX=-Kconform_pic
12940
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12941
# not for PA HP-UX.
12946
lt_prog_compiler_pic_CXX='-fPIC'
12951
lt_prog_compiler_pic_CXX='-fPIC'
12957
# All AIX code is PIC.
12958
if test "$host_cpu" = ia64; then
12959
# AIX 5 now supports IA64 processor
12960
lt_prog_compiler_static_CXX='-Bstatic'
12962
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12966
case $cc_basename in
12968
# Green Hills C++ Compiler
12969
# _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"
12974
# PIC is the default on this platform
12975
# Common symbols not allowed in MH_DYLIB files
12976
case $cc_basename in
12978
lt_prog_compiler_pic_CXX='-qnocommon'
12979
lt_prog_compiler_wl_CXX='-Wl,'
12984
case $cc_basename in
12986
lt_prog_compiler_pic_CXX='-KPIC'
12989
# Green Hills C++ Compiler
12990
lt_prog_compiler_pic_CXX='-pic'
12996
freebsd* | dragonfly*)
12997
# FreeBSD uses GNU C++
12999
hpux9* | hpux10* | hpux11*)
13000
case $cc_basename in
13002
lt_prog_compiler_wl_CXX='-Wl,'
13003
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13004
if test "$host_cpu" != ia64; then
13005
lt_prog_compiler_pic_CXX='+Z'
13009
lt_prog_compiler_wl_CXX='-Wl,'
13010
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13016
lt_prog_compiler_pic_CXX='+Z'
13025
# This is c89, which is MS Visual C++ (no shared libs)
13026
# Anyone wants to do a port?
13028
irix5* | irix6* | nonstopux*)
13029
case $cc_basename in
13031
lt_prog_compiler_wl_CXX='-Wl,'
13032
lt_prog_compiler_static_CXX='-non_shared'
13033
# CC pic flag -KPIC is the default.
13039
linux* | k*bsd*-gnu)
13040
case $cc_basename in
13043
lt_prog_compiler_wl_CXX='--backend -Wl,'
13044
lt_prog_compiler_pic_CXX='-fPIC'
13048
lt_prog_compiler_wl_CXX='-Wl,'
13049
lt_prog_compiler_pic_CXX='-KPIC'
13050
lt_prog_compiler_static_CXX='-static'
13053
# Portland Group C++ compiler.
13054
lt_prog_compiler_wl_CXX='-Wl,'
13055
lt_prog_compiler_pic_CXX='-fpic'
13056
lt_prog_compiler_static_CXX='-Bstatic'
13060
# Make sure the PIC flag is empty. It appears that all Alpha
13061
# Linux and Compaq Tru64 Unix objects are PIC.
13062
lt_prog_compiler_pic_CXX=
13063
lt_prog_compiler_static_CXX='-non_shared'
13066
case `$CC -V 2>&1 | sed 5q` in
13069
lt_prog_compiler_pic_CXX='-KPIC'
13070
lt_prog_compiler_static_CXX='-Bstatic'
13071
lt_prog_compiler_wl_CXX='-Qoption ld '
13082
case $cc_basename in
13084
lt_prog_compiler_pic_CXX='-W c,exportall'
13090
netbsd* | netbsdelf*-gnu)
13092
osf3* | osf4* | osf5*)
13093
case $cc_basename in
13095
lt_prog_compiler_wl_CXX='--backend -Wl,'
13098
# Rational C++ 2.4.1
13099
lt_prog_compiler_pic_CXX='-pic'
13102
# Digital/Compaq C++
13103
lt_prog_compiler_wl_CXX='-Wl,'
13104
# Make sure the PIC flag is empty. It appears that all Alpha
13105
# Linux and Compaq Tru64 Unix objects are PIC.
13106
lt_prog_compiler_pic_CXX=
13107
lt_prog_compiler_static_CXX='-non_shared'
13116
case $cc_basename in
13118
# Sun C++ 4.2, 5.x and Centerline C++
13119
lt_prog_compiler_pic_CXX='-KPIC'
13120
lt_prog_compiler_static_CXX='-Bstatic'
13121
lt_prog_compiler_wl_CXX='-Qoption ld '
13124
# Green Hills C++ Compiler
13125
lt_prog_compiler_pic_CXX='-PIC'
13132
case $cc_basename in
13135
lt_prog_compiler_pic_CXX='-pic'
13136
lt_prog_compiler_static_CXX='-Bstatic'
13140
lt_prog_compiler_pic_CXX='-pic'
13147
case $cc_basename in
13149
# NonStop-UX NCC 3.20
13150
lt_prog_compiler_pic_CXX='-KPIC'
13156
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13157
case $cc_basename in
13159
lt_prog_compiler_wl_CXX='-Wl,'
13160
lt_prog_compiler_pic_CXX='-KPIC'
13161
lt_prog_compiler_static_CXX='-Bstatic'
13168
lt_prog_compiler_can_build_shared_CXX=no
13173
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13174
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
13177
# Check to make sure the PIC flag actually works.
13179
if test -n "$lt_prog_compiler_pic_CXX"; then
13181
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13182
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
13183
if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
13184
echo $ECHO_N "(cached) $ECHO_C" >&6
13186
lt_cv_prog_compiler_pic_works_CXX=no
13187
ac_outfile=conftest.$ac_objext
13188
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13189
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13190
# Insert the option either (1) after the last *FLAGS variable, or
13191
# (2) before a word containing "conftest.", or (3) at the end.
13192
# Note that $ac_compile itself does not contain backslashes and begins
13193
# with a dollar sign (not a hyphen), so the echo should work correctly.
13194
# The option is referenced via a variable to avoid confusing sed.
13195
lt_compile=`echo "$ac_compile" | $SED \
13196
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13197
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13198
-e 's:$: $lt_compiler_flag:'`
13199
(eval echo "\"\$as_me:13199: $lt_compile\"" >&5)
13200
(eval "$lt_compile" 2>conftest.err)
13202
cat conftest.err >&5
13203
echo "$as_me:13203: \$? = $ac_status" >&5
13204
if (exit $ac_status) && test -s "$ac_outfile"; then
13205
# The compiler can only warn and ignore the option if not recognized
13206
# So say no if there are warnings other than the usual output.
13207
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13208
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13209
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13210
lt_cv_prog_compiler_pic_works_CXX=yes
13216
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13217
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13219
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13220
case $lt_prog_compiler_pic_CXX in
13222
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13225
lt_prog_compiler_pic_CXX=
13226
lt_prog_compiler_can_build_shared_CXX=no
13231
# For platforms which do not support PIC, -DPIC is meaningless:
13233
lt_prog_compiler_pic_CXX=
13236
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13241
# Check to make sure the static flag actually works.
13243
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13244
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13245
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13246
if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
13247
echo $ECHO_N "(cached) $ECHO_C" >&6
13249
lt_cv_prog_compiler_static_works_CXX=no
13250
save_LDFLAGS="$LDFLAGS"
13251
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13252
echo "$lt_simple_link_test_code" > conftest.$ac_ext
13253
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13254
# The linker can only warn and ignore the option if not recognized
13255
# So say no if there are warnings
13256
if test -s conftest.err; then
13257
# Append any errors to the config.log.
13258
cat conftest.err 1>&5
13259
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13260
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13261
if diff conftest.exp conftest.er2 >/dev/null; then
13262
lt_cv_prog_compiler_static_works_CXX=yes
13265
lt_cv_prog_compiler_static_works_CXX=yes
13269
LDFLAGS="$save_LDFLAGS"
13272
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13273
echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
13275
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13278
lt_prog_compiler_static_CXX=
13282
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13283
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13284
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13285
echo $ECHO_N "(cached) $ECHO_C" >&6
13287
lt_cv_prog_compiler_c_o_CXX=no
13288
$rm -r conftest 2>/dev/null
13292
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13294
lt_compiler_flag="-o out/conftest2.$ac_objext"
13295
# Insert the option either (1) after the last *FLAGS variable, or
13296
# (2) before a word containing "conftest.", or (3) at the end.
13297
# Note that $ac_compile itself does not contain backslashes and begins
13298
# with a dollar sign (not a hyphen), so the echo should work correctly.
13299
lt_compile=`echo "$ac_compile" | $SED \
13300
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13301
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13302
-e 's:$: $lt_compiler_flag:'`
13303
(eval echo "\"\$as_me:13303: $lt_compile\"" >&5)
13304
(eval "$lt_compile" 2>out/conftest.err)
13306
cat out/conftest.err >&5
13307
echo "$as_me:13307: \$? = $ac_status" >&5
13308
if (exit $ac_status) && test -s out/conftest2.$ac_objext
13310
# The compiler can only warn and ignore the option if not recognized
13311
# So say no if there are warnings
13312
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13313
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13314
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13315
lt_cv_prog_compiler_c_o_CXX=yes
13320
# SGI C++ compiler will create directory out/ii_files/ for
13321
# template instantiation
13322
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13323
$rm out/* && rmdir out
13329
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13330
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13333
hard_links="nottested"
13334
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13335
# do not overwrite the value of need_locks provided by the user
13336
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13337
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13340
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13342
ln conftest.a conftest.b 2>&5 || hard_links=no
13343
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13344
{ echo "$as_me:$LINENO: result: $hard_links" >&5
13345
echo "${ECHO_T}$hard_links" >&6; }
13346
if test "$hard_links" = no; then
13347
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13348
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13355
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13356
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13358
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13361
# If we're using GNU nm, then we don't want the "-C" option.
13362
# -C means demangle to AIX nm, but means don't demangle with GNU nm
13363
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13364
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'
13366
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'
13370
export_symbols_cmds_CXX="$ltdll_cmds"
13373
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'
13375
linux* | k*bsd*-gnu)
13376
link_all_deplibs_CXX=no
13379
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13382
exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13384
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13385
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13386
test "$ld_shlibs_CXX" = no && can_build_shared=no
13389
# Do we need to explicitly link libc?
13391
case "x$archive_cmds_need_lc_CXX" in
13393
# Assume -lc should be added
13394
archive_cmds_need_lc_CXX=yes
13396
if test "$enable_shared" = yes && test "$GCC" = yes; then
13397
case $archive_cmds_CXX in
13399
# FIXME: we may have to deal with multi-command sequences.
13402
# Test whether the compiler implicitly links with -lc since on some
13403
# systems, -lgcc has to come before -lc. If gcc already passes -lc
13404
# to ld, don't add -lc before -lgcc.
13405
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13406
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13408
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13410
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13411
(eval $ac_compile) 2>&5
13413
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13414
(exit $ac_status); } 2>conftest.err; then
13417
libobjs=conftest.$ac_objext
13419
wl=$lt_prog_compiler_wl_CXX
13420
pic_flag=$lt_prog_compiler_pic_CXX
13426
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13427
allow_undefined_flag_CXX=
13428
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13429
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13431
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13432
(exit $ac_status); }
13434
archive_cmds_need_lc_CXX=no
13436
archive_cmds_need_lc_CXX=yes
13438
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13440
cat conftest.err 1>&5
13443
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13444
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13451
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13452
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13453
library_names_spec=
13454
libname_spec='lib$name'
13458
postuninstall_cmds=
13462
shlibpath_overrides_runpath=unknown
13464
dynamic_linker="$host_os ld.so"
13465
sys_lib_dlsearch_path_spec="/lib /usr/lib"
13467
need_lib_prefix=unknown
13468
hardcode_into_libs=no
13470
# when you set need_version to no, make sure it does not cause -set_version
13471
# flags to be left without arguments
13472
need_version=unknown
13477
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13478
shlibpath_var=LIBPATH
13480
# AIX 3 has no versioning support, so we append a major version to the name.
13481
soname_spec='${libname}${release}${shared_ext}$major'
13488
hardcode_into_libs=yes
13489
if test "$host_cpu" = ia64; then
13490
# AIX 5 supports IA64
13491
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13492
shlibpath_var=LD_LIBRARY_PATH
13494
# With GCC up to 2.95.x, collect2 would create an import file
13495
# for dependence libraries. The import file would start with
13496
# the line `#! .'. This would cause the generated library to
13497
# depend on `.', always an invalid library. This was fixed in
13498
# development snapshots of GCC prior to 3.0.
13500
aix4 | aix4.[01] | aix4.[01].*)
13501
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13503
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13506
can_build_shared=no
13510
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13511
# soname into executable. Probably we can add versioning support to
13512
# collect2, so additional links can be useful in future.
13513
if test "$aix_use_runtimelinking" = yes; then
13514
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
13515
# instead of lib<name>.a to let people know that these are not
13516
# typical AIX shared libraries.
13517
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13519
# We preserve .a as extension for shared libraries through AIX4.2
13520
# and later when we are not doing run time linking.
13521
library_names_spec='${libname}${release}.a $libname.a'
13522
soname_spec='${libname}${release}${shared_ext}$major'
13524
shlibpath_var=LIBPATH
13529
library_names_spec='$libname.ixlibrary $libname.a'
13530
# Create ${libname}_ixlibrary.a entries in /sys/libs.
13531
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'
13535
library_names_spec='${libname}${shared_ext}'
13536
dynamic_linker="$host_os ld.so"
13537
shlibpath_var=LIBRARY_PATH
13543
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13544
soname_spec='${libname}${release}${shared_ext}$major'
13545
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13546
shlibpath_var=LD_LIBRARY_PATH
13547
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13548
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13549
# the default ld.so.conf also contains /usr/contrib/lib and
13550
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13551
# libtool to hard-code these into programs
13554
cygwin* | mingw* | pw32*)
13555
version_type=windows
13560
case $GCC,$host_os in
13561
yes,cygwin* | yes,mingw* | yes,pw32*)
13562
library_names_spec='$libname.dll.a'
13563
# DLL is installed to $(libdir)/../bin by postinstall_cmds
13564
postinstall_cmds='base_file=`basename \${file}`~
13565
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13566
dldir=$destdir/`dirname \$dlpath`~
13567
test -d \$dldir || mkdir -p \$dldir~
13568
$install_prog $dir/$dlname \$dldir/$dlname~
13569
chmod a+x \$dldir/$dlname'
13570
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13571
dlpath=$dir/\$dldll~
13573
shlibpath_overrides_runpath=yes
13577
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
13578
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13579
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13582
# MinGW DLLs use traditional 'lib' prefix
13583
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13584
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13585
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13586
# It is most probably a Windows format PATH printed by
13587
# mingw gcc, but we are running on Cygwin. Gcc prints its search
13588
# path with ; separators, and with drive letters. We can handle the
13589
# drive letters (cygwin fileutils understands them), so leave them,
13590
# especially as we might pass files found there to a mingw objdump,
13591
# which wouldn't understand a cygwinified path. Ahh.
13592
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13594
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13598
# pw32 DLLs use 'pw' prefix rather than 'lib'
13599
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13605
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13608
dynamic_linker='Win32 ld.exe'
13609
# FIXME: first we should search . and the directory the executable is in
13613
darwin* | rhapsody*)
13614
dynamic_linker="$host_os dyld"
13615
version_type=darwin
13618
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13619
soname_spec='${libname}${release}${major}$shared_ext'
13620
shlibpath_overrides_runpath=yes
13621
shlibpath_var=DYLD_LIBRARY_PATH
13622
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13624
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13631
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13632
soname_spec='${libname}${release}${shared_ext}$major'
13633
shlibpath_var=LD_LIBRARY_PATH
13640
freebsd* | dragonfly*)
13641
# DragonFly does not have aout. When/if they implement a new
13642
# versioning mechanism, adjust this.
13643
if test -x /usr/bin/objformat; then
13644
objformat=`/usr/bin/objformat`
13647
freebsd[123]*) objformat=aout ;;
13648
*) objformat=elf ;;
13651
version_type=freebsd-$objformat
13652
case $version_type in
13654
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13659
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13663
shlibpath_var=LD_LIBRARY_PATH
13666
shlibpath_overrides_runpath=yes
13668
freebsd3.[01]* | freebsdelf3.[01]*)
13669
shlibpath_overrides_runpath=yes
13670
hardcode_into_libs=yes
13672
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13673
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13674
shlibpath_overrides_runpath=no
13675
hardcode_into_libs=yes
13677
*) # from 4.6 on, and DragonFly
13678
shlibpath_overrides_runpath=yes
13679
hardcode_into_libs=yes
13688
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13689
soname_spec='${libname}${release}${shared_ext}$major'
13690
shlibpath_var=LD_LIBRARY_PATH
13691
hardcode_into_libs=yes
13694
hpux9* | hpux10* | hpux11*)
13695
# Give a soname corresponding to the major version so that dld.sl refuses to
13696
# link against other versions.
13703
hardcode_into_libs=yes
13704
dynamic_linker="$host_os dld.so"
13705
shlibpath_var=LD_LIBRARY_PATH
13706
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13707
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13708
soname_spec='${libname}${release}${shared_ext}$major'
13709
if test "X$HPUX_IA64_MODE" = X32; then
13710
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13712
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13714
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13718
hardcode_into_libs=yes
13719
dynamic_linker="$host_os dld.sl"
13720
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13721
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13722
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13723
soname_spec='${libname}${release}${shared_ext}$major'
13724
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13725
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13729
dynamic_linker="$host_os dld.sl"
13730
shlibpath_var=SHLIB_PATH
13731
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13732
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13733
soname_spec='${libname}${release}${shared_ext}$major'
13736
# HP-UX runs *really* slowly unless shared libraries are mode 555.
13737
postinstall_cmds='chmod 555 $lib'
13744
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13745
soname_spec='${libname}${release}${shared_ext}$major'
13746
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13747
shlibpath_var=LD_LIBRARY_PATH
13748
shlibpath_overrides_runpath=no
13749
hardcode_into_libs=yes
13752
irix5* | irix6* | nonstopux*)
13754
nonstopux*) version_type=nonstopux ;;
13756
if test "$lt_cv_prog_gnu_ld" = yes; then
13764
soname_spec='${libname}${release}${shared_ext}$major'
13765
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13767
irix5* | nonstopux*)
13768
libsuff= shlibsuff=
13771
case $LD in # libtool.m4 will add one of these switches to LD
13772
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13773
libsuff= shlibsuff= libmagic=32-bit;;
13774
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13775
libsuff=32 shlibsuff=N32 libmagic=N32;;
13776
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13777
libsuff=64 shlibsuff=64 libmagic=64-bit;;
13778
*) libsuff= shlibsuff= libmagic=never-match;;
13782
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13783
shlibpath_overrides_runpath=no
13784
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13785
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13786
hardcode_into_libs=yes
13789
# No shared lib support for Linux oldld, aout, or coff.
13790
linux*oldld* | linux*aout* | linux*coff*)
13794
# This must be Linux ELF.
13795
linux* | k*bsd*-gnu)
13799
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13800
soname_spec='${libname}${release}${shared_ext}$major'
13801
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13802
shlibpath_var=LD_LIBRARY_PATH
13803
shlibpath_overrides_runpath=no
13804
# This implies no fast_install, which is unacceptable.
13805
# Some rework will be needed to allow for fast_install
13806
# before this can be enabled.
13807
hardcode_into_libs=yes
13809
# Append ld.so.conf contents to the search path
13810
if test -f /etc/ld.so.conf; then
13811
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' ' '`
13812
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13815
# We used to test for /lib/ld.so.1 and disable shared libraries on
13816
# powerpc, because MkLinux only supported shared libraries with the
13817
# GNU dynamic linker. Since this was broken with cross compilers,
13818
# most powerpc-linux boxes support dynamic linking these days and
13819
# people can always --disable-shared, the test was removed, and we
13820
# assume the GNU/Linux dynamic linker is in use.
13821
dynamic_linker='GNU/Linux ld.so'
13828
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13829
soname_spec='${libname}${release}${shared_ext}$major'
13830
shlibpath_var=LD_LIBRARY_PATH
13831
shlibpath_overrides_runpath=no
13832
hardcode_into_libs=yes
13833
dynamic_linker='NetBSD ld.elf_so'
13840
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13841
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13842
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13843
dynamic_linker='NetBSD (a.out) ld.so'
13845
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13846
soname_spec='${libname}${release}${shared_ext}$major'
13847
dynamic_linker='NetBSD ld.elf_so'
13849
shlibpath_var=LD_LIBRARY_PATH
13850
shlibpath_overrides_runpath=yes
13851
hardcode_into_libs=yes
13856
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13857
shlibpath_var=LD_LIBRARY_PATH
13858
shlibpath_overrides_runpath=yes
13865
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13866
soname_spec='${libname}${release}${shared_ext}$major'
13867
shlibpath_var=LD_LIBRARY_PATH
13868
shlibpath_overrides_runpath=yes
13873
sys_lib_dlsearch_path_spec="/usr/lib"
13875
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13877
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13878
*) need_version=no ;;
13880
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13881
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13882
shlibpath_var=LD_LIBRARY_PATH
13883
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13885
openbsd2.[89] | openbsd2.[89].*)
13886
shlibpath_overrides_runpath=no
13889
shlibpath_overrides_runpath=yes
13893
shlibpath_overrides_runpath=yes
13898
libname_spec='$name'
13901
library_names_spec='$libname${shared_ext} $libname.a'
13902
dynamic_linker='OS/2 ld.exe'
13903
shlibpath_var=LIBPATH
13906
osf3* | osf4* | osf5*)
13910
soname_spec='${libname}${release}${shared_ext}$major'
13911
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13912
shlibpath_var=LD_LIBRARY_PATH
13913
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13914
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13925
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13926
soname_spec='${libname}${release}${shared_ext}$major'
13927
shlibpath_var=LD_LIBRARY_PATH
13928
shlibpath_overrides_runpath=yes
13929
hardcode_into_libs=yes
13930
# ldd complains unless libraries are executable
13931
postinstall_cmds='chmod +x $lib'
13936
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13937
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13938
shlibpath_var=LD_LIBRARY_PATH
13939
shlibpath_overrides_runpath=yes
13940
if test "$with_gnu_ld" = yes; then
13948
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13949
soname_spec='${libname}${release}${shared_ext}$major'
13950
shlibpath_var=LD_LIBRARY_PATH
13951
case $host_vendor in
13953
shlibpath_overrides_runpath=no
13955
export_dynamic_flag_spec='${wl}-Blargedynsym'
13956
runpath_var=LD_RUN_PATH
13964
shlibpath_overrides_runpath=no
13965
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13971
if test -d /usr/nec ;then
13973
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13974
soname_spec='$libname${shared_ext}.$major'
13975
shlibpath_var=LD_LIBRARY_PATH
13979
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13980
version_type=freebsd-elf
13983
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13984
soname_spec='${libname}${release}${shared_ext}$major'
13985
shlibpath_var=LD_LIBRARY_PATH
13986
hardcode_into_libs=yes
13987
if test "$with_gnu_ld" = yes; then
13988
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13989
shlibpath_overrides_runpath=no
13991
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13992
shlibpath_overrides_runpath=yes
13995
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13999
sys_lib_dlsearch_path_spec='/usr/lib'
14004
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14005
soname_spec='${libname}${release}${shared_ext}$major'
14006
shlibpath_var=LD_LIBRARY_PATH
14013
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14014
echo "${ECHO_T}$dynamic_linker" >&6; }
14015
test "$dynamic_linker" = no && can_build_shared=no
14017
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14018
echo $ECHO_N "(cached) $ECHO_C" >&6
14020
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
14023
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14024
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14025
echo $ECHO_N "(cached) $ECHO_C" >&6
14027
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
14030
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14032
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14033
if test "$GCC" = yes; then
14034
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14037
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14038
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
14039
hardcode_action_CXX=
14040
if test -n "$hardcode_libdir_flag_spec_CXX" || \
14041
test -n "$runpath_var_CXX" || \
14042
test "X$hardcode_automatic_CXX" = "Xyes" ; then
14044
# We can hardcode non-existant directories.
14045
if test "$hardcode_direct_CXX" != no &&
14046
# If the only mechanism to avoid hardcoding is shlibpath_var, we
14047
# have to relink, otherwise we might link with an installed library
14048
# when we should be linking with a yet-to-be-installed one
14049
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14050
test "$hardcode_minus_L_CXX" != no; then
14051
# Linking always hardcodes the temporary library directory.
14052
hardcode_action_CXX=relink
14054
# We can link without hardcoding, and we can hardcode nonexisting dirs.
14055
hardcode_action_CXX=immediate
14058
# We cannot hardcode anything, or else we can only hardcode existing
14060
hardcode_action_CXX=unsupported
14062
{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14063
echo "${ECHO_T}$hardcode_action_CXX" >&6; }
14065
if test "$hardcode_action_CXX" = relink; then
14066
# Fast installation is not supported
14067
enable_fast_install=no
14068
elif test "$shlibpath_overrides_runpath" = yes ||
14069
test "$enable_shared" = no; then
14070
# Fast installation is not necessary
14071
enable_fast_install=needless
14075
# The else clause should only fire when bootstrapping the
14076
# libtool distribution, otherwise you forgot to ship ltmain.sh
14077
# with your package, and you will get complaints that there are
14078
# no rules to generate ltmain.sh.
14079
if test -f "$ltmain"; then
14080
# See if we are running on zsh, and set the options which allow our commands through
14081
# without removal of \ escapes.
14082
if test -n "${ZSH_VERSION+set}" ; then
14083
setopt NO_GLOB_SUBST
14085
# Now quote all the things that may contain metacharacters while being
14086
# careful not to overquote the AC_SUBSTed values. We take copies of the
14087
# variables and quote the copies for generation of the libtool script.
14088
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14090
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14091
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14092
deplibs_check_method reload_flag reload_cmds need_locks \
14093
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14094
lt_cv_sys_global_symbol_to_c_name_address \
14095
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14096
old_postinstall_cmds old_postuninstall_cmds \
14100
lt_prog_compiler_wl_CXX \
14101
lt_prog_compiler_pic_CXX \
14102
lt_prog_compiler_static_CXX \
14103
lt_prog_compiler_no_builtin_flag_CXX \
14104
export_dynamic_flag_spec_CXX \
14105
thread_safe_flag_spec_CXX \
14106
whole_archive_flag_spec_CXX \
14107
enable_shared_with_static_runtimes_CXX \
14108
old_archive_cmds_CXX \
14109
old_archive_from_new_cmds_CXX \
14110
predep_objects_CXX \
14111
postdep_objects_CXX \
14114
compiler_lib_search_path_CXX \
14115
compiler_lib_search_dirs_CXX \
14117
archive_expsym_cmds_CXX \
14118
postinstall_cmds_CXX \
14119
postuninstall_cmds_CXX \
14120
old_archive_from_expsyms_cmds_CXX \
14121
allow_undefined_flag_CXX \
14122
no_undefined_flag_CXX \
14123
export_symbols_cmds_CXX \
14124
hardcode_libdir_flag_spec_CXX \
14125
hardcode_libdir_flag_spec_ld_CXX \
14126
hardcode_libdir_separator_CXX \
14127
hardcode_automatic_CXX \
14129
module_expsym_cmds_CXX \
14130
lt_cv_prog_compiler_c_o_CXX \
14131
fix_srcfile_path_CXX \
14132
exclude_expsyms_CXX \
14133
include_expsyms_CXX; do
14136
old_archive_cmds_CXX | \
14137
old_archive_from_new_cmds_CXX | \
14138
archive_cmds_CXX | \
14139
archive_expsym_cmds_CXX | \
14140
module_cmds_CXX | \
14141
module_expsym_cmds_CXX | \
14142
old_archive_from_expsyms_cmds_CXX | \
14143
export_symbols_cmds_CXX | \
14144
extract_expsyms_cmds | reload_cmds | finish_cmds | \
14145
postinstall_cmds | postuninstall_cmds | \
14146
old_postinstall_cmds | old_postuninstall_cmds | \
14147
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14148
# Double-quote double-evaled strings.
14149
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14152
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14158
*'\$0 --fallback-echo"')
14159
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14165
cat <<__EOF__ >> "$cfgfile"
14166
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14168
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14170
# Shell to use when invoking shell scripts.
14173
# Whether or not to build shared libraries.
14174
build_libtool_libs=$enable_shared
14176
# Whether or not to build static libraries.
14177
build_old_libs=$enable_static
14179
# Whether or not to add -lc for building shared libraries.
14180
build_libtool_need_lc=$archive_cmds_need_lc_CXX
14182
# Whether or not to disallow shared libs when runtime libs are static
14183
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14185
# Whether or not to optimize for fast installation.
14186
fast_install=$enable_fast_install
14189
host_alias=$host_alias
14193
# The build system.
14194
build_alias=$build_alias
14198
# An echo program that does not interpret backslashes.
14203
AR_FLAGS=$lt_AR_FLAGS
14208
# LTCC compiler flags.
14209
LTCFLAGS=$lt_LTCFLAGS
14211
# A language-specific compiler.
14212
CC=$lt_compiler_CXX
14214
# Is the compiler the GNU C compiler?
14220
# The linker used to build libraries.
14223
# Whether we need hard or soft links.
14226
# A BSD-compatible nm program.
14229
# A symbol stripping program
14232
# Used to examine libraries when file_magic_cmd begins "file"
14233
MAGIC_CMD=$MAGIC_CMD
14235
# Used on cygwin: DLL creation program.
14238
# Used on cygwin: object dumper.
14241
# Used on cygwin: assembler.
14244
# The name of the directory that contains temporary libtool files.
14247
# How to create reloadable object files.
14248
reload_flag=$lt_reload_flag
14249
reload_cmds=$lt_reload_cmds
14251
# How to pass a linker flag through the compiler.
14252
wl=$lt_lt_prog_compiler_wl_CXX
14254
# Object file suffix (normally "o").
14255
objext="$ac_objext"
14257
# Old archive suffix (normally "a").
14260
# Shared library suffix (normally ".so").
14261
shrext_cmds='$shrext_cmds'
14263
# Executable file suffix (normally "").
14266
# Additional compiler flags for building library objects.
14267
pic_flag=$lt_lt_prog_compiler_pic_CXX
14270
# What is the maximum length of a command?
14271
max_cmd_len=$lt_cv_sys_max_cmd_len
14273
# Does compiler simultaneously support -c and -o options?
14274
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14276
# Must we lock files when doing compilation?
14277
need_locks=$lt_need_locks
14279
# Do we need the lib prefix for modules?
14280
need_lib_prefix=$need_lib_prefix
14282
# Do we need a version for libraries?
14283
need_version=$need_version
14285
# Whether dlopen is supported.
14286
dlopen_support=$enable_dlopen
14288
# Whether dlopen of programs is supported.
14289
dlopen_self=$enable_dlopen_self
14291
# Whether dlopen of statically linked programs is supported.
14292
dlopen_self_static=$enable_dlopen_self_static
14294
# Compiler flag to prevent dynamic linking.
14295
link_static_flag=$lt_lt_prog_compiler_static_CXX
14297
# Compiler flag to turn off builtin functions.
14298
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14300
# Compiler flag to allow reflexive dlopens.
14301
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14303
# Compiler flag to generate shared objects directly from archives.
14304
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14306
# Compiler flag to generate thread-safe objects.
14307
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14309
# Library versioning type.
14310
version_type=$version_type
14312
# Format of library name prefix.
14313
libname_spec=$lt_libname_spec
14315
# List of archive names. First name is the real one, the rest are links.
14316
# The last name is the one that the linker finds with -lNAME.
14317
library_names_spec=$lt_library_names_spec
14319
# The coded name of the library, if different from the real name.
14320
soname_spec=$lt_soname_spec
14322
# Commands used to build and install an old-style archive.
14324
old_archive_cmds=$lt_old_archive_cmds_CXX
14325
old_postinstall_cmds=$lt_old_postinstall_cmds
14326
old_postuninstall_cmds=$lt_old_postuninstall_cmds
14328
# Create an old-style archive from a shared archive.
14329
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14331
# Create a temporary old-style archive to link instead of a shared archive.
14332
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14334
# Commands used to build and install a shared archive.
14335
archive_cmds=$lt_archive_cmds_CXX
14336
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14337
postinstall_cmds=$lt_postinstall_cmds
14338
postuninstall_cmds=$lt_postuninstall_cmds
14340
# Commands used to build a loadable module (assumed same as above if empty)
14341
module_cmds=$lt_module_cmds_CXX
14342
module_expsym_cmds=$lt_module_expsym_cmds_CXX
14344
# Commands to strip libraries.
14345
old_striplib=$lt_old_striplib
14346
striplib=$lt_striplib
14348
# Dependencies to place before the objects being linked to create a
14350
predep_objects=$lt_predep_objects_CXX
14352
# Dependencies to place after the objects being linked to create a
14354
postdep_objects=$lt_postdep_objects_CXX
14356
# Dependencies to place before the objects being linked to create a
14358
predeps=$lt_predeps_CXX
14360
# Dependencies to place after the objects being linked to create a
14362
postdeps=$lt_postdeps_CXX
14364
# The directories searched by this compiler when creating a shared
14366
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
14368
# The library search path used internally by the compiler when linking
14369
# a shared library.
14370
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14372
# Method to check whether dependent libraries are shared objects.
14373
deplibs_check_method=$lt_deplibs_check_method
14375
# Command to use when deplibs_check_method == file_magic.
14376
file_magic_cmd=$lt_file_magic_cmd
14378
# Flag that allows shared libraries with undefined symbols to be built.
14379
allow_undefined_flag=$lt_allow_undefined_flag_CXX
14381
# Flag that forces no undefined symbols.
14382
no_undefined_flag=$lt_no_undefined_flag_CXX
14384
# Commands used to finish a libtool library installation in a directory.
14385
finish_cmds=$lt_finish_cmds
14387
# Same as above, but a single script fragment to be evaled but not shown.
14388
finish_eval=$lt_finish_eval
14390
# Take the output of nm and produce a listing of raw symbols and C names.
14391
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14393
# Transform the output of nm in a proper C declaration
14394
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14396
# Transform the output of nm in a C name address pair
14397
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14399
# This is the shared library runtime path variable.
14400
runpath_var=$runpath_var
14402
# This is the shared library path variable.
14403
shlibpath_var=$shlibpath_var
14405
# Is shlibpath searched before the hard-coded library search path?
14406
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14408
# How to hardcode a shared library path into an executable.
14409
hardcode_action=$hardcode_action_CXX
14411
# Whether we should hardcode library paths into libraries.
14412
hardcode_into_libs=$hardcode_into_libs
14414
# Flag to hardcode \$libdir into a binary during linking.
14415
# This must work even if \$libdir does not exist.
14416
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14418
# If ld is used when linking, flag to hardcode \$libdir into
14419
# a binary during linking. This must work even if \$libdir does
14421
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14423
# Whether we need a single -rpath flag with a separated argument.
14424
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14426
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14427
# resulting binary.
14428
hardcode_direct=$hardcode_direct_CXX
14430
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14431
# resulting binary.
14432
hardcode_minus_L=$hardcode_minus_L_CXX
14434
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14435
# the resulting binary.
14436
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14438
# Set to yes if building a shared library automatically hardcodes DIR into the library
14439
# and all subsequent libraries and executables linked against it.
14440
hardcode_automatic=$hardcode_automatic_CXX
14442
# Variables whose values should be saved in libtool wrapper scripts and
14443
# restored at relink time.
14444
variables_saved_for_relink="$variables_saved_for_relink"
14446
# Whether libtool must link a program against all its dependency libraries.
14447
link_all_deplibs=$link_all_deplibs_CXX
14449
# Compile-time system search path for libraries
14450
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14452
# Run-time system search path for libraries
14453
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14455
# Fix the shell variable \$srcfile for the compiler.
14456
fix_srcfile_path=$lt_fix_srcfile_path
14458
# Set to yes if exported symbols are required.
14459
always_export_symbols=$always_export_symbols_CXX
14461
# The commands to list exported symbols.
14462
export_symbols_cmds=$lt_export_symbols_cmds_CXX
14464
# The commands to extract the exported symbol list from a shared archive.
14465
extract_expsyms_cmds=$lt_extract_expsyms_cmds
14467
# Symbols that should not be listed in the preloaded symbols.
14468
exclude_expsyms=$lt_exclude_expsyms_CXX
14470
# Symbols that must always be exported.
14471
include_expsyms=$lt_include_expsyms_CXX
14473
# ### END LIBTOOL TAG CONFIG: $tagname
14479
# If there is no Makefile yet, we rely on a make rule to execute
14480
# `config.status --recheck' to rerun these tests and create the
14481
# libtool script then.
14482
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14483
if test -f "$ltmain_in"; then
14484
test -f Makefile && make "$ltmain"
14490
ac_cpp='$CPP $CPPFLAGS'
14491
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14492
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14493
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14499
with_gnu_ldcxx=$with_gnu_ld
14500
with_gnu_ld=$lt_save_with_gnu_ld
14501
lt_cv_path_LDCXX=$lt_cv_path_LD
14502
lt_cv_path_LD=$lt_save_path_LD
14503
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14504
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14512
if test -n "$F77" && test "X$F77" != "Xno"; then
14515
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14516
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14517
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14520
archive_cmds_need_lc_F77=no
14521
allow_undefined_flag_F77=
14522
always_export_symbols_F77=no
14523
archive_expsym_cmds_F77=
14524
export_dynamic_flag_spec_F77=
14525
hardcode_direct_F77=no
14526
hardcode_libdir_flag_spec_F77=
14527
hardcode_libdir_flag_spec_ld_F77=
14528
hardcode_libdir_separator_F77=
14529
hardcode_minus_L_F77=no
14530
hardcode_automatic_F77=no
14532
module_expsym_cmds_F77=
14533
link_all_deplibs_F77=unknown
14534
old_archive_cmds_F77=$old_archive_cmds
14535
no_undefined_flag_F77=
14536
whole_archive_flag_spec_F77=
14537
enable_shared_with_static_runtimes_F77=no
14539
# Source file extension for f77 test sources.
14542
# Object file extension for compiled f77 test sources.
14546
# Code to be used in simple compile tests
14547
lt_simple_compile_test_code="\
14553
# Code to be used in simple link tests
14554
lt_simple_link_test_code="\
14559
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14561
# If no C compiler was specified, use CC.
14564
# If no C compiler flags were specified, use CFLAGS.
14565
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14567
# Allow CC to be a program name with arguments.
14571
# save warnings/boilerplate of simple test code
14572
ac_outfile=conftest.$ac_objext
14573
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14574
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14575
_lt_compiler_boilerplate=`cat conftest.err`
14578
ac_outfile=conftest.$ac_objext
14579
echo "$lt_simple_link_test_code" >conftest.$ac_ext
14580
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14581
_lt_linker_boilerplate=`cat conftest.err`
14585
# Allow CC to be a program name with arguments.
14590
for cc_temp in $compiler""; do
14592
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14593
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14598
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14601
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14602
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14603
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
14604
echo "${ECHO_T}$can_build_shared" >&6; }
14606
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14607
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14608
test "$can_build_shared" = "no" && enable_shared=no
14610
# On AIX, shared libraries and static libraries use the same namespace, and
14611
# are all built from PIC.
14614
test "$enable_shared" = yes && enable_static=no
14615
if test -n "$RANLIB"; then
14616
archive_cmds="$archive_cmds~\$RANLIB \$lib"
14617
postinstall_cmds='$RANLIB $lib'
14621
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14622
test "$enable_shared" = yes && enable_static=no
14626
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
14627
echo "${ECHO_T}$enable_shared" >&6; }
14629
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14630
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14631
# Make sure either enable_shared or enable_static is yes.
14632
test "$enable_shared" = yes || enable_static=yes
14633
{ echo "$as_me:$LINENO: result: $enable_static" >&5
14634
echo "${ECHO_T}$enable_static" >&6; }
14639
lt_prog_compiler_wl_F77=
14640
lt_prog_compiler_pic_F77=
14641
lt_prog_compiler_static_F77=
14643
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14644
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14646
if test "$GCC" = yes; then
14647
lt_prog_compiler_wl_F77='-Wl,'
14648
lt_prog_compiler_static_F77='-static'
14652
# All AIX code is PIC.
14653
if test "$host_cpu" = ia64; then
14654
# AIX 5 now supports IA64 processor
14655
lt_prog_compiler_static_F77='-Bstatic'
14660
# FIXME: we need at least 68020 code to build shared libraries, but
14661
# adding the `-m68020' flag to GCC prevents building anything better,
14663
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14666
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14667
# PIC is the default for these OSes.
14670
mingw* | cygwin* | pw32* | os2*)
14671
# This hack is so that the source file can tell whether it is being
14672
# built for inclusion in a dll (and should export symbols for example).
14673
# Although the cygwin gcc ignores -fPIC, still need this for old-style
14674
# (--disable-auto-import) libraries
14675
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14678
darwin* | rhapsody*)
14679
# PIC is the default on this platform
14680
# Common symbols not allowed in MH_DYLIB files
14681
lt_prog_compiler_pic_F77='-fno-common'
14685
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
14686
# Instead, we relocate shared libraries at runtime.
14690
# Just because we use GCC doesn't mean we suddenly get shared libraries
14691
# on systems that don't support them.
14692
lt_prog_compiler_can_build_shared_F77=no
14697
if test -d /usr/nec; then
14698
lt_prog_compiler_pic_F77=-Kconform_pic
14703
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14704
# not for PA HP-UX.
14710
lt_prog_compiler_pic_F77='-fPIC'
14716
lt_prog_compiler_pic_F77='-fPIC'
14720
# PORTME Check for flag to pass linker flags through the system compiler.
14723
lt_prog_compiler_wl_F77='-Wl,'
14724
if test "$host_cpu" = ia64; then
14725
# AIX 5 now supports IA64 processor
14726
lt_prog_compiler_static_F77='-Bstatic'
14728
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14732
# PIC is the default on this platform
14733
# Common symbols not allowed in MH_DYLIB files
14734
case $cc_basename in
14736
lt_prog_compiler_pic_F77='-qnocommon'
14737
lt_prog_compiler_wl_F77='-Wl,'
14742
mingw* | cygwin* | pw32* | os2*)
14743
# This hack is so that the source file can tell whether it is being
14744
# built for inclusion in a dll (and should export symbols for example).
14745
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14748
hpux9* | hpux10* | hpux11*)
14749
lt_prog_compiler_wl_F77='-Wl,'
14750
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14751
# not for PA HP-UX.
14757
lt_prog_compiler_pic_F77='+Z'
14760
# Is there a better lt_prog_compiler_static that works with the bundled CC?
14761
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14764
irix5* | irix6* | nonstopux*)
14765
lt_prog_compiler_wl_F77='-Wl,'
14766
# PIC (with -KPIC) is the default.
14767
lt_prog_compiler_static_F77='-non_shared'
14771
lt_prog_compiler_pic_F77='-KPIC'
14772
lt_prog_compiler_static_F77='-Bstatic'
14775
linux* | k*bsd*-gnu)
14776
case $cc_basename in
14778
lt_prog_compiler_wl_F77='-Wl,'
14779
lt_prog_compiler_pic_F77='-KPIC'
14780
lt_prog_compiler_static_F77='-static'
14782
pgcc* | pgf77* | pgf90* | pgf95*)
14783
# Portland Group compilers (*not* the Pentium gcc compiler,
14784
# which looks to be a dead project)
14785
lt_prog_compiler_wl_F77='-Wl,'
14786
lt_prog_compiler_pic_F77='-fpic'
14787
lt_prog_compiler_static_F77='-Bstatic'
14790
lt_prog_compiler_wl_F77='-Wl,'
14791
# All Alpha code is PIC.
14792
lt_prog_compiler_static_F77='-non_shared'
14795
case `$CC -V 2>&1 | sed 5q` in
14798
lt_prog_compiler_pic_F77='-KPIC'
14799
lt_prog_compiler_static_F77='-Bstatic'
14800
lt_prog_compiler_wl_F77='-Wl,'
14803
# Sun Fortran 8.3 passes all unrecognized flags to the linker
14804
lt_prog_compiler_pic_F77='-KPIC'
14805
lt_prog_compiler_static_F77='-Bstatic'
14806
lt_prog_compiler_wl_F77=''
14813
osf3* | osf4* | osf5*)
14814
lt_prog_compiler_wl_F77='-Wl,'
14815
# All OSF/1 code is PIC.
14816
lt_prog_compiler_static_F77='-non_shared'
14820
lt_prog_compiler_static_F77='-non_shared'
14824
lt_prog_compiler_pic_F77='-KPIC'
14825
lt_prog_compiler_static_F77='-Bstatic'
14826
case $cc_basename in
14827
f77* | f90* | f95*)
14828
lt_prog_compiler_wl_F77='-Qoption ld ';;
14830
lt_prog_compiler_wl_F77='-Wl,';;
14835
lt_prog_compiler_wl_F77='-Qoption ld '
14836
lt_prog_compiler_pic_F77='-PIC'
14837
lt_prog_compiler_static_F77='-Bstatic'
14840
sysv4 | sysv4.2uw2* | sysv4.3*)
14841
lt_prog_compiler_wl_F77='-Wl,'
14842
lt_prog_compiler_pic_F77='-KPIC'
14843
lt_prog_compiler_static_F77='-Bstatic'
14847
if test -d /usr/nec ;then
14848
lt_prog_compiler_pic_F77='-Kconform_pic'
14849
lt_prog_compiler_static_F77='-Bstatic'
14853
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14854
lt_prog_compiler_wl_F77='-Wl,'
14855
lt_prog_compiler_pic_F77='-KPIC'
14856
lt_prog_compiler_static_F77='-Bstatic'
14860
lt_prog_compiler_wl_F77='-Wl,'
14861
lt_prog_compiler_can_build_shared_F77=no
14865
lt_prog_compiler_pic_F77='-pic'
14866
lt_prog_compiler_static_F77='-Bstatic'
14870
lt_prog_compiler_can_build_shared_F77=no
14875
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14876
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14879
# Check to make sure the PIC flag actually works.
14881
if test -n "$lt_prog_compiler_pic_F77"; then
14883
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14884
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14885
if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14886
echo $ECHO_N "(cached) $ECHO_C" >&6
14888
lt_cv_prog_compiler_pic_works_F77=no
14889
ac_outfile=conftest.$ac_objext
14890
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14891
lt_compiler_flag="$lt_prog_compiler_pic_F77"
14892
# Insert the option either (1) after the last *FLAGS variable, or
14893
# (2) before a word containing "conftest.", or (3) at the end.
14894
# Note that $ac_compile itself does not contain backslashes and begins
14895
# with a dollar sign (not a hyphen), so the echo should work correctly.
14896
# The option is referenced via a variable to avoid confusing sed.
14897
lt_compile=`echo "$ac_compile" | $SED \
14898
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14899
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14900
-e 's:$: $lt_compiler_flag:'`
14901
(eval echo "\"\$as_me:14901: $lt_compile\"" >&5)
14902
(eval "$lt_compile" 2>conftest.err)
14904
cat conftest.err >&5
14905
echo "$as_me:14905: \$? = $ac_status" >&5
14906
if (exit $ac_status) && test -s "$ac_outfile"; then
14907
# The compiler can only warn and ignore the option if not recognized
14908
# So say no if there are warnings other than the usual output.
14909
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14910
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14911
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14912
lt_cv_prog_compiler_pic_works_F77=yes
14918
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14919
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
14921
if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14922
case $lt_prog_compiler_pic_F77 in
14924
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14927
lt_prog_compiler_pic_F77=
14928
lt_prog_compiler_can_build_shared_F77=no
14933
# For platforms which do not support PIC, -DPIC is meaningless:
14935
lt_prog_compiler_pic_F77=
14938
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14943
# Check to make sure the static flag actually works.
14945
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14946
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14947
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14948
if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14949
echo $ECHO_N "(cached) $ECHO_C" >&6
14951
lt_cv_prog_compiler_static_works_F77=no
14952
save_LDFLAGS="$LDFLAGS"
14953
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14954
echo "$lt_simple_link_test_code" > conftest.$ac_ext
14955
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14956
# The linker can only warn and ignore the option if not recognized
14957
# So say no if there are warnings
14958
if test -s conftest.err; then
14959
# Append any errors to the config.log.
14960
cat conftest.err 1>&5
14961
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14962
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14963
if diff conftest.exp conftest.er2 >/dev/null; then
14964
lt_cv_prog_compiler_static_works_F77=yes
14967
lt_cv_prog_compiler_static_works_F77=yes
14971
LDFLAGS="$save_LDFLAGS"
14974
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14975
echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
14977
if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14980
lt_prog_compiler_static_F77=
14984
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14985
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14986
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14987
echo $ECHO_N "(cached) $ECHO_C" >&6
14989
lt_cv_prog_compiler_c_o_F77=no
14990
$rm -r conftest 2>/dev/null
14994
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14996
lt_compiler_flag="-o out/conftest2.$ac_objext"
14997
# Insert the option either (1) after the last *FLAGS variable, or
14998
# (2) before a word containing "conftest.", or (3) at the end.
14999
# Note that $ac_compile itself does not contain backslashes and begins
15000
# with a dollar sign (not a hyphen), so the echo should work correctly.
15001
lt_compile=`echo "$ac_compile" | $SED \
15002
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15003
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15004
-e 's:$: $lt_compiler_flag:'`
15005
(eval echo "\"\$as_me:15005: $lt_compile\"" >&5)
15006
(eval "$lt_compile" 2>out/conftest.err)
15008
cat out/conftest.err >&5
15009
echo "$as_me:15009: \$? = $ac_status" >&5
15010
if (exit $ac_status) && test -s out/conftest2.$ac_objext
15012
# The compiler can only warn and ignore the option if not recognized
15013
# So say no if there are warnings
15014
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15015
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15016
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15017
lt_cv_prog_compiler_c_o_F77=yes
15022
# SGI C++ compiler will create directory out/ii_files/ for
15023
# template instantiation
15024
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15025
$rm out/* && rmdir out
15031
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15032
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
15035
hard_links="nottested"
15036
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15037
# do not overwrite the value of need_locks provided by the user
15038
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15039
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15042
ln conftest.a conftest.b 2>/dev/null && hard_links=no
15044
ln conftest.a conftest.b 2>&5 || hard_links=no
15045
ln conftest.a conftest.b 2>/dev/null && hard_links=no
15046
{ echo "$as_me:$LINENO: result: $hard_links" >&5
15047
echo "${ECHO_T}$hard_links" >&6; }
15048
if test "$hard_links" = no; then
15049
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15050
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15057
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15058
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15061
allow_undefined_flag_F77=
15062
enable_shared_with_static_runtimes_F77=no
15064
archive_expsym_cmds_F77=
15065
old_archive_From_new_cmds_F77=
15066
old_archive_from_expsyms_cmds_F77=
15067
export_dynamic_flag_spec_F77=
15068
whole_archive_flag_spec_F77=
15069
thread_safe_flag_spec_F77=
15070
hardcode_libdir_flag_spec_F77=
15071
hardcode_libdir_flag_spec_ld_F77=
15072
hardcode_libdir_separator_F77=
15073
hardcode_direct_F77=no
15074
hardcode_minus_L_F77=no
15075
hardcode_shlibpath_var_F77=unsupported
15076
link_all_deplibs_F77=unknown
15077
hardcode_automatic_F77=no
15079
module_expsym_cmds_F77=
15080
always_export_symbols_F77=no
15081
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15082
# include_expsyms should be a list of space-separated symbols to be *always*
15083
# included in the symbol list
15084
include_expsyms_F77=
15085
# exclude_expsyms can be an extended regexp of symbols to exclude
15086
# it will be wrapped by ` (' and `)$', so one must not match beginning or
15087
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15088
# as well as any symbol that contains `d'.
15089
exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15090
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15091
# platforms (ab)use it in PIC code, but their linkers get confused if
15092
# the symbol is explicitly referenced. Since portable code cannot
15093
# rely on this symbol name, it's probably fine to never include it in
15094
# preloaded symbol tables.
15095
# Exclude shared library initialization/finalization symbols.
15096
extract_expsyms_cmds=
15097
# Just being paranoid about ensuring that cc_basename is set.
15098
for cc_temp in $compiler""; do
15100
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15101
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15106
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15109
cygwin* | mingw* | pw32*)
15110
# FIXME: the MSVC++ port hasn't been tested in a loooong time
15111
# When not using gcc, we currently assume that we are using
15112
# Microsoft Visual C++.
15113
if test "$GCC" != yes; then
15118
# we just hope/assume this is gcc and not c89 (= MSVC++)
15127
if test "$with_gnu_ld" = yes; then
15128
# If archive_cmds runs LD, not CC, wlarc should be empty
15131
# Set some defaults for GNU ld with shared library support. These
15132
# are reset later if shared libraries are not supported. Putting them
15133
# here allows them to be overridden if necessary.
15134
runpath_var=LD_RUN_PATH
15135
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15136
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15137
# ancient GNU ld didn't support --whole-archive et. al.
15138
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15139
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15141
whole_archive_flag_spec_F77=
15143
supports_anon_versioning=no
15144
case `$LD -v 2>/dev/null` in
15145
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15146
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15147
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15148
*\ 2.11.*) ;; # other 2.11 versions
15149
*) supports_anon_versioning=yes ;;
15152
# See if GNU ld supports shared libraries.
15155
# On AIX/PPC, the GNU linker is very broken
15156
if test "$host_cpu" != ia64; then
15160
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15161
*** to be unable to reliably create shared libraries on AIX.
15162
*** Therefore, libtool is disabling shared libraries support. If you
15163
*** really care for shared libraries, you may want to modify your PATH
15164
*** so that a non-GNU linker is found, and then restart.
15171
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)'
15172
hardcode_libdir_flag_spec_F77='-L$libdir'
15173
hardcode_minus_L_F77=yes
15175
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15176
# that the semantics of dynamic libraries on AmigaOS, at least up
15177
# to version 4, is to share data among multiple programs linked
15178
# with the same dynamic library. Since this doesn't match the
15179
# behavior of shared libraries on other platforms, we can't use
15185
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15186
allow_undefined_flag_F77=unsupported
15187
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15188
# support --undefined. This deserves some investigation. FIXME
15189
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15195
cygwin* | mingw* | pw32*)
15196
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15197
# as there is no search path for DLLs.
15198
hardcode_libdir_flag_spec_F77='-L$libdir'
15199
allow_undefined_flag_F77=unsupported
15200
always_export_symbols_F77=no
15201
enable_shared_with_static_runtimes_F77=yes
15202
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15204
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15205
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15206
# If the export-symbols file already is a .def file (1st line
15207
# is EXPORTS), use it as is; otherwise, prepend...
15208
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15209
cp $export_symbols $output_objdir/$soname.def;
15211
echo EXPORTS > $output_objdir/$soname.def;
15212
cat $export_symbols >> $output_objdir/$soname.def;
15214
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15221
hardcode_direct_F77=no
15222
hardcode_shlibpath_var_F77=no
15223
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15224
export_dynamic_flag_spec_F77='${wl}-E'
15225
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15226
# Instead, shared libraries are loaded at an image base (0x10000000 by
15227
# default) and relocated if they conflict, which is a slow very memory
15228
# consuming and fragmenting process. To avoid this, we pick a random,
15229
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15230
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
15231
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'
15232
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'
15235
gnu* | linux* | k*bsd*-gnu)
15236
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15238
case $cc_basename,$host_cpu in
15239
pgcc*) # Portland Group C compiler
15240
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'
15241
tmp_addflag=' $pic_flag'
15243
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15244
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'
15245
tmp_addflag=' $pic_flag -Mnomain' ;;
15246
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15247
tmp_addflag=' -i_dynamic' ;;
15248
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15249
tmp_addflag=' -i_dynamic -nofor_main' ;;
15250
ifc* | ifort*) # Intel Fortran compiler
15251
tmp_addflag=' -nofor_main' ;;
15253
case `$CC -V 2>&1 | sed 5q` in
15254
*Sun\ C*) # Sun C 5.9
15255
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'
15256
tmp_sharedflag='-G' ;;
15257
*Sun\ F*) # Sun Fortran 8.3
15258
tmp_sharedflag='-G' ;;
15260
tmp_sharedflag='-shared' ;;
15262
archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15264
if test $supports_anon_versioning = yes; then
15265
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15266
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15267
$echo "local: *; };" >> $output_objdir/$libname.ver~
15268
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15270
link_all_deplibs_F77=no
15276
netbsd* | netbsdelf*-gnu)
15277
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15278
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15281
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15282
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15287
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15291
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15292
*** create shared libraries on Solaris systems. Therefore, libtool
15293
*** is disabling shared libraries support. We urge you to upgrade GNU
15294
*** binutils to release 2.9.1 or newer. Another option is to modify
15295
*** your PATH or compiler configuration so that the native linker is
15296
*** used, and then restart.
15299
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15300
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15301
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15307
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15308
case `$LD -v 2>&1` in
15309
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15313
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15314
*** reliably create shared libraries on SCO systems. Therefore, libtool
15315
*** is disabling shared libraries support. We urge you to upgrade GNU
15316
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15317
*** your PATH or compiler configuration so that the native linker is
15318
*** used, and then restart.
15323
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15324
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15325
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15326
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15335
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15337
hardcode_direct_F77=yes
15338
hardcode_shlibpath_var_F77=no
15342
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15343
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15344
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15351
if test "$ld_shlibs_F77" = no; then
15353
hardcode_libdir_flag_spec_F77=
15354
export_dynamic_flag_spec_F77=
15355
whole_archive_flag_spec_F77=
15358
# PORTME fill in a description of your system's linker (not GNU ld)
15361
allow_undefined_flag_F77=unsupported
15362
always_export_symbols_F77=yes
15363
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'
15364
# Note: this linker hardcodes the directories in LIBPATH if there
15365
# are no directories specified by -L.
15366
hardcode_minus_L_F77=yes
15367
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15368
# Neither direct hardcoding nor static linking is supported with a
15370
hardcode_direct_F77=unsupported
15375
if test "$host_cpu" = ia64; then
15376
# On IA64, the linker does run time linking by default, so we don't
15377
# have to do anything special.
15378
aix_use_runtimelinking=no
15379
exp_sym_flag='-Bexport'
15382
# If we're using GNU nm, then we don't want the "-C" option.
15383
# -C means demangle to AIX nm, but means don't demangle with GNU nm
15384
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15385
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'
15387
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'
15389
aix_use_runtimelinking=no
15391
# Test if we are trying to use run time linking or normal
15392
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15393
# need to do runtime linking.
15394
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15395
for ld_flag in $LDFLAGS; do
15396
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15397
aix_use_runtimelinking=yes
15404
exp_sym_flag='-bexport'
15405
no_entry_flag='-bnoentry'
15408
# When large executables or shared objects are built, AIX ld can
15409
# have problems creating the table of contents. If linking a library
15410
# or program results in "error TOC overflow" add -mminimal-toc to
15411
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15412
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15414
archive_cmds_F77=''
15415
hardcode_direct_F77=yes
15416
hardcode_libdir_separator_F77=':'
15417
link_all_deplibs_F77=yes
15419
if test "$GCC" = yes; then
15420
case $host_os in aix4.[012]|aix4.[012].*)
15421
# We only want to do this on AIX 4.2 and lower, the check
15422
# below for broken collect2 doesn't work under 4.3+
15423
collect2name=`${CC} -print-prog-name=collect2`
15424
if test -f "$collect2name" && \
15425
strings "$collect2name" | grep resolve_lib_name >/dev/null
15427
# We have reworked collect2
15430
# We have old collect2
15431
hardcode_direct_F77=unsupported
15432
# It fails to find uninstalled libraries when the uninstalled
15433
# path is not listed in the libpath. Setting hardcode_minus_L
15434
# to unsupported forces relinking
15435
hardcode_minus_L_F77=yes
15436
hardcode_libdir_flag_spec_F77='-L$libdir'
15437
hardcode_libdir_separator_F77=
15441
shared_flag='-shared'
15442
if test "$aix_use_runtimelinking" = yes; then
15443
shared_flag="$shared_flag "'${wl}-G'
15447
if test "$host_cpu" = ia64; then
15448
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15449
# chokes on -Wl,-G. The following line is correct:
15452
if test "$aix_use_runtimelinking" = yes; then
15453
shared_flag='${wl}-G'
15455
shared_flag='${wl}-bM:SRE'
15460
# It seems that -bexpall does not export symbols beginning with
15461
# underscore (_), so it is better to generate a list of symbols to export.
15462
always_export_symbols_F77=yes
15463
if test "$aix_use_runtimelinking" = yes; then
15464
# Warning - without using the other runtime loading flags (-brtl),
15465
# -berok will link without error, but may produce a broken library.
15466
allow_undefined_flag_F77='-berok'
15467
# Determine the default libpath from the value encoded in an empty executable.
15468
cat >conftest.$ac_ext <<_ACEOF
15473
rm -f conftest.$ac_objext conftest$ac_exeext
15474
if { (ac_try="$ac_link"
15475
case "(($ac_try" in
15476
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15477
*) ac_try_echo=$ac_try;;
15479
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15480
(eval "$ac_link") 2>conftest.er1
15482
grep -v '^ *+' conftest.er1 >conftest.err
15484
cat conftest.err >&5
15485
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15486
(exit $ac_status); } && {
15487
test -z "$ac_f77_werror_flag" ||
15488
test ! -s conftest.err
15489
} && test -s conftest$ac_exeext &&
15490
$as_test_x conftest$ac_exeext; then
15492
lt_aix_libpath_sed='
15493
/Import File Strings/,/^$/ {
15499
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15500
# Check for a 64-bit object if we didn't find anything.
15501
if test -z "$aix_libpath"; then
15502
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15505
echo "$as_me: failed program was:" >&5
15506
sed 's/^/| /' conftest.$ac_ext >&5
15511
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15512
conftest$ac_exeext conftest.$ac_ext
15513
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15515
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15516
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"
15518
if test "$host_cpu" = ia64; then
15519
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15520
allow_undefined_flag_F77="-z nodefs"
15521
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"
15523
# Determine the default libpath from the value encoded in an empty executable.
15524
cat >conftest.$ac_ext <<_ACEOF
15529
rm -f conftest.$ac_objext conftest$ac_exeext
15530
if { (ac_try="$ac_link"
15531
case "(($ac_try" in
15532
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15533
*) ac_try_echo=$ac_try;;
15535
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15536
(eval "$ac_link") 2>conftest.er1
15538
grep -v '^ *+' conftest.er1 >conftest.err
15540
cat conftest.err >&5
15541
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15542
(exit $ac_status); } && {
15543
test -z "$ac_f77_werror_flag" ||
15544
test ! -s conftest.err
15545
} && test -s conftest$ac_exeext &&
15546
$as_test_x conftest$ac_exeext; then
15548
lt_aix_libpath_sed='
15549
/Import File Strings/,/^$/ {
15555
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15556
# Check for a 64-bit object if we didn't find anything.
15557
if test -z "$aix_libpath"; then
15558
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15561
echo "$as_me: failed program was:" >&5
15562
sed 's/^/| /' conftest.$ac_ext >&5
15567
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15568
conftest$ac_exeext conftest.$ac_ext
15569
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15571
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15572
# Warning - without using the other run time loading flags,
15573
# -berok will link without error, but may produce a broken library.
15574
no_undefined_flag_F77=' ${wl}-bernotok'
15575
allow_undefined_flag_F77=' ${wl}-berok'
15576
# Exported symbols can be pulled into shared objects from archives
15577
whole_archive_flag_spec_F77='$convenience'
15578
archive_cmds_need_lc_F77=yes
15579
# This is similar to how AIX traditionally builds its shared libraries.
15580
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'
15586
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)'
15587
hardcode_libdir_flag_spec_F77='-L$libdir'
15588
hardcode_minus_L_F77=yes
15589
# see comment about different semantics on the GNU ld section
15594
export_dynamic_flag_spec_F77=-rdynamic
15597
cygwin* | mingw* | pw32*)
15598
# When not using gcc, we currently assume that we are using
15599
# Microsoft Visual C++.
15600
# hardcode_libdir_flag_spec is actually meaningless, as there is
15601
# no search path for DLLs.
15602
hardcode_libdir_flag_spec_F77=' '
15603
allow_undefined_flag_F77=unsupported
15604
# Tell ltmain to make .lib files, not .a files.
15606
# Tell ltmain to make .dll files, not .so files.
15608
# FIXME: Setting linknames here is a bad hack.
15609
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15610
# The linker will automatically build a .lib file if we build a DLL.
15611
old_archive_From_new_cmds_F77='true'
15612
# FIXME: Should let the user specify the lib program.
15613
old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15614
fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15615
enable_shared_with_static_runtimes_F77=yes
15618
darwin* | rhapsody*)
15620
rhapsody* | darwin1.[012])
15621
allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15624
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15625
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15627
case ${MACOSX_DEPLOYMENT_TARGET} in
15629
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15632
allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15638
archive_cmds_need_lc_F77=no
15639
hardcode_direct_F77=no
15640
hardcode_automatic_F77=yes
15641
hardcode_shlibpath_var_F77=unsupported
15642
whole_archive_flag_spec_F77=''
15643
link_all_deplibs_F77=yes
15644
if test "$GCC" = yes ; then
15645
output_verbose_link_cmd='echo'
15646
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}"
15647
module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15648
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}"
15649
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}"
15651
case $cc_basename in
15653
output_verbose_link_cmd='echo'
15654
archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15655
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15656
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15657
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}'
15658
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}'
15668
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15669
hardcode_libdir_flag_spec_F77='-L$libdir'
15670
hardcode_shlibpath_var_F77=no
15677
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15678
# support. Future versions do this automatically, but an explicit c++rt0.o
15679
# does not break anything, and helps significantly (at the cost of a little
15682
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15683
hardcode_libdir_flag_spec_F77='-R$libdir'
15684
hardcode_direct_F77=yes
15685
hardcode_shlibpath_var_F77=no
15688
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
15690
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15691
hardcode_direct_F77=yes
15692
hardcode_minus_L_F77=yes
15693
hardcode_shlibpath_var_F77=no
15696
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15697
freebsd* | dragonfly*)
15698
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15699
hardcode_libdir_flag_spec_F77='-R$libdir'
15700
hardcode_direct_F77=yes
15701
hardcode_shlibpath_var_F77=no
15705
if test "$GCC" = yes; then
15706
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'
15708
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'
15710
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15711
hardcode_libdir_separator_F77=:
15712
hardcode_direct_F77=yes
15714
# hardcode_minus_L: Not really in the search PATH,
15715
# but as the default location of the library.
15716
hardcode_minus_L_F77=yes
15717
export_dynamic_flag_spec_F77='${wl}-E'
15721
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15722
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15724
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15726
if test "$with_gnu_ld" = no; then
15727
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15728
hardcode_libdir_separator_F77=:
15730
hardcode_direct_F77=yes
15731
export_dynamic_flag_spec_F77='${wl}-E'
15733
# hardcode_minus_L: Not really in the search PATH,
15734
# but as the default location of the library.
15735
hardcode_minus_L_F77=yes
15740
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15743
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15746
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15749
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15755
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15758
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15761
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15765
if test "$with_gnu_ld" = no; then
15766
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15767
hardcode_libdir_separator_F77=:
15771
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15772
hardcode_direct_F77=no
15773
hardcode_shlibpath_var_F77=no
15776
hardcode_direct_F77=yes
15777
export_dynamic_flag_spec_F77='${wl}-E'
15779
# hardcode_minus_L: Not really in the search PATH,
15780
# but as the default location of the library.
15781
hardcode_minus_L_F77=yes
15787
irix5* | irix6* | nonstopux*)
15788
if test "$GCC" = yes; then
15789
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'
15791
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'
15792
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15794
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15795
hardcode_libdir_separator_F77=:
15796
link_all_deplibs_F77=yes
15799
netbsd* | netbsdelf*-gnu)
15800
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15801
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15803
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15805
hardcode_libdir_flag_spec_F77='-R$libdir'
15806
hardcode_direct_F77=yes
15807
hardcode_shlibpath_var_F77=no
15811
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15812
hardcode_direct_F77=yes
15813
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15814
hardcode_libdir_separator_F77=:
15815
hardcode_shlibpath_var_F77=no
15819
if test -f /usr/libexec/ld.so; then
15820
hardcode_direct_F77=yes
15821
hardcode_shlibpath_var_F77=no
15822
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15823
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15824
archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15825
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15826
export_dynamic_flag_spec_F77='${wl}-E'
15829
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15830
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15831
hardcode_libdir_flag_spec_F77='-R$libdir'
15834
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15835
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15845
hardcode_libdir_flag_spec_F77='-L$libdir'
15846
hardcode_minus_L_F77=yes
15847
allow_undefined_flag_F77=unsupported
15848
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'
15849
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15853
if test "$GCC" = yes; then
15854
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15855
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'
15857
allow_undefined_flag_F77=' -expect_unresolved \*'
15858
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'
15860
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15861
hardcode_libdir_separator_F77=:
15864
osf4* | osf5*) # as osf3* with the addition of -msym flag
15865
if test "$GCC" = yes; then
15866
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15867
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'
15868
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15870
allow_undefined_flag_F77=' -expect_unresolved \*'
15871
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'
15872
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~
15873
$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'
15875
# Both c and cxx compiler support -rpath directly
15876
hardcode_libdir_flag_spec_F77='-rpath $libdir'
15878
hardcode_libdir_separator_F77=:
15882
no_undefined_flag_F77=' -z text'
15883
if test "$GCC" = yes; then
15885
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15886
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15887
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15890
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15891
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15892
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15894
hardcode_libdir_flag_spec_F77='-R$libdir'
15895
hardcode_shlibpath_var_F77=no
15897
solaris2.[0-5] | solaris2.[0-5].*) ;;
15899
# The compiler driver will combine and reorder linker options,
15900
# but understands `-z linker_flag'. GCC discards it without `$wl',
15901
# but is careful enough not to reorder.
15902
# Supported since Solaris 2.6 (maybe 2.5.1?)
15903
if test "$GCC" = yes; then
15904
whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15906
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15910
link_all_deplibs_F77=yes
15914
if test "x$host_vendor" = xsequent; then
15915
# Use $CC to link under sequent, because it throws in some extra .o
15916
# files that make .init and .fini sections work.
15917
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15919
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15921
hardcode_libdir_flag_spec_F77='-L$libdir'
15922
hardcode_direct_F77=yes
15923
hardcode_minus_L_F77=yes
15924
hardcode_shlibpath_var_F77=no
15928
case $host_vendor in
15930
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15931
hardcode_direct_F77=yes # is this really true???
15934
## LD is ld it makes a PLAMLIB
15935
## CC just makes a GrossModule.
15936
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15937
reload_cmds_F77='$CC -r -o $output$reload_objs'
15938
hardcode_direct_F77=no
15941
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15942
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15945
runpath_var='LD_RUN_PATH'
15946
hardcode_shlibpath_var_F77=no
15950
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15951
hardcode_shlibpath_var_F77=no
15952
export_dynamic_flag_spec_F77='-Bexport'
15956
if test -d /usr/nec; then
15957
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15958
hardcode_shlibpath_var_F77=no
15959
runpath_var=LD_RUN_PATH
15960
hardcode_runpath_var=yes
15965
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15966
no_undefined_flag_F77='${wl}-z,text'
15967
archive_cmds_need_lc_F77=no
15968
hardcode_shlibpath_var_F77=no
15969
runpath_var='LD_RUN_PATH'
15971
if test "$GCC" = yes; then
15972
archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15973
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15975
archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15976
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15980
sysv5* | sco3.2v5* | sco5v6*)
15981
# Note: We can NOT use -z defs as we might desire, because we do not
15982
# link with -lc, and that would cause any symbols used from libc to
15983
# always be unresolved, which means just about no library would
15984
# ever link correctly. If we're not using GNU ld we use -z text
15985
# though, which does catch some bad symbols but isn't as heavy-handed
15987
no_undefined_flag_F77='${wl}-z,text'
15988
allow_undefined_flag_F77='${wl}-z,nodefs'
15989
archive_cmds_need_lc_F77=no
15990
hardcode_shlibpath_var_F77=no
15991
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15992
hardcode_libdir_separator_F77=':'
15993
link_all_deplibs_F77=yes
15994
export_dynamic_flag_spec_F77='${wl}-Bexport'
15995
runpath_var='LD_RUN_PATH'
15997
if test "$GCC" = yes; then
15998
archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15999
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16001
archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16002
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16007
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16008
hardcode_libdir_flag_spec_F77='-L$libdir'
16009
hardcode_shlibpath_var_F77=no
16018
{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16019
echo "${ECHO_T}$ld_shlibs_F77" >&6; }
16020
test "$ld_shlibs_F77" = no && can_build_shared=no
16023
# Do we need to explicitly link libc?
16025
case "x$archive_cmds_need_lc_F77" in
16027
# Assume -lc should be added
16028
archive_cmds_need_lc_F77=yes
16030
if test "$enable_shared" = yes && test "$GCC" = yes; then
16031
case $archive_cmds_F77 in
16033
# FIXME: we may have to deal with multi-command sequences.
16036
# Test whether the compiler implicitly links with -lc since on some
16037
# systems, -lgcc has to come before -lc. If gcc already passes -lc
16038
# to ld, don't add -lc before -lgcc.
16039
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16040
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16042
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16044
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16045
(eval $ac_compile) 2>&5
16047
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16048
(exit $ac_status); } 2>conftest.err; then
16051
libobjs=conftest.$ac_objext
16053
wl=$lt_prog_compiler_wl_F77
16054
pic_flag=$lt_prog_compiler_pic_F77
16060
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16061
allow_undefined_flag_F77=
16062
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16063
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16065
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16066
(exit $ac_status); }
16068
archive_cmds_need_lc_F77=no
16070
archive_cmds_need_lc_F77=yes
16072
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16074
cat conftest.err 1>&5
16077
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16078
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
16085
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16086
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16087
library_names_spec=
16088
libname_spec='lib$name'
16092
postuninstall_cmds=
16096
shlibpath_overrides_runpath=unknown
16098
dynamic_linker="$host_os ld.so"
16099
sys_lib_dlsearch_path_spec="/lib /usr/lib"
16101
need_lib_prefix=unknown
16102
hardcode_into_libs=no
16104
# when you set need_version to no, make sure it does not cause -set_version
16105
# flags to be left without arguments
16106
need_version=unknown
16111
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16112
shlibpath_var=LIBPATH
16114
# AIX 3 has no versioning support, so we append a major version to the name.
16115
soname_spec='${libname}${release}${shared_ext}$major'
16122
hardcode_into_libs=yes
16123
if test "$host_cpu" = ia64; then
16124
# AIX 5 supports IA64
16125
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16126
shlibpath_var=LD_LIBRARY_PATH
16128
# With GCC up to 2.95.x, collect2 would create an import file
16129
# for dependence libraries. The import file would start with
16130
# the line `#! .'. This would cause the generated library to
16131
# depend on `.', always an invalid library. This was fixed in
16132
# development snapshots of GCC prior to 3.0.
16134
aix4 | aix4.[01] | aix4.[01].*)
16135
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16137
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16140
can_build_shared=no
16144
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16145
# soname into executable. Probably we can add versioning support to
16146
# collect2, so additional links can be useful in future.
16147
if test "$aix_use_runtimelinking" = yes; then
16148
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
16149
# instead of lib<name>.a to let people know that these are not
16150
# typical AIX shared libraries.
16151
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16153
# We preserve .a as extension for shared libraries through AIX4.2
16154
# and later when we are not doing run time linking.
16155
library_names_spec='${libname}${release}.a $libname.a'
16156
soname_spec='${libname}${release}${shared_ext}$major'
16158
shlibpath_var=LIBPATH
16163
library_names_spec='$libname.ixlibrary $libname.a'
16164
# Create ${libname}_ixlibrary.a entries in /sys/libs.
16165
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'
16169
library_names_spec='${libname}${shared_ext}'
16170
dynamic_linker="$host_os ld.so"
16171
shlibpath_var=LIBRARY_PATH
16177
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16178
soname_spec='${libname}${release}${shared_ext}$major'
16179
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16180
shlibpath_var=LD_LIBRARY_PATH
16181
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16182
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16183
# the default ld.so.conf also contains /usr/contrib/lib and
16184
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16185
# libtool to hard-code these into programs
16188
cygwin* | mingw* | pw32*)
16189
version_type=windows
16194
case $GCC,$host_os in
16195
yes,cygwin* | yes,mingw* | yes,pw32*)
16196
library_names_spec='$libname.dll.a'
16197
# DLL is installed to $(libdir)/../bin by postinstall_cmds
16198
postinstall_cmds='base_file=`basename \${file}`~
16199
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16200
dldir=$destdir/`dirname \$dlpath`~
16201
test -d \$dldir || mkdir -p \$dldir~
16202
$install_prog $dir/$dlname \$dldir/$dlname~
16203
chmod a+x \$dldir/$dlname'
16204
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16205
dlpath=$dir/\$dldll~
16207
shlibpath_overrides_runpath=yes
16211
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
16212
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16213
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16216
# MinGW DLLs use traditional 'lib' prefix
16217
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16218
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16219
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16220
# It is most probably a Windows format PATH printed by
16221
# mingw gcc, but we are running on Cygwin. Gcc prints its search
16222
# path with ; separators, and with drive letters. We can handle the
16223
# drive letters (cygwin fileutils understands them), so leave them,
16224
# especially as we might pass files found there to a mingw objdump,
16225
# which wouldn't understand a cygwinified path. Ahh.
16226
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16228
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16232
# pw32 DLLs use 'pw' prefix rather than 'lib'
16233
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16239
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16242
dynamic_linker='Win32 ld.exe'
16243
# FIXME: first we should search . and the directory the executable is in
16247
darwin* | rhapsody*)
16248
dynamic_linker="$host_os dyld"
16249
version_type=darwin
16252
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16253
soname_spec='${libname}${release}${major}$shared_ext'
16254
shlibpath_overrides_runpath=yes
16255
shlibpath_var=DYLD_LIBRARY_PATH
16256
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16258
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16265
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16266
soname_spec='${libname}${release}${shared_ext}$major'
16267
shlibpath_var=LD_LIBRARY_PATH
16274
freebsd* | dragonfly*)
16275
# DragonFly does not have aout. When/if they implement a new
16276
# versioning mechanism, adjust this.
16277
if test -x /usr/bin/objformat; then
16278
objformat=`/usr/bin/objformat`
16281
freebsd[123]*) objformat=aout ;;
16282
*) objformat=elf ;;
16285
version_type=freebsd-$objformat
16286
case $version_type in
16288
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16293
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16297
shlibpath_var=LD_LIBRARY_PATH
16300
shlibpath_overrides_runpath=yes
16302
freebsd3.[01]* | freebsdelf3.[01]*)
16303
shlibpath_overrides_runpath=yes
16304
hardcode_into_libs=yes
16306
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16307
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16308
shlibpath_overrides_runpath=no
16309
hardcode_into_libs=yes
16311
*) # from 4.6 on, and DragonFly
16312
shlibpath_overrides_runpath=yes
16313
hardcode_into_libs=yes
16322
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16323
soname_spec='${libname}${release}${shared_ext}$major'
16324
shlibpath_var=LD_LIBRARY_PATH
16325
hardcode_into_libs=yes
16328
hpux9* | hpux10* | hpux11*)
16329
# Give a soname corresponding to the major version so that dld.sl refuses to
16330
# link against other versions.
16337
hardcode_into_libs=yes
16338
dynamic_linker="$host_os dld.so"
16339
shlibpath_var=LD_LIBRARY_PATH
16340
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16341
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16342
soname_spec='${libname}${release}${shared_ext}$major'
16343
if test "X$HPUX_IA64_MODE" = X32; then
16344
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16346
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16348
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16352
hardcode_into_libs=yes
16353
dynamic_linker="$host_os dld.sl"
16354
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16355
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16356
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16357
soname_spec='${libname}${release}${shared_ext}$major'
16358
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16359
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16363
dynamic_linker="$host_os dld.sl"
16364
shlibpath_var=SHLIB_PATH
16365
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16366
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16367
soname_spec='${libname}${release}${shared_ext}$major'
16370
# HP-UX runs *really* slowly unless shared libraries are mode 555.
16371
postinstall_cmds='chmod 555 $lib'
16378
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16379
soname_spec='${libname}${release}${shared_ext}$major'
16380
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16381
shlibpath_var=LD_LIBRARY_PATH
16382
shlibpath_overrides_runpath=no
16383
hardcode_into_libs=yes
16386
irix5* | irix6* | nonstopux*)
16388
nonstopux*) version_type=nonstopux ;;
16390
if test "$lt_cv_prog_gnu_ld" = yes; then
16398
soname_spec='${libname}${release}${shared_ext}$major'
16399
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16401
irix5* | nonstopux*)
16402
libsuff= shlibsuff=
16405
case $LD in # libtool.m4 will add one of these switches to LD
16406
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16407
libsuff= shlibsuff= libmagic=32-bit;;
16408
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16409
libsuff=32 shlibsuff=N32 libmagic=N32;;
16410
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16411
libsuff=64 shlibsuff=64 libmagic=64-bit;;
16412
*) libsuff= shlibsuff= libmagic=never-match;;
16416
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16417
shlibpath_overrides_runpath=no
16418
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16419
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16420
hardcode_into_libs=yes
16423
# No shared lib support for Linux oldld, aout, or coff.
16424
linux*oldld* | linux*aout* | linux*coff*)
16428
# This must be Linux ELF.
16429
linux* | k*bsd*-gnu)
16433
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16434
soname_spec='${libname}${release}${shared_ext}$major'
16435
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16436
shlibpath_var=LD_LIBRARY_PATH
16437
shlibpath_overrides_runpath=no
16438
# This implies no fast_install, which is unacceptable.
16439
# Some rework will be needed to allow for fast_install
16440
# before this can be enabled.
16441
hardcode_into_libs=yes
16443
# Append ld.so.conf contents to the search path
16444
if test -f /etc/ld.so.conf; then
16445
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' ' '`
16446
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16449
# We used to test for /lib/ld.so.1 and disable shared libraries on
16450
# powerpc, because MkLinux only supported shared libraries with the
16451
# GNU dynamic linker. Since this was broken with cross compilers,
16452
# most powerpc-linux boxes support dynamic linking these days and
16453
# people can always --disable-shared, the test was removed, and we
16454
# assume the GNU/Linux dynamic linker is in use.
16455
dynamic_linker='GNU/Linux ld.so'
16462
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16463
soname_spec='${libname}${release}${shared_ext}$major'
16464
shlibpath_var=LD_LIBRARY_PATH
16465
shlibpath_overrides_runpath=no
16466
hardcode_into_libs=yes
16467
dynamic_linker='NetBSD ld.elf_so'
16474
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16475
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16476
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16477
dynamic_linker='NetBSD (a.out) ld.so'
16479
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16480
soname_spec='${libname}${release}${shared_ext}$major'
16481
dynamic_linker='NetBSD ld.elf_so'
16483
shlibpath_var=LD_LIBRARY_PATH
16484
shlibpath_overrides_runpath=yes
16485
hardcode_into_libs=yes
16490
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16491
shlibpath_var=LD_LIBRARY_PATH
16492
shlibpath_overrides_runpath=yes
16499
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16500
soname_spec='${libname}${release}${shared_ext}$major'
16501
shlibpath_var=LD_LIBRARY_PATH
16502
shlibpath_overrides_runpath=yes
16507
sys_lib_dlsearch_path_spec="/usr/lib"
16509
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16511
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16512
*) need_version=no ;;
16514
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16515
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16516
shlibpath_var=LD_LIBRARY_PATH
16517
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16519
openbsd2.[89] | openbsd2.[89].*)
16520
shlibpath_overrides_runpath=no
16523
shlibpath_overrides_runpath=yes
16527
shlibpath_overrides_runpath=yes
16532
libname_spec='$name'
16535
library_names_spec='$libname${shared_ext} $libname.a'
16536
dynamic_linker='OS/2 ld.exe'
16537
shlibpath_var=LIBPATH
16540
osf3* | osf4* | osf5*)
16544
soname_spec='${libname}${release}${shared_ext}$major'
16545
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16546
shlibpath_var=LD_LIBRARY_PATH
16547
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16548
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16559
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16560
soname_spec='${libname}${release}${shared_ext}$major'
16561
shlibpath_var=LD_LIBRARY_PATH
16562
shlibpath_overrides_runpath=yes
16563
hardcode_into_libs=yes
16564
# ldd complains unless libraries are executable
16565
postinstall_cmds='chmod +x $lib'
16570
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16571
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16572
shlibpath_var=LD_LIBRARY_PATH
16573
shlibpath_overrides_runpath=yes
16574
if test "$with_gnu_ld" = yes; then
16582
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16583
soname_spec='${libname}${release}${shared_ext}$major'
16584
shlibpath_var=LD_LIBRARY_PATH
16585
case $host_vendor in
16587
shlibpath_overrides_runpath=no
16589
export_dynamic_flag_spec='${wl}-Blargedynsym'
16590
runpath_var=LD_RUN_PATH
16598
shlibpath_overrides_runpath=no
16599
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16605
if test -d /usr/nec ;then
16607
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16608
soname_spec='$libname${shared_ext}.$major'
16609
shlibpath_var=LD_LIBRARY_PATH
16613
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16614
version_type=freebsd-elf
16617
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16618
soname_spec='${libname}${release}${shared_ext}$major'
16619
shlibpath_var=LD_LIBRARY_PATH
16620
hardcode_into_libs=yes
16621
if test "$with_gnu_ld" = yes; then
16622
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16623
shlibpath_overrides_runpath=no
16625
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16626
shlibpath_overrides_runpath=yes
16629
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16633
sys_lib_dlsearch_path_spec='/usr/lib'
16638
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16639
soname_spec='${libname}${release}${shared_ext}$major'
16640
shlibpath_var=LD_LIBRARY_PATH
16647
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16648
echo "${ECHO_T}$dynamic_linker" >&6; }
16649
test "$dynamic_linker" = no && can_build_shared=no
16651
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16652
echo $ECHO_N "(cached) $ECHO_C" >&6
16654
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16657
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16658
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16659
echo $ECHO_N "(cached) $ECHO_C" >&6
16661
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16664
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16666
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16667
if test "$GCC" = yes; then
16668
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16671
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16672
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16673
hardcode_action_F77=
16674
if test -n "$hardcode_libdir_flag_spec_F77" || \
16675
test -n "$runpath_var_F77" || \
16676
test "X$hardcode_automatic_F77" = "Xyes" ; then
16678
# We can hardcode non-existant directories.
16679
if test "$hardcode_direct_F77" != no &&
16680
# If the only mechanism to avoid hardcoding is shlibpath_var, we
16681
# have to relink, otherwise we might link with an installed library
16682
# when we should be linking with a yet-to-be-installed one
16683
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16684
test "$hardcode_minus_L_F77" != no; then
16685
# Linking always hardcodes the temporary library directory.
16686
hardcode_action_F77=relink
16688
# We can link without hardcoding, and we can hardcode nonexisting dirs.
16689
hardcode_action_F77=immediate
16692
# We cannot hardcode anything, or else we can only hardcode existing
16694
hardcode_action_F77=unsupported
16696
{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16697
echo "${ECHO_T}$hardcode_action_F77" >&6; }
16699
if test "$hardcode_action_F77" = relink; then
16700
# Fast installation is not supported
16701
enable_fast_install=no
16702
elif test "$shlibpath_overrides_runpath" = yes ||
16703
test "$enable_shared" = no; then
16704
# Fast installation is not necessary
16705
enable_fast_install=needless
16709
# The else clause should only fire when bootstrapping the
16710
# libtool distribution, otherwise you forgot to ship ltmain.sh
16711
# with your package, and you will get complaints that there are
16712
# no rules to generate ltmain.sh.
16713
if test -f "$ltmain"; then
16714
# See if we are running on zsh, and set the options which allow our commands through
16715
# without removal of \ escapes.
16716
if test -n "${ZSH_VERSION+set}" ; then
16717
setopt NO_GLOB_SUBST
16719
# Now quote all the things that may contain metacharacters while being
16720
# careful not to overquote the AC_SUBSTed values. We take copies of the
16721
# variables and quote the copies for generation of the libtool script.
16722
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16724
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16725
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16726
deplibs_check_method reload_flag reload_cmds need_locks \
16727
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16728
lt_cv_sys_global_symbol_to_c_name_address \
16729
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16730
old_postinstall_cmds old_postuninstall_cmds \
16734
lt_prog_compiler_wl_F77 \
16735
lt_prog_compiler_pic_F77 \
16736
lt_prog_compiler_static_F77 \
16737
lt_prog_compiler_no_builtin_flag_F77 \
16738
export_dynamic_flag_spec_F77 \
16739
thread_safe_flag_spec_F77 \
16740
whole_archive_flag_spec_F77 \
16741
enable_shared_with_static_runtimes_F77 \
16742
old_archive_cmds_F77 \
16743
old_archive_from_new_cmds_F77 \
16744
predep_objects_F77 \
16745
postdep_objects_F77 \
16748
compiler_lib_search_path_F77 \
16749
compiler_lib_search_dirs_F77 \
16751
archive_expsym_cmds_F77 \
16752
postinstall_cmds_F77 \
16753
postuninstall_cmds_F77 \
16754
old_archive_from_expsyms_cmds_F77 \
16755
allow_undefined_flag_F77 \
16756
no_undefined_flag_F77 \
16757
export_symbols_cmds_F77 \
16758
hardcode_libdir_flag_spec_F77 \
16759
hardcode_libdir_flag_spec_ld_F77 \
16760
hardcode_libdir_separator_F77 \
16761
hardcode_automatic_F77 \
16763
module_expsym_cmds_F77 \
16764
lt_cv_prog_compiler_c_o_F77 \
16765
fix_srcfile_path_F77 \
16766
exclude_expsyms_F77 \
16767
include_expsyms_F77; do
16770
old_archive_cmds_F77 | \
16771
old_archive_from_new_cmds_F77 | \
16772
archive_cmds_F77 | \
16773
archive_expsym_cmds_F77 | \
16774
module_cmds_F77 | \
16775
module_expsym_cmds_F77 | \
16776
old_archive_from_expsyms_cmds_F77 | \
16777
export_symbols_cmds_F77 | \
16778
extract_expsyms_cmds | reload_cmds | finish_cmds | \
16779
postinstall_cmds | postuninstall_cmds | \
16780
old_postinstall_cmds | old_postuninstall_cmds | \
16781
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16782
# Double-quote double-evaled strings.
16783
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16786
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16792
*'\$0 --fallback-echo"')
16793
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16799
cat <<__EOF__ >> "$cfgfile"
16800
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16802
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16804
# Shell to use when invoking shell scripts.
16807
# Whether or not to build shared libraries.
16808
build_libtool_libs=$enable_shared
16810
# Whether or not to build static libraries.
16811
build_old_libs=$enable_static
16813
# Whether or not to add -lc for building shared libraries.
16814
build_libtool_need_lc=$archive_cmds_need_lc_F77
16816
# Whether or not to disallow shared libs when runtime libs are static
16817
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16819
# Whether or not to optimize for fast installation.
16820
fast_install=$enable_fast_install
16823
host_alias=$host_alias
16827
# The build system.
16828
build_alias=$build_alias
16832
# An echo program that does not interpret backslashes.
16837
AR_FLAGS=$lt_AR_FLAGS
16842
# LTCC compiler flags.
16843
LTCFLAGS=$lt_LTCFLAGS
16845
# A language-specific compiler.
16846
CC=$lt_compiler_F77
16848
# Is the compiler the GNU C compiler?
16854
# The linker used to build libraries.
16857
# Whether we need hard or soft links.
16860
# A BSD-compatible nm program.
16863
# A symbol stripping program
16866
# Used to examine libraries when file_magic_cmd begins "file"
16867
MAGIC_CMD=$MAGIC_CMD
16869
# Used on cygwin: DLL creation program.
16872
# Used on cygwin: object dumper.
16875
# Used on cygwin: assembler.
16878
# The name of the directory that contains temporary libtool files.
16881
# How to create reloadable object files.
16882
reload_flag=$lt_reload_flag
16883
reload_cmds=$lt_reload_cmds
16885
# How to pass a linker flag through the compiler.
16886
wl=$lt_lt_prog_compiler_wl_F77
16888
# Object file suffix (normally "o").
16889
objext="$ac_objext"
16891
# Old archive suffix (normally "a").
16894
# Shared library suffix (normally ".so").
16895
shrext_cmds='$shrext_cmds'
16897
# Executable file suffix (normally "").
16900
# Additional compiler flags for building library objects.
16901
pic_flag=$lt_lt_prog_compiler_pic_F77
16904
# What is the maximum length of a command?
16905
max_cmd_len=$lt_cv_sys_max_cmd_len
16907
# Does compiler simultaneously support -c and -o options?
16908
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16910
# Must we lock files when doing compilation?
16911
need_locks=$lt_need_locks
16913
# Do we need the lib prefix for modules?
16914
need_lib_prefix=$need_lib_prefix
16916
# Do we need a version for libraries?
16917
need_version=$need_version
16919
# Whether dlopen is supported.
16920
dlopen_support=$enable_dlopen
16922
# Whether dlopen of programs is supported.
16923
dlopen_self=$enable_dlopen_self
16925
# Whether dlopen of statically linked programs is supported.
16926
dlopen_self_static=$enable_dlopen_self_static
16928
# Compiler flag to prevent dynamic linking.
16929
link_static_flag=$lt_lt_prog_compiler_static_F77
16931
# Compiler flag to turn off builtin functions.
16932
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16934
# Compiler flag to allow reflexive dlopens.
16935
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16937
# Compiler flag to generate shared objects directly from archives.
16938
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16940
# Compiler flag to generate thread-safe objects.
16941
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16943
# Library versioning type.
16944
version_type=$version_type
16946
# Format of library name prefix.
16947
libname_spec=$lt_libname_spec
16949
# List of archive names. First name is the real one, the rest are links.
16950
# The last name is the one that the linker finds with -lNAME.
16951
library_names_spec=$lt_library_names_spec
16953
# The coded name of the library, if different from the real name.
16954
soname_spec=$lt_soname_spec
16956
# Commands used to build and install an old-style archive.
16958
old_archive_cmds=$lt_old_archive_cmds_F77
16959
old_postinstall_cmds=$lt_old_postinstall_cmds
16960
old_postuninstall_cmds=$lt_old_postuninstall_cmds
16962
# Create an old-style archive from a shared archive.
16963
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16965
# Create a temporary old-style archive to link instead of a shared archive.
16966
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16968
# Commands used to build and install a shared archive.
16969
archive_cmds=$lt_archive_cmds_F77
16970
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16971
postinstall_cmds=$lt_postinstall_cmds
16972
postuninstall_cmds=$lt_postuninstall_cmds
16974
# Commands used to build a loadable module (assumed same as above if empty)
16975
module_cmds=$lt_module_cmds_F77
16976
module_expsym_cmds=$lt_module_expsym_cmds_F77
16978
# Commands to strip libraries.
16979
old_striplib=$lt_old_striplib
16980
striplib=$lt_striplib
16982
# Dependencies to place before the objects being linked to create a
16984
predep_objects=$lt_predep_objects_F77
16986
# Dependencies to place after the objects being linked to create a
16988
postdep_objects=$lt_postdep_objects_F77
16990
# Dependencies to place before the objects being linked to create a
16992
predeps=$lt_predeps_F77
16994
# Dependencies to place after the objects being linked to create a
16996
postdeps=$lt_postdeps_F77
16998
# The directories searched by this compiler when creating a shared
17000
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
17002
# The library search path used internally by the compiler when linking
17003
# a shared library.
17004
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17006
# Method to check whether dependent libraries are shared objects.
17007
deplibs_check_method=$lt_deplibs_check_method
17009
# Command to use when deplibs_check_method == file_magic.
17010
file_magic_cmd=$lt_file_magic_cmd
17012
# Flag that allows shared libraries with undefined symbols to be built.
17013
allow_undefined_flag=$lt_allow_undefined_flag_F77
17015
# Flag that forces no undefined symbols.
17016
no_undefined_flag=$lt_no_undefined_flag_F77
17018
# Commands used to finish a libtool library installation in a directory.
17019
finish_cmds=$lt_finish_cmds
17021
# Same as above, but a single script fragment to be evaled but not shown.
17022
finish_eval=$lt_finish_eval
17024
# Take the output of nm and produce a listing of raw symbols and C names.
17025
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17027
# Transform the output of nm in a proper C declaration
17028
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17030
# Transform the output of nm in a C name address pair
17031
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17033
# This is the shared library runtime path variable.
17034
runpath_var=$runpath_var
17036
# This is the shared library path variable.
17037
shlibpath_var=$shlibpath_var
17039
# Is shlibpath searched before the hard-coded library search path?
17040
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17042
# How to hardcode a shared library path into an executable.
17043
hardcode_action=$hardcode_action_F77
17045
# Whether we should hardcode library paths into libraries.
17046
hardcode_into_libs=$hardcode_into_libs
17048
# Flag to hardcode \$libdir into a binary during linking.
17049
# This must work even if \$libdir does not exist.
17050
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17052
# If ld is used when linking, flag to hardcode \$libdir into
17053
# a binary during linking. This must work even if \$libdir does
17055
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17057
# Whether we need a single -rpath flag with a separated argument.
17058
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17060
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17061
# resulting binary.
17062
hardcode_direct=$hardcode_direct_F77
17064
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17065
# resulting binary.
17066
hardcode_minus_L=$hardcode_minus_L_F77
17068
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17069
# the resulting binary.
17070
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17072
# Set to yes if building a shared library automatically hardcodes DIR into the library
17073
# and all subsequent libraries and executables linked against it.
17074
hardcode_automatic=$hardcode_automatic_F77
17076
# Variables whose values should be saved in libtool wrapper scripts and
17077
# restored at relink time.
17078
variables_saved_for_relink="$variables_saved_for_relink"
17080
# Whether libtool must link a program against all its dependency libraries.
17081
link_all_deplibs=$link_all_deplibs_F77
17083
# Compile-time system search path for libraries
17084
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17086
# Run-time system search path for libraries
17087
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17089
# Fix the shell variable \$srcfile for the compiler.
17090
fix_srcfile_path=$lt_fix_srcfile_path
17092
# Set to yes if exported symbols are required.
17093
always_export_symbols=$always_export_symbols_F77
17095
# The commands to list exported symbols.
17096
export_symbols_cmds=$lt_export_symbols_cmds_F77
17098
# The commands to extract the exported symbol list from a shared archive.
17099
extract_expsyms_cmds=$lt_extract_expsyms_cmds
17101
# Symbols that should not be listed in the preloaded symbols.
17102
exclude_expsyms=$lt_exclude_expsyms_F77
17104
# Symbols that must always be exported.
17105
include_expsyms=$lt_include_expsyms_F77
17107
# ### END LIBTOOL TAG CONFIG: $tagname
17113
# If there is no Makefile yet, we rely on a make rule to execute
17114
# `config.status --recheck' to rerun these tests and create the
17115
# libtool script then.
17116
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17117
if test -f "$ltmain_in"; then
17118
test -f Makefile && make "$ltmain"
17124
ac_cpp='$CPP $CPPFLAGS'
17125
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17126
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17127
ac_compiler_gnu=$ac_cv_c_compiler_gnu
17137
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17140
# Source file extension for Java test sources.
17143
# Object file extension for compiled Java test sources.
17147
# Code to be used in simple compile tests
17148
lt_simple_compile_test_code="class foo {}"
17150
# Code to be used in simple link tests
17151
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
17153
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17155
# If no C compiler was specified, use CC.
17158
# If no C compiler flags were specified, use CFLAGS.
17159
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17161
# Allow CC to be a program name with arguments.
17165
# save warnings/boilerplate of simple test code
17166
ac_outfile=conftest.$ac_objext
17167
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17168
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17169
_lt_compiler_boilerplate=`cat conftest.err`
17172
ac_outfile=conftest.$ac_objext
17173
echo "$lt_simple_link_test_code" >conftest.$ac_ext
17174
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17175
_lt_linker_boilerplate=`cat conftest.err`
17179
# Allow CC to be a program name with arguments.
17184
for cc_temp in $compiler""; do
17186
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17187
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17192
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17195
# GCJ did not exist at the time GCC didn't implicitly link libc in.
17196
archive_cmds_need_lc_GCJ=no
17198
old_archive_cmds_GCJ=$old_archive_cmds
17201
lt_prog_compiler_no_builtin_flag_GCJ=
17203
if test "$GCC" = yes; then
17204
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17207
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17208
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
17209
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17210
echo $ECHO_N "(cached) $ECHO_C" >&6
17212
lt_cv_prog_compiler_rtti_exceptions=no
17213
ac_outfile=conftest.$ac_objext
17214
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17215
lt_compiler_flag="-fno-rtti -fno-exceptions"
17216
# Insert the option either (1) after the last *FLAGS variable, or
17217
# (2) before a word containing "conftest.", or (3) at the end.
17218
# Note that $ac_compile itself does not contain backslashes and begins
17219
# with a dollar sign (not a hyphen), so the echo should work correctly.
17220
# The option is referenced via a variable to avoid confusing sed.
17221
lt_compile=`echo "$ac_compile" | $SED \
17222
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17223
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17224
-e 's:$: $lt_compiler_flag:'`
17225
(eval echo "\"\$as_me:17225: $lt_compile\"" >&5)
17226
(eval "$lt_compile" 2>conftest.err)
17228
cat conftest.err >&5
17229
echo "$as_me:17229: \$? = $ac_status" >&5
17230
if (exit $ac_status) && test -s "$ac_outfile"; then
17231
# The compiler can only warn and ignore the option if not recognized
17232
# So say no if there are warnings other than the usual output.
17233
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17234
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17235
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17236
lt_cv_prog_compiler_rtti_exceptions=yes
17242
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17243
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17245
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17246
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17253
lt_prog_compiler_wl_GCJ=
17254
lt_prog_compiler_pic_GCJ=
17255
lt_prog_compiler_static_GCJ=
17257
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17258
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
17260
if test "$GCC" = yes; then
17261
lt_prog_compiler_wl_GCJ='-Wl,'
17262
lt_prog_compiler_static_GCJ='-static'
17266
# All AIX code is PIC.
17267
if test "$host_cpu" = ia64; then
17268
# AIX 5 now supports IA64 processor
17269
lt_prog_compiler_static_GCJ='-Bstatic'
17274
# FIXME: we need at least 68020 code to build shared libraries, but
17275
# adding the `-m68020' flag to GCC prevents building anything better,
17277
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17280
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17281
# PIC is the default for these OSes.
17284
mingw* | cygwin* | pw32* | os2*)
17285
# This hack is so that the source file can tell whether it is being
17286
# built for inclusion in a dll (and should export symbols for example).
17287
# Although the cygwin gcc ignores -fPIC, still need this for old-style
17288
# (--disable-auto-import) libraries
17292
darwin* | rhapsody*)
17293
# PIC is the default on this platform
17294
# Common symbols not allowed in MH_DYLIB files
17295
lt_prog_compiler_pic_GCJ='-fno-common'
17299
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
17300
# Instead, we relocate shared libraries at runtime.
17304
# Just because we use GCC doesn't mean we suddenly get shared libraries
17305
# on systems that don't support them.
17306
lt_prog_compiler_can_build_shared_GCJ=no
17311
if test -d /usr/nec; then
17312
lt_prog_compiler_pic_GCJ=-Kconform_pic
17317
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17318
# not for PA HP-UX.
17324
lt_prog_compiler_pic_GCJ='-fPIC'
17330
lt_prog_compiler_pic_GCJ='-fPIC'
17334
# PORTME Check for flag to pass linker flags through the system compiler.
17337
lt_prog_compiler_wl_GCJ='-Wl,'
17338
if test "$host_cpu" = ia64; then
17339
# AIX 5 now supports IA64 processor
17340
lt_prog_compiler_static_GCJ='-Bstatic'
17342
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17346
# PIC is the default on this platform
17347
# Common symbols not allowed in MH_DYLIB files
17348
case $cc_basename in
17350
lt_prog_compiler_pic_GCJ='-qnocommon'
17351
lt_prog_compiler_wl_GCJ='-Wl,'
17356
mingw* | cygwin* | pw32* | os2*)
17357
# This hack is so that the source file can tell whether it is being
17358
# built for inclusion in a dll (and should export symbols for example).
17362
hpux9* | hpux10* | hpux11*)
17363
lt_prog_compiler_wl_GCJ='-Wl,'
17364
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17365
# not for PA HP-UX.
17371
lt_prog_compiler_pic_GCJ='+Z'
17374
# Is there a better lt_prog_compiler_static that works with the bundled CC?
17375
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17378
irix5* | irix6* | nonstopux*)
17379
lt_prog_compiler_wl_GCJ='-Wl,'
17380
# PIC (with -KPIC) is the default.
17381
lt_prog_compiler_static_GCJ='-non_shared'
17385
lt_prog_compiler_pic_GCJ='-KPIC'
17386
lt_prog_compiler_static_GCJ='-Bstatic'
17389
linux* | k*bsd*-gnu)
17390
case $cc_basename in
17392
lt_prog_compiler_wl_GCJ='-Wl,'
17393
lt_prog_compiler_pic_GCJ='-KPIC'
17394
lt_prog_compiler_static_GCJ='-static'
17396
pgcc* | pgf77* | pgf90* | pgf95*)
17397
# Portland Group compilers (*not* the Pentium gcc compiler,
17398
# which looks to be a dead project)
17399
lt_prog_compiler_wl_GCJ='-Wl,'
17400
lt_prog_compiler_pic_GCJ='-fpic'
17401
lt_prog_compiler_static_GCJ='-Bstatic'
17404
lt_prog_compiler_wl_GCJ='-Wl,'
17405
# All Alpha code is PIC.
17406
lt_prog_compiler_static_GCJ='-non_shared'
17409
case `$CC -V 2>&1 | sed 5q` in
17412
lt_prog_compiler_pic_GCJ='-KPIC'
17413
lt_prog_compiler_static_GCJ='-Bstatic'
17414
lt_prog_compiler_wl_GCJ='-Wl,'
17417
# Sun Fortran 8.3 passes all unrecognized flags to the linker
17418
lt_prog_compiler_pic_GCJ='-KPIC'
17419
lt_prog_compiler_static_GCJ='-Bstatic'
17420
lt_prog_compiler_wl_GCJ=''
17427
osf3* | osf4* | osf5*)
17428
lt_prog_compiler_wl_GCJ='-Wl,'
17429
# All OSF/1 code is PIC.
17430
lt_prog_compiler_static_GCJ='-non_shared'
17434
lt_prog_compiler_static_GCJ='-non_shared'
17438
lt_prog_compiler_pic_GCJ='-KPIC'
17439
lt_prog_compiler_static_GCJ='-Bstatic'
17440
case $cc_basename in
17441
f77* | f90* | f95*)
17442
lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17444
lt_prog_compiler_wl_GCJ='-Wl,';;
17449
lt_prog_compiler_wl_GCJ='-Qoption ld '
17450
lt_prog_compiler_pic_GCJ='-PIC'
17451
lt_prog_compiler_static_GCJ='-Bstatic'
17454
sysv4 | sysv4.2uw2* | sysv4.3*)
17455
lt_prog_compiler_wl_GCJ='-Wl,'
17456
lt_prog_compiler_pic_GCJ='-KPIC'
17457
lt_prog_compiler_static_GCJ='-Bstatic'
17461
if test -d /usr/nec ;then
17462
lt_prog_compiler_pic_GCJ='-Kconform_pic'
17463
lt_prog_compiler_static_GCJ='-Bstatic'
17467
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17468
lt_prog_compiler_wl_GCJ='-Wl,'
17469
lt_prog_compiler_pic_GCJ='-KPIC'
17470
lt_prog_compiler_static_GCJ='-Bstatic'
17474
lt_prog_compiler_wl_GCJ='-Wl,'
17475
lt_prog_compiler_can_build_shared_GCJ=no
17479
lt_prog_compiler_pic_GCJ='-pic'
17480
lt_prog_compiler_static_GCJ='-Bstatic'
17484
lt_prog_compiler_can_build_shared_GCJ=no
17489
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17490
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17493
# Check to make sure the PIC flag actually works.
17495
if test -n "$lt_prog_compiler_pic_GCJ"; then
17497
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17498
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17499
if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17500
echo $ECHO_N "(cached) $ECHO_C" >&6
17502
lt_cv_prog_compiler_pic_works_GCJ=no
17503
ac_outfile=conftest.$ac_objext
17504
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17505
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17506
# Insert the option either (1) after the last *FLAGS variable, or
17507
# (2) before a word containing "conftest.", or (3) at the end.
17508
# Note that $ac_compile itself does not contain backslashes and begins
17509
# with a dollar sign (not a hyphen), so the echo should work correctly.
17510
# The option is referenced via a variable to avoid confusing sed.
17511
lt_compile=`echo "$ac_compile" | $SED \
17512
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17513
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17514
-e 's:$: $lt_compiler_flag:'`
17515
(eval echo "\"\$as_me:17515: $lt_compile\"" >&5)
17516
(eval "$lt_compile" 2>conftest.err)
17518
cat conftest.err >&5
17519
echo "$as_me:17519: \$? = $ac_status" >&5
17520
if (exit $ac_status) && test -s "$ac_outfile"; then
17521
# The compiler can only warn and ignore the option if not recognized
17522
# So say no if there are warnings other than the usual output.
17523
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17524
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17525
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17526
lt_cv_prog_compiler_pic_works_GCJ=yes
17532
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17533
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17535
if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17536
case $lt_prog_compiler_pic_GCJ in
17538
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17541
lt_prog_compiler_pic_GCJ=
17542
lt_prog_compiler_can_build_shared_GCJ=no
17547
# For platforms which do not support PIC, -DPIC is meaningless:
17549
lt_prog_compiler_pic_GCJ=
17552
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17557
# Check to make sure the static flag actually works.
17559
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17560
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17561
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17562
if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17563
echo $ECHO_N "(cached) $ECHO_C" >&6
17565
lt_cv_prog_compiler_static_works_GCJ=no
17566
save_LDFLAGS="$LDFLAGS"
17567
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17568
echo "$lt_simple_link_test_code" > conftest.$ac_ext
17569
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17570
# The linker can only warn and ignore the option if not recognized
17571
# So say no if there are warnings
17572
if test -s conftest.err; then
17573
# Append any errors to the config.log.
17574
cat conftest.err 1>&5
17575
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17576
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17577
if diff conftest.exp conftest.er2 >/dev/null; then
17578
lt_cv_prog_compiler_static_works_GCJ=yes
17581
lt_cv_prog_compiler_static_works_GCJ=yes
17585
LDFLAGS="$save_LDFLAGS"
17588
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17589
echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17591
if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17594
lt_prog_compiler_static_GCJ=
17598
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17599
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17600
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17601
echo $ECHO_N "(cached) $ECHO_C" >&6
17603
lt_cv_prog_compiler_c_o_GCJ=no
17604
$rm -r conftest 2>/dev/null
17608
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17610
lt_compiler_flag="-o out/conftest2.$ac_objext"
17611
# Insert the option either (1) after the last *FLAGS variable, or
17612
# (2) before a word containing "conftest.", or (3) at the end.
17613
# Note that $ac_compile itself does not contain backslashes and begins
17614
# with a dollar sign (not a hyphen), so the echo should work correctly.
17615
lt_compile=`echo "$ac_compile" | $SED \
17616
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17617
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17618
-e 's:$: $lt_compiler_flag:'`
17619
(eval echo "\"\$as_me:17619: $lt_compile\"" >&5)
17620
(eval "$lt_compile" 2>out/conftest.err)
17622
cat out/conftest.err >&5
17623
echo "$as_me:17623: \$? = $ac_status" >&5
17624
if (exit $ac_status) && test -s out/conftest2.$ac_objext
17626
# The compiler can only warn and ignore the option if not recognized
17627
# So say no if there are warnings
17628
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17629
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17630
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17631
lt_cv_prog_compiler_c_o_GCJ=yes
17636
# SGI C++ compiler will create directory out/ii_files/ for
17637
# template instantiation
17638
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17639
$rm out/* && rmdir out
17645
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17646
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17649
hard_links="nottested"
17650
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17651
# do not overwrite the value of need_locks provided by the user
17652
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17653
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17656
ln conftest.a conftest.b 2>/dev/null && hard_links=no
17658
ln conftest.a conftest.b 2>&5 || hard_links=no
17659
ln conftest.a conftest.b 2>/dev/null && hard_links=no
17660
{ echo "$as_me:$LINENO: result: $hard_links" >&5
17661
echo "${ECHO_T}$hard_links" >&6; }
17662
if test "$hard_links" = no; then
17663
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17664
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17671
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17672
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17675
allow_undefined_flag_GCJ=
17676
enable_shared_with_static_runtimes_GCJ=no
17678
archive_expsym_cmds_GCJ=
17679
old_archive_From_new_cmds_GCJ=
17680
old_archive_from_expsyms_cmds_GCJ=
17681
export_dynamic_flag_spec_GCJ=
17682
whole_archive_flag_spec_GCJ=
17683
thread_safe_flag_spec_GCJ=
17684
hardcode_libdir_flag_spec_GCJ=
17685
hardcode_libdir_flag_spec_ld_GCJ=
17686
hardcode_libdir_separator_GCJ=
17687
hardcode_direct_GCJ=no
17688
hardcode_minus_L_GCJ=no
17689
hardcode_shlibpath_var_GCJ=unsupported
17690
link_all_deplibs_GCJ=unknown
17691
hardcode_automatic_GCJ=no
17693
module_expsym_cmds_GCJ=
17694
always_export_symbols_GCJ=no
17695
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17696
# include_expsyms should be a list of space-separated symbols to be *always*
17697
# included in the symbol list
17698
include_expsyms_GCJ=
17699
# exclude_expsyms can be an extended regexp of symbols to exclude
17700
# it will be wrapped by ` (' and `)$', so one must not match beginning or
17701
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17702
# as well as any symbol that contains `d'.
17703
exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17704
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17705
# platforms (ab)use it in PIC code, but their linkers get confused if
17706
# the symbol is explicitly referenced. Since portable code cannot
17707
# rely on this symbol name, it's probably fine to never include it in
17708
# preloaded symbol tables.
17709
# Exclude shared library initialization/finalization symbols.
17710
extract_expsyms_cmds=
17711
# Just being paranoid about ensuring that cc_basename is set.
17712
for cc_temp in $compiler""; do
17714
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17715
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17720
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17723
cygwin* | mingw* | pw32*)
17724
# FIXME: the MSVC++ port hasn't been tested in a loooong time
17725
# When not using gcc, we currently assume that we are using
17726
# Microsoft Visual C++.
17727
if test "$GCC" != yes; then
17732
# we just hope/assume this is gcc and not c89 (= MSVC++)
17741
if test "$with_gnu_ld" = yes; then
17742
# If archive_cmds runs LD, not CC, wlarc should be empty
17745
# Set some defaults for GNU ld with shared library support. These
17746
# are reset later if shared libraries are not supported. Putting them
17747
# here allows them to be overridden if necessary.
17748
runpath_var=LD_RUN_PATH
17749
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17750
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17751
# ancient GNU ld didn't support --whole-archive et. al.
17752
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17753
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17755
whole_archive_flag_spec_GCJ=
17757
supports_anon_versioning=no
17758
case `$LD -v 2>/dev/null` in
17759
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17760
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17761
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17762
*\ 2.11.*) ;; # other 2.11 versions
17763
*) supports_anon_versioning=yes ;;
17766
# See if GNU ld supports shared libraries.
17769
# On AIX/PPC, the GNU linker is very broken
17770
if test "$host_cpu" != ia64; then
17774
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17775
*** to be unable to reliably create shared libraries on AIX.
17776
*** Therefore, libtool is disabling shared libraries support. If you
17777
*** really care for shared libraries, you may want to modify your PATH
17778
*** so that a non-GNU linker is found, and then restart.
17785
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)'
17786
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17787
hardcode_minus_L_GCJ=yes
17789
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17790
# that the semantics of dynamic libraries on AmigaOS, at least up
17791
# to version 4, is to share data among multiple programs linked
17792
# with the same dynamic library. Since this doesn't match the
17793
# behavior of shared libraries on other platforms, we can't use
17799
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17800
allow_undefined_flag_GCJ=unsupported
17801
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17802
# support --undefined. This deserves some investigation. FIXME
17803
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17809
cygwin* | mingw* | pw32*)
17810
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17811
# as there is no search path for DLLs.
17812
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17813
allow_undefined_flag_GCJ=unsupported
17814
always_export_symbols_GCJ=no
17815
enable_shared_with_static_runtimes_GCJ=yes
17816
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17818
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17819
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17820
# If the export-symbols file already is a .def file (1st line
17821
# is EXPORTS), use it as is; otherwise, prepend...
17822
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17823
cp $export_symbols $output_objdir/$soname.def;
17825
echo EXPORTS > $output_objdir/$soname.def;
17826
cat $export_symbols >> $output_objdir/$soname.def;
17828
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17835
hardcode_direct_GCJ=no
17836
hardcode_shlibpath_var_GCJ=no
17837
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17838
export_dynamic_flag_spec_GCJ='${wl}-E'
17839
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17840
# Instead, shared libraries are loaded at an image base (0x10000000 by
17841
# default) and relocated if they conflict, which is a slow very memory
17842
# consuming and fragmenting process. To avoid this, we pick a random,
17843
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17844
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
17845
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'
17846
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'
17849
gnu* | linux* | k*bsd*-gnu)
17850
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17852
case $cc_basename,$host_cpu in
17853
pgcc*) # Portland Group C compiler
17854
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'
17855
tmp_addflag=' $pic_flag'
17857
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17858
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'
17859
tmp_addflag=' $pic_flag -Mnomain' ;;
17860
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17861
tmp_addflag=' -i_dynamic' ;;
17862
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17863
tmp_addflag=' -i_dynamic -nofor_main' ;;
17864
ifc* | ifort*) # Intel Fortran compiler
17865
tmp_addflag=' -nofor_main' ;;
17867
case `$CC -V 2>&1 | sed 5q` in
17868
*Sun\ C*) # Sun C 5.9
17869
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'
17870
tmp_sharedflag='-G' ;;
17871
*Sun\ F*) # Sun Fortran 8.3
17872
tmp_sharedflag='-G' ;;
17874
tmp_sharedflag='-shared' ;;
17876
archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17878
if test $supports_anon_versioning = yes; then
17879
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17880
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17881
$echo "local: *; };" >> $output_objdir/$libname.ver~
17882
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17884
link_all_deplibs_GCJ=no
17890
netbsd* | netbsdelf*-gnu)
17891
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17892
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17895
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17896
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17901
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17905
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17906
*** create shared libraries on Solaris systems. Therefore, libtool
17907
*** is disabling shared libraries support. We urge you to upgrade GNU
17908
*** binutils to release 2.9.1 or newer. Another option is to modify
17909
*** your PATH or compiler configuration so that the native linker is
17910
*** used, and then restart.
17913
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17914
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17915
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17921
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17922
case `$LD -v 2>&1` in
17923
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17927
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17928
*** reliably create shared libraries on SCO systems. Therefore, libtool
17929
*** is disabling shared libraries support. We urge you to upgrade GNU
17930
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17931
*** your PATH or compiler configuration so that the native linker is
17932
*** used, and then restart.
17937
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17938
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17939
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17940
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17949
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17951
hardcode_direct_GCJ=yes
17952
hardcode_shlibpath_var_GCJ=no
17956
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17957
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17958
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17965
if test "$ld_shlibs_GCJ" = no; then
17967
hardcode_libdir_flag_spec_GCJ=
17968
export_dynamic_flag_spec_GCJ=
17969
whole_archive_flag_spec_GCJ=
17972
# PORTME fill in a description of your system's linker (not GNU ld)
17975
allow_undefined_flag_GCJ=unsupported
17976
always_export_symbols_GCJ=yes
17977
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'
17978
# Note: this linker hardcodes the directories in LIBPATH if there
17979
# are no directories specified by -L.
17980
hardcode_minus_L_GCJ=yes
17981
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17982
# Neither direct hardcoding nor static linking is supported with a
17984
hardcode_direct_GCJ=unsupported
17989
if test "$host_cpu" = ia64; then
17990
# On IA64, the linker does run time linking by default, so we don't
17991
# have to do anything special.
17992
aix_use_runtimelinking=no
17993
exp_sym_flag='-Bexport'
17996
# If we're using GNU nm, then we don't want the "-C" option.
17997
# -C means demangle to AIX nm, but means don't demangle with GNU nm
17998
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17999
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'
18001
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'
18003
aix_use_runtimelinking=no
18005
# Test if we are trying to use run time linking or normal
18006
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
18007
# need to do runtime linking.
18008
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18009
for ld_flag in $LDFLAGS; do
18010
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18011
aix_use_runtimelinking=yes
18018
exp_sym_flag='-bexport'
18019
no_entry_flag='-bnoentry'
18022
# When large executables or shared objects are built, AIX ld can
18023
# have problems creating the table of contents. If linking a library
18024
# or program results in "error TOC overflow" add -mminimal-toc to
18025
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18026
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18028
archive_cmds_GCJ=''
18029
hardcode_direct_GCJ=yes
18030
hardcode_libdir_separator_GCJ=':'
18031
link_all_deplibs_GCJ=yes
18033
if test "$GCC" = yes; then
18034
case $host_os in aix4.[012]|aix4.[012].*)
18035
# We only want to do this on AIX 4.2 and lower, the check
18036
# below for broken collect2 doesn't work under 4.3+
18037
collect2name=`${CC} -print-prog-name=collect2`
18038
if test -f "$collect2name" && \
18039
strings "$collect2name" | grep resolve_lib_name >/dev/null
18041
# We have reworked collect2
18044
# We have old collect2
18045
hardcode_direct_GCJ=unsupported
18046
# It fails to find uninstalled libraries when the uninstalled
18047
# path is not listed in the libpath. Setting hardcode_minus_L
18048
# to unsupported forces relinking
18049
hardcode_minus_L_GCJ=yes
18050
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18051
hardcode_libdir_separator_GCJ=
18055
shared_flag='-shared'
18056
if test "$aix_use_runtimelinking" = yes; then
18057
shared_flag="$shared_flag "'${wl}-G'
18061
if test "$host_cpu" = ia64; then
18062
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18063
# chokes on -Wl,-G. The following line is correct:
18066
if test "$aix_use_runtimelinking" = yes; then
18067
shared_flag='${wl}-G'
18069
shared_flag='${wl}-bM:SRE'
18074
# It seems that -bexpall does not export symbols beginning with
18075
# underscore (_), so it is better to generate a list of symbols to export.
18076
always_export_symbols_GCJ=yes
18077
if test "$aix_use_runtimelinking" = yes; then
18078
# Warning - without using the other runtime loading flags (-brtl),
18079
# -berok will link without error, but may produce a broken library.
18080
allow_undefined_flag_GCJ='-berok'
18081
# Determine the default libpath from the value encoded in an empty executable.
18082
cat >conftest.$ac_ext <<_ACEOF
18085
cat confdefs.h >>conftest.$ac_ext
18086
cat >>conftest.$ac_ext <<_ACEOF
18087
/* end confdefs.h. */
18097
rm -f conftest.$ac_objext conftest$ac_exeext
18098
if { (ac_try="$ac_link"
18099
case "(($ac_try" in
18100
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18101
*) ac_try_echo=$ac_try;;
18103
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18104
(eval "$ac_link") 2>conftest.er1
18106
grep -v '^ *+' conftest.er1 >conftest.err
18108
cat conftest.err >&5
18109
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18110
(exit $ac_status); } && {
18111
test -z "$ac_c_werror_flag" ||
18112
test ! -s conftest.err
18113
} && test -s conftest$ac_exeext &&
18114
$as_test_x conftest$ac_exeext; then
18116
lt_aix_libpath_sed='
18117
/Import File Strings/,/^$/ {
18123
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18124
# Check for a 64-bit object if we didn't find anything.
18125
if test -z "$aix_libpath"; then
18126
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18129
echo "$as_me: failed program was:" >&5
18130
sed 's/^/| /' conftest.$ac_ext >&5
18135
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18136
conftest$ac_exeext conftest.$ac_ext
18137
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18139
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18140
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"
18142
if test "$host_cpu" = ia64; then
18143
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18144
allow_undefined_flag_GCJ="-z nodefs"
18145
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"
18147
# Determine the default libpath from the value encoded in an empty executable.
18148
cat >conftest.$ac_ext <<_ACEOF
18151
cat confdefs.h >>conftest.$ac_ext
18152
cat >>conftest.$ac_ext <<_ACEOF
18153
/* end confdefs.h. */
18163
rm -f conftest.$ac_objext conftest$ac_exeext
18164
if { (ac_try="$ac_link"
18165
case "(($ac_try" in
18166
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18167
*) ac_try_echo=$ac_try;;
18169
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18170
(eval "$ac_link") 2>conftest.er1
18172
grep -v '^ *+' conftest.er1 >conftest.err
18174
cat conftest.err >&5
18175
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18176
(exit $ac_status); } && {
18177
test -z "$ac_c_werror_flag" ||
18178
test ! -s conftest.err
18179
} && test -s conftest$ac_exeext &&
18180
$as_test_x conftest$ac_exeext; then
18182
lt_aix_libpath_sed='
18183
/Import File Strings/,/^$/ {
18189
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18190
# Check for a 64-bit object if we didn't find anything.
18191
if test -z "$aix_libpath"; then
18192
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18195
echo "$as_me: failed program was:" >&5
18196
sed 's/^/| /' conftest.$ac_ext >&5
18201
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18202
conftest$ac_exeext conftest.$ac_ext
18203
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18205
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18206
# Warning - without using the other run time loading flags,
18207
# -berok will link without error, but may produce a broken library.
18208
no_undefined_flag_GCJ=' ${wl}-bernotok'
18209
allow_undefined_flag_GCJ=' ${wl}-berok'
18210
# Exported symbols can be pulled into shared objects from archives
18211
whole_archive_flag_spec_GCJ='$convenience'
18212
archive_cmds_need_lc_GCJ=yes
18213
# This is similar to how AIX traditionally builds its shared libraries.
18214
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'
18220
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)'
18221
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18222
hardcode_minus_L_GCJ=yes
18223
# see comment about different semantics on the GNU ld section
18228
export_dynamic_flag_spec_GCJ=-rdynamic
18231
cygwin* | mingw* | pw32*)
18232
# When not using gcc, we currently assume that we are using
18233
# Microsoft Visual C++.
18234
# hardcode_libdir_flag_spec is actually meaningless, as there is
18235
# no search path for DLLs.
18236
hardcode_libdir_flag_spec_GCJ=' '
18237
allow_undefined_flag_GCJ=unsupported
18238
# Tell ltmain to make .lib files, not .a files.
18240
# Tell ltmain to make .dll files, not .so files.
18242
# FIXME: Setting linknames here is a bad hack.
18243
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18244
# The linker will automatically build a .lib file if we build a DLL.
18245
old_archive_From_new_cmds_GCJ='true'
18246
# FIXME: Should let the user specify the lib program.
18247
old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
18248
fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18249
enable_shared_with_static_runtimes_GCJ=yes
18252
darwin* | rhapsody*)
18254
rhapsody* | darwin1.[012])
18255
allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18258
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18259
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18261
case ${MACOSX_DEPLOYMENT_TARGET} in
18263
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18266
allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18272
archive_cmds_need_lc_GCJ=no
18273
hardcode_direct_GCJ=no
18274
hardcode_automatic_GCJ=yes
18275
hardcode_shlibpath_var_GCJ=unsupported
18276
whole_archive_flag_spec_GCJ=''
18277
link_all_deplibs_GCJ=yes
18278
if test "$GCC" = yes ; then
18279
output_verbose_link_cmd='echo'
18280
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}"
18281
module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18282
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}"
18283
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}"
18285
case $cc_basename in
18287
output_verbose_link_cmd='echo'
18288
archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
18289
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18290
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18291
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}'
18292
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}'
18302
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18303
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18304
hardcode_shlibpath_var_GCJ=no
18311
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18312
# support. Future versions do this automatically, but an explicit c++rt0.o
18313
# does not break anything, and helps significantly (at the cost of a little
18316
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18317
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18318
hardcode_direct_GCJ=yes
18319
hardcode_shlibpath_var_GCJ=no
18322
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
18324
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18325
hardcode_direct_GCJ=yes
18326
hardcode_minus_L_GCJ=yes
18327
hardcode_shlibpath_var_GCJ=no
18330
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18331
freebsd* | dragonfly*)
18332
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18333
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18334
hardcode_direct_GCJ=yes
18335
hardcode_shlibpath_var_GCJ=no
18339
if test "$GCC" = yes; then
18340
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'
18342
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'
18344
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18345
hardcode_libdir_separator_GCJ=:
18346
hardcode_direct_GCJ=yes
18348
# hardcode_minus_L: Not really in the search PATH,
18349
# but as the default location of the library.
18350
hardcode_minus_L_GCJ=yes
18351
export_dynamic_flag_spec_GCJ='${wl}-E'
18355
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18356
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18358
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18360
if test "$with_gnu_ld" = no; then
18361
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18362
hardcode_libdir_separator_GCJ=:
18364
hardcode_direct_GCJ=yes
18365
export_dynamic_flag_spec_GCJ='${wl}-E'
18367
# hardcode_minus_L: Not really in the search PATH,
18368
# but as the default location of the library.
18369
hardcode_minus_L_GCJ=yes
18374
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18377
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18380
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18383
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18389
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18392
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18395
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18399
if test "$with_gnu_ld" = no; then
18400
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18401
hardcode_libdir_separator_GCJ=:
18405
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18406
hardcode_direct_GCJ=no
18407
hardcode_shlibpath_var_GCJ=no
18410
hardcode_direct_GCJ=yes
18411
export_dynamic_flag_spec_GCJ='${wl}-E'
18413
# hardcode_minus_L: Not really in the search PATH,
18414
# but as the default location of the library.
18415
hardcode_minus_L_GCJ=yes
18421
irix5* | irix6* | nonstopux*)
18422
if test "$GCC" = yes; then
18423
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'
18425
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'
18426
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18428
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18429
hardcode_libdir_separator_GCJ=:
18430
link_all_deplibs_GCJ=yes
18433
netbsd* | netbsdelf*-gnu)
18434
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18435
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18437
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18439
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18440
hardcode_direct_GCJ=yes
18441
hardcode_shlibpath_var_GCJ=no
18445
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18446
hardcode_direct_GCJ=yes
18447
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18448
hardcode_libdir_separator_GCJ=:
18449
hardcode_shlibpath_var_GCJ=no
18453
if test -f /usr/libexec/ld.so; then
18454
hardcode_direct_GCJ=yes
18455
hardcode_shlibpath_var_GCJ=no
18456
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18457
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18458
archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18459
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18460
export_dynamic_flag_spec_GCJ='${wl}-E'
18463
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18464
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18465
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18468
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18469
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18479
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18480
hardcode_minus_L_GCJ=yes
18481
allow_undefined_flag_GCJ=unsupported
18482
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'
18483
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18487
if test "$GCC" = yes; then
18488
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18489
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'
18491
allow_undefined_flag_GCJ=' -expect_unresolved \*'
18492
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'
18494
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18495
hardcode_libdir_separator_GCJ=:
18498
osf4* | osf5*) # as osf3* with the addition of -msym flag
18499
if test "$GCC" = yes; then
18500
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18501
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'
18502
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18504
allow_undefined_flag_GCJ=' -expect_unresolved \*'
18505
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'
18506
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~
18507
$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'
18509
# Both c and cxx compiler support -rpath directly
18510
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18512
hardcode_libdir_separator_GCJ=:
18516
no_undefined_flag_GCJ=' -z text'
18517
if test "$GCC" = yes; then
18519
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18520
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18521
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18524
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18525
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18526
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18528
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18529
hardcode_shlibpath_var_GCJ=no
18531
solaris2.[0-5] | solaris2.[0-5].*) ;;
18533
# The compiler driver will combine and reorder linker options,
18534
# but understands `-z linker_flag'. GCC discards it without `$wl',
18535
# but is careful enough not to reorder.
18536
# Supported since Solaris 2.6 (maybe 2.5.1?)
18537
if test "$GCC" = yes; then
18538
whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18540
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18544
link_all_deplibs_GCJ=yes
18548
if test "x$host_vendor" = xsequent; then
18549
# Use $CC to link under sequent, because it throws in some extra .o
18550
# files that make .init and .fini sections work.
18551
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18553
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18555
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18556
hardcode_direct_GCJ=yes
18557
hardcode_minus_L_GCJ=yes
18558
hardcode_shlibpath_var_GCJ=no
18562
case $host_vendor in
18564
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18565
hardcode_direct_GCJ=yes # is this really true???
18568
## LD is ld it makes a PLAMLIB
18569
## CC just makes a GrossModule.
18570
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18571
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18572
hardcode_direct_GCJ=no
18575
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18576
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18579
runpath_var='LD_RUN_PATH'
18580
hardcode_shlibpath_var_GCJ=no
18584
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18585
hardcode_shlibpath_var_GCJ=no
18586
export_dynamic_flag_spec_GCJ='-Bexport'
18590
if test -d /usr/nec; then
18591
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18592
hardcode_shlibpath_var_GCJ=no
18593
runpath_var=LD_RUN_PATH
18594
hardcode_runpath_var=yes
18599
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18600
no_undefined_flag_GCJ='${wl}-z,text'
18601
archive_cmds_need_lc_GCJ=no
18602
hardcode_shlibpath_var_GCJ=no
18603
runpath_var='LD_RUN_PATH'
18605
if test "$GCC" = yes; then
18606
archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18607
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18609
archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18610
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18614
sysv5* | sco3.2v5* | sco5v6*)
18615
# Note: We can NOT use -z defs as we might desire, because we do not
18616
# link with -lc, and that would cause any symbols used from libc to
18617
# always be unresolved, which means just about no library would
18618
# ever link correctly. If we're not using GNU ld we use -z text
18619
# though, which does catch some bad symbols but isn't as heavy-handed
18621
no_undefined_flag_GCJ='${wl}-z,text'
18622
allow_undefined_flag_GCJ='${wl}-z,nodefs'
18623
archive_cmds_need_lc_GCJ=no
18624
hardcode_shlibpath_var_GCJ=no
18625
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18626
hardcode_libdir_separator_GCJ=':'
18627
link_all_deplibs_GCJ=yes
18628
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18629
runpath_var='LD_RUN_PATH'
18631
if test "$GCC" = yes; then
18632
archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18633
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18635
archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18636
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18641
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18642
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18643
hardcode_shlibpath_var_GCJ=no
18652
{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18653
echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18654
test "$ld_shlibs_GCJ" = no && can_build_shared=no
18657
# Do we need to explicitly link libc?
18659
case "x$archive_cmds_need_lc_GCJ" in
18661
# Assume -lc should be added
18662
archive_cmds_need_lc_GCJ=yes
18664
if test "$enable_shared" = yes && test "$GCC" = yes; then
18665
case $archive_cmds_GCJ in
18667
# FIXME: we may have to deal with multi-command sequences.
18670
# Test whether the compiler implicitly links with -lc since on some
18671
# systems, -lgcc has to come before -lc. If gcc already passes -lc
18672
# to ld, don't add -lc before -lgcc.
18673
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18674
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18676
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18678
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18679
(eval $ac_compile) 2>&5
18681
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18682
(exit $ac_status); } 2>conftest.err; then
18685
libobjs=conftest.$ac_objext
18687
wl=$lt_prog_compiler_wl_GCJ
18688
pic_flag=$lt_prog_compiler_pic_GCJ
18694
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18695
allow_undefined_flag_GCJ=
18696
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18697
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18699
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18700
(exit $ac_status); }
18702
archive_cmds_need_lc_GCJ=no
18704
archive_cmds_need_lc_GCJ=yes
18706
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18708
cat conftest.err 1>&5
18711
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18712
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18719
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18720
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18721
library_names_spec=
18722
libname_spec='lib$name'
18726
postuninstall_cmds=
18730
shlibpath_overrides_runpath=unknown
18732
dynamic_linker="$host_os ld.so"
18733
sys_lib_dlsearch_path_spec="/lib /usr/lib"
18735
need_lib_prefix=unknown
18736
hardcode_into_libs=no
18738
# when you set need_version to no, make sure it does not cause -set_version
18739
# flags to be left without arguments
18740
need_version=unknown
18745
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18746
shlibpath_var=LIBPATH
18748
# AIX 3 has no versioning support, so we append a major version to the name.
18749
soname_spec='${libname}${release}${shared_ext}$major'
18756
hardcode_into_libs=yes
18757
if test "$host_cpu" = ia64; then
18758
# AIX 5 supports IA64
18759
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18760
shlibpath_var=LD_LIBRARY_PATH
18762
# With GCC up to 2.95.x, collect2 would create an import file
18763
# for dependence libraries. The import file would start with
18764
# the line `#! .'. This would cause the generated library to
18765
# depend on `.', always an invalid library. This was fixed in
18766
# development snapshots of GCC prior to 3.0.
18768
aix4 | aix4.[01] | aix4.[01].*)
18769
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18771
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18774
can_build_shared=no
18778
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18779
# soname into executable. Probably we can add versioning support to
18780
# collect2, so additional links can be useful in future.
18781
if test "$aix_use_runtimelinking" = yes; then
18782
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
18783
# instead of lib<name>.a to let people know that these are not
18784
# typical AIX shared libraries.
18785
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18787
# We preserve .a as extension for shared libraries through AIX4.2
18788
# and later when we are not doing run time linking.
18789
library_names_spec='${libname}${release}.a $libname.a'
18790
soname_spec='${libname}${release}${shared_ext}$major'
18792
shlibpath_var=LIBPATH
18797
library_names_spec='$libname.ixlibrary $libname.a'
18798
# Create ${libname}_ixlibrary.a entries in /sys/libs.
18799
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'
18803
library_names_spec='${libname}${shared_ext}'
18804
dynamic_linker="$host_os ld.so"
18805
shlibpath_var=LIBRARY_PATH
18811
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18812
soname_spec='${libname}${release}${shared_ext}$major'
18813
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18814
shlibpath_var=LD_LIBRARY_PATH
18815
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18816
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18817
# the default ld.so.conf also contains /usr/contrib/lib and
18818
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18819
# libtool to hard-code these into programs
18822
cygwin* | mingw* | pw32*)
18823
version_type=windows
18828
case $GCC,$host_os in
18829
yes,cygwin* | yes,mingw* | yes,pw32*)
18830
library_names_spec='$libname.dll.a'
18831
# DLL is installed to $(libdir)/../bin by postinstall_cmds
18832
postinstall_cmds='base_file=`basename \${file}`~
18833
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18834
dldir=$destdir/`dirname \$dlpath`~
18835
test -d \$dldir || mkdir -p \$dldir~
18836
$install_prog $dir/$dlname \$dldir/$dlname~
18837
chmod a+x \$dldir/$dlname'
18838
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18839
dlpath=$dir/\$dldll~
18841
shlibpath_overrides_runpath=yes
18845
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
18846
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18847
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18850
# MinGW DLLs use traditional 'lib' prefix
18851
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18852
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18853
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18854
# It is most probably a Windows format PATH printed by
18855
# mingw gcc, but we are running on Cygwin. Gcc prints its search
18856
# path with ; separators, and with drive letters. We can handle the
18857
# drive letters (cygwin fileutils understands them), so leave them,
18858
# especially as we might pass files found there to a mingw objdump,
18859
# which wouldn't understand a cygwinified path. Ahh.
18860
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18862
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18866
# pw32 DLLs use 'pw' prefix rather than 'lib'
18867
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18873
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18876
dynamic_linker='Win32 ld.exe'
18877
# FIXME: first we should search . and the directory the executable is in
18881
darwin* | rhapsody*)
18882
dynamic_linker="$host_os dyld"
18883
version_type=darwin
18886
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18887
soname_spec='${libname}${release}${major}$shared_ext'
18888
shlibpath_overrides_runpath=yes
18889
shlibpath_var=DYLD_LIBRARY_PATH
18890
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18892
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18899
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18900
soname_spec='${libname}${release}${shared_ext}$major'
18901
shlibpath_var=LD_LIBRARY_PATH
18908
freebsd* | dragonfly*)
18909
# DragonFly does not have aout. When/if they implement a new
18910
# versioning mechanism, adjust this.
18911
if test -x /usr/bin/objformat; then
18912
objformat=`/usr/bin/objformat`
18915
freebsd[123]*) objformat=aout ;;
18916
*) objformat=elf ;;
18919
version_type=freebsd-$objformat
18920
case $version_type in
18922
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18927
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18931
shlibpath_var=LD_LIBRARY_PATH
18934
shlibpath_overrides_runpath=yes
18936
freebsd3.[01]* | freebsdelf3.[01]*)
18937
shlibpath_overrides_runpath=yes
18938
hardcode_into_libs=yes
18940
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18941
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18942
shlibpath_overrides_runpath=no
18943
hardcode_into_libs=yes
18945
*) # from 4.6 on, and DragonFly
18946
shlibpath_overrides_runpath=yes
18947
hardcode_into_libs=yes
18956
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18957
soname_spec='${libname}${release}${shared_ext}$major'
18958
shlibpath_var=LD_LIBRARY_PATH
18959
hardcode_into_libs=yes
18962
hpux9* | hpux10* | hpux11*)
18963
# Give a soname corresponding to the major version so that dld.sl refuses to
18964
# link against other versions.
18971
hardcode_into_libs=yes
18972
dynamic_linker="$host_os dld.so"
18973
shlibpath_var=LD_LIBRARY_PATH
18974
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18975
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18976
soname_spec='${libname}${release}${shared_ext}$major'
18977
if test "X$HPUX_IA64_MODE" = X32; then
18978
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18980
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18982
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18986
hardcode_into_libs=yes
18987
dynamic_linker="$host_os dld.sl"
18988
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18989
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18990
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18991
soname_spec='${libname}${release}${shared_ext}$major'
18992
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18993
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18997
dynamic_linker="$host_os dld.sl"
18998
shlibpath_var=SHLIB_PATH
18999
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19000
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19001
soname_spec='${libname}${release}${shared_ext}$major'
19004
# HP-UX runs *really* slowly unless shared libraries are mode 555.
19005
postinstall_cmds='chmod 555 $lib'
19012
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19013
soname_spec='${libname}${release}${shared_ext}$major'
19014
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19015
shlibpath_var=LD_LIBRARY_PATH
19016
shlibpath_overrides_runpath=no
19017
hardcode_into_libs=yes
19020
irix5* | irix6* | nonstopux*)
19022
nonstopux*) version_type=nonstopux ;;
19024
if test "$lt_cv_prog_gnu_ld" = yes; then
19032
soname_spec='${libname}${release}${shared_ext}$major'
19033
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19035
irix5* | nonstopux*)
19036
libsuff= shlibsuff=
19039
case $LD in # libtool.m4 will add one of these switches to LD
19040
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19041
libsuff= shlibsuff= libmagic=32-bit;;
19042
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19043
libsuff=32 shlibsuff=N32 libmagic=N32;;
19044
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19045
libsuff=64 shlibsuff=64 libmagic=64-bit;;
19046
*) libsuff= shlibsuff= libmagic=never-match;;
19050
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19051
shlibpath_overrides_runpath=no
19052
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19053
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19054
hardcode_into_libs=yes
19057
# No shared lib support for Linux oldld, aout, or coff.
19058
linux*oldld* | linux*aout* | linux*coff*)
19062
# This must be Linux ELF.
19063
linux* | k*bsd*-gnu)
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
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19070
shlibpath_var=LD_LIBRARY_PATH
19071
shlibpath_overrides_runpath=no
19072
# This implies no fast_install, which is unacceptable.
19073
# Some rework will be needed to allow for fast_install
19074
# before this can be enabled.
19075
hardcode_into_libs=yes
19077
# Append ld.so.conf contents to the search path
19078
if test -f /etc/ld.so.conf; then
19079
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' ' '`
19080
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19083
# We used to test for /lib/ld.so.1 and disable shared libraries on
19084
# powerpc, because MkLinux only supported shared libraries with the
19085
# GNU dynamic linker. Since this was broken with cross compilers,
19086
# most powerpc-linux boxes support dynamic linking these days and
19087
# people can always --disable-shared, the test was removed, and we
19088
# assume the GNU/Linux dynamic linker is in use.
19089
dynamic_linker='GNU/Linux ld.so'
19096
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19097
soname_spec='${libname}${release}${shared_ext}$major'
19098
shlibpath_var=LD_LIBRARY_PATH
19099
shlibpath_overrides_runpath=no
19100
hardcode_into_libs=yes
19101
dynamic_linker='NetBSD ld.elf_so'
19108
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19109
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19110
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19111
dynamic_linker='NetBSD (a.out) ld.so'
19113
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19114
soname_spec='${libname}${release}${shared_ext}$major'
19115
dynamic_linker='NetBSD ld.elf_so'
19117
shlibpath_var=LD_LIBRARY_PATH
19118
shlibpath_overrides_runpath=yes
19119
hardcode_into_libs=yes
19124
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19125
shlibpath_var=LD_LIBRARY_PATH
19126
shlibpath_overrides_runpath=yes
19133
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19134
soname_spec='${libname}${release}${shared_ext}$major'
19135
shlibpath_var=LD_LIBRARY_PATH
19136
shlibpath_overrides_runpath=yes
19141
sys_lib_dlsearch_path_spec="/usr/lib"
19143
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19145
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19146
*) need_version=no ;;
19148
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19149
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19150
shlibpath_var=LD_LIBRARY_PATH
19151
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19153
openbsd2.[89] | openbsd2.[89].*)
19154
shlibpath_overrides_runpath=no
19157
shlibpath_overrides_runpath=yes
19161
shlibpath_overrides_runpath=yes
19166
libname_spec='$name'
19169
library_names_spec='$libname${shared_ext} $libname.a'
19170
dynamic_linker='OS/2 ld.exe'
19171
shlibpath_var=LIBPATH
19174
osf3* | osf4* | osf5*)
19178
soname_spec='${libname}${release}${shared_ext}$major'
19179
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19180
shlibpath_var=LD_LIBRARY_PATH
19181
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19182
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19193
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19194
soname_spec='${libname}${release}${shared_ext}$major'
19195
shlibpath_var=LD_LIBRARY_PATH
19196
shlibpath_overrides_runpath=yes
19197
hardcode_into_libs=yes
19198
# ldd complains unless libraries are executable
19199
postinstall_cmds='chmod +x $lib'
19204
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19205
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19206
shlibpath_var=LD_LIBRARY_PATH
19207
shlibpath_overrides_runpath=yes
19208
if test "$with_gnu_ld" = yes; then
19216
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19217
soname_spec='${libname}${release}${shared_ext}$major'
19218
shlibpath_var=LD_LIBRARY_PATH
19219
case $host_vendor in
19221
shlibpath_overrides_runpath=no
19223
export_dynamic_flag_spec='${wl}-Blargedynsym'
19224
runpath_var=LD_RUN_PATH
19232
shlibpath_overrides_runpath=no
19233
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19239
if test -d /usr/nec ;then
19241
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19242
soname_spec='$libname${shared_ext}.$major'
19243
shlibpath_var=LD_LIBRARY_PATH
19247
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19248
version_type=freebsd-elf
19251
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19252
soname_spec='${libname}${release}${shared_ext}$major'
19253
shlibpath_var=LD_LIBRARY_PATH
19254
hardcode_into_libs=yes
19255
if test "$with_gnu_ld" = yes; then
19256
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19257
shlibpath_overrides_runpath=no
19259
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19260
shlibpath_overrides_runpath=yes
19263
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19267
sys_lib_dlsearch_path_spec='/usr/lib'
19272
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19273
soname_spec='${libname}${release}${shared_ext}$major'
19274
shlibpath_var=LD_LIBRARY_PATH
19281
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19282
echo "${ECHO_T}$dynamic_linker" >&6; }
19283
test "$dynamic_linker" = no && can_build_shared=no
19285
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19286
echo $ECHO_N "(cached) $ECHO_C" >&6
19288
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
19291
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19292
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19293
echo $ECHO_N "(cached) $ECHO_C" >&6
19295
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
19298
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19300
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19301
if test "$GCC" = yes; then
19302
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19305
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19306
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19307
hardcode_action_GCJ=
19308
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19309
test -n "$runpath_var_GCJ" || \
19310
test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19312
# We can hardcode non-existant directories.
19313
if test "$hardcode_direct_GCJ" != no &&
19314
# If the only mechanism to avoid hardcoding is shlibpath_var, we
19315
# have to relink, otherwise we might link with an installed library
19316
# when we should be linking with a yet-to-be-installed one
19317
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19318
test "$hardcode_minus_L_GCJ" != no; then
19319
# Linking always hardcodes the temporary library directory.
19320
hardcode_action_GCJ=relink
19322
# We can link without hardcoding, and we can hardcode nonexisting dirs.
19323
hardcode_action_GCJ=immediate
19326
# We cannot hardcode anything, or else we can only hardcode existing
19328
hardcode_action_GCJ=unsupported
19330
{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19331
echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
19333
if test "$hardcode_action_GCJ" = relink; then
19334
# Fast installation is not supported
19335
enable_fast_install=no
19336
elif test "$shlibpath_overrides_runpath" = yes ||
19337
test "$enable_shared" = no; then
19338
# Fast installation is not necessary
19339
enable_fast_install=needless
19343
# The else clause should only fire when bootstrapping the
19344
# libtool distribution, otherwise you forgot to ship ltmain.sh
19345
# with your package, and you will get complaints that there are
19346
# no rules to generate ltmain.sh.
19347
if test -f "$ltmain"; then
19348
# See if we are running on zsh, and set the options which allow our commands through
19349
# without removal of \ escapes.
19350
if test -n "${ZSH_VERSION+set}" ; then
19351
setopt NO_GLOB_SUBST
19353
# Now quote all the things that may contain metacharacters while being
19354
# careful not to overquote the AC_SUBSTed values. We take copies of the
19355
# variables and quote the copies for generation of the libtool script.
19356
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19358
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19359
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19360
deplibs_check_method reload_flag reload_cmds need_locks \
19361
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19362
lt_cv_sys_global_symbol_to_c_name_address \
19363
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19364
old_postinstall_cmds old_postuninstall_cmds \
19368
lt_prog_compiler_wl_GCJ \
19369
lt_prog_compiler_pic_GCJ \
19370
lt_prog_compiler_static_GCJ \
19371
lt_prog_compiler_no_builtin_flag_GCJ \
19372
export_dynamic_flag_spec_GCJ \
19373
thread_safe_flag_spec_GCJ \
19374
whole_archive_flag_spec_GCJ \
19375
enable_shared_with_static_runtimes_GCJ \
19376
old_archive_cmds_GCJ \
19377
old_archive_from_new_cmds_GCJ \
19378
predep_objects_GCJ \
19379
postdep_objects_GCJ \
19382
compiler_lib_search_path_GCJ \
19383
compiler_lib_search_dirs_GCJ \
19385
archive_expsym_cmds_GCJ \
19386
postinstall_cmds_GCJ \
19387
postuninstall_cmds_GCJ \
19388
old_archive_from_expsyms_cmds_GCJ \
19389
allow_undefined_flag_GCJ \
19390
no_undefined_flag_GCJ \
19391
export_symbols_cmds_GCJ \
19392
hardcode_libdir_flag_spec_GCJ \
19393
hardcode_libdir_flag_spec_ld_GCJ \
19394
hardcode_libdir_separator_GCJ \
19395
hardcode_automatic_GCJ \
19397
module_expsym_cmds_GCJ \
19398
lt_cv_prog_compiler_c_o_GCJ \
19399
fix_srcfile_path_GCJ \
19400
exclude_expsyms_GCJ \
19401
include_expsyms_GCJ; do
19404
old_archive_cmds_GCJ | \
19405
old_archive_from_new_cmds_GCJ | \
19406
archive_cmds_GCJ | \
19407
archive_expsym_cmds_GCJ | \
19408
module_cmds_GCJ | \
19409
module_expsym_cmds_GCJ | \
19410
old_archive_from_expsyms_cmds_GCJ | \
19411
export_symbols_cmds_GCJ | \
19412
extract_expsyms_cmds | reload_cmds | finish_cmds | \
19413
postinstall_cmds | postuninstall_cmds | \
19414
old_postinstall_cmds | old_postuninstall_cmds | \
19415
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19416
# Double-quote double-evaled strings.
19417
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19420
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19426
*'\$0 --fallback-echo"')
19427
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19433
cat <<__EOF__ >> "$cfgfile"
19434
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19436
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19438
# Shell to use when invoking shell scripts.
19441
# Whether or not to build shared libraries.
19442
build_libtool_libs=$enable_shared
19444
# Whether or not to build static libraries.
19445
build_old_libs=$enable_static
19447
# Whether or not to add -lc for building shared libraries.
19448
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19450
# Whether or not to disallow shared libs when runtime libs are static
19451
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19453
# Whether or not to optimize for fast installation.
19454
fast_install=$enable_fast_install
19457
host_alias=$host_alias
19461
# The build system.
19462
build_alias=$build_alias
19466
# An echo program that does not interpret backslashes.
19471
AR_FLAGS=$lt_AR_FLAGS
19476
# LTCC compiler flags.
19477
LTCFLAGS=$lt_LTCFLAGS
19479
# A language-specific compiler.
19480
CC=$lt_compiler_GCJ
19482
# Is the compiler the GNU C compiler?
19488
# The linker used to build libraries.
19491
# Whether we need hard or soft links.
19494
# A BSD-compatible nm program.
19497
# A symbol stripping program
19500
# Used to examine libraries when file_magic_cmd begins "file"
19501
MAGIC_CMD=$MAGIC_CMD
19503
# Used on cygwin: DLL creation program.
19506
# Used on cygwin: object dumper.
19509
# Used on cygwin: assembler.
19512
# The name of the directory that contains temporary libtool files.
19515
# How to create reloadable object files.
19516
reload_flag=$lt_reload_flag
19517
reload_cmds=$lt_reload_cmds
19519
# How to pass a linker flag through the compiler.
19520
wl=$lt_lt_prog_compiler_wl_GCJ
19522
# Object file suffix (normally "o").
19523
objext="$ac_objext"
19525
# Old archive suffix (normally "a").
19528
# Shared library suffix (normally ".so").
19529
shrext_cmds='$shrext_cmds'
19531
# Executable file suffix (normally "").
19534
# Additional compiler flags for building library objects.
19535
pic_flag=$lt_lt_prog_compiler_pic_GCJ
19538
# What is the maximum length of a command?
19539
max_cmd_len=$lt_cv_sys_max_cmd_len
19541
# Does compiler simultaneously support -c and -o options?
19542
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19544
# Must we lock files when doing compilation?
19545
need_locks=$lt_need_locks
19547
# Do we need the lib prefix for modules?
19548
need_lib_prefix=$need_lib_prefix
19550
# Do we need a version for libraries?
19551
need_version=$need_version
19553
# Whether dlopen is supported.
19554
dlopen_support=$enable_dlopen
19556
# Whether dlopen of programs is supported.
19557
dlopen_self=$enable_dlopen_self
19559
# Whether dlopen of statically linked programs is supported.
19560
dlopen_self_static=$enable_dlopen_self_static
19562
# Compiler flag to prevent dynamic linking.
19563
link_static_flag=$lt_lt_prog_compiler_static_GCJ
19565
# Compiler flag to turn off builtin functions.
19566
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19568
# Compiler flag to allow reflexive dlopens.
19569
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19571
# Compiler flag to generate shared objects directly from archives.
19572
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19574
# Compiler flag to generate thread-safe objects.
19575
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19577
# Library versioning type.
19578
version_type=$version_type
19580
# Format of library name prefix.
19581
libname_spec=$lt_libname_spec
19583
# List of archive names. First name is the real one, the rest are links.
19584
# The last name is the one that the linker finds with -lNAME.
19585
library_names_spec=$lt_library_names_spec
19587
# The coded name of the library, if different from the real name.
19588
soname_spec=$lt_soname_spec
19590
# Commands used to build and install an old-style archive.
19592
old_archive_cmds=$lt_old_archive_cmds_GCJ
19593
old_postinstall_cmds=$lt_old_postinstall_cmds
19594
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19596
# Create an old-style archive from a shared archive.
19597
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19599
# Create a temporary old-style archive to link instead of a shared archive.
19600
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19602
# Commands used to build and install a shared archive.
19603
archive_cmds=$lt_archive_cmds_GCJ
19604
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19605
postinstall_cmds=$lt_postinstall_cmds
19606
postuninstall_cmds=$lt_postuninstall_cmds
19608
# Commands used to build a loadable module (assumed same as above if empty)
19609
module_cmds=$lt_module_cmds_GCJ
19610
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19612
# Commands to strip libraries.
19613
old_striplib=$lt_old_striplib
19614
striplib=$lt_striplib
19616
# Dependencies to place before the objects being linked to create a
19618
predep_objects=$lt_predep_objects_GCJ
19620
# Dependencies to place after the objects being linked to create a
19622
postdep_objects=$lt_postdep_objects_GCJ
19624
# Dependencies to place before the objects being linked to create a
19626
predeps=$lt_predeps_GCJ
19628
# Dependencies to place after the objects being linked to create a
19630
postdeps=$lt_postdeps_GCJ
19632
# The directories searched by this compiler when creating a shared
19634
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19636
# The library search path used internally by the compiler when linking
19637
# a shared library.
19638
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19640
# Method to check whether dependent libraries are shared objects.
19641
deplibs_check_method=$lt_deplibs_check_method
19643
# Command to use when deplibs_check_method == file_magic.
19644
file_magic_cmd=$lt_file_magic_cmd
19646
# Flag that allows shared libraries with undefined symbols to be built.
19647
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19649
# Flag that forces no undefined symbols.
19650
no_undefined_flag=$lt_no_undefined_flag_GCJ
19652
# Commands used to finish a libtool library installation in a directory.
19653
finish_cmds=$lt_finish_cmds
19655
# Same as above, but a single script fragment to be evaled but not shown.
19656
finish_eval=$lt_finish_eval
19658
# Take the output of nm and produce a listing of raw symbols and C names.
19659
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19661
# Transform the output of nm in a proper C declaration
19662
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19664
# Transform the output of nm in a C name address pair
19665
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19667
# This is the shared library runtime path variable.
19668
runpath_var=$runpath_var
19670
# This is the shared library path variable.
19671
shlibpath_var=$shlibpath_var
19673
# Is shlibpath searched before the hard-coded library search path?
19674
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19676
# How to hardcode a shared library path into an executable.
19677
hardcode_action=$hardcode_action_GCJ
19679
# Whether we should hardcode library paths into libraries.
19680
hardcode_into_libs=$hardcode_into_libs
19682
# Flag to hardcode \$libdir into a binary during linking.
19683
# This must work even if \$libdir does not exist.
19684
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19686
# If ld is used when linking, flag to hardcode \$libdir into
19687
# a binary during linking. This must work even if \$libdir does
19689
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19691
# Whether we need a single -rpath flag with a separated argument.
19692
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19694
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19695
# resulting binary.
19696
hardcode_direct=$hardcode_direct_GCJ
19698
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19699
# resulting binary.
19700
hardcode_minus_L=$hardcode_minus_L_GCJ
19702
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19703
# the resulting binary.
19704
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19706
# Set to yes if building a shared library automatically hardcodes DIR into the library
19707
# and all subsequent libraries and executables linked against it.
19708
hardcode_automatic=$hardcode_automatic_GCJ
19710
# Variables whose values should be saved in libtool wrapper scripts and
19711
# restored at relink time.
19712
variables_saved_for_relink="$variables_saved_for_relink"
19714
# Whether libtool must link a program against all its dependency libraries.
19715
link_all_deplibs=$link_all_deplibs_GCJ
19717
# Compile-time system search path for libraries
19718
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19720
# Run-time system search path for libraries
19721
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19723
# Fix the shell variable \$srcfile for the compiler.
19724
fix_srcfile_path=$lt_fix_srcfile_path
19726
# Set to yes if exported symbols are required.
19727
always_export_symbols=$always_export_symbols_GCJ
19729
# The commands to list exported symbols.
19730
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19732
# The commands to extract the exported symbol list from a shared archive.
19733
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19735
# Symbols that should not be listed in the preloaded symbols.
19736
exclude_expsyms=$lt_exclude_expsyms_GCJ
19738
# Symbols that must always be exported.
19739
include_expsyms=$lt_include_expsyms_GCJ
19741
# ### END LIBTOOL TAG CONFIG: $tagname
19747
# If there is no Makefile yet, we rely on a make rule to execute
19748
# `config.status --recheck' to rerun these tests and create the
19749
# libtool script then.
19750
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19751
if test -f "$ltmain_in"; then
19752
test -f Makefile && make "$ltmain"
19758
ac_cpp='$CPP $CPPFLAGS'
19759
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19760
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19761
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19773
# Source file extension for RC test sources.
19776
# Object file extension for compiled RC test sources.
19780
# Code to be used in simple compile tests
19781
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19783
# Code to be used in simple link tests
19784
lt_simple_link_test_code="$lt_simple_compile_test_code"
19786
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19788
# If no C compiler was specified, use CC.
19791
# If no C compiler flags were specified, use CFLAGS.
19792
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19794
# Allow CC to be a program name with arguments.
19798
# save warnings/boilerplate of simple test code
19799
ac_outfile=conftest.$ac_objext
19800
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19801
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19802
_lt_compiler_boilerplate=`cat conftest.err`
19805
ac_outfile=conftest.$ac_objext
19806
echo "$lt_simple_link_test_code" >conftest.$ac_ext
19807
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19808
_lt_linker_boilerplate=`cat conftest.err`
19812
# Allow CC to be a program name with arguments.
19817
for cc_temp in $compiler""; do
19819
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19820
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19825
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19827
lt_cv_prog_compiler_c_o_RC=yes
19829
# The else clause should only fire when bootstrapping the
19830
# libtool distribution, otherwise you forgot to ship ltmain.sh
19831
# with your package, and you will get complaints that there are
19832
# no rules to generate ltmain.sh.
19833
if test -f "$ltmain"; then
19834
# See if we are running on zsh, and set the options which allow our commands through
19835
# without removal of \ escapes.
19836
if test -n "${ZSH_VERSION+set}" ; then
19837
setopt NO_GLOB_SUBST
19839
# Now quote all the things that may contain metacharacters while being
19840
# careful not to overquote the AC_SUBSTed values. We take copies of the
19841
# variables and quote the copies for generation of the libtool script.
19842
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19844
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19845
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19846
deplibs_check_method reload_flag reload_cmds need_locks \
19847
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19848
lt_cv_sys_global_symbol_to_c_name_address \
19849
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19850
old_postinstall_cmds old_postuninstall_cmds \
19854
lt_prog_compiler_wl_RC \
19855
lt_prog_compiler_pic_RC \
19856
lt_prog_compiler_static_RC \
19857
lt_prog_compiler_no_builtin_flag_RC \
19858
export_dynamic_flag_spec_RC \
19859
thread_safe_flag_spec_RC \
19860
whole_archive_flag_spec_RC \
19861
enable_shared_with_static_runtimes_RC \
19862
old_archive_cmds_RC \
19863
old_archive_from_new_cmds_RC \
19864
predep_objects_RC \
19865
postdep_objects_RC \
19868
compiler_lib_search_path_RC \
19869
compiler_lib_search_dirs_RC \
19871
archive_expsym_cmds_RC \
19872
postinstall_cmds_RC \
19873
postuninstall_cmds_RC \
19874
old_archive_from_expsyms_cmds_RC \
19875
allow_undefined_flag_RC \
19876
no_undefined_flag_RC \
19877
export_symbols_cmds_RC \
19878
hardcode_libdir_flag_spec_RC \
19879
hardcode_libdir_flag_spec_ld_RC \
19880
hardcode_libdir_separator_RC \
19881
hardcode_automatic_RC \
19883
module_expsym_cmds_RC \
19884
lt_cv_prog_compiler_c_o_RC \
19885
fix_srcfile_path_RC \
19886
exclude_expsyms_RC \
19887
include_expsyms_RC; do
19890
old_archive_cmds_RC | \
19891
old_archive_from_new_cmds_RC | \
19892
archive_cmds_RC | \
19893
archive_expsym_cmds_RC | \
19895
module_expsym_cmds_RC | \
19896
old_archive_from_expsyms_cmds_RC | \
19897
export_symbols_cmds_RC | \
19898
extract_expsyms_cmds | reload_cmds | finish_cmds | \
19899
postinstall_cmds | postuninstall_cmds | \
19900
old_postinstall_cmds | old_postuninstall_cmds | \
19901
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19902
# Double-quote double-evaled strings.
19903
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19906
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19912
*'\$0 --fallback-echo"')
19913
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19919
cat <<__EOF__ >> "$cfgfile"
19920
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19922
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19924
# Shell to use when invoking shell scripts.
19927
# Whether or not to build shared libraries.
19928
build_libtool_libs=$enable_shared
19930
# Whether or not to build static libraries.
19931
build_old_libs=$enable_static
19933
# Whether or not to add -lc for building shared libraries.
19934
build_libtool_need_lc=$archive_cmds_need_lc_RC
19936
# Whether or not to disallow shared libs when runtime libs are static
19937
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19939
# Whether or not to optimize for fast installation.
19940
fast_install=$enable_fast_install
19943
host_alias=$host_alias
19947
# The build system.
19948
build_alias=$build_alias
19952
# An echo program that does not interpret backslashes.
19957
AR_FLAGS=$lt_AR_FLAGS
19962
# LTCC compiler flags.
19963
LTCFLAGS=$lt_LTCFLAGS
19965
# A language-specific compiler.
19968
# Is the compiler the GNU C compiler?
19974
# The linker used to build libraries.
19977
# Whether we need hard or soft links.
19980
# A BSD-compatible nm program.
19983
# A symbol stripping program
19986
# Used to examine libraries when file_magic_cmd begins "file"
19987
MAGIC_CMD=$MAGIC_CMD
19989
# Used on cygwin: DLL creation program.
19992
# Used on cygwin: object dumper.
19995
# Used on cygwin: assembler.
19998
# The name of the directory that contains temporary libtool files.
20001
# How to create reloadable object files.
20002
reload_flag=$lt_reload_flag
20003
reload_cmds=$lt_reload_cmds
20005
# How to pass a linker flag through the compiler.
20006
wl=$lt_lt_prog_compiler_wl_RC
20008
# Object file suffix (normally "o").
20009
objext="$ac_objext"
20011
# Old archive suffix (normally "a").
20014
# Shared library suffix (normally ".so").
20015
shrext_cmds='$shrext_cmds'
20017
# Executable file suffix (normally "").
20020
# Additional compiler flags for building library objects.
20021
pic_flag=$lt_lt_prog_compiler_pic_RC
20024
# What is the maximum length of a command?
20025
max_cmd_len=$lt_cv_sys_max_cmd_len
20027
# Does compiler simultaneously support -c and -o options?
20028
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20030
# Must we lock files when doing compilation?
20031
need_locks=$lt_need_locks
20033
# Do we need the lib prefix for modules?
20034
need_lib_prefix=$need_lib_prefix
20036
# Do we need a version for libraries?
20037
need_version=$need_version
20039
# Whether dlopen is supported.
20040
dlopen_support=$enable_dlopen
20042
# Whether dlopen of programs is supported.
20043
dlopen_self=$enable_dlopen_self
20045
# Whether dlopen of statically linked programs is supported.
20046
dlopen_self_static=$enable_dlopen_self_static
20048
# Compiler flag to prevent dynamic linking.
20049
link_static_flag=$lt_lt_prog_compiler_static_RC
20051
# Compiler flag to turn off builtin functions.
20052
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20054
# Compiler flag to allow reflexive dlopens.
20055
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20057
# Compiler flag to generate shared objects directly from archives.
20058
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20060
# Compiler flag to generate thread-safe objects.
20061
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20063
# Library versioning type.
20064
version_type=$version_type
20066
# Format of library name prefix.
20067
libname_spec=$lt_libname_spec
20069
# List of archive names. First name is the real one, the rest are links.
20070
# The last name is the one that the linker finds with -lNAME.
20071
library_names_spec=$lt_library_names_spec
20073
# The coded name of the library, if different from the real name.
20074
soname_spec=$lt_soname_spec
20076
# Commands used to build and install an old-style archive.
20078
old_archive_cmds=$lt_old_archive_cmds_RC
20079
old_postinstall_cmds=$lt_old_postinstall_cmds
20080
old_postuninstall_cmds=$lt_old_postuninstall_cmds
20082
# Create an old-style archive from a shared archive.
20083
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20085
# Create a temporary old-style archive to link instead of a shared archive.
20086
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20088
# Commands used to build and install a shared archive.
20089
archive_cmds=$lt_archive_cmds_RC
20090
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20091
postinstall_cmds=$lt_postinstall_cmds
20092
postuninstall_cmds=$lt_postuninstall_cmds
20094
# Commands used to build a loadable module (assumed same as above if empty)
20095
module_cmds=$lt_module_cmds_RC
20096
module_expsym_cmds=$lt_module_expsym_cmds_RC
20098
# Commands to strip libraries.
20099
old_striplib=$lt_old_striplib
20100
striplib=$lt_striplib
20102
# Dependencies to place before the objects being linked to create a
20104
predep_objects=$lt_predep_objects_RC
20106
# Dependencies to place after the objects being linked to create a
20108
postdep_objects=$lt_postdep_objects_RC
20110
# Dependencies to place before the objects being linked to create a
20112
predeps=$lt_predeps_RC
20114
# Dependencies to place after the objects being linked to create a
20116
postdeps=$lt_postdeps_RC
20118
# The directories searched by this compiler when creating a shared
20120
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
20122
# The library search path used internally by the compiler when linking
20123
# a shared library.
20124
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20126
# Method to check whether dependent libraries are shared objects.
20127
deplibs_check_method=$lt_deplibs_check_method
20129
# Command to use when deplibs_check_method == file_magic.
20130
file_magic_cmd=$lt_file_magic_cmd
20132
# Flag that allows shared libraries with undefined symbols to be built.
20133
allow_undefined_flag=$lt_allow_undefined_flag_RC
20135
# Flag that forces no undefined symbols.
20136
no_undefined_flag=$lt_no_undefined_flag_RC
20138
# Commands used to finish a libtool library installation in a directory.
20139
finish_cmds=$lt_finish_cmds
20141
# Same as above, but a single script fragment to be evaled but not shown.
20142
finish_eval=$lt_finish_eval
20144
# Take the output of nm and produce a listing of raw symbols and C names.
20145
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20147
# Transform the output of nm in a proper C declaration
20148
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20150
# Transform the output of nm in a C name address pair
20151
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20153
# This is the shared library runtime path variable.
20154
runpath_var=$runpath_var
20156
# This is the shared library path variable.
20157
shlibpath_var=$shlibpath_var
20159
# Is shlibpath searched before the hard-coded library search path?
20160
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20162
# How to hardcode a shared library path into an executable.
20163
hardcode_action=$hardcode_action_RC
20165
# Whether we should hardcode library paths into libraries.
20166
hardcode_into_libs=$hardcode_into_libs
20168
# Flag to hardcode \$libdir into a binary during linking.
20169
# This must work even if \$libdir does not exist.
20170
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20172
# If ld is used when linking, flag to hardcode \$libdir into
20173
# a binary during linking. This must work even if \$libdir does
20175
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20177
# Whether we need a single -rpath flag with a separated argument.
20178
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20180
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20181
# resulting binary.
20182
hardcode_direct=$hardcode_direct_RC
20184
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20185
# resulting binary.
20186
hardcode_minus_L=$hardcode_minus_L_RC
20188
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20189
# the resulting binary.
20190
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20192
# Set to yes if building a shared library automatically hardcodes DIR into the library
20193
# and all subsequent libraries and executables linked against it.
20194
hardcode_automatic=$hardcode_automatic_RC
20196
# Variables whose values should be saved in libtool wrapper scripts and
20197
# restored at relink time.
20198
variables_saved_for_relink="$variables_saved_for_relink"
20200
# Whether libtool must link a program against all its dependency libraries.
20201
link_all_deplibs=$link_all_deplibs_RC
20203
# Compile-time system search path for libraries
20204
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20206
# Run-time system search path for libraries
20207
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20209
# Fix the shell variable \$srcfile for the compiler.
20210
fix_srcfile_path=$lt_fix_srcfile_path
20212
# Set to yes if exported symbols are required.
20213
always_export_symbols=$always_export_symbols_RC
20215
# The commands to list exported symbols.
20216
export_symbols_cmds=$lt_export_symbols_cmds_RC
20218
# The commands to extract the exported symbol list from a shared archive.
20219
extract_expsyms_cmds=$lt_extract_expsyms_cmds
20221
# Symbols that should not be listed in the preloaded symbols.
20222
exclude_expsyms=$lt_exclude_expsyms_RC
20224
# Symbols that must always be exported.
20225
include_expsyms=$lt_include_expsyms_RC
20227
# ### END LIBTOOL TAG CONFIG: $tagname
20233
# If there is no Makefile yet, we rely on a make rule to execute
20234
# `config.status --recheck' to rerun these tests and create the
20235
# libtool script then.
20236
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20237
if test -f "$ltmain_in"; then
20238
test -f Makefile && make "$ltmain"
20244
ac_cpp='$CPP $CPPFLAGS'
20245
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20246
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20247
ac_compiler_gnu=$ac_cv_c_compiler_gnu
20254
{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20255
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20256
{ (exit 1); exit 1; }; }
20260
# Append the new tag name to the list of available tags.
20261
if test -n "$tagname" ; then
20262
available_tags="$available_tags $tagname"
20268
# Now substitute the updated list of available tags.
20269
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20270
mv "${ofile}T" "$ofile"
20274
{ { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20275
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20276
{ (exit 1); exit 1; }; }
20282
# This can be used to rebuild libtool when needed
20283
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20285
# Always use our own libtool.
20286
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20288
# Prevent multiple expansion
20310
# Checks for libraries.
20313
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
20314
if test -n "$ac_tool_prefix"; then
20315
# Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20316
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20317
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20318
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20319
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20320
echo $ECHO_N "(cached) $ECHO_C" >&6
20322
case $PKG_CONFIG in
20324
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20327
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20328
for as_dir in $PATH
20331
test -z "$as_dir" && as_dir=.
20332
for ac_exec_ext in '' $ac_executable_extensions; do
20333
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20334
ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20335
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20345
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20346
if test -n "$PKG_CONFIG"; then
20347
{ echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20348
echo "${ECHO_T}$PKG_CONFIG" >&6; }
20350
{ echo "$as_me:$LINENO: result: no" >&5
20351
echo "${ECHO_T}no" >&6; }
20356
if test -z "$ac_cv_path_PKG_CONFIG"; then
20357
ac_pt_PKG_CONFIG=$PKG_CONFIG
20358
# Extract the first word of "pkg-config", so it can be a program name with args.
20359
set dummy pkg-config; ac_word=$2
20360
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20361
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20362
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
20363
echo $ECHO_N "(cached) $ECHO_C" >&6
20365
case $ac_pt_PKG_CONFIG in
20367
ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
20370
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20371
for as_dir in $PATH
20374
test -z "$as_dir" && as_dir=.
20375
for ac_exec_ext in '' $ac_executable_extensions; do
20376
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20377
ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20378
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20388
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
20389
if test -n "$ac_pt_PKG_CONFIG"; then
20390
{ echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
20391
echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
20393
{ echo "$as_me:$LINENO: result: no" >&5
20394
echo "${ECHO_T}no" >&6; }
20397
if test "x$ac_pt_PKG_CONFIG" = x; then
20400
case $cross_compiling:$ac_tool_warned in
20402
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20403
whose name does not start with the host triplet. If you think this
20404
configuration is useful to you, please write to autoconf@gnu.org." >&5
20405
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20406
whose name does not start with the host triplet. If you think this
20407
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20408
ac_tool_warned=yes ;;
20410
PKG_CONFIG=$ac_pt_PKG_CONFIG
20413
PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
20417
if test -n "$PKG_CONFIG"; then
20418
_pkg_min_version=0.9.0
20419
{ echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
20420
echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
20421
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
20422
{ echo "$as_me:$LINENO: result: yes" >&5
20423
echo "${ECHO_T}yes" >&6; }
20425
{ echo "$as_me:$LINENO: result: no" >&5
20426
echo "${ECHO_T}no" >&6; }
20433
{ echo "$as_me:$LINENO: checking for DEPS" >&5
20434
echo $ECHO_N "checking for DEPS... $ECHO_C" >&6; }
20436
if test -n "$PKG_CONFIG"; then
20437
if test -n "$DEPS_CFLAGS"; then
20438
pkg_cv_DEPS_CFLAGS="$DEPS_CFLAGS"
20440
if test -n "$PKG_CONFIG" && \
20441
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.2 glib-2.0 >= 2.2\"") >&5
20442
($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.2 glib-2.0 >= 2.2") 2>&5
20444
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20445
(exit $ac_status); }; then
20446
pkg_cv_DEPS_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.2 glib-2.0 >= 2.2" 2>/dev/null`
20454
if test -n "$PKG_CONFIG"; then
20455
if test -n "$DEPS_LIBS"; then
20456
pkg_cv_DEPS_LIBS="$DEPS_LIBS"
20458
if test -n "$PKG_CONFIG" && \
20459
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.2 glib-2.0 >= 2.2\"") >&5
20460
($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.2 glib-2.0 >= 2.2") 2>&5
20462
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20463
(exit $ac_status); }; then
20464
pkg_cv_DEPS_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.2 glib-2.0 >= 2.2" 2>/dev/null`
20475
if test $pkg_failed = yes; then
20477
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20478
_pkg_short_errors_supported=yes
20480
_pkg_short_errors_supported=no
20482
if test $_pkg_short_errors_supported = yes; then
20483
DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-2.0 >= 2.2 glib-2.0 >= 2.2"`
20485
DEPS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.2 glib-2.0 >= 2.2"`
20487
# Put the nasty error message in config.log where it belongs
20488
echo "$DEPS_PKG_ERRORS" >&5
20490
{ { echo "$as_me:$LINENO: error: Package requirements (gtk+-2.0 >= 2.2 glib-2.0 >= 2.2) were not met:
20494
Consider adjusting the PKG_CONFIG_PATH environment variable if you
20495
installed software in a non-standard prefix.
20497
Alternatively, you may set the environment variables DEPS_CFLAGS
20498
and DEPS_LIBS to avoid the need to call pkg-config.
20499
See the pkg-config man page for more details.
20501
echo "$as_me: error: Package requirements (gtk+-2.0 >= 2.2 glib-2.0 >= 2.2) were not met:
20505
Consider adjusting the PKG_CONFIG_PATH environment variable if you
20506
installed software in a non-standard prefix.
20508
Alternatively, you may set the environment variables DEPS_CFLAGS
20509
and DEPS_LIBS to avoid the need to call pkg-config.
20510
See the pkg-config man page for more details.
20512
{ (exit 1); exit 1; }; }
20513
elif test $pkg_failed = untried; then
20514
{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
20515
is in your PATH or set the PKG_CONFIG environment variable to the full
20516
path to pkg-config.
20518
Alternatively, you may set the environment variables DEPS_CFLAGS
20519
and DEPS_LIBS to avoid the need to call pkg-config.
20520
See the pkg-config man page for more details.
20522
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20523
See \`config.log' for more details." >&5
20524
echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
20525
is in your PATH or set the PKG_CONFIG environment variable to the full
20526
path to pkg-config.
20528
Alternatively, you may set the environment variables DEPS_CFLAGS
20529
and DEPS_LIBS to avoid the need to call pkg-config.
20530
See the pkg-config man page for more details.
20532
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20533
See \`config.log' for more details." >&2;}
20534
{ (exit 1); exit 1; }; }
20536
DEPS_CFLAGS=$pkg_cv_DEPS_CFLAGS
20537
DEPS_LIBS=$pkg_cv_DEPS_LIBS
20538
{ echo "$as_me:$LINENO: result: yes" >&5
20539
echo "${ECHO_T}yes" >&6; }
20543
# Checks for header files.
20545
# Checks for typedefs, structures, and compiler characteristics.
20547
# Checks for library functions.
20549
ac_config_files="$ac_config_files Makefile libobgtk/Makefile"
20551
cat >confcache <<\_ACEOF
20552
# This file is a shell script that caches the results of configure
20553
# tests run on this system so they can be shared between configure
20554
# scripts and configure runs, see configure's option --config-cache.
20555
# It is not useful on other systems. If it contains results you don't
20556
# want to keep, you may remove or edit it.
20558
# config.status only pays attention to the cache file if you give it
20559
# the --recheck option to rerun configure.
20561
# `ac_cv_env_foo' variables (set or unset) will be overridden when
20562
# loading this file, other *unset* `ac_cv_foo' will be assigned the
20563
# following values.
20567
# The following way of writing the cache mishandles newlines in values,
20568
# but we know of no workaround that is simple, portable, and efficient.
20569
# So, we kill variables containing newlines.
20570
# Ultrix sh set writes to stderr and can't be redirected directly,
20571
# and sets the high bit in the cache file unless we assign to the vars.
20573
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20574
eval ac_val=\$$ac_var
20578
*_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20579
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20582
_ | IFS | as_nl) ;; #(
20583
*) $as_unset $ac_var ;;
20589
case $as_nl`(ac_space=' '; set) 2>&1` in #(
20590
*${as_nl}ac_space=\ *)
20591
# `set' does not quote correctly, so add quotes (double-quote
20592
# substitution turns \\\\ into \\, and sed turns \\ into \).
20595
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20598
# `set' quotes correctly as required by POSIX, so do not add quotes.
20599
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20608
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20610
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20612
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20613
if test -w "$cache_file"; then
20614
test "x$cache_file" != "x/dev/null" &&
20615
{ echo "$as_me:$LINENO: updating cache $cache_file" >&5
20616
echo "$as_me: updating cache $cache_file" >&6;}
20617
cat confcache >$cache_file
20619
{ echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20620
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20625
test "x$prefix" = xNONE && prefix=$ac_default_prefix
20626
# Let make expand exec_prefix.
20627
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20629
DEFS=-DHAVE_CONFIG_H
20633
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20634
# 1. Remove the extension, and $U if already installed.
20635
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20636
ac_i=`echo "$ac_i" | sed "$ac_script"`
20637
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20638
# will be set to the directory where LIBOBJS objects are built.
20639
ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20640
ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20642
LIBOBJS=$ac_libobjs
20644
LTLIBOBJS=$ac_ltlibobjs
20647
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20648
{ { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20649
Usually this means the macro was only invoked conditionally." >&5
20650
echo "$as_me: error: conditional \"AMDEP\" was never defined.
20651
Usually this means the macro was only invoked conditionally." >&2;}
20652
{ (exit 1); exit 1; }; }
20654
if test -z "${am__fastdepOBJC_TRUE}" && test -z "${am__fastdepOBJC_FALSE}"; then
20655
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepOBJC\" was never defined.
20656
Usually this means the macro was only invoked conditionally." >&5
20657
echo "$as_me: error: conditional \"am__fastdepOBJC\" was never defined.
20658
Usually this means the macro was only invoked conditionally." >&2;}
20659
{ (exit 1); exit 1; }; }
20661
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20662
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20663
Usually this means the macro was only invoked conditionally." >&5
20664
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20665
Usually this means the macro was only invoked conditionally." >&2;}
20666
{ (exit 1); exit 1; }; }
20668
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20669
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20670
Usually this means the macro was only invoked conditionally." >&5
20671
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20672
Usually this means the macro was only invoked conditionally." >&2;}
20673
{ (exit 1); exit 1; }; }
20676
: ${CONFIG_STATUS=./config.status}
20677
ac_clean_files_save=$ac_clean_files
20678
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20679
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20680
echo "$as_me: creating $CONFIG_STATUS" >&6;}
20681
cat >$CONFIG_STATUS <<_ACEOF
20683
# Generated by $as_me.
20684
# Run this file to recreate the current configuration.
20685
# Compiler output produced by configure, useful for debugging
20686
# configure, is in config.log if it exists.
20689
ac_cs_recheck=false
20691
SHELL=\${CONFIG_SHELL-$SHELL}
20694
cat >>$CONFIG_STATUS <<\_ACEOF
20695
## --------------------- ##
20696
## M4sh Initialization. ##
20697
## --------------------- ##
20699
# Be more Bourne compatible
20700
DUALCASE=1; export DUALCASE # for MKS sh
20701
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20704
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20705
# is contrary to our usage. Disable this feature.
20706
alias -g '${1+"$@"}'='"$@"'
20707
setopt NO_GLOB_SUBST
20709
case `(set -o) 2>/dev/null` in
20710
*posix*) set -o posix ;;
20719
# Avoid depending upon Character Ranges.
20720
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20721
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20722
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20723
as_cr_digits='0123456789'
20724
as_cr_alnum=$as_cr_Letters$as_cr_digits
20726
# The user is always right.
20727
if test "${PATH_SEPARATOR+set}" != set; then
20728
echo "#! /bin/sh" >conf$$.sh
20729
echo "exit 0" >>conf$$.sh
20731
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20739
# Support unset when possible.
20740
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20748
# We need space, tab and new line, in precisely that order. Quoting is
20749
# there to prevent editors from complaining about space-tab.
20750
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
20751
# splitting by setting IFS to empty value.)
20756
# Find who we are. Look in the path if we contain no directory separator.
20758
*[\\/]* ) as_myself=$0 ;;
20759
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20760
for as_dir in $PATH
20763
test -z "$as_dir" && as_dir=.
20764
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20770
# We did not find ourselves, most probably we were run as `sh COMMAND'
20771
# in which case we are not to be found in the path.
20772
if test "x$as_myself" = x; then
20775
if test ! -f "$as_myself"; then
20776
echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20777
{ (exit 1); exit 1; }
20780
# Work around bugs in pre-3.0 UWIN ksh.
20781
for as_var in ENV MAIL MAILPATH
20782
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20790
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20791
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20792
LC_TELEPHONE LC_TIME
20794
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20795
eval $as_var=C; export $as_var
20797
($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20801
# Required to use basename.
20802
if expr a : '\(a\)' >/dev/null 2>&1 &&
20803
test "X`expr 00001 : '.*\(...\)'`" = X001; then
20809
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20810
as_basename=basename
20816
# Name of the executable.
20817
as_me=`$as_basename -- "$0" ||
20818
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20819
X"$0" : 'X\(//\)$' \| \
20820
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20822
sed '/^.*\/\([^/][^/]*\)\/*$/{
20841
as_lineno_1=$LINENO
20842
as_lineno_2=$LINENO
20843
test "x$as_lineno_1" != "x$as_lineno_2" &&
20844
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20846
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20847
# uniformly replaced by the line number. The first 'sed' inserts a
20848
# line-number line after each line using $LINENO; the second 'sed'
20849
# does the real work. The second script uses 'N' to pair each
20850
# line-number line with the line containing $LINENO, and appends
20851
# trailing '-' during substitution so that $LINENO is not a special
20852
# case at line end.
20853
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20854
# scripts with optimization help from Paolo Bonzini. Blame Lee
20855
# E. McMahon (1931-1989) for sed's syntax. :-)
20867
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20870
' >$as_me.lineno &&
20871
chmod +x "$as_me.lineno" ||
20872
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20873
{ (exit 1); exit 1; }; }
20875
# Don't try to exec as it changes $[0], causing all sort of problems
20876
# (the dirname of $[0] is not the place where we might find the
20877
# original and so on. Autoconf is especially sensitive to this).
20878
. "./$as_me.lineno"
20879
# Exit status is that of the last command.
20884
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20890
ECHO_C= ECHO_N= ECHO_T=
20891
case `echo -n x` in
20893
case `echo 'x\c'` in
20894
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
20901
if expr a : '\(a\)' >/dev/null 2>&1 &&
20902
test "X`expr 00001 : '.*\(...\)'`" = X001; then
20908
rm -f conf$$ conf$$.exe conf$$.file
20909
if test -d conf$$.dir; then
20910
rm -f conf$$.dir/conf$$.file
20916
if ln -s conf$$.file conf$$ 2>/dev/null; then
20918
# ... but there are two gotchas:
20919
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20920
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20921
# In both cases, we have to default to `cp -p'.
20922
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20924
elif ln conf$$.file conf$$ 2>/dev/null; then
20929
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20930
rmdir conf$$.dir 2>/dev/null
20932
if mkdir -p . 2>/dev/null; then
20935
test -d ./-p && rmdir ./-p
20939
if test -x / >/dev/null 2>&1; then
20940
as_test_x='test -x'
20942
if ls -dL / >/dev/null 2>&1; then
20949
if test -d "$1"; then
20955
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
20956
???[sx]*):;;*)false;;esac;fi
20960
as_executable_p=$as_test_x
20962
# Sed expression to map a string onto a valid CPP name.
20963
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20965
# Sed expression to map a string onto a valid variable name.
20966
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20971
# Save the log message, to keep $[0] and so on meaningful, and to
20972
# report actual input values of CONFIG_FILES etc. instead of their
20973
# values after options handling.
20975
This file was extended by PACKAGE $as_me VERSION, which was
20976
generated by GNU Autoconf 2.61. Invocation command line was
20978
CONFIG_FILES = $CONFIG_FILES
20979
CONFIG_HEADERS = $CONFIG_HEADERS
20980
CONFIG_LINKS = $CONFIG_LINKS
20981
CONFIG_COMMANDS = $CONFIG_COMMANDS
20984
on `(hostname || uname -n) 2>/dev/null | sed 1q`
20989
cat >>$CONFIG_STATUS <<_ACEOF
20990
# Files that config.status was made for.
20991
config_files="$ac_config_files"
20992
config_headers="$ac_config_headers"
20993
config_commands="$ac_config_commands"
20997
cat >>$CONFIG_STATUS <<\_ACEOF
20999
\`$as_me' instantiates files from templates according to the
21000
current configuration.
21002
Usage: $0 [OPTIONS] [FILE]...
21004
-h, --help print this help, then exit
21005
-V, --version print version number and configuration settings, then exit
21006
-q, --quiet do not print progress messages
21007
-d, --debug don't remove temporary files
21008
--recheck update $as_me by reconfiguring in the same conditions
21009
--file=FILE[:TEMPLATE]
21010
instantiate the configuration file FILE
21011
--header=FILE[:TEMPLATE]
21012
instantiate the configuration header FILE
21014
Configuration files:
21017
Configuration headers:
21020
Configuration commands:
21023
Report bugs to <bug-autoconf@gnu.org>."
21026
cat >>$CONFIG_STATUS <<_ACEOF
21028
PACKAGE config.status VERSION
21029
configured by $0, generated by GNU Autoconf 2.61,
21030
with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21032
Copyright (C) 2006 Free Software Foundation, Inc.
21033
This config.status script is free software; the Free Software Foundation
21034
gives unlimited permission to copy, distribute and modify it."
21041
cat >>$CONFIG_STATUS <<\_ACEOF
21042
# If no file are specified by the user, then we need to provide default
21043
# value. By we need to know if files were specified by the user.
21049
ac_option=`expr "X$1" : 'X\([^=]*\)='`
21050
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21061
# Handling of the options.
21062
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21064
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21065
echo "$ac_cs_version"; exit ;;
21066
--debug | --debu | --deb | --de | --d | -d )
21068
--file | --fil | --fi | --f )
21070
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21071
ac_need_defaults=false;;
21072
--header | --heade | --head | --hea )
21074
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21075
ac_need_defaults=false;;
21077
# Conflict between --help and --header
21078
{ echo "$as_me: error: ambiguous option: $1
21079
Try \`$0 --help' for more information." >&2
21080
{ (exit 1); exit 1; }; };;
21081
--help | --hel | -h )
21082
echo "$ac_cs_usage"; exit ;;
21083
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
21084
| -silent | --silent | --silen | --sile | --sil | --si | --s)
21087
# This is an error.
21088
-*) { echo "$as_me: error: unrecognized option: $1
21089
Try \`$0 --help' for more information." >&2
21090
{ (exit 1); exit 1; }; } ;;
21092
*) ac_config_targets="$ac_config_targets $1"
21093
ac_need_defaults=false ;;
21099
ac_configure_extra_args=
21101
if $ac_cs_silent; then
21103
ac_configure_extra_args="$ac_configure_extra_args --silent"
21107
cat >>$CONFIG_STATUS <<_ACEOF
21108
if \$ac_cs_recheck; then
21109
echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21110
CONFIG_SHELL=$SHELL
21111
export CONFIG_SHELL
21112
exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21116
cat >>$CONFIG_STATUS <<\_ACEOF
21120
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21121
## Running $as_me. ##
21127
cat >>$CONFIG_STATUS <<_ACEOF
21131
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21135
cat >>$CONFIG_STATUS <<\_ACEOF
21137
# Handling of arguments.
21138
for ac_config_target in $ac_config_targets
21140
case $ac_config_target in
21141
"config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21142
"depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21143
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21144
"libobgtk/Makefile") CONFIG_FILES="$CONFIG_FILES libobgtk/Makefile" ;;
21146
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21147
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21148
{ (exit 1); exit 1; }; };;
21153
# If the user did not use the arguments to specify the items to instantiate,
21154
# then the envvar interface is used. Set only those that are not.
21155
# We use the long form for the default assignment because of an extremely
21156
# bizarre bug on SunOS 4.1.3.
21157
if $ac_need_defaults; then
21158
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21159
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21160
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21163
# Have a temporary directory for convenience. Make it in the build tree
21164
# simply because there is no reason against having it here, and in addition,
21165
# creating and moving files from /tmp can sometimes cause problems.
21166
# Hook for its removal unless debugging.
21167
# Note that there is a small window in which the directory will not be cleaned:
21168
# after its creation but before its name has been assigned to `$tmp'.
21172
trap 'exit_status=$?
21173
{ test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21175
trap '{ (exit 1); exit 1; }' 1 2 13 15
21177
# Create a (secure) tmp directory for tmp files.
21180
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21181
test -n "$tmp" && test -d "$tmp"
21184
tmp=./conf$$-$RANDOM
21185
(umask 077 && mkdir "$tmp")
21188
echo "$me: cannot create a temporary directory in ." >&2
21189
{ (exit 1); exit 1; }
21193
# Set up the sed scripts for CONFIG_FILES section.
21196
# No need to generate the scripts if there are no CONFIG_FILES.
21197
# This happens for instance when ./config.status config.h
21198
if test -n "$CONFIG_FILES"; then
21205
for ac_last_try in false false false false false :; do
21206
cat >conf$$subs.sed <<_ACEOF
21207
SHELL!$SHELL$ac_delim
21208
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21209
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21210
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21211
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21212
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21213
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21214
exec_prefix!$exec_prefix$ac_delim
21215
prefix!$prefix$ac_delim
21216
program_transform_name!$program_transform_name$ac_delim
21217
bindir!$bindir$ac_delim
21218
sbindir!$sbindir$ac_delim
21219
libexecdir!$libexecdir$ac_delim
21220
datarootdir!$datarootdir$ac_delim
21221
datadir!$datadir$ac_delim
21222
sysconfdir!$sysconfdir$ac_delim
21223
sharedstatedir!$sharedstatedir$ac_delim
21224
localstatedir!$localstatedir$ac_delim
21225
includedir!$includedir$ac_delim
21226
oldincludedir!$oldincludedir$ac_delim
21227
docdir!$docdir$ac_delim
21228
infodir!$infodir$ac_delim
21229
htmldir!$htmldir$ac_delim
21230
dvidir!$dvidir$ac_delim
21231
pdfdir!$pdfdir$ac_delim
21232
psdir!$psdir$ac_delim
21233
libdir!$libdir$ac_delim
21234
localedir!$localedir$ac_delim
21235
mandir!$mandir$ac_delim
21236
DEFS!$DEFS$ac_delim
21237
ECHO_C!$ECHO_C$ac_delim
21238
ECHO_N!$ECHO_N$ac_delim
21239
ECHO_T!$ECHO_T$ac_delim
21240
LIBS!$LIBS$ac_delim
21241
build_alias!$build_alias$ac_delim
21242
host_alias!$host_alias$ac_delim
21243
target_alias!$target_alias$ac_delim
21244
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21245
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21246
INSTALL_DATA!$INSTALL_DATA$ac_delim
21247
CYGPATH_W!$CYGPATH_W$ac_delim
21248
PACKAGE!$PACKAGE$ac_delim
21249
VERSION!$VERSION$ac_delim
21250
ACLOCAL!$ACLOCAL$ac_delim
21251
AUTOCONF!$AUTOCONF$ac_delim
21252
AUTOMAKE!$AUTOMAKE$ac_delim
21253
AUTOHEADER!$AUTOHEADER$ac_delim
21254
MAKEINFO!$MAKEINFO$ac_delim
21255
install_sh!$install_sh$ac_delim
21256
STRIP!$STRIP$ac_delim
21257
INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
21258
mkdir_p!$mkdir_p$ac_delim
21260
SET_MAKE!$SET_MAKE$ac_delim
21261
am__leading_dot!$am__leading_dot$ac_delim
21262
AMTAR!$AMTAR$ac_delim
21263
am__tar!$am__tar$ac_delim
21264
am__untar!$am__untar$ac_delim
21265
DEPDIR!$DEPDIR$ac_delim
21266
am__include!$am__include$ac_delim
21267
am__quote!$am__quote$ac_delim
21268
AMDEP_TRUE!$AMDEP_TRUE$ac_delim
21269
AMDEP_FALSE!$AMDEP_FALSE$ac_delim
21270
AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
21271
OBJCDEPMODE!$OBJCDEPMODE$ac_delim
21272
am__fastdepOBJC_TRUE!$am__fastdepOBJC_TRUE$ac_delim
21273
am__fastdepOBJC_FALSE!$am__fastdepOBJC_FALSE$ac_delim
21274
OBJC!$OBJC$ac_delim
21275
OBJCFLAGS!$OBJCFLAGS$ac_delim
21276
LDFLAGS!$LDFLAGS$ac_delim
21277
CPPFLAGS!$CPPFLAGS$ac_delim
21278
ac_ct_OBJC!$ac_ct_OBJC$ac_delim
21279
EXEEXT!$EXEEXT$ac_delim
21280
OBJEXT!$OBJEXT$ac_delim
21281
build!$build$ac_delim
21282
build_cpu!$build_cpu$ac_delim
21283
build_vendor!$build_vendor$ac_delim
21284
build_os!$build_os$ac_delim
21285
host!$host$ac_delim
21286
host_cpu!$host_cpu$ac_delim
21287
host_vendor!$host_vendor$ac_delim
21288
host_os!$host_os$ac_delim
21290
CFLAGS!$CFLAGS$ac_delim
21291
ac_ct_CC!$ac_ct_CC$ac_delim
21292
CCDEPMODE!$CCDEPMODE$ac_delim
21293
am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
21294
am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
21296
GREP!$GREP$ac_delim
21297
EGREP!$EGREP$ac_delim
21298
LN_S!$LN_S$ac_delim
21299
ECHO!$ECHO$ac_delim
21301
RANLIB!$RANLIB$ac_delim
21302
DSYMUTIL!$DSYMUTIL$ac_delim
21303
NMEDIT!$NMEDIT$ac_delim
21306
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21308
elif $ac_last_try; then
21309
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21310
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21311
{ (exit 1); exit 1; }; }
21313
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21317
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21318
if test -n "$ac_eof"; then
21319
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21320
ac_eof=`expr $ac_eof + 1`
21323
cat >>$CONFIG_STATUS <<_ACEOF
21324
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21325
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21328
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21329
s/^/s,@/; s/!/@,|#_!!_#|/
21332
s/'"$ac_delim"'$/,g/; t
21334
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21335
' >>$CONFIG_STATUS <conf$$subs.sed
21336
rm -f conf$$subs.sed
21337
cat >>$CONFIG_STATUS <<_ACEOF
21343
for ac_last_try in false false false false false :; do
21344
cat >conf$$subs.sed <<_ACEOF
21347
CXXFLAGS!$CXXFLAGS$ac_delim
21348
ac_ct_CXX!$ac_ct_CXX$ac_delim
21349
CXXDEPMODE!$CXXDEPMODE$ac_delim
21350
am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
21351
am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
21352
CXXCPP!$CXXCPP$ac_delim
21354
FFLAGS!$FFLAGS$ac_delim
21355
ac_ct_F77!$ac_ct_F77$ac_delim
21356
LIBTOOL!$LIBTOOL$ac_delim
21357
PKG_CONFIG!$PKG_CONFIG$ac_delim
21358
DEPS_CFLAGS!$DEPS_CFLAGS$ac_delim
21359
DEPS_LIBS!$DEPS_LIBS$ac_delim
21360
LIBOBJS!$LIBOBJS$ac_delim
21361
LTLIBOBJS!$LTLIBOBJS$ac_delim
21364
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 17; then
21366
elif $ac_last_try; then
21367
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21368
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21369
{ (exit 1); exit 1; }; }
21371
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21375
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21376
if test -n "$ac_eof"; then
21377
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21378
ac_eof=`expr $ac_eof + 1`
21381
cat >>$CONFIG_STATUS <<_ACEOF
21382
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21383
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21386
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21387
s/^/s,@/; s/!/@,|#_!!_#|/
21390
s/'"$ac_delim"'$/,g/; t
21392
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21393
' >>$CONFIG_STATUS <conf$$subs.sed
21394
rm -f conf$$subs.sed
21395
cat >>$CONFIG_STATUS <<_ACEOF
21402
# VPATH may cause trouble with some makes, so we remove $(srcdir),
21403
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21404
# trailing colons and then remove the whole line if VPATH becomes empty
21405
# (actually we leave an empty line to preserve line numbers).
21406
if test "x$srcdir" = x.; then
21407
ac_vpsub='/^[ ]*VPATH[ ]*=/{
21408
s/:*\$(srcdir):*/:/
21409
s/:*\${srcdir}:*/:/
21411
s/^\([^=]*=[ ]*\):*/\1/
21417
cat >>$CONFIG_STATUS <<\_ACEOF
21418
fi # test -n "$CONFIG_FILES"
21421
for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
21424
:[FHLC]) ac_mode=$ac_tag; continue;;
21426
case $ac_mode$ac_tag in
21428
:L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21429
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21430
{ (exit 1); exit 1; }; };;
21431
:[FH]-) ac_tag=-:-;;
21432
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21449
-) ac_f="$tmp/stdin";;
21450
*) # Look for the file first in the build tree, then in the source tree
21451
# (if the path is not absolute). The absolute path cannot be DOS-style,
21452
# because $ac_f cannot contain `:'.
21456
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21458
{ { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21459
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21460
{ (exit 1); exit 1; }; };;
21462
ac_file_inputs="$ac_file_inputs $ac_f"
21465
# Let's still pretend it is `configure' which instantiates (i.e., don't
21466
# use $as_me), people would be surprised to read:
21467
# /* config.h. Generated by config.status. */
21468
configure_input="Generated from "`IFS=:
21469
echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21470
if test x"$ac_file" != x-; then
21471
configure_input="$ac_file. $configure_input"
21472
{ echo "$as_me:$LINENO: creating $ac_file" >&5
21473
echo "$as_me: creating $ac_file" >&6;}
21477
*:-:* | *:-) cat >"$tmp/stdin";;
21482
ac_dir=`$as_dirname -- "$ac_file" ||
21483
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21484
X"$ac_file" : 'X\(//\)[^/]' \| \
21485
X"$ac_file" : 'X\(//\)$' \| \
21486
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21488
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21492
/^X\(\/\/\)[^/].*/{
21507
-*) as_dir=./$as_dir;;
21509
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21513
*\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21514
*) as_qdir=$as_dir;;
21516
as_dirs="'$as_qdir' $as_dirs"
21517
as_dir=`$as_dirname -- "$as_dir" ||
21518
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21519
X"$as_dir" : 'X\(//\)[^/]' \| \
21520
X"$as_dir" : 'X\(//\)$' \| \
21521
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21523
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21527
/^X\(\/\/\)[^/].*/{
21540
test -d "$as_dir" && break
21542
test -z "$as_dirs" || eval "mkdir $as_dirs"
21543
} || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21544
echo "$as_me: error: cannot create directory $as_dir" >&2;}
21545
{ (exit 1); exit 1; }; }; }
21549
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21551
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21552
# A ".." for each directory in $ac_dir_suffix.
21553
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21554
case $ac_top_builddir_sub in
21555
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21556
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21559
ac_abs_top_builddir=$ac_pwd
21560
ac_abs_builddir=$ac_pwd$ac_dir_suffix
21561
# for backward compatibility:
21562
ac_top_builddir=$ac_top_build_prefix
21565
.) # We are building in place.
21567
ac_top_srcdir=$ac_top_builddir_sub
21568
ac_abs_top_srcdir=$ac_pwd ;;
21569
[\\/]* | ?:[\\/]* ) # Absolute name.
21570
ac_srcdir=$srcdir$ac_dir_suffix;
21571
ac_top_srcdir=$srcdir
21572
ac_abs_top_srcdir=$srcdir ;;
21573
*) # Relative name.
21574
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21575
ac_top_srcdir=$ac_top_build_prefix$srcdir
21576
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21578
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21588
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21589
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21593
cat >>$CONFIG_STATUS <<\_ACEOF
21594
# If the template does not know about datarootdir, expand it.
21595
# FIXME: This hack should be removed a few years after 2.60.
21596
ac_datarootdir_hack=; ac_datarootdir_seen=
21598
case `sed -n '/datarootdir/ {
21607
' $ac_file_inputs` in
21608
*datarootdir*) ac_datarootdir_seen=yes;;
21609
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21610
{ echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21611
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21613
cat >>$CONFIG_STATUS <<_ACEOF
21614
ac_datarootdir_hack='
21615
s&@datadir@&$datadir&g
21616
s&@docdir@&$docdir&g
21617
s&@infodir@&$infodir&g
21618
s&@localedir@&$localedir&g
21619
s&@mandir@&$mandir&g
21620
s&\\\${datarootdir}&$datarootdir&g' ;;
21624
# Neutralize VPATH when `$srcdir' = `.'.
21625
# Shell code in configure.ac might set extrasub.
21626
# FIXME: do we really want to maintain this feature?
21627
cat >>$CONFIG_STATUS <<_ACEOF
21631
cat >>$CONFIG_STATUS <<\_ACEOF
21633
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21634
s&@configure_input@&$configure_input&;t t
21635
s&@top_builddir@&$ac_top_builddir_sub&;t t
21636
s&@srcdir@&$ac_srcdir&;t t
21637
s&@abs_srcdir@&$ac_abs_srcdir&;t t
21638
s&@top_srcdir@&$ac_top_srcdir&;t t
21639
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21640
s&@builddir@&$ac_builddir&;t t
21641
s&@abs_builddir@&$ac_abs_builddir&;t t
21642
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21643
s&@INSTALL@&$ac_INSTALL&;t t
21644
$ac_datarootdir_hack
21645
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21647
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21648
{ ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21649
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21650
{ echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21651
which seems to be undefined. Please make sure it is defined." >&5
21652
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21653
which seems to be undefined. Please make sure it is defined." >&2;}
21657
-) cat "$tmp/out"; rm -f "$tmp/out";;
21658
*) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21667
# Transform confdefs.h into a sed script `conftest.defines', that
21668
# substitutes the proper values into config.h.in to produce config.h.
21669
rm -f conftest.defines conftest.tail
21670
# First, append a space to every undef/define line, to ease matching.
21671
echo 's/$/ /' >conftest.defines
21672
# Then, protect against being on the right side of a sed subst, or in
21673
# an unquoted here document, in config.status. If some macros were
21674
# called several times there might be several #defines for the same
21675
# symbol, which is useless. But do not sort them, since the last
21676
# AC_DEFINE must be honored.
21677
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21678
# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21679
# NAME is the cpp macro being defined, VALUE is the value it is being given.
21680
# PARAMS is the parameter list in the macro definition--in most cases, it's
21681
# just an empty string.
21682
ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
21683
ac_dB='\\)[ (].*,\\1define\\2'
21691
s/^[ ]*#[ ]*define[ ][ ]*//
21696
s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21697
s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21698
' >>conftest.defines
21700
# Remove the space that was appended to ease matching.
21701
# Then replace #undef with comments. This is necessary, for
21702
# example, in the case of _POSIX_SOURCE, which is predefined and required
21703
# on some systems where configure will not decide to define it.
21704
# (The regexp can be short, since the line contains either #define or #undef.)
21706
s,^[ #]*u.*,/* & */,' >>conftest.defines
21708
# Break up conftest.defines:
21709
ac_max_sed_lines=50
21711
# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21712
# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21713
# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21715
ac_in='$ac_file_inputs'
21716
ac_out='"$tmp/out1"'
21717
ac_nxt='"$tmp/out2"'
21721
# Write a here document:
21722
cat >>$CONFIG_STATUS <<_ACEOF
21723
# First, check the format of the line:
21724
cat >"\$tmp/defines.sed" <<\\CEOF
21725
/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21726
/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21730
sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21732
sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21733
ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21734
sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21735
grep . conftest.tail >/dev/null || break
21736
rm -f conftest.defines
21737
mv conftest.tail conftest.defines
21739
rm -f conftest.defines conftest.tail
21741
echo "ac_result=$ac_in" >>$CONFIG_STATUS
21742
cat >>$CONFIG_STATUS <<\_ACEOF
21743
if test x"$ac_file" != x-; then
21744
echo "/* $configure_input */" >"$tmp/config.h"
21745
cat "$ac_result" >>"$tmp/config.h"
21746
if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21747
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21748
echo "$as_me: $ac_file is unchanged" >&6;}
21751
mv "$tmp/config.h" $ac_file
21754
echo "/* $configure_input */"
21758
# Compute $ac_file's index in $config_headers.
21760
for _am_header in $config_headers :; do
21761
case $_am_header in
21762
$ac_file | $ac_file:* )
21765
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
21768
echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
21769
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21770
X$ac_file : 'X\(//\)[^/]' \| \
21771
X$ac_file : 'X\(//\)$' \| \
21772
X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
21774
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21778
/^X\(\/\/\)[^/].*/{
21790
s/.*/./; q'`/stamp-h$_am_stamp_count
21793
:C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21794
echo "$as_me: executing $ac_file commands" >&6;}
21799
case $ac_file$ac_mode in
21800
"depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21801
# Strip MF so we end up with the name of the file.
21802
mf=`echo "$mf" | sed -e 's/:.*$//'`
21803
# Check whether this is an Automake generated Makefile or not.
21804
# We used to match only the files named `Makefile.in', but
21805
# some people rename them; so instead we look at the file content.
21806
# Grep'ing the first line is not enough: some people post-process
21807
# each Makefile.in and add a new line on top of each file to say so.
21808
# So let's grep whole file.
21809
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21810
dirpart=`$as_dirname -- "$mf" ||
21811
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21812
X"$mf" : 'X\(//\)[^/]' \| \
21813
X"$mf" : 'X\(//\)$' \| \
21814
X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21816
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21820
/^X\(\/\/\)[^/].*/{
21836
# Extract the definition of DEPDIR, am__include, and am__quote
21837
# from the Makefile without running `make'.
21838
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21839
test -z "$DEPDIR" && continue
21840
am__include=`sed -n 's/^am__include = //p' < "$mf"`
21841
test -z "am__include" && continue
21842
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21843
# When using ansi2knr, U may be empty or an underscore; expand it
21844
U=`sed -n 's/^U = //p' < "$mf"`
21845
# Find all dependency output files, they are included files with
21846
# $(DEPDIR) in their names. We invoke sed twice because it is the
21847
# simplest approach to changing $(DEPDIR) to its actual value in the
21849
for file in `sed -n "
21850
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21851
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21852
# Make sure the directory exists.
21853
test -f "$dirpart/$file" && continue
21854
fdir=`$as_dirname -- "$file" ||
21855
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21856
X"$file" : 'X\(//\)[^/]' \| \
21857
X"$file" : 'X\(//\)$' \| \
21858
X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21860
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21864
/^X\(\/\/\)[^/].*/{
21877
{ as_dir=$dirpart/$fdir
21879
-*) as_dir=./$as_dir;;
21881
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21885
*\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21886
*) as_qdir=$as_dir;;
21888
as_dirs="'$as_qdir' $as_dirs"
21889
as_dir=`$as_dirname -- "$as_dir" ||
21890
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21891
X"$as_dir" : 'X\(//\)[^/]' \| \
21892
X"$as_dir" : 'X\(//\)$' \| \
21893
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21895
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21899
/^X\(\/\/\)[^/].*/{
21912
test -d "$as_dir" && break
21914
test -z "$as_dirs" || eval "mkdir $as_dirs"
21915
} || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21916
echo "$as_me: error: cannot create directory $as_dir" >&2;}
21917
{ (exit 1); exit 1; }; }; }
21918
# echo "creating $dirpart/$file"
21919
echo '# dummy' > "$dirpart/$file"
21928
{ (exit 0); exit 0; }
21930
chmod +x $CONFIG_STATUS
21931
ac_clean_files=$ac_clean_files_save
21934
# configure is writing to config.log, and then calls config.status.
21935
# config.status does its own redirection, appending to config.log.
21936
# Unfortunately, on DOS this fails, as config.log is still kept open
21937
# by configure, so config.status won't be able to write to it; its
21938
# output is simply discarded. So we exec the FD to /dev/null,
21939
# effectively closing config.log, so it can be properly (re)opened and
21940
# appended to by config.status. When coming back to configure, we
21941
# need to make the FD available again.
21942
if test "$no_create" != yes; then
21944
ac_config_status_args=
21945
test "$silent" = yes &&
21946
ac_config_status_args="$ac_config_status_args --quiet"
21948
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21950
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
21951
# would make configure fail if this is the last instruction.
21952
$ac_cs_success || { (exit 1); exit 1; }