2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.63 for libffcall/callback 0x010B.
5
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6
# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7
# This configure script is free software; the Free Software Foundation
8
# gives unlimited permission to copy, distribute and modify it.
9
## --------------------- ##
10
## M4sh Initialization. ##
11
## --------------------- ##
13
# Be more Bourne compatible
14
DUALCASE=1; export DUALCASE # for MKS sh
15
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19
# is contrary to our usage. Disable this feature.
20
alias -g '${1+"$@"}'='"$@"'
23
case `(set -o) 2>/dev/null` in
24
*posix*) set -o posix ;;
33
# Avoid depending upon Character Ranges.
34
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37
as_cr_digits='0123456789'
38
as_cr_alnum=$as_cr_Letters$as_cr_digits
43
# Printing a long string crashes Solaris 7 /usr/bin/printf.
44
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47
if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53
as_echo_n='/usr/ucb/echo -n'
55
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60
expr "X$arg" : "X\\(.*\\)$as_nl";
61
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66
as_echo_n='sh -c $as_echo_n_body as_echo'
69
as_echo='sh -c $as_echo_body as_echo'
72
# The user is always right.
73
if test "${PATH_SEPARATOR+set}" != set; then
75
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81
# Support unset when possible.
82
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
90
# We need space, tab and new line, in precisely that order. Quoting is
91
# there to prevent editors from complaining about space-tab.
92
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
93
# splitting by setting IFS to empty value.)
96
# Find who we are. Look in the path if we contain no directory separator.
98
*[\\/]* ) as_myself=$0 ;;
99
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
103
test -z "$as_dir" && as_dir=.
104
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
110
# We did not find ourselves, most probably we were run as `sh COMMAND'
111
# in which case we are not to be found in the path.
112
if test "x$as_myself" = x; then
115
if test ! -f "$as_myself"; then
116
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117
{ (exit 1); exit 1; }
120
# Work around bugs in pre-3.0 UWIN ksh.
121
for as_var in ENV MAIL MAILPATH
122
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
134
# Required to use basename.
135
if expr a : '\(a\)' >/dev/null 2>&1 &&
136
test "X`expr 00001 : '.*\(...\)'`" = X001; then
142
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
149
# Name of the executable.
150
as_me=`$as_basename -- "$0" ||
151
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152
X"$0" : 'X\(//\)$' \| \
153
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
155
sed '/^.*\/\([^/][^/]*\)\/*$/{
173
if test "x$CONFIG_SHELL" = x; then
174
if (eval ":") 2>/dev/null; then
180
if test $as_have_required = yes && (eval ":
190
as_func_ret_success () {
193
as_func_ret_failure () {
198
if as_func_success; then
202
echo as_func_success failed.
205
if as_func_failure; then
207
echo as_func_failure succeeded.
210
if as_func_ret_success; then
214
echo as_func_ret_success failed.
217
if as_func_ret_failure; then
219
echo as_func_ret_failure succeeded.
222
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
226
echo positional parameters were not saved.
229
test \$exitcode = 0) || { (exit 1); exit 1; }
234
test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235
test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236
") 2> /dev/null; then
240
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244
test -z "$as_dir" && as_dir=.
247
for as_base in sh bash ksh sh5; do
248
as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
255
for as_shell in $as_candidate_shells $SHELL; do
256
# Try only shells that exist, to save several forks.
257
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258
{ ("$as_shell") 2> /dev/null <<\_ASEOF
259
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263
# is contrary to our usage. Disable this feature.
264
alias -g '${1+"$@"}'='"$@"'
267
case `(set -o) 2>/dev/null` in
268
*posix*) set -o posix ;;
277
CONFIG_SHELL=$as_shell
279
if { "$as_shell" 2> /dev/null <<\_ASEOF
280
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284
# is contrary to our usage. Disable this feature.
285
alias -g '${1+"$@"}'='"$@"'
288
case `(set -o) 2>/dev/null` in
289
*posix*) set -o posix ;;
305
as_func_ret_success () {
308
as_func_ret_failure () {
313
if as_func_success; then
317
echo as_func_success failed.
320
if as_func_failure; then
322
echo as_func_failure succeeded.
325
if as_func_ret_success; then
329
echo as_func_ret_success failed.
332
if as_func_ret_failure; then
334
echo as_func_ret_failure succeeded.
337
if ( set x; as_func_ret_success y && test x = "$1" ); then
341
echo positional parameters were not saved.
344
test $exitcode = 0) || { (exit 1); exit 1; }
349
test "x$as_lineno_1" != "x$as_lineno_2" &&
350
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
361
if test "x$CONFIG_SHELL" != x; then
362
for as_var in BASH_ENV ENV
363
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366
exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370
if test $as_have_required = no; then
371
echo This script requires a shell more modern than all the
372
echo shells that I found on your system. Please install a
373
echo modern shell, or manually run the script under such a
374
echo shell if you do have one.
375
{ (exit 1); exit 1; }
385
(eval "as_func_return () {
394
as_func_ret_success () {
397
as_func_ret_failure () {
402
if as_func_success; then
406
echo as_func_success failed.
409
if as_func_failure; then
411
echo as_func_failure succeeded.
414
if as_func_ret_success; then
418
echo as_func_ret_success failed.
421
if as_func_ret_failure; then
423
echo as_func_ret_failure succeeded.
426
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
430
echo positional parameters were not saved.
433
test \$exitcode = 0") || {
434
echo No shell found that supports shell functions.
435
echo Please tell bug-autoconf@gnu.org about your system,
436
echo including any error possibly output before this message.
437
echo This can help us improve future autoconf versions.
438
echo Configuration will now proceed without shell functions.
445
test "x$as_lineno_1" != "x$as_lineno_2" &&
446
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
448
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449
# uniformly replaced by the line number. The first 'sed' inserts a
450
# line-number line after each line using $LINENO; the second 'sed'
451
# does the real work. The second script uses 'N' to pair each
452
# line-number line with the line containing $LINENO, and appends
453
# trailing '-' during substitution so that $LINENO is not a special
455
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456
# scripts with optimization help from Paolo Bonzini. Blame Lee
457
# E. McMahon (1931-1989) for sed's syntax. :-)
469
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
473
chmod +x "$as_me.lineno" ||
474
{ $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475
{ (exit 1); exit 1; }; }
477
# Don't try to exec as it changes $[0], causing all sort of problems
478
# (the dirname of $[0] is not the place where we might find the
479
# original and so on. Autoconf is especially sensitive to this).
481
# Exit status is that of the last command.
486
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
492
ECHO_C= ECHO_N= ECHO_T=
496
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
502
if expr a : '\(a\)' >/dev/null 2>&1 &&
503
test "X`expr 00001 : '.*\(...\)'`" = X001; then
509
rm -f conf$$ conf$$.exe conf$$.file
510
if test -d conf$$.dir; then
511
rm -f conf$$.dir/conf$$.file
514
mkdir conf$$.dir 2>/dev/null
516
if (echo >conf$$.file) 2>/dev/null; then
517
if ln -s conf$$.file conf$$ 2>/dev/null; then
519
# ... but there are two gotchas:
520
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522
# In both cases, we have to default to `cp -p'.
523
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
525
elif ln conf$$.file conf$$ 2>/dev/null; then
533
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534
rmdir conf$$.dir 2>/dev/null
536
if mkdir -p . 2>/dev/null; then
539
test -d ./-p && rmdir ./-p
543
if test -x / >/dev/null 2>&1; then
546
if ls -dL / >/dev/null 2>&1; then
553
if test -d "$1"; then
559
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560
???[sx]*):;;*)false;;esac;fi
564
as_executable_p=$as_test_x
566
# Sed expression to map a string onto a valid CPP name.
567
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569
# Sed expression to map a string onto a valid variable name.
570
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
575
# Check that we are running under the correct shell.
576
SHELL=${CONFIG_SHELL-/bin/sh}
580
# Remove one level of quotation (which was required for Make).
581
ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
586
if test "X$1" = X--no-reexec; then
587
# Discard the --no-reexec flag, and continue.
589
elif test "X$1" = X--fallback-echo; then
590
# Avoid inline document here, it may be left over
592
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
593
# Yippee, $echo works!
596
# Restart under the correct shell.
597
exec $SHELL "$0" --no-reexec ${1+"$@"}
600
if test "X$1" = X--fallback-echo; then
601
# used as fallback echo
609
# The HP-UX ksh and POSIX shell print the target directory to stdout
611
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
613
if test -z "$ECHO"; then
614
if test "X${echo_test_string+set}" != Xset; then
615
# find a string as large as possible, as long as the shell can cope with it
616
for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
617
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
618
if (echo_test_string=`eval $cmd`) 2>/dev/null &&
619
echo_test_string=`eval $cmd` &&
620
(test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
627
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
628
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
629
test "X$echo_testing_string" = "X$echo_test_string"; then
632
# The Solaris, AIX, and Digital Unix default echo programs unquote
633
# backslashes. This makes it impossible to quote backslashes using
634
# echo "$something" | sed 's/\\/\\\\/g'
636
# So, first we look for a working echo in the user's PATH.
638
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
639
for dir in $PATH /usr/ucb; do
641
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
642
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
643
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
644
test "X$echo_testing_string" = "X$echo_test_string"; then
651
if test "X$echo" = Xecho; then
652
# We didn't find a better echo, so look for alternatives.
653
if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
654
echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
655
test "X$echo_testing_string" = "X$echo_test_string"; then
656
# This shell has a builtin print -r that does the trick.
658
elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
659
test "X$CONFIG_SHELL" != X/bin/ksh; then
660
# If we have ksh, try running configure again with it.
661
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
662
export ORIGINAL_CONFIG_SHELL
663
CONFIG_SHELL=/bin/ksh
665
exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
669
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
670
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
671
test "X$echo_testing_string" = "X$echo_test_string"; then
674
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
675
test "X$echo_testing_string" = 'X\t' &&
676
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
677
test "X$echo_testing_string" = "X$echo_test_string"; then
678
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
680
SHELL="$CONFIG_SHELL"
682
echo="$CONFIG_SHELL $0 --fallback-echo"
683
elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
684
test "X$echo_testing_string" = 'X\t' &&
685
echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
686
test "X$echo_testing_string" = "X$echo_test_string"; then
687
echo="$CONFIG_SHELL $0 --fallback-echo"
689
# maybe with a smaller string...
692
for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
693
if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
700
if test "$prev" != 'sed 50q "$0"'; then
701
echo_test_string=`eval $prev`
702
export echo_test_string
703
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
705
# Oops. We lost completely, so just stick with echo.
714
# Copy echo and quote the copy suitably for passing to libtool from
715
# the Makefile, instead of quoting the original, which is used later.
717
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
718
ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
724
tagnames=${tagnames+${tagnames},}CXX
726
tagnames=${tagnames+${tagnames},}F77
728
exec 7<&0 </dev/null 6>&1
731
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
732
# so uname gets run too.
733
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
738
ac_default_prefix=/usr/local
740
ac_config_libobj_dir=.
746
SHELL=${CONFIG_SHELL-/bin/sh}
748
# Identity of this package.
749
PACKAGE_NAME='libffcall/callback'
750
PACKAGE_TARNAME='libffcall-callback'
751
PACKAGE_VERSION='0x010B'
752
PACKAGE_STRING='libffcall/callback 0x010B'
755
ac_unique_file="callback.h.in"
756
# Factoring default headers for most tests.
757
ac_includes_default="\
759
#ifdef HAVE_SYS_TYPES_H
760
# include <sys/types.h>
762
#ifdef HAVE_SYS_STAT_H
763
# include <sys/stat.h>
769
# ifdef HAVE_STDLIB_H
774
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
779
#ifdef HAVE_STRINGS_H
780
# include <strings.h>
782
#ifdef HAVE_INTTYPES_H
783
# include <inttypes.h>
792
enable_option_checking=no
793
ac_subst_vars='LTLIBOBJS
865
program_transform_name
877
enable_option_checking
886
ac_precious_vars='build_alias
901
ac_subdirs_all='vacall_r trampoline_r'
903
# Initialize some variables set by options.
905
ac_init_version=false
906
ac_unrecognized_opts=
908
# The variables have the same names as the options, with
909
# dashes changed to underlines.
917
program_transform_name=s,x,x,
925
# Installation directory options.
926
# These are left unexpanded so users can "make install exec_prefix=/foo"
927
# and all the variables that are supposed to be based on exec_prefix
928
# by default will actually change.
929
# Use braces instead of parens because sh, perl, etc. also accept them.
930
# (The list follows the same order as the GNU Coding Standards.)
931
bindir='${exec_prefix}/bin'
932
sbindir='${exec_prefix}/sbin'
933
libexecdir='${exec_prefix}/libexec'
934
datarootdir='${prefix}/share'
935
datadir='${datarootdir}'
936
sysconfdir='${prefix}/etc'
937
sharedstatedir='${prefix}/com'
938
localstatedir='${prefix}/var'
939
includedir='${prefix}/include'
940
oldincludedir='/usr/include'
941
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
942
infodir='${datarootdir}/info'
947
libdir='${exec_prefix}/lib'
948
localedir='${datarootdir}/locale'
949
mandir='${datarootdir}/man'
955
# If the previous option needs an argument, assign it.
956
if test -n "$ac_prev"; then
957
eval $ac_prev=\$ac_option
963
*=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
967
# Accept the important Cygnus configure options, so we can diagnose typos.
969
case $ac_dashdash$ac_option in
973
-bindir | --bindir | --bindi | --bind | --bin | --bi)
975
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
978
-build | --build | --buil | --bui | --bu)
979
ac_prev=build_alias ;;
980
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
981
build_alias=$ac_optarg ;;
983
-cache-file | --cache-file | --cache-fil | --cache-fi \
984
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
985
ac_prev=cache_file ;;
986
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
987
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
988
cache_file=$ac_optarg ;;
991
cache_file=config.cache ;;
993
-datadir | --datadir | --datadi | --datad)
995
-datadir=* | --datadir=* | --datadi=* | --datad=*)
996
datadir=$ac_optarg ;;
998
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
999
| --dataroo | --dataro | --datar)
1000
ac_prev=datarootdir ;;
1001
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1002
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1003
datarootdir=$ac_optarg ;;
1005
-disable-* | --disable-*)
1006
ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1007
# Reject names that are not valid shell variable names.
1008
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1009
{ $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1010
{ (exit 1); exit 1; }; }
1011
ac_useropt_orig=$ac_useropt
1012
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1013
case $ac_user_opts in
1015
"enable_$ac_useropt"
1017
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1018
ac_unrecognized_sep=', ';;
1020
eval enable_$ac_useropt=no ;;
1022
-docdir | --docdir | --docdi | --doc | --do)
1024
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1025
docdir=$ac_optarg ;;
1027
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1029
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1030
dvidir=$ac_optarg ;;
1032
-enable-* | --enable-*)
1033
ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1034
# Reject names that are not valid shell variable names.
1035
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1036
{ $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1037
{ (exit 1); exit 1; }; }
1038
ac_useropt_orig=$ac_useropt
1039
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1040
case $ac_user_opts in
1042
"enable_$ac_useropt"
1044
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1045
ac_unrecognized_sep=', ';;
1047
eval enable_$ac_useropt=\$ac_optarg ;;
1049
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1050
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1051
| --exec | --exe | --ex)
1052
ac_prev=exec_prefix ;;
1053
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1054
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1055
| --exec=* | --exe=* | --ex=*)
1056
exec_prefix=$ac_optarg ;;
1058
-gas | --gas | --ga | --g)
1059
# Obsolete; use --with-gas.
1062
-help | --help | --hel | --he | -h)
1063
ac_init_help=long ;;
1064
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1065
ac_init_help=recursive ;;
1066
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1067
ac_init_help=short ;;
1069
-host | --host | --hos | --ho)
1070
ac_prev=host_alias ;;
1071
-host=* | --host=* | --hos=* | --ho=*)
1072
host_alias=$ac_optarg ;;
1074
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1076
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1078
htmldir=$ac_optarg ;;
1080
-includedir | --includedir | --includedi | --included | --include \
1081
| --includ | --inclu | --incl | --inc)
1082
ac_prev=includedir ;;
1083
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1084
| --includ=* | --inclu=* | --incl=* | --inc=*)
1085
includedir=$ac_optarg ;;
1087
-infodir | --infodir | --infodi | --infod | --info | --inf)
1089
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1090
infodir=$ac_optarg ;;
1092
-libdir | --libdir | --libdi | --libd)
1094
-libdir=* | --libdir=* | --libdi=* | --libd=*)
1095
libdir=$ac_optarg ;;
1097
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1098
| --libexe | --libex | --libe)
1099
ac_prev=libexecdir ;;
1100
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1101
| --libexe=* | --libex=* | --libe=*)
1102
libexecdir=$ac_optarg ;;
1104
-localedir | --localedir | --localedi | --localed | --locale)
1105
ac_prev=localedir ;;
1106
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1107
localedir=$ac_optarg ;;
1109
-localstatedir | --localstatedir | --localstatedi | --localstated \
1110
| --localstate | --localstat | --localsta | --localst | --locals)
1111
ac_prev=localstatedir ;;
1112
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1113
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1114
localstatedir=$ac_optarg ;;
1116
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1118
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1119
mandir=$ac_optarg ;;
1121
-nfp | --nfp | --nf)
1122
# Obsolete; use --without-fp.
1125
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
1126
| --no-cr | --no-c | -n)
1129
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
1130
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1133
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1134
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1135
| --oldin | --oldi | --old | --ol | --o)
1136
ac_prev=oldincludedir ;;
1137
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1138
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1139
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1140
oldincludedir=$ac_optarg ;;
1142
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1144
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1145
prefix=$ac_optarg ;;
1147
-program-prefix | --program-prefix | --program-prefi | --program-pref \
1148
| --program-pre | --program-pr | --program-p)
1149
ac_prev=program_prefix ;;
1150
-program-prefix=* | --program-prefix=* | --program-prefi=* \
1151
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1152
program_prefix=$ac_optarg ;;
1154
-program-suffix | --program-suffix | --program-suffi | --program-suff \
1155
| --program-suf | --program-su | --program-s)
1156
ac_prev=program_suffix ;;
1157
-program-suffix=* | --program-suffix=* | --program-suffi=* \
1158
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1159
program_suffix=$ac_optarg ;;
1161
-program-transform-name | --program-transform-name \
1162
| --program-transform-nam | --program-transform-na \
1163
| --program-transform-n | --program-transform- \
1164
| --program-transform | --program-transfor \
1165
| --program-transfo | --program-transf \
1166
| --program-trans | --program-tran \
1167
| --progr-tra | --program-tr | --program-t)
1168
ac_prev=program_transform_name ;;
1169
-program-transform-name=* | --program-transform-name=* \
1170
| --program-transform-nam=* | --program-transform-na=* \
1171
| --program-transform-n=* | --program-transform-=* \
1172
| --program-transform=* | --program-transfor=* \
1173
| --program-transfo=* | --program-transf=* \
1174
| --program-trans=* | --program-tran=* \
1175
| --progr-tra=* | --program-tr=* | --program-t=*)
1176
program_transform_name=$ac_optarg ;;
1178
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1180
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1181
pdfdir=$ac_optarg ;;
1183
-psdir | --psdir | --psdi | --psd | --ps)
1185
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1188
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1189
| -silent | --silent | --silen | --sile | --sil)
1192
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1194
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1196
sbindir=$ac_optarg ;;
1198
-sharedstatedir | --sharedstatedir | --sharedstatedi \
1199
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1200
| --sharedst | --shareds | --shared | --share | --shar \
1202
ac_prev=sharedstatedir ;;
1203
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1204
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1205
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1207
sharedstatedir=$ac_optarg ;;
1209
-site | --site | --sit)
1211
-site=* | --site=* | --sit=*)
1214
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1216
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1217
srcdir=$ac_optarg ;;
1219
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1220
| --syscon | --sysco | --sysc | --sys | --sy)
1221
ac_prev=sysconfdir ;;
1222
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1223
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1224
sysconfdir=$ac_optarg ;;
1226
-target | --target | --targe | --targ | --tar | --ta | --t)
1227
ac_prev=target_alias ;;
1228
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1229
target_alias=$ac_optarg ;;
1231
-v | -verbose | --verbose | --verbos | --verbo | --verb)
1234
-version | --version | --versio | --versi | --vers | -V)
1235
ac_init_version=: ;;
1238
ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1239
# Reject names that are not valid shell variable names.
1240
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1241
{ $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1242
{ (exit 1); exit 1; }; }
1243
ac_useropt_orig=$ac_useropt
1244
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1245
case $ac_user_opts in
1249
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1250
ac_unrecognized_sep=', ';;
1252
eval with_$ac_useropt=\$ac_optarg ;;
1254
-without-* | --without-*)
1255
ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1256
# Reject names that are not valid shell variable names.
1257
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1258
{ $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1259
{ (exit 1); exit 1; }; }
1260
ac_useropt_orig=$ac_useropt
1261
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1262
case $ac_user_opts in
1266
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1267
ac_unrecognized_sep=', ';;
1269
eval with_$ac_useropt=no ;;
1272
# Obsolete; use --with-x.
1275
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1276
| --x-incl | --x-inc | --x-in | --x-i)
1277
ac_prev=x_includes ;;
1278
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1279
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1280
x_includes=$ac_optarg ;;
1282
-x-libraries | --x-libraries | --x-librarie | --x-librari \
1283
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1284
ac_prev=x_libraries ;;
1285
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1286
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1287
x_libraries=$ac_optarg ;;
1289
-*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1290
Try \`$0 --help' for more information." >&2
1291
{ (exit 1); exit 1; }; }
1295
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1296
# Reject names that are not valid shell variable names.
1297
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1298
{ $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1299
{ (exit 1); exit 1; }; }
1300
eval $ac_envvar=\$ac_optarg
1301
export $ac_envvar ;;
1304
# FIXME: should be removed in autoconf 3.0.
1305
$as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1306
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1307
$as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1308
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1314
if test -n "$ac_prev"; then
1315
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1316
{ $as_echo "$as_me: error: missing argument to $ac_option" >&2
1317
{ (exit 1); exit 1; }; }
1320
if test -n "$ac_unrecognized_opts"; then
1321
case $enable_option_checking in
1323
fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1324
{ (exit 1); exit 1; }; } ;;
1325
*) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1329
# Check all directory arguments for consistency.
1330
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1331
datadir sysconfdir sharedstatedir localstatedir includedir \
1332
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1333
libdir localedir mandir
1335
eval ac_val=\$$ac_var
1336
# Remove trailing slashes.
1339
ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1340
eval $ac_var=\$ac_val;;
1342
# Be sure to have absolute directory names.
1344
[\\/$]* | ?:[\\/]* ) continue;;
1345
NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1347
{ $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1348
{ (exit 1); exit 1; }; }
1351
# There might be people who depend on the old broken behavior: `$host'
1352
# used to hold the argument of --host etc.
1353
# FIXME: To remove some day.
1356
target=$target_alias
1358
# FIXME: To remove some day.
1359
if test "x$host_alias" != x; then
1360
if test "x$build_alias" = x; then
1361
cross_compiling=maybe
1362
$as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1363
If a cross compiler is detected then cross compile mode will be used." >&2
1364
elif test "x$build_alias" != "x$host_alias"; then
1370
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1372
test "$silent" = yes && exec 6>/dev/null
1375
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1376
ac_ls_di=`ls -di .` &&
1377
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1378
{ $as_echo "$as_me: error: working directory cannot be determined" >&2
1379
{ (exit 1); exit 1; }; }
1380
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1381
{ $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1382
{ (exit 1); exit 1; }; }
1385
# Find the source files, if location was not specified.
1386
if test -z "$srcdir"; then
1387
ac_srcdir_defaulted=yes
1388
# Try the directory containing this script, then the parent directory.
1389
ac_confdir=`$as_dirname -- "$as_myself" ||
1390
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1391
X"$as_myself" : 'X\(//\)[^/]' \| \
1392
X"$as_myself" : 'X\(//\)$' \| \
1393
X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1394
$as_echo X"$as_myself" |
1395
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1413
if test ! -r "$srcdir/$ac_unique_file"; then
1417
ac_srcdir_defaulted=no
1419
if test ! -r "$srcdir/$ac_unique_file"; then
1420
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1421
{ $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1422
{ (exit 1); exit 1; }; }
1424
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1426
cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1427
{ (exit 1); exit 1; }; }
1429
# When building in place, set srcdir=.
1430
if test "$ac_abs_confdir" = "$ac_pwd"; then
1433
# Remove unnecessary trailing slashes from srcdir.
1434
# Double slashes in file names in object file debugging info
1435
# mess up M-x gdb in Emacs.
1437
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1439
for ac_var in $ac_precious_vars; do
1440
eval ac_env_${ac_var}_set=\${${ac_var}+set}
1441
eval ac_env_${ac_var}_value=\$${ac_var}
1442
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1443
eval ac_cv_env_${ac_var}_value=\$${ac_var}
1447
# Report the --help message.
1449
if test "$ac_init_help" = "long"; then
1450
# Omit some internal or obsolete options to make the list less imposing.
1451
# This message is too long to be a string in the A/UX 3.1 sh.
1453
\`configure' configures libffcall/callback 0x010B to adapt to many kinds of systems.
1455
Usage: $0 [OPTION]... [VAR=VALUE]...
1457
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1458
VAR=VALUE. See below for descriptions of some of the useful variables.
1460
Defaults for the options are specified in brackets.
1463
-h, --help display this help and exit
1464
--help=short display options specific to this package
1465
--help=recursive display the short help of all the included packages
1466
-V, --version display version information and exit
1467
-q, --quiet, --silent do not print \`checking...' messages
1468
--cache-file=FILE cache test results in FILE [disabled]
1469
-C, --config-cache alias for \`--cache-file=config.cache'
1470
-n, --no-create do not create output files
1471
--srcdir=DIR find the sources in DIR [configure dir or \`..']
1473
Installation directories:
1474
--prefix=PREFIX install architecture-independent files in PREFIX
1475
[$ac_default_prefix]
1476
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1479
By default, \`make install' will install all the files in
1480
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1481
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1482
for instance \`--prefix=\$HOME'.
1484
For better control, use the options below.
1486
Fine tuning of the installation directories:
1487
--bindir=DIR user executables [EPREFIX/bin]
1488
--sbindir=DIR system admin executables [EPREFIX/sbin]
1489
--libexecdir=DIR program executables [EPREFIX/libexec]
1490
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1491
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1492
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1493
--libdir=DIR object code libraries [EPREFIX/lib]
1494
--includedir=DIR C header files [PREFIX/include]
1495
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1496
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1497
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1498
--infodir=DIR info documentation [DATAROOTDIR/info]
1499
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1500
--mandir=DIR man documentation [DATAROOTDIR/man]
1501
--docdir=DIR documentation root
1502
[DATAROOTDIR/doc/libffcall-callback]
1503
--htmldir=DIR html documentation [DOCDIR]
1504
--dvidir=DIR dvi documentation [DOCDIR]
1505
--pdfdir=DIR pdf documentation [DOCDIR]
1506
--psdir=DIR ps documentation [DOCDIR]
1512
--build=BUILD configure for building on BUILD [guessed]
1513
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1517
if test -n "$ac_init_help"; then
1518
case $ac_init_help in
1519
short | recursive ) echo "Configuration of libffcall/callback 0x010B:";;
1524
--disable-option-checking ignore unrecognized --enable/--with options
1525
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1526
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1527
--enable-shared[=PKGS] build shared libraries [default=no]
1528
--enable-static[=PKGS] build static libraries [default=yes]
1529
--enable-fast-install[=PKGS]
1530
optimize for fast installation [default=yes]
1531
--disable-libtool-lock avoid locking (might break parallel builds)
1534
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1535
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1536
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
1537
--with-pic try to use only PIC/non-PIC objects [default=use
1539
--with-tags[=TAGS] include additional configurations [automatic]
1541
Some influential environment variables:
1542
CC C compiler command
1543
CFLAGS C compiler flags
1544
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1545
nonstandard directory <lib dir>
1546
LIBS libraries to pass to the linker, e.g. -l<library>
1547
CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1548
you have headers in a nonstandard directory <include dir>
1550
CXX C++ compiler command
1551
CXXFLAGS C++ compiler flags
1552
CXXCPP C++ preprocessor
1553
F77 Fortran 77 compiler command
1554
FFLAGS Fortran 77 compiler flags
1556
Use these variables to override the choices made by `configure' or to help
1557
it to find libraries and programs with nonstandard names/locations.
1563
if test "$ac_init_help" = "recursive"; then
1564
# If there are subdirs, report their specific --help.
1565
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1566
test -d "$ac_dir" ||
1567
{ cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1572
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1574
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1575
# A ".." for each directory in $ac_dir_suffix.
1576
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1577
case $ac_top_builddir_sub in
1578
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1579
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1582
ac_abs_top_builddir=$ac_pwd
1583
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1584
# for backward compatibility:
1585
ac_top_builddir=$ac_top_build_prefix
1588
.) # We are building in place.
1590
ac_top_srcdir=$ac_top_builddir_sub
1591
ac_abs_top_srcdir=$ac_pwd ;;
1592
[\\/]* | ?:[\\/]* ) # Absolute name.
1593
ac_srcdir=$srcdir$ac_dir_suffix;
1594
ac_top_srcdir=$srcdir
1595
ac_abs_top_srcdir=$srcdir ;;
1597
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1598
ac_top_srcdir=$ac_top_build_prefix$srcdir
1599
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1601
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1603
cd "$ac_dir" || { ac_status=$?; continue; }
1604
# Check for guested configure.
1605
if test -f "$ac_srcdir/configure.gnu"; then
1607
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
1608
elif test -f "$ac_srcdir/configure"; then
1610
$SHELL "$ac_srcdir/configure" --help=recursive
1612
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1614
cd "$ac_pwd" || { ac_status=$?; break; }
1618
test -n "$ac_init_help" && exit $ac_status
1619
if $ac_init_version; then
1621
libffcall/callback configure 0x010B
1622
generated by GNU Autoconf 2.63
1624
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1625
2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1626
This configure script is free software; the Free Software Foundation
1627
gives unlimited permission to copy, distribute and modify it.
1631
cat >config.log <<_ACEOF
1632
This file contains any messages produced by compilers while
1633
running configure, to aid debugging if configure makes a mistake.
1635
It was created by libffcall/callback $as_me 0x010B, which was
1636
generated by GNU Autoconf 2.63. Invocation command line was
1648
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1649
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1650
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1651
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1652
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1654
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1655
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1657
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1658
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1659
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1660
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1661
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1662
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1663
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1667
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1671
test -z "$as_dir" && as_dir=.
1672
$as_echo "PATH: $as_dir"
1688
# Keep a trace of the command line.
1689
# Strip out --no-create and --no-recursion so they do not pile up.
1690
# Strip out --silent because we don't want to record it for future runs.
1691
# Also quote any args containing shell meta-characters.
1692
# Make two passes to allow for proper duplicate-argument suppression.
1696
ac_must_keep_next=false
1702
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1703
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1704
| -silent | --silent | --silen | --sile | --sil)
1707
ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1710
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1712
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1713
if test $ac_must_keep_next = true; then
1714
ac_must_keep_next=false # Got value, back to normal.
1717
*=* | --config-cache | -C | -disable-* | --disable-* \
1718
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1719
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1720
| -with-* | --with-* | -without-* | --without-* | --x)
1721
case "$ac_configure_args0 " in
1722
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1725
-* ) ac_must_keep_next=true ;;
1728
ac_configure_args="$ac_configure_args '$ac_arg'"
1733
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1734
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1736
# When interrupted or exit'd, cleanup temporary files, and complete
1737
# config.log. We remove comments because anyway the quotes in there
1738
# would cause problems or look ugly.
1739
# WARNING: Use '\'' to represent an apostrophe within the trap.
1740
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1741
trap 'exit_status=$?
1742
# Save into config.log some information that might help in debugging.
1747
## ---------------- ##
1748
## Cache variables. ##
1749
## ---------------- ##
1752
# The following way of writing the cache mishandles newlines in values,
1754
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1755
eval ac_val=\$$ac_var
1759
*_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1760
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1763
_ | IFS | as_nl) ;; #(
1764
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1765
*) $as_unset $ac_var ;;
1770
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1771
*${as_nl}ac_space=\ *)
1773
"s/'\''/'\''\\\\'\'''\''/g;
1774
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1777
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1785
## ----------------- ##
1786
## Output variables. ##
1787
## ----------------- ##
1790
for ac_var in $ac_subst_vars
1792
eval ac_val=\$$ac_var
1794
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1796
$as_echo "$ac_var='\''$ac_val'\''"
1800
if test -n "$ac_subst_files"; then
1802
## ------------------- ##
1803
## File substitutions. ##
1804
## ------------------- ##
1807
for ac_var in $ac_subst_files
1809
eval ac_val=\$$ac_var
1811
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1813
$as_echo "$ac_var='\''$ac_val'\''"
1818
if test -s confdefs.h; then
1828
test "$ac_signal" != 0 &&
1829
$as_echo "$as_me: caught signal $ac_signal"
1830
$as_echo "$as_me: exit $exit_status"
1832
rm -f core *.core core.conftest.* &&
1833
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1836
for ac_signal in 1 2 13 15; do
1837
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1841
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1842
rm -f -r conftest* confdefs.h
1844
# Predefined preprocessor variables.
1846
cat >>confdefs.h <<_ACEOF
1847
#define PACKAGE_NAME "$PACKAGE_NAME"
1851
cat >>confdefs.h <<_ACEOF
1852
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1856
cat >>confdefs.h <<_ACEOF
1857
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1861
cat >>confdefs.h <<_ACEOF
1862
#define PACKAGE_STRING "$PACKAGE_STRING"
1866
cat >>confdefs.h <<_ACEOF
1867
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1871
# Let the site file select an alternate cache file if it wants to.
1872
# Prefer an explicitly selected file to automatically selected ones.
1875
if test -n "$CONFIG_SITE"; then
1876
ac_site_file1=$CONFIG_SITE
1877
elif test "x$prefix" != xNONE; then
1878
ac_site_file1=$prefix/share/config.site
1879
ac_site_file2=$prefix/etc/config.site
1881
ac_site_file1=$ac_default_prefix/share/config.site
1882
ac_site_file2=$ac_default_prefix/etc/config.site
1884
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1886
test "x$ac_site_file" = xNONE && continue
1887
if test -r "$ac_site_file"; then
1888
{ $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1889
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1890
sed 's/^/| /' "$ac_site_file" >&5
1895
if test -r "$cache_file"; then
1896
# Some versions of bash will fail to source /dev/null (special
1897
# files actually), so we avoid doing that.
1898
if test -f "$cache_file"; then
1899
{ $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1900
$as_echo "$as_me: loading cache $cache_file" >&6;}
1902
[\\/]* | ?:[\\/]* ) . "$cache_file";;
1903
*) . "./$cache_file";;
1907
{ $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1908
$as_echo "$as_me: creating cache $cache_file" >&6;}
1912
# Check that the precious variables saved in the cache have kept the same
1914
ac_cache_corrupted=false
1915
for ac_var in $ac_precious_vars; do
1916
eval ac_old_set=\$ac_cv_env_${ac_var}_set
1917
eval ac_new_set=\$ac_env_${ac_var}_set
1918
eval ac_old_val=\$ac_cv_env_${ac_var}_value
1919
eval ac_new_val=\$ac_env_${ac_var}_value
1920
case $ac_old_set,$ac_new_set in
1922
{ $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1923
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1924
ac_cache_corrupted=: ;;
1926
{ $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1927
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1928
ac_cache_corrupted=: ;;
1931
if test "x$ac_old_val" != "x$ac_new_val"; then
1932
# differences in whitespace do not lead to failure.
1933
ac_old_val_w=`echo x $ac_old_val`
1934
ac_new_val_w=`echo x $ac_new_val`
1935
if test "$ac_old_val_w" != "$ac_new_val_w"; then
1936
{ $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1937
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1938
ac_cache_corrupted=:
1940
{ $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1941
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1942
eval $ac_var=\$ac_old_val
1944
{ $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1945
$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1946
{ $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1947
$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1950
# Pass precious variables to config.status.
1951
if test "$ac_new_set" = set; then
1953
*\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1954
*) ac_arg=$ac_var=$ac_new_val ;;
1956
case " $ac_configure_args " in
1957
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1958
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1962
if $ac_cache_corrupted; then
1963
{ $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1964
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1965
{ $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1966
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1967
{ { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1968
$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1969
{ (exit 1); exit 1; }; }
1997
ac_cpp='$CPP $CPPFLAGS'
1998
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1999
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2000
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2004
ac_config_headers="$ac_config_headers config.h"
2006
ac_config_headers="$ac_config_headers callback.h"
2008
ac_config_files="$ac_config_files Makefile"
2011
ac_cpp='$CPP $CPPFLAGS'
2012
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2013
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2014
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2015
if test -n "$ac_tool_prefix"; then
2016
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2017
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2018
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2019
$as_echo_n "checking for $ac_word... " >&6; }
2020
if test "${ac_cv_prog_CC+set}" = set; then
2021
$as_echo_n "(cached) " >&6
2023
if test -n "$CC"; then
2024
ac_cv_prog_CC="$CC" # Let the user override the test.
2026
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2030
test -z "$as_dir" && as_dir=.
2031
for ac_exec_ext in '' $ac_executable_extensions; do
2032
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2033
ac_cv_prog_CC="${ac_tool_prefix}gcc"
2034
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2044
if test -n "$CC"; then
2045
{ $as_echo "$as_me:$LINENO: result: $CC" >&5
2046
$as_echo "$CC" >&6; }
2048
{ $as_echo "$as_me:$LINENO: result: no" >&5
2049
$as_echo "no" >&6; }
2054
if test -z "$ac_cv_prog_CC"; then
2056
# Extract the first word of "gcc", so it can be a program name with args.
2057
set dummy gcc; ac_word=$2
2058
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2059
$as_echo_n "checking for $ac_word... " >&6; }
2060
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2061
$as_echo_n "(cached) " >&6
2063
if test -n "$ac_ct_CC"; then
2064
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2066
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2070
test -z "$as_dir" && as_dir=.
2071
for ac_exec_ext in '' $ac_executable_extensions; do
2072
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2073
ac_cv_prog_ac_ct_CC="gcc"
2074
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2083
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2084
if test -n "$ac_ct_CC"; then
2085
{ $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2086
$as_echo "$ac_ct_CC" >&6; }
2088
{ $as_echo "$as_me:$LINENO: result: no" >&5
2089
$as_echo "no" >&6; }
2092
if test "x$ac_ct_CC" = x; then
2095
case $cross_compiling:$ac_tool_warned in
2097
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2098
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2099
ac_tool_warned=yes ;;
2107
if test -z "$CC"; then
2108
if test -n "$ac_tool_prefix"; then
2109
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2110
set dummy ${ac_tool_prefix}cc; ac_word=$2
2111
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2112
$as_echo_n "checking for $ac_word... " >&6; }
2113
if test "${ac_cv_prog_CC+set}" = set; then
2114
$as_echo_n "(cached) " >&6
2116
if test -n "$CC"; then
2117
ac_cv_prog_CC="$CC" # Let the user override the test.
2119
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2123
test -z "$as_dir" && as_dir=.
2124
for ac_exec_ext in '' $ac_executable_extensions; do
2125
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2126
ac_cv_prog_CC="${ac_tool_prefix}cc"
2127
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2137
if test -n "$CC"; then
2138
{ $as_echo "$as_me:$LINENO: result: $CC" >&5
2139
$as_echo "$CC" >&6; }
2141
{ $as_echo "$as_me:$LINENO: result: no" >&5
2142
$as_echo "no" >&6; }
2148
if test -z "$CC"; then
2149
# Extract the first word of "cc", so it can be a program name with args.
2150
set dummy cc; ac_word=$2
2151
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2152
$as_echo_n "checking for $ac_word... " >&6; }
2153
if test "${ac_cv_prog_CC+set}" = set; then
2154
$as_echo_n "(cached) " >&6
2156
if test -n "$CC"; then
2157
ac_cv_prog_CC="$CC" # Let the user override the test.
2160
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2164
test -z "$as_dir" && as_dir=.
2165
for ac_exec_ext in '' $ac_executable_extensions; do
2166
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2167
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2168
ac_prog_rejected=yes
2172
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2179
if test $ac_prog_rejected = yes; then
2180
# We found a bogon in the path, so make sure we never use it.
2181
set dummy $ac_cv_prog_CC
2183
if test $# != 0; then
2184
# We chose a different compiler from the bogus one.
2185
# However, it has the same basename, so the bogon will be chosen
2186
# first if we set CC to just the basename; use the full file name.
2188
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2194
if test -n "$CC"; then
2195
{ $as_echo "$as_me:$LINENO: result: $CC" >&5
2196
$as_echo "$CC" >&6; }
2198
{ $as_echo "$as_me:$LINENO: result: no" >&5
2199
$as_echo "no" >&6; }
2204
if test -z "$CC"; then
2205
if test -n "$ac_tool_prefix"; then
2206
for ac_prog in cl.exe
2208
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2209
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2210
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2211
$as_echo_n "checking for $ac_word... " >&6; }
2212
if test "${ac_cv_prog_CC+set}" = set; then
2213
$as_echo_n "(cached) " >&6
2215
if test -n "$CC"; then
2216
ac_cv_prog_CC="$CC" # Let the user override the test.
2218
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2222
test -z "$as_dir" && as_dir=.
2223
for ac_exec_ext in '' $ac_executable_extensions; do
2224
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2225
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2226
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2236
if test -n "$CC"; then
2237
{ $as_echo "$as_me:$LINENO: result: $CC" >&5
2238
$as_echo "$CC" >&6; }
2240
{ $as_echo "$as_me:$LINENO: result: no" >&5
2241
$as_echo "no" >&6; }
2245
test -n "$CC" && break
2248
if test -z "$CC"; then
2250
for ac_prog in cl.exe
2252
# Extract the first word of "$ac_prog", so it can be a program name with args.
2253
set dummy $ac_prog; ac_word=$2
2254
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2255
$as_echo_n "checking for $ac_word... " >&6; }
2256
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2257
$as_echo_n "(cached) " >&6
2259
if test -n "$ac_ct_CC"; then
2260
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2262
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2266
test -z "$as_dir" && as_dir=.
2267
for ac_exec_ext in '' $ac_executable_extensions; do
2268
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2269
ac_cv_prog_ac_ct_CC="$ac_prog"
2270
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2279
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2280
if test -n "$ac_ct_CC"; then
2281
{ $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2282
$as_echo "$ac_ct_CC" >&6; }
2284
{ $as_echo "$as_me:$LINENO: result: no" >&5
2285
$as_echo "no" >&6; }
2289
test -n "$ac_ct_CC" && break
2292
if test "x$ac_ct_CC" = x; then
2295
case $cross_compiling:$ac_tool_warned in
2297
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2298
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2299
ac_tool_warned=yes ;;
2308
test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2309
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2310
{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2311
See \`config.log' for more details." >&5
2312
$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2313
See \`config.log' for more details." >&2;}
2314
{ (exit 1); exit 1; }; }; }
2316
# Provide some information about the compiler.
2317
$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2320
{ (ac_try="$ac_compiler --version >&5"
2322
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2323
*) ac_try_echo=$ac_try;;
2325
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2326
$as_echo "$ac_try_echo") >&5
2327
(eval "$ac_compiler --version >&5") 2>&5
2329
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330
(exit $ac_status); }
2331
{ (ac_try="$ac_compiler -v >&5"
2333
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2334
*) ac_try_echo=$ac_try;;
2336
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2337
$as_echo "$ac_try_echo") >&5
2338
(eval "$ac_compiler -v >&5") 2>&5
2340
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2341
(exit $ac_status); }
2342
{ (ac_try="$ac_compiler -V >&5"
2344
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2345
*) ac_try_echo=$ac_try;;
2347
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2348
$as_echo "$ac_try_echo") >&5
2349
(eval "$ac_compiler -V >&5") 2>&5
2351
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352
(exit $ac_status); }
2354
cat >conftest.$ac_ext <<_ACEOF
2357
cat confdefs.h >>conftest.$ac_ext
2358
cat >>conftest.$ac_ext <<_ACEOF
2359
/* end confdefs.h. */
2369
ac_clean_files_save=$ac_clean_files
2370
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2371
# Try to create an executable without -o first, disregard a.out.
2372
# It will help us diagnose broken compilers, and finding out an intuition
2374
{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2375
$as_echo_n "checking for C compiler default output file name... " >&6; }
2376
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2378
# The possible output files:
2379
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2382
for ac_file in $ac_files
2385
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2386
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
2391
if { (ac_try="$ac_link_default"
2393
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2394
*) ac_try_echo=$ac_try;;
2396
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2397
$as_echo "$ac_try_echo") >&5
2398
(eval "$ac_link_default") 2>&5
2400
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401
(exit $ac_status); }; then
2402
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2403
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2404
# in a Makefile. We should not override ac_cv_exeext if it was cached,
2405
# so that the user can short-circuit this test for compilers unknown to
2407
for ac_file in $ac_files ''
2409
test -f "$ac_file" || continue
2411
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2414
# We found the default executable, but exeext='' is most
2418
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2420
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2422
# We set ac_cv_exeext here because the later test for it is not
2423
# safe: cross compilers may not add the suffix if given an `-o'
2424
# argument, so we may need to know it at that point already.
2425
# Even if this section looks crufty: it has the advantage of
2432
test "$ac_cv_exeext" = no && ac_cv_exeext=
2438
{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2439
$as_echo "$ac_file" >&6; }
2440
if test -z "$ac_file"; then
2441
$as_echo "$as_me: failed program was:" >&5
2442
sed 's/^/| /' conftest.$ac_ext >&5
2444
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2445
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2446
{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2447
See \`config.log' for more details." >&5
2448
$as_echo "$as_me: error: C compiler cannot create executables
2449
See \`config.log' for more details." >&2;}
2450
{ (exit 77); exit 77; }; }; }
2453
ac_exeext=$ac_cv_exeext
2455
# Check that the compiler produces executables we can run. If not, either
2456
# the compiler is broken, or we cross compile.
2457
{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2458
$as_echo_n "checking whether the C compiler works... " >&6; }
2459
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2460
# If not cross compiling, check that we can run a simple program.
2461
if test "$cross_compiling" != yes; then
2462
if { ac_try='./$ac_file'
2463
{ (case "(($ac_try" in
2464
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2465
*) ac_try_echo=$ac_try;;
2467
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2468
$as_echo "$ac_try_echo") >&5
2469
(eval "$ac_try") 2>&5
2471
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472
(exit $ac_status); }; }; then
2475
if test "$cross_compiling" = maybe; then
2478
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2479
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2480
{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2481
If you meant to cross compile, use \`--host'.
2482
See \`config.log' for more details." >&5
2483
$as_echo "$as_me: error: cannot run C compiled programs.
2484
If you meant to cross compile, use \`--host'.
2485
See \`config.log' for more details." >&2;}
2486
{ (exit 1); exit 1; }; }; }
2490
{ $as_echo "$as_me:$LINENO: result: yes" >&5
2491
$as_echo "yes" >&6; }
2493
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2494
ac_clean_files=$ac_clean_files_save
2495
# Check that the compiler produces executables we can run. If not, either
2496
# the compiler is broken, or we cross compile.
2497
{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2498
$as_echo_n "checking whether we are cross compiling... " >&6; }
2499
{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2500
$as_echo "$cross_compiling" >&6; }
2502
{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2503
$as_echo_n "checking for suffix of executables... " >&6; }
2504
if { (ac_try="$ac_link"
2506
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2507
*) ac_try_echo=$ac_try;;
2509
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2510
$as_echo "$ac_try_echo") >&5
2511
(eval "$ac_link") 2>&5
2513
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514
(exit $ac_status); }; then
2515
# If both `conftest.exe' and `conftest' are `present' (well, observable)
2516
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2517
# work properly (i.e., refer to `conftest.exe'), while it won't with
2519
for ac_file in conftest.exe conftest conftest.*; do
2520
test -f "$ac_file" || continue
2522
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2523
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2529
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2530
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2531
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2532
See \`config.log' for more details." >&5
2533
$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2534
See \`config.log' for more details." >&2;}
2535
{ (exit 1); exit 1; }; }; }
2538
rm -f conftest$ac_cv_exeext
2539
{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2540
$as_echo "$ac_cv_exeext" >&6; }
2542
rm -f conftest.$ac_ext
2543
EXEEXT=$ac_cv_exeext
2545
{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2546
$as_echo_n "checking for suffix of object files... " >&6; }
2547
if test "${ac_cv_objext+set}" = set; then
2548
$as_echo_n "(cached) " >&6
2550
cat >conftest.$ac_ext <<_ACEOF
2553
cat confdefs.h >>conftest.$ac_ext
2554
cat >>conftest.$ac_ext <<_ACEOF
2555
/* end confdefs.h. */
2565
rm -f conftest.o conftest.obj
2566
if { (ac_try="$ac_compile"
2568
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2569
*) ac_try_echo=$ac_try;;
2571
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2572
$as_echo "$ac_try_echo") >&5
2573
(eval "$ac_compile") 2>&5
2575
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576
(exit $ac_status); }; then
2577
for ac_file in conftest.o conftest.obj conftest.*; do
2578
test -f "$ac_file" || continue;
2580
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2581
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2586
$as_echo "$as_me: failed program was:" >&5
2587
sed 's/^/| /' conftest.$ac_ext >&5
2589
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2590
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2591
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2592
See \`config.log' for more details." >&5
2593
$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2594
See \`config.log' for more details." >&2;}
2595
{ (exit 1); exit 1; }; }; }
2598
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2600
{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2601
$as_echo "$ac_cv_objext" >&6; }
2602
OBJEXT=$ac_cv_objext
2604
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2605
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2606
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2607
$as_echo_n "(cached) " >&6
2609
cat >conftest.$ac_ext <<_ACEOF
2612
cat confdefs.h >>conftest.$ac_ext
2613
cat >>conftest.$ac_ext <<_ACEOF
2614
/* end confdefs.h. */
2627
rm -f conftest.$ac_objext
2628
if { (ac_try="$ac_compile"
2630
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2631
*) ac_try_echo=$ac_try;;
2633
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2634
$as_echo "$ac_try_echo") >&5
2635
(eval "$ac_compile") 2>conftest.er1
2637
grep -v '^ *+' conftest.er1 >conftest.err
2639
cat conftest.err >&5
2640
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2641
(exit $ac_status); } && {
2642
test -z "$ac_c_werror_flag" ||
2643
test ! -s conftest.err
2644
} && test -s conftest.$ac_objext; then
2647
$as_echo "$as_me: failed program was:" >&5
2648
sed 's/^/| /' conftest.$ac_ext >&5
2653
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2654
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2657
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2658
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2659
if test $ac_compiler_gnu = yes; then
2664
ac_test_CFLAGS=${CFLAGS+set}
2665
ac_save_CFLAGS=$CFLAGS
2666
{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2667
$as_echo_n "checking whether $CC accepts -g... " >&6; }
2668
if test "${ac_cv_prog_cc_g+set}" = set; then
2669
$as_echo_n "(cached) " >&6
2671
ac_save_c_werror_flag=$ac_c_werror_flag
2672
ac_c_werror_flag=yes
2675
cat >conftest.$ac_ext <<_ACEOF
2678
cat confdefs.h >>conftest.$ac_ext
2679
cat >>conftest.$ac_ext <<_ACEOF
2680
/* end confdefs.h. */
2690
rm -f conftest.$ac_objext
2691
if { (ac_try="$ac_compile"
2693
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2694
*) ac_try_echo=$ac_try;;
2696
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2697
$as_echo "$ac_try_echo") >&5
2698
(eval "$ac_compile") 2>conftest.er1
2700
grep -v '^ *+' conftest.er1 >conftest.err
2702
cat conftest.err >&5
2703
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704
(exit $ac_status); } && {
2705
test -z "$ac_c_werror_flag" ||
2706
test ! -s conftest.err
2707
} && test -s conftest.$ac_objext; then
2710
$as_echo "$as_me: failed program was:" >&5
2711
sed 's/^/| /' conftest.$ac_ext >&5
2714
cat >conftest.$ac_ext <<_ACEOF
2717
cat confdefs.h >>conftest.$ac_ext
2718
cat >>conftest.$ac_ext <<_ACEOF
2719
/* end confdefs.h. */
2729
rm -f conftest.$ac_objext
2730
if { (ac_try="$ac_compile"
2732
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2733
*) ac_try_echo=$ac_try;;
2735
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2736
$as_echo "$ac_try_echo") >&5
2737
(eval "$ac_compile") 2>conftest.er1
2739
grep -v '^ *+' conftest.er1 >conftest.err
2741
cat conftest.err >&5
2742
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743
(exit $ac_status); } && {
2744
test -z "$ac_c_werror_flag" ||
2745
test ! -s conftest.err
2746
} && test -s conftest.$ac_objext; then
2749
$as_echo "$as_me: failed program was:" >&5
2750
sed 's/^/| /' conftest.$ac_ext >&5
2752
ac_c_werror_flag=$ac_save_c_werror_flag
2754
cat >conftest.$ac_ext <<_ACEOF
2757
cat confdefs.h >>conftest.$ac_ext
2758
cat >>conftest.$ac_ext <<_ACEOF
2759
/* end confdefs.h. */
2769
rm -f conftest.$ac_objext
2770
if { (ac_try="$ac_compile"
2772
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2773
*) ac_try_echo=$ac_try;;
2775
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2776
$as_echo "$ac_try_echo") >&5
2777
(eval "$ac_compile") 2>conftest.er1
2779
grep -v '^ *+' conftest.er1 >conftest.err
2781
cat conftest.err >&5
2782
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783
(exit $ac_status); } && {
2784
test -z "$ac_c_werror_flag" ||
2785
test ! -s conftest.err
2786
} && test -s conftest.$ac_objext; then
2789
$as_echo "$as_me: failed program was:" >&5
2790
sed 's/^/| /' conftest.$ac_ext >&5
2795
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2798
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2801
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2802
ac_c_werror_flag=$ac_save_c_werror_flag
2804
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2805
$as_echo "$ac_cv_prog_cc_g" >&6; }
2806
if test "$ac_test_CFLAGS" = set; then
2807
CFLAGS=$ac_save_CFLAGS
2808
elif test $ac_cv_prog_cc_g = yes; then
2809
if test "$GCC" = yes; then
2815
if test "$GCC" = yes; then
2821
{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2822
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2823
if test "${ac_cv_prog_cc_c89+set}" = set; then
2824
$as_echo_n "(cached) " >&6
2826
ac_cv_prog_cc_c89=no
2828
cat >conftest.$ac_ext <<_ACEOF
2831
cat confdefs.h >>conftest.$ac_ext
2832
cat >>conftest.$ac_ext <<_ACEOF
2833
/* end confdefs.h. */
2836
#include <sys/types.h>
2837
#include <sys/stat.h>
2838
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2839
struct buf { int x; };
2840
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2841
static char *e (p, i)
2847
static char *f (char * (*g) (char **, int), char **p, ...)
2852
s = g (p, va_arg (v,int));
2857
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2858
function prototypes and stuff, but not '\xHH' hex character constants.
2859
These don't provoke an error unfortunately, instead are silently treated
2860
as 'x'. The following induces an error, until -std is added to get
2861
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2862
array size at least. It's necessary to write '\x00'==0 to get something
2863
that's true only with -std. */
2864
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2866
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2867
inside strings and character constants. */
2869
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2871
int test (int i, double x);
2872
struct s1 {int (*f) (int a);};
2873
struct s2 {int (*f) (double a);};
2874
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2880
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2885
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2886
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2888
CC="$ac_save_CC $ac_arg"
2889
rm -f conftest.$ac_objext
2890
if { (ac_try="$ac_compile"
2892
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2893
*) ac_try_echo=$ac_try;;
2895
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2896
$as_echo "$ac_try_echo") >&5
2897
(eval "$ac_compile") 2>conftest.er1
2899
grep -v '^ *+' conftest.er1 >conftest.err
2901
cat conftest.err >&5
2902
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903
(exit $ac_status); } && {
2904
test -z "$ac_c_werror_flag" ||
2905
test ! -s conftest.err
2906
} && test -s conftest.$ac_objext; then
2907
ac_cv_prog_cc_c89=$ac_arg
2909
$as_echo "$as_me: failed program was:" >&5
2910
sed 's/^/| /' conftest.$ac_ext >&5
2915
rm -f core conftest.err conftest.$ac_objext
2916
test "x$ac_cv_prog_cc_c89" != "xno" && break
2918
rm -f conftest.$ac_ext
2923
case "x$ac_cv_prog_cc_c89" in
2925
{ $as_echo "$as_me:$LINENO: result: none needed" >&5
2926
$as_echo "none needed" >&6; } ;;
2928
{ $as_echo "$as_me:$LINENO: result: unsupported" >&5
2929
$as_echo "unsupported" >&6; } ;;
2931
CC="$CC $ac_cv_prog_cc_c89"
2932
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2933
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2938
ac_cpp='$CPP $CPPFLAGS'
2939
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2940
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2941
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2944
ac_cpp='$CPP $CPPFLAGS'
2945
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2946
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2947
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2948
{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2949
$as_echo_n "checking how to run the C preprocessor... " >&6; }
2950
# On Suns, sometimes $CPP names a directory.
2951
if test -n "$CPP" && test -d "$CPP"; then
2954
if test -z "$CPP"; then
2955
if test "${ac_cv_prog_CPP+set}" = set; then
2956
$as_echo_n "(cached) " >&6
2958
# Double quotes because CPP needs to be expanded
2959
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2962
for ac_c_preproc_warn_flag in '' yes
2964
# Use a header file that comes with gcc, so configuring glibc
2965
# with a fresh cross-compiler works.
2966
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2967
# <limits.h> exists even on freestanding compilers.
2968
# On the NeXT, cc -E runs the code through the compiler's parser,
2969
# not just through cpp. "Syntax error" is here to catch this case.
2970
cat >conftest.$ac_ext <<_ACEOF
2973
cat confdefs.h >>conftest.$ac_ext
2974
cat >>conftest.$ac_ext <<_ACEOF
2975
/* end confdefs.h. */
2977
# include <limits.h>
2979
# include <assert.h>
2983
if { (ac_try="$ac_cpp conftest.$ac_ext"
2985
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2986
*) ac_try_echo=$ac_try;;
2988
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2989
$as_echo "$ac_try_echo") >&5
2990
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2992
grep -v '^ *+' conftest.er1 >conftest.err
2994
cat conftest.err >&5
2995
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2996
(exit $ac_status); } >/dev/null && {
2997
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2998
test ! -s conftest.err
3002
$as_echo "$as_me: failed program was:" >&5
3003
sed 's/^/| /' conftest.$ac_ext >&5
3005
# Broken: fails on valid input.
3009
rm -f conftest.err conftest.$ac_ext
3011
# OK, works on sane cases. Now check whether nonexistent headers
3012
# can be detected and how.
3013
cat >conftest.$ac_ext <<_ACEOF
3016
cat confdefs.h >>conftest.$ac_ext
3017
cat >>conftest.$ac_ext <<_ACEOF
3018
/* end confdefs.h. */
3019
#include <ac_nonexistent.h>
3021
if { (ac_try="$ac_cpp conftest.$ac_ext"
3023
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3024
*) ac_try_echo=$ac_try;;
3026
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3027
$as_echo "$ac_try_echo") >&5
3028
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3030
grep -v '^ *+' conftest.er1 >conftest.err
3032
cat conftest.err >&5
3033
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034
(exit $ac_status); } >/dev/null && {
3035
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3036
test ! -s conftest.err
3038
# Broken: success on invalid input.
3041
$as_echo "$as_me: failed program was:" >&5
3042
sed 's/^/| /' conftest.$ac_ext >&5
3044
# Passes both tests.
3049
rm -f conftest.err conftest.$ac_ext
3052
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3053
rm -f conftest.err conftest.$ac_ext
3054
if $ac_preproc_ok; then
3066
{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
3067
$as_echo "$CPP" >&6; }
3069
for ac_c_preproc_warn_flag in '' yes
3071
# Use a header file that comes with gcc, so configuring glibc
3072
# with a fresh cross-compiler works.
3073
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3074
# <limits.h> exists even on freestanding compilers.
3075
# On the NeXT, cc -E runs the code through the compiler's parser,
3076
# not just through cpp. "Syntax error" is here to catch this case.
3077
cat >conftest.$ac_ext <<_ACEOF
3080
cat confdefs.h >>conftest.$ac_ext
3081
cat >>conftest.$ac_ext <<_ACEOF
3082
/* end confdefs.h. */
3084
# include <limits.h>
3086
# include <assert.h>
3090
if { (ac_try="$ac_cpp conftest.$ac_ext"
3092
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3093
*) ac_try_echo=$ac_try;;
3095
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3096
$as_echo "$ac_try_echo") >&5
3097
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3099
grep -v '^ *+' conftest.er1 >conftest.err
3101
cat conftest.err >&5
3102
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103
(exit $ac_status); } >/dev/null && {
3104
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3105
test ! -s conftest.err
3109
$as_echo "$as_me: failed program was:" >&5
3110
sed 's/^/| /' conftest.$ac_ext >&5
3112
# Broken: fails on valid input.
3116
rm -f conftest.err conftest.$ac_ext
3118
# OK, works on sane cases. Now check whether nonexistent headers
3119
# can be detected and how.
3120
cat >conftest.$ac_ext <<_ACEOF
3123
cat confdefs.h >>conftest.$ac_ext
3124
cat >>conftest.$ac_ext <<_ACEOF
3125
/* end confdefs.h. */
3126
#include <ac_nonexistent.h>
3128
if { (ac_try="$ac_cpp conftest.$ac_ext"
3130
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3131
*) ac_try_echo=$ac_try;;
3133
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3134
$as_echo "$ac_try_echo") >&5
3135
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3137
grep -v '^ *+' conftest.er1 >conftest.err
3139
cat conftest.err >&5
3140
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141
(exit $ac_status); } >/dev/null && {
3142
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3143
test ! -s conftest.err
3145
# Broken: success on invalid input.
3148
$as_echo "$as_me: failed program was:" >&5
3149
sed 's/^/| /' conftest.$ac_ext >&5
3151
# Passes both tests.
3156
rm -f conftest.err conftest.$ac_ext
3159
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3160
rm -f conftest.err conftest.$ac_ext
3161
if $ac_preproc_ok; then
3164
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3165
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3166
{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3167
See \`config.log' for more details." >&5
3168
$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3169
See \`config.log' for more details." >&2;}
3170
{ (exit 1); exit 1; }; }; }
3174
ac_cpp='$CPP $CPPFLAGS'
3175
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3176
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3177
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3181
{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3182
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3183
if test "${ac_cv_path_GREP+set}" = set; then
3184
$as_echo_n "(cached) " >&6
3186
if test -z "$GREP"; then
3187
ac_path_GREP_found=false
3188
# Loop through the user's path and test for each of PROGNAME-LIST
3189
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3190
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3193
test -z "$as_dir" && as_dir=.
3194
for ac_prog in grep ggrep; do
3195
for ac_exec_ext in '' $ac_executable_extensions; do
3196
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3197
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3198
# Check for GNU ac_path_GREP and select it if it is found.
3199
# Check for GNU $ac_path_GREP
3200
case `"$ac_path_GREP" --version 2>&1` in
3202
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3205
$as_echo_n 0123456789 >"conftest.in"
3208
cat "conftest.in" "conftest.in" >"conftest.tmp"
3209
mv "conftest.tmp" "conftest.in"
3210
cp "conftest.in" "conftest.nl"
3211
$as_echo 'GREP' >> "conftest.nl"
3212
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3213
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3214
ac_count=`expr $ac_count + 1`
3215
if test $ac_count -gt ${ac_path_GREP_max-0}; then
3216
# Best one so far, save it but keep looking for a better one
3217
ac_cv_path_GREP="$ac_path_GREP"
3218
ac_path_GREP_max=$ac_count
3220
# 10*(2^10) chars as input seems more than enough
3221
test $ac_count -gt 10 && break
3223
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3226
$ac_path_GREP_found && break 3
3231
if test -z "$ac_cv_path_GREP"; then
3232
{ { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3233
$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3234
{ (exit 1); exit 1; }; }
3237
ac_cv_path_GREP=$GREP
3241
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3242
$as_echo "$ac_cv_path_GREP" >&6; }
3243
GREP="$ac_cv_path_GREP"
3246
{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
3247
$as_echo_n "checking for egrep... " >&6; }
3248
if test "${ac_cv_path_EGREP+set}" = set; then
3249
$as_echo_n "(cached) " >&6
3251
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3252
then ac_cv_path_EGREP="$GREP -E"
3254
if test -z "$EGREP"; then
3255
ac_path_EGREP_found=false
3256
# Loop through the user's path and test for each of PROGNAME-LIST
3257
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3258
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3261
test -z "$as_dir" && as_dir=.
3262
for ac_prog in egrep; do
3263
for ac_exec_ext in '' $ac_executable_extensions; do
3264
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3265
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3266
# Check for GNU ac_path_EGREP and select it if it is found.
3267
# Check for GNU $ac_path_EGREP
3268
case `"$ac_path_EGREP" --version 2>&1` in
3270
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3273
$as_echo_n 0123456789 >"conftest.in"
3276
cat "conftest.in" "conftest.in" >"conftest.tmp"
3277
mv "conftest.tmp" "conftest.in"
3278
cp "conftest.in" "conftest.nl"
3279
$as_echo 'EGREP' >> "conftest.nl"
3280
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3281
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3282
ac_count=`expr $ac_count + 1`
3283
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3284
# Best one so far, save it but keep looking for a better one
3285
ac_cv_path_EGREP="$ac_path_EGREP"
3286
ac_path_EGREP_max=$ac_count
3288
# 10*(2^10) chars as input seems more than enough
3289
test $ac_count -gt 10 && break
3291
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3294
$ac_path_EGREP_found && break 3
3299
if test -z "$ac_cv_path_EGREP"; then
3300
{ { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3301
$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3302
{ (exit 1); exit 1; }; }
3305
ac_cv_path_EGREP=$EGREP
3310
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3311
$as_echo "$ac_cv_path_EGREP" >&6; }
3312
EGREP="$ac_cv_path_EGREP"
3315
if test $ac_cv_c_compiler_gnu = yes; then
3316
{ $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3317
$as_echo_n "checking whether $CC needs -traditional... " >&6; }
3318
if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3319
$as_echo_n "(cached) " >&6
3321
ac_pattern="Autoconf.*'x'"
3322
cat >conftest.$ac_ext <<_ACEOF
3325
cat confdefs.h >>conftest.$ac_ext
3326
cat >>conftest.$ac_ext <<_ACEOF
3327
/* end confdefs.h. */
3331
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3332
$EGREP "$ac_pattern" >/dev/null 2>&1; then
3333
ac_cv_prog_gcc_traditional=yes
3335
ac_cv_prog_gcc_traditional=no
3340
if test $ac_cv_prog_gcc_traditional = no; then
3341
cat >conftest.$ac_ext <<_ACEOF
3344
cat confdefs.h >>conftest.$ac_ext
3345
cat >>conftest.$ac_ext <<_ACEOF
3346
/* end confdefs.h. */
3350
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3351
$EGREP "$ac_pattern" >/dev/null 2>&1; then
3352
ac_cv_prog_gcc_traditional=yes
3358
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3359
$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
3360
if test $ac_cv_prog_gcc_traditional = yes; then
3361
CC="$CC -traditional"
3366
{ $as_echo "$as_me:$LINENO: checking whether using GNU C" >&5
3367
$as_echo_n "checking whether using GNU C... " >&6; }
3368
if test "${cl_cv_prog_cc_gcc+set}" = set; then
3369
$as_echo_n "(cached) " >&6
3372
cat >conftest.$ac_ext <<_ACEOF
3375
cat confdefs.h >>conftest.$ac_ext
3376
cat >>conftest.$ac_ext <<_ACEOF
3377
/* end confdefs.h. */
3383
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3384
$EGREP "yes" >/dev/null 2>&1; then
3385
cl_cv_prog_cc_gcc=yes
3387
cl_cv_prog_cc_gcc=no
3393
{ $as_echo "$as_me:$LINENO: result: $cl_cv_prog_cc_gcc" >&5
3394
$as_echo "$cl_cv_prog_cc_gcc" >&6; }
3395
if test $cl_cv_prog_cc_gcc = yes; then
3397
GCC_X_NONE='-x none'
3403
if test -n "$ac_tool_prefix"; then
3404
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3405
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3406
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3407
$as_echo_n "checking for $ac_word... " >&6; }
3408
if test "${ac_cv_prog_RANLIB+set}" = set; then
3409
$as_echo_n "(cached) " >&6
3411
if test -n "$RANLIB"; then
3412
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3414
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3418
test -z "$as_dir" && as_dir=.
3419
for ac_exec_ext in '' $ac_executable_extensions; do
3420
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3421
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3422
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3431
RANLIB=$ac_cv_prog_RANLIB
3432
if test -n "$RANLIB"; then
3433
{ $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
3434
$as_echo "$RANLIB" >&6; }
3436
{ $as_echo "$as_me:$LINENO: result: no" >&5
3437
$as_echo "no" >&6; }
3442
if test -z "$ac_cv_prog_RANLIB"; then
3443
ac_ct_RANLIB=$RANLIB
3444
# Extract the first word of "ranlib", so it can be a program name with args.
3445
set dummy ranlib; ac_word=$2
3446
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3447
$as_echo_n "checking for $ac_word... " >&6; }
3448
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3449
$as_echo_n "(cached) " >&6
3451
if test -n "$ac_ct_RANLIB"; then
3452
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3454
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3458
test -z "$as_dir" && as_dir=.
3459
for ac_exec_ext in '' $ac_executable_extensions; do
3460
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3461
ac_cv_prog_ac_ct_RANLIB="ranlib"
3462
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3471
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3472
if test -n "$ac_ct_RANLIB"; then
3473
{ $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3474
$as_echo "$ac_ct_RANLIB" >&6; }
3476
{ $as_echo "$as_me:$LINENO: result: no" >&5
3477
$as_echo "no" >&6; }
3480
if test "x$ac_ct_RANLIB" = x; then
3483
case $cross_compiling:$ac_tool_warned in
3485
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3486
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3487
ac_tool_warned=yes ;;
3489
RANLIB=$ac_ct_RANLIB
3492
RANLIB="$ac_cv_prog_RANLIB"
3495
{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3496
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3498
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3499
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3500
$as_echo_n "(cached) " >&6
3502
cat >conftest.make <<\_ACEOF
3505
@echo '@@@%%%=$(MAKE)=@@@%%%'
3507
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3508
case `${MAKE-make} -f conftest.make 2>/dev/null` in
3510
eval ac_cv_prog_make_${ac_make}_set=yes;;
3512
eval ac_cv_prog_make_${ac_make}_set=no;;
3516
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3517
{ $as_echo "$as_me:$LINENO: result: yes" >&5
3518
$as_echo "yes" >&6; }
3521
{ $as_echo "$as_me:$LINENO: result: no" >&5
3522
$as_echo "no" >&6; }
3523
SET_MAKE="MAKE=${MAKE-make}"
3527
for ac_dir in ../build-aux "$srcdir"/../build-aux; do
3528
if test -f "$ac_dir/install-sh"; then
3530
ac_install_sh="$ac_aux_dir/install-sh -c"
3532
elif test -f "$ac_dir/install.sh"; then
3534
ac_install_sh="$ac_aux_dir/install.sh -c"
3536
elif test -f "$ac_dir/shtool"; then
3538
ac_install_sh="$ac_aux_dir/shtool install -c"
3542
if test -z "$ac_aux_dir"; then
3543
{ { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ../build-aux \"$srcdir\"/../build-aux" >&5
3544
$as_echo "$as_me: error: cannot find install-sh or install.sh in ../build-aux \"$srcdir\"/../build-aux" >&2;}
3545
{ (exit 1); exit 1; }; }
3548
# These three variables are undocumented and unsupported,
3549
# and are intended to be withdrawn in a future Autoconf release.
3550
# They can cause serious problems if a builder's source tree is in a directory
3551
# whose full name contains unusual characters.
3552
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3553
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3554
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3557
# Find a good install program. We prefer a C program (faster),
3558
# so one script is as good as another. But avoid the broken or
3559
# incompatible versions:
3560
# SysV /etc/install, /usr/sbin/install
3561
# SunOS /usr/etc/install
3562
# IRIX /sbin/install
3564
# AmigaOS /C/install, which installs bootblocks on floppy discs
3565
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3566
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3567
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3568
# OS/2's system install, which has a completely different semantic
3569
# ./install, which can be erroneously created by make from ./install.sh.
3570
# Reject install programs that cannot install multiple files.
3571
{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3572
$as_echo_n "checking for a BSD-compatible install... " >&6; }
3573
if test -z "$INSTALL"; then
3574
if test "${ac_cv_path_install+set}" = set; then
3575
$as_echo_n "(cached) " >&6
3577
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3581
test -z "$as_dir" && as_dir=.
3582
# Account for people who put trailing slashes in PATH elements.
3584
./ | .// | /cC/* | \
3585
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3586
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3589
# OSF1 and SCO ODT 3.0 have their own names for install.
3590
# Don't use installbsd from OSF since it installs stuff as root
3592
for ac_prog in ginstall scoinst install; do
3593
for ac_exec_ext in '' $ac_executable_extensions; do
3594
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3595
if test $ac_prog = install &&
3596
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3597
# AIX install. It has an incompatible calling convention.
3599
elif test $ac_prog = install &&
3600
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3601
# program-specific install script used by HP pwplus--don't use.
3604
rm -rf conftest.one conftest.two conftest.dir
3605
echo one > conftest.one
3606
echo two > conftest.two
3608
if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3609
test -s conftest.one && test -s conftest.two &&
3610
test -s conftest.dir/conftest.one &&
3611
test -s conftest.dir/conftest.two
3613
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3626
rm -rf conftest.one conftest.two conftest.dir
3629
if test "${ac_cv_path_install+set}" = set; then
3630
INSTALL=$ac_cv_path_install
3632
# As a last resort, use the slow shell script. Don't cache a
3633
# value for INSTALL within a source directory, because that will
3634
# break other packages using the cache if that directory is
3635
# removed, or if the value is a relative name.
3636
INSTALL=$ac_install_sh
3639
{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3640
$as_echo "$INSTALL" >&6; }
3642
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3643
# It thinks the first close brace ends the variable substitution.
3644
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3646
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3648
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3650
{ $as_echo "$as_me:$LINENO: checking how to make hard links" >&5
3651
$as_echo_n "checking how to make hard links... " >&6; }
3652
if test "${cl_cv_prog_LN+set}" = set; then
3653
$as_echo_n "(cached) " >&6
3656
rm -f conftestdata conftestfile
3657
echo data > conftestfile
3658
if ln conftestfile conftestdata 2>/dev/null; then
3661
cl_cv_prog_LN="cp -p"
3663
rm -f conftestdata conftestfile
3666
{ $as_echo "$as_me:$LINENO: result: $cl_cv_prog_LN" >&5
3667
$as_echo "$cl_cv_prog_LN" >&6; }
3670
{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3671
$as_echo_n "checking whether ln -s works... " >&6; }
3672
if test "${cl_cv_prog_LN_S_works+set}" = set; then
3673
$as_echo_n "(cached) " >&6
3676
if ln -s X conftestdata 2>/dev/null; then
3677
cl_cv_prog_LN_S_works=yes
3679
cl_cv_prog_LN_S_works=no
3684
{ $as_echo "$as_me:$LINENO: result: $cl_cv_prog_LN_S_works" >&5
3685
$as_echo "$cl_cv_prog_LN_S_works" >&6; }
3686
if test $cl_cv_prog_LN_S_works = yes; then
3689
LN_S="$cl_cv_prog_LN"
3692
# Make sure we can run config.sub.
3693
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3694
{ { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3695
$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3696
{ (exit 1); exit 1; }; }
3698
{ $as_echo "$as_me:$LINENO: checking build system type" >&5
3699
$as_echo_n "checking build system type... " >&6; }
3700
if test "${ac_cv_build+set}" = set; then
3701
$as_echo_n "(cached) " >&6
3703
ac_build_alias=$build_alias
3704
test "x$ac_build_alias" = x &&
3705
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3706
test "x$ac_build_alias" = x &&
3707
{ { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3708
$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3709
{ (exit 1); exit 1; }; }
3710
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3711
{ { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3712
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3713
{ (exit 1); exit 1; }; }
3716
{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3717
$as_echo "$ac_cv_build" >&6; }
3718
case $ac_cv_build in
3720
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3721
$as_echo "$as_me: error: invalid value of canonical build" >&2;}
3722
{ (exit 1); exit 1; }; };;
3725
ac_save_IFS=$IFS; IFS='-'
3731
# Remember, the first character of IFS is used to create $*,
3732
# except with old shells:
3735
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3738
{ $as_echo "$as_me:$LINENO: checking host system type" >&5
3739
$as_echo_n "checking host system type... " >&6; }
3740
if test "${ac_cv_host+set}" = set; then
3741
$as_echo_n "(cached) " >&6
3743
if test "x$host_alias" = x; then
3744
ac_cv_host=$ac_cv_build
3746
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3747
{ { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3748
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3749
{ (exit 1); exit 1; }; }
3753
{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3754
$as_echo "$ac_cv_host" >&6; }
3757
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3758
$as_echo "$as_me: error: invalid value of canonical host" >&2;}
3759
{ (exit 1); exit 1; }; };;
3762
ac_save_IFS=$IFS; IFS='-'
3768
# Remember, the first character of IFS is used to create $*,
3769
# except with old shells:
3772
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3780
alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] )
3783
hppa1.0 | hppa1.1 | hppa2.0* | hppa64 )
3787
host_cpu_abi=powerpc
3789
c1 | c2 | c32 | c34 | c38 | c4 )
3793
{ $as_echo "$as_me:$LINENO: checking for ARMel" >&5
3794
$as_echo_n "checking for ARMel... " >&6; }
3795
if test "${ffcall_cv_host_armel+set}" = set; then
3796
$as_echo_n "(cached) " >&6
3798
cat >conftest.$ac_ext <<_ACEOF
3801
cat confdefs.h >>conftest.$ac_ext
3802
cat >>conftest.$ac_ext <<_ACEOF
3803
/* end confdefs.h. */
3804
#if defined(__ARMEL__)
3809
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3810
$EGREP "yes" >/dev/null 2>&1; then
3811
ffcall_cv_host_armel=yes
3813
ffcall_cv_host_armel=no
3818
{ $as_echo "$as_me:$LINENO: result: $ffcall_cv_host_armel" >&5
3819
$as_echo "$ffcall_cv_host_armel" >&6; }
3820
if test $ffcall_cv_host_armel = yes; then
3827
{ $as_echo "$as_me:$LINENO: checking for 64-bit MIPS" >&5
3828
$as_echo_n "checking for 64-bit MIPS... " >&6; }
3829
if test "${ffcall_cv_host_mips64+set}" = set; then
3830
$as_echo_n "(cached) " >&6
3832
cat >conftest.$ac_ext <<_ACEOF
3835
cat confdefs.h >>conftest.$ac_ext
3836
cat >>conftest.$ac_ext <<_ACEOF
3837
/* end confdefs.h. */
3838
#if defined(_MIPS_SZLONG) && (_MIPS_SZLONG == 64)
3843
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3844
$EGREP "yes" >/dev/null 2>&1; then
3845
ffcall_cv_host_mips64=yes
3847
ffcall_cv_host_mips64=no
3852
{ $as_echo "$as_me:$LINENO: result: $ffcall_cv_host_mips64" >&5
3853
$as_echo "$ffcall_cv_host_mips64" >&6; }
3854
if test $ffcall_cv_host_mips64 = yes; then
3857
{ $as_echo "$as_me:$LINENO: checking for MIPS with n32 ABI" >&5
3858
$as_echo_n "checking for MIPS with n32 ABI... " >&6; }
3859
if test "${ffcall_cv_host_mipsn32+set}" = set; then
3860
$as_echo_n "(cached) " >&6
3862
cat >conftest.$ac_ext <<_ACEOF
3865
cat confdefs.h >>conftest.$ac_ext
3866
cat >>conftest.$ac_ext <<_ACEOF
3867
/* end confdefs.h. */
3873
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3874
$EGREP "yes" >/dev/null 2>&1; then
3875
ffcall_cv_host_mipsn32=yes
3877
ffcall_cv_host_mipsn32=no
3882
{ $as_echo "$as_me:$LINENO: result: $ffcall_cv_host_mipsn32" >&5
3883
$as_echo "$ffcall_cv_host_mipsn32" >&6; }
3884
if test $ffcall_cv_host_mipsn32 = yes; then
3885
host_cpu_abi=mipsn32
3892
{ $as_echo "$as_me:$LINENO: checking for 64-bit PowerPC" >&5
3893
$as_echo_n "checking for 64-bit PowerPC... " >&6; }
3894
if test "${ffcall_cv_host_powerpc64+set}" = set; then
3895
$as_echo_n "(cached) " >&6
3897
cat >conftest.$ac_ext <<_ACEOF
3900
cat confdefs.h >>conftest.$ac_ext
3901
cat >>conftest.$ac_ext <<_ACEOF
3902
/* end confdefs.h. */
3903
#if defined(__powerpc64__) || defined(_ARCH_PPC64)
3908
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3909
$EGREP "yes" >/dev/null 2>&1; then
3910
ffcall_cv_host_powerpc64=yes
3912
ffcall_cv_host_powerpc64=no
3917
{ $as_echo "$as_me:$LINENO: result: $ffcall_cv_host_powerpc64" >&5
3918
$as_echo "$ffcall_cv_host_powerpc64" >&6; }
3919
if test $ffcall_cv_host_powerpc64 = yes; then
3920
host_cpu_abi=powerpc64
3922
host_cpu_abi=powerpc
3926
{ $as_echo "$as_me:$LINENO: checking for 64-bit SPARC" >&5
3927
$as_echo_n "checking for 64-bit SPARC... " >&6; }
3928
if test "${ffcall_cv_host_sparc64+set}" = set; then
3929
$as_echo_n "(cached) " >&6
3931
cat >conftest.$ac_ext <<_ACEOF
3934
cat confdefs.h >>conftest.$ac_ext
3935
cat >>conftest.$ac_ext <<_ACEOF
3936
/* end confdefs.h. */
3937
#if defined(__sparcv9) || defined(__arch64__)
3942
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3943
$EGREP "yes" >/dev/null 2>&1; then
3944
ffcall_cv_host_sparc64=yes
3946
ffcall_cv_host_sparc64=no
3951
{ $as_echo "$as_me:$LINENO: result: $ffcall_cv_host_sparc64" >&5
3952
$as_echo "$ffcall_cv_host_sparc64" >&6; }
3953
if test $ffcall_cv_host_sparc64 = yes; then
3954
host_cpu_abi=sparc64
3960
{ $as_echo "$as_me:$LINENO: checking for 64-bit x86_64" >&5
3961
$as_echo_n "checking for 64-bit x86_64... " >&6; }
3962
if test "${ffcall_cv_host_x86_64+set}" = set; then
3963
$as_echo_n "(cached) " >&6
3965
cat >conftest.$ac_ext <<_ACEOF
3968
cat confdefs.h >>conftest.$ac_ext
3969
cat >>conftest.$ac_ext <<_ACEOF
3970
/* end confdefs.h. */
3971
#if defined(__LP64__) || defined(__x86_64__) || defined(__amd64__)
3976
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3977
$EGREP "yes" >/dev/null 2>&1; then
3978
ffcall_cv_host_x86_64=yes
3980
ffcall_cv_host_x86_64=no
3985
{ $as_echo "$as_me:$LINENO: result: $ffcall_cv_host_x86_64" >&5
3986
$as_echo "$ffcall_cv_host_x86_64" >&6; }
3987
if test $ffcall_cv_host_x86_64 = yes; then
3994
host_cpu_abi=$host_cpu
3998
cat >> confdefs.h <<EOF
3999
#ifndef __${host_cpu_abi}__
4000
#define __${host_cpu_abi}__ 1
4005
# Check whether --enable-shared was given.
4006
if test "${enable_shared+set}" = set; then
4007
enableval=$enable_shared; p=${PACKAGE-default}
4009
yes) enable_shared=yes ;;
4010
no) enable_shared=no ;;
4013
# Look at the argument we got. We use all the common list separators.
4014
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4015
for pkg in $enableval; do
4017
if test "X$pkg" = "X$p"; then
4030
# Check whether --enable-static was given.
4031
if test "${enable_static+set}" = set; then
4032
enableval=$enable_static; p=${PACKAGE-default}
4034
yes) enable_static=yes ;;
4035
no) enable_static=no ;;
4038
# Look at the argument we got. We use all the common list separators.
4039
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4040
for pkg in $enableval; do
4042
if test "X$pkg" = "X$p"; then
4054
# Check whether --enable-fast-install was given.
4055
if test "${enable_fast_install+set}" = set; then
4056
enableval=$enable_fast_install; p=${PACKAGE-default}
4058
yes) enable_fast_install=yes ;;
4059
no) enable_fast_install=no ;;
4061
enable_fast_install=no
4062
# Look at the argument we got. We use all the common list separators.
4063
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4064
for pkg in $enableval; do
4066
if test "X$pkg" = "X$p"; then
4067
enable_fast_install=yes
4074
enable_fast_install=yes
4078
{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4079
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4080
if test "${lt_cv_path_SED+set}" = set; then
4081
$as_echo_n "(cached) " >&6
4083
# Loop through the user's path and test for sed and gsed.
4084
# Then use that list of sed's as ones to test for truncation.
4085
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4089
test -z "$as_dir" && as_dir=.
4090
for lt_ac_prog in sed gsed; do
4091
for ac_exec_ext in '' $ac_executable_extensions; do
4092
if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
4093
lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4101
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4102
# along with /bin/sed that truncates output.
4103
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4104
test ! -f $lt_ac_sed && continue
4105
cat /dev/null > conftest.in
4107
echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4108
# Check for GNU sed and select it if it is found.
4109
if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4110
lt_cv_path_SED=$lt_ac_sed
4114
cat conftest.in conftest.in >conftest.tmp
4115
mv conftest.tmp conftest.in
4116
cp conftest.in conftest.nl
4118
$lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4119
cmp -s conftest.out conftest.nl || break
4120
# 10000 chars as input seems more than enough
4121
test $lt_ac_count -gt 10 && break
4122
lt_ac_count=`expr $lt_ac_count + 1`
4123
if test $lt_ac_count -gt $lt_ac_max; then
4124
lt_ac_max=$lt_ac_count
4125
lt_cv_path_SED=$lt_ac_sed
4134
{ $as_echo "$as_me:$LINENO: result: $SED" >&5
4135
$as_echo "$SED" >&6; }
4138
# Check whether --with-gnu-ld was given.
4139
if test "${with_gnu_ld+set}" = set; then
4140
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4146
if test "$GCC" = yes; then
4147
# Check if gcc -print-prog-name=ld gives a path.
4148
{ $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4149
$as_echo_n "checking for ld used by $CC... " >&6; }
4152
# gcc leaves a trailing carriage return which upsets mingw
4153
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4155
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4158
# Accept absolute paths.
4160
re_direlt='/[^/][^/]*/\.\./'
4161
# Canonicalize the pathname of ld
4162
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4163
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4164
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4166
test -z "$LD" && LD="$ac_prog"
4169
# If it fails, then pretend we aren't using GCC.
4173
# If it is relative, then search for the first ld in PATH.
4177
elif test "$with_gnu_ld" = yes; then
4178
{ $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4179
$as_echo_n "checking for GNU ld... " >&6; }
4181
{ $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4182
$as_echo_n "checking for non-GNU ld... " >&6; }
4184
if test "${lt_cv_path_LD+set}" = set; then
4185
$as_echo_n "(cached) " >&6
4187
if test -z "$LD"; then
4188
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4189
for ac_dir in $PATH; do
4191
test -z "$ac_dir" && ac_dir=.
4192
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4193
lt_cv_path_LD="$ac_dir/$ac_prog"
4194
# Check to see if the program is GNU ld. I'd rather use --version,
4195
# but apparently some variants of GNU ld only accept -v.
4196
# Break only if it was the GNU/non-GNU ld that we prefer.
4197
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4198
*GNU* | *'with BFD'*)
4199
test "$with_gnu_ld" != no && break
4202
test "$with_gnu_ld" != yes && break
4209
lt_cv_path_LD="$LD" # Let the user override the test with a path.
4214
if test -n "$LD"; then
4215
{ $as_echo "$as_me:$LINENO: result: $LD" >&5
4216
$as_echo "$LD" >&6; }
4218
{ $as_echo "$as_me:$LINENO: result: no" >&5
4219
$as_echo "no" >&6; }
4221
test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4222
$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4223
{ (exit 1); exit 1; }; }
4224
{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4225
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4226
if test "${lt_cv_prog_gnu_ld+set}" = set; then
4227
$as_echo_n "(cached) " >&6
4229
# I'd rather use --version here, but apparently some GNU lds only accept -v.
4230
case `$LD -v 2>&1 </dev/null` in
4231
*GNU* | *'with BFD'*)
4232
lt_cv_prog_gnu_ld=yes
4235
lt_cv_prog_gnu_ld=no
4239
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4240
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4241
with_gnu_ld=$lt_cv_prog_gnu_ld
4244
{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4245
$as_echo_n "checking for $LD option to reload object files... " >&6; }
4246
if test "${lt_cv_ld_reload_flag+set}" = set; then
4247
$as_echo_n "(cached) " >&6
4249
lt_cv_ld_reload_flag='-r'
4251
{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4252
$as_echo "$lt_cv_ld_reload_flag" >&6; }
4253
reload_flag=$lt_cv_ld_reload_flag
4254
case $reload_flag in
4256
*) reload_flag=" $reload_flag" ;;
4258
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4261
if test "$GCC" = yes; then
4262
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4264
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4269
{ $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4270
$as_echo_n "checking for BSD-compatible nm... " >&6; }
4271
if test "${lt_cv_path_NM+set}" = set; then
4272
$as_echo_n "(cached) " >&6
4274
if test -n "$NM"; then
4275
# Let the user override the test.
4278
lt_nm_to_check="${ac_tool_prefix}nm"
4279
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4280
lt_nm_to_check="$lt_nm_to_check nm"
4282
for lt_tmp_nm in $lt_nm_to_check; do
4283
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4284
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4286
test -z "$ac_dir" && ac_dir=.
4287
tmp_nm="$ac_dir/$lt_tmp_nm"
4288
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4289
# Check to see if the nm accepts a BSD-compat flag.
4290
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4291
# nm: unknown option "B" ignored
4292
# Tru64's nm complains that /dev/null is an invalid object file
4293
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4294
*/dev/null* | *'Invalid file or object type'*)
4295
lt_cv_path_NM="$tmp_nm -B"
4299
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4301
lt_cv_path_NM="$tmp_nm -p"
4305
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4306
continue # so that we can try to find one that supports BSD flags
4315
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4318
{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4319
$as_echo "$lt_cv_path_NM" >&6; }
4322
{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4323
$as_echo_n "checking whether ln -s works... " >&6; }
4325
if test "$LN_S" = "ln -s"; then
4326
{ $as_echo "$as_me:$LINENO: result: yes" >&5
4327
$as_echo "yes" >&6; }
4329
{ $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4330
$as_echo "no, using $LN_S" >&6; }
4333
{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4334
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4335
if test "${lt_cv_deplibs_check_method+set}" = set; then
4336
$as_echo_n "(cached) " >&6
4338
lt_cv_file_magic_cmd='$MAGIC_CMD'
4339
lt_cv_file_magic_test_file=
4340
lt_cv_deplibs_check_method='unknown'
4341
# Need to set the preceding variable on all platforms that support
4342
# interlibrary dependencies.
4343
# 'none' -- dependencies not supported.
4344
# `unknown' -- same as none, but documents that we really don't know.
4345
# 'pass_all' -- all dependencies passed with no checks.
4346
# 'test_compile' -- check by making test program.
4347
# 'file_magic [[regex]]' -- check by looking for files in library path
4348
# which responds to the $file_magic_cmd with a given extended regex.
4349
# If you have `file' or equivalent on your system and you're not sure
4350
# whether `pass_all' will *always* work, you probably want this one.
4354
lt_cv_deplibs_check_method=pass_all
4358
lt_cv_deplibs_check_method=pass_all
4362
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4363
lt_cv_file_magic_cmd='/usr/bin/file -L'
4364
lt_cv_file_magic_test_file=/shlib/libc.so
4368
# func_win32_libid is a shell function defined in ltmain.sh
4369
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4370
lt_cv_file_magic_cmd='func_win32_libid'
4374
# Base MSYS/MinGW do not provide the 'file' command needed by
4375
# func_win32_libid shell function, so use a weaker test based on 'objdump',
4376
# unless we find 'file', for example because we are cross-compiling.
4377
if ( file / ) >/dev/null 2>&1; then
4378
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4379
lt_cv_file_magic_cmd='func_win32_libid'
4381
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4382
lt_cv_file_magic_cmd='$OBJDUMP -f'
4386
darwin* | rhapsody*)
4387
lt_cv_deplibs_check_method=pass_all
4390
freebsd* | dragonfly*)
4391
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4394
# Not sure whether the presence of OpenBSD here was a mistake.
4395
# Let's accept both of them until this is cleared up.
4396
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4397
lt_cv_file_magic_cmd=/usr/bin/file
4398
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4402
lt_cv_deplibs_check_method=pass_all
4407
lt_cv_deplibs_check_method=pass_all
4410
hpux10.20* | hpux11*)
4411
lt_cv_file_magic_cmd=/usr/bin/file
4414
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4415
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4418
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]'
4419
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4422
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4423
lt_cv_file_magic_test_file=/usr/lib/libc.sl
4429
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4430
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4433
irix5* | irix6* | nonstopux*)
4435
*-32|*"-32 ") libmagic=32-bit;;
4436
*-n32|*"-n32 ") libmagic=N32;;
4437
*-64|*"-64 ") libmagic=64-bit;;
4438
*) libmagic=never-match;;
4440
lt_cv_deplibs_check_method=pass_all
4443
# This must be Linux ELF.
4444
linux* | k*bsd*-gnu)
4445
lt_cv_deplibs_check_method=pass_all
4449
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4450
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4452
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4457
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4458
lt_cv_file_magic_cmd=/usr/bin/file
4459
lt_cv_file_magic_test_file=/usr/lib/libnls.so
4463
lt_cv_deplibs_check_method=unknown
4467
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4468
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4470
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4474
osf3* | osf4* | osf5*)
4475
lt_cv_deplibs_check_method=pass_all
4479
lt_cv_deplibs_check_method=pass_all
4483
lt_cv_deplibs_check_method=pass_all
4487
case $host_vendor in
4489
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]'
4490
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4493
lt_cv_deplibs_check_method=pass_all
4496
lt_cv_file_magic_cmd='/bin/file'
4497
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4500
lt_cv_file_magic_cmd='/bin/file'
4501
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4502
lt_cv_file_magic_test_file=/lib/libc.so
4505
lt_cv_deplibs_check_method=pass_all
4508
lt_cv_deplibs_check_method=pass_all
4513
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4514
lt_cv_deplibs_check_method=pass_all
4519
{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4520
$as_echo "$lt_cv_deplibs_check_method" >&6; }
4521
file_magic_cmd=$lt_cv_file_magic_cmd
4522
deplibs_check_method=$lt_cv_deplibs_check_method
4523
test -z "$deplibs_check_method" && deplibs_check_method=unknown
4528
# If no C compiler was specified, use CC.
4531
# If no C compiler flags were specified, use CFLAGS.
4532
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4534
# Allow CC to be a program name with arguments.
4537
# Check whether --enable-libtool-lock was given.
4538
if test "${enable_libtool_lock+set}" = set; then
4539
enableval=$enable_libtool_lock;
4542
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4544
# Some flags need to be propagated to the compiler or linker for good
4548
# Find out which ABI we are using.
4549
echo 'int i;' > conftest.$ac_ext
4550
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4551
(eval $ac_compile) 2>&5
4553
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554
(exit $ac_status); }; then
4555
case `/usr/bin/file conftest.$ac_objext` in
4567
# Find out which ABI we are using.
4568
echo '#line 4568 "configure"' > conftest.$ac_ext
4569
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4570
(eval $ac_compile) 2>&5
4572
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4573
(exit $ac_status); }; then
4574
if test "$lt_cv_prog_gnu_ld" = yes; then
4575
case `/usr/bin/file conftest.$ac_objext` in
4577
LD="${LD-ld} -melf32bsmip"
4580
LD="${LD-ld} -melf32bmipn32"
4583
LD="${LD-ld} -melf64bmip"
4587
case `/usr/bin/file conftest.$ac_objext` in
4603
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4604
s390*-*linux*|sparc*-*linux*)
4605
# Find out which ABI we are using.
4606
echo 'int i;' > conftest.$ac_ext
4607
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4608
(eval $ac_compile) 2>&5
4610
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4611
(exit $ac_status); }; then
4612
case `/usr/bin/file conftest.o` in
4615
x86_64-*kfreebsd*-gnu)
4616
LD="${LD-ld} -m elf_i386_fbsd"
4619
LD="${LD-ld} -m elf_i386"
4621
ppc64-*linux*|powerpc64-*linux*)
4622
LD="${LD-ld} -m elf32ppclinux"
4625
LD="${LD-ld} -m elf_s390"
4628
LD="${LD-ld} -m elf32_sparc"
4634
x86_64-*kfreebsd*-gnu)
4635
LD="${LD-ld} -m elf_x86_64_fbsd"
4638
LD="${LD-ld} -m elf_x86_64"
4640
ppc*-*linux*|powerpc*-*linux*)
4641
LD="${LD-ld} -m elf64ppc"
4644
LD="${LD-ld} -m elf64_s390"
4647
LD="${LD-ld} -m elf64_sparc"
4657
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
4658
SAVE_CFLAGS="$CFLAGS"
4659
CFLAGS="$CFLAGS -belf"
4660
{ $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4661
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
4662
if test "${lt_cv_cc_needs_belf+set}" = set; then
4663
$as_echo_n "(cached) " >&6
4666
ac_cpp='$CPP $CPPFLAGS'
4667
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4668
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4669
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4671
cat >conftest.$ac_ext <<_ACEOF
4674
cat confdefs.h >>conftest.$ac_ext
4675
cat >>conftest.$ac_ext <<_ACEOF
4676
/* end confdefs.h. */
4686
rm -f conftest.$ac_objext conftest$ac_exeext
4687
if { (ac_try="$ac_link"
4689
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4690
*) ac_try_echo=$ac_try;;
4692
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4693
$as_echo "$ac_try_echo") >&5
4694
(eval "$ac_link") 2>conftest.er1
4696
grep -v '^ *+' conftest.er1 >conftest.err
4698
cat conftest.err >&5
4699
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4700
(exit $ac_status); } && {
4701
test -z "$ac_c_werror_flag" ||
4702
test ! -s conftest.err
4703
} && test -s conftest$ac_exeext && {
4704
test "$cross_compiling" = yes ||
4705
$as_test_x conftest$ac_exeext
4707
lt_cv_cc_needs_belf=yes
4709
$as_echo "$as_me: failed program was:" >&5
4710
sed 's/^/| /' conftest.$ac_ext >&5
4712
lt_cv_cc_needs_belf=no
4715
rm -rf conftest.dSYM
4716
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4717
conftest$ac_exeext conftest.$ac_ext
4719
ac_cpp='$CPP $CPPFLAGS'
4720
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4721
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4722
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4725
{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4726
$as_echo "$lt_cv_cc_needs_belf" >&6; }
4727
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4728
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4729
CFLAGS="$SAVE_CFLAGS"
4733
# Find out which ABI we are using.
4734
echo 'int i;' > conftest.$ac_ext
4735
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4736
(eval $ac_compile) 2>&5
4738
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4739
(exit $ac_status); }; then
4740
case `/usr/bin/file conftest.o` in
4742
case $lt_cv_prog_gnu_ld in
4743
yes*) LD="${LD-ld} -m elf64_sparc" ;;
4745
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4759
need_locks="$enable_libtool_lock"
4762
{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4763
$as_echo_n "checking for ANSI C header files... " >&6; }
4764
if test "${ac_cv_header_stdc+set}" = set; then
4765
$as_echo_n "(cached) " >&6
4767
cat >conftest.$ac_ext <<_ACEOF
4770
cat confdefs.h >>conftest.$ac_ext
4771
cat >>conftest.$ac_ext <<_ACEOF
4772
/* end confdefs.h. */
4786
rm -f conftest.$ac_objext
4787
if { (ac_try="$ac_compile"
4789
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4790
*) ac_try_echo=$ac_try;;
4792
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4793
$as_echo "$ac_try_echo") >&5
4794
(eval "$ac_compile") 2>conftest.er1
4796
grep -v '^ *+' conftest.er1 >conftest.err
4798
cat conftest.err >&5
4799
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800
(exit $ac_status); } && {
4801
test -z "$ac_c_werror_flag" ||
4802
test ! -s conftest.err
4803
} && test -s conftest.$ac_objext; then
4804
ac_cv_header_stdc=yes
4806
$as_echo "$as_me: failed program was:" >&5
4807
sed 's/^/| /' conftest.$ac_ext >&5
4809
ac_cv_header_stdc=no
4812
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4814
if test $ac_cv_header_stdc = yes; then
4815
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4816
cat >conftest.$ac_ext <<_ACEOF
4819
cat confdefs.h >>conftest.$ac_ext
4820
cat >>conftest.$ac_ext <<_ACEOF
4821
/* end confdefs.h. */
4825
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4826
$EGREP "memchr" >/dev/null 2>&1; then
4829
ac_cv_header_stdc=no
4835
if test $ac_cv_header_stdc = yes; then
4836
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4837
cat >conftest.$ac_ext <<_ACEOF
4840
cat confdefs.h >>conftest.$ac_ext
4841
cat >>conftest.$ac_ext <<_ACEOF
4842
/* end confdefs.h. */
4846
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4847
$EGREP "free" >/dev/null 2>&1; then
4850
ac_cv_header_stdc=no
4856
if test $ac_cv_header_stdc = yes; then
4857
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4858
if test "$cross_compiling" = yes; then
4861
cat >conftest.$ac_ext <<_ACEOF
4864
cat confdefs.h >>conftest.$ac_ext
4865
cat >>conftest.$ac_ext <<_ACEOF
4866
/* end confdefs.h. */
4869
#if ((' ' & 0x0FF) == 0x020)
4870
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4871
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4873
# define ISLOWER(c) \
4874
(('a' <= (c) && (c) <= 'i') \
4875
|| ('j' <= (c) && (c) <= 'r') \
4876
|| ('s' <= (c) && (c) <= 'z'))
4877
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4880
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4885
for (i = 0; i < 256; i++)
4886
if (XOR (islower (i), ISLOWER (i))
4887
|| toupper (i) != TOUPPER (i))
4892
rm -f conftest$ac_exeext
4893
if { (ac_try="$ac_link"
4895
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4896
*) ac_try_echo=$ac_try;;
4898
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4899
$as_echo "$ac_try_echo") >&5
4900
(eval "$ac_link") 2>&5
4902
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4904
{ (case "(($ac_try" in
4905
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4906
*) ac_try_echo=$ac_try;;
4908
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4909
$as_echo "$ac_try_echo") >&5
4910
(eval "$ac_try") 2>&5
4912
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4913
(exit $ac_status); }; }; then
4916
$as_echo "$as_me: program exited with status $ac_status" >&5
4917
$as_echo "$as_me: failed program was:" >&5
4918
sed 's/^/| /' conftest.$ac_ext >&5
4921
ac_cv_header_stdc=no
4923
rm -rf conftest.dSYM
4924
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4930
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4931
$as_echo "$ac_cv_header_stdc" >&6; }
4932
if test $ac_cv_header_stdc = yes; then
4934
cat >>confdefs.h <<\_ACEOF
4935
#define STDC_HEADERS 1
4940
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4950
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4951
inttypes.h stdint.h unistd.h
4953
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4954
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4955
$as_echo_n "checking for $ac_header... " >&6; }
4956
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4957
$as_echo_n "(cached) " >&6
4959
cat >conftest.$ac_ext <<_ACEOF
4962
cat confdefs.h >>conftest.$ac_ext
4963
cat >>conftest.$ac_ext <<_ACEOF
4964
/* end confdefs.h. */
4965
$ac_includes_default
4967
#include <$ac_header>
4969
rm -f conftest.$ac_objext
4970
if { (ac_try="$ac_compile"
4972
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4973
*) ac_try_echo=$ac_try;;
4975
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4976
$as_echo "$ac_try_echo") >&5
4977
(eval "$ac_compile") 2>conftest.er1
4979
grep -v '^ *+' conftest.er1 >conftest.err
4981
cat conftest.err >&5
4982
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4983
(exit $ac_status); } && {
4984
test -z "$ac_c_werror_flag" ||
4985
test ! -s conftest.err
4986
} && test -s conftest.$ac_objext; then
4987
eval "$as_ac_Header=yes"
4989
$as_echo "$as_me: failed program was:" >&5
4990
sed 's/^/| /' conftest.$ac_ext >&5
4992
eval "$as_ac_Header=no"
4995
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4997
ac_res=`eval 'as_val=${'$as_ac_Header'}
4998
$as_echo "$as_val"'`
4999
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5000
$as_echo "$ac_res" >&6; }
5001
as_val=`eval 'as_val=${'$as_ac_Header'}
5002
$as_echo "$as_val"'`
5003
if test "x$as_val" = x""yes; then
5004
cat >>confdefs.h <<_ACEOF
5005
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5014
for ac_header in dlfcn.h
5016
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5017
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5018
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5019
$as_echo_n "checking for $ac_header... " >&6; }
5020
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5021
$as_echo_n "(cached) " >&6
5023
ac_res=`eval 'as_val=${'$as_ac_Header'}
5024
$as_echo "$as_val"'`
5025
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5026
$as_echo "$ac_res" >&6; }
5028
# Is the header compilable?
5029
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5030
$as_echo_n "checking $ac_header usability... " >&6; }
5031
cat >conftest.$ac_ext <<_ACEOF
5034
cat confdefs.h >>conftest.$ac_ext
5035
cat >>conftest.$ac_ext <<_ACEOF
5036
/* end confdefs.h. */
5037
$ac_includes_default
5038
#include <$ac_header>
5040
rm -f conftest.$ac_objext
5041
if { (ac_try="$ac_compile"
5043
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5044
*) ac_try_echo=$ac_try;;
5046
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5047
$as_echo "$ac_try_echo") >&5
5048
(eval "$ac_compile") 2>conftest.er1
5050
grep -v '^ *+' conftest.er1 >conftest.err
5052
cat conftest.err >&5
5053
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054
(exit $ac_status); } && {
5055
test -z "$ac_c_werror_flag" ||
5056
test ! -s conftest.err
5057
} && test -s conftest.$ac_objext; then
5058
ac_header_compiler=yes
5060
$as_echo "$as_me: failed program was:" >&5
5061
sed 's/^/| /' conftest.$ac_ext >&5
5063
ac_header_compiler=no
5066
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5067
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5068
$as_echo "$ac_header_compiler" >&6; }
5070
# Is the header present?
5071
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5072
$as_echo_n "checking $ac_header presence... " >&6; }
5073
cat >conftest.$ac_ext <<_ACEOF
5076
cat confdefs.h >>conftest.$ac_ext
5077
cat >>conftest.$ac_ext <<_ACEOF
5078
/* end confdefs.h. */
5079
#include <$ac_header>
5081
if { (ac_try="$ac_cpp conftest.$ac_ext"
5083
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5084
*) ac_try_echo=$ac_try;;
5086
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5087
$as_echo "$ac_try_echo") >&5
5088
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5090
grep -v '^ *+' conftest.er1 >conftest.err
5092
cat conftest.err >&5
5093
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5094
(exit $ac_status); } >/dev/null && {
5095
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5096
test ! -s conftest.err
5098
ac_header_preproc=yes
5100
$as_echo "$as_me: failed program was:" >&5
5101
sed 's/^/| /' conftest.$ac_ext >&5
5103
ac_header_preproc=no
5106
rm -f conftest.err conftest.$ac_ext
5107
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5108
$as_echo "$ac_header_preproc" >&6; }
5110
# So? What about this header?
5111
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5113
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5114
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5115
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5116
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5117
ac_header_preproc=yes
5120
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5121
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5122
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5123
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5124
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5125
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5126
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5127
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5128
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5129
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5130
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5131
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5135
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5136
$as_echo_n "checking for $ac_header... " >&6; }
5137
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5138
$as_echo_n "(cached) " >&6
5140
eval "$as_ac_Header=\$ac_header_preproc"
5142
ac_res=`eval 'as_val=${'$as_ac_Header'}
5143
$as_echo "$as_val"'`
5144
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5145
$as_echo "$ac_res" >&6; }
5148
as_val=`eval 'as_val=${'$as_ac_Header'}
5149
$as_echo "$as_val"'`
5150
if test "x$as_val" = x""yes; then
5151
cat >>confdefs.h <<_ACEOF
5152
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5160
ac_cpp='$CXXCPP $CPPFLAGS'
5161
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5162
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5163
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5164
if test -z "$CXX"; then
5165
if test -n "$CCC"; then
5168
if test -n "$ac_tool_prefix"; then
5169
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5171
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5172
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5173
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5174
$as_echo_n "checking for $ac_word... " >&6; }
5175
if test "${ac_cv_prog_CXX+set}" = set; then
5176
$as_echo_n "(cached) " >&6
5178
if test -n "$CXX"; then
5179
ac_cv_prog_CXX="$CXX" # Let the user override the test.
5181
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5185
test -z "$as_dir" && as_dir=.
5186
for ac_exec_ext in '' $ac_executable_extensions; do
5187
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5188
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5189
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5199
if test -n "$CXX"; then
5200
{ $as_echo "$as_me:$LINENO: result: $CXX" >&5
5201
$as_echo "$CXX" >&6; }
5203
{ $as_echo "$as_me:$LINENO: result: no" >&5
5204
$as_echo "no" >&6; }
5208
test -n "$CXX" && break
5211
if test -z "$CXX"; then
5213
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5215
# Extract the first word of "$ac_prog", so it can be a program name with args.
5216
set dummy $ac_prog; ac_word=$2
5217
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5218
$as_echo_n "checking for $ac_word... " >&6; }
5219
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5220
$as_echo_n "(cached) " >&6
5222
if test -n "$ac_ct_CXX"; then
5223
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5225
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5229
test -z "$as_dir" && as_dir=.
5230
for ac_exec_ext in '' $ac_executable_extensions; do
5231
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5232
ac_cv_prog_ac_ct_CXX="$ac_prog"
5233
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5242
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5243
if test -n "$ac_ct_CXX"; then
5244
{ $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5245
$as_echo "$ac_ct_CXX" >&6; }
5247
{ $as_echo "$as_me:$LINENO: result: no" >&5
5248
$as_echo "no" >&6; }
5252
test -n "$ac_ct_CXX" && break
5255
if test "x$ac_ct_CXX" = x; then
5258
case $cross_compiling:$ac_tool_warned in
5260
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5261
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5262
ac_tool_warned=yes ;;
5270
# Provide some information about the compiler.
5271
$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5274
{ (ac_try="$ac_compiler --version >&5"
5276
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5277
*) ac_try_echo=$ac_try;;
5279
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5280
$as_echo "$ac_try_echo") >&5
5281
(eval "$ac_compiler --version >&5") 2>&5
5283
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5284
(exit $ac_status); }
5285
{ (ac_try="$ac_compiler -v >&5"
5287
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5288
*) ac_try_echo=$ac_try;;
5290
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5291
$as_echo "$ac_try_echo") >&5
5292
(eval "$ac_compiler -v >&5") 2>&5
5294
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5295
(exit $ac_status); }
5296
{ (ac_try="$ac_compiler -V >&5"
5298
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5299
*) ac_try_echo=$ac_try;;
5301
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5302
$as_echo "$ac_try_echo") >&5
5303
(eval "$ac_compiler -V >&5") 2>&5
5305
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306
(exit $ac_status); }
5308
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5309
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5310
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5311
$as_echo_n "(cached) " >&6
5313
cat >conftest.$ac_ext <<_ACEOF
5316
cat confdefs.h >>conftest.$ac_ext
5317
cat >>conftest.$ac_ext <<_ACEOF
5318
/* end confdefs.h. */
5331
rm -f conftest.$ac_objext
5332
if { (ac_try="$ac_compile"
5334
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5335
*) ac_try_echo=$ac_try;;
5337
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5338
$as_echo "$ac_try_echo") >&5
5339
(eval "$ac_compile") 2>conftest.er1
5341
grep -v '^ *+' conftest.er1 >conftest.err
5343
cat conftest.err >&5
5344
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5345
(exit $ac_status); } && {
5346
test -z "$ac_cxx_werror_flag" ||
5347
test ! -s conftest.err
5348
} && test -s conftest.$ac_objext; then
5351
$as_echo "$as_me: failed program was:" >&5
5352
sed 's/^/| /' conftest.$ac_ext >&5
5357
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5358
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5361
{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5362
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5363
if test $ac_compiler_gnu = yes; then
5368
ac_test_CXXFLAGS=${CXXFLAGS+set}
5369
ac_save_CXXFLAGS=$CXXFLAGS
5370
{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5371
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
5372
if test "${ac_cv_prog_cxx_g+set}" = set; then
5373
$as_echo_n "(cached) " >&6
5375
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5376
ac_cxx_werror_flag=yes
5379
cat >conftest.$ac_ext <<_ACEOF
5382
cat confdefs.h >>conftest.$ac_ext
5383
cat >>conftest.$ac_ext <<_ACEOF
5384
/* end confdefs.h. */
5394
rm -f conftest.$ac_objext
5395
if { (ac_try="$ac_compile"
5397
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5398
*) ac_try_echo=$ac_try;;
5400
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5401
$as_echo "$ac_try_echo") >&5
5402
(eval "$ac_compile") 2>conftest.er1
5404
grep -v '^ *+' conftest.er1 >conftest.err
5406
cat conftest.err >&5
5407
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408
(exit $ac_status); } && {
5409
test -z "$ac_cxx_werror_flag" ||
5410
test ! -s conftest.err
5411
} && test -s conftest.$ac_objext; then
5412
ac_cv_prog_cxx_g=yes
5414
$as_echo "$as_me: failed program was:" >&5
5415
sed 's/^/| /' conftest.$ac_ext >&5
5418
cat >conftest.$ac_ext <<_ACEOF
5421
cat confdefs.h >>conftest.$ac_ext
5422
cat >>conftest.$ac_ext <<_ACEOF
5423
/* end confdefs.h. */
5433
rm -f conftest.$ac_objext
5434
if { (ac_try="$ac_compile"
5436
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5437
*) ac_try_echo=$ac_try;;
5439
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5440
$as_echo "$ac_try_echo") >&5
5441
(eval "$ac_compile") 2>conftest.er1
5443
grep -v '^ *+' conftest.er1 >conftest.err
5445
cat conftest.err >&5
5446
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5447
(exit $ac_status); } && {
5448
test -z "$ac_cxx_werror_flag" ||
5449
test ! -s conftest.err
5450
} && test -s conftest.$ac_objext; then
5453
$as_echo "$as_me: failed program was:" >&5
5454
sed 's/^/| /' conftest.$ac_ext >&5
5456
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5458
cat >conftest.$ac_ext <<_ACEOF
5461
cat confdefs.h >>conftest.$ac_ext
5462
cat >>conftest.$ac_ext <<_ACEOF
5463
/* end confdefs.h. */
5473
rm -f conftest.$ac_objext
5474
if { (ac_try="$ac_compile"
5476
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5477
*) ac_try_echo=$ac_try;;
5479
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5480
$as_echo "$ac_try_echo") >&5
5481
(eval "$ac_compile") 2>conftest.er1
5483
grep -v '^ *+' conftest.er1 >conftest.err
5485
cat conftest.err >&5
5486
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5487
(exit $ac_status); } && {
5488
test -z "$ac_cxx_werror_flag" ||
5489
test ! -s conftest.err
5490
} && test -s conftest.$ac_objext; then
5491
ac_cv_prog_cxx_g=yes
5493
$as_echo "$as_me: failed program was:" >&5
5494
sed 's/^/| /' conftest.$ac_ext >&5
5499
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5502
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5505
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5506
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5508
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5509
$as_echo "$ac_cv_prog_cxx_g" >&6; }
5510
if test "$ac_test_CXXFLAGS" = set; then
5511
CXXFLAGS=$ac_save_CXXFLAGS
5512
elif test $ac_cv_prog_cxx_g = yes; then
5513
if test "$GXX" = yes; then
5519
if test "$GXX" = yes; then
5526
ac_cpp='$CXXCPP $CPPFLAGS'
5527
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5528
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5529
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5533
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5534
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5535
(test "X$CXX" != "Xg++"))) ; then
5537
ac_cpp='$CXXCPP $CPPFLAGS'
5538
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5539
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5540
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5541
{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5542
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5543
if test -z "$CXXCPP"; then
5544
if test "${ac_cv_prog_CXXCPP+set}" = set; then
5545
$as_echo_n "(cached) " >&6
5547
# Double quotes because CXXCPP needs to be expanded
5548
for CXXCPP in "$CXX -E" "/lib/cpp"
5551
for ac_cxx_preproc_warn_flag in '' yes
5553
# Use a header file that comes with gcc, so configuring glibc
5554
# with a fresh cross-compiler works.
5555
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5556
# <limits.h> exists even on freestanding compilers.
5557
# On the NeXT, cc -E runs the code through the compiler's parser,
5558
# not just through cpp. "Syntax error" is here to catch this case.
5559
cat >conftest.$ac_ext <<_ACEOF
5562
cat confdefs.h >>conftest.$ac_ext
5563
cat >>conftest.$ac_ext <<_ACEOF
5564
/* end confdefs.h. */
5566
# include <limits.h>
5568
# include <assert.h>
5572
if { (ac_try="$ac_cpp conftest.$ac_ext"
5574
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5575
*) ac_try_echo=$ac_try;;
5577
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5578
$as_echo "$ac_try_echo") >&5
5579
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5581
grep -v '^ *+' conftest.er1 >conftest.err
5583
cat conftest.err >&5
5584
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5585
(exit $ac_status); } >/dev/null && {
5586
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5587
test ! -s conftest.err
5591
$as_echo "$as_me: failed program was:" >&5
5592
sed 's/^/| /' conftest.$ac_ext >&5
5594
# Broken: fails on valid input.
5598
rm -f conftest.err conftest.$ac_ext
5600
# OK, works on sane cases. Now check whether nonexistent headers
5601
# can be detected and how.
5602
cat >conftest.$ac_ext <<_ACEOF
5605
cat confdefs.h >>conftest.$ac_ext
5606
cat >>conftest.$ac_ext <<_ACEOF
5607
/* end confdefs.h. */
5608
#include <ac_nonexistent.h>
5610
if { (ac_try="$ac_cpp conftest.$ac_ext"
5612
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5613
*) ac_try_echo=$ac_try;;
5615
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5616
$as_echo "$ac_try_echo") >&5
5617
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5619
grep -v '^ *+' conftest.er1 >conftest.err
5621
cat conftest.err >&5
5622
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5623
(exit $ac_status); } >/dev/null && {
5624
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5625
test ! -s conftest.err
5627
# Broken: success on invalid input.
5630
$as_echo "$as_me: failed program was:" >&5
5631
sed 's/^/| /' conftest.$ac_ext >&5
5633
# Passes both tests.
5638
rm -f conftest.err conftest.$ac_ext
5641
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5642
rm -f conftest.err conftest.$ac_ext
5643
if $ac_preproc_ok; then
5648
ac_cv_prog_CXXCPP=$CXXCPP
5651
CXXCPP=$ac_cv_prog_CXXCPP
5653
ac_cv_prog_CXXCPP=$CXXCPP
5655
{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
5656
$as_echo "$CXXCPP" >&6; }
5658
for ac_cxx_preproc_warn_flag in '' yes
5660
# Use a header file that comes with gcc, so configuring glibc
5661
# with a fresh cross-compiler works.
5662
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5663
# <limits.h> exists even on freestanding compilers.
5664
# On the NeXT, cc -E runs the code through the compiler's parser,
5665
# not just through cpp. "Syntax error" is here to catch this case.
5666
cat >conftest.$ac_ext <<_ACEOF
5669
cat confdefs.h >>conftest.$ac_ext
5670
cat >>conftest.$ac_ext <<_ACEOF
5671
/* end confdefs.h. */
5673
# include <limits.h>
5675
# include <assert.h>
5679
if { (ac_try="$ac_cpp conftest.$ac_ext"
5681
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5682
*) ac_try_echo=$ac_try;;
5684
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5685
$as_echo "$ac_try_echo") >&5
5686
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5688
grep -v '^ *+' conftest.er1 >conftest.err
5690
cat conftest.err >&5
5691
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5692
(exit $ac_status); } >/dev/null && {
5693
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5694
test ! -s conftest.err
5698
$as_echo "$as_me: failed program was:" >&5
5699
sed 's/^/| /' conftest.$ac_ext >&5
5701
# Broken: fails on valid input.
5705
rm -f conftest.err conftest.$ac_ext
5707
# OK, works on sane cases. Now check whether nonexistent headers
5708
# can be detected and how.
5709
cat >conftest.$ac_ext <<_ACEOF
5712
cat confdefs.h >>conftest.$ac_ext
5713
cat >>conftest.$ac_ext <<_ACEOF
5714
/* end confdefs.h. */
5715
#include <ac_nonexistent.h>
5717
if { (ac_try="$ac_cpp conftest.$ac_ext"
5719
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5720
*) ac_try_echo=$ac_try;;
5722
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5723
$as_echo "$ac_try_echo") >&5
5724
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5726
grep -v '^ *+' conftest.er1 >conftest.err
5728
cat conftest.err >&5
5729
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730
(exit $ac_status); } >/dev/null && {
5731
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5732
test ! -s conftest.err
5734
# Broken: success on invalid input.
5737
$as_echo "$as_me: failed program was:" >&5
5738
sed 's/^/| /' conftest.$ac_ext >&5
5740
# Passes both tests.
5745
rm -f conftest.err conftest.$ac_ext
5748
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5749
rm -f conftest.err conftest.$ac_ext
5750
if $ac_preproc_ok; then
5753
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5754
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5755
{ { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5756
See \`config.log' for more details." >&5
5757
$as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5758
See \`config.log' for more details." >&2;}
5759
{ (exit 1); exit 1; }; }; }
5763
ac_cpp='$CXXCPP $CPPFLAGS'
5764
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5765
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5766
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5772
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5773
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5774
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5775
if test -n "$ac_tool_prefix"; then
5776
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
5778
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5779
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5780
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5781
$as_echo_n "checking for $ac_word... " >&6; }
5782
if test "${ac_cv_prog_F77+set}" = set; then
5783
$as_echo_n "(cached) " >&6
5785
if test -n "$F77"; then
5786
ac_cv_prog_F77="$F77" # Let the user override the test.
5788
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5792
test -z "$as_dir" && as_dir=.
5793
for ac_exec_ext in '' $ac_executable_extensions; do
5794
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5795
ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5796
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5806
if test -n "$F77"; then
5807
{ $as_echo "$as_me:$LINENO: result: $F77" >&5
5808
$as_echo "$F77" >&6; }
5810
{ $as_echo "$as_me:$LINENO: result: no" >&5
5811
$as_echo "no" >&6; }
5815
test -n "$F77" && break
5818
if test -z "$F77"; then
5820
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
5822
# Extract the first word of "$ac_prog", so it can be a program name with args.
5823
set dummy $ac_prog; ac_word=$2
5824
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5825
$as_echo_n "checking for $ac_word... " >&6; }
5826
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5827
$as_echo_n "(cached) " >&6
5829
if test -n "$ac_ct_F77"; then
5830
ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5832
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5836
test -z "$as_dir" && as_dir=.
5837
for ac_exec_ext in '' $ac_executable_extensions; do
5838
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5839
ac_cv_prog_ac_ct_F77="$ac_prog"
5840
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5849
ac_ct_F77=$ac_cv_prog_ac_ct_F77
5850
if test -n "$ac_ct_F77"; then
5851
{ $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5852
$as_echo "$ac_ct_F77" >&6; }
5854
{ $as_echo "$as_me:$LINENO: result: no" >&5
5855
$as_echo "no" >&6; }
5859
test -n "$ac_ct_F77" && break
5862
if test "x$ac_ct_F77" = x; then
5865
case $cross_compiling:$ac_tool_warned in
5867
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5868
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5869
ac_tool_warned=yes ;;
5876
# Provide some information about the compiler.
5877
$as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5880
{ (ac_try="$ac_compiler --version >&5"
5882
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5883
*) ac_try_echo=$ac_try;;
5885
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5886
$as_echo "$ac_try_echo") >&5
5887
(eval "$ac_compiler --version >&5") 2>&5
5889
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5890
(exit $ac_status); }
5891
{ (ac_try="$ac_compiler -v >&5"
5893
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5894
*) ac_try_echo=$ac_try;;
5896
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5897
$as_echo "$ac_try_echo") >&5
5898
(eval "$ac_compiler -v >&5") 2>&5
5900
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5901
(exit $ac_status); }
5902
{ (ac_try="$ac_compiler -V >&5"
5904
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5905
*) ac_try_echo=$ac_try;;
5907
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5908
$as_echo "$ac_try_echo") >&5
5909
(eval "$ac_compiler -V >&5") 2>&5
5911
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5912
(exit $ac_status); }
5915
# If we don't use `.F' as extension, the preprocessor is not run on the
5916
# input file. (Note that this only needs to work for GNU compilers.)
5919
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5920
$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
5921
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5922
$as_echo_n "(cached) " >&6
5924
cat >conftest.$ac_ext <<_ACEOF
5932
rm -f conftest.$ac_objext
5933
if { (ac_try="$ac_compile"
5935
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5936
*) ac_try_echo=$ac_try;;
5938
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5939
$as_echo "$ac_try_echo") >&5
5940
(eval "$ac_compile") 2>conftest.er1
5942
grep -v '^ *+' conftest.er1 >conftest.err
5944
cat conftest.err >&5
5945
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946
(exit $ac_status); } && {
5947
test -z "$ac_f77_werror_flag" ||
5948
test ! -s conftest.err
5949
} && test -s conftest.$ac_objext; then
5952
$as_echo "$as_me: failed program was:" >&5
5953
sed 's/^/| /' conftest.$ac_ext >&5
5958
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5959
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5962
{ $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5963
$as_echo "$ac_cv_f77_compiler_gnu" >&6; }
5965
ac_test_FFLAGS=${FFLAGS+set}
5966
ac_save_FFLAGS=$FFLAGS
5968
{ $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5969
$as_echo_n "checking whether $F77 accepts -g... " >&6; }
5970
if test "${ac_cv_prog_f77_g+set}" = set; then
5971
$as_echo_n "(cached) " >&6
5974
cat >conftest.$ac_ext <<_ACEOF
5979
rm -f conftest.$ac_objext
5980
if { (ac_try="$ac_compile"
5982
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5983
*) ac_try_echo=$ac_try;;
5985
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5986
$as_echo "$ac_try_echo") >&5
5987
(eval "$ac_compile") 2>conftest.er1
5989
grep -v '^ *+' conftest.er1 >conftest.err
5991
cat conftest.err >&5
5992
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993
(exit $ac_status); } && {
5994
test -z "$ac_f77_werror_flag" ||
5995
test ! -s conftest.err
5996
} && test -s conftest.$ac_objext; then
5997
ac_cv_prog_f77_g=yes
5999
$as_echo "$as_me: failed program was:" >&5
6000
sed 's/^/| /' conftest.$ac_ext >&5
6005
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6008
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6009
$as_echo "$ac_cv_prog_f77_g" >&6; }
6010
if test "$ac_test_FFLAGS" = set; then
6011
FFLAGS=$ac_save_FFLAGS
6012
elif test $ac_cv_prog_f77_g = yes; then
6013
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6019
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6026
if test $ac_compiler_gnu = yes; then
6032
ac_cpp='$CPP $CPPFLAGS'
6033
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6034
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6035
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6039
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6040
# find the maximum length of command line arguments
6041
{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6042
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6043
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6044
$as_echo_n "(cached) " >&6
6051
# On DJGPP, this test can blow up pretty badly due to problems in libc
6052
# (any single argument exceeding 2000 bytes causes a buffer overrun
6053
# during glob expansion). Even if it were fixed, the result of this
6054
# check would be larger than it should be.
6055
lt_cv_sys_max_cmd_len=12288; # 12K is about right
6059
# Under GNU Hurd, this test is not required because there is
6060
# no limit to the length of command line arguments.
6061
# Libtool will interpret -1 as no limit whatsoever
6062
lt_cv_sys_max_cmd_len=-1;
6066
# On Win9x/ME, this test blows up -- it succeeds, but takes
6067
# about 5 minutes as the teststring grows exponentially.
6068
# Worse, since 9x/ME are not pre-emptively multitasking,
6069
# you end up with a "frozen" computer, even though with patience
6070
# the test eventually succeeds (with a max line length of 256k).
6071
# Instead, let's just punt: use the minimum linelength reported by
6072
# all of the supported platforms: 8192 (on NT/2K/XP).
6073
lt_cv_sys_max_cmd_len=8192;
6077
# On AmigaOS with pdksh, this test takes hours, literally.
6078
# So we just punt and use a minimum line length of 8192.
6079
lt_cv_sys_max_cmd_len=8192;
6082
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6083
# This has been around since 386BSD, at least. Likely further.
6084
if test -x /sbin/sysctl; then
6085
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6086
elif test -x /usr/sbin/sysctl; then
6087
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6089
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6091
# And add a safety zone
6092
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6093
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6097
# We know the value 262144 and hardcode it with a safety zone (like BSD)
6098
lt_cv_sys_max_cmd_len=196608
6102
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6103
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6104
# nice to cause kernel panics so lets avoid the loop below.
6105
# First set a reasonable default.
6106
lt_cv_sys_max_cmd_len=16384
6108
if test -x /sbin/sysconfig; then
6109
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6110
*1*) lt_cv_sys_max_cmd_len=-1 ;;
6115
lt_cv_sys_max_cmd_len=102400
6117
sysv5* | sco5v6* | sysv4.2uw2*)
6118
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6119
if test -n "$kargmax"; then
6120
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6122
lt_cv_sys_max_cmd_len=32768
6126
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6127
if test -n "$lt_cv_sys_max_cmd_len"; then
6128
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6129
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6131
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6132
while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6133
= "XX$teststring") >/dev/null 2>&1 &&
6134
new_result=`expr "X$teststring" : ".*" 2>&1` &&
6135
lt_cv_sys_max_cmd_len=$new_result &&
6136
test $i != 17 # 1/2 MB should be enough
6139
teststring=$teststring$teststring
6142
# Add a significant safety factor because C++ compilers can tack on massive
6143
# amounts of additional arguments before passing them to the linker.
6144
# It appears as though 1/2 is a usable value.
6145
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6152
if test -n $lt_cv_sys_max_cmd_len ; then
6153
{ $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6154
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6156
{ $as_echo "$as_me:$LINENO: result: none" >&5
6157
$as_echo "none" >&6; }
6164
# Check for command to grab the raw symbol name followed by C symbol from nm.
6165
{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6166
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6167
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6168
$as_echo_n "(cached) " >&6
6171
# These are sane defaults that work on at least a few old systems.
6172
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6174
# Character class describing NM global symbol codes.
6175
symcode='[BCDEGRST]'
6177
# Regexp to match symbols that can be accessed directly from C.
6178
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6180
# Transform an extracted symbol line into a proper C declaration
6181
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6183
# Transform an extracted symbol line into symbol name and symbol address
6184
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'"
6186
# Define system-specific variables.
6191
cygwin* | mingw* | pw32*)
6192
symcode='[ABCDGISTW]'
6194
hpux*) # Its linker distinguishes data from code symbols
6195
if test "$host_cpu" = ia64; then
6196
symcode='[ABCDEGRST]'
6198
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6199
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'"
6201
linux* | k*bsd*-gnu)
6202
if test "$host_cpu" = ia64; then
6203
symcode='[ABCDGIRSTW]'
6204
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6205
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'"
6209
symcode='[BCDEGRST]'
6212
symcode='[BCDEGQRST]'
6223
sysv5* | sco5v6* | unixware* | OpenUNIX*)
6231
# Handle CRLF in mingw tool chain
6235
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6239
# If we're using GNU nm, then use its standard symbol codes.
6240
case `$NM -V 2>&1` in
6241
*GNU* | *'with BFD'*)
6242
symcode='[ABCDGIRSTW]' ;;
6245
# Try without a prefix undercore, then with it.
6246
for ac_symprfx in "" "_"; do
6248
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6249
symxfrm="\\1 $ac_symprfx\\2 \\2"
6251
# Write the raw and C identifiers.
6252
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6254
# Check to see that the pipe works correctly.
6258
cat > conftest.$ac_ext <<EOF
6263
void nm_test_func(){}
6267
int main(){nm_test_var='a';nm_test_func();return(0);}
6270
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6271
(eval $ac_compile) 2>&5
6273
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6274
(exit $ac_status); }; then
6275
# Now try to grab the symbols.
6277
if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6278
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6280
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6281
(exit $ac_status); } && test -s "$nlist"; then
6282
# Try sorting and uniquifying the output.
6283
if sort "$nlist" | uniq > "$nlist"T; then
6284
mv -f "$nlist"T "$nlist"
6289
# Make sure that we snagged all the symbols we need.
6290
if grep ' nm_test_var$' "$nlist" >/dev/null; then
6291
if grep ' nm_test_func$' "$nlist" >/dev/null; then
6292
cat <<EOF > conftest.$ac_ext
6298
# Now generate the symbol file.
6299
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6301
cat <<EOF >> conftest.$ac_ext
6302
#if defined (__STDC__) && __STDC__
6303
# define lt_ptr_t void *
6305
# define lt_ptr_t char *
6309
/* The mapping between symbol names and symbols. */
6314
lt_preloaded_symbols[] =
6317
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6318
cat <<\EOF >> conftest.$ac_ext
6326
# Now try linking the two files.
6327
mv conftest.$ac_objext conftstm.$ac_objext
6328
lt_save_LIBS="$LIBS"
6329
lt_save_CFLAGS="$CFLAGS"
6330
LIBS="conftstm.$ac_objext"
6331
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6332
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6333
(eval $ac_link) 2>&5
6335
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6336
(exit $ac_status); } && test -s conftest${ac_exeext}; then
6339
LIBS="$lt_save_LIBS"
6340
CFLAGS="$lt_save_CFLAGS"
6342
echo "cannot find nm_test_func in $nlist" >&5
6345
echo "cannot find nm_test_var in $nlist" >&5
6348
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6351
echo "$progname: failed program was:" >&5
6352
cat conftest.$ac_ext >&5
6354
rm -rf conftest* conftst*
6356
# Do not use the global_symbol_pipe unless it works.
6357
if test "$pipe_works" = yes; then
6360
lt_cv_sys_global_symbol_pipe=
6366
if test -z "$lt_cv_sys_global_symbol_pipe"; then
6367
lt_cv_sys_global_symbol_to_cdecl=
6369
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6370
{ $as_echo "$as_me:$LINENO: result: failed" >&5
6371
$as_echo "failed" >&6; }
6373
{ $as_echo "$as_me:$LINENO: result: ok" >&5
6374
$as_echo "ok" >&6; }
6377
{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
6378
$as_echo_n "checking for objdir... " >&6; }
6379
if test "${lt_cv_objdir+set}" = set; then
6380
$as_echo_n "(cached) " >&6
6382
rm -f .libs 2>/dev/null
6383
mkdir .libs 2>/dev/null
6384
if test -d .libs; then
6387
# MS-DOS does not allow filenames that begin with a dot.
6390
rmdir .libs 2>/dev/null
6392
{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6393
$as_echo "$lt_cv_objdir" >&6; }
6394
objdir=$lt_cv_objdir
6402
# AIX sometimes has problems with the GCC collect2 program. For some
6403
# reason, if we set the COLLECT_NAMES environment variable, the problems
6404
# vanish in a puff of smoke.
6405
if test "X${COLLECT_NAMES+set}" != Xset; then
6407
export COLLECT_NAMES
6412
# Sed substitution that helps us do robust quoting. It backslashifies
6413
# metacharacters that are still active within double-quoted strings.
6414
Xsed='sed -e 1s/^X//'
6415
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6417
# Same as above, but do not quote variable references.
6418
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6420
# Sed substitution to delay expansion of an escaped shell variable in a
6421
# double_quote_subst'ed string.
6422
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6424
# Sed substitution to avoid accidental globbing in evaled expressions
6425
no_glob_subst='s/\*/\\\*/g'
6431
default_ofile=libtool
6432
can_build_shared=yes
6434
# All known linkers require a `.a' archive for static linking (except MSVC,
6435
# which needs '.lib').
6437
ltmain="$ac_aux_dir/ltmain.sh"
6438
ofile="$default_ofile"
6439
with_gnu_ld="$lt_cv_prog_gnu_ld"
6441
if test -n "$ac_tool_prefix"; then
6442
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6443
set dummy ${ac_tool_prefix}ar; ac_word=$2
6444
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6445
$as_echo_n "checking for $ac_word... " >&6; }
6446
if test "${ac_cv_prog_AR+set}" = set; then
6447
$as_echo_n "(cached) " >&6
6449
if test -n "$AR"; then
6450
ac_cv_prog_AR="$AR" # Let the user override the test.
6452
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6456
test -z "$as_dir" && as_dir=.
6457
for ac_exec_ext in '' $ac_executable_extensions; do
6458
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6459
ac_cv_prog_AR="${ac_tool_prefix}ar"
6460
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6470
if test -n "$AR"; then
6471
{ $as_echo "$as_me:$LINENO: result: $AR" >&5
6472
$as_echo "$AR" >&6; }
6474
{ $as_echo "$as_me:$LINENO: result: no" >&5
6475
$as_echo "no" >&6; }
6480
if test -z "$ac_cv_prog_AR"; then
6482
# Extract the first word of "ar", so it can be a program name with args.
6483
set dummy ar; ac_word=$2
6484
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6485
$as_echo_n "checking for $ac_word... " >&6; }
6486
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6487
$as_echo_n "(cached) " >&6
6489
if test -n "$ac_ct_AR"; then
6490
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6492
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6496
test -z "$as_dir" && as_dir=.
6497
for ac_exec_ext in '' $ac_executable_extensions; do
6498
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6499
ac_cv_prog_ac_ct_AR="ar"
6500
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6509
ac_ct_AR=$ac_cv_prog_ac_ct_AR
6510
if test -n "$ac_ct_AR"; then
6511
{ $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6512
$as_echo "$ac_ct_AR" >&6; }
6514
{ $as_echo "$as_me:$LINENO: result: no" >&5
6515
$as_echo "no" >&6; }
6518
if test "x$ac_ct_AR" = x; then
6521
case $cross_compiling:$ac_tool_warned in
6523
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6524
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6525
ac_tool_warned=yes ;;
6533
if test -n "$ac_tool_prefix"; then
6534
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6535
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6536
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6537
$as_echo_n "checking for $ac_word... " >&6; }
6538
if test "${ac_cv_prog_RANLIB+set}" = set; then
6539
$as_echo_n "(cached) " >&6
6541
if test -n "$RANLIB"; then
6542
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6544
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6548
test -z "$as_dir" && as_dir=.
6549
for ac_exec_ext in '' $ac_executable_extensions; do
6550
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6551
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6552
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6561
RANLIB=$ac_cv_prog_RANLIB
6562
if test -n "$RANLIB"; then
6563
{ $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6564
$as_echo "$RANLIB" >&6; }
6566
{ $as_echo "$as_me:$LINENO: result: no" >&5
6567
$as_echo "no" >&6; }
6572
if test -z "$ac_cv_prog_RANLIB"; then
6573
ac_ct_RANLIB=$RANLIB
6574
# Extract the first word of "ranlib", so it can be a program name with args.
6575
set dummy ranlib; ac_word=$2
6576
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6577
$as_echo_n "checking for $ac_word... " >&6; }
6578
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6579
$as_echo_n "(cached) " >&6
6581
if test -n "$ac_ct_RANLIB"; then
6582
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6584
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6588
test -z "$as_dir" && as_dir=.
6589
for ac_exec_ext in '' $ac_executable_extensions; do
6590
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6591
ac_cv_prog_ac_ct_RANLIB="ranlib"
6592
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6601
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6602
if test -n "$ac_ct_RANLIB"; then
6603
{ $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6604
$as_echo "$ac_ct_RANLIB" >&6; }
6606
{ $as_echo "$as_me:$LINENO: result: no" >&5
6607
$as_echo "no" >&6; }
6610
if test "x$ac_ct_RANLIB" = x; then
6613
case $cross_compiling:$ac_tool_warned in
6615
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6616
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6617
ac_tool_warned=yes ;;
6619
RANLIB=$ac_ct_RANLIB
6622
RANLIB="$ac_cv_prog_RANLIB"
6625
if test -n "$ac_tool_prefix"; then
6626
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6627
set dummy ${ac_tool_prefix}strip; ac_word=$2
6628
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6629
$as_echo_n "checking for $ac_word... " >&6; }
6630
if test "${ac_cv_prog_STRIP+set}" = set; then
6631
$as_echo_n "(cached) " >&6
6633
if test -n "$STRIP"; then
6634
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6636
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6640
test -z "$as_dir" && as_dir=.
6641
for ac_exec_ext in '' $ac_executable_extensions; do
6642
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6643
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6644
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6653
STRIP=$ac_cv_prog_STRIP
6654
if test -n "$STRIP"; then
6655
{ $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6656
$as_echo "$STRIP" >&6; }
6658
{ $as_echo "$as_me:$LINENO: result: no" >&5
6659
$as_echo "no" >&6; }
6664
if test -z "$ac_cv_prog_STRIP"; then
6666
# Extract the first word of "strip", so it can be a program name with args.
6667
set dummy strip; ac_word=$2
6668
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6669
$as_echo_n "checking for $ac_word... " >&6; }
6670
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6671
$as_echo_n "(cached) " >&6
6673
if test -n "$ac_ct_STRIP"; then
6674
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6676
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6680
test -z "$as_dir" && as_dir=.
6681
for ac_exec_ext in '' $ac_executable_extensions; do
6682
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6683
ac_cv_prog_ac_ct_STRIP="strip"
6684
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6693
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6694
if test -n "$ac_ct_STRIP"; then
6695
{ $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6696
$as_echo "$ac_ct_STRIP" >&6; }
6698
{ $as_echo "$as_me:$LINENO: result: no" >&5
6699
$as_echo "no" >&6; }
6702
if test "x$ac_ct_STRIP" = x; then
6705
case $cross_compiling:$ac_tool_warned in
6707
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6708
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6709
ac_tool_warned=yes ;;
6714
STRIP="$ac_cv_prog_STRIP"
6719
old_CFLAGS="$CFLAGS"
6721
# Set sane defaults for various variables
6722
test -z "$AR" && AR=ar
6723
test -z "$AR_FLAGS" && AR_FLAGS=cru
6724
test -z "$AS" && AS=as
6725
test -z "$CC" && CC=cc
6726
test -z "$LTCC" && LTCC=$CC
6727
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6728
test -z "$DLLTOOL" && DLLTOOL=dlltool
6729
test -z "$LD" && LD=ld
6730
test -z "$LN_S" && LN_S="ln -s"
6731
test -z "$MAGIC_CMD" && MAGIC_CMD=file
6732
test -z "$NM" && NM=nm
6733
test -z "$SED" && SED=sed
6734
test -z "$OBJDUMP" && OBJDUMP=objdump
6735
test -z "$RANLIB" && RANLIB=:
6736
test -z "$STRIP" && STRIP=:
6737
test -z "$ac_objext" && ac_objext=o
6739
# Determine commands to create old-style static archives.
6740
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6741
old_postinstall_cmds='chmod 644 $oldlib'
6742
old_postuninstall_cmds=
6744
if test -n "$RANLIB"; then
6747
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6750
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6753
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6756
for cc_temp in $compiler""; do
6758
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6759
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6764
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6767
# Only perform the check for file, if the check method requires it
6768
case $deplibs_check_method in
6770
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6771
{ $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6772
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6773
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6774
$as_echo_n "(cached) " >&6
6778
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6781
lt_save_MAGIC_CMD="$MAGIC_CMD"
6782
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6783
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6784
for ac_dir in $ac_dummy; do
6786
test -z "$ac_dir" && ac_dir=.
6787
if test -f $ac_dir/${ac_tool_prefix}file; then
6788
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6789
if test -n "$file_magic_test_file"; then
6790
case $deplibs_check_method in
6792
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6793
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6794
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6795
$EGREP "$file_magic_regex" > /dev/null; then
6800
*** Warning: the command libtool uses to detect shared libraries,
6801
*** $file_magic_cmd, produces output that libtool cannot recognize.
6802
*** The result is that libtool may fail to recognize shared libraries
6803
*** as such. This will affect the creation of libtool libraries that
6804
*** depend on shared libraries, but programs linked with such libtool
6805
*** libraries will work regardless of this problem. Nevertheless, you
6806
*** may want to report the problem to your system manager and/or to
6807
*** bug-libtool@gnu.org
6817
MAGIC_CMD="$lt_save_MAGIC_CMD"
6822
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6823
if test -n "$MAGIC_CMD"; then
6824
{ $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6825
$as_echo "$MAGIC_CMD" >&6; }
6827
{ $as_echo "$as_me:$LINENO: result: no" >&5
6828
$as_echo "no" >&6; }
6831
if test -z "$lt_cv_path_MAGIC_CMD"; then
6832
if test -n "$ac_tool_prefix"; then
6833
{ $as_echo "$as_me:$LINENO: checking for file" >&5
6834
$as_echo_n "checking for file... " >&6; }
6835
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6836
$as_echo_n "(cached) " >&6
6840
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6843
lt_save_MAGIC_CMD="$MAGIC_CMD"
6844
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6845
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6846
for ac_dir in $ac_dummy; do
6848
test -z "$ac_dir" && ac_dir=.
6849
if test -f $ac_dir/file; then
6850
lt_cv_path_MAGIC_CMD="$ac_dir/file"
6851
if test -n "$file_magic_test_file"; then
6852
case $deplibs_check_method in
6854
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6855
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6856
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6857
$EGREP "$file_magic_regex" > /dev/null; then
6862
*** Warning: the command libtool uses to detect shared libraries,
6863
*** $file_magic_cmd, produces output that libtool cannot recognize.
6864
*** The result is that libtool may fail to recognize shared libraries
6865
*** as such. This will affect the creation of libtool libraries that
6866
*** depend on shared libraries, but programs linked with such libtool
6867
*** libraries will work regardless of this problem. Nevertheless, you
6868
*** may want to report the problem to your system manager and/or to
6869
*** bug-libtool@gnu.org
6879
MAGIC_CMD="$lt_save_MAGIC_CMD"
6884
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6885
if test -n "$MAGIC_CMD"; then
6886
{ $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6887
$as_echo "$MAGIC_CMD" >&6; }
6889
{ $as_echo "$as_me:$LINENO: result: no" >&5
6890
$as_echo "no" >&6; }
6904
rhapsody* | darwin*)
6905
if test -n "$ac_tool_prefix"; then
6906
# Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6907
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6908
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6909
$as_echo_n "checking for $ac_word... " >&6; }
6910
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6911
$as_echo_n "(cached) " >&6
6913
if test -n "$DSYMUTIL"; then
6914
ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6916
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6920
test -z "$as_dir" && as_dir=.
6921
for ac_exec_ext in '' $ac_executable_extensions; do
6922
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6923
ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6924
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6933
DSYMUTIL=$ac_cv_prog_DSYMUTIL
6934
if test -n "$DSYMUTIL"; then
6935
{ $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6936
$as_echo "$DSYMUTIL" >&6; }
6938
{ $as_echo "$as_me:$LINENO: result: no" >&5
6939
$as_echo "no" >&6; }
6944
if test -z "$ac_cv_prog_DSYMUTIL"; then
6945
ac_ct_DSYMUTIL=$DSYMUTIL
6946
# Extract the first word of "dsymutil", so it can be a program name with args.
6947
set dummy dsymutil; ac_word=$2
6948
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6949
$as_echo_n "checking for $ac_word... " >&6; }
6950
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6951
$as_echo_n "(cached) " >&6
6953
if test -n "$ac_ct_DSYMUTIL"; then
6954
ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6956
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6960
test -z "$as_dir" && as_dir=.
6961
for ac_exec_ext in '' $ac_executable_extensions; do
6962
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6963
ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6964
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6973
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6974
if test -n "$ac_ct_DSYMUTIL"; then
6975
{ $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6976
$as_echo "$ac_ct_DSYMUTIL" >&6; }
6978
{ $as_echo "$as_me:$LINENO: result: no" >&5
6979
$as_echo "no" >&6; }
6982
if test "x$ac_ct_DSYMUTIL" = x; then
6985
case $cross_compiling:$ac_tool_warned in
6987
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6988
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6989
ac_tool_warned=yes ;;
6991
DSYMUTIL=$ac_ct_DSYMUTIL
6994
DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6997
if test -n "$ac_tool_prefix"; then
6998
# Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6999
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7000
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7001
$as_echo_n "checking for $ac_word... " >&6; }
7002
if test "${ac_cv_prog_NMEDIT+set}" = set; then
7003
$as_echo_n "(cached) " >&6
7005
if test -n "$NMEDIT"; then
7006
ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7008
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7012
test -z "$as_dir" && as_dir=.
7013
for ac_exec_ext in '' $ac_executable_extensions; do
7014
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7015
ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7016
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7025
NMEDIT=$ac_cv_prog_NMEDIT
7026
if test -n "$NMEDIT"; then
7027
{ $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
7028
$as_echo "$NMEDIT" >&6; }
7030
{ $as_echo "$as_me:$LINENO: result: no" >&5
7031
$as_echo "no" >&6; }
7036
if test -z "$ac_cv_prog_NMEDIT"; then
7037
ac_ct_NMEDIT=$NMEDIT
7038
# Extract the first word of "nmedit", so it can be a program name with args.
7039
set dummy nmedit; ac_word=$2
7040
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7041
$as_echo_n "checking for $ac_word... " >&6; }
7042
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7043
$as_echo_n "(cached) " >&6
7045
if test -n "$ac_ct_NMEDIT"; then
7046
ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7048
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7052
test -z "$as_dir" && as_dir=.
7053
for ac_exec_ext in '' $ac_executable_extensions; do
7054
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7055
ac_cv_prog_ac_ct_NMEDIT="nmedit"
7056
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7065
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7066
if test -n "$ac_ct_NMEDIT"; then
7067
{ $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7068
$as_echo "$ac_ct_NMEDIT" >&6; }
7070
{ $as_echo "$as_me:$LINENO: result: no" >&5
7071
$as_echo "no" >&6; }
7074
if test "x$ac_ct_NMEDIT" = x; then
7077
case $cross_compiling:$ac_tool_warned in
7079
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7080
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7081
ac_tool_warned=yes ;;
7083
NMEDIT=$ac_ct_NMEDIT
7086
NMEDIT="$ac_cv_prog_NMEDIT"
7090
{ $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7091
$as_echo_n "checking for -single_module linker flag... " >&6; }
7092
if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7093
$as_echo_n "(cached) " >&6
7095
lt_cv_apple_cc_single_mod=no
7096
if test -z "${LT_MULTI_MODULE}"; then
7097
# By default we will add the -single_module flag. You can override
7098
# by either setting the environment variable LT_MULTI_MODULE
7099
# non-empty at configure time, or by adding -multi_module to the
7101
echo "int foo(void){return 1;}" > conftest.c
7102
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7103
-dynamiclib ${wl}-single_module conftest.c
7104
if test -f libconftest.dylib; then
7105
lt_cv_apple_cc_single_mod=yes
7106
rm -rf libconftest.dylib*
7111
{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7112
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7113
{ $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7114
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7115
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7116
$as_echo_n "(cached) " >&6
7118
lt_cv_ld_exported_symbols_list=no
7119
save_LDFLAGS=$LDFLAGS
7120
echo "_main" > conftest.sym
7121
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7122
cat >conftest.$ac_ext <<_ACEOF
7125
cat confdefs.h >>conftest.$ac_ext
7126
cat >>conftest.$ac_ext <<_ACEOF
7127
/* end confdefs.h. */
7137
rm -f conftest.$ac_objext conftest$ac_exeext
7138
if { (ac_try="$ac_link"
7140
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7141
*) ac_try_echo=$ac_try;;
7143
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7144
$as_echo "$ac_try_echo") >&5
7145
(eval "$ac_link") 2>conftest.er1
7147
grep -v '^ *+' conftest.er1 >conftest.err
7149
cat conftest.err >&5
7150
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7151
(exit $ac_status); } && {
7152
test -z "$ac_c_werror_flag" ||
7153
test ! -s conftest.err
7154
} && test -s conftest$ac_exeext && {
7155
test "$cross_compiling" = yes ||
7156
$as_test_x conftest$ac_exeext
7158
lt_cv_ld_exported_symbols_list=yes
7160
$as_echo "$as_me: failed program was:" >&5
7161
sed 's/^/| /' conftest.$ac_ext >&5
7163
lt_cv_ld_exported_symbols_list=no
7166
rm -rf conftest.dSYM
7167
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7168
conftest$ac_exeext conftest.$ac_ext
7169
LDFLAGS="$save_LDFLAGS"
7172
{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7173
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7175
rhapsody* | darwin1.[0123])
7176
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7178
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7180
# if running on 10.5 or later, the deployment target defaults
7181
# to the OS version, if on x86, and 10.4, the deployment
7182
# target defaults to 10.4. Don't you love it?
7183
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7184
10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7185
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7187
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7189
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7193
if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7194
_lt_dar_single_mod='$single_module'
7196
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7197
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7199
_lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7201
if test "$DSYMUTIL" != ":"; then
7202
_lt_dsymutil="~$DSYMUTIL \$lib || :"
7213
# Check whether --enable-libtool-lock was given.
7214
if test "${enable_libtool_lock+set}" = set; then
7215
enableval=$enable_libtool_lock;
7218
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7221
# Check whether --with-pic was given.
7222
if test "${with_pic+set}" = set; then
7223
withval=$with_pic; pic_mode="$withval"
7228
test -z "$pic_mode" && pic_mode=default
7230
# Use C for the default configuration in the libtool script
7234
ac_cpp='$CPP $CPPFLAGS'
7235
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7236
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7237
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7240
# Source file extension for C test sources.
7243
# Object file extension for compiled C test sources.
7247
# Code to be used in simple compile tests
7248
lt_simple_compile_test_code="int some_variable = 0;"
7250
# Code to be used in simple link tests
7251
lt_simple_link_test_code='int main(){return(0);}'
7254
# If no C compiler was specified, use CC.
7257
# If no C compiler flags were specified, use CFLAGS.
7258
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7260
# Allow CC to be a program name with arguments.
7264
# save warnings/boilerplate of simple test code
7265
ac_outfile=conftest.$ac_objext
7266
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7267
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7268
_lt_compiler_boilerplate=`cat conftest.err`
7271
ac_outfile=conftest.$ac_objext
7272
echo "$lt_simple_link_test_code" >conftest.$ac_ext
7273
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7274
_lt_linker_boilerplate=`cat conftest.err`
7279
lt_prog_compiler_no_builtin_flag=
7281
if test "$GCC" = yes; then
7282
lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7285
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7286
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7287
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7288
$as_echo_n "(cached) " >&6
7290
lt_cv_prog_compiler_rtti_exceptions=no
7291
ac_outfile=conftest.$ac_objext
7292
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7293
lt_compiler_flag="-fno-rtti -fno-exceptions"
7294
# Insert the option either (1) after the last *FLAGS variable, or
7295
# (2) before a word containing "conftest.", or (3) at the end.
7296
# Note that $ac_compile itself does not contain backslashes and begins
7297
# with a dollar sign (not a hyphen), so the echo should work correctly.
7298
# The option is referenced via a variable to avoid confusing sed.
7299
lt_compile=`echo "$ac_compile" | $SED \
7300
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7301
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7302
-e 's:$: $lt_compiler_flag:'`
7303
(eval echo "\"\$as_me:7303: $lt_compile\"" >&5)
7304
(eval "$lt_compile" 2>conftest.err)
7306
cat conftest.err >&5
7307
echo "$as_me:7307: \$? = $ac_status" >&5
7308
if (exit $ac_status) && test -s "$ac_outfile"; then
7309
# The compiler can only warn and ignore the option if not recognized
7310
# So say no if there are warnings other than the usual output.
7311
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7312
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7313
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7314
lt_cv_prog_compiler_rtti_exceptions=yes
7320
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7321
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7323
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7324
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7331
lt_prog_compiler_wl=
7332
lt_prog_compiler_pic=
7333
lt_prog_compiler_static=
7335
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7336
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7338
if test "$GCC" = yes; then
7339
lt_prog_compiler_wl='-Wl,'
7340
lt_prog_compiler_static='-static'
7344
# All AIX code is PIC.
7345
if test "$host_cpu" = ia64; then
7346
# AIX 5 now supports IA64 processor
7347
lt_prog_compiler_static='-Bstatic'
7352
# FIXME: we need at least 68020 code to build shared libraries, but
7353
# adding the `-m68020' flag to GCC prevents building anything better,
7355
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7358
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7359
# PIC is the default for these OSes.
7362
mingw* | cygwin* | pw32* | os2*)
7363
# This hack is so that the source file can tell whether it is being
7364
# built for inclusion in a dll (and should export symbols for example).
7365
# Although the cygwin gcc ignores -fPIC, still need this for old-style
7366
# (--disable-auto-import) libraries
7367
lt_prog_compiler_pic='-DDLL_EXPORT'
7370
darwin* | rhapsody*)
7371
# PIC is the default on this platform
7372
# Common symbols not allowed in MH_DYLIB files
7373
lt_prog_compiler_pic='-fno-common'
7377
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
7378
# Instead, we relocate shared libraries at runtime.
7382
# Just because we use GCC doesn't mean we suddenly get shared libraries
7383
# on systems that don't support them.
7384
lt_prog_compiler_can_build_shared=no
7389
if test -d /usr/nec; then
7390
lt_prog_compiler_pic=-Kconform_pic
7395
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7402
lt_prog_compiler_pic='-fPIC'
7408
lt_prog_compiler_pic='-fPIC'
7412
# PORTME Check for flag to pass linker flags through the system compiler.
7415
lt_prog_compiler_wl='-Wl,'
7416
if test "$host_cpu" = ia64; then
7417
# AIX 5 now supports IA64 processor
7418
lt_prog_compiler_static='-Bstatic'
7420
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7424
# PIC is the default on this platform
7425
# Common symbols not allowed in MH_DYLIB files
7426
case $cc_basename in
7428
lt_prog_compiler_pic='-qnocommon'
7429
lt_prog_compiler_wl='-Wl,'
7434
mingw* | cygwin* | pw32* | os2*)
7435
# This hack is so that the source file can tell whether it is being
7436
# built for inclusion in a dll (and should export symbols for example).
7437
lt_prog_compiler_pic='-DDLL_EXPORT'
7440
hpux9* | hpux10* | hpux11*)
7441
lt_prog_compiler_wl='-Wl,'
7442
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7449
lt_prog_compiler_pic='+Z'
7452
# Is there a better lt_prog_compiler_static that works with the bundled CC?
7453
lt_prog_compiler_static='${wl}-a ${wl}archive'
7456
irix5* | irix6* | nonstopux*)
7457
lt_prog_compiler_wl='-Wl,'
7458
# PIC (with -KPIC) is the default.
7459
lt_prog_compiler_static='-non_shared'
7463
lt_prog_compiler_pic='-KPIC'
7464
lt_prog_compiler_static='-Bstatic'
7467
linux* | k*bsd*-gnu)
7468
case $cc_basename in
7470
lt_prog_compiler_wl='-Wl,'
7471
lt_prog_compiler_pic='-KPIC'
7472
lt_prog_compiler_static='-static'
7474
pgcc* | pgf77* | pgf90* | pgf95*)
7475
# Portland Group compilers (*not* the Pentium gcc compiler,
7476
# which looks to be a dead project)
7477
lt_prog_compiler_wl='-Wl,'
7478
lt_prog_compiler_pic='-fpic'
7479
lt_prog_compiler_static='-Bstatic'
7482
lt_prog_compiler_wl='-Wl,'
7483
# All Alpha code is PIC.
7484
lt_prog_compiler_static='-non_shared'
7487
case `$CC -V 2>&1 | sed 5q` in
7490
lt_prog_compiler_pic='-KPIC'
7491
lt_prog_compiler_static='-Bstatic'
7492
lt_prog_compiler_wl='-Wl,'
7495
# Sun Fortran 8.3 passes all unrecognized flags to the linker
7496
lt_prog_compiler_pic='-KPIC'
7497
lt_prog_compiler_static='-Bstatic'
7498
lt_prog_compiler_wl=''
7505
osf3* | osf4* | osf5*)
7506
lt_prog_compiler_wl='-Wl,'
7507
# All OSF/1 code is PIC.
7508
lt_prog_compiler_static='-non_shared'
7512
lt_prog_compiler_static='-non_shared'
7516
lt_prog_compiler_pic='-KPIC'
7517
lt_prog_compiler_static='-Bstatic'
7518
case $cc_basename in
7520
lt_prog_compiler_wl='-Qoption ld ';;
7522
lt_prog_compiler_wl='-Wl,';;
7527
lt_prog_compiler_wl='-Qoption ld '
7528
lt_prog_compiler_pic='-PIC'
7529
lt_prog_compiler_static='-Bstatic'
7532
sysv4 | sysv4.2uw2* | sysv4.3*)
7533
lt_prog_compiler_wl='-Wl,'
7534
lt_prog_compiler_pic='-KPIC'
7535
lt_prog_compiler_static='-Bstatic'
7539
if test -d /usr/nec ;then
7540
lt_prog_compiler_pic='-Kconform_pic'
7541
lt_prog_compiler_static='-Bstatic'
7545
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7546
lt_prog_compiler_wl='-Wl,'
7547
lt_prog_compiler_pic='-KPIC'
7548
lt_prog_compiler_static='-Bstatic'
7552
lt_prog_compiler_wl='-Wl,'
7553
lt_prog_compiler_can_build_shared=no
7557
lt_prog_compiler_pic='-pic'
7558
lt_prog_compiler_static='-Bstatic'
7562
lt_prog_compiler_can_build_shared=no
7567
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7568
$as_echo "$lt_prog_compiler_pic" >&6; }
7571
# Check to make sure the PIC flag actually works.
7573
if test -n "$lt_prog_compiler_pic"; then
7575
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7576
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7577
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7578
$as_echo_n "(cached) " >&6
7580
lt_cv_prog_compiler_pic_works=no
7581
ac_outfile=conftest.$ac_objext
7582
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7583
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7584
# Insert the option either (1) after the last *FLAGS variable, or
7585
# (2) before a word containing "conftest.", or (3) at the end.
7586
# Note that $ac_compile itself does not contain backslashes and begins
7587
# with a dollar sign (not a hyphen), so the echo should work correctly.
7588
# The option is referenced via a variable to avoid confusing sed.
7589
lt_compile=`echo "$ac_compile" | $SED \
7590
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7591
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7592
-e 's:$: $lt_compiler_flag:'`
7593
(eval echo "\"\$as_me:7593: $lt_compile\"" >&5)
7594
(eval "$lt_compile" 2>conftest.err)
7596
cat conftest.err >&5
7597
echo "$as_me:7597: \$? = $ac_status" >&5
7598
if (exit $ac_status) && test -s "$ac_outfile"; then
7599
# The compiler can only warn and ignore the option if not recognized
7600
# So say no if there are warnings other than the usual output.
7601
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7602
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7603
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7604
lt_cv_prog_compiler_pic_works=yes
7610
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7611
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7613
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7614
case $lt_prog_compiler_pic in
7616
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7619
lt_prog_compiler_pic=
7620
lt_prog_compiler_can_build_shared=no
7625
# For platforms which do not support PIC, -DPIC is meaningless:
7627
lt_prog_compiler_pic=
7630
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7635
# Check to make sure the static flag actually works.
7637
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7638
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7639
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7640
if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7641
$as_echo_n "(cached) " >&6
7643
lt_cv_prog_compiler_static_works=no
7644
save_LDFLAGS="$LDFLAGS"
7645
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7646
echo "$lt_simple_link_test_code" > conftest.$ac_ext
7647
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7648
# The linker can only warn and ignore the option if not recognized
7649
# So say no if there are warnings
7650
if test -s conftest.err; then
7651
# Append any errors to the config.log.
7652
cat conftest.err 1>&5
7653
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7654
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7655
if diff conftest.exp conftest.er2 >/dev/null; then
7656
lt_cv_prog_compiler_static_works=yes
7659
lt_cv_prog_compiler_static_works=yes
7663
LDFLAGS="$save_LDFLAGS"
7666
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7667
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7669
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7672
lt_prog_compiler_static=
7676
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7677
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7678
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7679
$as_echo_n "(cached) " >&6
7681
lt_cv_prog_compiler_c_o=no
7682
$rm -r conftest 2>/dev/null
7686
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7688
lt_compiler_flag="-o out/conftest2.$ac_objext"
7689
# Insert the option either (1) after the last *FLAGS variable, or
7690
# (2) before a word containing "conftest.", or (3) at the end.
7691
# Note that $ac_compile itself does not contain backslashes and begins
7692
# with a dollar sign (not a hyphen), so the echo should work correctly.
7693
lt_compile=`echo "$ac_compile" | $SED \
7694
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7695
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7696
-e 's:$: $lt_compiler_flag:'`
7697
(eval echo "\"\$as_me:7697: $lt_compile\"" >&5)
7698
(eval "$lt_compile" 2>out/conftest.err)
7700
cat out/conftest.err >&5
7701
echo "$as_me:7701: \$? = $ac_status" >&5
7702
if (exit $ac_status) && test -s out/conftest2.$ac_objext
7704
# The compiler can only warn and ignore the option if not recognized
7705
# So say no if there are warnings
7706
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7707
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7708
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7709
lt_cv_prog_compiler_c_o=yes
7714
# SGI C++ compiler will create directory out/ii_files/ for
7715
# template instantiation
7716
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7717
$rm out/* && rmdir out
7723
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7724
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7727
hard_links="nottested"
7728
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7729
# do not overwrite the value of need_locks provided by the user
7730
{ $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7731
$as_echo_n "checking if we can lock with hard links... " >&6; }
7734
ln conftest.a conftest.b 2>/dev/null && hard_links=no
7736
ln conftest.a conftest.b 2>&5 || hard_links=no
7737
ln conftest.a conftest.b 2>/dev/null && hard_links=no
7738
{ $as_echo "$as_me:$LINENO: result: $hard_links" >&5
7739
$as_echo "$hard_links" >&6; }
7740
if test "$hard_links" = no; then
7741
{ $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7742
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7749
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7750
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7753
allow_undefined_flag=
7754
enable_shared_with_static_runtimes=no
7756
archive_expsym_cmds=
7757
old_archive_From_new_cmds=
7758
old_archive_from_expsyms_cmds=
7759
export_dynamic_flag_spec=
7760
whole_archive_flag_spec=
7761
thread_safe_flag_spec=
7762
hardcode_libdir_flag_spec=
7763
hardcode_libdir_flag_spec_ld=
7764
hardcode_libdir_separator=
7767
hardcode_shlibpath_var=unsupported
7768
link_all_deplibs=unknown
7769
hardcode_automatic=no
7772
always_export_symbols=no
7773
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7774
# include_expsyms should be a list of space-separated symbols to be *always*
7775
# included in the symbol list
7777
# exclude_expsyms can be an extended regexp of symbols to exclude
7778
# it will be wrapped by ` (' and `)$', so one must not match beginning or
7779
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7780
# as well as any symbol that contains `d'.
7781
exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7782
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7783
# platforms (ab)use it in PIC code, but their linkers get confused if
7784
# the symbol is explicitly referenced. Since portable code cannot
7785
# rely on this symbol name, it's probably fine to never include it in
7786
# preloaded symbol tables.
7787
# Exclude shared library initialization/finalization symbols.
7788
extract_expsyms_cmds=
7789
# Just being paranoid about ensuring that cc_basename is set.
7790
for cc_temp in $compiler""; do
7792
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7793
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7798
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7801
cygwin* | mingw* | pw32*)
7802
# FIXME: the MSVC++ port hasn't been tested in a loooong time
7803
# When not using gcc, we currently assume that we are using
7804
# Microsoft Visual C++.
7805
if test "$GCC" != yes; then
7810
# we just hope/assume this is gcc and not c89 (= MSVC++)
7819
if test "$with_gnu_ld" = yes; then
7820
# If archive_cmds runs LD, not CC, wlarc should be empty
7823
# Set some defaults for GNU ld with shared library support. These
7824
# are reset later if shared libraries are not supported. Putting them
7825
# here allows them to be overridden if necessary.
7826
runpath_var=LD_RUN_PATH
7827
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7828
export_dynamic_flag_spec='${wl}--export-dynamic'
7829
# ancient GNU ld didn't support --whole-archive et. al.
7830
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7831
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7833
whole_archive_flag_spec=
7835
supports_anon_versioning=no
7836
case `$LD -v 2>/dev/null` in
7837
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7838
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7839
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7840
*\ 2.11.*) ;; # other 2.11 versions
7841
*) supports_anon_versioning=yes ;;
7844
# See if GNU ld supports shared libraries.
7847
# On AIX/PPC, the GNU linker is very broken
7848
if test "$host_cpu" != ia64; then
7852
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7853
*** to be unable to reliably create shared libraries on AIX.
7854
*** Therefore, libtool is disabling shared libraries support. If you
7855
*** really care for shared libraries, you may want to modify your PATH
7856
*** so that a non-GNU linker is found, and then restart.
7863
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)'
7864
hardcode_libdir_flag_spec='-L$libdir'
7865
hardcode_minus_L=yes
7867
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7868
# that the semantics of dynamic libraries on AmigaOS, at least up
7869
# to version 4, is to share data among multiple programs linked
7870
# with the same dynamic library. Since this doesn't match the
7871
# behavior of shared libraries on other platforms, we can't use
7877
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7878
allow_undefined_flag=unsupported
7879
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7880
# support --undefined. This deserves some investigation. FIXME
7881
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7887
cygwin* | mingw* | pw32*)
7888
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7889
# as there is no search path for DLLs.
7890
hardcode_libdir_flag_spec='-L$libdir'
7891
allow_undefined_flag=unsupported
7892
always_export_symbols=no
7893
enable_shared_with_static_runtimes=yes
7894
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7896
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7897
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7898
# If the export-symbols file already is a .def file (1st line
7899
# is EXPORTS), use it as is; otherwise, prepend...
7900
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7901
cp $export_symbols $output_objdir/$soname.def;
7903
echo EXPORTS > $output_objdir/$soname.def;
7904
cat $export_symbols >> $output_objdir/$soname.def;
7906
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7914
hardcode_shlibpath_var=no
7915
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7916
export_dynamic_flag_spec='${wl}-E'
7917
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7918
# Instead, shared libraries are loaded at an image base (0x10000000 by
7919
# default) and relocated if they conflict, which is a slow very memory
7920
# consuming and fragmenting process. To avoid this, we pick a random,
7921
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7922
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
7923
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7924
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'
7927
gnu* | linux* | k*bsd*-gnu)
7928
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7930
case $cc_basename,$host_cpu in
7931
pgcc*) # Portland Group C compiler
7932
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'
7933
tmp_addflag=' $pic_flag'
7935
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7936
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'
7937
tmp_addflag=' $pic_flag -Mnomain' ;;
7938
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7939
tmp_addflag=' -i_dynamic' ;;
7940
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7941
tmp_addflag=' -i_dynamic -nofor_main' ;;
7942
ifc* | ifort*) # Intel Fortran compiler
7943
tmp_addflag=' -nofor_main' ;;
7945
case `$CC -V 2>&1 | sed 5q` in
7946
*Sun\ C*) # Sun C 5.9
7947
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'
7948
tmp_sharedflag='-G' ;;
7949
*Sun\ F*) # Sun Fortran 8.3
7950
tmp_sharedflag='-G' ;;
7952
tmp_sharedflag='-shared' ;;
7954
archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7956
if test $supports_anon_versioning = yes; then
7957
archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7958
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7959
$echo "local: *; };" >> $output_objdir/$libname.ver~
7960
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7968
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7969
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7972
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7973
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7978
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7982
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7983
*** create shared libraries on Solaris systems. Therefore, libtool
7984
*** is disabling shared libraries support. We urge you to upgrade GNU
7985
*** binutils to release 2.9.1 or newer. Another option is to modify
7986
*** your PATH or compiler configuration so that the native linker is
7987
*** used, and then restart.
7990
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7991
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7992
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7998
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7999
case `$LD -v 2>&1` in
8000
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8004
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8005
*** reliably create shared libraries on SCO systems. Therefore, libtool
8006
*** is disabling shared libraries support. We urge you to upgrade GNU
8007
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8008
*** your PATH or compiler configuration so that the native linker is
8009
*** used, and then restart.
8014
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8015
hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8016
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8017
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8026
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8029
hardcode_shlibpath_var=no
8033
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8034
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8035
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8042
if test "$ld_shlibs" = no; then
8044
hardcode_libdir_flag_spec=
8045
export_dynamic_flag_spec=
8046
whole_archive_flag_spec=
8049
# PORTME fill in a description of your system's linker (not GNU ld)
8052
allow_undefined_flag=unsupported
8053
always_export_symbols=yes
8054
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'
8055
# Note: this linker hardcodes the directories in LIBPATH if there
8056
# are no directories specified by -L.
8057
hardcode_minus_L=yes
8058
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8059
# Neither direct hardcoding nor static linking is supported with a
8061
hardcode_direct=unsupported
8066
if test "$host_cpu" = ia64; then
8067
# On IA64, the linker does run time linking by default, so we don't
8068
# have to do anything special.
8069
aix_use_runtimelinking=no
8070
exp_sym_flag='-Bexport'
8073
# If we're using GNU nm, then we don't want the "-C" option.
8074
# -C means demangle to AIX nm, but means don't demangle with GNU nm
8075
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8076
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'
8078
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'
8080
aix_use_runtimelinking=no
8082
# Test if we are trying to use run time linking or normal
8083
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8084
# need to do runtime linking.
8085
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8086
for ld_flag in $LDFLAGS; do
8087
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8088
aix_use_runtimelinking=yes
8095
exp_sym_flag='-bexport'
8096
no_entry_flag='-bnoentry'
8099
# When large executables or shared objects are built, AIX ld can
8100
# have problems creating the table of contents. If linking a library
8101
# or program results in "error TOC overflow" add -mminimal-toc to
8102
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8103
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8107
hardcode_libdir_separator=':'
8108
link_all_deplibs=yes
8110
if test "$GCC" = yes; then
8111
case $host_os in aix4.[012]|aix4.[012].*)
8112
# We only want to do this on AIX 4.2 and lower, the check
8113
# below for broken collect2 doesn't work under 4.3+
8114
collect2name=`${CC} -print-prog-name=collect2`
8115
if test -f "$collect2name" && \
8116
strings "$collect2name" | grep resolve_lib_name >/dev/null
8118
# We have reworked collect2
8121
# We have old collect2
8122
hardcode_direct=unsupported
8123
# It fails to find uninstalled libraries when the uninstalled
8124
# path is not listed in the libpath. Setting hardcode_minus_L
8125
# to unsupported forces relinking
8126
hardcode_minus_L=yes
8127
hardcode_libdir_flag_spec='-L$libdir'
8128
hardcode_libdir_separator=
8132
shared_flag='-shared'
8133
if test "$aix_use_runtimelinking" = yes; then
8134
shared_flag="$shared_flag "'${wl}-G'
8138
if test "$host_cpu" = ia64; then
8139
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8140
# chokes on -Wl,-G. The following line is correct:
8143
if test "$aix_use_runtimelinking" = yes; then
8144
shared_flag='${wl}-G'
8146
shared_flag='${wl}-bM:SRE'
8151
# It seems that -bexpall does not export symbols beginning with
8152
# underscore (_), so it is better to generate a list of symbols to export.
8153
always_export_symbols=yes
8154
if test "$aix_use_runtimelinking" = yes; then
8155
# Warning - without using the other runtime loading flags (-brtl),
8156
# -berok will link without error, but may produce a broken library.
8157
allow_undefined_flag='-berok'
8158
# Determine the default libpath from the value encoded in an empty executable.
8159
cat >conftest.$ac_ext <<_ACEOF
8162
cat confdefs.h >>conftest.$ac_ext
8163
cat >>conftest.$ac_ext <<_ACEOF
8164
/* end confdefs.h. */
8174
rm -f conftest.$ac_objext conftest$ac_exeext
8175
if { (ac_try="$ac_link"
8177
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8178
*) ac_try_echo=$ac_try;;
8180
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8181
$as_echo "$ac_try_echo") >&5
8182
(eval "$ac_link") 2>conftest.er1
8184
grep -v '^ *+' conftest.er1 >conftest.err
8186
cat conftest.err >&5
8187
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8188
(exit $ac_status); } && {
8189
test -z "$ac_c_werror_flag" ||
8190
test ! -s conftest.err
8191
} && test -s conftest$ac_exeext && {
8192
test "$cross_compiling" = yes ||
8193
$as_test_x conftest$ac_exeext
8196
lt_aix_libpath_sed='
8197
/Import File Strings/,/^$/ {
8203
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8204
# Check for a 64-bit object if we didn't find anything.
8205
if test -z "$aix_libpath"; then
8206
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8209
$as_echo "$as_me: failed program was:" >&5
8210
sed 's/^/| /' conftest.$ac_ext >&5
8215
rm -rf conftest.dSYM
8216
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8217
conftest$ac_exeext conftest.$ac_ext
8218
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8220
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8221
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"
8223
if test "$host_cpu" = ia64; then
8224
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8225
allow_undefined_flag="-z nodefs"
8226
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"
8228
# Determine the default libpath from the value encoded in an empty executable.
8229
cat >conftest.$ac_ext <<_ACEOF
8232
cat confdefs.h >>conftest.$ac_ext
8233
cat >>conftest.$ac_ext <<_ACEOF
8234
/* end confdefs.h. */
8244
rm -f conftest.$ac_objext conftest$ac_exeext
8245
if { (ac_try="$ac_link"
8247
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8248
*) ac_try_echo=$ac_try;;
8250
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8251
$as_echo "$ac_try_echo") >&5
8252
(eval "$ac_link") 2>conftest.er1
8254
grep -v '^ *+' conftest.er1 >conftest.err
8256
cat conftest.err >&5
8257
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8258
(exit $ac_status); } && {
8259
test -z "$ac_c_werror_flag" ||
8260
test ! -s conftest.err
8261
} && test -s conftest$ac_exeext && {
8262
test "$cross_compiling" = yes ||
8263
$as_test_x conftest$ac_exeext
8266
lt_aix_libpath_sed='
8267
/Import File Strings/,/^$/ {
8273
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8274
# Check for a 64-bit object if we didn't find anything.
8275
if test -z "$aix_libpath"; then
8276
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8279
$as_echo "$as_me: failed program was:" >&5
8280
sed 's/^/| /' conftest.$ac_ext >&5
8285
rm -rf conftest.dSYM
8286
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8287
conftest$ac_exeext conftest.$ac_ext
8288
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8290
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8291
# Warning - without using the other run time loading flags,
8292
# -berok will link without error, but may produce a broken library.
8293
no_undefined_flag=' ${wl}-bernotok'
8294
allow_undefined_flag=' ${wl}-berok'
8295
# Exported symbols can be pulled into shared objects from archives
8296
whole_archive_flag_spec='$convenience'
8297
archive_cmds_need_lc=yes
8298
# This is similar to how AIX traditionally builds its shared libraries.
8299
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'
8305
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)'
8306
hardcode_libdir_flag_spec='-L$libdir'
8307
hardcode_minus_L=yes
8308
# see comment about different semantics on the GNU ld section
8313
export_dynamic_flag_spec=-rdynamic
8316
cygwin* | mingw* | pw32*)
8317
# When not using gcc, we currently assume that we are using
8318
# Microsoft Visual C++.
8319
# hardcode_libdir_flag_spec is actually meaningless, as there is
8320
# no search path for DLLs.
8321
hardcode_libdir_flag_spec=' '
8322
allow_undefined_flag=unsupported
8323
# Tell ltmain to make .lib files, not .a files.
8325
# Tell ltmain to make .dll files, not .so files.
8327
# FIXME: Setting linknames here is a bad hack.
8328
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8329
# The linker will automatically build a .lib file if we build a DLL.
8330
old_archive_From_new_cmds='true'
8331
# FIXME: Should let the user specify the lib program.
8332
old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8333
fix_srcfile_path='`cygpath -w "$srcfile"`'
8334
enable_shared_with_static_runtimes=yes
8337
darwin* | rhapsody*)
8339
rhapsody* | darwin1.[012])
8340
allow_undefined_flag='${wl}-undefined ${wl}suppress'
8343
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8344
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8346
case ${MACOSX_DEPLOYMENT_TARGET} in
8348
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8351
allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8357
archive_cmds_need_lc=no
8359
hardcode_automatic=yes
8360
hardcode_shlibpath_var=unsupported
8361
whole_archive_flag_spec=''
8362
link_all_deplibs=yes
8363
if test "$GCC" = yes ; then
8364
output_verbose_link_cmd='echo'
8365
archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8366
module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8367
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}"
8368
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}"
8370
case $cc_basename in
8372
output_verbose_link_cmd='echo'
8373
archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8374
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8375
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8376
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}'
8377
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}'
8387
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8388
hardcode_libdir_flag_spec='-L$libdir'
8389
hardcode_shlibpath_var=no
8396
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8397
# support. Future versions do this automatically, but an explicit c++rt0.o
8398
# does not break anything, and helps significantly (at the cost of a little
8401
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8402
hardcode_libdir_flag_spec='-R$libdir'
8404
hardcode_shlibpath_var=no
8407
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
8409
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8411
hardcode_minus_L=yes
8412
hardcode_shlibpath_var=no
8415
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8416
freebsd* | dragonfly*)
8417
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8418
hardcode_libdir_flag_spec='-R$libdir'
8420
hardcode_shlibpath_var=no
8424
if test "$GCC" = yes; then
8425
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'
8427
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'
8429
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8430
hardcode_libdir_separator=:
8433
# hardcode_minus_L: Not really in the search PATH,
8434
# but as the default location of the library.
8435
hardcode_minus_L=yes
8436
export_dynamic_flag_spec='${wl}-E'
8440
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8441
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8443
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8445
if test "$with_gnu_ld" = no; then
8446
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8447
hardcode_libdir_separator=:
8450
export_dynamic_flag_spec='${wl}-E'
8452
# hardcode_minus_L: Not really in the search PATH,
8453
# but as the default location of the library.
8454
hardcode_minus_L=yes
8459
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8462
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8465
archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8468
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8474
archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8477
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8480
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8484
if test "$with_gnu_ld" = no; then
8485
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8486
hardcode_libdir_separator=:
8490
hardcode_libdir_flag_spec_ld='+b $libdir'
8492
hardcode_shlibpath_var=no
8496
export_dynamic_flag_spec='${wl}-E'
8498
# hardcode_minus_L: Not really in the search PATH,
8499
# but as the default location of the library.
8500
hardcode_minus_L=yes
8506
irix5* | irix6* | nonstopux*)
8507
if test "$GCC" = yes; then
8508
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'
8510
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'
8511
hardcode_libdir_flag_spec_ld='-rpath $libdir'
8513
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8514
hardcode_libdir_separator=:
8515
link_all_deplibs=yes
8519
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8520
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8522
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8524
hardcode_libdir_flag_spec='-R$libdir'
8526
hardcode_shlibpath_var=no
8530
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8532
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8533
hardcode_libdir_separator=:
8534
hardcode_shlibpath_var=no
8538
if test -f /usr/libexec/ld.so; then
8540
hardcode_shlibpath_var=no
8541
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8542
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8543
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8544
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8545
export_dynamic_flag_spec='${wl}-E'
8548
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8549
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8550
hardcode_libdir_flag_spec='-R$libdir'
8553
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8554
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8564
hardcode_libdir_flag_spec='-L$libdir'
8565
hardcode_minus_L=yes
8566
allow_undefined_flag=unsupported
8567
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'
8568
old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8572
if test "$GCC" = yes; then
8573
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8574
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'
8576
allow_undefined_flag=' -expect_unresolved \*'
8577
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'
8579
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8580
hardcode_libdir_separator=:
8583
osf4* | osf5*) # as osf3* with the addition of -msym flag
8584
if test "$GCC" = yes; then
8585
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8586
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'
8587
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8589
allow_undefined_flag=' -expect_unresolved \*'
8590
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'
8591
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8592
$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'
8594
# Both c and cxx compiler support -rpath directly
8595
hardcode_libdir_flag_spec='-rpath $libdir'
8597
hardcode_libdir_separator=:
8601
no_undefined_flag=' -z text'
8602
if test "$GCC" = yes; then
8604
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8605
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8606
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8609
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8610
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8611
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8613
hardcode_libdir_flag_spec='-R$libdir'
8614
hardcode_shlibpath_var=no
8616
solaris2.[0-5] | solaris2.[0-5].*) ;;
8618
# The compiler driver will combine and reorder linker options,
8619
# but understands `-z linker_flag'. GCC discards it without `$wl',
8620
# but is careful enough not to reorder.
8621
# Supported since Solaris 2.6 (maybe 2.5.1?)
8622
if test "$GCC" = yes; then
8623
whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8625
whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8629
link_all_deplibs=yes
8633
if test "x$host_vendor" = xsequent; then
8634
# Use $CC to link under sequent, because it throws in some extra .o
8635
# files that make .init and .fini sections work.
8636
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8638
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8640
hardcode_libdir_flag_spec='-L$libdir'
8642
hardcode_minus_L=yes
8643
hardcode_shlibpath_var=no
8647
case $host_vendor in
8649
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8650
hardcode_direct=yes # is this really true???
8653
## LD is ld it makes a PLAMLIB
8654
## CC just makes a GrossModule.
8655
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8656
reload_cmds='$CC -r -o $output$reload_objs'
8660
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8661
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8664
runpath_var='LD_RUN_PATH'
8665
hardcode_shlibpath_var=no
8669
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8670
hardcode_shlibpath_var=no
8671
export_dynamic_flag_spec='-Bexport'
8675
if test -d /usr/nec; then
8676
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8677
hardcode_shlibpath_var=no
8678
runpath_var=LD_RUN_PATH
8679
hardcode_runpath_var=yes
8684
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8685
no_undefined_flag='${wl}-z,text'
8686
archive_cmds_need_lc=no
8687
hardcode_shlibpath_var=no
8688
runpath_var='LD_RUN_PATH'
8690
if test "$GCC" = yes; then
8691
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8692
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8694
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8695
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8699
sysv5* | sco3.2v5* | sco5v6*)
8700
# Note: We can NOT use -z defs as we might desire, because we do not
8701
# link with -lc, and that would cause any symbols used from libc to
8702
# always be unresolved, which means just about no library would
8703
# ever link correctly. If we're not using GNU ld we use -z text
8704
# though, which does catch some bad symbols but isn't as heavy-handed
8706
no_undefined_flag='${wl}-z,text'
8707
allow_undefined_flag='${wl}-z,nodefs'
8708
archive_cmds_need_lc=no
8709
hardcode_shlibpath_var=no
8710
hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8711
hardcode_libdir_separator=':'
8712
link_all_deplibs=yes
8713
export_dynamic_flag_spec='${wl}-Bexport'
8714
runpath_var='LD_RUN_PATH'
8716
if test "$GCC" = yes; then
8717
archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8718
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8720
archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8721
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8726
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8727
hardcode_libdir_flag_spec='-L$libdir'
8728
hardcode_shlibpath_var=no
8737
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8738
$as_echo "$ld_shlibs" >&6; }
8739
test "$ld_shlibs" = no && can_build_shared=no
8742
# Do we need to explicitly link libc?
8744
case "x$archive_cmds_need_lc" in
8746
# Assume -lc should be added
8747
archive_cmds_need_lc=yes
8749
if test "$enable_shared" = yes && test "$GCC" = yes; then
8750
case $archive_cmds in
8752
# FIXME: we may have to deal with multi-command sequences.
8755
# Test whether the compiler implicitly links with -lc since on some
8756
# systems, -lgcc has to come before -lc. If gcc already passes -lc
8757
# to ld, don't add -lc before -lgcc.
8758
{ $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8759
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8761
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8763
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8764
(eval $ac_compile) 2>&5
8766
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767
(exit $ac_status); } 2>conftest.err; then
8770
libobjs=conftest.$ac_objext
8772
wl=$lt_prog_compiler_wl
8773
pic_flag=$lt_prog_compiler_pic
8779
lt_save_allow_undefined_flag=$allow_undefined_flag
8780
allow_undefined_flag=
8781
if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8782
(eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8784
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8785
(exit $ac_status); }
8787
archive_cmds_need_lc=no
8789
archive_cmds_need_lc=yes
8791
allow_undefined_flag=$lt_save_allow_undefined_flag
8793
cat conftest.err 1>&5
8796
{ $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8797
$as_echo "$archive_cmds_need_lc" >&6; }
8804
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8805
$as_echo_n "checking dynamic linker characteristics... " >&6; }
8807
libname_spec='lib$name'
8815
shlibpath_overrides_runpath=unknown
8817
dynamic_linker="$host_os ld.so"
8818
sys_lib_dlsearch_path_spec="/lib /usr/lib"
8820
if test "$GCC" = yes; then
8822
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8823
*) lt_awk_arg="/^libraries:/" ;;
8825
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8826
if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8827
# if the path contains ";" then we assume it to be the separator
8828
# otherwise default to the standard path separator (i.e. ":") - it is
8829
# assumed that no part of a normal pathname contains ";" but that should
8830
# okay in the real world where ";" in dirpaths is itself problematic.
8831
lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8833
lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8835
# Ok, now we have the path, separated by spaces, we can step through it
8836
# and add multilib dir if necessary.
8837
lt_tmp_lt_search_path_spec=
8838
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8839
for lt_sys_path in $lt_search_path_spec; do
8840
if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8841
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8843
test -d "$lt_sys_path" && \
8844
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8847
lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8848
BEGIN {RS=" "; FS="/|\n";} {
8851
for (lt_i = NF; lt_i > 0; lt_i--) {
8852
if ($lt_i != "" && $lt_i != ".") {
8853
if ($lt_i == "..") {
8856
if (lt_count == 0) {
8857
lt_foo="/" $lt_i lt_foo;
8864
if (lt_foo != "") { lt_freq[lt_foo]++; }
8865
if (lt_freq[lt_foo] == 1) { print lt_foo; }
8867
sys_lib_search_path_spec=`echo $lt_search_path_spec`
8869
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8871
need_lib_prefix=unknown
8872
hardcode_into_libs=no
8874
# when you set need_version to no, make sure it does not cause -set_version
8875
# flags to be left without arguments
8876
need_version=unknown
8881
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8882
shlibpath_var=LIBPATH
8884
# AIX 3 has no versioning support, so we append a major version to the name.
8885
soname_spec='${libname}${release}${shared_ext}$major'
8892
hardcode_into_libs=yes
8893
if test "$host_cpu" = ia64; then
8894
# AIX 5 supports IA64
8895
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8896
shlibpath_var=LD_LIBRARY_PATH
8898
# With GCC up to 2.95.x, collect2 would create an import file
8899
# for dependence libraries. The import file would start with
8900
# the line `#! .'. This would cause the generated library to
8901
# depend on `.', always an invalid library. This was fixed in
8902
# development snapshots of GCC prior to 3.0.
8904
aix4 | aix4.[01] | aix4.[01].*)
8905
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8907
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8914
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8915
# soname into executable. Probably we can add versioning support to
8916
# collect2, so additional links can be useful in future.
8917
if test "$aix_use_runtimelinking" = yes; then
8918
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
8919
# instead of lib<name>.a to let people know that these are not
8920
# typical AIX shared libraries.
8921
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8923
# We preserve .a as extension for shared libraries through AIX4.2
8924
# and later when we are not doing run time linking.
8925
library_names_spec='${libname}${release}.a $libname.a'
8926
soname_spec='${libname}${release}${shared_ext}$major'
8928
shlibpath_var=LIBPATH
8933
library_names_spec='$libname.ixlibrary $libname.a'
8934
# Create ${libname}_ixlibrary.a entries in /sys/libs.
8935
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'
8939
library_names_spec='${libname}${shared_ext}'
8940
dynamic_linker="$host_os ld.so"
8941
shlibpath_var=LIBRARY_PATH
8947
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8948
soname_spec='${libname}${release}${shared_ext}$major'
8949
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8950
shlibpath_var=LD_LIBRARY_PATH
8951
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8952
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8953
# the default ld.so.conf also contains /usr/contrib/lib and
8954
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8955
# libtool to hard-code these into programs
8958
cygwin* | mingw* | pw32*)
8959
version_type=windows
8964
case $GCC,$host_os in
8965
yes,cygwin* | yes,mingw* | yes,pw32*)
8966
library_names_spec='$libname.dll.a'
8967
# DLL is installed to $(libdir)/../bin by postinstall_cmds
8968
postinstall_cmds='base_file=`basename \${file}`~
8969
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8970
dldir=$destdir/`dirname \$dlpath`~
8971
test -d \$dldir || mkdir -p \$dldir~
8972
$install_prog $dir/$dlname \$dldir/$dlname~
8973
chmod a+x \$dldir/$dlname'
8974
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8975
dlpath=$dir/\$dldll~
8977
shlibpath_overrides_runpath=yes
8981
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
8982
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8983
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8986
# MinGW DLLs use traditional 'lib' prefix
8987
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8988
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8989
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8990
# It is most probably a Windows format PATH printed by
8991
# mingw gcc, but we are running on Cygwin. Gcc prints its search
8992
# path with ; separators, and with drive letters. We can handle the
8993
# drive letters (cygwin fileutils understands them), so leave them,
8994
# especially as we might pass files found there to a mingw objdump,
8995
# which wouldn't understand a cygwinified path. Ahh.
8996
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8998
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9002
# pw32 DLLs use 'pw' prefix rather than 'lib'
9003
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9009
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9012
dynamic_linker='Win32 ld.exe'
9013
# FIXME: first we should search . and the directory the executable is in
9017
darwin* | rhapsody*)
9018
dynamic_linker="$host_os dyld"
9022
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9023
soname_spec='${libname}${release}${major}$shared_ext'
9024
shlibpath_overrides_runpath=yes
9025
shlibpath_var=DYLD_LIBRARY_PATH
9026
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9028
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9029
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9036
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9037
soname_spec='${libname}${release}${shared_ext}$major'
9038
shlibpath_var=LD_LIBRARY_PATH
9045
freebsd* | dragonfly*)
9046
# DragonFly does not have aout. When/if they implement a new
9047
# versioning mechanism, adjust this.
9048
if test -x /usr/bin/objformat; then
9049
objformat=`/usr/bin/objformat`
9052
freebsd[123]*) objformat=aout ;;
9056
version_type=freebsd-$objformat
9057
case $version_type in
9059
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9064
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9068
shlibpath_var=LD_LIBRARY_PATH
9071
shlibpath_overrides_runpath=yes
9073
freebsd3.[01]* | freebsdelf3.[01]*)
9074
shlibpath_overrides_runpath=yes
9075
hardcode_into_libs=yes
9077
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9078
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9079
shlibpath_overrides_runpath=no
9080
hardcode_into_libs=yes
9082
*) # from 4.6 on, and DragonFly
9083
shlibpath_overrides_runpath=yes
9084
hardcode_into_libs=yes
9093
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9094
soname_spec='${libname}${release}${shared_ext}$major'
9095
shlibpath_var=LD_LIBRARY_PATH
9096
hardcode_into_libs=yes
9099
hpux9* | hpux10* | hpux11*)
9100
# Give a soname corresponding to the major version so that dld.sl refuses to
9101
# link against other versions.
9108
hardcode_into_libs=yes
9109
dynamic_linker="$host_os dld.so"
9110
shlibpath_var=LD_LIBRARY_PATH
9111
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9112
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9113
soname_spec='${libname}${release}${shared_ext}$major'
9114
if test "X$HPUX_IA64_MODE" = X32; then
9115
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9117
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9119
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9123
hardcode_into_libs=yes
9124
dynamic_linker="$host_os dld.sl"
9125
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9126
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9127
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9128
soname_spec='${libname}${release}${shared_ext}$major'
9129
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9130
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9134
dynamic_linker="$host_os dld.sl"
9135
shlibpath_var=SHLIB_PATH
9136
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9137
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9138
soname_spec='${libname}${release}${shared_ext}$major'
9141
# HP-UX runs *really* slowly unless shared libraries are mode 555.
9142
postinstall_cmds='chmod 555 $lib'
9149
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9150
soname_spec='${libname}${release}${shared_ext}$major'
9151
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9152
shlibpath_var=LD_LIBRARY_PATH
9153
shlibpath_overrides_runpath=no
9154
hardcode_into_libs=yes
9157
irix5* | irix6* | nonstopux*)
9159
nonstopux*) version_type=nonstopux ;;
9161
if test "$lt_cv_prog_gnu_ld" = yes; then
9169
soname_spec='${libname}${release}${shared_ext}$major'
9170
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9172
irix5* | nonstopux*)
9176
case $LD in # libtool.m4 will add one of these switches to LD
9177
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9178
libsuff= shlibsuff= libmagic=32-bit;;
9179
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9180
libsuff=32 shlibsuff=N32 libmagic=N32;;
9181
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9182
libsuff=64 shlibsuff=64 libmagic=64-bit;;
9183
*) libsuff= shlibsuff= libmagic=never-match;;
9187
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9188
shlibpath_overrides_runpath=no
9189
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9190
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9191
hardcode_into_libs=yes
9194
# No shared lib support for Linux oldld, aout, or coff.
9195
linux*oldld* | linux*aout* | linux*coff*)
9199
# This must be Linux ELF.
9200
linux* | k*bsd*-gnu)
9204
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9205
soname_spec='${libname}${release}${shared_ext}$major'
9206
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9207
shlibpath_var=LD_LIBRARY_PATH
9208
shlibpath_overrides_runpath=no
9209
# This implies no fast_install, which is unacceptable.
9210
# Some rework will be needed to allow for fast_install
9211
# before this can be enabled.
9212
hardcode_into_libs=yes
9214
# Append ld.so.conf contents to the search path
9215
if test -f /etc/ld.so.conf; then
9216
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' ' '`
9217
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9220
# We used to test for /lib/ld.so.1 and disable shared libraries on
9221
# powerpc, because MkLinux only supported shared libraries with the
9222
# GNU dynamic linker. Since this was broken with cross compilers,
9223
# most powerpc-linux boxes support dynamic linking these days and
9224
# people can always --disable-shared, the test was removed, and we
9225
# assume the GNU/Linux dynamic linker is in use.
9226
dynamic_linker='GNU/Linux ld.so'
9233
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9234
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9235
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9236
dynamic_linker='NetBSD (a.out) ld.so'
9238
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9239
soname_spec='${libname}${release}${shared_ext}$major'
9240
dynamic_linker='NetBSD ld.elf_so'
9242
shlibpath_var=LD_LIBRARY_PATH
9243
shlibpath_overrides_runpath=yes
9244
hardcode_into_libs=yes
9249
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9250
shlibpath_var=LD_LIBRARY_PATH
9251
shlibpath_overrides_runpath=yes
9258
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9259
soname_spec='${libname}${release}${shared_ext}$major'
9260
shlibpath_var=LD_LIBRARY_PATH
9261
shlibpath_overrides_runpath=yes
9266
sys_lib_dlsearch_path_spec="/usr/lib"
9268
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9270
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9271
*) need_version=no ;;
9273
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9274
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9275
shlibpath_var=LD_LIBRARY_PATH
9276
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9278
openbsd2.[89] | openbsd2.[89].*)
9279
shlibpath_overrides_runpath=no
9282
shlibpath_overrides_runpath=yes
9286
shlibpath_overrides_runpath=yes
9291
libname_spec='$name'
9294
library_names_spec='$libname${shared_ext} $libname.a'
9295
dynamic_linker='OS/2 ld.exe'
9296
shlibpath_var=LIBPATH
9299
osf3* | osf4* | osf5*)
9303
soname_spec='${libname}${release}${shared_ext}$major'
9304
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9305
shlibpath_var=LD_LIBRARY_PATH
9306
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9307
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9318
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9319
soname_spec='${libname}${release}${shared_ext}$major'
9320
shlibpath_var=LD_LIBRARY_PATH
9321
shlibpath_overrides_runpath=yes
9322
hardcode_into_libs=yes
9323
# ldd complains unless libraries are executable
9324
postinstall_cmds='chmod +x $lib'
9329
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9330
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9331
shlibpath_var=LD_LIBRARY_PATH
9332
shlibpath_overrides_runpath=yes
9333
if test "$with_gnu_ld" = yes; then
9341
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9342
soname_spec='${libname}${release}${shared_ext}$major'
9343
shlibpath_var=LD_LIBRARY_PATH
9344
case $host_vendor in
9346
shlibpath_overrides_runpath=no
9348
export_dynamic_flag_spec='${wl}-Blargedynsym'
9349
runpath_var=LD_RUN_PATH
9357
shlibpath_overrides_runpath=no
9358
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9364
if test -d /usr/nec ;then
9366
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9367
soname_spec='$libname${shared_ext}.$major'
9368
shlibpath_var=LD_LIBRARY_PATH
9372
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9373
version_type=freebsd-elf
9376
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9377
soname_spec='${libname}${release}${shared_ext}$major'
9378
shlibpath_var=LD_LIBRARY_PATH
9379
hardcode_into_libs=yes
9380
if test "$with_gnu_ld" = yes; then
9381
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9382
shlibpath_overrides_runpath=no
9384
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9385
shlibpath_overrides_runpath=yes
9388
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9392
sys_lib_dlsearch_path_spec='/usr/lib'
9397
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9398
soname_spec='${libname}${release}${shared_ext}$major'
9399
shlibpath_var=LD_LIBRARY_PATH
9406
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9407
$as_echo "$dynamic_linker" >&6; }
9408
test "$dynamic_linker" = no && can_build_shared=no
9410
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9411
$as_echo_n "(cached) " >&6
9413
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9416
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9417
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9418
$as_echo_n "(cached) " >&6
9420
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9423
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9425
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9426
if test "$GCC" = yes; then
9427
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9430
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9431
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9433
if test -n "$hardcode_libdir_flag_spec" || \
9434
test -n "$runpath_var" || \
9435
test "X$hardcode_automatic" = "Xyes" ; then
9437
# We can hardcode non-existant directories.
9438
if test "$hardcode_direct" != no &&
9439
# If the only mechanism to avoid hardcoding is shlibpath_var, we
9440
# have to relink, otherwise we might link with an installed library
9441
# when we should be linking with a yet-to-be-installed one
9442
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9443
test "$hardcode_minus_L" != no; then
9444
# Linking always hardcodes the temporary library directory.
9445
hardcode_action=relink
9447
# We can link without hardcoding, and we can hardcode nonexisting dirs.
9448
hardcode_action=immediate
9451
# We cannot hardcode anything, or else we can only hardcode existing
9453
hardcode_action=unsupported
9455
{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
9456
$as_echo "$hardcode_action" >&6; }
9458
if test "$hardcode_action" = relink; then
9459
# Fast installation is not supported
9460
enable_fast_install=no
9461
elif test "$shlibpath_overrides_runpath" = yes ||
9462
test "$enable_shared" = no; then
9463
# Fast installation is not necessary
9464
enable_fast_install=needless
9469
{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9470
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
9471
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9472
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9473
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9474
{ $as_echo "$as_me:$LINENO: result: yes" >&5
9475
$as_echo "yes" >&6; }
9477
# FIXME - insert some real tests, host_os isn't really good enough
9480
if test -n "$STRIP" ; then
9481
striplib="$STRIP -x"
9482
old_striplib="$STRIP -S"
9483
{ $as_echo "$as_me:$LINENO: result: yes" >&5
9484
$as_echo "yes" >&6; }
9486
{ $as_echo "$as_me:$LINENO: result: no" >&5
9487
$as_echo "no" >&6; }
9491
{ $as_echo "$as_me:$LINENO: result: no" >&5
9492
$as_echo "no" >&6; }
9497
if test "x$enable_dlopen" != xyes; then
9498
enable_dlopen=unknown
9499
enable_dlopen_self=unknown
9500
enable_dlopen_self_static=unknown
9507
lt_cv_dlopen="load_add_on"
9509
lt_cv_dlopen_self=yes
9513
lt_cv_dlopen="LoadLibrary"
9518
lt_cv_dlopen="dlopen"
9523
# if libdl is installed we need to link against it
9524
{ $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9525
$as_echo_n "checking for dlopen in -ldl... " >&6; }
9526
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9527
$as_echo_n "(cached) " >&6
9529
ac_check_lib_save_LIBS=$LIBS
9531
cat >conftest.$ac_ext <<_ACEOF
9534
cat confdefs.h >>conftest.$ac_ext
9535
cat >>conftest.$ac_ext <<_ACEOF
9536
/* end confdefs.h. */
9538
/* Override any GCC internal prototype to avoid an error.
9539
Use char because int might match the return type of a GCC
9540
builtin and then its argument prototype would still apply. */
9553
rm -f conftest.$ac_objext conftest$ac_exeext
9554
if { (ac_try="$ac_link"
9556
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9557
*) ac_try_echo=$ac_try;;
9559
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9560
$as_echo "$ac_try_echo") >&5
9561
(eval "$ac_link") 2>conftest.er1
9563
grep -v '^ *+' conftest.er1 >conftest.err
9565
cat conftest.err >&5
9566
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9567
(exit $ac_status); } && {
9568
test -z "$ac_c_werror_flag" ||
9569
test ! -s conftest.err
9570
} && test -s conftest$ac_exeext && {
9571
test "$cross_compiling" = yes ||
9572
$as_test_x conftest$ac_exeext
9574
ac_cv_lib_dl_dlopen=yes
9576
$as_echo "$as_me: failed program was:" >&5
9577
sed 's/^/| /' conftest.$ac_ext >&5
9579
ac_cv_lib_dl_dlopen=no
9582
rm -rf conftest.dSYM
9583
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9584
conftest$ac_exeext conftest.$ac_ext
9585
LIBS=$ac_check_lib_save_LIBS
9587
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9588
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9589
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
9590
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9595
lt_cv_dlopen_self=yes
9602
{ $as_echo "$as_me:$LINENO: checking for shl_load" >&5
9603
$as_echo_n "checking for shl_load... " >&6; }
9604
if test "${ac_cv_func_shl_load+set}" = set; then
9605
$as_echo_n "(cached) " >&6
9607
cat >conftest.$ac_ext <<_ACEOF
9610
cat confdefs.h >>conftest.$ac_ext
9611
cat >>conftest.$ac_ext <<_ACEOF
9612
/* end confdefs.h. */
9613
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9614
For example, HP-UX 11i <limits.h> declares gettimeofday. */
9615
#define shl_load innocuous_shl_load
9617
/* System header to define __stub macros and hopefully few prototypes,
9618
which can conflict with char shl_load (); below.
9619
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9620
<limits.h> exists even on freestanding compilers. */
9623
# include <limits.h>
9625
# include <assert.h>
9630
/* Override any GCC internal prototype to avoid an error.
9631
Use char because int might match the return type of a GCC
9632
builtin and then its argument prototype would still apply. */
9637
/* The GNU C library defines this for functions which it implements
9638
to always fail with ENOSYS. Some functions are actually named
9639
something starting with __ and the normal name is an alias. */
9640
#if defined __stub_shl_load || defined __stub___shl_load
9652
rm -f conftest.$ac_objext conftest$ac_exeext
9653
if { (ac_try="$ac_link"
9655
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9656
*) ac_try_echo=$ac_try;;
9658
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9659
$as_echo "$ac_try_echo") >&5
9660
(eval "$ac_link") 2>conftest.er1
9662
grep -v '^ *+' conftest.er1 >conftest.err
9664
cat conftest.err >&5
9665
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9666
(exit $ac_status); } && {
9667
test -z "$ac_c_werror_flag" ||
9668
test ! -s conftest.err
9669
} && test -s conftest$ac_exeext && {
9670
test "$cross_compiling" = yes ||
9671
$as_test_x conftest$ac_exeext
9673
ac_cv_func_shl_load=yes
9675
$as_echo "$as_me: failed program was:" >&5
9676
sed 's/^/| /' conftest.$ac_ext >&5
9678
ac_cv_func_shl_load=no
9681
rm -rf conftest.dSYM
9682
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9683
conftest$ac_exeext conftest.$ac_ext
9685
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9686
$as_echo "$ac_cv_func_shl_load" >&6; }
9687
if test "x$ac_cv_func_shl_load" = x""yes; then
9688
lt_cv_dlopen="shl_load"
9690
{ $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9691
$as_echo_n "checking for shl_load in -ldld... " >&6; }
9692
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9693
$as_echo_n "(cached) " >&6
9695
ac_check_lib_save_LIBS=$LIBS
9697
cat >conftest.$ac_ext <<_ACEOF
9700
cat confdefs.h >>conftest.$ac_ext
9701
cat >>conftest.$ac_ext <<_ACEOF
9702
/* end confdefs.h. */
9704
/* Override any GCC internal prototype to avoid an error.
9705
Use char because int might match the return type of a GCC
9706
builtin and then its argument prototype would still apply. */
9719
rm -f conftest.$ac_objext conftest$ac_exeext
9720
if { (ac_try="$ac_link"
9722
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9723
*) ac_try_echo=$ac_try;;
9725
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9726
$as_echo "$ac_try_echo") >&5
9727
(eval "$ac_link") 2>conftest.er1
9729
grep -v '^ *+' conftest.er1 >conftest.err
9731
cat conftest.err >&5
9732
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9733
(exit $ac_status); } && {
9734
test -z "$ac_c_werror_flag" ||
9735
test ! -s conftest.err
9736
} && test -s conftest$ac_exeext && {
9737
test "$cross_compiling" = yes ||
9738
$as_test_x conftest$ac_exeext
9740
ac_cv_lib_dld_shl_load=yes
9742
$as_echo "$as_me: failed program was:" >&5
9743
sed 's/^/| /' conftest.$ac_ext >&5
9745
ac_cv_lib_dld_shl_load=no
9748
rm -rf conftest.dSYM
9749
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9750
conftest$ac_exeext conftest.$ac_ext
9751
LIBS=$ac_check_lib_save_LIBS
9753
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9754
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9755
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
9756
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9758
{ $as_echo "$as_me:$LINENO: checking for dlopen" >&5
9759
$as_echo_n "checking for dlopen... " >&6; }
9760
if test "${ac_cv_func_dlopen+set}" = set; then
9761
$as_echo_n "(cached) " >&6
9763
cat >conftest.$ac_ext <<_ACEOF
9766
cat confdefs.h >>conftest.$ac_ext
9767
cat >>conftest.$ac_ext <<_ACEOF
9768
/* end confdefs.h. */
9769
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9770
For example, HP-UX 11i <limits.h> declares gettimeofday. */
9771
#define dlopen innocuous_dlopen
9773
/* System header to define __stub macros and hopefully few prototypes,
9774
which can conflict with char dlopen (); below.
9775
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9776
<limits.h> exists even on freestanding compilers. */
9779
# include <limits.h>
9781
# include <assert.h>
9786
/* Override any GCC internal prototype to avoid an error.
9787
Use char because int might match the return type of a GCC
9788
builtin and then its argument prototype would still apply. */
9793
/* The GNU C library defines this for functions which it implements
9794
to always fail with ENOSYS. Some functions are actually named
9795
something starting with __ and the normal name is an alias. */
9796
#if defined __stub_dlopen || defined __stub___dlopen
9808
rm -f conftest.$ac_objext conftest$ac_exeext
9809
if { (ac_try="$ac_link"
9811
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9812
*) ac_try_echo=$ac_try;;
9814
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9815
$as_echo "$ac_try_echo") >&5
9816
(eval "$ac_link") 2>conftest.er1
9818
grep -v '^ *+' conftest.er1 >conftest.err
9820
cat conftest.err >&5
9821
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822
(exit $ac_status); } && {
9823
test -z "$ac_c_werror_flag" ||
9824
test ! -s conftest.err
9825
} && test -s conftest$ac_exeext && {
9826
test "$cross_compiling" = yes ||
9827
$as_test_x conftest$ac_exeext
9829
ac_cv_func_dlopen=yes
9831
$as_echo "$as_me: failed program was:" >&5
9832
sed 's/^/| /' conftest.$ac_ext >&5
9834
ac_cv_func_dlopen=no
9837
rm -rf conftest.dSYM
9838
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9839
conftest$ac_exeext conftest.$ac_ext
9841
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9842
$as_echo "$ac_cv_func_dlopen" >&6; }
9843
if test "x$ac_cv_func_dlopen" = x""yes; then
9844
lt_cv_dlopen="dlopen"
9846
{ $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9847
$as_echo_n "checking for dlopen in -ldl... " >&6; }
9848
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9849
$as_echo_n "(cached) " >&6
9851
ac_check_lib_save_LIBS=$LIBS
9853
cat >conftest.$ac_ext <<_ACEOF
9856
cat confdefs.h >>conftest.$ac_ext
9857
cat >>conftest.$ac_ext <<_ACEOF
9858
/* end confdefs.h. */
9860
/* Override any GCC internal prototype to avoid an error.
9861
Use char because int might match the return type of a GCC
9862
builtin and then its argument prototype would still apply. */
9875
rm -f conftest.$ac_objext conftest$ac_exeext
9876
if { (ac_try="$ac_link"
9878
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9879
*) ac_try_echo=$ac_try;;
9881
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9882
$as_echo "$ac_try_echo") >&5
9883
(eval "$ac_link") 2>conftest.er1
9885
grep -v '^ *+' conftest.er1 >conftest.err
9887
cat conftest.err >&5
9888
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9889
(exit $ac_status); } && {
9890
test -z "$ac_c_werror_flag" ||
9891
test ! -s conftest.err
9892
} && test -s conftest$ac_exeext && {
9893
test "$cross_compiling" = yes ||
9894
$as_test_x conftest$ac_exeext
9896
ac_cv_lib_dl_dlopen=yes
9898
$as_echo "$as_me: failed program was:" >&5
9899
sed 's/^/| /' conftest.$ac_ext >&5
9901
ac_cv_lib_dl_dlopen=no
9904
rm -rf conftest.dSYM
9905
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9906
conftest$ac_exeext conftest.$ac_ext
9907
LIBS=$ac_check_lib_save_LIBS
9909
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9910
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9911
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
9912
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9914
{ $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9915
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
9916
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9917
$as_echo_n "(cached) " >&6
9919
ac_check_lib_save_LIBS=$LIBS
9921
cat >conftest.$ac_ext <<_ACEOF
9924
cat confdefs.h >>conftest.$ac_ext
9925
cat >>conftest.$ac_ext <<_ACEOF
9926
/* end confdefs.h. */
9928
/* Override any GCC internal prototype to avoid an error.
9929
Use char because int might match the return type of a GCC
9930
builtin and then its argument prototype would still apply. */
9943
rm -f conftest.$ac_objext conftest$ac_exeext
9944
if { (ac_try="$ac_link"
9946
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9947
*) ac_try_echo=$ac_try;;
9949
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9950
$as_echo "$ac_try_echo") >&5
9951
(eval "$ac_link") 2>conftest.er1
9953
grep -v '^ *+' conftest.er1 >conftest.err
9955
cat conftest.err >&5
9956
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9957
(exit $ac_status); } && {
9958
test -z "$ac_c_werror_flag" ||
9959
test ! -s conftest.err
9960
} && test -s conftest$ac_exeext && {
9961
test "$cross_compiling" = yes ||
9962
$as_test_x conftest$ac_exeext
9964
ac_cv_lib_svld_dlopen=yes
9966
$as_echo "$as_me: failed program was:" >&5
9967
sed 's/^/| /' conftest.$ac_ext >&5
9969
ac_cv_lib_svld_dlopen=no
9972
rm -rf conftest.dSYM
9973
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9974
conftest$ac_exeext conftest.$ac_ext
9975
LIBS=$ac_check_lib_save_LIBS
9977
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9978
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9979
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
9980
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9982
{ $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9983
$as_echo_n "checking for dld_link in -ldld... " >&6; }
9984
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9985
$as_echo_n "(cached) " >&6
9987
ac_check_lib_save_LIBS=$LIBS
9989
cat >conftest.$ac_ext <<_ACEOF
9992
cat confdefs.h >>conftest.$ac_ext
9993
cat >>conftest.$ac_ext <<_ACEOF
9994
/* end confdefs.h. */
9996
/* Override any GCC internal prototype to avoid an error.
9997
Use char because int might match the return type of a GCC
9998
builtin and then its argument prototype would still apply. */
10006
return dld_link ();
10011
rm -f conftest.$ac_objext conftest$ac_exeext
10012
if { (ac_try="$ac_link"
10013
case "(($ac_try" in
10014
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10015
*) ac_try_echo=$ac_try;;
10017
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10018
$as_echo "$ac_try_echo") >&5
10019
(eval "$ac_link") 2>conftest.er1
10021
grep -v '^ *+' conftest.er1 >conftest.err
10023
cat conftest.err >&5
10024
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10025
(exit $ac_status); } && {
10026
test -z "$ac_c_werror_flag" ||
10027
test ! -s conftest.err
10028
} && test -s conftest$ac_exeext && {
10029
test "$cross_compiling" = yes ||
10030
$as_test_x conftest$ac_exeext
10032
ac_cv_lib_dld_dld_link=yes
10034
$as_echo "$as_me: failed program was:" >&5
10035
sed 's/^/| /' conftest.$ac_ext >&5
10037
ac_cv_lib_dld_dld_link=no
10040
rm -rf conftest.dSYM
10041
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10042
conftest$ac_exeext conftest.$ac_ext
10043
LIBS=$ac_check_lib_save_LIBS
10045
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10046
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10047
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
10048
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10069
if test "x$lt_cv_dlopen" != xno; then
10075
case $lt_cv_dlopen in
10077
save_CPPFLAGS="$CPPFLAGS"
10078
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10080
save_LDFLAGS="$LDFLAGS"
10081
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10084
LIBS="$lt_cv_dlopen_libs $LIBS"
10086
{ $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10087
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10088
if test "${lt_cv_dlopen_self+set}" = set; then
10089
$as_echo_n "(cached) " >&6
10091
if test "$cross_compiling" = yes; then :
10092
lt_cv_dlopen_self=cross
10094
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10095
lt_status=$lt_dlunknown
10096
cat > conftest.$ac_ext <<EOF
10097
#line 10097 "configure"
10098
#include "confdefs.h"
10107
# define LT_DLGLOBAL RTLD_GLOBAL
10110
# define LT_DLGLOBAL DL_GLOBAL
10112
# define LT_DLGLOBAL 0
10116
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10117
find out it does not work in some platform. */
10118
#ifndef LT_DLLAZY_OR_NOW
10120
# define LT_DLLAZY_OR_NOW RTLD_LAZY
10123
# define LT_DLLAZY_OR_NOW DL_LAZY
10126
# define LT_DLLAZY_OR_NOW RTLD_NOW
10129
# define LT_DLLAZY_OR_NOW DL_NOW
10131
# define LT_DLLAZY_OR_NOW 0
10139
extern "C" void exit (int);
10142
void fnord() { int i=42;}
10145
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10146
int status = $lt_dlunknown;
10150
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10151
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10152
/* dlclose (self); */
10160
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10161
(eval $ac_link) 2>&5
10163
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10164
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10165
(./conftest; exit; ) >&5 2>/dev/null
10167
case x$lt_status in
10168
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10169
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10170
x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10173
# compilation failed
10174
lt_cv_dlopen_self=no
10181
{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10182
$as_echo "$lt_cv_dlopen_self" >&6; }
10184
if test "x$lt_cv_dlopen_self" = xyes; then
10185
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10186
{ $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10187
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10188
if test "${lt_cv_dlopen_self_static+set}" = set; then
10189
$as_echo_n "(cached) " >&6
10191
if test "$cross_compiling" = yes; then :
10192
lt_cv_dlopen_self_static=cross
10194
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10195
lt_status=$lt_dlunknown
10196
cat > conftest.$ac_ext <<EOF
10197
#line 10197 "configure"
10198
#include "confdefs.h"
10207
# define LT_DLGLOBAL RTLD_GLOBAL
10210
# define LT_DLGLOBAL DL_GLOBAL
10212
# define LT_DLGLOBAL 0
10216
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10217
find out it does not work in some platform. */
10218
#ifndef LT_DLLAZY_OR_NOW
10220
# define LT_DLLAZY_OR_NOW RTLD_LAZY
10223
# define LT_DLLAZY_OR_NOW DL_LAZY
10226
# define LT_DLLAZY_OR_NOW RTLD_NOW
10229
# define LT_DLLAZY_OR_NOW DL_NOW
10231
# define LT_DLLAZY_OR_NOW 0
10239
extern "C" void exit (int);
10242
void fnord() { int i=42;}
10245
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10246
int status = $lt_dlunknown;
10250
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10251
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10252
/* dlclose (self); */
10260
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10261
(eval $ac_link) 2>&5
10263
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10264
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10265
(./conftest; exit; ) >&5 2>/dev/null
10267
case x$lt_status in
10268
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10269
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10270
x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10273
# compilation failed
10274
lt_cv_dlopen_self_static=no
10281
{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10282
$as_echo "$lt_cv_dlopen_self_static" >&6; }
10285
CPPFLAGS="$save_CPPFLAGS"
10286
LDFLAGS="$save_LDFLAGS"
10291
case $lt_cv_dlopen_self in
10292
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10293
*) enable_dlopen_self=unknown ;;
10296
case $lt_cv_dlopen_self_static in
10297
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10298
*) enable_dlopen_self_static=unknown ;;
10303
# Report which library types will actually be built
10304
{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10305
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10306
{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
10307
$as_echo "$can_build_shared" >&6; }
10309
{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10310
$as_echo_n "checking whether to build shared libraries... " >&6; }
10311
test "$can_build_shared" = "no" && enable_shared=no
10313
# On AIX, shared libraries and static libraries use the same namespace, and
10314
# are all built from PIC.
10317
test "$enable_shared" = yes && enable_static=no
10318
if test -n "$RANLIB"; then
10319
archive_cmds="$archive_cmds~\$RANLIB \$lib"
10320
postinstall_cmds='$RANLIB $lib'
10325
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10326
test "$enable_shared" = yes && enable_static=no
10330
{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
10331
$as_echo "$enable_shared" >&6; }
10333
{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10334
$as_echo_n "checking whether to build static libraries... " >&6; }
10335
# Make sure either enable_shared or enable_static is yes.
10336
test "$enable_shared" = yes || enable_static=yes
10337
{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
10338
$as_echo "$enable_static" >&6; }
10340
# The else clause should only fire when bootstrapping the
10341
# libtool distribution, otherwise you forgot to ship ltmain.sh
10342
# with your package, and you will get complaints that there are
10343
# no rules to generate ltmain.sh.
10344
if test -f "$ltmain"; then
10345
# See if we are running on zsh, and set the options which allow our commands through
10346
# without removal of \ escapes.
10347
if test -n "${ZSH_VERSION+set}" ; then
10348
setopt NO_GLOB_SUBST
10350
# Now quote all the things that may contain metacharacters while being
10351
# careful not to overquote the AC_SUBSTed values. We take copies of the
10352
# variables and quote the copies for generation of the libtool script.
10353
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10355
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10356
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10357
deplibs_check_method reload_flag reload_cmds need_locks \
10358
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10359
lt_cv_sys_global_symbol_to_c_name_address \
10360
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10361
old_postinstall_cmds old_postuninstall_cmds \
10365
lt_prog_compiler_wl \
10366
lt_prog_compiler_pic \
10367
lt_prog_compiler_static \
10368
lt_prog_compiler_no_builtin_flag \
10369
export_dynamic_flag_spec \
10370
thread_safe_flag_spec \
10371
whole_archive_flag_spec \
10372
enable_shared_with_static_runtimes \
10374
old_archive_from_new_cmds \
10379
compiler_lib_search_path \
10380
compiler_lib_search_dirs \
10382
archive_expsym_cmds \
10384
postuninstall_cmds \
10385
old_archive_from_expsyms_cmds \
10386
allow_undefined_flag \
10387
no_undefined_flag \
10388
export_symbols_cmds \
10389
hardcode_libdir_flag_spec \
10390
hardcode_libdir_flag_spec_ld \
10391
hardcode_libdir_separator \
10392
hardcode_automatic \
10394
module_expsym_cmds \
10395
lt_cv_prog_compiler_c_o \
10398
include_expsyms; do
10401
old_archive_cmds | \
10402
old_archive_from_new_cmds | \
10404
archive_expsym_cmds | \
10406
module_expsym_cmds | \
10407
old_archive_from_expsyms_cmds | \
10408
export_symbols_cmds | \
10409
extract_expsyms_cmds | reload_cmds | finish_cmds | \
10410
postinstall_cmds | postuninstall_cmds | \
10411
old_postinstall_cmds | old_postuninstall_cmds | \
10412
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10413
# Double-quote double-evaled strings.
10414
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10417
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10423
*'\$0 --fallback-echo"')
10424
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10428
cfgfile="${ofile}T"
10429
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10431
{ $as_echo "$as_me:$LINENO: creating $ofile" >&5
10432
$as_echo "$as_me: creating $ofile" >&6;}
10434
cat <<__EOF__ >> "$cfgfile"
10437
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10438
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10439
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10441
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10442
# Free Software Foundation, Inc.
10444
# This file is part of GNU Libtool:
10445
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10447
# This program is free software; you can redistribute it and/or modify
10448
# it under the terms of the GNU General Public License as published by
10449
# the Free Software Foundation; either version 2 of the License, or
10450
# (at your option) any later version.
10452
# This program is distributed in the hope that it will be useful, but
10453
# WITHOUT ANY WARRANTY; without even the implied warranty of
10454
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10455
# General Public License for more details.
10457
# You should have received a copy of the GNU General Public License
10458
# along with this program; if not, write to the Free Software
10459
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10461
# As a special exception to the GNU General Public License, if you
10462
# distribute this file as part of a program that contains a
10463
# configuration script generated by Autoconf, you may include it under
10464
# the same distribution terms that you use for the rest of that program.
10466
# A sed program that does not truncate output.
10469
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10470
Xsed="$SED -e 1s/^X//"
10472
# The HP-UX ksh and POSIX shell print the target directory to stdout
10473
# if CDPATH is set.
10474
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10476
# The names of the tagged configurations supported by this script.
10479
# ### BEGIN LIBTOOL CONFIG
10481
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10483
# Shell to use when invoking shell scripts.
10486
# Whether or not to build shared libraries.
10487
build_libtool_libs=$enable_shared
10489
# Whether or not to build static libraries.
10490
build_old_libs=$enable_static
10492
# Whether or not to add -lc for building shared libraries.
10493
build_libtool_need_lc=$archive_cmds_need_lc
10495
# Whether or not to disallow shared libs when runtime libs are static
10496
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10498
# Whether or not to optimize for fast installation.
10499
fast_install=$enable_fast_install
10502
host_alias=$host_alias
10506
# The build system.
10507
build_alias=$build_alias
10511
# An echo program that does not interpret backslashes.
10516
AR_FLAGS=$lt_AR_FLAGS
10521
# LTCC compiler flags.
10522
LTCFLAGS=$lt_LTCFLAGS
10524
# A language-specific compiler.
10527
# Is the compiler the GNU C compiler?
10533
# The linker used to build libraries.
10536
# Whether we need hard or soft links.
10539
# A BSD-compatible nm program.
10542
# A symbol stripping program
10545
# Used to examine libraries when file_magic_cmd begins "file"
10546
MAGIC_CMD=$MAGIC_CMD
10548
# Used on cygwin: DLL creation program.
10551
# Used on cygwin: object dumper.
10554
# Used on cygwin: assembler.
10557
# The name of the directory that contains temporary libtool files.
10560
# How to create reloadable object files.
10561
reload_flag=$lt_reload_flag
10562
reload_cmds=$lt_reload_cmds
10564
# How to pass a linker flag through the compiler.
10565
wl=$lt_lt_prog_compiler_wl
10567
# Object file suffix (normally "o").
10568
objext="$ac_objext"
10570
# Old archive suffix (normally "a").
10573
# Shared library suffix (normally ".so").
10574
shrext_cmds='$shrext_cmds'
10576
# Executable file suffix (normally "").
10579
# Additional compiler flags for building library objects.
10580
pic_flag=$lt_lt_prog_compiler_pic
10583
# What is the maximum length of a command?
10584
max_cmd_len=$lt_cv_sys_max_cmd_len
10586
# Does compiler simultaneously support -c and -o options?
10587
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10589
# Must we lock files when doing compilation?
10590
need_locks=$lt_need_locks
10592
# Do we need the lib prefix for modules?
10593
need_lib_prefix=$need_lib_prefix
10595
# Do we need a version for libraries?
10596
need_version=$need_version
10598
# Whether dlopen is supported.
10599
dlopen_support=$enable_dlopen
10601
# Whether dlopen of programs is supported.
10602
dlopen_self=$enable_dlopen_self
10604
# Whether dlopen of statically linked programs is supported.
10605
dlopen_self_static=$enable_dlopen_self_static
10607
# Compiler flag to prevent dynamic linking.
10608
link_static_flag=$lt_lt_prog_compiler_static
10610
# Compiler flag to turn off builtin functions.
10611
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10613
# Compiler flag to allow reflexive dlopens.
10614
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10616
# Compiler flag to generate shared objects directly from archives.
10617
whole_archive_flag_spec=$lt_whole_archive_flag_spec
10619
# Compiler flag to generate thread-safe objects.
10620
thread_safe_flag_spec=$lt_thread_safe_flag_spec
10622
# Library versioning type.
10623
version_type=$version_type
10625
# Format of library name prefix.
10626
libname_spec=$lt_libname_spec
10628
# List of archive names. First name is the real one, the rest are links.
10629
# The last name is the one that the linker finds with -lNAME.
10630
library_names_spec=$lt_library_names_spec
10632
# The coded name of the library, if different from the real name.
10633
soname_spec=$lt_soname_spec
10635
# Commands used to build and install an old-style archive.
10637
old_archive_cmds=$lt_old_archive_cmds
10638
old_postinstall_cmds=$lt_old_postinstall_cmds
10639
old_postuninstall_cmds=$lt_old_postuninstall_cmds
10641
# Create an old-style archive from a shared archive.
10642
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10644
# Create a temporary old-style archive to link instead of a shared archive.
10645
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10647
# Commands used to build and install a shared archive.
10648
archive_cmds=$lt_archive_cmds
10649
archive_expsym_cmds=$lt_archive_expsym_cmds
10650
postinstall_cmds=$lt_postinstall_cmds
10651
postuninstall_cmds=$lt_postuninstall_cmds
10653
# Commands used to build a loadable module (assumed same as above if empty)
10654
module_cmds=$lt_module_cmds
10655
module_expsym_cmds=$lt_module_expsym_cmds
10657
# Commands to strip libraries.
10658
old_striplib=$lt_old_striplib
10659
striplib=$lt_striplib
10661
# Dependencies to place before the objects being linked to create a
10663
predep_objects=$lt_predep_objects
10665
# Dependencies to place after the objects being linked to create a
10667
postdep_objects=$lt_postdep_objects
10669
# Dependencies to place before the objects being linked to create a
10671
predeps=$lt_predeps
10673
# Dependencies to place after the objects being linked to create a
10675
postdeps=$lt_postdeps
10677
# The directories searched by this compiler when creating a shared
10679
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10681
# The library search path used internally by the compiler when linking
10682
# a shared library.
10683
compiler_lib_search_path=$lt_compiler_lib_search_path
10685
# Method to check whether dependent libraries are shared objects.
10686
deplibs_check_method=$lt_deplibs_check_method
10688
# Command to use when deplibs_check_method == file_magic.
10689
file_magic_cmd=$lt_file_magic_cmd
10691
# Flag that allows shared libraries with undefined symbols to be built.
10692
allow_undefined_flag=$lt_allow_undefined_flag
10694
# Flag that forces no undefined symbols.
10695
no_undefined_flag=$lt_no_undefined_flag
10697
# Commands used to finish a libtool library installation in a directory.
10698
finish_cmds=$lt_finish_cmds
10700
# Same as above, but a single script fragment to be evaled but not shown.
10701
finish_eval=$lt_finish_eval
10703
# Take the output of nm and produce a listing of raw symbols and C names.
10704
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10706
# Transform the output of nm in a proper C declaration
10707
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10709
# Transform the output of nm in a C name address pair
10710
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10712
# This is the shared library runtime path variable.
10713
runpath_var=$runpath_var
10715
# This is the shared library path variable.
10716
shlibpath_var=$shlibpath_var
10718
# Is shlibpath searched before the hard-coded library search path?
10719
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10721
# How to hardcode a shared library path into an executable.
10722
hardcode_action=$hardcode_action
10724
# Whether we should hardcode library paths into libraries.
10725
hardcode_into_libs=$hardcode_into_libs
10727
# Flag to hardcode \$libdir into a binary during linking.
10728
# This must work even if \$libdir does not exist.
10729
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10731
# If ld is used when linking, flag to hardcode \$libdir into
10732
# a binary during linking. This must work even if \$libdir does
10734
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10736
# Whether we need a single -rpath flag with a separated argument.
10737
hardcode_libdir_separator=$lt_hardcode_libdir_separator
10739
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10740
# resulting binary.
10741
hardcode_direct=$hardcode_direct
10743
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10744
# resulting binary.
10745
hardcode_minus_L=$hardcode_minus_L
10747
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10748
# the resulting binary.
10749
hardcode_shlibpath_var=$hardcode_shlibpath_var
10751
# Set to yes if building a shared library automatically hardcodes DIR into the library
10752
# and all subsequent libraries and executables linked against it.
10753
hardcode_automatic=$hardcode_automatic
10755
# Variables whose values should be saved in libtool wrapper scripts and
10756
# restored at relink time.
10757
variables_saved_for_relink="$variables_saved_for_relink"
10759
# Whether libtool must link a program against all its dependency libraries.
10760
link_all_deplibs=$link_all_deplibs
10762
# Compile-time system search path for libraries
10763
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10765
# Run-time system search path for libraries
10766
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10768
# Fix the shell variable \$srcfile for the compiler.
10769
fix_srcfile_path=$lt_fix_srcfile_path
10771
# Set to yes if exported symbols are required.
10772
always_export_symbols=$always_export_symbols
10774
# The commands to list exported symbols.
10775
export_symbols_cmds=$lt_export_symbols_cmds
10777
# The commands to extract the exported symbol list from a shared archive.
10778
extract_expsyms_cmds=$lt_extract_expsyms_cmds
10780
# Symbols that should not be listed in the preloaded symbols.
10781
exclude_expsyms=$lt_exclude_expsyms
10783
# Symbols that must always be exported.
10784
include_expsyms=$lt_include_expsyms
10786
# ### END LIBTOOL CONFIG
10793
cat <<\EOF >> "$cfgfile"
10795
# AIX sometimes has problems with the GCC collect2 program. For some
10796
# reason, if we set the COLLECT_NAMES environment variable, the problems
10797
# vanish in a puff of smoke.
10798
if test "X${COLLECT_NAMES+set}" != Xset; then
10800
export COLLECT_NAMES
10806
# We use sed instead of cat because bash on DJGPP gets confused if
10807
# if finds mixed CR/LF and LF-only lines. Since sed operates in
10808
# text mode, it properly converts lines to CR/LF. This bash problem
10809
# is reportedly fixed, but why not run on old versions too?
10810
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10812
mv -f "$cfgfile" "$ofile" || \
10813
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10817
# If there is no Makefile yet, we rely on a make rule to execute
10818
# `config.status --recheck' to rerun these tests and create the
10819
# libtool script then.
10820
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10821
if test -f "$ltmain_in"; then
10822
test -f Makefile && make "$ltmain"
10828
ac_cpp='$CPP $CPPFLAGS'
10829
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10830
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10831
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10836
# Check whether --with-tags was given.
10837
if test "${with_tags+set}" = set; then
10838
withval=$with_tags; tagnames="$withval"
10842
if test -f "$ltmain" && test -n "$tagnames"; then
10843
if test ! -f "${ofile}"; then
10844
{ $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10845
$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10848
if test -z "$LTCC"; then
10849
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10850
if test -z "$LTCC"; then
10851
{ $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10852
$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10854
{ $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10855
$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10858
if test -z "$LTCFLAGS"; then
10859
eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10862
# Extract list of available tagged configurations in $ofile.
10863
# Note that this assumes the entire list is on one line.
10864
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10866
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10867
for tagname in $tagnames; do
10869
# Check whether tagname contains only valid characters
10870
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10872
*) { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10873
$as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
10874
{ (exit 1); exit 1; }; }
10878
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10880
{ { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10881
$as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10882
{ (exit 1); exit 1; }; }
10885
# Update the list of available tags.
10886
if test -n "$tagname"; then
10887
echo appending configuration tag \"$tagname\" to $ofile
10891
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10892
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10893
(test "X$CXX" != "Xg++"))) ; then
10895
ac_cpp='$CXXCPP $CPPFLAGS'
10896
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10897
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10898
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10903
archive_cmds_need_lc_CXX=no
10904
allow_undefined_flag_CXX=
10905
always_export_symbols_CXX=no
10906
archive_expsym_cmds_CXX=
10907
export_dynamic_flag_spec_CXX=
10908
hardcode_direct_CXX=no
10909
hardcode_libdir_flag_spec_CXX=
10910
hardcode_libdir_flag_spec_ld_CXX=
10911
hardcode_libdir_separator_CXX=
10912
hardcode_minus_L_CXX=no
10913
hardcode_shlibpath_var_CXX=unsupported
10914
hardcode_automatic_CXX=no
10916
module_expsym_cmds_CXX=
10917
link_all_deplibs_CXX=unknown
10918
old_archive_cmds_CXX=$old_archive_cmds
10919
no_undefined_flag_CXX=
10920
whole_archive_flag_spec_CXX=
10921
enable_shared_with_static_runtimes_CXX=no
10923
# Dependencies to place before and after the object being linked:
10924
predep_objects_CXX=
10925
postdep_objects_CXX=
10928
compiler_lib_search_path_CXX=
10929
compiler_lib_search_dirs_CXX=
10931
# Source file extension for C++ test sources.
10934
# Object file extension for compiled C++ test sources.
10938
# Code to be used in simple compile tests
10939
lt_simple_compile_test_code="int some_variable = 0;"
10941
# Code to be used in simple link tests
10942
lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10944
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10946
# If no C compiler was specified, use CC.
10949
# If no C compiler flags were specified, use CFLAGS.
10950
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10952
# Allow CC to be a program name with arguments.
10956
# save warnings/boilerplate of simple test code
10957
ac_outfile=conftest.$ac_objext
10958
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10959
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10960
_lt_compiler_boilerplate=`cat conftest.err`
10963
ac_outfile=conftest.$ac_objext
10964
echo "$lt_simple_link_test_code" >conftest.$ac_ext
10965
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10966
_lt_linker_boilerplate=`cat conftest.err`
10970
# Allow CC to be a program name with arguments.
10975
lt_save_with_gnu_ld=$with_gnu_ld
10976
lt_save_path_LD=$lt_cv_path_LD
10977
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10978
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10980
$as_unset lt_cv_prog_gnu_ld
10982
if test -n "${lt_cv_path_LDCXX+set}"; then
10983
lt_cv_path_LD=$lt_cv_path_LDCXX
10985
$as_unset lt_cv_path_LD
10987
test -z "${LDCXX+set}" || LD=$LDCXX
10991
for cc_temp in $compiler""; do
10993
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10994
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10999
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11002
# We don't want -fno-exception wen compiling C++ code, so set the
11003
# no_builtin_flag separately
11004
if test "$GXX" = yes; then
11005
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11007
lt_prog_compiler_no_builtin_flag_CXX=
11010
if test "$GXX" = yes; then
11011
# Set up default GNU C++ configuration
11014
# Check whether --with-gnu-ld was given.
11015
if test "${with_gnu_ld+set}" = set; then
11016
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11022
if test "$GCC" = yes; then
11023
# Check if gcc -print-prog-name=ld gives a path.
11024
{ $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11025
$as_echo_n "checking for ld used by $CC... " >&6; }
11028
# gcc leaves a trailing carriage return which upsets mingw
11029
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11031
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11034
# Accept absolute paths.
11036
re_direlt='/[^/][^/]*/\.\./'
11037
# Canonicalize the pathname of ld
11038
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11039
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11040
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11042
test -z "$LD" && LD="$ac_prog"
11045
# If it fails, then pretend we aren't using GCC.
11049
# If it is relative, then search for the first ld in PATH.
11050
with_gnu_ld=unknown
11053
elif test "$with_gnu_ld" = yes; then
11054
{ $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
11055
$as_echo_n "checking for GNU ld... " >&6; }
11057
{ $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11058
$as_echo_n "checking for non-GNU ld... " >&6; }
11060
if test "${lt_cv_path_LD+set}" = set; then
11061
$as_echo_n "(cached) " >&6
11063
if test -z "$LD"; then
11064
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11065
for ac_dir in $PATH; do
11067
test -z "$ac_dir" && ac_dir=.
11068
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11069
lt_cv_path_LD="$ac_dir/$ac_prog"
11070
# Check to see if the program is GNU ld. I'd rather use --version,
11071
# but apparently some variants of GNU ld only accept -v.
11072
# Break only if it was the GNU/non-GNU ld that we prefer.
11073
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11074
*GNU* | *'with BFD'*)
11075
test "$with_gnu_ld" != no && break
11078
test "$with_gnu_ld" != yes && break
11085
lt_cv_path_LD="$LD" # Let the user override the test with a path.
11089
LD="$lt_cv_path_LD"
11090
if test -n "$LD"; then
11091
{ $as_echo "$as_me:$LINENO: result: $LD" >&5
11092
$as_echo "$LD" >&6; }
11094
{ $as_echo "$as_me:$LINENO: result: no" >&5
11095
$as_echo "no" >&6; }
11097
test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11098
$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11099
{ (exit 1); exit 1; }; }
11100
{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11101
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11102
if test "${lt_cv_prog_gnu_ld+set}" = set; then
11103
$as_echo_n "(cached) " >&6
11105
# I'd rather use --version here, but apparently some GNU lds only accept -v.
11106
case `$LD -v 2>&1 </dev/null` in
11107
*GNU* | *'with BFD'*)
11108
lt_cv_prog_gnu_ld=yes
11111
lt_cv_prog_gnu_ld=no
11115
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11116
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
11117
with_gnu_ld=$lt_cv_prog_gnu_ld
11121
# Check if GNU C++ uses GNU ld as the underlying linker, since the
11122
# archiving commands below assume that GNU ld is being used.
11123
if test "$with_gnu_ld" = yes; then
11124
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11125
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'
11127
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11128
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11130
# If archive_cmds runs LD, not CC, wlarc should be empty
11131
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11132
# investigate it a little bit more. (MM)
11135
# ancient GNU ld didn't support --whole-archive et. al.
11136
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11137
grep 'no-whole-archive' > /dev/null; then
11138
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11140
whole_archive_flag_spec_CXX=
11146
# A generic and very simple default shared library creation
11147
# command for GNU C++ for the case where it uses the native
11148
# linker, instead of GNU ld. If possible, this setting should
11149
# overridden to take advantage of the native linker features on
11150
# the platform it is being used on.
11151
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11154
# Commands to make compiler produce verbose output that lists
11155
# what "hidden" libraries, object files and flags are used when
11156
# linking a shared library.
11157
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11165
# PORTME: fill in a description of your system's C++ link characteristics
11166
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11167
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11171
# FIXME: insert proper C++ library support
11175
if test "$host_cpu" = ia64; then
11176
# On IA64, the linker does run time linking by default, so we don't
11177
# have to do anything special.
11178
aix_use_runtimelinking=no
11179
exp_sym_flag='-Bexport'
11182
aix_use_runtimelinking=no
11184
# Test if we are trying to use run time linking or normal
11185
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11186
# need to do runtime linking.
11187
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11188
for ld_flag in $LDFLAGS; do
11191
aix_use_runtimelinking=yes
11199
exp_sym_flag='-bexport'
11200
no_entry_flag='-bnoentry'
11203
# When large executables or shared objects are built, AIX ld can
11204
# have problems creating the table of contents. If linking a library
11205
# or program results in "error TOC overflow" add -mminimal-toc to
11206
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11207
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11209
archive_cmds_CXX=''
11210
hardcode_direct_CXX=yes
11211
hardcode_libdir_separator_CXX=':'
11212
link_all_deplibs_CXX=yes
11214
if test "$GXX" = yes; then
11215
case $host_os in aix4.[012]|aix4.[012].*)
11216
# We only want to do this on AIX 4.2 and lower, the check
11217
# below for broken collect2 doesn't work under 4.3+
11218
collect2name=`${CC} -print-prog-name=collect2`
11219
if test -f "$collect2name" && \
11220
strings "$collect2name" | grep resolve_lib_name >/dev/null
11222
# We have reworked collect2
11225
# We have old collect2
11226
hardcode_direct_CXX=unsupported
11227
# It fails to find uninstalled libraries when the uninstalled
11228
# path is not listed in the libpath. Setting hardcode_minus_L
11229
# to unsupported forces relinking
11230
hardcode_minus_L_CXX=yes
11231
hardcode_libdir_flag_spec_CXX='-L$libdir'
11232
hardcode_libdir_separator_CXX=
11236
shared_flag='-shared'
11237
if test "$aix_use_runtimelinking" = yes; then
11238
shared_flag="$shared_flag "'${wl}-G'
11242
if test "$host_cpu" = ia64; then
11243
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11244
# chokes on -Wl,-G. The following line is correct:
11247
if test "$aix_use_runtimelinking" = yes; then
11248
shared_flag='${wl}-G'
11250
shared_flag='${wl}-bM:SRE'
11255
# It seems that -bexpall does not export symbols beginning with
11256
# underscore (_), so it is better to generate a list of symbols to export.
11257
always_export_symbols_CXX=yes
11258
if test "$aix_use_runtimelinking" = yes; then
11259
# Warning - without using the other runtime loading flags (-brtl),
11260
# -berok will link without error, but may produce a broken library.
11261
allow_undefined_flag_CXX='-berok'
11262
# Determine the default libpath from the value encoded in an empty executable.
11263
cat >conftest.$ac_ext <<_ACEOF
11266
cat confdefs.h >>conftest.$ac_ext
11267
cat >>conftest.$ac_ext <<_ACEOF
11268
/* end confdefs.h. */
11278
rm -f conftest.$ac_objext conftest$ac_exeext
11279
if { (ac_try="$ac_link"
11280
case "(($ac_try" in
11281
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11282
*) ac_try_echo=$ac_try;;
11284
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11285
$as_echo "$ac_try_echo") >&5
11286
(eval "$ac_link") 2>conftest.er1
11288
grep -v '^ *+' conftest.er1 >conftest.err
11290
cat conftest.err >&5
11291
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11292
(exit $ac_status); } && {
11293
test -z "$ac_cxx_werror_flag" ||
11294
test ! -s conftest.err
11295
} && test -s conftest$ac_exeext && {
11296
test "$cross_compiling" = yes ||
11297
$as_test_x conftest$ac_exeext
11300
lt_aix_libpath_sed='
11301
/Import File Strings/,/^$/ {
11307
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11308
# Check for a 64-bit object if we didn't find anything.
11309
if test -z "$aix_libpath"; then
11310
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11313
$as_echo "$as_me: failed program was:" >&5
11314
sed 's/^/| /' conftest.$ac_ext >&5
11319
rm -rf conftest.dSYM
11320
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11321
conftest$ac_exeext conftest.$ac_ext
11322
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11324
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11326
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"
11328
if test "$host_cpu" = ia64; then
11329
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11330
allow_undefined_flag_CXX="-z nodefs"
11331
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"
11333
# Determine the default libpath from the value encoded in an empty executable.
11334
cat >conftest.$ac_ext <<_ACEOF
11337
cat confdefs.h >>conftest.$ac_ext
11338
cat >>conftest.$ac_ext <<_ACEOF
11339
/* end confdefs.h. */
11349
rm -f conftest.$ac_objext conftest$ac_exeext
11350
if { (ac_try="$ac_link"
11351
case "(($ac_try" in
11352
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11353
*) ac_try_echo=$ac_try;;
11355
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11356
$as_echo "$ac_try_echo") >&5
11357
(eval "$ac_link") 2>conftest.er1
11359
grep -v '^ *+' conftest.er1 >conftest.err
11361
cat conftest.err >&5
11362
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11363
(exit $ac_status); } && {
11364
test -z "$ac_cxx_werror_flag" ||
11365
test ! -s conftest.err
11366
} && test -s conftest$ac_exeext && {
11367
test "$cross_compiling" = yes ||
11368
$as_test_x conftest$ac_exeext
11371
lt_aix_libpath_sed='
11372
/Import File Strings/,/^$/ {
11378
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11379
# Check for a 64-bit object if we didn't find anything.
11380
if test -z "$aix_libpath"; then
11381
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11384
$as_echo "$as_me: failed program was:" >&5
11385
sed 's/^/| /' conftest.$ac_ext >&5
11390
rm -rf conftest.dSYM
11391
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11392
conftest$ac_exeext conftest.$ac_ext
11393
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11395
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11396
# Warning - without using the other run time loading flags,
11397
# -berok will link without error, but may produce a broken library.
11398
no_undefined_flag_CXX=' ${wl}-bernotok'
11399
allow_undefined_flag_CXX=' ${wl}-berok'
11400
# Exported symbols can be pulled into shared objects from archives
11401
whole_archive_flag_spec_CXX='$convenience'
11402
archive_cmds_need_lc_CXX=yes
11403
# This is similar to how AIX traditionally builds its shared libraries.
11404
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'
11410
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11411
allow_undefined_flag_CXX=unsupported
11412
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11413
# support --undefined. This deserves some investigation. FIXME
11414
archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11421
case $cc_basename in
11423
# FIXME: insert proper C++ library support
11429
cygwin* | mingw* | pw32*)
11430
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11431
# as there is no search path for DLLs.
11432
hardcode_libdir_flag_spec_CXX='-L$libdir'
11433
allow_undefined_flag_CXX=unsupported
11434
always_export_symbols_CXX=no
11435
enable_shared_with_static_runtimes_CXX=yes
11437
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11438
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'
11439
# If the export-symbols file already is a .def file (1st line
11440
# is EXPORTS), use it as is; otherwise, prepend...
11441
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11442
cp $export_symbols $output_objdir/$soname.def;
11444
echo EXPORTS > $output_objdir/$soname.def;
11445
cat $export_symbols >> $output_objdir/$soname.def;
11447
$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'
11452
darwin* | rhapsody*)
11453
archive_cmds_need_lc_CXX=no
11454
hardcode_direct_CXX=no
11455
hardcode_automatic_CXX=yes
11456
hardcode_shlibpath_var_CXX=unsupported
11457
whole_archive_flag_spec_CXX=''
11458
link_all_deplibs_CXX=yes
11459
allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11460
if test "$GXX" = yes ; then
11461
output_verbose_link_cmd='echo'
11462
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}"
11463
module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11464
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}"
11465
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}"
11466
if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11467
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}"
11468
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}"
11471
case $cc_basename in
11473
output_verbose_link_cmd='echo'
11474
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'
11475
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11476
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11477
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}'
11478
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}'
11488
case $cc_basename in
11490
# FIXME: insert proper C++ library support
11494
# Green Hills C++ Compiler
11495
# FIXME: insert proper C++ library support
11499
# FIXME: insert proper C++ library support
11505
# C++ shared libraries reported to be fairly broken before switch to ELF
11509
archive_cmds_need_lc_CXX=no
11511
freebsd* | dragonfly*)
11512
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11519
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11520
hardcode_libdir_separator_CXX=:
11521
export_dynamic_flag_spec_CXX='${wl}-E'
11522
hardcode_direct_CXX=yes
11523
hardcode_minus_L_CXX=yes # Not in the search PATH,
11524
# but as the default
11525
# location of the library.
11527
case $cc_basename in
11529
# FIXME: insert proper C++ library support
11533
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'
11534
# Commands to make compiler produce verbose output that lists
11535
# what "hidden" libraries, object files and flags are used when
11536
# linking a shared library.
11538
# There doesn't appear to be a way to prevent this compiler from
11539
# explicitly linking system object files so we need to strip them
11540
# from the output so that they don't get included in the library
11542
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'
11545
if test "$GXX" = yes; then
11546
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'
11548
# FIXME: insert proper C++ library support
11555
if test $with_gnu_ld = no; then
11556
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11557
hardcode_libdir_separator_CXX=:
11562
export_dynamic_flag_spec_CXX='${wl}-E'
11568
hardcode_direct_CXX=no
11569
hardcode_shlibpath_var_CXX=no
11572
hardcode_direct_CXX=yes
11573
hardcode_minus_L_CXX=yes # Not in the search PATH,
11574
# but as the default
11575
# location of the library.
11579
case $cc_basename in
11581
# FIXME: insert proper C++ library support
11587
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11590
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11593
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11596
# Commands to make compiler produce verbose output that lists
11597
# what "hidden" libraries, object files and flags are used when
11598
# linking a shared library.
11600
# There doesn't appear to be a way to prevent this compiler from
11601
# explicitly linking system object files so we need to strip them
11602
# from the output so that they don't get included in the library
11604
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'
11607
if test "$GXX" = yes; then
11608
if test $with_gnu_ld = no; then
11611
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11614
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11617
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'
11622
# FIXME: insert proper C++ library support
11629
hardcode_direct_CXX=no
11630
hardcode_shlibpath_var_CXX=no
11631
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11632
export_dynamic_flag_spec_CXX='${wl}-E'
11633
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11634
# Instead, shared libraries are loaded at an image base (0x10000000 by
11635
# default) and relocated if they conflict, which is a slow very memory
11636
# consuming and fragmenting process. To avoid this, we pick a random,
11637
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11638
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
11639
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'
11640
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'
11643
case $cc_basename in
11646
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'
11648
# Archives containing C++ object files must be created using
11649
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
11650
# necessary to make sure instantiated templates are included
11652
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11655
if test "$GXX" = yes; then
11656
if test "$with_gnu_ld" = no; then
11657
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'
11659
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'
11662
link_all_deplibs_CXX=yes
11665
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11666
hardcode_libdir_separator_CXX=:
11668
linux* | k*bsd*-gnu)
11669
case $cc_basename in
11671
# Kuck and Associates, Inc. (KAI) C++ Compiler
11673
# KCC will only create a shared library if the output file
11674
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11675
# to its proper name (with version) after linking.
11676
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'
11677
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'
11678
# Commands to make compiler produce verbose output that lists
11679
# what "hidden" libraries, object files and flags are used when
11680
# linking a shared library.
11682
# There doesn't appear to be a way to prevent this compiler from
11683
# explicitly linking system object files so we need to strip them
11684
# from the output so that they don't get included in the library
11686
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'
11688
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11689
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11691
# Archives containing C++ object files must be created using
11692
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11693
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11698
# version 8.0 and above of icpc choke on multiply defined symbols
11699
# if we add $predep_objects and $postdep_objects, however 7.1 and
11700
# earlier do not add the objects themselves.
11701
case `$CC -V 2>&1` in
11703
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11704
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'
11706
*) # Version 8.0 or newer
11709
ia64*) tmp_idyn=' -i_dynamic';;
11711
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11712
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'
11715
archive_cmds_need_lc_CXX=no
11716
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11717
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11718
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11721
# Portland Group C++ compiler
11722
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11723
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'
11725
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11726
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11727
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'
11731
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11732
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'
11734
runpath_var=LD_RUN_PATH
11735
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11736
hardcode_libdir_separator_CXX=:
11738
# Commands to make compiler produce verbose output that lists
11739
# what "hidden" libraries, object files and flags are used when
11740
# linking a shared library.
11742
# There doesn't appear to be a way to prevent this compiler from
11743
# explicitly linking system object files so we need to strip them
11744
# from the output so that they don't get included in the library
11746
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'
11749
case `$CC -V 2>&1 | sed 5q` in
11752
no_undefined_flag_CXX=' -zdefs'
11753
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11754
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'
11755
hardcode_libdir_flag_spec_CXX='-R$libdir'
11756
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'
11758
# Not sure whether something based on
11759
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11761
output_verbose_link_cmd='echo'
11763
# Archives containing C++ object files must be created using
11764
# "CC -xar", where "CC" is the Sun C++ compiler. This is
11765
# necessary to make sure instantiated templates are included
11767
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11774
# FIXME: insert proper C++ library support
11778
# FIXME: insert proper C++ library support
11782
case $cc_basename in
11784
# FIXME: insert proper C++ library support
11788
# FIXME: insert proper C++ library support
11794
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11795
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11797
hardcode_libdir_flag_spec_CXX='-R$libdir'
11798
hardcode_direct_CXX=yes
11799
hardcode_shlibpath_var_CXX=no
11801
# Workaround some broken pre-1.5 toolchains
11802
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11805
# C++ shared libraries are fairly broken
11809
if test -f /usr/libexec/ld.so; then
11810
hardcode_direct_CXX=yes
11811
hardcode_shlibpath_var_CXX=no
11812
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11813
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11814
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11815
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11816
export_dynamic_flag_spec_CXX='${wl}-E'
11817
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11819
output_verbose_link_cmd='echo'
11825
case $cc_basename in
11827
# Kuck and Associates, Inc. (KAI) C++ Compiler
11829
# KCC will only create a shared library if the output file
11830
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11831
# to its proper name (with version) after linking.
11832
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'
11834
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11835
hardcode_libdir_separator_CXX=:
11837
# Archives containing C++ object files must be created using
11838
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11839
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11843
# Rational C++ 2.4.1
11844
# FIXME: insert proper C++ library support
11848
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11849
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'
11851
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11852
hardcode_libdir_separator_CXX=:
11854
# Commands to make compiler produce verbose output that lists
11855
# what "hidden" libraries, object files and flags are used when
11856
# linking a shared library.
11858
# There doesn't appear to be a way to prevent this compiler from
11859
# explicitly linking system object files so we need to strip them
11860
# from the output so that they don't get included in the library
11862
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'
11865
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11866
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11867
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'
11869
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11870
hardcode_libdir_separator_CXX=:
11872
# Commands to make compiler produce verbose output that lists
11873
# what "hidden" libraries, object files and flags are used when
11874
# linking a shared library.
11875
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11878
# FIXME: insert proper C++ library support
11885
case $cc_basename in
11887
# Kuck and Associates, Inc. (KAI) C++ Compiler
11889
# KCC will only create a shared library if the output file
11890
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11891
# to its proper name (with version) after linking.
11892
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'
11894
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11895
hardcode_libdir_separator_CXX=:
11897
# Archives containing C++ object files must be created using
11898
# the KAI C++ compiler.
11899
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11902
# Rational C++ 2.4.1
11903
# FIXME: insert proper C++ library support
11907
allow_undefined_flag_CXX=' -expect_unresolved \*'
11908
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'
11909
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11910
echo "-hidden">> $lib.exp~
11911
$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~
11914
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11915
hardcode_libdir_separator_CXX=:
11917
# Commands to make compiler produce verbose output that lists
11918
# what "hidden" libraries, object files and flags are used when
11919
# linking a shared library.
11921
# There doesn't appear to be a way to prevent this compiler from
11922
# explicitly linking system object files so we need to strip them
11923
# from the output so that they don't get included in the library
11925
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'
11928
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11929
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11930
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'
11932
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11933
hardcode_libdir_separator_CXX=:
11935
# Commands to make compiler produce verbose output that lists
11936
# what "hidden" libraries, object files and flags are used when
11937
# linking a shared library.
11938
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11941
# FIXME: insert proper C++ library support
11948
# FIXME: insert proper C++ library support
11952
case $cc_basename in
11955
# FIXME: insert proper C++ library support
11960
# FIXME: insert proper C++ library support
11964
# FIXME: insert proper C++ library support
11970
case $cc_basename in
11972
# Sun C++ 4.2, 5.x and Centerline C++
11973
archive_cmds_need_lc_CXX=yes
11974
no_undefined_flag_CXX=' -zdefs'
11975
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11976
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11977
$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'
11979
hardcode_libdir_flag_spec_CXX='-R$libdir'
11980
hardcode_shlibpath_var_CXX=no
11982
solaris2.[0-5] | solaris2.[0-5].*) ;;
11984
# The compiler driver will combine and reorder linker options,
11985
# but understands `-z linker_flag'.
11986
# Supported since Solaris 2.6 (maybe 2.5.1?)
11987
whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
11990
link_all_deplibs_CXX=yes
11992
output_verbose_link_cmd='echo'
11994
# Archives containing C++ object files must be created using
11995
# "CC -xar", where "CC" is the Sun C++ compiler. This is
11996
# necessary to make sure instantiated templates are included
11998
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12001
# Green Hills C++ Compiler
12002
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12004
# The C++ compiler must be used to create the archive.
12005
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12008
# GNU C++ compiler with Solaris linker
12009
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12010
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12011
if $CC --version | grep -v '^2\.7' > /dev/null; then
12012
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12013
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12014
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12016
# Commands to make compiler produce verbose output that lists
12017
# what "hidden" libraries, object files and flags are used when
12018
# linking a shared library.
12019
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12021
# g++ 2.7 appears to require `-G' NOT `-shared' on this
12023
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12024
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12025
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12027
# Commands to make compiler produce verbose output that lists
12028
# what "hidden" libraries, object files and flags are used when
12029
# linking a shared library.
12030
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12033
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12035
solaris2.[0-5] | solaris2.[0-5].*) ;;
12037
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12044
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12045
no_undefined_flag_CXX='${wl}-z,text'
12046
archive_cmds_need_lc_CXX=no
12047
hardcode_shlibpath_var_CXX=no
12048
runpath_var='LD_RUN_PATH'
12050
case $cc_basename in
12052
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12053
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12056
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12057
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12061
sysv5* | sco3.2v5* | sco5v6*)
12062
# Note: We can NOT use -z defs as we might desire, because we do not
12063
# link with -lc, and that would cause any symbols used from libc to
12064
# always be unresolved, which means just about no library would
12065
# ever link correctly. If we're not using GNU ld we use -z text
12066
# though, which does catch some bad symbols but isn't as heavy-handed
12068
# For security reasons, it is highly recommended that you always
12069
# use absolute paths for naming shared libraries, and exclude the
12070
# DT_RUNPATH tag from executables and libraries. But doing so
12071
# requires that you compile everything twice, which is a pain.
12072
# So that behaviour is only enabled if SCOABSPATH is set to a
12073
# non-empty value in the environment. Most likely only useful for
12074
# creating official distributions of packages.
12075
# This is a hack until libtool officially supports absolute path
12076
# names for shared libraries.
12077
no_undefined_flag_CXX='${wl}-z,text'
12078
allow_undefined_flag_CXX='${wl}-z,nodefs'
12079
archive_cmds_need_lc_CXX=no
12080
hardcode_shlibpath_var_CXX=no
12081
hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12082
hardcode_libdir_separator_CXX=':'
12083
link_all_deplibs_CXX=yes
12084
export_dynamic_flag_spec_CXX='${wl}-Bexport'
12085
runpath_var='LD_RUN_PATH'
12087
case $cc_basename in
12089
archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12090
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12093
archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12094
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12099
case $cc_basename in
12101
# NonStop-UX NCC 3.20
12102
# FIXME: insert proper C++ library support
12106
# FIXME: insert proper C++ library support
12112
# FIXME: insert proper C++ library support
12116
# FIXME: insert proper C++ library support
12120
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12121
$as_echo "$ld_shlibs_CXX" >&6; }
12122
test "$ld_shlibs_CXX" = no && can_build_shared=no
12127
cat > conftest.$ac_ext <<EOF
12131
Foo (void) { a = 0; }
12137
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12138
(eval $ac_compile) 2>&5
12140
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12141
(exit $ac_status); }; then
12142
# Parse the compiler output and extract the necessary
12143
# objects, libraries and library flags.
12145
# Sentinel used to keep track of whether or not we are before
12146
# the conftest object file.
12147
pre_test_object_deps_done=no
12149
# The `*' in the case matches for architectures that use `case' in
12150
# $output_verbose_cmd can trigger glob expansion during the loop
12151
# eval without this substitution.
12152
output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12154
for p in `eval $output_verbose_link_cmd`; do
12158
# Some compilers place space between "-{L,R}" and the path.
12159
# Remove the space.
12160
if test $p = "-L" \
12161
|| test $p = "-R"; then
12168
if test "$pre_test_object_deps_done" = no; then
12171
# Internal compiler library paths should come after those
12172
# provided the user. The postdeps already come after the
12173
# user supplied libs so there is no need to process them.
12174
if test -z "$compiler_lib_search_path_CXX"; then
12175
compiler_lib_search_path_CXX="${prev}${p}"
12177
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12180
# The "-l" case would never come before the object being
12181
# linked, so don't bother handling this case.
12184
if test -z "$postdeps_CXX"; then
12185
postdeps_CXX="${prev}${p}"
12187
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12193
# This assumes that the test object file only shows up
12194
# once in the compiler output.
12195
if test "$p" = "conftest.$objext"; then
12196
pre_test_object_deps_done=yes
12200
if test "$pre_test_object_deps_done" = no; then
12201
if test -z "$predep_objects_CXX"; then
12202
predep_objects_CXX="$p"
12204
predep_objects_CXX="$predep_objects_CXX $p"
12207
if test -z "$postdep_objects_CXX"; then
12208
postdep_objects_CXX="$p"
12210
postdep_objects_CXX="$postdep_objects_CXX $p"
12215
*) ;; # Ignore the rest.
12223
echo "libtool.m4: error: problem compiling CXX test program"
12226
$rm -f confest.$objext
12228
compiler_lib_search_dirs_CXX=
12229
if test -n "$compiler_lib_search_path_CXX"; then
12230
compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12233
# PORTME: override above test on systems where it is broken
12236
# Interix 3.5 installs completely hosed .la files for C++, so rather than
12237
# hack all around it, let's just trust "g++" to DTRT.
12238
predep_objects_CXX=
12239
postdep_objects_CXX=
12244
case `$CC -V 2>&1 | sed 5q` in
12248
# The more standards-conforming stlport4 library is
12249
# incompatible with the Cstd library. Avoid specifying
12250
# it if it's in CXXFLAGS. Ignore libCrun as
12251
# -library=stlport4 depends on it.
12252
case " $CXX $CXXFLAGS " in
12253
*" -library=stlport4 "*)
12254
solaris_use_stlport4=yes
12257
if test "$solaris_use_stlport4" != yes; then
12258
postdeps_CXX='-library=Cstd -library=Crun'
12265
case $cc_basename in
12267
# The more standards-conforming stlport4 library is
12268
# incompatible with the Cstd library. Avoid specifying
12269
# it if it's in CXXFLAGS. Ignore libCrun as
12270
# -library=stlport4 depends on it.
12271
case " $CXX $CXXFLAGS " in
12272
*" -library=stlport4 "*)
12273
solaris_use_stlport4=yes
12277
# Adding this requires a known-good setup of shared libraries for
12278
# Sun compiler versions before 5.6, else PIC objects from an old
12279
# archive will be linked into the output, leading to subtle bugs.
12280
if test "$solaris_use_stlport4" != yes; then
12281
postdeps_CXX='-library=Cstd -library=Crun'
12288
case " $postdeps_CXX " in
12289
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12292
lt_prog_compiler_wl_CXX=
12293
lt_prog_compiler_pic_CXX=
12294
lt_prog_compiler_static_CXX=
12296
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12297
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12299
# C++ specific cases for pic, static, wl, etc.
12300
if test "$GXX" = yes; then
12301
lt_prog_compiler_wl_CXX='-Wl,'
12302
lt_prog_compiler_static_CXX='-static'
12306
# All AIX code is PIC.
12307
if test "$host_cpu" = ia64; then
12308
# AIX 5 now supports IA64 processor
12309
lt_prog_compiler_static_CXX='-Bstatic'
12313
# FIXME: we need at least 68020 code to build shared libraries, but
12314
# adding the `-m68020' flag to GCC prevents building anything better,
12316
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12318
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12319
# PIC is the default for these OSes.
12321
mingw* | cygwin* | os2* | pw32*)
12322
# This hack is so that the source file can tell whether it is being
12323
# built for inclusion in a dll (and should export symbols for example).
12324
# Although the cygwin gcc ignores -fPIC, still need this for old-style
12325
# (--disable-auto-import) libraries
12326
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12328
darwin* | rhapsody*)
12329
# PIC is the default on this platform
12330
# Common symbols not allowed in MH_DYLIB files
12331
lt_prog_compiler_pic_CXX='-fno-common'
12334
# DJGPP does not support shared libraries at all
12335
lt_prog_compiler_pic_CXX=
12338
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
12339
# Instead, we relocate shared libraries at runtime.
12342
if test -d /usr/nec; then
12343
lt_prog_compiler_pic_CXX=-Kconform_pic
12347
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12348
# not for PA HP-UX.
12353
lt_prog_compiler_pic_CXX='-fPIC'
12358
lt_prog_compiler_pic_CXX='-fPIC'
12364
# All AIX code is PIC.
12365
if test "$host_cpu" = ia64; then
12366
# AIX 5 now supports IA64 processor
12367
lt_prog_compiler_static_CXX='-Bstatic'
12369
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12373
case $cc_basename in
12375
# Green Hills C++ Compiler
12376
# _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"
12381
# PIC is the default on this platform
12382
# Common symbols not allowed in MH_DYLIB files
12383
case $cc_basename in
12385
lt_prog_compiler_pic_CXX='-qnocommon'
12386
lt_prog_compiler_wl_CXX='-Wl,'
12391
case $cc_basename in
12393
lt_prog_compiler_pic_CXX='-KPIC'
12396
# Green Hills C++ Compiler
12397
lt_prog_compiler_pic_CXX='-pic'
12403
freebsd* | dragonfly*)
12404
# FreeBSD uses GNU C++
12406
hpux9* | hpux10* | hpux11*)
12407
case $cc_basename in
12409
lt_prog_compiler_wl_CXX='-Wl,'
12410
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12411
if test "$host_cpu" != ia64; then
12412
lt_prog_compiler_pic_CXX='+Z'
12416
lt_prog_compiler_wl_CXX='-Wl,'
12417
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12423
lt_prog_compiler_pic_CXX='+Z'
12432
# This is c89, which is MS Visual C++ (no shared libs)
12433
# Anyone wants to do a port?
12435
irix5* | irix6* | nonstopux*)
12436
case $cc_basename in
12438
lt_prog_compiler_wl_CXX='-Wl,'
12439
lt_prog_compiler_static_CXX='-non_shared'
12440
# CC pic flag -KPIC is the default.
12446
linux* | k*bsd*-gnu)
12447
case $cc_basename in
12450
lt_prog_compiler_wl_CXX='--backend -Wl,'
12451
lt_prog_compiler_pic_CXX='-fPIC'
12455
lt_prog_compiler_wl_CXX='-Wl,'
12456
lt_prog_compiler_pic_CXX='-KPIC'
12457
lt_prog_compiler_static_CXX='-static'
12460
# Portland Group C++ compiler.
12461
lt_prog_compiler_wl_CXX='-Wl,'
12462
lt_prog_compiler_pic_CXX='-fpic'
12463
lt_prog_compiler_static_CXX='-Bstatic'
12467
# Make sure the PIC flag is empty. It appears that all Alpha
12468
# Linux and Compaq Tru64 Unix objects are PIC.
12469
lt_prog_compiler_pic_CXX=
12470
lt_prog_compiler_static_CXX='-non_shared'
12473
case `$CC -V 2>&1 | sed 5q` in
12476
lt_prog_compiler_pic_CXX='-KPIC'
12477
lt_prog_compiler_static_CXX='-Bstatic'
12478
lt_prog_compiler_wl_CXX='-Qoption ld '
12489
case $cc_basename in
12491
lt_prog_compiler_pic_CXX='-W c,exportall'
12499
osf3* | osf4* | osf5*)
12500
case $cc_basename in
12502
lt_prog_compiler_wl_CXX='--backend -Wl,'
12505
# Rational C++ 2.4.1
12506
lt_prog_compiler_pic_CXX='-pic'
12509
# Digital/Compaq C++
12510
lt_prog_compiler_wl_CXX='-Wl,'
12511
# Make sure the PIC flag is empty. It appears that all Alpha
12512
# Linux and Compaq Tru64 Unix objects are PIC.
12513
lt_prog_compiler_pic_CXX=
12514
lt_prog_compiler_static_CXX='-non_shared'
12523
case $cc_basename in
12525
# Sun C++ 4.2, 5.x and Centerline C++
12526
lt_prog_compiler_pic_CXX='-KPIC'
12527
lt_prog_compiler_static_CXX='-Bstatic'
12528
lt_prog_compiler_wl_CXX='-Qoption ld '
12531
# Green Hills C++ Compiler
12532
lt_prog_compiler_pic_CXX='-PIC'
12539
case $cc_basename in
12542
lt_prog_compiler_pic_CXX='-pic'
12543
lt_prog_compiler_static_CXX='-Bstatic'
12547
lt_prog_compiler_pic_CXX='-pic'
12554
case $cc_basename in
12556
# NonStop-UX NCC 3.20
12557
lt_prog_compiler_pic_CXX='-KPIC'
12563
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12564
case $cc_basename in
12566
lt_prog_compiler_wl_CXX='-Wl,'
12567
lt_prog_compiler_pic_CXX='-KPIC'
12568
lt_prog_compiler_static_CXX='-Bstatic'
12575
lt_prog_compiler_can_build_shared_CXX=no
12580
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12581
$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
12584
# Check to make sure the PIC flag actually works.
12586
if test -n "$lt_prog_compiler_pic_CXX"; then
12588
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12589
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
12590
if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12591
$as_echo_n "(cached) " >&6
12593
lt_cv_prog_compiler_pic_works_CXX=no
12594
ac_outfile=conftest.$ac_objext
12595
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12596
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12597
# Insert the option either (1) after the last *FLAGS variable, or
12598
# (2) before a word containing "conftest.", or (3) at the end.
12599
# Note that $ac_compile itself does not contain backslashes and begins
12600
# with a dollar sign (not a hyphen), so the echo should work correctly.
12601
# The option is referenced via a variable to avoid confusing sed.
12602
lt_compile=`echo "$ac_compile" | $SED \
12603
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12604
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12605
-e 's:$: $lt_compiler_flag:'`
12606
(eval echo "\"\$as_me:12606: $lt_compile\"" >&5)
12607
(eval "$lt_compile" 2>conftest.err)
12609
cat conftest.err >&5
12610
echo "$as_me:12610: \$? = $ac_status" >&5
12611
if (exit $ac_status) && test -s "$ac_outfile"; then
12612
# The compiler can only warn and ignore the option if not recognized
12613
# So say no if there are warnings other than the usual output.
12614
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12615
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12616
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12617
lt_cv_prog_compiler_pic_works_CXX=yes
12623
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12624
$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12626
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12627
case $lt_prog_compiler_pic_CXX in
12629
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12632
lt_prog_compiler_pic_CXX=
12633
lt_prog_compiler_can_build_shared_CXX=no
12638
# For platforms which do not support PIC, -DPIC is meaningless:
12640
lt_prog_compiler_pic_CXX=
12643
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12648
# Check to make sure the static flag actually works.
12650
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12651
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12652
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12653
if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12654
$as_echo_n "(cached) " >&6
12656
lt_cv_prog_compiler_static_works_CXX=no
12657
save_LDFLAGS="$LDFLAGS"
12658
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12659
echo "$lt_simple_link_test_code" > conftest.$ac_ext
12660
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12661
# The linker can only warn and ignore the option if not recognized
12662
# So say no if there are warnings
12663
if test -s conftest.err; then
12664
# Append any errors to the config.log.
12665
cat conftest.err 1>&5
12666
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12667
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12668
if diff conftest.exp conftest.er2 >/dev/null; then
12669
lt_cv_prog_compiler_static_works_CXX=yes
12672
lt_cv_prog_compiler_static_works_CXX=yes
12676
LDFLAGS="$save_LDFLAGS"
12679
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12680
$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
12682
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12685
lt_prog_compiler_static_CXX=
12689
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12690
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12691
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12692
$as_echo_n "(cached) " >&6
12694
lt_cv_prog_compiler_c_o_CXX=no
12695
$rm -r conftest 2>/dev/null
12699
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12701
lt_compiler_flag="-o out/conftest2.$ac_objext"
12702
# Insert the option either (1) after the last *FLAGS variable, or
12703
# (2) before a word containing "conftest.", or (3) at the end.
12704
# Note that $ac_compile itself does not contain backslashes and begins
12705
# with a dollar sign (not a hyphen), so the echo should work correctly.
12706
lt_compile=`echo "$ac_compile" | $SED \
12707
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12708
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12709
-e 's:$: $lt_compiler_flag:'`
12710
(eval echo "\"\$as_me:12710: $lt_compile\"" >&5)
12711
(eval "$lt_compile" 2>out/conftest.err)
12713
cat out/conftest.err >&5
12714
echo "$as_me:12714: \$? = $ac_status" >&5
12715
if (exit $ac_status) && test -s out/conftest2.$ac_objext
12717
# The compiler can only warn and ignore the option if not recognized
12718
# So say no if there are warnings
12719
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12720
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12721
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12722
lt_cv_prog_compiler_c_o_CXX=yes
12727
# SGI C++ compiler will create directory out/ii_files/ for
12728
# template instantiation
12729
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12730
$rm out/* && rmdir out
12736
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12737
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
12740
hard_links="nottested"
12741
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12742
# do not overwrite the value of need_locks provided by the user
12743
{ $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12744
$as_echo_n "checking if we can lock with hard links... " >&6; }
12747
ln conftest.a conftest.b 2>/dev/null && hard_links=no
12749
ln conftest.a conftest.b 2>&5 || hard_links=no
12750
ln conftest.a conftest.b 2>/dev/null && hard_links=no
12751
{ $as_echo "$as_me:$LINENO: result: $hard_links" >&5
12752
$as_echo "$hard_links" >&6; }
12753
if test "$hard_links" = no; then
12754
{ $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12755
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12762
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12763
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12765
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12768
# If we're using GNU nm, then we don't want the "-C" option.
12769
# -C means demangle to AIX nm, but means don't demangle with GNU nm
12770
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12771
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'
12773
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'
12777
export_symbols_cmds_CXX="$ltdll_cmds"
12780
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'
12783
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12786
exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12788
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12789
$as_echo "$ld_shlibs_CXX" >&6; }
12790
test "$ld_shlibs_CXX" = no && can_build_shared=no
12793
# Do we need to explicitly link libc?
12795
case "x$archive_cmds_need_lc_CXX" in
12797
# Assume -lc should be added
12798
archive_cmds_need_lc_CXX=yes
12800
if test "$enable_shared" = yes && test "$GCC" = yes; then
12801
case $archive_cmds_CXX in
12803
# FIXME: we may have to deal with multi-command sequences.
12806
# Test whether the compiler implicitly links with -lc since on some
12807
# systems, -lgcc has to come before -lc. If gcc already passes -lc
12808
# to ld, don't add -lc before -lgcc.
12809
{ $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12810
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12812
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12814
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12815
(eval $ac_compile) 2>&5
12817
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12818
(exit $ac_status); } 2>conftest.err; then
12821
libobjs=conftest.$ac_objext
12823
wl=$lt_prog_compiler_wl_CXX
12824
pic_flag=$lt_prog_compiler_pic_CXX
12830
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12831
allow_undefined_flag_CXX=
12832
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12833
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12835
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12836
(exit $ac_status); }
12838
archive_cmds_need_lc_CXX=no
12840
archive_cmds_need_lc_CXX=yes
12842
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12844
cat conftest.err 1>&5
12847
{ $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12848
$as_echo "$archive_cmds_need_lc_CXX" >&6; }
12855
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12856
$as_echo_n "checking dynamic linker characteristics... " >&6; }
12857
library_names_spec=
12858
libname_spec='lib$name'
12862
postuninstall_cmds=
12866
shlibpath_overrides_runpath=unknown
12868
dynamic_linker="$host_os ld.so"
12869
sys_lib_dlsearch_path_spec="/lib /usr/lib"
12871
need_lib_prefix=unknown
12872
hardcode_into_libs=no
12874
# when you set need_version to no, make sure it does not cause -set_version
12875
# flags to be left without arguments
12876
need_version=unknown
12881
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12882
shlibpath_var=LIBPATH
12884
# AIX 3 has no versioning support, so we append a major version to the name.
12885
soname_spec='${libname}${release}${shared_ext}$major'
12892
hardcode_into_libs=yes
12893
if test "$host_cpu" = ia64; then
12894
# AIX 5 supports IA64
12895
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12896
shlibpath_var=LD_LIBRARY_PATH
12898
# With GCC up to 2.95.x, collect2 would create an import file
12899
# for dependence libraries. The import file would start with
12900
# the line `#! .'. This would cause the generated library to
12901
# depend on `.', always an invalid library. This was fixed in
12902
# development snapshots of GCC prior to 3.0.
12904
aix4 | aix4.[01] | aix4.[01].*)
12905
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12907
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12910
can_build_shared=no
12914
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12915
# soname into executable. Probably we can add versioning support to
12916
# collect2, so additional links can be useful in future.
12917
if test "$aix_use_runtimelinking" = yes; then
12918
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
12919
# instead of lib<name>.a to let people know that these are not
12920
# typical AIX shared libraries.
12921
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12923
# We preserve .a as extension for shared libraries through AIX4.2
12924
# and later when we are not doing run time linking.
12925
library_names_spec='${libname}${release}.a $libname.a'
12926
soname_spec='${libname}${release}${shared_ext}$major'
12928
shlibpath_var=LIBPATH
12933
library_names_spec='$libname.ixlibrary $libname.a'
12934
# Create ${libname}_ixlibrary.a entries in /sys/libs.
12935
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'
12939
library_names_spec='${libname}${shared_ext}'
12940
dynamic_linker="$host_os ld.so"
12941
shlibpath_var=LIBRARY_PATH
12947
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12948
soname_spec='${libname}${release}${shared_ext}$major'
12949
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12950
shlibpath_var=LD_LIBRARY_PATH
12951
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12952
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12953
# the default ld.so.conf also contains /usr/contrib/lib and
12954
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12955
# libtool to hard-code these into programs
12958
cygwin* | mingw* | pw32*)
12959
version_type=windows
12964
case $GCC,$host_os in
12965
yes,cygwin* | yes,mingw* | yes,pw32*)
12966
library_names_spec='$libname.dll.a'
12967
# DLL is installed to $(libdir)/../bin by postinstall_cmds
12968
postinstall_cmds='base_file=`basename \${file}`~
12969
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12970
dldir=$destdir/`dirname \$dlpath`~
12971
test -d \$dldir || mkdir -p \$dldir~
12972
$install_prog $dir/$dlname \$dldir/$dlname~
12973
chmod a+x \$dldir/$dlname'
12974
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12975
dlpath=$dir/\$dldll~
12977
shlibpath_overrides_runpath=yes
12981
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
12982
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12983
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12986
# MinGW DLLs use traditional 'lib' prefix
12987
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12988
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12989
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12990
# It is most probably a Windows format PATH printed by
12991
# mingw gcc, but we are running on Cygwin. Gcc prints its search
12992
# path with ; separators, and with drive letters. We can handle the
12993
# drive letters (cygwin fileutils understands them), so leave them,
12994
# especially as we might pass files found there to a mingw objdump,
12995
# which wouldn't understand a cygwinified path. Ahh.
12996
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12998
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13002
# pw32 DLLs use 'pw' prefix rather than 'lib'
13003
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13009
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13012
dynamic_linker='Win32 ld.exe'
13013
# FIXME: first we should search . and the directory the executable is in
13017
darwin* | rhapsody*)
13018
dynamic_linker="$host_os dyld"
13019
version_type=darwin
13022
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13023
soname_spec='${libname}${release}${major}$shared_ext'
13024
shlibpath_overrides_runpath=yes
13025
shlibpath_var=DYLD_LIBRARY_PATH
13026
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13028
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13035
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13036
soname_spec='${libname}${release}${shared_ext}$major'
13037
shlibpath_var=LD_LIBRARY_PATH
13044
freebsd* | dragonfly*)
13045
# DragonFly does not have aout. When/if they implement a new
13046
# versioning mechanism, adjust this.
13047
if test -x /usr/bin/objformat; then
13048
objformat=`/usr/bin/objformat`
13051
freebsd[123]*) objformat=aout ;;
13052
*) objformat=elf ;;
13055
version_type=freebsd-$objformat
13056
case $version_type in
13058
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13063
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13067
shlibpath_var=LD_LIBRARY_PATH
13070
shlibpath_overrides_runpath=yes
13072
freebsd3.[01]* | freebsdelf3.[01]*)
13073
shlibpath_overrides_runpath=yes
13074
hardcode_into_libs=yes
13076
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13077
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13078
shlibpath_overrides_runpath=no
13079
hardcode_into_libs=yes
13081
*) # from 4.6 on, and DragonFly
13082
shlibpath_overrides_runpath=yes
13083
hardcode_into_libs=yes
13092
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13093
soname_spec='${libname}${release}${shared_ext}$major'
13094
shlibpath_var=LD_LIBRARY_PATH
13095
hardcode_into_libs=yes
13098
hpux9* | hpux10* | hpux11*)
13099
# Give a soname corresponding to the major version so that dld.sl refuses to
13100
# link against other versions.
13107
hardcode_into_libs=yes
13108
dynamic_linker="$host_os dld.so"
13109
shlibpath_var=LD_LIBRARY_PATH
13110
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13111
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13112
soname_spec='${libname}${release}${shared_ext}$major'
13113
if test "X$HPUX_IA64_MODE" = X32; then
13114
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13116
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13118
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13122
hardcode_into_libs=yes
13123
dynamic_linker="$host_os dld.sl"
13124
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13125
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13126
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13127
soname_spec='${libname}${release}${shared_ext}$major'
13128
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13129
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13133
dynamic_linker="$host_os dld.sl"
13134
shlibpath_var=SHLIB_PATH
13135
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13136
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13137
soname_spec='${libname}${release}${shared_ext}$major'
13140
# HP-UX runs *really* slowly unless shared libraries are mode 555.
13141
postinstall_cmds='chmod 555 $lib'
13148
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13149
soname_spec='${libname}${release}${shared_ext}$major'
13150
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13151
shlibpath_var=LD_LIBRARY_PATH
13152
shlibpath_overrides_runpath=no
13153
hardcode_into_libs=yes
13156
irix5* | irix6* | nonstopux*)
13158
nonstopux*) version_type=nonstopux ;;
13160
if test "$lt_cv_prog_gnu_ld" = yes; then
13168
soname_spec='${libname}${release}${shared_ext}$major'
13169
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13171
irix5* | nonstopux*)
13172
libsuff= shlibsuff=
13175
case $LD in # libtool.m4 will add one of these switches to LD
13176
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13177
libsuff= shlibsuff= libmagic=32-bit;;
13178
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13179
libsuff=32 shlibsuff=N32 libmagic=N32;;
13180
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13181
libsuff=64 shlibsuff=64 libmagic=64-bit;;
13182
*) libsuff= shlibsuff= libmagic=never-match;;
13186
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13187
shlibpath_overrides_runpath=no
13188
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13189
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13190
hardcode_into_libs=yes
13193
# No shared lib support for Linux oldld, aout, or coff.
13194
linux*oldld* | linux*aout* | linux*coff*)
13198
# This must be Linux ELF.
13199
linux* | k*bsd*-gnu)
13203
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13204
soname_spec='${libname}${release}${shared_ext}$major'
13205
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13206
shlibpath_var=LD_LIBRARY_PATH
13207
shlibpath_overrides_runpath=no
13208
# This implies no fast_install, which is unacceptable.
13209
# Some rework will be needed to allow for fast_install
13210
# before this can be enabled.
13211
hardcode_into_libs=yes
13213
# Append ld.so.conf contents to the search path
13214
if test -f /etc/ld.so.conf; then
13215
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' ' '`
13216
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13219
# We used to test for /lib/ld.so.1 and disable shared libraries on
13220
# powerpc, because MkLinux only supported shared libraries with the
13221
# GNU dynamic linker. Since this was broken with cross compilers,
13222
# most powerpc-linux boxes support dynamic linking these days and
13223
# people can always --disable-shared, the test was removed, and we
13224
# assume the GNU/Linux dynamic linker is in use.
13225
dynamic_linker='GNU/Linux ld.so'
13232
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13233
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13234
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13235
dynamic_linker='NetBSD (a.out) ld.so'
13237
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13238
soname_spec='${libname}${release}${shared_ext}$major'
13239
dynamic_linker='NetBSD ld.elf_so'
13241
shlibpath_var=LD_LIBRARY_PATH
13242
shlibpath_overrides_runpath=yes
13243
hardcode_into_libs=yes
13248
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13249
shlibpath_var=LD_LIBRARY_PATH
13250
shlibpath_overrides_runpath=yes
13257
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13258
soname_spec='${libname}${release}${shared_ext}$major'
13259
shlibpath_var=LD_LIBRARY_PATH
13260
shlibpath_overrides_runpath=yes
13265
sys_lib_dlsearch_path_spec="/usr/lib"
13267
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13269
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13270
*) need_version=no ;;
13272
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13273
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13274
shlibpath_var=LD_LIBRARY_PATH
13275
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13277
openbsd2.[89] | openbsd2.[89].*)
13278
shlibpath_overrides_runpath=no
13281
shlibpath_overrides_runpath=yes
13285
shlibpath_overrides_runpath=yes
13290
libname_spec='$name'
13293
library_names_spec='$libname${shared_ext} $libname.a'
13294
dynamic_linker='OS/2 ld.exe'
13295
shlibpath_var=LIBPATH
13298
osf3* | osf4* | osf5*)
13302
soname_spec='${libname}${release}${shared_ext}$major'
13303
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13304
shlibpath_var=LD_LIBRARY_PATH
13305
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13306
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13317
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13318
soname_spec='${libname}${release}${shared_ext}$major'
13319
shlibpath_var=LD_LIBRARY_PATH
13320
shlibpath_overrides_runpath=yes
13321
hardcode_into_libs=yes
13322
# ldd complains unless libraries are executable
13323
postinstall_cmds='chmod +x $lib'
13328
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13329
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13330
shlibpath_var=LD_LIBRARY_PATH
13331
shlibpath_overrides_runpath=yes
13332
if test "$with_gnu_ld" = yes; then
13340
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13341
soname_spec='${libname}${release}${shared_ext}$major'
13342
shlibpath_var=LD_LIBRARY_PATH
13343
case $host_vendor in
13345
shlibpath_overrides_runpath=no
13347
export_dynamic_flag_spec='${wl}-Blargedynsym'
13348
runpath_var=LD_RUN_PATH
13356
shlibpath_overrides_runpath=no
13357
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13363
if test -d /usr/nec ;then
13365
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13366
soname_spec='$libname${shared_ext}.$major'
13367
shlibpath_var=LD_LIBRARY_PATH
13371
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13372
version_type=freebsd-elf
13375
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13376
soname_spec='${libname}${release}${shared_ext}$major'
13377
shlibpath_var=LD_LIBRARY_PATH
13378
hardcode_into_libs=yes
13379
if test "$with_gnu_ld" = yes; then
13380
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13381
shlibpath_overrides_runpath=no
13383
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13384
shlibpath_overrides_runpath=yes
13387
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13391
sys_lib_dlsearch_path_spec='/usr/lib'
13396
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13397
soname_spec='${libname}${release}${shared_ext}$major'
13398
shlibpath_var=LD_LIBRARY_PATH
13405
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13406
$as_echo "$dynamic_linker" >&6; }
13407
test "$dynamic_linker" = no && can_build_shared=no
13409
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13410
$as_echo_n "(cached) " >&6
13412
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13415
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13416
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13417
$as_echo_n "(cached) " >&6
13419
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13422
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13424
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13425
if test "$GCC" = yes; then
13426
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13429
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13430
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13431
hardcode_action_CXX=
13432
if test -n "$hardcode_libdir_flag_spec_CXX" || \
13433
test -n "$runpath_var_CXX" || \
13434
test "X$hardcode_automatic_CXX" = "Xyes" ; then
13436
# We can hardcode non-existant directories.
13437
if test "$hardcode_direct_CXX" != no &&
13438
# If the only mechanism to avoid hardcoding is shlibpath_var, we
13439
# have to relink, otherwise we might link with an installed library
13440
# when we should be linking with a yet-to-be-installed one
13441
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13442
test "$hardcode_minus_L_CXX" != no; then
13443
# Linking always hardcodes the temporary library directory.
13444
hardcode_action_CXX=relink
13446
# We can link without hardcoding, and we can hardcode nonexisting dirs.
13447
hardcode_action_CXX=immediate
13450
# We cannot hardcode anything, or else we can only hardcode existing
13452
hardcode_action_CXX=unsupported
13454
{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13455
$as_echo "$hardcode_action_CXX" >&6; }
13457
if test "$hardcode_action_CXX" = relink; then
13458
# Fast installation is not supported
13459
enable_fast_install=no
13460
elif test "$shlibpath_overrides_runpath" = yes ||
13461
test "$enable_shared" = no; then
13462
# Fast installation is not necessary
13463
enable_fast_install=needless
13467
# The else clause should only fire when bootstrapping the
13468
# libtool distribution, otherwise you forgot to ship ltmain.sh
13469
# with your package, and you will get complaints that there are
13470
# no rules to generate ltmain.sh.
13471
if test -f "$ltmain"; then
13472
# See if we are running on zsh, and set the options which allow our commands through
13473
# without removal of \ escapes.
13474
if test -n "${ZSH_VERSION+set}" ; then
13475
setopt NO_GLOB_SUBST
13477
# Now quote all the things that may contain metacharacters while being
13478
# careful not to overquote the AC_SUBSTed values. We take copies of the
13479
# variables and quote the copies for generation of the libtool script.
13480
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13482
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13483
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13484
deplibs_check_method reload_flag reload_cmds need_locks \
13485
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13486
lt_cv_sys_global_symbol_to_c_name_address \
13487
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13488
old_postinstall_cmds old_postuninstall_cmds \
13492
lt_prog_compiler_wl_CXX \
13493
lt_prog_compiler_pic_CXX \
13494
lt_prog_compiler_static_CXX \
13495
lt_prog_compiler_no_builtin_flag_CXX \
13496
export_dynamic_flag_spec_CXX \
13497
thread_safe_flag_spec_CXX \
13498
whole_archive_flag_spec_CXX \
13499
enable_shared_with_static_runtimes_CXX \
13500
old_archive_cmds_CXX \
13501
old_archive_from_new_cmds_CXX \
13502
predep_objects_CXX \
13503
postdep_objects_CXX \
13506
compiler_lib_search_path_CXX \
13507
compiler_lib_search_dirs_CXX \
13509
archive_expsym_cmds_CXX \
13510
postinstall_cmds_CXX \
13511
postuninstall_cmds_CXX \
13512
old_archive_from_expsyms_cmds_CXX \
13513
allow_undefined_flag_CXX \
13514
no_undefined_flag_CXX \
13515
export_symbols_cmds_CXX \
13516
hardcode_libdir_flag_spec_CXX \
13517
hardcode_libdir_flag_spec_ld_CXX \
13518
hardcode_libdir_separator_CXX \
13519
hardcode_automatic_CXX \
13521
module_expsym_cmds_CXX \
13522
lt_cv_prog_compiler_c_o_CXX \
13523
fix_srcfile_path_CXX \
13524
exclude_expsyms_CXX \
13525
include_expsyms_CXX; do
13528
old_archive_cmds_CXX | \
13529
old_archive_from_new_cmds_CXX | \
13530
archive_cmds_CXX | \
13531
archive_expsym_cmds_CXX | \
13532
module_cmds_CXX | \
13533
module_expsym_cmds_CXX | \
13534
old_archive_from_expsyms_cmds_CXX | \
13535
export_symbols_cmds_CXX | \
13536
extract_expsyms_cmds | reload_cmds | finish_cmds | \
13537
postinstall_cmds | postuninstall_cmds | \
13538
old_postinstall_cmds | old_postuninstall_cmds | \
13539
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13540
# Double-quote double-evaled strings.
13541
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13544
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13550
*'\$0 --fallback-echo"')
13551
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13557
cat <<__EOF__ >> "$cfgfile"
13558
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13560
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13562
# Shell to use when invoking shell scripts.
13565
# Whether or not to build shared libraries.
13566
build_libtool_libs=$enable_shared
13568
# Whether or not to build static libraries.
13569
build_old_libs=$enable_static
13571
# Whether or not to add -lc for building shared libraries.
13572
build_libtool_need_lc=$archive_cmds_need_lc_CXX
13574
# Whether or not to disallow shared libs when runtime libs are static
13575
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13577
# Whether or not to optimize for fast installation.
13578
fast_install=$enable_fast_install
13581
host_alias=$host_alias
13585
# The build system.
13586
build_alias=$build_alias
13590
# An echo program that does not interpret backslashes.
13595
AR_FLAGS=$lt_AR_FLAGS
13600
# LTCC compiler flags.
13601
LTCFLAGS=$lt_LTCFLAGS
13603
# A language-specific compiler.
13604
CC=$lt_compiler_CXX
13606
# Is the compiler the GNU C compiler?
13612
# The linker used to build libraries.
13615
# Whether we need hard or soft links.
13618
# A BSD-compatible nm program.
13621
# A symbol stripping program
13624
# Used to examine libraries when file_magic_cmd begins "file"
13625
MAGIC_CMD=$MAGIC_CMD
13627
# Used on cygwin: DLL creation program.
13630
# Used on cygwin: object dumper.
13633
# Used on cygwin: assembler.
13636
# The name of the directory that contains temporary libtool files.
13639
# How to create reloadable object files.
13640
reload_flag=$lt_reload_flag
13641
reload_cmds=$lt_reload_cmds
13643
# How to pass a linker flag through the compiler.
13644
wl=$lt_lt_prog_compiler_wl_CXX
13646
# Object file suffix (normally "o").
13647
objext="$ac_objext"
13649
# Old archive suffix (normally "a").
13652
# Shared library suffix (normally ".so").
13653
shrext_cmds='$shrext_cmds'
13655
# Executable file suffix (normally "").
13658
# Additional compiler flags for building library objects.
13659
pic_flag=$lt_lt_prog_compiler_pic_CXX
13662
# What is the maximum length of a command?
13663
max_cmd_len=$lt_cv_sys_max_cmd_len
13665
# Does compiler simultaneously support -c and -o options?
13666
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13668
# Must we lock files when doing compilation?
13669
need_locks=$lt_need_locks
13671
# Do we need the lib prefix for modules?
13672
need_lib_prefix=$need_lib_prefix
13674
# Do we need a version for libraries?
13675
need_version=$need_version
13677
# Whether dlopen is supported.
13678
dlopen_support=$enable_dlopen
13680
# Whether dlopen of programs is supported.
13681
dlopen_self=$enable_dlopen_self
13683
# Whether dlopen of statically linked programs is supported.
13684
dlopen_self_static=$enable_dlopen_self_static
13686
# Compiler flag to prevent dynamic linking.
13687
link_static_flag=$lt_lt_prog_compiler_static_CXX
13689
# Compiler flag to turn off builtin functions.
13690
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13692
# Compiler flag to allow reflexive dlopens.
13693
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13695
# Compiler flag to generate shared objects directly from archives.
13696
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13698
# Compiler flag to generate thread-safe objects.
13699
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13701
# Library versioning type.
13702
version_type=$version_type
13704
# Format of library name prefix.
13705
libname_spec=$lt_libname_spec
13707
# List of archive names. First name is the real one, the rest are links.
13708
# The last name is the one that the linker finds with -lNAME.
13709
library_names_spec=$lt_library_names_spec
13711
# The coded name of the library, if different from the real name.
13712
soname_spec=$lt_soname_spec
13714
# Commands used to build and install an old-style archive.
13716
old_archive_cmds=$lt_old_archive_cmds_CXX
13717
old_postinstall_cmds=$lt_old_postinstall_cmds
13718
old_postuninstall_cmds=$lt_old_postuninstall_cmds
13720
# Create an old-style archive from a shared archive.
13721
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13723
# Create a temporary old-style archive to link instead of a shared archive.
13724
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13726
# Commands used to build and install a shared archive.
13727
archive_cmds=$lt_archive_cmds_CXX
13728
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13729
postinstall_cmds=$lt_postinstall_cmds
13730
postuninstall_cmds=$lt_postuninstall_cmds
13732
# Commands used to build a loadable module (assumed same as above if empty)
13733
module_cmds=$lt_module_cmds_CXX
13734
module_expsym_cmds=$lt_module_expsym_cmds_CXX
13736
# Commands to strip libraries.
13737
old_striplib=$lt_old_striplib
13738
striplib=$lt_striplib
13740
# Dependencies to place before the objects being linked to create a
13742
predep_objects=$lt_predep_objects_CXX
13744
# Dependencies to place after the objects being linked to create a
13746
postdep_objects=$lt_postdep_objects_CXX
13748
# Dependencies to place before the objects being linked to create a
13750
predeps=$lt_predeps_CXX
13752
# Dependencies to place after the objects being linked to create a
13754
postdeps=$lt_postdeps_CXX
13756
# The directories searched by this compiler when creating a shared
13758
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
13760
# The library search path used internally by the compiler when linking
13761
# a shared library.
13762
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13764
# Method to check whether dependent libraries are shared objects.
13765
deplibs_check_method=$lt_deplibs_check_method
13767
# Command to use when deplibs_check_method == file_magic.
13768
file_magic_cmd=$lt_file_magic_cmd
13770
# Flag that allows shared libraries with undefined symbols to be built.
13771
allow_undefined_flag=$lt_allow_undefined_flag_CXX
13773
# Flag that forces no undefined symbols.
13774
no_undefined_flag=$lt_no_undefined_flag_CXX
13776
# Commands used to finish a libtool library installation in a directory.
13777
finish_cmds=$lt_finish_cmds
13779
# Same as above, but a single script fragment to be evaled but not shown.
13780
finish_eval=$lt_finish_eval
13782
# Take the output of nm and produce a listing of raw symbols and C names.
13783
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13785
# Transform the output of nm in a proper C declaration
13786
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13788
# Transform the output of nm in a C name address pair
13789
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13791
# This is the shared library runtime path variable.
13792
runpath_var=$runpath_var
13794
# This is the shared library path variable.
13795
shlibpath_var=$shlibpath_var
13797
# Is shlibpath searched before the hard-coded library search path?
13798
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13800
# How to hardcode a shared library path into an executable.
13801
hardcode_action=$hardcode_action_CXX
13803
# Whether we should hardcode library paths into libraries.
13804
hardcode_into_libs=$hardcode_into_libs
13806
# Flag to hardcode \$libdir into a binary during linking.
13807
# This must work even if \$libdir does not exist.
13808
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13810
# If ld is used when linking, flag to hardcode \$libdir into
13811
# a binary during linking. This must work even if \$libdir does
13813
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13815
# Whether we need a single -rpath flag with a separated argument.
13816
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13818
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13819
# resulting binary.
13820
hardcode_direct=$hardcode_direct_CXX
13822
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13823
# resulting binary.
13824
hardcode_minus_L=$hardcode_minus_L_CXX
13826
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13827
# the resulting binary.
13828
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13830
# Set to yes if building a shared library automatically hardcodes DIR into the library
13831
# and all subsequent libraries and executables linked against it.
13832
hardcode_automatic=$hardcode_automatic_CXX
13834
# Variables whose values should be saved in libtool wrapper scripts and
13835
# restored at relink time.
13836
variables_saved_for_relink="$variables_saved_for_relink"
13838
# Whether libtool must link a program against all its dependency libraries.
13839
link_all_deplibs=$link_all_deplibs_CXX
13841
# Compile-time system search path for libraries
13842
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13844
# Run-time system search path for libraries
13845
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13847
# Fix the shell variable \$srcfile for the compiler.
13848
fix_srcfile_path=$lt_fix_srcfile_path
13850
# Set to yes if exported symbols are required.
13851
always_export_symbols=$always_export_symbols_CXX
13853
# The commands to list exported symbols.
13854
export_symbols_cmds=$lt_export_symbols_cmds_CXX
13856
# The commands to extract the exported symbol list from a shared archive.
13857
extract_expsyms_cmds=$lt_extract_expsyms_cmds
13859
# Symbols that should not be listed in the preloaded symbols.
13860
exclude_expsyms=$lt_exclude_expsyms_CXX
13862
# Symbols that must always be exported.
13863
include_expsyms=$lt_include_expsyms_CXX
13865
# ### END LIBTOOL TAG CONFIG: $tagname
13871
# If there is no Makefile yet, we rely on a make rule to execute
13872
# `config.status --recheck' to rerun these tests and create the
13873
# libtool script then.
13874
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13875
if test -f "$ltmain_in"; then
13876
test -f Makefile && make "$ltmain"
13882
ac_cpp='$CPP $CPPFLAGS'
13883
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13884
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13885
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13891
with_gnu_ldcxx=$with_gnu_ld
13892
with_gnu_ld=$lt_save_with_gnu_ld
13893
lt_cv_path_LDCXX=$lt_cv_path_LD
13894
lt_cv_path_LD=$lt_save_path_LD
13895
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13896
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13904
if test -n "$F77" && test "X$F77" != "Xno"; then
13907
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13908
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13909
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13912
archive_cmds_need_lc_F77=no
13913
allow_undefined_flag_F77=
13914
always_export_symbols_F77=no
13915
archive_expsym_cmds_F77=
13916
export_dynamic_flag_spec_F77=
13917
hardcode_direct_F77=no
13918
hardcode_libdir_flag_spec_F77=
13919
hardcode_libdir_flag_spec_ld_F77=
13920
hardcode_libdir_separator_F77=
13921
hardcode_minus_L_F77=no
13922
hardcode_automatic_F77=no
13924
module_expsym_cmds_F77=
13925
link_all_deplibs_F77=unknown
13926
old_archive_cmds_F77=$old_archive_cmds
13927
no_undefined_flag_F77=
13928
whole_archive_flag_spec_F77=
13929
enable_shared_with_static_runtimes_F77=no
13931
# Source file extension for f77 test sources.
13934
# Object file extension for compiled f77 test sources.
13938
# Code to be used in simple compile tests
13939
lt_simple_compile_test_code="\
13945
# Code to be used in simple link tests
13946
lt_simple_link_test_code="\
13951
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13953
# If no C compiler was specified, use CC.
13956
# If no C compiler flags were specified, use CFLAGS.
13957
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13959
# Allow CC to be a program name with arguments.
13963
# save warnings/boilerplate of simple test code
13964
ac_outfile=conftest.$ac_objext
13965
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13966
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13967
_lt_compiler_boilerplate=`cat conftest.err`
13970
ac_outfile=conftest.$ac_objext
13971
echo "$lt_simple_link_test_code" >conftest.$ac_ext
13972
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13973
_lt_linker_boilerplate=`cat conftest.err`
13977
# Allow CC to be a program name with arguments.
13982
for cc_temp in $compiler""; do
13984
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13985
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13990
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13993
{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13994
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
13995
{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
13996
$as_echo "$can_build_shared" >&6; }
13998
{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13999
$as_echo_n "checking whether to build shared libraries... " >&6; }
14000
test "$can_build_shared" = "no" && enable_shared=no
14002
# On AIX, shared libraries and static libraries use the same namespace, and
14003
# are all built from PIC.
14006
test "$enable_shared" = yes && enable_static=no
14007
if test -n "$RANLIB"; then
14008
archive_cmds="$archive_cmds~\$RANLIB \$lib"
14009
postinstall_cmds='$RANLIB $lib'
14013
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14014
test "$enable_shared" = yes && enable_static=no
14018
{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
14019
$as_echo "$enable_shared" >&6; }
14021
{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14022
$as_echo_n "checking whether to build static libraries... " >&6; }
14023
# Make sure either enable_shared or enable_static is yes.
14024
test "$enable_shared" = yes || enable_static=yes
14025
{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
14026
$as_echo "$enable_static" >&6; }
14031
lt_prog_compiler_wl_F77=
14032
lt_prog_compiler_pic_F77=
14033
lt_prog_compiler_static_F77=
14035
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14036
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14038
if test "$GCC" = yes; then
14039
lt_prog_compiler_wl_F77='-Wl,'
14040
lt_prog_compiler_static_F77='-static'
14044
# All AIX code is PIC.
14045
if test "$host_cpu" = ia64; then
14046
# AIX 5 now supports IA64 processor
14047
lt_prog_compiler_static_F77='-Bstatic'
14052
# FIXME: we need at least 68020 code to build shared libraries, but
14053
# adding the `-m68020' flag to GCC prevents building anything better,
14055
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14058
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14059
# PIC is the default for these OSes.
14062
mingw* | cygwin* | pw32* | os2*)
14063
# This hack is so that the source file can tell whether it is being
14064
# built for inclusion in a dll (and should export symbols for example).
14065
# Although the cygwin gcc ignores -fPIC, still need this for old-style
14066
# (--disable-auto-import) libraries
14067
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14070
darwin* | rhapsody*)
14071
# PIC is the default on this platform
14072
# Common symbols not allowed in MH_DYLIB files
14073
lt_prog_compiler_pic_F77='-fno-common'
14077
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
14078
# Instead, we relocate shared libraries at runtime.
14082
# Just because we use GCC doesn't mean we suddenly get shared libraries
14083
# on systems that don't support them.
14084
lt_prog_compiler_can_build_shared_F77=no
14089
if test -d /usr/nec; then
14090
lt_prog_compiler_pic_F77=-Kconform_pic
14095
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14096
# not for PA HP-UX.
14102
lt_prog_compiler_pic_F77='-fPIC'
14108
lt_prog_compiler_pic_F77='-fPIC'
14112
# PORTME Check for flag to pass linker flags through the system compiler.
14115
lt_prog_compiler_wl_F77='-Wl,'
14116
if test "$host_cpu" = ia64; then
14117
# AIX 5 now supports IA64 processor
14118
lt_prog_compiler_static_F77='-Bstatic'
14120
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14124
# PIC is the default on this platform
14125
# Common symbols not allowed in MH_DYLIB files
14126
case $cc_basename in
14128
lt_prog_compiler_pic_F77='-qnocommon'
14129
lt_prog_compiler_wl_F77='-Wl,'
14134
mingw* | cygwin* | pw32* | os2*)
14135
# This hack is so that the source file can tell whether it is being
14136
# built for inclusion in a dll (and should export symbols for example).
14137
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14140
hpux9* | hpux10* | hpux11*)
14141
lt_prog_compiler_wl_F77='-Wl,'
14142
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14143
# not for PA HP-UX.
14149
lt_prog_compiler_pic_F77='+Z'
14152
# Is there a better lt_prog_compiler_static that works with the bundled CC?
14153
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14156
irix5* | irix6* | nonstopux*)
14157
lt_prog_compiler_wl_F77='-Wl,'
14158
# PIC (with -KPIC) is the default.
14159
lt_prog_compiler_static_F77='-non_shared'
14163
lt_prog_compiler_pic_F77='-KPIC'
14164
lt_prog_compiler_static_F77='-Bstatic'
14167
linux* | k*bsd*-gnu)
14168
case $cc_basename in
14170
lt_prog_compiler_wl_F77='-Wl,'
14171
lt_prog_compiler_pic_F77='-KPIC'
14172
lt_prog_compiler_static_F77='-static'
14174
pgcc* | pgf77* | pgf90* | pgf95*)
14175
# Portland Group compilers (*not* the Pentium gcc compiler,
14176
# which looks to be a dead project)
14177
lt_prog_compiler_wl_F77='-Wl,'
14178
lt_prog_compiler_pic_F77='-fpic'
14179
lt_prog_compiler_static_F77='-Bstatic'
14182
lt_prog_compiler_wl_F77='-Wl,'
14183
# All Alpha code is PIC.
14184
lt_prog_compiler_static_F77='-non_shared'
14187
case `$CC -V 2>&1 | sed 5q` in
14190
lt_prog_compiler_pic_F77='-KPIC'
14191
lt_prog_compiler_static_F77='-Bstatic'
14192
lt_prog_compiler_wl_F77='-Wl,'
14195
# Sun Fortran 8.3 passes all unrecognized flags to the linker
14196
lt_prog_compiler_pic_F77='-KPIC'
14197
lt_prog_compiler_static_F77='-Bstatic'
14198
lt_prog_compiler_wl_F77=''
14205
osf3* | osf4* | osf5*)
14206
lt_prog_compiler_wl_F77='-Wl,'
14207
# All OSF/1 code is PIC.
14208
lt_prog_compiler_static_F77='-non_shared'
14212
lt_prog_compiler_static_F77='-non_shared'
14216
lt_prog_compiler_pic_F77='-KPIC'
14217
lt_prog_compiler_static_F77='-Bstatic'
14218
case $cc_basename in
14219
f77* | f90* | f95*)
14220
lt_prog_compiler_wl_F77='-Qoption ld ';;
14222
lt_prog_compiler_wl_F77='-Wl,';;
14227
lt_prog_compiler_wl_F77='-Qoption ld '
14228
lt_prog_compiler_pic_F77='-PIC'
14229
lt_prog_compiler_static_F77='-Bstatic'
14232
sysv4 | sysv4.2uw2* | sysv4.3*)
14233
lt_prog_compiler_wl_F77='-Wl,'
14234
lt_prog_compiler_pic_F77='-KPIC'
14235
lt_prog_compiler_static_F77='-Bstatic'
14239
if test -d /usr/nec ;then
14240
lt_prog_compiler_pic_F77='-Kconform_pic'
14241
lt_prog_compiler_static_F77='-Bstatic'
14245
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14246
lt_prog_compiler_wl_F77='-Wl,'
14247
lt_prog_compiler_pic_F77='-KPIC'
14248
lt_prog_compiler_static_F77='-Bstatic'
14252
lt_prog_compiler_wl_F77='-Wl,'
14253
lt_prog_compiler_can_build_shared_F77=no
14257
lt_prog_compiler_pic_F77='-pic'
14258
lt_prog_compiler_static_F77='-Bstatic'
14262
lt_prog_compiler_can_build_shared_F77=no
14267
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14268
$as_echo "$lt_prog_compiler_pic_F77" >&6; }
14271
# Check to make sure the PIC flag actually works.
14273
if test -n "$lt_prog_compiler_pic_F77"; then
14275
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14276
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
14277
if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14278
$as_echo_n "(cached) " >&6
14280
lt_cv_prog_compiler_pic_works_F77=no
14281
ac_outfile=conftest.$ac_objext
14282
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14283
lt_compiler_flag="$lt_prog_compiler_pic_F77"
14284
# Insert the option either (1) after the last *FLAGS variable, or
14285
# (2) before a word containing "conftest.", or (3) at the end.
14286
# Note that $ac_compile itself does not contain backslashes and begins
14287
# with a dollar sign (not a hyphen), so the echo should work correctly.
14288
# The option is referenced via a variable to avoid confusing sed.
14289
lt_compile=`echo "$ac_compile" | $SED \
14290
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14291
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14292
-e 's:$: $lt_compiler_flag:'`
14293
(eval echo "\"\$as_me:14293: $lt_compile\"" >&5)
14294
(eval "$lt_compile" 2>conftest.err)
14296
cat conftest.err >&5
14297
echo "$as_me:14297: \$? = $ac_status" >&5
14298
if (exit $ac_status) && test -s "$ac_outfile"; then
14299
# The compiler can only warn and ignore the option if not recognized
14300
# So say no if there are warnings other than the usual output.
14301
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14302
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14303
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14304
lt_cv_prog_compiler_pic_works_F77=yes
14310
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14311
$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
14313
if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14314
case $lt_prog_compiler_pic_F77 in
14316
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14319
lt_prog_compiler_pic_F77=
14320
lt_prog_compiler_can_build_shared_F77=no
14325
# For platforms which do not support PIC, -DPIC is meaningless:
14327
lt_prog_compiler_pic_F77=
14330
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14335
# Check to make sure the static flag actually works.
14337
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14338
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14339
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14340
if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14341
$as_echo_n "(cached) " >&6
14343
lt_cv_prog_compiler_static_works_F77=no
14344
save_LDFLAGS="$LDFLAGS"
14345
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14346
echo "$lt_simple_link_test_code" > conftest.$ac_ext
14347
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14348
# The linker can only warn and ignore the option if not recognized
14349
# So say no if there are warnings
14350
if test -s conftest.err; then
14351
# Append any errors to the config.log.
14352
cat conftest.err 1>&5
14353
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14354
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14355
if diff conftest.exp conftest.er2 >/dev/null; then
14356
lt_cv_prog_compiler_static_works_F77=yes
14359
lt_cv_prog_compiler_static_works_F77=yes
14363
LDFLAGS="$save_LDFLAGS"
14366
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14367
$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
14369
if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14372
lt_prog_compiler_static_F77=
14376
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14377
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14378
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14379
$as_echo_n "(cached) " >&6
14381
lt_cv_prog_compiler_c_o_F77=no
14382
$rm -r conftest 2>/dev/null
14386
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14388
lt_compiler_flag="-o out/conftest2.$ac_objext"
14389
# Insert the option either (1) after the last *FLAGS variable, or
14390
# (2) before a word containing "conftest.", or (3) at the end.
14391
# Note that $ac_compile itself does not contain backslashes and begins
14392
# with a dollar sign (not a hyphen), so the echo should work correctly.
14393
lt_compile=`echo "$ac_compile" | $SED \
14394
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14395
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14396
-e 's:$: $lt_compiler_flag:'`
14397
(eval echo "\"\$as_me:14397: $lt_compile\"" >&5)
14398
(eval "$lt_compile" 2>out/conftest.err)
14400
cat out/conftest.err >&5
14401
echo "$as_me:14401: \$? = $ac_status" >&5
14402
if (exit $ac_status) && test -s out/conftest2.$ac_objext
14404
# The compiler can only warn and ignore the option if not recognized
14405
# So say no if there are warnings
14406
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14407
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14408
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14409
lt_cv_prog_compiler_c_o_F77=yes
14414
# SGI C++ compiler will create directory out/ii_files/ for
14415
# template instantiation
14416
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14417
$rm out/* && rmdir out
14423
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14424
$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
14427
hard_links="nottested"
14428
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14429
# do not overwrite the value of need_locks provided by the user
14430
{ $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14431
$as_echo_n "checking if we can lock with hard links... " >&6; }
14434
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14436
ln conftest.a conftest.b 2>&5 || hard_links=no
14437
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14438
{ $as_echo "$as_me:$LINENO: result: $hard_links" >&5
14439
$as_echo "$hard_links" >&6; }
14440
if test "$hard_links" = no; then
14441
{ $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14442
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14449
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14450
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14453
allow_undefined_flag_F77=
14454
enable_shared_with_static_runtimes_F77=no
14456
archive_expsym_cmds_F77=
14457
old_archive_From_new_cmds_F77=
14458
old_archive_from_expsyms_cmds_F77=
14459
export_dynamic_flag_spec_F77=
14460
whole_archive_flag_spec_F77=
14461
thread_safe_flag_spec_F77=
14462
hardcode_libdir_flag_spec_F77=
14463
hardcode_libdir_flag_spec_ld_F77=
14464
hardcode_libdir_separator_F77=
14465
hardcode_direct_F77=no
14466
hardcode_minus_L_F77=no
14467
hardcode_shlibpath_var_F77=unsupported
14468
link_all_deplibs_F77=unknown
14469
hardcode_automatic_F77=no
14471
module_expsym_cmds_F77=
14472
always_export_symbols_F77=no
14473
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14474
# include_expsyms should be a list of space-separated symbols to be *always*
14475
# included in the symbol list
14476
include_expsyms_F77=
14477
# exclude_expsyms can be an extended regexp of symbols to exclude
14478
# it will be wrapped by ` (' and `)$', so one must not match beginning or
14479
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14480
# as well as any symbol that contains `d'.
14481
exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14482
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14483
# platforms (ab)use it in PIC code, but their linkers get confused if
14484
# the symbol is explicitly referenced. Since portable code cannot
14485
# rely on this symbol name, it's probably fine to never include it in
14486
# preloaded symbol tables.
14487
# Exclude shared library initialization/finalization symbols.
14488
extract_expsyms_cmds=
14489
# Just being paranoid about ensuring that cc_basename is set.
14490
for cc_temp in $compiler""; do
14492
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14493
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14498
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14501
cygwin* | mingw* | pw32*)
14502
# FIXME: the MSVC++ port hasn't been tested in a loooong time
14503
# When not using gcc, we currently assume that we are using
14504
# Microsoft Visual C++.
14505
if test "$GCC" != yes; then
14510
# we just hope/assume this is gcc and not c89 (= MSVC++)
14519
if test "$with_gnu_ld" = yes; then
14520
# If archive_cmds runs LD, not CC, wlarc should be empty
14523
# Set some defaults for GNU ld with shared library support. These
14524
# are reset later if shared libraries are not supported. Putting them
14525
# here allows them to be overridden if necessary.
14526
runpath_var=LD_RUN_PATH
14527
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14528
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14529
# ancient GNU ld didn't support --whole-archive et. al.
14530
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14531
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14533
whole_archive_flag_spec_F77=
14535
supports_anon_versioning=no
14536
case `$LD -v 2>/dev/null` in
14537
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14538
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14539
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14540
*\ 2.11.*) ;; # other 2.11 versions
14541
*) supports_anon_versioning=yes ;;
14544
# See if GNU ld supports shared libraries.
14547
# On AIX/PPC, the GNU linker is very broken
14548
if test "$host_cpu" != ia64; then
14552
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14553
*** to be unable to reliably create shared libraries on AIX.
14554
*** Therefore, libtool is disabling shared libraries support. If you
14555
*** really care for shared libraries, you may want to modify your PATH
14556
*** so that a non-GNU linker is found, and then restart.
14563
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)'
14564
hardcode_libdir_flag_spec_F77='-L$libdir'
14565
hardcode_minus_L_F77=yes
14567
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14568
# that the semantics of dynamic libraries on AmigaOS, at least up
14569
# to version 4, is to share data among multiple programs linked
14570
# with the same dynamic library. Since this doesn't match the
14571
# behavior of shared libraries on other platforms, we can't use
14577
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14578
allow_undefined_flag_F77=unsupported
14579
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14580
# support --undefined. This deserves some investigation. FIXME
14581
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14587
cygwin* | mingw* | pw32*)
14588
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14589
# as there is no search path for DLLs.
14590
hardcode_libdir_flag_spec_F77='-L$libdir'
14591
allow_undefined_flag_F77=unsupported
14592
always_export_symbols_F77=no
14593
enable_shared_with_static_runtimes_F77=yes
14594
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14596
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14597
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14598
# If the export-symbols file already is a .def file (1st line
14599
# is EXPORTS), use it as is; otherwise, prepend...
14600
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14601
cp $export_symbols $output_objdir/$soname.def;
14603
echo EXPORTS > $output_objdir/$soname.def;
14604
cat $export_symbols >> $output_objdir/$soname.def;
14606
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14613
hardcode_direct_F77=no
14614
hardcode_shlibpath_var_F77=no
14615
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14616
export_dynamic_flag_spec_F77='${wl}-E'
14617
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14618
# Instead, shared libraries are loaded at an image base (0x10000000 by
14619
# default) and relocated if they conflict, which is a slow very memory
14620
# consuming and fragmenting process. To avoid this, we pick a random,
14621
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14622
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
14623
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'
14624
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'
14627
gnu* | linux* | k*bsd*-gnu)
14628
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14630
case $cc_basename,$host_cpu in
14631
pgcc*) # Portland Group C compiler
14632
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'
14633
tmp_addflag=' $pic_flag'
14635
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14636
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'
14637
tmp_addflag=' $pic_flag -Mnomain' ;;
14638
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14639
tmp_addflag=' -i_dynamic' ;;
14640
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14641
tmp_addflag=' -i_dynamic -nofor_main' ;;
14642
ifc* | ifort*) # Intel Fortran compiler
14643
tmp_addflag=' -nofor_main' ;;
14645
case `$CC -V 2>&1 | sed 5q` in
14646
*Sun\ C*) # Sun C 5.9
14647
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'
14648
tmp_sharedflag='-G' ;;
14649
*Sun\ F*) # Sun Fortran 8.3
14650
tmp_sharedflag='-G' ;;
14652
tmp_sharedflag='-shared' ;;
14654
archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14656
if test $supports_anon_versioning = yes; then
14657
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14658
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14659
$echo "local: *; };" >> $output_objdir/$libname.ver~
14660
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14668
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14669
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14672
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14673
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14678
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14682
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14683
*** create shared libraries on Solaris systems. Therefore, libtool
14684
*** is disabling shared libraries support. We urge you to upgrade GNU
14685
*** binutils to release 2.9.1 or newer. Another option is to modify
14686
*** your PATH or compiler configuration so that the native linker is
14687
*** used, and then restart.
14690
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14691
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14692
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14698
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14699
case `$LD -v 2>&1` in
14700
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14704
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14705
*** reliably create shared libraries on SCO systems. Therefore, libtool
14706
*** is disabling shared libraries support. We urge you to upgrade GNU
14707
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14708
*** your PATH or compiler configuration so that the native linker is
14709
*** used, and then restart.
14714
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14715
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14716
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14717
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14726
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14728
hardcode_direct_F77=yes
14729
hardcode_shlibpath_var_F77=no
14733
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14734
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14735
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14742
if test "$ld_shlibs_F77" = no; then
14744
hardcode_libdir_flag_spec_F77=
14745
export_dynamic_flag_spec_F77=
14746
whole_archive_flag_spec_F77=
14749
# PORTME fill in a description of your system's linker (not GNU ld)
14752
allow_undefined_flag_F77=unsupported
14753
always_export_symbols_F77=yes
14754
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'
14755
# Note: this linker hardcodes the directories in LIBPATH if there
14756
# are no directories specified by -L.
14757
hardcode_minus_L_F77=yes
14758
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14759
# Neither direct hardcoding nor static linking is supported with a
14761
hardcode_direct_F77=unsupported
14766
if test "$host_cpu" = ia64; then
14767
# On IA64, the linker does run time linking by default, so we don't
14768
# have to do anything special.
14769
aix_use_runtimelinking=no
14770
exp_sym_flag='-Bexport'
14773
# If we're using GNU nm, then we don't want the "-C" option.
14774
# -C means demangle to AIX nm, but means don't demangle with GNU nm
14775
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14776
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'
14778
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'
14780
aix_use_runtimelinking=no
14782
# Test if we are trying to use run time linking or normal
14783
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14784
# need to do runtime linking.
14785
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14786
for ld_flag in $LDFLAGS; do
14787
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14788
aix_use_runtimelinking=yes
14795
exp_sym_flag='-bexport'
14796
no_entry_flag='-bnoentry'
14799
# When large executables or shared objects are built, AIX ld can
14800
# have problems creating the table of contents. If linking a library
14801
# or program results in "error TOC overflow" add -mminimal-toc to
14802
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14803
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14805
archive_cmds_F77=''
14806
hardcode_direct_F77=yes
14807
hardcode_libdir_separator_F77=':'
14808
link_all_deplibs_F77=yes
14810
if test "$GCC" = yes; then
14811
case $host_os in aix4.[012]|aix4.[012].*)
14812
# We only want to do this on AIX 4.2 and lower, the check
14813
# below for broken collect2 doesn't work under 4.3+
14814
collect2name=`${CC} -print-prog-name=collect2`
14815
if test -f "$collect2name" && \
14816
strings "$collect2name" | grep resolve_lib_name >/dev/null
14818
# We have reworked collect2
14821
# We have old collect2
14822
hardcode_direct_F77=unsupported
14823
# It fails to find uninstalled libraries when the uninstalled
14824
# path is not listed in the libpath. Setting hardcode_minus_L
14825
# to unsupported forces relinking
14826
hardcode_minus_L_F77=yes
14827
hardcode_libdir_flag_spec_F77='-L$libdir'
14828
hardcode_libdir_separator_F77=
14832
shared_flag='-shared'
14833
if test "$aix_use_runtimelinking" = yes; then
14834
shared_flag="$shared_flag "'${wl}-G'
14838
if test "$host_cpu" = ia64; then
14839
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14840
# chokes on -Wl,-G. The following line is correct:
14843
if test "$aix_use_runtimelinking" = yes; then
14844
shared_flag='${wl}-G'
14846
shared_flag='${wl}-bM:SRE'
14851
# It seems that -bexpall does not export symbols beginning with
14852
# underscore (_), so it is better to generate a list of symbols to export.
14853
always_export_symbols_F77=yes
14854
if test "$aix_use_runtimelinking" = yes; then
14855
# Warning - without using the other runtime loading flags (-brtl),
14856
# -berok will link without error, but may produce a broken library.
14857
allow_undefined_flag_F77='-berok'
14858
# Determine the default libpath from the value encoded in an empty executable.
14859
cat >conftest.$ac_ext <<_ACEOF
14864
rm -f conftest.$ac_objext conftest$ac_exeext
14865
if { (ac_try="$ac_link"
14866
case "(($ac_try" in
14867
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14868
*) ac_try_echo=$ac_try;;
14870
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14871
$as_echo "$ac_try_echo") >&5
14872
(eval "$ac_link") 2>conftest.er1
14874
grep -v '^ *+' conftest.er1 >conftest.err
14876
cat conftest.err >&5
14877
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14878
(exit $ac_status); } && {
14879
test -z "$ac_f77_werror_flag" ||
14880
test ! -s conftest.err
14881
} && test -s conftest$ac_exeext && {
14882
test "$cross_compiling" = yes ||
14883
$as_test_x conftest$ac_exeext
14886
lt_aix_libpath_sed='
14887
/Import File Strings/,/^$/ {
14893
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14894
# Check for a 64-bit object if we didn't find anything.
14895
if test -z "$aix_libpath"; then
14896
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14899
$as_echo "$as_me: failed program was:" >&5
14900
sed 's/^/| /' conftest.$ac_ext >&5
14905
rm -rf conftest.dSYM
14906
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14907
conftest$ac_exeext conftest.$ac_ext
14908
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14910
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14911
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"
14913
if test "$host_cpu" = ia64; then
14914
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14915
allow_undefined_flag_F77="-z nodefs"
14916
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"
14918
# Determine the default libpath from the value encoded in an empty executable.
14919
cat >conftest.$ac_ext <<_ACEOF
14924
rm -f conftest.$ac_objext conftest$ac_exeext
14925
if { (ac_try="$ac_link"
14926
case "(($ac_try" in
14927
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14928
*) ac_try_echo=$ac_try;;
14930
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14931
$as_echo "$ac_try_echo") >&5
14932
(eval "$ac_link") 2>conftest.er1
14934
grep -v '^ *+' conftest.er1 >conftest.err
14936
cat conftest.err >&5
14937
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14938
(exit $ac_status); } && {
14939
test -z "$ac_f77_werror_flag" ||
14940
test ! -s conftest.err
14941
} && test -s conftest$ac_exeext && {
14942
test "$cross_compiling" = yes ||
14943
$as_test_x conftest$ac_exeext
14946
lt_aix_libpath_sed='
14947
/Import File Strings/,/^$/ {
14953
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14954
# Check for a 64-bit object if we didn't find anything.
14955
if test -z "$aix_libpath"; then
14956
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14959
$as_echo "$as_me: failed program was:" >&5
14960
sed 's/^/| /' conftest.$ac_ext >&5
14965
rm -rf conftest.dSYM
14966
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14967
conftest$ac_exeext conftest.$ac_ext
14968
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14970
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14971
# Warning - without using the other run time loading flags,
14972
# -berok will link without error, but may produce a broken library.
14973
no_undefined_flag_F77=' ${wl}-bernotok'
14974
allow_undefined_flag_F77=' ${wl}-berok'
14975
# Exported symbols can be pulled into shared objects from archives
14976
whole_archive_flag_spec_F77='$convenience'
14977
archive_cmds_need_lc_F77=yes
14978
# This is similar to how AIX traditionally builds its shared libraries.
14979
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'
14985
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)'
14986
hardcode_libdir_flag_spec_F77='-L$libdir'
14987
hardcode_minus_L_F77=yes
14988
# see comment about different semantics on the GNU ld section
14993
export_dynamic_flag_spec_F77=-rdynamic
14996
cygwin* | mingw* | pw32*)
14997
# When not using gcc, we currently assume that we are using
14998
# Microsoft Visual C++.
14999
# hardcode_libdir_flag_spec is actually meaningless, as there is
15000
# no search path for DLLs.
15001
hardcode_libdir_flag_spec_F77=' '
15002
allow_undefined_flag_F77=unsupported
15003
# Tell ltmain to make .lib files, not .a files.
15005
# Tell ltmain to make .dll files, not .so files.
15007
# FIXME: Setting linknames here is a bad hack.
15008
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15009
# The linker will automatically build a .lib file if we build a DLL.
15010
old_archive_From_new_cmds_F77='true'
15011
# FIXME: Should let the user specify the lib program.
15012
old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15013
fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15014
enable_shared_with_static_runtimes_F77=yes
15017
darwin* | rhapsody*)
15019
rhapsody* | darwin1.[012])
15020
allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15023
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15024
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15026
case ${MACOSX_DEPLOYMENT_TARGET} in
15028
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15031
allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15037
archive_cmds_need_lc_F77=no
15038
hardcode_direct_F77=no
15039
hardcode_automatic_F77=yes
15040
hardcode_shlibpath_var_F77=unsupported
15041
whole_archive_flag_spec_F77=''
15042
link_all_deplibs_F77=yes
15043
if test "$GCC" = yes ; then
15044
output_verbose_link_cmd='echo'
15045
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}"
15046
module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15047
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}"
15048
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}"
15050
case $cc_basename in
15052
output_verbose_link_cmd='echo'
15053
archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15054
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15055
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15056
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}'
15057
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}'
15067
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15068
hardcode_libdir_flag_spec_F77='-L$libdir'
15069
hardcode_shlibpath_var_F77=no
15076
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15077
# support. Future versions do this automatically, but an explicit c++rt0.o
15078
# does not break anything, and helps significantly (at the cost of a little
15081
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15082
hardcode_libdir_flag_spec_F77='-R$libdir'
15083
hardcode_direct_F77=yes
15084
hardcode_shlibpath_var_F77=no
15087
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
15089
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15090
hardcode_direct_F77=yes
15091
hardcode_minus_L_F77=yes
15092
hardcode_shlibpath_var_F77=no
15095
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15096
freebsd* | dragonfly*)
15097
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15098
hardcode_libdir_flag_spec_F77='-R$libdir'
15099
hardcode_direct_F77=yes
15100
hardcode_shlibpath_var_F77=no
15104
if test "$GCC" = yes; then
15105
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'
15107
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'
15109
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15110
hardcode_libdir_separator_F77=:
15111
hardcode_direct_F77=yes
15113
# hardcode_minus_L: Not really in the search PATH,
15114
# but as the default location of the library.
15115
hardcode_minus_L_F77=yes
15116
export_dynamic_flag_spec_F77='${wl}-E'
15120
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15121
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15123
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15125
if test "$with_gnu_ld" = no; then
15126
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15127
hardcode_libdir_separator_F77=:
15129
hardcode_direct_F77=yes
15130
export_dynamic_flag_spec_F77='${wl}-E'
15132
# hardcode_minus_L: Not really in the search PATH,
15133
# but as the default location of the library.
15134
hardcode_minus_L_F77=yes
15139
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15142
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15145
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15148
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15154
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15157
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15160
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15164
if test "$with_gnu_ld" = no; then
15165
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15166
hardcode_libdir_separator_F77=:
15170
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15171
hardcode_direct_F77=no
15172
hardcode_shlibpath_var_F77=no
15175
hardcode_direct_F77=yes
15176
export_dynamic_flag_spec_F77='${wl}-E'
15178
# hardcode_minus_L: Not really in the search PATH,
15179
# but as the default location of the library.
15180
hardcode_minus_L_F77=yes
15186
irix5* | irix6* | nonstopux*)
15187
if test "$GCC" = yes; then
15188
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'
15190
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'
15191
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15193
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15194
hardcode_libdir_separator_F77=:
15195
link_all_deplibs_F77=yes
15199
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15200
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15202
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15204
hardcode_libdir_flag_spec_F77='-R$libdir'
15205
hardcode_direct_F77=yes
15206
hardcode_shlibpath_var_F77=no
15210
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15211
hardcode_direct_F77=yes
15212
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15213
hardcode_libdir_separator_F77=:
15214
hardcode_shlibpath_var_F77=no
15218
if test -f /usr/libexec/ld.so; then
15219
hardcode_direct_F77=yes
15220
hardcode_shlibpath_var_F77=no
15221
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15222
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15223
archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15224
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15225
export_dynamic_flag_spec_F77='${wl}-E'
15228
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15229
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15230
hardcode_libdir_flag_spec_F77='-R$libdir'
15233
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15234
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15244
hardcode_libdir_flag_spec_F77='-L$libdir'
15245
hardcode_minus_L_F77=yes
15246
allow_undefined_flag_F77=unsupported
15247
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'
15248
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15252
if test "$GCC" = yes; then
15253
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15254
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'
15256
allow_undefined_flag_F77=' -expect_unresolved \*'
15257
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'
15259
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15260
hardcode_libdir_separator_F77=:
15263
osf4* | osf5*) # as osf3* with the addition of -msym flag
15264
if test "$GCC" = yes; then
15265
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15266
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'
15267
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15269
allow_undefined_flag_F77=' -expect_unresolved \*'
15270
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'
15271
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~
15272
$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'
15274
# Both c and cxx compiler support -rpath directly
15275
hardcode_libdir_flag_spec_F77='-rpath $libdir'
15277
hardcode_libdir_separator_F77=:
15281
no_undefined_flag_F77=' -z text'
15282
if test "$GCC" = yes; then
15284
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15285
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15286
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15289
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15290
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15291
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15293
hardcode_libdir_flag_spec_F77='-R$libdir'
15294
hardcode_shlibpath_var_F77=no
15296
solaris2.[0-5] | solaris2.[0-5].*) ;;
15298
# The compiler driver will combine and reorder linker options,
15299
# but understands `-z linker_flag'. GCC discards it without `$wl',
15300
# but is careful enough not to reorder.
15301
# Supported since Solaris 2.6 (maybe 2.5.1?)
15302
if test "$GCC" = yes; then
15303
whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15305
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15309
link_all_deplibs_F77=yes
15313
if test "x$host_vendor" = xsequent; then
15314
# Use $CC to link under sequent, because it throws in some extra .o
15315
# files that make .init and .fini sections work.
15316
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15318
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15320
hardcode_libdir_flag_spec_F77='-L$libdir'
15321
hardcode_direct_F77=yes
15322
hardcode_minus_L_F77=yes
15323
hardcode_shlibpath_var_F77=no
15327
case $host_vendor in
15329
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15330
hardcode_direct_F77=yes # is this really true???
15333
## LD is ld it makes a PLAMLIB
15334
## CC just makes a GrossModule.
15335
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15336
reload_cmds_F77='$CC -r -o $output$reload_objs'
15337
hardcode_direct_F77=no
15340
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15341
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15344
runpath_var='LD_RUN_PATH'
15345
hardcode_shlibpath_var_F77=no
15349
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15350
hardcode_shlibpath_var_F77=no
15351
export_dynamic_flag_spec_F77='-Bexport'
15355
if test -d /usr/nec; then
15356
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15357
hardcode_shlibpath_var_F77=no
15358
runpath_var=LD_RUN_PATH
15359
hardcode_runpath_var=yes
15364
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15365
no_undefined_flag_F77='${wl}-z,text'
15366
archive_cmds_need_lc_F77=no
15367
hardcode_shlibpath_var_F77=no
15368
runpath_var='LD_RUN_PATH'
15370
if test "$GCC" = yes; then
15371
archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15372
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15374
archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15375
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15379
sysv5* | sco3.2v5* | sco5v6*)
15380
# Note: We can NOT use -z defs as we might desire, because we do not
15381
# link with -lc, and that would cause any symbols used from libc to
15382
# always be unresolved, which means just about no library would
15383
# ever link correctly. If we're not using GNU ld we use -z text
15384
# though, which does catch some bad symbols but isn't as heavy-handed
15386
no_undefined_flag_F77='${wl}-z,text'
15387
allow_undefined_flag_F77='${wl}-z,nodefs'
15388
archive_cmds_need_lc_F77=no
15389
hardcode_shlibpath_var_F77=no
15390
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15391
hardcode_libdir_separator_F77=':'
15392
link_all_deplibs_F77=yes
15393
export_dynamic_flag_spec_F77='${wl}-Bexport'
15394
runpath_var='LD_RUN_PATH'
15396
if test "$GCC" = yes; then
15397
archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15398
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15400
archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15401
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15406
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15407
hardcode_libdir_flag_spec_F77='-L$libdir'
15408
hardcode_shlibpath_var_F77=no
15417
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15418
$as_echo "$ld_shlibs_F77" >&6; }
15419
test "$ld_shlibs_F77" = no && can_build_shared=no
15422
# Do we need to explicitly link libc?
15424
case "x$archive_cmds_need_lc_F77" in
15426
# Assume -lc should be added
15427
archive_cmds_need_lc_F77=yes
15429
if test "$enable_shared" = yes && test "$GCC" = yes; then
15430
case $archive_cmds_F77 in
15432
# FIXME: we may have to deal with multi-command sequences.
15435
# Test whether the compiler implicitly links with -lc since on some
15436
# systems, -lgcc has to come before -lc. If gcc already passes -lc
15437
# to ld, don't add -lc before -lgcc.
15438
{ $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15439
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15441
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15443
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15444
(eval $ac_compile) 2>&5
15446
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15447
(exit $ac_status); } 2>conftest.err; then
15450
libobjs=conftest.$ac_objext
15452
wl=$lt_prog_compiler_wl_F77
15453
pic_flag=$lt_prog_compiler_pic_F77
15459
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15460
allow_undefined_flag_F77=
15461
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15462
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15464
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15465
(exit $ac_status); }
15467
archive_cmds_need_lc_F77=no
15469
archive_cmds_need_lc_F77=yes
15471
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15473
cat conftest.err 1>&5
15476
{ $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15477
$as_echo "$archive_cmds_need_lc_F77" >&6; }
15484
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15485
$as_echo_n "checking dynamic linker characteristics... " >&6; }
15486
library_names_spec=
15487
libname_spec='lib$name'
15491
postuninstall_cmds=
15495
shlibpath_overrides_runpath=unknown
15497
dynamic_linker="$host_os ld.so"
15498
sys_lib_dlsearch_path_spec="/lib /usr/lib"
15500
need_lib_prefix=unknown
15501
hardcode_into_libs=no
15503
# when you set need_version to no, make sure it does not cause -set_version
15504
# flags to be left without arguments
15505
need_version=unknown
15510
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15511
shlibpath_var=LIBPATH
15513
# AIX 3 has no versioning support, so we append a major version to the name.
15514
soname_spec='${libname}${release}${shared_ext}$major'
15521
hardcode_into_libs=yes
15522
if test "$host_cpu" = ia64; then
15523
# AIX 5 supports IA64
15524
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15525
shlibpath_var=LD_LIBRARY_PATH
15527
# With GCC up to 2.95.x, collect2 would create an import file
15528
# for dependence libraries. The import file would start with
15529
# the line `#! .'. This would cause the generated library to
15530
# depend on `.', always an invalid library. This was fixed in
15531
# development snapshots of GCC prior to 3.0.
15533
aix4 | aix4.[01] | aix4.[01].*)
15534
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15536
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15539
can_build_shared=no
15543
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15544
# soname into executable. Probably we can add versioning support to
15545
# collect2, so additional links can be useful in future.
15546
if test "$aix_use_runtimelinking" = yes; then
15547
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
15548
# instead of lib<name>.a to let people know that these are not
15549
# typical AIX shared libraries.
15550
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15552
# We preserve .a as extension for shared libraries through AIX4.2
15553
# and later when we are not doing run time linking.
15554
library_names_spec='${libname}${release}.a $libname.a'
15555
soname_spec='${libname}${release}${shared_ext}$major'
15557
shlibpath_var=LIBPATH
15562
library_names_spec='$libname.ixlibrary $libname.a'
15563
# Create ${libname}_ixlibrary.a entries in /sys/libs.
15564
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'
15568
library_names_spec='${libname}${shared_ext}'
15569
dynamic_linker="$host_os ld.so"
15570
shlibpath_var=LIBRARY_PATH
15576
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15577
soname_spec='${libname}${release}${shared_ext}$major'
15578
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15579
shlibpath_var=LD_LIBRARY_PATH
15580
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15581
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15582
# the default ld.so.conf also contains /usr/contrib/lib and
15583
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15584
# libtool to hard-code these into programs
15587
cygwin* | mingw* | pw32*)
15588
version_type=windows
15593
case $GCC,$host_os in
15594
yes,cygwin* | yes,mingw* | yes,pw32*)
15595
library_names_spec='$libname.dll.a'
15596
# DLL is installed to $(libdir)/../bin by postinstall_cmds
15597
postinstall_cmds='base_file=`basename \${file}`~
15598
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15599
dldir=$destdir/`dirname \$dlpath`~
15600
test -d \$dldir || mkdir -p \$dldir~
15601
$install_prog $dir/$dlname \$dldir/$dlname~
15602
chmod a+x \$dldir/$dlname'
15603
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15604
dlpath=$dir/\$dldll~
15606
shlibpath_overrides_runpath=yes
15610
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
15611
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15612
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15615
# MinGW DLLs use traditional 'lib' prefix
15616
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15617
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15618
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15619
# It is most probably a Windows format PATH printed by
15620
# mingw gcc, but we are running on Cygwin. Gcc prints its search
15621
# path with ; separators, and with drive letters. We can handle the
15622
# drive letters (cygwin fileutils understands them), so leave them,
15623
# especially as we might pass files found there to a mingw objdump,
15624
# which wouldn't understand a cygwinified path. Ahh.
15625
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15627
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15631
# pw32 DLLs use 'pw' prefix rather than 'lib'
15632
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15638
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15641
dynamic_linker='Win32 ld.exe'
15642
# FIXME: first we should search . and the directory the executable is in
15646
darwin* | rhapsody*)
15647
dynamic_linker="$host_os dyld"
15648
version_type=darwin
15651
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15652
soname_spec='${libname}${release}${major}$shared_ext'
15653
shlibpath_overrides_runpath=yes
15654
shlibpath_var=DYLD_LIBRARY_PATH
15655
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15657
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15664
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15665
soname_spec='${libname}${release}${shared_ext}$major'
15666
shlibpath_var=LD_LIBRARY_PATH
15673
freebsd* | dragonfly*)
15674
# DragonFly does not have aout. When/if they implement a new
15675
# versioning mechanism, adjust this.
15676
if test -x /usr/bin/objformat; then
15677
objformat=`/usr/bin/objformat`
15680
freebsd[123]*) objformat=aout ;;
15681
*) objformat=elf ;;
15684
version_type=freebsd-$objformat
15685
case $version_type in
15687
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15692
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15696
shlibpath_var=LD_LIBRARY_PATH
15699
shlibpath_overrides_runpath=yes
15701
freebsd3.[01]* | freebsdelf3.[01]*)
15702
shlibpath_overrides_runpath=yes
15703
hardcode_into_libs=yes
15705
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15706
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15707
shlibpath_overrides_runpath=no
15708
hardcode_into_libs=yes
15710
*) # from 4.6 on, and DragonFly
15711
shlibpath_overrides_runpath=yes
15712
hardcode_into_libs=yes
15721
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15722
soname_spec='${libname}${release}${shared_ext}$major'
15723
shlibpath_var=LD_LIBRARY_PATH
15724
hardcode_into_libs=yes
15727
hpux9* | hpux10* | hpux11*)
15728
# Give a soname corresponding to the major version so that dld.sl refuses to
15729
# link against other versions.
15736
hardcode_into_libs=yes
15737
dynamic_linker="$host_os dld.so"
15738
shlibpath_var=LD_LIBRARY_PATH
15739
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15740
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15741
soname_spec='${libname}${release}${shared_ext}$major'
15742
if test "X$HPUX_IA64_MODE" = X32; then
15743
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15745
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15747
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15751
hardcode_into_libs=yes
15752
dynamic_linker="$host_os dld.sl"
15753
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15754
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15755
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15756
soname_spec='${libname}${release}${shared_ext}$major'
15757
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15758
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15762
dynamic_linker="$host_os dld.sl"
15763
shlibpath_var=SHLIB_PATH
15764
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15765
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15766
soname_spec='${libname}${release}${shared_ext}$major'
15769
# HP-UX runs *really* slowly unless shared libraries are mode 555.
15770
postinstall_cmds='chmod 555 $lib'
15777
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15778
soname_spec='${libname}${release}${shared_ext}$major'
15779
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15780
shlibpath_var=LD_LIBRARY_PATH
15781
shlibpath_overrides_runpath=no
15782
hardcode_into_libs=yes
15785
irix5* | irix6* | nonstopux*)
15787
nonstopux*) version_type=nonstopux ;;
15789
if test "$lt_cv_prog_gnu_ld" = yes; then
15797
soname_spec='${libname}${release}${shared_ext}$major'
15798
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15800
irix5* | nonstopux*)
15801
libsuff= shlibsuff=
15804
case $LD in # libtool.m4 will add one of these switches to LD
15805
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15806
libsuff= shlibsuff= libmagic=32-bit;;
15807
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15808
libsuff=32 shlibsuff=N32 libmagic=N32;;
15809
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15810
libsuff=64 shlibsuff=64 libmagic=64-bit;;
15811
*) libsuff= shlibsuff= libmagic=never-match;;
15815
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15816
shlibpath_overrides_runpath=no
15817
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15818
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15819
hardcode_into_libs=yes
15822
# No shared lib support for Linux oldld, aout, or coff.
15823
linux*oldld* | linux*aout* | linux*coff*)
15827
# This must be Linux ELF.
15828
linux* | k*bsd*-gnu)
15832
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15833
soname_spec='${libname}${release}${shared_ext}$major'
15834
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15835
shlibpath_var=LD_LIBRARY_PATH
15836
shlibpath_overrides_runpath=no
15837
# This implies no fast_install, which is unacceptable.
15838
# Some rework will be needed to allow for fast_install
15839
# before this can be enabled.
15840
hardcode_into_libs=yes
15842
# Append ld.so.conf contents to the search path
15843
if test -f /etc/ld.so.conf; then
15844
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' ' '`
15845
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15848
# We used to test for /lib/ld.so.1 and disable shared libraries on
15849
# powerpc, because MkLinux only supported shared libraries with the
15850
# GNU dynamic linker. Since this was broken with cross compilers,
15851
# most powerpc-linux boxes support dynamic linking these days and
15852
# people can always --disable-shared, the test was removed, and we
15853
# assume the GNU/Linux dynamic linker is in use.
15854
dynamic_linker='GNU/Linux ld.so'
15861
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15862
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15863
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15864
dynamic_linker='NetBSD (a.out) ld.so'
15866
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15867
soname_spec='${libname}${release}${shared_ext}$major'
15868
dynamic_linker='NetBSD ld.elf_so'
15870
shlibpath_var=LD_LIBRARY_PATH
15871
shlibpath_overrides_runpath=yes
15872
hardcode_into_libs=yes
15877
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15878
shlibpath_var=LD_LIBRARY_PATH
15879
shlibpath_overrides_runpath=yes
15886
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15887
soname_spec='${libname}${release}${shared_ext}$major'
15888
shlibpath_var=LD_LIBRARY_PATH
15889
shlibpath_overrides_runpath=yes
15894
sys_lib_dlsearch_path_spec="/usr/lib"
15896
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15898
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15899
*) need_version=no ;;
15901
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15902
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15903
shlibpath_var=LD_LIBRARY_PATH
15904
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15906
openbsd2.[89] | openbsd2.[89].*)
15907
shlibpath_overrides_runpath=no
15910
shlibpath_overrides_runpath=yes
15914
shlibpath_overrides_runpath=yes
15919
libname_spec='$name'
15922
library_names_spec='$libname${shared_ext} $libname.a'
15923
dynamic_linker='OS/2 ld.exe'
15924
shlibpath_var=LIBPATH
15927
osf3* | osf4* | osf5*)
15931
soname_spec='${libname}${release}${shared_ext}$major'
15932
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15933
shlibpath_var=LD_LIBRARY_PATH
15934
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15935
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15946
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15947
soname_spec='${libname}${release}${shared_ext}$major'
15948
shlibpath_var=LD_LIBRARY_PATH
15949
shlibpath_overrides_runpath=yes
15950
hardcode_into_libs=yes
15951
# ldd complains unless libraries are executable
15952
postinstall_cmds='chmod +x $lib'
15957
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15958
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15959
shlibpath_var=LD_LIBRARY_PATH
15960
shlibpath_overrides_runpath=yes
15961
if test "$with_gnu_ld" = yes; then
15969
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15970
soname_spec='${libname}${release}${shared_ext}$major'
15971
shlibpath_var=LD_LIBRARY_PATH
15972
case $host_vendor in
15974
shlibpath_overrides_runpath=no
15976
export_dynamic_flag_spec='${wl}-Blargedynsym'
15977
runpath_var=LD_RUN_PATH
15985
shlibpath_overrides_runpath=no
15986
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15992
if test -d /usr/nec ;then
15994
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15995
soname_spec='$libname${shared_ext}.$major'
15996
shlibpath_var=LD_LIBRARY_PATH
16000
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16001
version_type=freebsd-elf
16004
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16005
soname_spec='${libname}${release}${shared_ext}$major'
16006
shlibpath_var=LD_LIBRARY_PATH
16007
hardcode_into_libs=yes
16008
if test "$with_gnu_ld" = yes; then
16009
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16010
shlibpath_overrides_runpath=no
16012
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16013
shlibpath_overrides_runpath=yes
16016
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16020
sys_lib_dlsearch_path_spec='/usr/lib'
16025
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16026
soname_spec='${libname}${release}${shared_ext}$major'
16027
shlibpath_var=LD_LIBRARY_PATH
16034
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16035
$as_echo "$dynamic_linker" >&6; }
16036
test "$dynamic_linker" = no && can_build_shared=no
16038
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16039
$as_echo_n "(cached) " >&6
16041
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16044
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16045
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16046
$as_echo_n "(cached) " >&6
16048
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16051
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16053
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16054
if test "$GCC" = yes; then
16055
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16058
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16059
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16060
hardcode_action_F77=
16061
if test -n "$hardcode_libdir_flag_spec_F77" || \
16062
test -n "$runpath_var_F77" || \
16063
test "X$hardcode_automatic_F77" = "Xyes" ; then
16065
# We can hardcode non-existant directories.
16066
if test "$hardcode_direct_F77" != no &&
16067
# If the only mechanism to avoid hardcoding is shlibpath_var, we
16068
# have to relink, otherwise we might link with an installed library
16069
# when we should be linking with a yet-to-be-installed one
16070
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16071
test "$hardcode_minus_L_F77" != no; then
16072
# Linking always hardcodes the temporary library directory.
16073
hardcode_action_F77=relink
16075
# We can link without hardcoding, and we can hardcode nonexisting dirs.
16076
hardcode_action_F77=immediate
16079
# We cannot hardcode anything, or else we can only hardcode existing
16081
hardcode_action_F77=unsupported
16083
{ $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16084
$as_echo "$hardcode_action_F77" >&6; }
16086
if test "$hardcode_action_F77" = relink; then
16087
# Fast installation is not supported
16088
enable_fast_install=no
16089
elif test "$shlibpath_overrides_runpath" = yes ||
16090
test "$enable_shared" = no; then
16091
# Fast installation is not necessary
16092
enable_fast_install=needless
16096
# The else clause should only fire when bootstrapping the
16097
# libtool distribution, otherwise you forgot to ship ltmain.sh
16098
# with your package, and you will get complaints that there are
16099
# no rules to generate ltmain.sh.
16100
if test -f "$ltmain"; then
16101
# See if we are running on zsh, and set the options which allow our commands through
16102
# without removal of \ escapes.
16103
if test -n "${ZSH_VERSION+set}" ; then
16104
setopt NO_GLOB_SUBST
16106
# Now quote all the things that may contain metacharacters while being
16107
# careful not to overquote the AC_SUBSTed values. We take copies of the
16108
# variables and quote the copies for generation of the libtool script.
16109
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16111
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16112
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16113
deplibs_check_method reload_flag reload_cmds need_locks \
16114
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16115
lt_cv_sys_global_symbol_to_c_name_address \
16116
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16117
old_postinstall_cmds old_postuninstall_cmds \
16121
lt_prog_compiler_wl_F77 \
16122
lt_prog_compiler_pic_F77 \
16123
lt_prog_compiler_static_F77 \
16124
lt_prog_compiler_no_builtin_flag_F77 \
16125
export_dynamic_flag_spec_F77 \
16126
thread_safe_flag_spec_F77 \
16127
whole_archive_flag_spec_F77 \
16128
enable_shared_with_static_runtimes_F77 \
16129
old_archive_cmds_F77 \
16130
old_archive_from_new_cmds_F77 \
16131
predep_objects_F77 \
16132
postdep_objects_F77 \
16135
compiler_lib_search_path_F77 \
16136
compiler_lib_search_dirs_F77 \
16138
archive_expsym_cmds_F77 \
16139
postinstall_cmds_F77 \
16140
postuninstall_cmds_F77 \
16141
old_archive_from_expsyms_cmds_F77 \
16142
allow_undefined_flag_F77 \
16143
no_undefined_flag_F77 \
16144
export_symbols_cmds_F77 \
16145
hardcode_libdir_flag_spec_F77 \
16146
hardcode_libdir_flag_spec_ld_F77 \
16147
hardcode_libdir_separator_F77 \
16148
hardcode_automatic_F77 \
16150
module_expsym_cmds_F77 \
16151
lt_cv_prog_compiler_c_o_F77 \
16152
fix_srcfile_path_F77 \
16153
exclude_expsyms_F77 \
16154
include_expsyms_F77; do
16157
old_archive_cmds_F77 | \
16158
old_archive_from_new_cmds_F77 | \
16159
archive_cmds_F77 | \
16160
archive_expsym_cmds_F77 | \
16161
module_cmds_F77 | \
16162
module_expsym_cmds_F77 | \
16163
old_archive_from_expsyms_cmds_F77 | \
16164
export_symbols_cmds_F77 | \
16165
extract_expsyms_cmds | reload_cmds | finish_cmds | \
16166
postinstall_cmds | postuninstall_cmds | \
16167
old_postinstall_cmds | old_postuninstall_cmds | \
16168
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16169
# Double-quote double-evaled strings.
16170
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16173
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16179
*'\$0 --fallback-echo"')
16180
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16186
cat <<__EOF__ >> "$cfgfile"
16187
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16189
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16191
# Shell to use when invoking shell scripts.
16194
# Whether or not to build shared libraries.
16195
build_libtool_libs=$enable_shared
16197
# Whether or not to build static libraries.
16198
build_old_libs=$enable_static
16200
# Whether or not to add -lc for building shared libraries.
16201
build_libtool_need_lc=$archive_cmds_need_lc_F77
16203
# Whether or not to disallow shared libs when runtime libs are static
16204
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16206
# Whether or not to optimize for fast installation.
16207
fast_install=$enable_fast_install
16210
host_alias=$host_alias
16214
# The build system.
16215
build_alias=$build_alias
16219
# An echo program that does not interpret backslashes.
16224
AR_FLAGS=$lt_AR_FLAGS
16229
# LTCC compiler flags.
16230
LTCFLAGS=$lt_LTCFLAGS
16232
# A language-specific compiler.
16233
CC=$lt_compiler_F77
16235
# Is the compiler the GNU C compiler?
16241
# The linker used to build libraries.
16244
# Whether we need hard or soft links.
16247
# A BSD-compatible nm program.
16250
# A symbol stripping program
16253
# Used to examine libraries when file_magic_cmd begins "file"
16254
MAGIC_CMD=$MAGIC_CMD
16256
# Used on cygwin: DLL creation program.
16259
# Used on cygwin: object dumper.
16262
# Used on cygwin: assembler.
16265
# The name of the directory that contains temporary libtool files.
16268
# How to create reloadable object files.
16269
reload_flag=$lt_reload_flag
16270
reload_cmds=$lt_reload_cmds
16272
# How to pass a linker flag through the compiler.
16273
wl=$lt_lt_prog_compiler_wl_F77
16275
# Object file suffix (normally "o").
16276
objext="$ac_objext"
16278
# Old archive suffix (normally "a").
16281
# Shared library suffix (normally ".so").
16282
shrext_cmds='$shrext_cmds'
16284
# Executable file suffix (normally "").
16287
# Additional compiler flags for building library objects.
16288
pic_flag=$lt_lt_prog_compiler_pic_F77
16291
# What is the maximum length of a command?
16292
max_cmd_len=$lt_cv_sys_max_cmd_len
16294
# Does compiler simultaneously support -c and -o options?
16295
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16297
# Must we lock files when doing compilation?
16298
need_locks=$lt_need_locks
16300
# Do we need the lib prefix for modules?
16301
need_lib_prefix=$need_lib_prefix
16303
# Do we need a version for libraries?
16304
need_version=$need_version
16306
# Whether dlopen is supported.
16307
dlopen_support=$enable_dlopen
16309
# Whether dlopen of programs is supported.
16310
dlopen_self=$enable_dlopen_self
16312
# Whether dlopen of statically linked programs is supported.
16313
dlopen_self_static=$enable_dlopen_self_static
16315
# Compiler flag to prevent dynamic linking.
16316
link_static_flag=$lt_lt_prog_compiler_static_F77
16318
# Compiler flag to turn off builtin functions.
16319
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16321
# Compiler flag to allow reflexive dlopens.
16322
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16324
# Compiler flag to generate shared objects directly from archives.
16325
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16327
# Compiler flag to generate thread-safe objects.
16328
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16330
# Library versioning type.
16331
version_type=$version_type
16333
# Format of library name prefix.
16334
libname_spec=$lt_libname_spec
16336
# List of archive names. First name is the real one, the rest are links.
16337
# The last name is the one that the linker finds with -lNAME.
16338
library_names_spec=$lt_library_names_spec
16340
# The coded name of the library, if different from the real name.
16341
soname_spec=$lt_soname_spec
16343
# Commands used to build and install an old-style archive.
16345
old_archive_cmds=$lt_old_archive_cmds_F77
16346
old_postinstall_cmds=$lt_old_postinstall_cmds
16347
old_postuninstall_cmds=$lt_old_postuninstall_cmds
16349
# Create an old-style archive from a shared archive.
16350
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16352
# Create a temporary old-style archive to link instead of a shared archive.
16353
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16355
# Commands used to build and install a shared archive.
16356
archive_cmds=$lt_archive_cmds_F77
16357
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16358
postinstall_cmds=$lt_postinstall_cmds
16359
postuninstall_cmds=$lt_postuninstall_cmds
16361
# Commands used to build a loadable module (assumed same as above if empty)
16362
module_cmds=$lt_module_cmds_F77
16363
module_expsym_cmds=$lt_module_expsym_cmds_F77
16365
# Commands to strip libraries.
16366
old_striplib=$lt_old_striplib
16367
striplib=$lt_striplib
16369
# Dependencies to place before the objects being linked to create a
16371
predep_objects=$lt_predep_objects_F77
16373
# Dependencies to place after the objects being linked to create a
16375
postdep_objects=$lt_postdep_objects_F77
16377
# Dependencies to place before the objects being linked to create a
16379
predeps=$lt_predeps_F77
16381
# Dependencies to place after the objects being linked to create a
16383
postdeps=$lt_postdeps_F77
16385
# The directories searched by this compiler when creating a shared
16387
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16389
# The library search path used internally by the compiler when linking
16390
# a shared library.
16391
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16393
# Method to check whether dependent libraries are shared objects.
16394
deplibs_check_method=$lt_deplibs_check_method
16396
# Command to use when deplibs_check_method == file_magic.
16397
file_magic_cmd=$lt_file_magic_cmd
16399
# Flag that allows shared libraries with undefined symbols to be built.
16400
allow_undefined_flag=$lt_allow_undefined_flag_F77
16402
# Flag that forces no undefined symbols.
16403
no_undefined_flag=$lt_no_undefined_flag_F77
16405
# Commands used to finish a libtool library installation in a directory.
16406
finish_cmds=$lt_finish_cmds
16408
# Same as above, but a single script fragment to be evaled but not shown.
16409
finish_eval=$lt_finish_eval
16411
# Take the output of nm and produce a listing of raw symbols and C names.
16412
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16414
# Transform the output of nm in a proper C declaration
16415
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16417
# Transform the output of nm in a C name address pair
16418
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16420
# This is the shared library runtime path variable.
16421
runpath_var=$runpath_var
16423
# This is the shared library path variable.
16424
shlibpath_var=$shlibpath_var
16426
# Is shlibpath searched before the hard-coded library search path?
16427
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16429
# How to hardcode a shared library path into an executable.
16430
hardcode_action=$hardcode_action_F77
16432
# Whether we should hardcode library paths into libraries.
16433
hardcode_into_libs=$hardcode_into_libs
16435
# Flag to hardcode \$libdir into a binary during linking.
16436
# This must work even if \$libdir does not exist.
16437
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16439
# If ld is used when linking, flag to hardcode \$libdir into
16440
# a binary during linking. This must work even if \$libdir does
16442
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16444
# Whether we need a single -rpath flag with a separated argument.
16445
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16447
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16448
# resulting binary.
16449
hardcode_direct=$hardcode_direct_F77
16451
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16452
# resulting binary.
16453
hardcode_minus_L=$hardcode_minus_L_F77
16455
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16456
# the resulting binary.
16457
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16459
# Set to yes if building a shared library automatically hardcodes DIR into the library
16460
# and all subsequent libraries and executables linked against it.
16461
hardcode_automatic=$hardcode_automatic_F77
16463
# Variables whose values should be saved in libtool wrapper scripts and
16464
# restored at relink time.
16465
variables_saved_for_relink="$variables_saved_for_relink"
16467
# Whether libtool must link a program against all its dependency libraries.
16468
link_all_deplibs=$link_all_deplibs_F77
16470
# Compile-time system search path for libraries
16471
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16473
# Run-time system search path for libraries
16474
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16476
# Fix the shell variable \$srcfile for the compiler.
16477
fix_srcfile_path=$lt_fix_srcfile_path
16479
# Set to yes if exported symbols are required.
16480
always_export_symbols=$always_export_symbols_F77
16482
# The commands to list exported symbols.
16483
export_symbols_cmds=$lt_export_symbols_cmds_F77
16485
# The commands to extract the exported symbol list from a shared archive.
16486
extract_expsyms_cmds=$lt_extract_expsyms_cmds
16488
# Symbols that should not be listed in the preloaded symbols.
16489
exclude_expsyms=$lt_exclude_expsyms_F77
16491
# Symbols that must always be exported.
16492
include_expsyms=$lt_include_expsyms_F77
16494
# ### END LIBTOOL TAG CONFIG: $tagname
16500
# If there is no Makefile yet, we rely on a make rule to execute
16501
# `config.status --recheck' to rerun these tests and create the
16502
# libtool script then.
16503
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16504
if test -f "$ltmain_in"; then
16505
test -f Makefile && make "$ltmain"
16511
ac_cpp='$CPP $CPPFLAGS'
16512
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16513
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16514
ac_compiler_gnu=$ac_cv_c_compiler_gnu
16524
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16527
# Source file extension for Java test sources.
16530
# Object file extension for compiled Java test sources.
16534
# Code to be used in simple compile tests
16535
lt_simple_compile_test_code="class foo {}"
16537
# Code to be used in simple link tests
16538
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16540
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16542
# If no C compiler was specified, use CC.
16545
# If no C compiler flags were specified, use CFLAGS.
16546
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16548
# Allow CC to be a program name with arguments.
16552
# save warnings/boilerplate of simple test code
16553
ac_outfile=conftest.$ac_objext
16554
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16555
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16556
_lt_compiler_boilerplate=`cat conftest.err`
16559
ac_outfile=conftest.$ac_objext
16560
echo "$lt_simple_link_test_code" >conftest.$ac_ext
16561
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16562
_lt_linker_boilerplate=`cat conftest.err`
16566
# Allow CC to be a program name with arguments.
16571
for cc_temp in $compiler""; do
16573
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16574
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16579
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16582
# GCJ did not exist at the time GCC didn't implicitly link libc in.
16583
archive_cmds_need_lc_GCJ=no
16585
old_archive_cmds_GCJ=$old_archive_cmds
16588
lt_prog_compiler_no_builtin_flag_GCJ=
16590
if test "$GCC" = yes; then
16591
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16594
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16595
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16596
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16597
$as_echo_n "(cached) " >&6
16599
lt_cv_prog_compiler_rtti_exceptions=no
16600
ac_outfile=conftest.$ac_objext
16601
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16602
lt_compiler_flag="-fno-rtti -fno-exceptions"
16603
# Insert the option either (1) after the last *FLAGS variable, or
16604
# (2) before a word containing "conftest.", or (3) at the end.
16605
# Note that $ac_compile itself does not contain backslashes and begins
16606
# with a dollar sign (not a hyphen), so the echo should work correctly.
16607
# The option is referenced via a variable to avoid confusing sed.
16608
lt_compile=`echo "$ac_compile" | $SED \
16609
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16610
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16611
-e 's:$: $lt_compiler_flag:'`
16612
(eval echo "\"\$as_me:16612: $lt_compile\"" >&5)
16613
(eval "$lt_compile" 2>conftest.err)
16615
cat conftest.err >&5
16616
echo "$as_me:16616: \$? = $ac_status" >&5
16617
if (exit $ac_status) && test -s "$ac_outfile"; then
16618
# The compiler can only warn and ignore the option if not recognized
16619
# So say no if there are warnings other than the usual output.
16620
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16621
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16622
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16623
lt_cv_prog_compiler_rtti_exceptions=yes
16629
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16630
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16632
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16633
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16640
lt_prog_compiler_wl_GCJ=
16641
lt_prog_compiler_pic_GCJ=
16642
lt_prog_compiler_static_GCJ=
16644
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16645
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16647
if test "$GCC" = yes; then
16648
lt_prog_compiler_wl_GCJ='-Wl,'
16649
lt_prog_compiler_static_GCJ='-static'
16653
# All AIX code is PIC.
16654
if test "$host_cpu" = ia64; then
16655
# AIX 5 now supports IA64 processor
16656
lt_prog_compiler_static_GCJ='-Bstatic'
16661
# FIXME: we need at least 68020 code to build shared libraries, but
16662
# adding the `-m68020' flag to GCC prevents building anything better,
16664
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16667
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16668
# PIC is the default for these OSes.
16671
mingw* | cygwin* | pw32* | os2*)
16672
# This hack is so that the source file can tell whether it is being
16673
# built for inclusion in a dll (and should export symbols for example).
16674
# Although the cygwin gcc ignores -fPIC, still need this for old-style
16675
# (--disable-auto-import) libraries
16679
darwin* | rhapsody*)
16680
# PIC is the default on this platform
16681
# Common symbols not allowed in MH_DYLIB files
16682
lt_prog_compiler_pic_GCJ='-fno-common'
16686
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
16687
# Instead, we relocate shared libraries at runtime.
16691
# Just because we use GCC doesn't mean we suddenly get shared libraries
16692
# on systems that don't support them.
16693
lt_prog_compiler_can_build_shared_GCJ=no
16698
if test -d /usr/nec; then
16699
lt_prog_compiler_pic_GCJ=-Kconform_pic
16704
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16705
# not for PA HP-UX.
16711
lt_prog_compiler_pic_GCJ='-fPIC'
16717
lt_prog_compiler_pic_GCJ='-fPIC'
16721
# PORTME Check for flag to pass linker flags through the system compiler.
16724
lt_prog_compiler_wl_GCJ='-Wl,'
16725
if test "$host_cpu" = ia64; then
16726
# AIX 5 now supports IA64 processor
16727
lt_prog_compiler_static_GCJ='-Bstatic'
16729
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16733
# PIC is the default on this platform
16734
# Common symbols not allowed in MH_DYLIB files
16735
case $cc_basename in
16737
lt_prog_compiler_pic_GCJ='-qnocommon'
16738
lt_prog_compiler_wl_GCJ='-Wl,'
16743
mingw* | cygwin* | pw32* | os2*)
16744
# This hack is so that the source file can tell whether it is being
16745
# built for inclusion in a dll (and should export symbols for example).
16749
hpux9* | hpux10* | hpux11*)
16750
lt_prog_compiler_wl_GCJ='-Wl,'
16751
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16752
# not for PA HP-UX.
16758
lt_prog_compiler_pic_GCJ='+Z'
16761
# Is there a better lt_prog_compiler_static that works with the bundled CC?
16762
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16765
irix5* | irix6* | nonstopux*)
16766
lt_prog_compiler_wl_GCJ='-Wl,'
16767
# PIC (with -KPIC) is the default.
16768
lt_prog_compiler_static_GCJ='-non_shared'
16772
lt_prog_compiler_pic_GCJ='-KPIC'
16773
lt_prog_compiler_static_GCJ='-Bstatic'
16776
linux* | k*bsd*-gnu)
16777
case $cc_basename in
16779
lt_prog_compiler_wl_GCJ='-Wl,'
16780
lt_prog_compiler_pic_GCJ='-KPIC'
16781
lt_prog_compiler_static_GCJ='-static'
16783
pgcc* | pgf77* | pgf90* | pgf95*)
16784
# Portland Group compilers (*not* the Pentium gcc compiler,
16785
# which looks to be a dead project)
16786
lt_prog_compiler_wl_GCJ='-Wl,'
16787
lt_prog_compiler_pic_GCJ='-fpic'
16788
lt_prog_compiler_static_GCJ='-Bstatic'
16791
lt_prog_compiler_wl_GCJ='-Wl,'
16792
# All Alpha code is PIC.
16793
lt_prog_compiler_static_GCJ='-non_shared'
16796
case `$CC -V 2>&1 | sed 5q` in
16799
lt_prog_compiler_pic_GCJ='-KPIC'
16800
lt_prog_compiler_static_GCJ='-Bstatic'
16801
lt_prog_compiler_wl_GCJ='-Wl,'
16804
# Sun Fortran 8.3 passes all unrecognized flags to the linker
16805
lt_prog_compiler_pic_GCJ='-KPIC'
16806
lt_prog_compiler_static_GCJ='-Bstatic'
16807
lt_prog_compiler_wl_GCJ=''
16814
osf3* | osf4* | osf5*)
16815
lt_prog_compiler_wl_GCJ='-Wl,'
16816
# All OSF/1 code is PIC.
16817
lt_prog_compiler_static_GCJ='-non_shared'
16821
lt_prog_compiler_static_GCJ='-non_shared'
16825
lt_prog_compiler_pic_GCJ='-KPIC'
16826
lt_prog_compiler_static_GCJ='-Bstatic'
16827
case $cc_basename in
16828
f77* | f90* | f95*)
16829
lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16831
lt_prog_compiler_wl_GCJ='-Wl,';;
16836
lt_prog_compiler_wl_GCJ='-Qoption ld '
16837
lt_prog_compiler_pic_GCJ='-PIC'
16838
lt_prog_compiler_static_GCJ='-Bstatic'
16841
sysv4 | sysv4.2uw2* | sysv4.3*)
16842
lt_prog_compiler_wl_GCJ='-Wl,'
16843
lt_prog_compiler_pic_GCJ='-KPIC'
16844
lt_prog_compiler_static_GCJ='-Bstatic'
16848
if test -d /usr/nec ;then
16849
lt_prog_compiler_pic_GCJ='-Kconform_pic'
16850
lt_prog_compiler_static_GCJ='-Bstatic'
16854
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16855
lt_prog_compiler_wl_GCJ='-Wl,'
16856
lt_prog_compiler_pic_GCJ='-KPIC'
16857
lt_prog_compiler_static_GCJ='-Bstatic'
16861
lt_prog_compiler_wl_GCJ='-Wl,'
16862
lt_prog_compiler_can_build_shared_GCJ=no
16866
lt_prog_compiler_pic_GCJ='-pic'
16867
lt_prog_compiler_static_GCJ='-Bstatic'
16871
lt_prog_compiler_can_build_shared_GCJ=no
16876
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16877
$as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
16880
# Check to make sure the PIC flag actually works.
16882
if test -n "$lt_prog_compiler_pic_GCJ"; then
16884
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16885
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
16886
if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
16887
$as_echo_n "(cached) " >&6
16889
lt_cv_prog_compiler_pic_works_GCJ=no
16890
ac_outfile=conftest.$ac_objext
16891
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16892
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16893
# Insert the option either (1) after the last *FLAGS variable, or
16894
# (2) before a word containing "conftest.", or (3) at the end.
16895
# Note that $ac_compile itself does not contain backslashes and begins
16896
# with a dollar sign (not a hyphen), so the echo should work correctly.
16897
# The option is referenced via a variable to avoid confusing sed.
16898
lt_compile=`echo "$ac_compile" | $SED \
16899
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16900
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16901
-e 's:$: $lt_compiler_flag:'`
16902
(eval echo "\"\$as_me:16902: $lt_compile\"" >&5)
16903
(eval "$lt_compile" 2>conftest.err)
16905
cat conftest.err >&5
16906
echo "$as_me:16906: \$? = $ac_status" >&5
16907
if (exit $ac_status) && test -s "$ac_outfile"; then
16908
# The compiler can only warn and ignore the option if not recognized
16909
# So say no if there are warnings other than the usual output.
16910
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16911
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16912
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16913
lt_cv_prog_compiler_pic_works_GCJ=yes
16919
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
16920
$as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
16922
if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
16923
case $lt_prog_compiler_pic_GCJ in
16925
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16928
lt_prog_compiler_pic_GCJ=
16929
lt_prog_compiler_can_build_shared_GCJ=no
16934
# For platforms which do not support PIC, -DPIC is meaningless:
16936
lt_prog_compiler_pic_GCJ=
16939
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16944
# Check to make sure the static flag actually works.
16946
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16947
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16948
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16949
if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
16950
$as_echo_n "(cached) " >&6
16952
lt_cv_prog_compiler_static_works_GCJ=no
16953
save_LDFLAGS="$LDFLAGS"
16954
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16955
echo "$lt_simple_link_test_code" > conftest.$ac_ext
16956
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16957
# The linker can only warn and ignore the option if not recognized
16958
# So say no if there are warnings
16959
if test -s conftest.err; then
16960
# Append any errors to the config.log.
16961
cat conftest.err 1>&5
16962
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16963
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16964
if diff conftest.exp conftest.er2 >/dev/null; then
16965
lt_cv_prog_compiler_static_works_GCJ=yes
16968
lt_cv_prog_compiler_static_works_GCJ=yes
16972
LDFLAGS="$save_LDFLAGS"
16975
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
16976
$as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
16978
if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
16981
lt_prog_compiler_static_GCJ=
16985
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16986
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16987
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16988
$as_echo_n "(cached) " >&6
16990
lt_cv_prog_compiler_c_o_GCJ=no
16991
$rm -r conftest 2>/dev/null
16995
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16997
lt_compiler_flag="-o out/conftest2.$ac_objext"
16998
# Insert the option either (1) after the last *FLAGS variable, or
16999
# (2) before a word containing "conftest.", or (3) at the end.
17000
# Note that $ac_compile itself does not contain backslashes and begins
17001
# with a dollar sign (not a hyphen), so the echo should work correctly.
17002
lt_compile=`echo "$ac_compile" | $SED \
17003
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17004
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17005
-e 's:$: $lt_compiler_flag:'`
17006
(eval echo "\"\$as_me:17006: $lt_compile\"" >&5)
17007
(eval "$lt_compile" 2>out/conftest.err)
17009
cat out/conftest.err >&5
17010
echo "$as_me:17010: \$? = $ac_status" >&5
17011
if (exit $ac_status) && test -s out/conftest2.$ac_objext
17013
# The compiler can only warn and ignore the option if not recognized
17014
# So say no if there are warnings
17015
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17016
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17017
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17018
lt_cv_prog_compiler_c_o_GCJ=yes
17023
# SGI C++ compiler will create directory out/ii_files/ for
17024
# template instantiation
17025
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17026
$rm out/* && rmdir out
17032
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17033
$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17036
hard_links="nottested"
17037
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17038
# do not overwrite the value of need_locks provided by the user
17039
{ $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17040
$as_echo_n "checking if we can lock with hard links... " >&6; }
17043
ln conftest.a conftest.b 2>/dev/null && hard_links=no
17045
ln conftest.a conftest.b 2>&5 || hard_links=no
17046
ln conftest.a conftest.b 2>/dev/null && hard_links=no
17047
{ $as_echo "$as_me:$LINENO: result: $hard_links" >&5
17048
$as_echo "$hard_links" >&6; }
17049
if test "$hard_links" = no; then
17050
{ $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17051
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17058
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17059
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17062
allow_undefined_flag_GCJ=
17063
enable_shared_with_static_runtimes_GCJ=no
17065
archive_expsym_cmds_GCJ=
17066
old_archive_From_new_cmds_GCJ=
17067
old_archive_from_expsyms_cmds_GCJ=
17068
export_dynamic_flag_spec_GCJ=
17069
whole_archive_flag_spec_GCJ=
17070
thread_safe_flag_spec_GCJ=
17071
hardcode_libdir_flag_spec_GCJ=
17072
hardcode_libdir_flag_spec_ld_GCJ=
17073
hardcode_libdir_separator_GCJ=
17074
hardcode_direct_GCJ=no
17075
hardcode_minus_L_GCJ=no
17076
hardcode_shlibpath_var_GCJ=unsupported
17077
link_all_deplibs_GCJ=unknown
17078
hardcode_automatic_GCJ=no
17080
module_expsym_cmds_GCJ=
17081
always_export_symbols_GCJ=no
17082
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17083
# include_expsyms should be a list of space-separated symbols to be *always*
17084
# included in the symbol list
17085
include_expsyms_GCJ=
17086
# exclude_expsyms can be an extended regexp of symbols to exclude
17087
# it will be wrapped by ` (' and `)$', so one must not match beginning or
17088
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17089
# as well as any symbol that contains `d'.
17090
exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17091
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17092
# platforms (ab)use it in PIC code, but their linkers get confused if
17093
# the symbol is explicitly referenced. Since portable code cannot
17094
# rely on this symbol name, it's probably fine to never include it in
17095
# preloaded symbol tables.
17096
# Exclude shared library initialization/finalization symbols.
17097
extract_expsyms_cmds=
17098
# Just being paranoid about ensuring that cc_basename is set.
17099
for cc_temp in $compiler""; do
17101
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17102
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17107
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17110
cygwin* | mingw* | pw32*)
17111
# FIXME: the MSVC++ port hasn't been tested in a loooong time
17112
# When not using gcc, we currently assume that we are using
17113
# Microsoft Visual C++.
17114
if test "$GCC" != yes; then
17119
# we just hope/assume this is gcc and not c89 (= MSVC++)
17128
if test "$with_gnu_ld" = yes; then
17129
# If archive_cmds runs LD, not CC, wlarc should be empty
17132
# Set some defaults for GNU ld with shared library support. These
17133
# are reset later if shared libraries are not supported. Putting them
17134
# here allows them to be overridden if necessary.
17135
runpath_var=LD_RUN_PATH
17136
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17137
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17138
# ancient GNU ld didn't support --whole-archive et. al.
17139
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17140
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17142
whole_archive_flag_spec_GCJ=
17144
supports_anon_versioning=no
17145
case `$LD -v 2>/dev/null` in
17146
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17147
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17148
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17149
*\ 2.11.*) ;; # other 2.11 versions
17150
*) supports_anon_versioning=yes ;;
17153
# See if GNU ld supports shared libraries.
17156
# On AIX/PPC, the GNU linker is very broken
17157
if test "$host_cpu" != ia64; then
17161
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17162
*** to be unable to reliably create shared libraries on AIX.
17163
*** Therefore, libtool is disabling shared libraries support. If you
17164
*** really care for shared libraries, you may want to modify your PATH
17165
*** so that a non-GNU linker is found, and then restart.
17172
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)'
17173
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17174
hardcode_minus_L_GCJ=yes
17176
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17177
# that the semantics of dynamic libraries on AmigaOS, at least up
17178
# to version 4, is to share data among multiple programs linked
17179
# with the same dynamic library. Since this doesn't match the
17180
# behavior of shared libraries on other platforms, we can't use
17186
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17187
allow_undefined_flag_GCJ=unsupported
17188
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17189
# support --undefined. This deserves some investigation. FIXME
17190
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17196
cygwin* | mingw* | pw32*)
17197
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17198
# as there is no search path for DLLs.
17199
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17200
allow_undefined_flag_GCJ=unsupported
17201
always_export_symbols_GCJ=no
17202
enable_shared_with_static_runtimes_GCJ=yes
17203
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17205
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17206
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17207
# If the export-symbols file already is a .def file (1st line
17208
# is EXPORTS), use it as is; otherwise, prepend...
17209
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17210
cp $export_symbols $output_objdir/$soname.def;
17212
echo EXPORTS > $output_objdir/$soname.def;
17213
cat $export_symbols >> $output_objdir/$soname.def;
17215
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17222
hardcode_direct_GCJ=no
17223
hardcode_shlibpath_var_GCJ=no
17224
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17225
export_dynamic_flag_spec_GCJ='${wl}-E'
17226
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17227
# Instead, shared libraries are loaded at an image base (0x10000000 by
17228
# default) and relocated if they conflict, which is a slow very memory
17229
# consuming and fragmenting process. To avoid this, we pick a random,
17230
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17231
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
17232
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'
17233
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'
17236
gnu* | linux* | k*bsd*-gnu)
17237
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17239
case $cc_basename,$host_cpu in
17240
pgcc*) # Portland Group C compiler
17241
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'
17242
tmp_addflag=' $pic_flag'
17244
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17245
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'
17246
tmp_addflag=' $pic_flag -Mnomain' ;;
17247
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17248
tmp_addflag=' -i_dynamic' ;;
17249
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17250
tmp_addflag=' -i_dynamic -nofor_main' ;;
17251
ifc* | ifort*) # Intel Fortran compiler
17252
tmp_addflag=' -nofor_main' ;;
17254
case `$CC -V 2>&1 | sed 5q` in
17255
*Sun\ C*) # Sun C 5.9
17256
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'
17257
tmp_sharedflag='-G' ;;
17258
*Sun\ F*) # Sun Fortran 8.3
17259
tmp_sharedflag='-G' ;;
17261
tmp_sharedflag='-shared' ;;
17263
archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17265
if test $supports_anon_versioning = yes; then
17266
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17267
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17268
$echo "local: *; };" >> $output_objdir/$libname.ver~
17269
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17277
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17278
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17281
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17282
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17287
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17291
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17292
*** create shared libraries on Solaris systems. Therefore, libtool
17293
*** is disabling shared libraries support. We urge you to upgrade GNU
17294
*** binutils to release 2.9.1 or newer. Another option is to modify
17295
*** your PATH or compiler configuration so that the native linker is
17296
*** used, and then restart.
17299
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17300
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17301
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17307
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17308
case `$LD -v 2>&1` in
17309
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17313
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17314
*** reliably create shared libraries on SCO systems. Therefore, libtool
17315
*** is disabling shared libraries support. We urge you to upgrade GNU
17316
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17317
*** your PATH or compiler configuration so that the native linker is
17318
*** used, and then restart.
17323
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17324
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17325
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17326
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17335
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17337
hardcode_direct_GCJ=yes
17338
hardcode_shlibpath_var_GCJ=no
17342
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17343
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17344
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17351
if test "$ld_shlibs_GCJ" = no; then
17353
hardcode_libdir_flag_spec_GCJ=
17354
export_dynamic_flag_spec_GCJ=
17355
whole_archive_flag_spec_GCJ=
17358
# PORTME fill in a description of your system's linker (not GNU ld)
17361
allow_undefined_flag_GCJ=unsupported
17362
always_export_symbols_GCJ=yes
17363
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'
17364
# Note: this linker hardcodes the directories in LIBPATH if there
17365
# are no directories specified by -L.
17366
hardcode_minus_L_GCJ=yes
17367
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17368
# Neither direct hardcoding nor static linking is supported with a
17370
hardcode_direct_GCJ=unsupported
17375
if test "$host_cpu" = ia64; then
17376
# On IA64, the linker does run time linking by default, so we don't
17377
# have to do anything special.
17378
aix_use_runtimelinking=no
17379
exp_sym_flag='-Bexport'
17382
# If we're using GNU nm, then we don't want the "-C" option.
17383
# -C means demangle to AIX nm, but means don't demangle with GNU nm
17384
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17385
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'
17387
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'
17389
aix_use_runtimelinking=no
17391
# Test if we are trying to use run time linking or normal
17392
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17393
# need to do runtime linking.
17394
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17395
for ld_flag in $LDFLAGS; do
17396
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17397
aix_use_runtimelinking=yes
17404
exp_sym_flag='-bexport'
17405
no_entry_flag='-bnoentry'
17408
# When large executables or shared objects are built, AIX ld can
17409
# have problems creating the table of contents. If linking a library
17410
# or program results in "error TOC overflow" add -mminimal-toc to
17411
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17412
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17414
archive_cmds_GCJ=''
17415
hardcode_direct_GCJ=yes
17416
hardcode_libdir_separator_GCJ=':'
17417
link_all_deplibs_GCJ=yes
17419
if test "$GCC" = yes; then
17420
case $host_os in aix4.[012]|aix4.[012].*)
17421
# We only want to do this on AIX 4.2 and lower, the check
17422
# below for broken collect2 doesn't work under 4.3+
17423
collect2name=`${CC} -print-prog-name=collect2`
17424
if test -f "$collect2name" && \
17425
strings "$collect2name" | grep resolve_lib_name >/dev/null
17427
# We have reworked collect2
17430
# We have old collect2
17431
hardcode_direct_GCJ=unsupported
17432
# It fails to find uninstalled libraries when the uninstalled
17433
# path is not listed in the libpath. Setting hardcode_minus_L
17434
# to unsupported forces relinking
17435
hardcode_minus_L_GCJ=yes
17436
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17437
hardcode_libdir_separator_GCJ=
17441
shared_flag='-shared'
17442
if test "$aix_use_runtimelinking" = yes; then
17443
shared_flag="$shared_flag "'${wl}-G'
17447
if test "$host_cpu" = ia64; then
17448
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17449
# chokes on -Wl,-G. The following line is correct:
17452
if test "$aix_use_runtimelinking" = yes; then
17453
shared_flag='${wl}-G'
17455
shared_flag='${wl}-bM:SRE'
17460
# It seems that -bexpall does not export symbols beginning with
17461
# underscore (_), so it is better to generate a list of symbols to export.
17462
always_export_symbols_GCJ=yes
17463
if test "$aix_use_runtimelinking" = yes; then
17464
# Warning - without using the other runtime loading flags (-brtl),
17465
# -berok will link without error, but may produce a broken library.
17466
allow_undefined_flag_GCJ='-berok'
17467
# Determine the default libpath from the value encoded in an empty executable.
17468
cat >conftest.$ac_ext <<_ACEOF
17471
cat confdefs.h >>conftest.$ac_ext
17472
cat >>conftest.$ac_ext <<_ACEOF
17473
/* end confdefs.h. */
17483
rm -f conftest.$ac_objext conftest$ac_exeext
17484
if { (ac_try="$ac_link"
17485
case "(($ac_try" in
17486
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17487
*) ac_try_echo=$ac_try;;
17489
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17490
$as_echo "$ac_try_echo") >&5
17491
(eval "$ac_link") 2>conftest.er1
17493
grep -v '^ *+' conftest.er1 >conftest.err
17495
cat conftest.err >&5
17496
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17497
(exit $ac_status); } && {
17498
test -z "$ac_c_werror_flag" ||
17499
test ! -s conftest.err
17500
} && test -s conftest$ac_exeext && {
17501
test "$cross_compiling" = yes ||
17502
$as_test_x conftest$ac_exeext
17505
lt_aix_libpath_sed='
17506
/Import File Strings/,/^$/ {
17512
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17513
# Check for a 64-bit object if we didn't find anything.
17514
if test -z "$aix_libpath"; then
17515
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17518
$as_echo "$as_me: failed program was:" >&5
17519
sed 's/^/| /' conftest.$ac_ext >&5
17524
rm -rf conftest.dSYM
17525
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17526
conftest$ac_exeext conftest.$ac_ext
17527
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17529
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17530
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"
17532
if test "$host_cpu" = ia64; then
17533
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17534
allow_undefined_flag_GCJ="-z nodefs"
17535
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"
17537
# Determine the default libpath from the value encoded in an empty executable.
17538
cat >conftest.$ac_ext <<_ACEOF
17541
cat confdefs.h >>conftest.$ac_ext
17542
cat >>conftest.$ac_ext <<_ACEOF
17543
/* end confdefs.h. */
17553
rm -f conftest.$ac_objext conftest$ac_exeext
17554
if { (ac_try="$ac_link"
17555
case "(($ac_try" in
17556
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17557
*) ac_try_echo=$ac_try;;
17559
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17560
$as_echo "$ac_try_echo") >&5
17561
(eval "$ac_link") 2>conftest.er1
17563
grep -v '^ *+' conftest.er1 >conftest.err
17565
cat conftest.err >&5
17566
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17567
(exit $ac_status); } && {
17568
test -z "$ac_c_werror_flag" ||
17569
test ! -s conftest.err
17570
} && test -s conftest$ac_exeext && {
17571
test "$cross_compiling" = yes ||
17572
$as_test_x conftest$ac_exeext
17575
lt_aix_libpath_sed='
17576
/Import File Strings/,/^$/ {
17582
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17583
# Check for a 64-bit object if we didn't find anything.
17584
if test -z "$aix_libpath"; then
17585
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17588
$as_echo "$as_me: failed program was:" >&5
17589
sed 's/^/| /' conftest.$ac_ext >&5
17594
rm -rf conftest.dSYM
17595
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17596
conftest$ac_exeext conftest.$ac_ext
17597
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17599
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17600
# Warning - without using the other run time loading flags,
17601
# -berok will link without error, but may produce a broken library.
17602
no_undefined_flag_GCJ=' ${wl}-bernotok'
17603
allow_undefined_flag_GCJ=' ${wl}-berok'
17604
# Exported symbols can be pulled into shared objects from archives
17605
whole_archive_flag_spec_GCJ='$convenience'
17606
archive_cmds_need_lc_GCJ=yes
17607
# This is similar to how AIX traditionally builds its shared libraries.
17608
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'
17614
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)'
17615
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17616
hardcode_minus_L_GCJ=yes
17617
# see comment about different semantics on the GNU ld section
17622
export_dynamic_flag_spec_GCJ=-rdynamic
17625
cygwin* | mingw* | pw32*)
17626
# When not using gcc, we currently assume that we are using
17627
# Microsoft Visual C++.
17628
# hardcode_libdir_flag_spec is actually meaningless, as there is
17629
# no search path for DLLs.
17630
hardcode_libdir_flag_spec_GCJ=' '
17631
allow_undefined_flag_GCJ=unsupported
17632
# Tell ltmain to make .lib files, not .a files.
17634
# Tell ltmain to make .dll files, not .so files.
17636
# FIXME: Setting linknames here is a bad hack.
17637
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17638
# The linker will automatically build a .lib file if we build a DLL.
17639
old_archive_From_new_cmds_GCJ='true'
17640
# FIXME: Should let the user specify the lib program.
17641
old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17642
fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17643
enable_shared_with_static_runtimes_GCJ=yes
17646
darwin* | rhapsody*)
17648
rhapsody* | darwin1.[012])
17649
allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17652
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17653
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17655
case ${MACOSX_DEPLOYMENT_TARGET} in
17657
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17660
allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17666
archive_cmds_need_lc_GCJ=no
17667
hardcode_direct_GCJ=no
17668
hardcode_automatic_GCJ=yes
17669
hardcode_shlibpath_var_GCJ=unsupported
17670
whole_archive_flag_spec_GCJ=''
17671
link_all_deplibs_GCJ=yes
17672
if test "$GCC" = yes ; then
17673
output_verbose_link_cmd='echo'
17674
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}"
17675
module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17676
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}"
17677
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}"
17679
case $cc_basename in
17681
output_verbose_link_cmd='echo'
17682
archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17683
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17684
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17685
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}'
17686
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}'
17696
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17697
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17698
hardcode_shlibpath_var_GCJ=no
17705
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17706
# support. Future versions do this automatically, but an explicit c++rt0.o
17707
# does not break anything, and helps significantly (at the cost of a little
17710
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17711
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17712
hardcode_direct_GCJ=yes
17713
hardcode_shlibpath_var_GCJ=no
17716
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
17718
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17719
hardcode_direct_GCJ=yes
17720
hardcode_minus_L_GCJ=yes
17721
hardcode_shlibpath_var_GCJ=no
17724
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17725
freebsd* | dragonfly*)
17726
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17727
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17728
hardcode_direct_GCJ=yes
17729
hardcode_shlibpath_var_GCJ=no
17733
if test "$GCC" = yes; then
17734
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'
17736
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'
17738
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17739
hardcode_libdir_separator_GCJ=:
17740
hardcode_direct_GCJ=yes
17742
# hardcode_minus_L: Not really in the search PATH,
17743
# but as the default location of the library.
17744
hardcode_minus_L_GCJ=yes
17745
export_dynamic_flag_spec_GCJ='${wl}-E'
17749
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17750
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17752
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17754
if test "$with_gnu_ld" = no; then
17755
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17756
hardcode_libdir_separator_GCJ=:
17758
hardcode_direct_GCJ=yes
17759
export_dynamic_flag_spec_GCJ='${wl}-E'
17761
# hardcode_minus_L: Not really in the search PATH,
17762
# but as the default location of the library.
17763
hardcode_minus_L_GCJ=yes
17768
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17771
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17774
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17777
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17783
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17786
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17789
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17793
if test "$with_gnu_ld" = no; then
17794
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17795
hardcode_libdir_separator_GCJ=:
17799
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17800
hardcode_direct_GCJ=no
17801
hardcode_shlibpath_var_GCJ=no
17804
hardcode_direct_GCJ=yes
17805
export_dynamic_flag_spec_GCJ='${wl}-E'
17807
# hardcode_minus_L: Not really in the search PATH,
17808
# but as the default location of the library.
17809
hardcode_minus_L_GCJ=yes
17815
irix5* | irix6* | nonstopux*)
17816
if test "$GCC" = yes; then
17817
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'
17819
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'
17820
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17822
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17823
hardcode_libdir_separator_GCJ=:
17824
link_all_deplibs_GCJ=yes
17828
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17829
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17831
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17833
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17834
hardcode_direct_GCJ=yes
17835
hardcode_shlibpath_var_GCJ=no
17839
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17840
hardcode_direct_GCJ=yes
17841
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17842
hardcode_libdir_separator_GCJ=:
17843
hardcode_shlibpath_var_GCJ=no
17847
if test -f /usr/libexec/ld.so; then
17848
hardcode_direct_GCJ=yes
17849
hardcode_shlibpath_var_GCJ=no
17850
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17851
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17852
archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17853
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17854
export_dynamic_flag_spec_GCJ='${wl}-E'
17857
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17858
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17859
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17862
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17863
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17873
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17874
hardcode_minus_L_GCJ=yes
17875
allow_undefined_flag_GCJ=unsupported
17876
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'
17877
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17881
if test "$GCC" = yes; then
17882
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17883
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'
17885
allow_undefined_flag_GCJ=' -expect_unresolved \*'
17886
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'
17888
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17889
hardcode_libdir_separator_GCJ=:
17892
osf4* | osf5*) # as osf3* with the addition of -msym flag
17893
if test "$GCC" = yes; then
17894
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17895
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'
17896
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17898
allow_undefined_flag_GCJ=' -expect_unresolved \*'
17899
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'
17900
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~
17901
$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'
17903
# Both c and cxx compiler support -rpath directly
17904
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17906
hardcode_libdir_separator_GCJ=:
17910
no_undefined_flag_GCJ=' -z text'
17911
if test "$GCC" = yes; then
17913
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17914
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17915
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17918
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17919
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17920
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17922
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17923
hardcode_shlibpath_var_GCJ=no
17925
solaris2.[0-5] | solaris2.[0-5].*) ;;
17927
# The compiler driver will combine and reorder linker options,
17928
# but understands `-z linker_flag'. GCC discards it without `$wl',
17929
# but is careful enough not to reorder.
17930
# Supported since Solaris 2.6 (maybe 2.5.1?)
17931
if test "$GCC" = yes; then
17932
whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17934
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
17938
link_all_deplibs_GCJ=yes
17942
if test "x$host_vendor" = xsequent; then
17943
# Use $CC to link under sequent, because it throws in some extra .o
17944
# files that make .init and .fini sections work.
17945
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17947
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17949
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17950
hardcode_direct_GCJ=yes
17951
hardcode_minus_L_GCJ=yes
17952
hardcode_shlibpath_var_GCJ=no
17956
case $host_vendor in
17958
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17959
hardcode_direct_GCJ=yes # is this really true???
17962
## LD is ld it makes a PLAMLIB
17963
## CC just makes a GrossModule.
17964
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17965
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17966
hardcode_direct_GCJ=no
17969
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17970
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17973
runpath_var='LD_RUN_PATH'
17974
hardcode_shlibpath_var_GCJ=no
17978
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17979
hardcode_shlibpath_var_GCJ=no
17980
export_dynamic_flag_spec_GCJ='-Bexport'
17984
if test -d /usr/nec; then
17985
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17986
hardcode_shlibpath_var_GCJ=no
17987
runpath_var=LD_RUN_PATH
17988
hardcode_runpath_var=yes
17993
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17994
no_undefined_flag_GCJ='${wl}-z,text'
17995
archive_cmds_need_lc_GCJ=no
17996
hardcode_shlibpath_var_GCJ=no
17997
runpath_var='LD_RUN_PATH'
17999
if test "$GCC" = yes; then
18000
archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18001
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18003
archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18004
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18008
sysv5* | sco3.2v5* | sco5v6*)
18009
# Note: We can NOT use -z defs as we might desire, because we do not
18010
# link with -lc, and that would cause any symbols used from libc to
18011
# always be unresolved, which means just about no library would
18012
# ever link correctly. If we're not using GNU ld we use -z text
18013
# though, which does catch some bad symbols but isn't as heavy-handed
18015
no_undefined_flag_GCJ='${wl}-z,text'
18016
allow_undefined_flag_GCJ='${wl}-z,nodefs'
18017
archive_cmds_need_lc_GCJ=no
18018
hardcode_shlibpath_var_GCJ=no
18019
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18020
hardcode_libdir_separator_GCJ=':'
18021
link_all_deplibs_GCJ=yes
18022
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18023
runpath_var='LD_RUN_PATH'
18025
if test "$GCC" = yes; then
18026
archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18027
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18029
archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18030
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18035
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18036
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18037
hardcode_shlibpath_var_GCJ=no
18046
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18047
$as_echo "$ld_shlibs_GCJ" >&6; }
18048
test "$ld_shlibs_GCJ" = no && can_build_shared=no
18051
# Do we need to explicitly link libc?
18053
case "x$archive_cmds_need_lc_GCJ" in
18055
# Assume -lc should be added
18056
archive_cmds_need_lc_GCJ=yes
18058
if test "$enable_shared" = yes && test "$GCC" = yes; then
18059
case $archive_cmds_GCJ in
18061
# FIXME: we may have to deal with multi-command sequences.
18064
# Test whether the compiler implicitly links with -lc since on some
18065
# systems, -lgcc has to come before -lc. If gcc already passes -lc
18066
# to ld, don't add -lc before -lgcc.
18067
{ $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18068
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18070
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18072
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18073
(eval $ac_compile) 2>&5
18075
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18076
(exit $ac_status); } 2>conftest.err; then
18079
libobjs=conftest.$ac_objext
18081
wl=$lt_prog_compiler_wl_GCJ
18082
pic_flag=$lt_prog_compiler_pic_GCJ
18088
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18089
allow_undefined_flag_GCJ=
18090
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18091
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18093
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18094
(exit $ac_status); }
18096
archive_cmds_need_lc_GCJ=no
18098
archive_cmds_need_lc_GCJ=yes
18100
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18102
cat conftest.err 1>&5
18105
{ $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18106
$as_echo "$archive_cmds_need_lc_GCJ" >&6; }
18113
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18114
$as_echo_n "checking dynamic linker characteristics... " >&6; }
18115
library_names_spec=
18116
libname_spec='lib$name'
18120
postuninstall_cmds=
18124
shlibpath_overrides_runpath=unknown
18126
dynamic_linker="$host_os ld.so"
18127
sys_lib_dlsearch_path_spec="/lib /usr/lib"
18129
need_lib_prefix=unknown
18130
hardcode_into_libs=no
18132
# when you set need_version to no, make sure it does not cause -set_version
18133
# flags to be left without arguments
18134
need_version=unknown
18139
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18140
shlibpath_var=LIBPATH
18142
# AIX 3 has no versioning support, so we append a major version to the name.
18143
soname_spec='${libname}${release}${shared_ext}$major'
18150
hardcode_into_libs=yes
18151
if test "$host_cpu" = ia64; then
18152
# AIX 5 supports IA64
18153
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18154
shlibpath_var=LD_LIBRARY_PATH
18156
# With GCC up to 2.95.x, collect2 would create an import file
18157
# for dependence libraries. The import file would start with
18158
# the line `#! .'. This would cause the generated library to
18159
# depend on `.', always an invalid library. This was fixed in
18160
# development snapshots of GCC prior to 3.0.
18162
aix4 | aix4.[01] | aix4.[01].*)
18163
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18165
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18168
can_build_shared=no
18172
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18173
# soname into executable. Probably we can add versioning support to
18174
# collect2, so additional links can be useful in future.
18175
if test "$aix_use_runtimelinking" = yes; then
18176
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
18177
# instead of lib<name>.a to let people know that these are not
18178
# typical AIX shared libraries.
18179
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18181
# We preserve .a as extension for shared libraries through AIX4.2
18182
# and later when we are not doing run time linking.
18183
library_names_spec='${libname}${release}.a $libname.a'
18184
soname_spec='${libname}${release}${shared_ext}$major'
18186
shlibpath_var=LIBPATH
18191
library_names_spec='$libname.ixlibrary $libname.a'
18192
# Create ${libname}_ixlibrary.a entries in /sys/libs.
18193
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'
18197
library_names_spec='${libname}${shared_ext}'
18198
dynamic_linker="$host_os ld.so"
18199
shlibpath_var=LIBRARY_PATH
18205
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18206
soname_spec='${libname}${release}${shared_ext}$major'
18207
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18208
shlibpath_var=LD_LIBRARY_PATH
18209
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18210
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18211
# the default ld.so.conf also contains /usr/contrib/lib and
18212
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18213
# libtool to hard-code these into programs
18216
cygwin* | mingw* | pw32*)
18217
version_type=windows
18222
case $GCC,$host_os in
18223
yes,cygwin* | yes,mingw* | yes,pw32*)
18224
library_names_spec='$libname.dll.a'
18225
# DLL is installed to $(libdir)/../bin by postinstall_cmds
18226
postinstall_cmds='base_file=`basename \${file}`~
18227
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18228
dldir=$destdir/`dirname \$dlpath`~
18229
test -d \$dldir || mkdir -p \$dldir~
18230
$install_prog $dir/$dlname \$dldir/$dlname~
18231
chmod a+x \$dldir/$dlname'
18232
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18233
dlpath=$dir/\$dldll~
18235
shlibpath_overrides_runpath=yes
18239
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
18240
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18241
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18244
# MinGW DLLs use traditional 'lib' prefix
18245
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18246
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18247
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18248
# It is most probably a Windows format PATH printed by
18249
# mingw gcc, but we are running on Cygwin. Gcc prints its search
18250
# path with ; separators, and with drive letters. We can handle the
18251
# drive letters (cygwin fileutils understands them), so leave them,
18252
# especially as we might pass files found there to a mingw objdump,
18253
# which wouldn't understand a cygwinified path. Ahh.
18254
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18256
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18260
# pw32 DLLs use 'pw' prefix rather than 'lib'
18261
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18267
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18270
dynamic_linker='Win32 ld.exe'
18271
# FIXME: first we should search . and the directory the executable is in
18275
darwin* | rhapsody*)
18276
dynamic_linker="$host_os dyld"
18277
version_type=darwin
18280
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18281
soname_spec='${libname}${release}${major}$shared_ext'
18282
shlibpath_overrides_runpath=yes
18283
shlibpath_var=DYLD_LIBRARY_PATH
18284
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18286
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18293
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18294
soname_spec='${libname}${release}${shared_ext}$major'
18295
shlibpath_var=LD_LIBRARY_PATH
18302
freebsd* | dragonfly*)
18303
# DragonFly does not have aout. When/if they implement a new
18304
# versioning mechanism, adjust this.
18305
if test -x /usr/bin/objformat; then
18306
objformat=`/usr/bin/objformat`
18309
freebsd[123]*) objformat=aout ;;
18310
*) objformat=elf ;;
18313
version_type=freebsd-$objformat
18314
case $version_type in
18316
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18321
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18325
shlibpath_var=LD_LIBRARY_PATH
18328
shlibpath_overrides_runpath=yes
18330
freebsd3.[01]* | freebsdelf3.[01]*)
18331
shlibpath_overrides_runpath=yes
18332
hardcode_into_libs=yes
18334
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18335
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18336
shlibpath_overrides_runpath=no
18337
hardcode_into_libs=yes
18339
*) # from 4.6 on, and DragonFly
18340
shlibpath_overrides_runpath=yes
18341
hardcode_into_libs=yes
18350
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18351
soname_spec='${libname}${release}${shared_ext}$major'
18352
shlibpath_var=LD_LIBRARY_PATH
18353
hardcode_into_libs=yes
18356
hpux9* | hpux10* | hpux11*)
18357
# Give a soname corresponding to the major version so that dld.sl refuses to
18358
# link against other versions.
18365
hardcode_into_libs=yes
18366
dynamic_linker="$host_os dld.so"
18367
shlibpath_var=LD_LIBRARY_PATH
18368
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18369
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18370
soname_spec='${libname}${release}${shared_ext}$major'
18371
if test "X$HPUX_IA64_MODE" = X32; then
18372
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18374
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18376
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18380
hardcode_into_libs=yes
18381
dynamic_linker="$host_os dld.sl"
18382
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18383
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18384
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18385
soname_spec='${libname}${release}${shared_ext}$major'
18386
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18387
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18391
dynamic_linker="$host_os dld.sl"
18392
shlibpath_var=SHLIB_PATH
18393
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18394
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18395
soname_spec='${libname}${release}${shared_ext}$major'
18398
# HP-UX runs *really* slowly unless shared libraries are mode 555.
18399
postinstall_cmds='chmod 555 $lib'
18406
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18407
soname_spec='${libname}${release}${shared_ext}$major'
18408
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18409
shlibpath_var=LD_LIBRARY_PATH
18410
shlibpath_overrides_runpath=no
18411
hardcode_into_libs=yes
18414
irix5* | irix6* | nonstopux*)
18416
nonstopux*) version_type=nonstopux ;;
18418
if test "$lt_cv_prog_gnu_ld" = yes; then
18426
soname_spec='${libname}${release}${shared_ext}$major'
18427
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18429
irix5* | nonstopux*)
18430
libsuff= shlibsuff=
18433
case $LD in # libtool.m4 will add one of these switches to LD
18434
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18435
libsuff= shlibsuff= libmagic=32-bit;;
18436
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18437
libsuff=32 shlibsuff=N32 libmagic=N32;;
18438
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18439
libsuff=64 shlibsuff=64 libmagic=64-bit;;
18440
*) libsuff= shlibsuff= libmagic=never-match;;
18444
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18445
shlibpath_overrides_runpath=no
18446
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18447
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18448
hardcode_into_libs=yes
18451
# No shared lib support for Linux oldld, aout, or coff.
18452
linux*oldld* | linux*aout* | linux*coff*)
18456
# This must be Linux ELF.
18457
linux* | k*bsd*-gnu)
18461
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18462
soname_spec='${libname}${release}${shared_ext}$major'
18463
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18464
shlibpath_var=LD_LIBRARY_PATH
18465
shlibpath_overrides_runpath=no
18466
# This implies no fast_install, which is unacceptable.
18467
# Some rework will be needed to allow for fast_install
18468
# before this can be enabled.
18469
hardcode_into_libs=yes
18471
# Append ld.so.conf contents to the search path
18472
if test -f /etc/ld.so.conf; then
18473
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' ' '`
18474
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18477
# We used to test for /lib/ld.so.1 and disable shared libraries on
18478
# powerpc, because MkLinux only supported shared libraries with the
18479
# GNU dynamic linker. Since this was broken with cross compilers,
18480
# most powerpc-linux boxes support dynamic linking these days and
18481
# people can always --disable-shared, the test was removed, and we
18482
# assume the GNU/Linux dynamic linker is in use.
18483
dynamic_linker='GNU/Linux ld.so'
18490
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18491
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18492
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18493
dynamic_linker='NetBSD (a.out) ld.so'
18495
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18496
soname_spec='${libname}${release}${shared_ext}$major'
18497
dynamic_linker='NetBSD ld.elf_so'
18499
shlibpath_var=LD_LIBRARY_PATH
18500
shlibpath_overrides_runpath=yes
18501
hardcode_into_libs=yes
18506
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18507
shlibpath_var=LD_LIBRARY_PATH
18508
shlibpath_overrides_runpath=yes
18515
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18516
soname_spec='${libname}${release}${shared_ext}$major'
18517
shlibpath_var=LD_LIBRARY_PATH
18518
shlibpath_overrides_runpath=yes
18523
sys_lib_dlsearch_path_spec="/usr/lib"
18525
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18527
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18528
*) need_version=no ;;
18530
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18531
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18532
shlibpath_var=LD_LIBRARY_PATH
18533
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18535
openbsd2.[89] | openbsd2.[89].*)
18536
shlibpath_overrides_runpath=no
18539
shlibpath_overrides_runpath=yes
18543
shlibpath_overrides_runpath=yes
18548
libname_spec='$name'
18551
library_names_spec='$libname${shared_ext} $libname.a'
18552
dynamic_linker='OS/2 ld.exe'
18553
shlibpath_var=LIBPATH
18556
osf3* | osf4* | osf5*)
18560
soname_spec='${libname}${release}${shared_ext}$major'
18561
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18562
shlibpath_var=LD_LIBRARY_PATH
18563
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18564
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18575
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18576
soname_spec='${libname}${release}${shared_ext}$major'
18577
shlibpath_var=LD_LIBRARY_PATH
18578
shlibpath_overrides_runpath=yes
18579
hardcode_into_libs=yes
18580
# ldd complains unless libraries are executable
18581
postinstall_cmds='chmod +x $lib'
18586
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18587
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18588
shlibpath_var=LD_LIBRARY_PATH
18589
shlibpath_overrides_runpath=yes
18590
if test "$with_gnu_ld" = yes; then
18598
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18599
soname_spec='${libname}${release}${shared_ext}$major'
18600
shlibpath_var=LD_LIBRARY_PATH
18601
case $host_vendor in
18603
shlibpath_overrides_runpath=no
18605
export_dynamic_flag_spec='${wl}-Blargedynsym'
18606
runpath_var=LD_RUN_PATH
18614
shlibpath_overrides_runpath=no
18615
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18621
if test -d /usr/nec ;then
18623
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18624
soname_spec='$libname${shared_ext}.$major'
18625
shlibpath_var=LD_LIBRARY_PATH
18629
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18630
version_type=freebsd-elf
18633
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18634
soname_spec='${libname}${release}${shared_ext}$major'
18635
shlibpath_var=LD_LIBRARY_PATH
18636
hardcode_into_libs=yes
18637
if test "$with_gnu_ld" = yes; then
18638
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18639
shlibpath_overrides_runpath=no
18641
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18642
shlibpath_overrides_runpath=yes
18645
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18649
sys_lib_dlsearch_path_spec='/usr/lib'
18654
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18655
soname_spec='${libname}${release}${shared_ext}$major'
18656
shlibpath_var=LD_LIBRARY_PATH
18663
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18664
$as_echo "$dynamic_linker" >&6; }
18665
test "$dynamic_linker" = no && can_build_shared=no
18667
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18668
$as_echo_n "(cached) " >&6
18670
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18673
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18674
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18675
$as_echo_n "(cached) " >&6
18677
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18680
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18682
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18683
if test "$GCC" = yes; then
18684
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18687
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18688
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18689
hardcode_action_GCJ=
18690
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18691
test -n "$runpath_var_GCJ" || \
18692
test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18694
# We can hardcode non-existant directories.
18695
if test "$hardcode_direct_GCJ" != no &&
18696
# If the only mechanism to avoid hardcoding is shlibpath_var, we
18697
# have to relink, otherwise we might link with an installed library
18698
# when we should be linking with a yet-to-be-installed one
18699
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18700
test "$hardcode_minus_L_GCJ" != no; then
18701
# Linking always hardcodes the temporary library directory.
18702
hardcode_action_GCJ=relink
18704
# We can link without hardcoding, and we can hardcode nonexisting dirs.
18705
hardcode_action_GCJ=immediate
18708
# We cannot hardcode anything, or else we can only hardcode existing
18710
hardcode_action_GCJ=unsupported
18712
{ $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18713
$as_echo "$hardcode_action_GCJ" >&6; }
18715
if test "$hardcode_action_GCJ" = relink; then
18716
# Fast installation is not supported
18717
enable_fast_install=no
18718
elif test "$shlibpath_overrides_runpath" = yes ||
18719
test "$enable_shared" = no; then
18720
# Fast installation is not necessary
18721
enable_fast_install=needless
18725
# The else clause should only fire when bootstrapping the
18726
# libtool distribution, otherwise you forgot to ship ltmain.sh
18727
# with your package, and you will get complaints that there are
18728
# no rules to generate ltmain.sh.
18729
if test -f "$ltmain"; then
18730
# See if we are running on zsh, and set the options which allow our commands through
18731
# without removal of \ escapes.
18732
if test -n "${ZSH_VERSION+set}" ; then
18733
setopt NO_GLOB_SUBST
18735
# Now quote all the things that may contain metacharacters while being
18736
# careful not to overquote the AC_SUBSTed values. We take copies of the
18737
# variables and quote the copies for generation of the libtool script.
18738
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18740
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18741
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18742
deplibs_check_method reload_flag reload_cmds need_locks \
18743
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18744
lt_cv_sys_global_symbol_to_c_name_address \
18745
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18746
old_postinstall_cmds old_postuninstall_cmds \
18750
lt_prog_compiler_wl_GCJ \
18751
lt_prog_compiler_pic_GCJ \
18752
lt_prog_compiler_static_GCJ \
18753
lt_prog_compiler_no_builtin_flag_GCJ \
18754
export_dynamic_flag_spec_GCJ \
18755
thread_safe_flag_spec_GCJ \
18756
whole_archive_flag_spec_GCJ \
18757
enable_shared_with_static_runtimes_GCJ \
18758
old_archive_cmds_GCJ \
18759
old_archive_from_new_cmds_GCJ \
18760
predep_objects_GCJ \
18761
postdep_objects_GCJ \
18764
compiler_lib_search_path_GCJ \
18765
compiler_lib_search_dirs_GCJ \
18767
archive_expsym_cmds_GCJ \
18768
postinstall_cmds_GCJ \
18769
postuninstall_cmds_GCJ \
18770
old_archive_from_expsyms_cmds_GCJ \
18771
allow_undefined_flag_GCJ \
18772
no_undefined_flag_GCJ \
18773
export_symbols_cmds_GCJ \
18774
hardcode_libdir_flag_spec_GCJ \
18775
hardcode_libdir_flag_spec_ld_GCJ \
18776
hardcode_libdir_separator_GCJ \
18777
hardcode_automatic_GCJ \
18779
module_expsym_cmds_GCJ \
18780
lt_cv_prog_compiler_c_o_GCJ \
18781
fix_srcfile_path_GCJ \
18782
exclude_expsyms_GCJ \
18783
include_expsyms_GCJ; do
18786
old_archive_cmds_GCJ | \
18787
old_archive_from_new_cmds_GCJ | \
18788
archive_cmds_GCJ | \
18789
archive_expsym_cmds_GCJ | \
18790
module_cmds_GCJ | \
18791
module_expsym_cmds_GCJ | \
18792
old_archive_from_expsyms_cmds_GCJ | \
18793
export_symbols_cmds_GCJ | \
18794
extract_expsyms_cmds | reload_cmds | finish_cmds | \
18795
postinstall_cmds | postuninstall_cmds | \
18796
old_postinstall_cmds | old_postuninstall_cmds | \
18797
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18798
# Double-quote double-evaled strings.
18799
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18802
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18808
*'\$0 --fallback-echo"')
18809
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18815
cat <<__EOF__ >> "$cfgfile"
18816
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18818
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18820
# Shell to use when invoking shell scripts.
18823
# Whether or not to build shared libraries.
18824
build_libtool_libs=$enable_shared
18826
# Whether or not to build static libraries.
18827
build_old_libs=$enable_static
18829
# Whether or not to add -lc for building shared libraries.
18830
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18832
# Whether or not to disallow shared libs when runtime libs are static
18833
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18835
# Whether or not to optimize for fast installation.
18836
fast_install=$enable_fast_install
18839
host_alias=$host_alias
18843
# The build system.
18844
build_alias=$build_alias
18848
# An echo program that does not interpret backslashes.
18853
AR_FLAGS=$lt_AR_FLAGS
18858
# LTCC compiler flags.
18859
LTCFLAGS=$lt_LTCFLAGS
18861
# A language-specific compiler.
18862
CC=$lt_compiler_GCJ
18864
# Is the compiler the GNU C compiler?
18870
# The linker used to build libraries.
18873
# Whether we need hard or soft links.
18876
# A BSD-compatible nm program.
18879
# A symbol stripping program
18882
# Used to examine libraries when file_magic_cmd begins "file"
18883
MAGIC_CMD=$MAGIC_CMD
18885
# Used on cygwin: DLL creation program.
18888
# Used on cygwin: object dumper.
18891
# Used on cygwin: assembler.
18894
# The name of the directory that contains temporary libtool files.
18897
# How to create reloadable object files.
18898
reload_flag=$lt_reload_flag
18899
reload_cmds=$lt_reload_cmds
18901
# How to pass a linker flag through the compiler.
18902
wl=$lt_lt_prog_compiler_wl_GCJ
18904
# Object file suffix (normally "o").
18905
objext="$ac_objext"
18907
# Old archive suffix (normally "a").
18910
# Shared library suffix (normally ".so").
18911
shrext_cmds='$shrext_cmds'
18913
# Executable file suffix (normally "").
18916
# Additional compiler flags for building library objects.
18917
pic_flag=$lt_lt_prog_compiler_pic_GCJ
18920
# What is the maximum length of a command?
18921
max_cmd_len=$lt_cv_sys_max_cmd_len
18923
# Does compiler simultaneously support -c and -o options?
18924
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18926
# Must we lock files when doing compilation?
18927
need_locks=$lt_need_locks
18929
# Do we need the lib prefix for modules?
18930
need_lib_prefix=$need_lib_prefix
18932
# Do we need a version for libraries?
18933
need_version=$need_version
18935
# Whether dlopen is supported.
18936
dlopen_support=$enable_dlopen
18938
# Whether dlopen of programs is supported.
18939
dlopen_self=$enable_dlopen_self
18941
# Whether dlopen of statically linked programs is supported.
18942
dlopen_self_static=$enable_dlopen_self_static
18944
# Compiler flag to prevent dynamic linking.
18945
link_static_flag=$lt_lt_prog_compiler_static_GCJ
18947
# Compiler flag to turn off builtin functions.
18948
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18950
# Compiler flag to allow reflexive dlopens.
18951
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18953
# Compiler flag to generate shared objects directly from archives.
18954
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18956
# Compiler flag to generate thread-safe objects.
18957
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18959
# Library versioning type.
18960
version_type=$version_type
18962
# Format of library name prefix.
18963
libname_spec=$lt_libname_spec
18965
# List of archive names. First name is the real one, the rest are links.
18966
# The last name is the one that the linker finds with -lNAME.
18967
library_names_spec=$lt_library_names_spec
18969
# The coded name of the library, if different from the real name.
18970
soname_spec=$lt_soname_spec
18972
# Commands used to build and install an old-style archive.
18974
old_archive_cmds=$lt_old_archive_cmds_GCJ
18975
old_postinstall_cmds=$lt_old_postinstall_cmds
18976
old_postuninstall_cmds=$lt_old_postuninstall_cmds
18978
# Create an old-style archive from a shared archive.
18979
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18981
# Create a temporary old-style archive to link instead of a shared archive.
18982
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18984
# Commands used to build and install a shared archive.
18985
archive_cmds=$lt_archive_cmds_GCJ
18986
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18987
postinstall_cmds=$lt_postinstall_cmds
18988
postuninstall_cmds=$lt_postuninstall_cmds
18990
# Commands used to build a loadable module (assumed same as above if empty)
18991
module_cmds=$lt_module_cmds_GCJ
18992
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18994
# Commands to strip libraries.
18995
old_striplib=$lt_old_striplib
18996
striplib=$lt_striplib
18998
# Dependencies to place before the objects being linked to create a
19000
predep_objects=$lt_predep_objects_GCJ
19002
# Dependencies to place after the objects being linked to create a
19004
postdep_objects=$lt_postdep_objects_GCJ
19006
# Dependencies to place before the objects being linked to create a
19008
predeps=$lt_predeps_GCJ
19010
# Dependencies to place after the objects being linked to create a
19012
postdeps=$lt_postdeps_GCJ
19014
# The directories searched by this compiler when creating a shared
19016
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19018
# The library search path used internally by the compiler when linking
19019
# a shared library.
19020
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19022
# Method to check whether dependent libraries are shared objects.
19023
deplibs_check_method=$lt_deplibs_check_method
19025
# Command to use when deplibs_check_method == file_magic.
19026
file_magic_cmd=$lt_file_magic_cmd
19028
# Flag that allows shared libraries with undefined symbols to be built.
19029
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19031
# Flag that forces no undefined symbols.
19032
no_undefined_flag=$lt_no_undefined_flag_GCJ
19034
# Commands used to finish a libtool library installation in a directory.
19035
finish_cmds=$lt_finish_cmds
19037
# Same as above, but a single script fragment to be evaled but not shown.
19038
finish_eval=$lt_finish_eval
19040
# Take the output of nm and produce a listing of raw symbols and C names.
19041
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19043
# Transform the output of nm in a proper C declaration
19044
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19046
# Transform the output of nm in a C name address pair
19047
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19049
# This is the shared library runtime path variable.
19050
runpath_var=$runpath_var
19052
# This is the shared library path variable.
19053
shlibpath_var=$shlibpath_var
19055
# Is shlibpath searched before the hard-coded library search path?
19056
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19058
# How to hardcode a shared library path into an executable.
19059
hardcode_action=$hardcode_action_GCJ
19061
# Whether we should hardcode library paths into libraries.
19062
hardcode_into_libs=$hardcode_into_libs
19064
# Flag to hardcode \$libdir into a binary during linking.
19065
# This must work even if \$libdir does not exist.
19066
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19068
# If ld is used when linking, flag to hardcode \$libdir into
19069
# a binary during linking. This must work even if \$libdir does
19071
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19073
# Whether we need a single -rpath flag with a separated argument.
19074
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19076
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19077
# resulting binary.
19078
hardcode_direct=$hardcode_direct_GCJ
19080
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19081
# resulting binary.
19082
hardcode_minus_L=$hardcode_minus_L_GCJ
19084
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19085
# the resulting binary.
19086
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19088
# Set to yes if building a shared library automatically hardcodes DIR into the library
19089
# and all subsequent libraries and executables linked against it.
19090
hardcode_automatic=$hardcode_automatic_GCJ
19092
# Variables whose values should be saved in libtool wrapper scripts and
19093
# restored at relink time.
19094
variables_saved_for_relink="$variables_saved_for_relink"
19096
# Whether libtool must link a program against all its dependency libraries.
19097
link_all_deplibs=$link_all_deplibs_GCJ
19099
# Compile-time system search path for libraries
19100
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19102
# Run-time system search path for libraries
19103
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19105
# Fix the shell variable \$srcfile for the compiler.
19106
fix_srcfile_path=$lt_fix_srcfile_path
19108
# Set to yes if exported symbols are required.
19109
always_export_symbols=$always_export_symbols_GCJ
19111
# The commands to list exported symbols.
19112
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19114
# The commands to extract the exported symbol list from a shared archive.
19115
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19117
# Symbols that should not be listed in the preloaded symbols.
19118
exclude_expsyms=$lt_exclude_expsyms_GCJ
19120
# Symbols that must always be exported.
19121
include_expsyms=$lt_include_expsyms_GCJ
19123
# ### END LIBTOOL TAG CONFIG: $tagname
19129
# If there is no Makefile yet, we rely on a make rule to execute
19130
# `config.status --recheck' to rerun these tests and create the
19131
# libtool script then.
19132
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19133
if test -f "$ltmain_in"; then
19134
test -f Makefile && make "$ltmain"
19140
ac_cpp='$CPP $CPPFLAGS'
19141
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19142
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19143
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19155
# Source file extension for RC test sources.
19158
# Object file extension for compiled RC test sources.
19162
# Code to be used in simple compile tests
19163
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19165
# Code to be used in simple link tests
19166
lt_simple_link_test_code="$lt_simple_compile_test_code"
19168
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19170
# If no C compiler was specified, use CC.
19173
# If no C compiler flags were specified, use CFLAGS.
19174
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19176
# Allow CC to be a program name with arguments.
19180
# save warnings/boilerplate of simple test code
19181
ac_outfile=conftest.$ac_objext
19182
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19183
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19184
_lt_compiler_boilerplate=`cat conftest.err`
19187
ac_outfile=conftest.$ac_objext
19188
echo "$lt_simple_link_test_code" >conftest.$ac_ext
19189
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19190
_lt_linker_boilerplate=`cat conftest.err`
19194
# Allow CC to be a program name with arguments.
19199
for cc_temp in $compiler""; do
19201
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19202
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19207
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19209
lt_cv_prog_compiler_c_o_RC=yes
19211
# The else clause should only fire when bootstrapping the
19212
# libtool distribution, otherwise you forgot to ship ltmain.sh
19213
# with your package, and you will get complaints that there are
19214
# no rules to generate ltmain.sh.
19215
if test -f "$ltmain"; then
19216
# See if we are running on zsh, and set the options which allow our commands through
19217
# without removal of \ escapes.
19218
if test -n "${ZSH_VERSION+set}" ; then
19219
setopt NO_GLOB_SUBST
19221
# Now quote all the things that may contain metacharacters while being
19222
# careful not to overquote the AC_SUBSTed values. We take copies of the
19223
# variables and quote the copies for generation of the libtool script.
19224
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19226
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19227
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19228
deplibs_check_method reload_flag reload_cmds need_locks \
19229
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19230
lt_cv_sys_global_symbol_to_c_name_address \
19231
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19232
old_postinstall_cmds old_postuninstall_cmds \
19236
lt_prog_compiler_wl_RC \
19237
lt_prog_compiler_pic_RC \
19238
lt_prog_compiler_static_RC \
19239
lt_prog_compiler_no_builtin_flag_RC \
19240
export_dynamic_flag_spec_RC \
19241
thread_safe_flag_spec_RC \
19242
whole_archive_flag_spec_RC \
19243
enable_shared_with_static_runtimes_RC \
19244
old_archive_cmds_RC \
19245
old_archive_from_new_cmds_RC \
19246
predep_objects_RC \
19247
postdep_objects_RC \
19250
compiler_lib_search_path_RC \
19251
compiler_lib_search_dirs_RC \
19253
archive_expsym_cmds_RC \
19254
postinstall_cmds_RC \
19255
postuninstall_cmds_RC \
19256
old_archive_from_expsyms_cmds_RC \
19257
allow_undefined_flag_RC \
19258
no_undefined_flag_RC \
19259
export_symbols_cmds_RC \
19260
hardcode_libdir_flag_spec_RC \
19261
hardcode_libdir_flag_spec_ld_RC \
19262
hardcode_libdir_separator_RC \
19263
hardcode_automatic_RC \
19265
module_expsym_cmds_RC \
19266
lt_cv_prog_compiler_c_o_RC \
19267
fix_srcfile_path_RC \
19268
exclude_expsyms_RC \
19269
include_expsyms_RC; do
19272
old_archive_cmds_RC | \
19273
old_archive_from_new_cmds_RC | \
19274
archive_cmds_RC | \
19275
archive_expsym_cmds_RC | \
19277
module_expsym_cmds_RC | \
19278
old_archive_from_expsyms_cmds_RC | \
19279
export_symbols_cmds_RC | \
19280
extract_expsyms_cmds | reload_cmds | finish_cmds | \
19281
postinstall_cmds | postuninstall_cmds | \
19282
old_postinstall_cmds | old_postuninstall_cmds | \
19283
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19284
# Double-quote double-evaled strings.
19285
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19288
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19294
*'\$0 --fallback-echo"')
19295
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19301
cat <<__EOF__ >> "$cfgfile"
19302
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19304
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19306
# Shell to use when invoking shell scripts.
19309
# Whether or not to build shared libraries.
19310
build_libtool_libs=$enable_shared
19312
# Whether or not to build static libraries.
19313
build_old_libs=$enable_static
19315
# Whether or not to add -lc for building shared libraries.
19316
build_libtool_need_lc=$archive_cmds_need_lc_RC
19318
# Whether or not to disallow shared libs when runtime libs are static
19319
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19321
# Whether or not to optimize for fast installation.
19322
fast_install=$enable_fast_install
19325
host_alias=$host_alias
19329
# The build system.
19330
build_alias=$build_alias
19334
# An echo program that does not interpret backslashes.
19339
AR_FLAGS=$lt_AR_FLAGS
19344
# LTCC compiler flags.
19345
LTCFLAGS=$lt_LTCFLAGS
19347
# A language-specific compiler.
19350
# Is the compiler the GNU C compiler?
19356
# The linker used to build libraries.
19359
# Whether we need hard or soft links.
19362
# A BSD-compatible nm program.
19365
# A symbol stripping program
19368
# Used to examine libraries when file_magic_cmd begins "file"
19369
MAGIC_CMD=$MAGIC_CMD
19371
# Used on cygwin: DLL creation program.
19374
# Used on cygwin: object dumper.
19377
# Used on cygwin: assembler.
19380
# The name of the directory that contains temporary libtool files.
19383
# How to create reloadable object files.
19384
reload_flag=$lt_reload_flag
19385
reload_cmds=$lt_reload_cmds
19387
# How to pass a linker flag through the compiler.
19388
wl=$lt_lt_prog_compiler_wl_RC
19390
# Object file suffix (normally "o").
19391
objext="$ac_objext"
19393
# Old archive suffix (normally "a").
19396
# Shared library suffix (normally ".so").
19397
shrext_cmds='$shrext_cmds'
19399
# Executable file suffix (normally "").
19402
# Additional compiler flags for building library objects.
19403
pic_flag=$lt_lt_prog_compiler_pic_RC
19406
# What is the maximum length of a command?
19407
max_cmd_len=$lt_cv_sys_max_cmd_len
19409
# Does compiler simultaneously support -c and -o options?
19410
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19412
# Must we lock files when doing compilation?
19413
need_locks=$lt_need_locks
19415
# Do we need the lib prefix for modules?
19416
need_lib_prefix=$need_lib_prefix
19418
# Do we need a version for libraries?
19419
need_version=$need_version
19421
# Whether dlopen is supported.
19422
dlopen_support=$enable_dlopen
19424
# Whether dlopen of programs is supported.
19425
dlopen_self=$enable_dlopen_self
19427
# Whether dlopen of statically linked programs is supported.
19428
dlopen_self_static=$enable_dlopen_self_static
19430
# Compiler flag to prevent dynamic linking.
19431
link_static_flag=$lt_lt_prog_compiler_static_RC
19433
# Compiler flag to turn off builtin functions.
19434
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19436
# Compiler flag to allow reflexive dlopens.
19437
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19439
# Compiler flag to generate shared objects directly from archives.
19440
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19442
# Compiler flag to generate thread-safe objects.
19443
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19445
# Library versioning type.
19446
version_type=$version_type
19448
# Format of library name prefix.
19449
libname_spec=$lt_libname_spec
19451
# List of archive names. First name is the real one, the rest are links.
19452
# The last name is the one that the linker finds with -lNAME.
19453
library_names_spec=$lt_library_names_spec
19455
# The coded name of the library, if different from the real name.
19456
soname_spec=$lt_soname_spec
19458
# Commands used to build and install an old-style archive.
19460
old_archive_cmds=$lt_old_archive_cmds_RC
19461
old_postinstall_cmds=$lt_old_postinstall_cmds
19462
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19464
# Create an old-style archive from a shared archive.
19465
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19467
# Create a temporary old-style archive to link instead of a shared archive.
19468
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19470
# Commands used to build and install a shared archive.
19471
archive_cmds=$lt_archive_cmds_RC
19472
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19473
postinstall_cmds=$lt_postinstall_cmds
19474
postuninstall_cmds=$lt_postuninstall_cmds
19476
# Commands used to build a loadable module (assumed same as above if empty)
19477
module_cmds=$lt_module_cmds_RC
19478
module_expsym_cmds=$lt_module_expsym_cmds_RC
19480
# Commands to strip libraries.
19481
old_striplib=$lt_old_striplib
19482
striplib=$lt_striplib
19484
# Dependencies to place before the objects being linked to create a
19486
predep_objects=$lt_predep_objects_RC
19488
# Dependencies to place after the objects being linked to create a
19490
postdep_objects=$lt_postdep_objects_RC
19492
# Dependencies to place before the objects being linked to create a
19494
predeps=$lt_predeps_RC
19496
# Dependencies to place after the objects being linked to create a
19498
postdeps=$lt_postdeps_RC
19500
# The directories searched by this compiler when creating a shared
19502
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19504
# The library search path used internally by the compiler when linking
19505
# a shared library.
19506
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19508
# Method to check whether dependent libraries are shared objects.
19509
deplibs_check_method=$lt_deplibs_check_method
19511
# Command to use when deplibs_check_method == file_magic.
19512
file_magic_cmd=$lt_file_magic_cmd
19514
# Flag that allows shared libraries with undefined symbols to be built.
19515
allow_undefined_flag=$lt_allow_undefined_flag_RC
19517
# Flag that forces no undefined symbols.
19518
no_undefined_flag=$lt_no_undefined_flag_RC
19520
# Commands used to finish a libtool library installation in a directory.
19521
finish_cmds=$lt_finish_cmds
19523
# Same as above, but a single script fragment to be evaled but not shown.
19524
finish_eval=$lt_finish_eval
19526
# Take the output of nm and produce a listing of raw symbols and C names.
19527
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19529
# Transform the output of nm in a proper C declaration
19530
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19532
# Transform the output of nm in a C name address pair
19533
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19535
# This is the shared library runtime path variable.
19536
runpath_var=$runpath_var
19538
# This is the shared library path variable.
19539
shlibpath_var=$shlibpath_var
19541
# Is shlibpath searched before the hard-coded library search path?
19542
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19544
# How to hardcode a shared library path into an executable.
19545
hardcode_action=$hardcode_action_RC
19547
# Whether we should hardcode library paths into libraries.
19548
hardcode_into_libs=$hardcode_into_libs
19550
# Flag to hardcode \$libdir into a binary during linking.
19551
# This must work even if \$libdir does not exist.
19552
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19554
# If ld is used when linking, flag to hardcode \$libdir into
19555
# a binary during linking. This must work even if \$libdir does
19557
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19559
# Whether we need a single -rpath flag with a separated argument.
19560
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19562
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19563
# resulting binary.
19564
hardcode_direct=$hardcode_direct_RC
19566
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19567
# resulting binary.
19568
hardcode_minus_L=$hardcode_minus_L_RC
19570
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19571
# the resulting binary.
19572
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19574
# Set to yes if building a shared library automatically hardcodes DIR into the library
19575
# and all subsequent libraries and executables linked against it.
19576
hardcode_automatic=$hardcode_automatic_RC
19578
# Variables whose values should be saved in libtool wrapper scripts and
19579
# restored at relink time.
19580
variables_saved_for_relink="$variables_saved_for_relink"
19582
# Whether libtool must link a program against all its dependency libraries.
19583
link_all_deplibs=$link_all_deplibs_RC
19585
# Compile-time system search path for libraries
19586
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19588
# Run-time system search path for libraries
19589
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19591
# Fix the shell variable \$srcfile for the compiler.
19592
fix_srcfile_path=$lt_fix_srcfile_path
19594
# Set to yes if exported symbols are required.
19595
always_export_symbols=$always_export_symbols_RC
19597
# The commands to list exported symbols.
19598
export_symbols_cmds=$lt_export_symbols_cmds_RC
19600
# The commands to extract the exported symbol list from a shared archive.
19601
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19603
# Symbols that should not be listed in the preloaded symbols.
19604
exclude_expsyms=$lt_exclude_expsyms_RC
19606
# Symbols that must always be exported.
19607
include_expsyms=$lt_include_expsyms_RC
19609
# ### END LIBTOOL TAG CONFIG: $tagname
19615
# If there is no Makefile yet, we rely on a make rule to execute
19616
# `config.status --recheck' to rerun these tests and create the
19617
# libtool script then.
19618
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19619
if test -f "$ltmain_in"; then
19620
test -f Makefile && make "$ltmain"
19626
ac_cpp='$CPP $CPPFLAGS'
19627
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19628
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19629
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19636
{ { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19637
$as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19638
{ (exit 1); exit 1; }; }
19642
# Append the new tag name to the list of available tags.
19643
if test -n "$tagname" ; then
19644
available_tags="$available_tags $tagname"
19650
# Now substitute the updated list of available tags.
19651
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19652
mv "${ofile}T" "$ofile"
19656
{ { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19657
$as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19658
{ (exit 1); exit 1; }; }
19664
# This can be used to rebuild libtool when needed
19665
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19667
# Always use our own libtool.
19668
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19670
# Prevent multiple expansion
19692
extrasub="$extrasub"'
19696
s/@subdir@/vacall_r/
19699
s/@subdir@/trampoline_r/
19707
subdirs="$subdirs vacall_r trampoline_r"
19709
cat >confcache <<\_ACEOF
19710
# This file is a shell script that caches the results of configure
19711
# tests run on this system so they can be shared between configure
19712
# scripts and configure runs, see configure's option --config-cache.
19713
# It is not useful on other systems. If it contains results you don't
19714
# want to keep, you may remove or edit it.
19716
# config.status only pays attention to the cache file if you give it
19717
# the --recheck option to rerun configure.
19719
# `ac_cv_env_foo' variables (set or unset) will be overridden when
19720
# loading this file, other *unset* `ac_cv_foo' will be assigned the
19721
# following values.
19725
# The following way of writing the cache mishandles newlines in values,
19726
# but we know of no workaround that is simple, portable, and efficient.
19727
# So, we kill variables containing newlines.
19728
# Ultrix sh set writes to stderr and can't be redirected directly,
19729
# and sets the high bit in the cache file unless we assign to the vars.
19731
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19732
eval ac_val=\$$ac_var
19736
*_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
19737
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19740
_ | IFS | as_nl) ;; #(
19741
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19742
*) $as_unset $ac_var ;;
19748
case $as_nl`(ac_space=' '; set) 2>&1` in #(
19749
*${as_nl}ac_space=\ *)
19750
# `set' does not quote correctly, so add quotes (double-quote
19751
# substitution turns \\\\ into \\, and sed turns \\ into \).
19754
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19757
# `set' quotes correctly as required by POSIX, so do not add quotes.
19758
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19767
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19769
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19771
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19772
if test -w "$cache_file"; then
19773
test "x$cache_file" != "x/dev/null" &&
19774
{ $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
19775
$as_echo "$as_me: updating cache $cache_file" >&6;}
19776
cat confcache >$cache_file
19778
{ $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
19779
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19784
test "x$prefix" = xNONE && prefix=$ac_default_prefix
19785
# Let make expand exec_prefix.
19786
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19788
DEFS=-DHAVE_CONFIG_H
19792
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19793
# 1. Remove the extension, and $U if already installed.
19794
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19795
ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19796
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19797
# will be set to the directory where LIBOBJS objects are built.
19798
ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19799
ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
19801
LIBOBJS=$ac_libobjs
19803
LTLIBOBJS=$ac_ltlibobjs
19807
: ${CONFIG_STATUS=./config.status}
19809
ac_clean_files_save=$ac_clean_files
19810
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19811
{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19812
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19813
cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19815
# Generated by $as_me.
19816
# Run this file to recreate the current configuration.
19817
# Compiler output produced by configure, useful for debugging
19818
# configure, is in config.log if it exists.
19821
ac_cs_recheck=false
19823
SHELL=\${CONFIG_SHELL-$SHELL}
19826
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19827
## --------------------- ##
19828
## M4sh Initialization. ##
19829
## --------------------- ##
19831
# Be more Bourne compatible
19832
DUALCASE=1; export DUALCASE # for MKS sh
19833
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19836
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19837
# is contrary to our usage. Disable this feature.
19838
alias -g '${1+"$@"}'='"$@"'
19839
setopt NO_GLOB_SUBST
19841
case `(set -o) 2>/dev/null` in
19842
*posix*) set -o posix ;;
19851
# Avoid depending upon Character Ranges.
19852
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19853
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19854
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19855
as_cr_digits='0123456789'
19856
as_cr_alnum=$as_cr_Letters$as_cr_digits
19861
# Printing a long string crashes Solaris 7 /usr/bin/printf.
19862
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19863
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19864
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19865
if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19866
as_echo='printf %s\n'
19867
as_echo_n='printf %s'
19869
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19870
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19871
as_echo_n='/usr/ucb/echo -n'
19873
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19874
as_echo_n_body='eval
19878
expr "X$arg" : "X\\(.*\\)$as_nl";
19879
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19881
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19883
export as_echo_n_body
19884
as_echo_n='sh -c $as_echo_n_body as_echo'
19886
export as_echo_body
19887
as_echo='sh -c $as_echo_body as_echo'
19890
# The user is always right.
19891
if test "${PATH_SEPARATOR+set}" != set; then
19893
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19894
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19899
# Support unset when possible.
19900
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19908
# We need space, tab and new line, in precisely that order. Quoting is
19909
# there to prevent editors from complaining about space-tab.
19910
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
19911
# splitting by setting IFS to empty value.)
19914
# Find who we are. Look in the path if we contain no directory separator.
19916
*[\\/]* ) as_myself=$0 ;;
19917
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19918
for as_dir in $PATH
19921
test -z "$as_dir" && as_dir=.
19922
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19928
# We did not find ourselves, most probably we were run as `sh COMMAND'
19929
# in which case we are not to be found in the path.
19930
if test "x$as_myself" = x; then
19933
if test ! -f "$as_myself"; then
19934
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19935
{ (exit 1); exit 1; }
19938
# Work around bugs in pre-3.0 UWIN ksh.
19939
for as_var in ENV MAIL MAILPATH
19940
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
19952
# Required to use basename.
19953
if expr a : '\(a\)' >/dev/null 2>&1 &&
19954
test "X`expr 00001 : '.*\(...\)'`" = X001; then
19960
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19961
as_basename=basename
19967
# Name of the executable.
19968
as_me=`$as_basename -- "$0" ||
19969
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19970
X"$0" : 'X\(//\)$' \| \
19971
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19973
sed '/^.*\/\([^/][^/]*\)\/*$/{
19992
as_lineno_1=$LINENO
19993
as_lineno_2=$LINENO
19994
test "x$as_lineno_1" != "x$as_lineno_2" &&
19995
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
19997
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19998
# uniformly replaced by the line number. The first 'sed' inserts a
19999
# line-number line after each line using $LINENO; the second 'sed'
20000
# does the real work. The second script uses 'N' to pair each
20001
# line-number line with the line containing $LINENO, and appends
20002
# trailing '-' during substitution so that $LINENO is not a special
20003
# case at line end.
20004
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20005
# scripts with optimization help from Paolo Bonzini. Blame Lee
20006
# E. McMahon (1931-1989) for sed's syntax. :-)
20018
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20021
' >$as_me.lineno &&
20022
chmod +x "$as_me.lineno" ||
20023
{ $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20024
{ (exit 1); exit 1; }; }
20026
# Don't try to exec as it changes $[0], causing all sort of problems
20027
# (the dirname of $[0] is not the place where we might find the
20028
# original and so on. Autoconf is especially sensitive to this).
20029
. "./$as_me.lineno"
20030
# Exit status is that of the last command.
20035
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20041
ECHO_C= ECHO_N= ECHO_T=
20042
case `echo -n x` in
20044
case `echo 'x\c'` in
20045
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
20051
if expr a : '\(a\)' >/dev/null 2>&1 &&
20052
test "X`expr 00001 : '.*\(...\)'`" = X001; then
20058
rm -f conf$$ conf$$.exe conf$$.file
20059
if test -d conf$$.dir; then
20060
rm -f conf$$.dir/conf$$.file
20063
mkdir conf$$.dir 2>/dev/null
20065
if (echo >conf$$.file) 2>/dev/null; then
20066
if ln -s conf$$.file conf$$ 2>/dev/null; then
20068
# ... but there are two gotchas:
20069
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20070
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20071
# In both cases, we have to default to `cp -p'.
20072
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20074
elif ln conf$$.file conf$$ 2>/dev/null; then
20082
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20083
rmdir conf$$.dir 2>/dev/null
20085
if mkdir -p . 2>/dev/null; then
20088
test -d ./-p && rmdir ./-p
20092
if test -x / >/dev/null 2>&1; then
20093
as_test_x='test -x'
20095
if ls -dL / >/dev/null 2>&1; then
20102
if test -d "$1"; then
20108
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
20109
???[sx]*):;;*)false;;esac;fi
20113
as_executable_p=$as_test_x
20115
# Sed expression to map a string onto a valid CPP name.
20116
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20118
# Sed expression to map a string onto a valid variable name.
20119
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20124
# Save the log message, to keep $[0] and so on meaningful, and to
20125
# report actual input values of CONFIG_FILES etc. instead of their
20126
# values after options handling.
20128
This file was extended by libffcall/callback $as_me 0x010B, which was
20129
generated by GNU Autoconf 2.63. Invocation command line was
20131
CONFIG_FILES = $CONFIG_FILES
20132
CONFIG_HEADERS = $CONFIG_HEADERS
20133
CONFIG_LINKS = $CONFIG_LINKS
20134
CONFIG_COMMANDS = $CONFIG_COMMANDS
20137
on `(hostname || uname -n) 2>/dev/null | sed 1q`
20142
case $ac_config_files in *"
20143
"*) set x $ac_config_files; shift; ac_config_files=$*;;
20146
case $ac_config_headers in *"
20147
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20151
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20152
# Files that config.status was made for.
20153
config_files="$ac_config_files"
20154
config_headers="$ac_config_headers"
20158
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20160
\`$as_me' instantiates files from templates according to the
20161
current configuration.
20163
Usage: $0 [OPTION]... [FILE]...
20165
-h, --help print this help, then exit
20166
-V, --version print version number and configuration settings, then exit
20167
-q, --quiet, --silent
20168
do not print progress messages
20169
-d, --debug don't remove temporary files
20170
--recheck update $as_me by reconfiguring in the same conditions
20171
--file=FILE[:TEMPLATE]
20172
instantiate the configuration file FILE
20173
--header=FILE[:TEMPLATE]
20174
instantiate the configuration header FILE
20176
Configuration files:
20179
Configuration headers:
20182
Report bugs to <bug-autoconf@gnu.org>."
20185
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20187
libffcall/callback config.status 0x010B
20188
configured by $0, generated by GNU Autoconf 2.63,
20189
with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20191
Copyright (C) 2008 Free Software Foundation, Inc.
20192
This config.status script is free software; the Free Software Foundation
20193
gives unlimited permission to copy, distribute and modify it."
20198
test -n "\$AWK" || AWK=awk
20201
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20202
# The default lists apply if the user does not specify any file.
20208
ac_option=`expr "X$1" : 'X\([^=]*\)='`
20209
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20220
# Handling of the options.
20221
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20223
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20224
$as_echo "$ac_cs_version"; exit ;;
20225
--debug | --debu | --deb | --de | --d | -d )
20227
--file | --fil | --fi | --f )
20230
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20232
CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
20233
ac_need_defaults=false;;
20234
--header | --heade | --head | --hea )
20237
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20239
CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
20240
ac_need_defaults=false;;
20242
# Conflict between --help and --header
20243
{ $as_echo "$as_me: error: ambiguous option: $1
20244
Try \`$0 --help' for more information." >&2
20245
{ (exit 1); exit 1; }; };;
20246
--help | --hel | -h )
20247
$as_echo "$ac_cs_usage"; exit ;;
20248
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
20249
| -silent | --silent | --silen | --sile | --sil | --si | --s)
20252
# This is an error.
20253
-*) { $as_echo "$as_me: error: unrecognized option: $1
20254
Try \`$0 --help' for more information." >&2
20255
{ (exit 1); exit 1; }; } ;;
20257
*) ac_config_targets="$ac_config_targets $1"
20258
ac_need_defaults=false ;;
20264
ac_configure_extra_args=
20266
if $ac_cs_silent; then
20268
ac_configure_extra_args="$ac_configure_extra_args --silent"
20272
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20273
if \$ac_cs_recheck; then
20274
set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20276
\$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20277
CONFIG_SHELL='$SHELL'
20278
export CONFIG_SHELL
20283
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20287
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20288
## Running $as_me. ##
20294
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20298
LIBFFCALL_VERSION=$PACKAGE_VERSION
20302
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20304
# Handling of arguments.
20305
for ac_config_target in $ac_config_targets
20307
case $ac_config_target in
20308
"config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20309
"callback.h") CONFIG_HEADERS="$CONFIG_HEADERS callback.h" ;;
20310
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20312
*) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20313
$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20314
{ (exit 1); exit 1; }; };;
20319
# If the user did not use the arguments to specify the items to instantiate,
20320
# then the envvar interface is used. Set only those that are not.
20321
# We use the long form for the default assignment because of an extremely
20322
# bizarre bug on SunOS 4.1.3.
20323
if $ac_need_defaults; then
20324
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20325
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20328
# Have a temporary directory for convenience. Make it in the build tree
20329
# simply because there is no reason against having it here, and in addition,
20330
# creating and moving files from /tmp can sometimes cause problems.
20331
# Hook for its removal unless debugging.
20332
# Note that there is a small window in which the directory will not be cleaned:
20333
# after its creation but before its name has been assigned to `$tmp'.
20337
trap 'exit_status=$?
20338
{ test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20340
trap '{ (exit 1); exit 1; }' 1 2 13 15
20342
# Create a (secure) tmp directory for tmp files.
20345
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20346
test -n "$tmp" && test -d "$tmp"
20349
tmp=./conf$$-$RANDOM
20350
(umask 077 && mkdir "$tmp")
20353
$as_echo "$as_me: cannot create a temporary directory in ." >&2
20354
{ (exit 1); exit 1; }
20357
# Set up the scripts for CONFIG_FILES section.
20358
# No need to generate them if there are no CONFIG_FILES.
20359
# This happens for instance with `./config.status config.h'.
20360
if test -n "$CONFIG_FILES"; then
20364
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20365
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20368
ac_cs_awk_cr=$ac_cr
20371
echo 'BEGIN {' >"$tmp/subs1.awk" &&
20376
echo "cat >conf$$subs.awk <<_ACEOF" &&
20377
echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20379
} >conf$$subs.sh ||
20380
{ { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20381
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20382
{ (exit 1); exit 1; }; }
20383
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
20385
for ac_last_try in false false false false false :; do
20386
. ./conf$$subs.sh ||
20387
{ { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20388
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20389
{ (exit 1); exit 1; }; }
20391
ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20392
if test $ac_delim_n = $ac_delim_num; then
20394
elif $ac_last_try; then
20395
{ { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20396
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20397
{ (exit 1); exit 1; }; }
20399
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20402
rm -f conf$$subs.sh
20404
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20405
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
20409
s/^/S["/; s/!.*/"]=/
20419
s/\(.\{148\}\).*/\1/
20421
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20426
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20433
s/\(.\{148\}\).*/\1/
20435
s/["\\]/\\&/g; s/^/"/; s/$/"/
20439
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20444
' <conf$$subs.awk | sed '
20449
' >>$CONFIG_STATUS || ac_write_fail=1
20450
rm -f conf$$subs.awk
20451
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20453
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
20454
for (key in S) S_is_set[key] = 1
20460
nfields = split(line, field, "@")
20462
len = length(field[1])
20463
for (i = 2; i < nfields; i++) {
20465
keylen = length(key)
20466
if (S_is_set[key]) {
20468
line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20469
len += length(value) + length(field[++i])
20480
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20481
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20482
sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20485
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
20486
|| { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
20487
$as_echo "$as_me: error: could not setup config files machinery" >&2;}
20488
{ (exit 1); exit 1; }; }
20491
# VPATH may cause trouble with some makes, so we remove $(srcdir),
20492
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20493
# trailing colons and then remove the whole line if VPATH becomes empty
20494
# (actually we leave an empty line to preserve line numbers).
20495
if test "x$srcdir" = x.; then
20496
ac_vpsub='/^[ ]*VPATH[ ]*=/{
20497
s/:*\$(srcdir):*/:/
20498
s/:*\${srcdir}:*/:/
20500
s/^\([^=]*=[ ]*\):*/\1/
20506
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20507
fi # test -n "$CONFIG_FILES"
20509
# Set up the scripts for CONFIG_HEADERS section.
20510
# No need to generate them if there are no CONFIG_HEADERS.
20511
# This happens for instance with `./config.status Makefile'.
20512
if test -n "$CONFIG_HEADERS"; then
20513
cat >"$tmp/defines.awk" <<\_ACAWK ||
20517
# Transform confdefs.h into an awk script `defines.awk', embedded as
20518
# here-document in config.status, that substitutes the proper values into
20519
# config.h.in to produce config.h.
20521
# Create a delimiter string that does not exist in confdefs.h, to ease
20522
# handling of long lines.
20524
for ac_last_try in false false :; do
20525
ac_t=`sed -n "/$ac_delim/p" confdefs.h`
20526
if test -z "$ac_t"; then
20528
elif $ac_last_try; then
20529
{ { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
20530
$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
20531
{ (exit 1); exit 1; }; }
20533
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20537
# For the awk script, D is an array of macro values keyed by name,
20538
# likewise P contains macro parameters if any. Preserve backslash
20539
# newline sequences.
20541
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20543
s/.\{148\}/&'"$ac_delim"'/g
20546
s/^[ ]*#[ ]*define[ ][ ]*/ /
20553
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20555
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20559
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20560
D["\1"]=" \3\\\\\\n"\\/p
20562
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20567
s/.\{148\}/&'"$ac_delim"'/g
20572
s/["\\]/\\&/g; s/^/"/; s/$/"/p
20575
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20577
' <confdefs.h | sed '
20578
s/'"$ac_delim"'/"\\\
20579
"/g' >>$CONFIG_STATUS || ac_write_fail=1
20581
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20582
for (key in D) D_is_set[key] = 1
20585
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20587
split(line, arg, " ")
20588
if (arg[1] == "#") {
20592
defundef = substr(arg[1], 2)
20595
split(mac1, mac2, "(") #)
20597
prefix = substr(line, 1, index(line, defundef) - 1)
20598
if (D_is_set[macro]) {
20599
# Preserve the white space surrounding the "#".
20600
print prefix "define", macro P[macro] D[macro]
20603
# Replace #undef with comments. This is necessary, for example,
20604
# in the case of _POSIX_SOURCE, which is predefined and required
20605
# on some systems where configure will not decide to define it.
20606
if (defundef == "undef") {
20607
print "/*", prefix defundef, macro, "*/"
20615
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20616
{ { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
20617
$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
20618
{ (exit 1); exit 1; }; }
20619
fi # test -n "$CONFIG_HEADERS"
20622
eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
20627
:[FHLC]) ac_mode=$ac_tag; continue;;
20629
case $ac_mode$ac_tag in
20631
:L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
20632
$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
20633
{ (exit 1); exit 1; }; };;
20634
:[FH]-) ac_tag=-:-;;
20635
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20652
-) ac_f="$tmp/stdin";;
20653
*) # Look for the file first in the build tree, then in the source tree
20654
# (if the path is not absolute). The absolute path cannot be DOS-style,
20655
# because $ac_f cannot contain `:'.
20659
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20661
{ { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
20662
$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
20663
{ (exit 1); exit 1; }; };;
20665
case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20666
ac_file_inputs="$ac_file_inputs '$ac_f'"
20669
# Let's still pretend it is `configure' which instantiates (i.e., don't
20670
# use $as_me), people would be surprised to read:
20671
# /* config.h. Generated by config.status. */
20672
configure_input='Generated from '`
20673
$as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20675
if test x"$ac_file" != x-; then
20676
configure_input="$ac_file. $configure_input"
20677
{ $as_echo "$as_me:$LINENO: creating $ac_file" >&5
20678
$as_echo "$as_me: creating $ac_file" >&6;}
20680
# Neutralize special characters interpreted by sed in replacement strings.
20681
case $configure_input in #(
20682
*\&* | *\|* | *\\* )
20683
ac_sed_conf_input=`$as_echo "$configure_input" |
20684
sed 's/[\\\\&|]/\\\\&/g'`;; #(
20685
*) ac_sed_conf_input=$configure_input;;
20689
*:-:* | *:-) cat >"$tmp/stdin" \
20690
|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
20691
$as_echo "$as_me: error: could not create $ac_file" >&2;}
20692
{ (exit 1); exit 1; }; } ;;
20697
ac_dir=`$as_dirname -- "$ac_file" ||
20698
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20699
X"$ac_file" : 'X\(//\)[^/]' \| \
20700
X"$ac_file" : 'X\(//\)$' \| \
20701
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20702
$as_echo X"$ac_file" |
20703
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20707
/^X\(\/\/\)[^/].*/{
20722
-*) as_dir=./$as_dir;;
20724
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20728
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20729
*) as_qdir=$as_dir;;
20731
as_dirs="'$as_qdir' $as_dirs"
20732
as_dir=`$as_dirname -- "$as_dir" ||
20733
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20734
X"$as_dir" : 'X\(//\)[^/]' \| \
20735
X"$as_dir" : 'X\(//\)$' \| \
20736
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20737
$as_echo X"$as_dir" |
20738
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20742
/^X\(\/\/\)[^/].*/{
20755
test -d "$as_dir" && break
20757
test -z "$as_dirs" || eval "mkdir $as_dirs"
20758
} || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20759
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
20760
{ (exit 1); exit 1; }; }; }
20764
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20766
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20767
# A ".." for each directory in $ac_dir_suffix.
20768
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20769
case $ac_top_builddir_sub in
20770
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20771
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20774
ac_abs_top_builddir=$ac_pwd
20775
ac_abs_builddir=$ac_pwd$ac_dir_suffix
20776
# for backward compatibility:
20777
ac_top_builddir=$ac_top_build_prefix
20780
.) # We are building in place.
20782
ac_top_srcdir=$ac_top_builddir_sub
20783
ac_abs_top_srcdir=$ac_pwd ;;
20784
[\\/]* | ?:[\\/]* ) # Absolute name.
20785
ac_srcdir=$srcdir$ac_dir_suffix;
20786
ac_top_srcdir=$srcdir
20787
ac_abs_top_srcdir=$srcdir ;;
20788
*) # Relative name.
20789
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20790
ac_top_srcdir=$ac_top_build_prefix$srcdir
20791
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20793
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20803
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20804
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20808
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20809
# If the template does not know about datarootdir, expand it.
20810
# FIXME: This hack should be removed a few years after 2.60.
20811
ac_datarootdir_hack=; ac_datarootdir_seen=
20824
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20825
*datarootdir*) ac_datarootdir_seen=yes;;
20826
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20827
{ $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20828
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20830
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20831
ac_datarootdir_hack='
20832
s&@datadir@&$datadir&g
20833
s&@docdir@&$docdir&g
20834
s&@infodir@&$infodir&g
20835
s&@localedir@&$localedir&g
20836
s&@mandir@&$mandir&g
20837
s&\\\${datarootdir}&$datarootdir&g' ;;
20841
# Neutralize VPATH when `$srcdir' = `.'.
20842
# Shell code in configure.ac might set extrasub.
20843
# FIXME: do we really want to maintain this feature?
20844
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20845
ac_sed_extra="$ac_vpsub
20848
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20850
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20851
s|@configure_input@|$ac_sed_conf_input|;t t
20852
s&@top_builddir@&$ac_top_builddir_sub&;t t
20853
s&@top_build_prefix@&$ac_top_build_prefix&;t t
20854
s&@srcdir@&$ac_srcdir&;t t
20855
s&@abs_srcdir@&$ac_abs_srcdir&;t t
20856
s&@top_srcdir@&$ac_top_srcdir&;t t
20857
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20858
s&@builddir@&$ac_builddir&;t t
20859
s&@abs_builddir@&$ac_abs_builddir&;t t
20860
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20861
s&@INSTALL@&$ac_INSTALL&;t t
20862
$ac_datarootdir_hack
20864
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
20865
|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
20866
$as_echo "$as_me: error: could not create $ac_file" >&2;}
20867
{ (exit 1); exit 1; }; }
20869
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20870
{ ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
20871
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
20872
{ $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20873
which seems to be undefined. Please make sure it is defined." >&5
20874
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20875
which seems to be undefined. Please make sure it is defined." >&2;}
20879
-) cat "$tmp/out" && rm -f "$tmp/out";;
20880
*) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
20882
|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
20883
$as_echo "$as_me: error: could not create $ac_file" >&2;}
20884
{ (exit 1); exit 1; }; }
20890
if test x"$ac_file" != x-; then
20892
$as_echo "/* $configure_input */" \
20893
&& eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
20894
} >"$tmp/config.h" \
20895
|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
20896
$as_echo "$as_me: error: could not create $ac_file" >&2;}
20897
{ (exit 1); exit 1; }; }
20898
if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
20899
{ $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20900
$as_echo "$as_me: $ac_file is unchanged" >&6;}
20903
mv "$tmp/config.h" "$ac_file" \
20904
|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
20905
$as_echo "$as_me: error: could not create $ac_file" >&2;}
20906
{ (exit 1); exit 1; }; }
20909
$as_echo "/* $configure_input */" \
20910
&& eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
20911
|| { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
20912
$as_echo "$as_me: error: could not create -" >&2;}
20913
{ (exit 1); exit 1; }; }
20921
case $ac_file$ac_mode in
20922
"callback.h":H) sed "s/@LIBFFCALL_VERSION@/${LIBFFCALL_VERSION}/" callback.h > tmp
20923
mv -f tmp callback.h ;;
20929
{ (exit 0); exit 0; }
20931
chmod +x $CONFIG_STATUS
20932
ac_clean_files=$ac_clean_files_save
20934
test $ac_write_fail = 0 ||
20935
{ { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
20936
$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
20937
{ (exit 1); exit 1; }; }
20940
# configure is writing to config.log, and then calls config.status.
20941
# config.status does its own redirection, appending to config.log.
20942
# Unfortunately, on DOS this fails, as config.log is still kept open
20943
# by configure, so config.status won't be able to write to it; its
20944
# output is simply discarded. So we exec the FD to /dev/null,
20945
# effectively closing config.log, so it can be properly (re)opened and
20946
# appended to by config.status. When coming back to configure, we
20947
# need to make the FD available again.
20948
if test "$no_create" != yes; then
20950
ac_config_status_args=
20951
test "$silent" = yes &&
20952
ac_config_status_args="$ac_config_status_args --quiet"
20954
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20956
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
20957
# would make configure fail if this is the last instruction.
20958
$ac_cs_success || { (exit 1); exit 1; }
20962
# CONFIG_SUBDIRS section.
20964
if test "$no_recursion" != yes; then
20966
# Remove --cache-file, --srcdir, and --disable-option-checking arguments
20967
# so they do not pile up.
20968
ac_sub_configure_args=
20970
eval "set x $ac_configure_args"
20974
if test -n "$ac_prev"; then
20979
-cache-file | --cache-file | --cache-fil | --cache-fi \
20980
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
20981
ac_prev=cache_file ;;
20982
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
20983
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
20986
--config-cache | -C)
20988
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
20990
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
20992
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
20994
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
20996
--disable-option-checking)
21000
*\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21002
ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
21006
# Always prepend --prefix to ensure using the same prefix
21007
# in subdir configurations.
21008
ac_arg="--prefix=$prefix"
21010
*\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21012
ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
21015
if test "$silent" = yes; then
21016
ac_sub_configure_args="--silent $ac_sub_configure_args"
21019
# Always prepend --disable-option-checking to silence warnings, since
21020
# different subdirs can have different --enable and --with options.
21021
ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
21024
for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
21026
# Do not complain, so a configure script can configure whichever
21027
# parts of a large source tree are present.
21028
test -d "$srcdir/$ac_dir" || continue
21030
ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
21031
$as_echo "$as_me:$LINENO: $ac_msg" >&5
21032
$as_echo "$ac_msg" >&6
21035
-*) as_dir=./$as_dir;;
21037
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21041
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21042
*) as_qdir=$as_dir;;
21044
as_dirs="'$as_qdir' $as_dirs"
21045
as_dir=`$as_dirname -- "$as_dir" ||
21046
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21047
X"$as_dir" : 'X\(//\)[^/]' \| \
21048
X"$as_dir" : 'X\(//\)$' \| \
21049
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21050
$as_echo X"$as_dir" |
21051
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21055
/^X\(\/\/\)[^/].*/{
21068
test -d "$as_dir" && break
21070
test -z "$as_dirs" || eval "mkdir $as_dirs"
21071
} || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21072
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
21073
{ (exit 1); exit 1; }; }; }
21077
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21079
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21080
# A ".." for each directory in $ac_dir_suffix.
21081
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21082
case $ac_top_builddir_sub in
21083
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21084
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21087
ac_abs_top_builddir=$ac_pwd
21088
ac_abs_builddir=$ac_pwd$ac_dir_suffix
21089
# for backward compatibility:
21090
ac_top_builddir=$ac_top_build_prefix
21093
.) # We are building in place.
21095
ac_top_srcdir=$ac_top_builddir_sub
21096
ac_abs_top_srcdir=$ac_pwd ;;
21097
[\\/]* | ?:[\\/]* ) # Absolute name.
21098
ac_srcdir=$srcdir$ac_dir_suffix;
21099
ac_top_srcdir=$srcdir
21100
ac_abs_top_srcdir=$srcdir ;;
21101
*) # Relative name.
21102
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21103
ac_top_srcdir=$ac_top_build_prefix$srcdir
21104
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21106
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21111
# Check for guested configure; otherwise get Cygnus style configure.
21112
if test -f "$ac_srcdir/configure.gnu"; then
21113
ac_sub_configure=$ac_srcdir/configure.gnu
21114
elif test -f "$ac_srcdir/configure"; then
21115
ac_sub_configure=$ac_srcdir/configure
21116
elif test -f "$ac_srcdir/configure.in"; then
21117
# This should be Cygnus configure.
21118
ac_sub_configure=$ac_aux_dir/configure
21120
{ $as_echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
21121
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
21125
# The recursion is here.
21126
if test -n "$ac_sub_configure"; then
21127
# Make the cache file name correct relative to the subdirectory.
21128
case $cache_file in
21129
[\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
21130
*) # Relative name.
21131
ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
21134
{ $as_echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
21135
$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
21136
# The eval makes quoting arguments work.
21137
eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
21138
--cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
21139
{ { $as_echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
21140
$as_echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
21141
{ (exit 1); exit 1; }; }
21147
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21148
{ $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21149
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}