2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.61 for ThinkFinger 0.3.
5
# Report bugs to <http://thinkfinger.sourceforge.net/>.
7
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8
# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9
# This configure script is free software; the Free Software Foundation
10
# gives unlimited permission to copy, distribute and modify it.
11
## --------------------- ##
12
## M4sh Initialization. ##
13
## --------------------- ##
15
# Be more Bourne compatible
16
DUALCASE=1; export DUALCASE # for MKS sh
17
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21
# is contrary to our usage. Disable this feature.
22
alias -g '${1+"$@"}'='"$@"'
25
case `(set -o) 2>/dev/null` in
26
*posix*) set -o posix ;;
35
# Avoid depending upon Character Ranges.
36
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39
as_cr_digits='0123456789'
40
as_cr_alnum=$as_cr_Letters$as_cr_digits
42
# The user is always right.
43
if test "${PATH_SEPARATOR+set}" != set; then
44
echo "#! /bin/sh" >conf$$.sh
45
echo "exit 0" >>conf$$.sh
47
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
55
# Support unset when possible.
56
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
64
# We need space, tab and new line, in precisely that order. Quoting is
65
# there to prevent editors from complaining about space-tab.
66
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
67
# splitting by setting IFS to empty value.)
72
# Find who we are. Look in the path if we contain no directory separator.
74
*[\\/]* ) as_myself=$0 ;;
75
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
79
test -z "$as_dir" && as_dir=.
80
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
86
# We did not find ourselves, most probably we were run as `sh COMMAND'
87
# in which case we are not to be found in the path.
88
if test "x$as_myself" = x; then
91
if test ! -f "$as_myself"; then
92
echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
96
# Work around bugs in pre-3.0 UWIN ksh.
97
for as_var in ENV MAIL MAILPATH
98
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
106
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
110
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111
eval $as_var=C; export $as_var
113
($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
117
# Required to use basename.
118
if expr a : '\(a\)' >/dev/null 2>&1 &&
119
test "X`expr 00001 : '.*\(...\)'`" = X001; then
125
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
132
# Name of the executable.
133
as_me=`$as_basename -- "$0" ||
134
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135
X"$0" : 'X\(//\)$' \| \
136
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138
sed '/^.*\/\([^/][^/]*\)\/*$/{
156
if test "x$CONFIG_SHELL" = x; then
157
if (eval ":") 2>/dev/null; then
163
if test $as_have_required = yes && (eval ":
173
as_func_ret_success () {
176
as_func_ret_failure () {
181
if as_func_success; then
185
echo as_func_success failed.
188
if as_func_failure; then
190
echo as_func_failure succeeded.
193
if as_func_ret_success; then
197
echo as_func_ret_success failed.
200
if as_func_ret_failure; then
202
echo as_func_ret_failure succeeded.
205
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
209
echo positional parameters were not saved.
212
test \$exitcode = 0) || { (exit 1); exit 1; }
217
test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218
test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219
") 2> /dev/null; then
223
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
227
test -z "$as_dir" && as_dir=.
230
for as_base in sh bash ksh sh5; do
231
as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
238
for as_shell in $as_candidate_shells $SHELL; do
239
# Try only shells that exist, to save several forks.
240
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241
{ ("$as_shell") 2> /dev/null <<\_ASEOF
242
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
245
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246
# is contrary to our usage. Disable this feature.
247
alias -g '${1+"$@"}'='"$@"'
250
case `(set -o) 2>/dev/null` in
251
*posix*) set -o posix ;;
260
CONFIG_SHELL=$as_shell
262
if { "$as_shell" 2> /dev/null <<\_ASEOF
263
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
266
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267
# is contrary to our usage. Disable this feature.
268
alias -g '${1+"$@"}'='"$@"'
271
case `(set -o) 2>/dev/null` in
272
*posix*) set -o posix ;;
288
as_func_ret_success () {
291
as_func_ret_failure () {
296
if as_func_success; then
300
echo as_func_success failed.
303
if as_func_failure; then
305
echo as_func_failure succeeded.
308
if as_func_ret_success; then
312
echo as_func_ret_success failed.
315
if as_func_ret_failure; then
317
echo as_func_ret_failure succeeded.
320
if ( set x; as_func_ret_success y && test x = "$1" ); then
324
echo positional parameters were not saved.
327
test $exitcode = 0) || { (exit 1); exit 1; }
332
test "x$as_lineno_1" != "x$as_lineno_2" &&
333
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
344
if test "x$CONFIG_SHELL" != x; then
345
for as_var in BASH_ENV ENV
346
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
349
exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
353
if test $as_have_required = no; then
354
echo This script requires a shell more modern than all the
355
echo shells that I found on your system. Please install a
356
echo modern shell, or manually run the script under such a
357
echo shell if you do have one.
358
{ (exit 1); exit 1; }
368
(eval "as_func_return () {
377
as_func_ret_success () {
380
as_func_ret_failure () {
385
if as_func_success; then
389
echo as_func_success failed.
392
if as_func_failure; then
394
echo as_func_failure succeeded.
397
if as_func_ret_success; then
401
echo as_func_ret_success failed.
404
if as_func_ret_failure; then
406
echo as_func_ret_failure succeeded.
409
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
413
echo positional parameters were not saved.
416
test \$exitcode = 0") || {
417
echo No shell found that supports shell functions.
418
echo Please tell autoconf@gnu.org about your system,
419
echo including any error possibly output before this
427
test "x$as_lineno_1" != "x$as_lineno_2" &&
428
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431
# uniformly replaced by the line number. The first 'sed' inserts a
432
# line-number line after each line using $LINENO; the second 'sed'
433
# does the real work. The second script uses 'N' to pair each
434
# line-number line with the line containing $LINENO, and appends
435
# trailing '-' during substitution so that $LINENO is not a special
437
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438
# scripts with optimization help from Paolo Bonzini. Blame Lee
439
# E. McMahon (1931-1989) for sed's syntax. :-)
451
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
455
chmod +x "$as_me.lineno" ||
456
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457
{ (exit 1); exit 1; }; }
459
# Don't try to exec as it changes $[0], causing all sort of problems
460
# (the dirname of $[0] is not the place where we might find the
461
# original and so on. Autoconf is especially sensitive to this).
463
# Exit status is that of the last command.
468
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
474
ECHO_C= ECHO_N= ECHO_T=
478
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
485
if expr a : '\(a\)' >/dev/null 2>&1 &&
486
test "X`expr 00001 : '.*\(...\)'`" = X001; then
492
rm -f conf$$ conf$$.exe conf$$.file
493
if test -d conf$$.dir; then
494
rm -f conf$$.dir/conf$$.file
500
if ln -s conf$$.file conf$$ 2>/dev/null; then
502
# ... but there are two gotchas:
503
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505
# In both cases, we have to default to `cp -p'.
506
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508
elif ln conf$$.file conf$$ 2>/dev/null; then
513
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514
rmdir conf$$.dir 2>/dev/null
516
if mkdir -p . 2>/dev/null; then
519
test -d ./-p && rmdir ./-p
523
if test -x / >/dev/null 2>&1; then
526
if ls -dL / >/dev/null 2>&1; then
533
if test -d "$1"; then
539
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540
???[sx]*):;;*)false;;esac;fi
544
as_executable_p=$as_test_x
546
# Sed expression to map a string onto a valid CPP name.
547
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549
# Sed expression to map a string onto a valid variable name.
550
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
# Check that we are running under the correct shell.
556
SHELL=${CONFIG_SHELL-/bin/sh}
560
# Remove one level of quotation (which was required for Make).
561
ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
566
if test "X$1" = X--no-reexec; then
567
# Discard the --no-reexec flag, and continue.
569
elif test "X$1" = X--fallback-echo; then
570
# Avoid inline document here, it may be left over
572
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573
# Yippee, $echo works!
576
# Restart under the correct shell.
577
exec $SHELL "$0" --no-reexec ${1+"$@"}
580
if test "X$1" = X--fallback-echo; then
581
# used as fallback echo
589
# The HP-UX ksh and POSIX shell print the target directory to stdout
591
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
593
if test -z "$ECHO"; then
594
if test "X${echo_test_string+set}" != Xset; then
595
# find a string as large as possible, as long as the shell can cope with it
596
for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598
if (echo_test_string=`eval $cmd`) 2>/dev/null &&
599
echo_test_string=`eval $cmd` &&
600
(test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
607
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609
test "X$echo_testing_string" = "X$echo_test_string"; then
612
# The Solaris, AIX, and Digital Unix default echo programs unquote
613
# backslashes. This makes it impossible to quote backslashes using
614
# echo "$something" | sed 's/\\/\\\\/g'
616
# So, first we look for a working echo in the user's PATH.
618
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619
for dir in $PATH /usr/ucb; do
621
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624
test "X$echo_testing_string" = "X$echo_test_string"; then
631
if test "X$echo" = Xecho; then
632
# We didn't find a better echo, so look for alternatives.
633
if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634
echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635
test "X$echo_testing_string" = "X$echo_test_string"; then
636
# This shell has a builtin print -r that does the trick.
638
elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639
test "X$CONFIG_SHELL" != X/bin/ksh; then
640
# If we have ksh, try running configure again with it.
641
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642
export ORIGINAL_CONFIG_SHELL
643
CONFIG_SHELL=/bin/ksh
645
exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
649
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651
test "X$echo_testing_string" = "X$echo_test_string"; then
654
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655
test "X$echo_testing_string" = 'X\t' &&
656
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657
test "X$echo_testing_string" = "X$echo_test_string"; then
658
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
660
SHELL="$CONFIG_SHELL"
662
echo="$CONFIG_SHELL $0 --fallback-echo"
663
elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664
test "X$echo_testing_string" = 'X\t' &&
665
echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666
test "X$echo_testing_string" = "X$echo_test_string"; then
667
echo="$CONFIG_SHELL $0 --fallback-echo"
669
# maybe with a smaller string...
672
for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673
if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
680
if test "$prev" != 'sed 50q "$0"'; then
681
echo_test_string=`eval $prev`
682
export echo_test_string
683
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
685
# Oops. We lost completely, so just stick with echo.
694
# Copy echo and quote the copy suitably for passing to libtool from
695
# the Makefile, instead of quoting the original, which is used later.
697
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698
ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
704
tagnames=${tagnames+${tagnames},}CXX
706
tagnames=${tagnames+${tagnames},}F77
708
exec 7<&0 </dev/null 6>&1
711
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712
# so uname gets run too.
713
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
718
ac_default_prefix=/usr/local
720
ac_config_libobj_dir=.
726
SHELL=${CONFIG_SHELL-/bin/sh}
728
# Identity of this package.
729
PACKAGE_NAME='ThinkFinger'
730
PACKAGE_TARNAME='thinkfinger'
731
PACKAGE_VERSION='0.3'
732
PACKAGE_STRING='ThinkFinger 0.3'
733
PACKAGE_BUGREPORT='http://thinkfinger.sourceforge.net/'
735
ac_unique_file="libthinkfinger/libthinkfinger.c"
736
# Factoring default headers for most tests.
737
ac_includes_default="\
739
#ifdef HAVE_SYS_TYPES_H
740
# include <sys/types.h>
742
#ifdef HAVE_SYS_STAT_H
743
# include <sys/stat.h>
749
# ifdef HAVE_STDLIB_H
754
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
759
#ifdef HAVE_STRINGS_H
760
# include <strings.h>
762
#ifdef HAVE_INTTYPES_H
763
# include <inttypes.h>
781
program_transform_name
823
INSTALL_STRIP_PROGRAM
893
ac_precious_vars='build_alias
913
# Initialize some variables set by options.
915
ac_init_version=false
916
# The variables have the same names as the options, with
917
# dashes changed to underlines.
925
program_transform_name=s,x,x,
933
# Installation directory options.
934
# These are left unexpanded so users can "make install exec_prefix=/foo"
935
# and all the variables that are supposed to be based on exec_prefix
936
# by default will actually change.
937
# Use braces instead of parens because sh, perl, etc. also accept them.
938
# (The list follows the same order as the GNU Coding Standards.)
939
bindir='${exec_prefix}/bin'
940
sbindir='${exec_prefix}/sbin'
941
libexecdir='${exec_prefix}/libexec'
942
datarootdir='${prefix}/share'
943
datadir='${datarootdir}'
944
sysconfdir='${prefix}/etc'
945
sharedstatedir='${prefix}/com'
946
localstatedir='${prefix}/var'
947
includedir='${prefix}/include'
948
oldincludedir='/usr/include'
949
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
950
infodir='${datarootdir}/info'
955
libdir='${exec_prefix}/lib'
956
localedir='${datarootdir}/locale'
957
mandir='${datarootdir}/man'
963
# If the previous option needs an argument, assign it.
964
if test -n "$ac_prev"; then
965
eval $ac_prev=\$ac_option
971
*=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
975
# Accept the important Cygnus configure options, so we can diagnose typos.
977
case $ac_dashdash$ac_option in
981
-bindir | --bindir | --bindi | --bind | --bin | --bi)
983
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
986
-build | --build | --buil | --bui | --bu)
987
ac_prev=build_alias ;;
988
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
989
build_alias=$ac_optarg ;;
991
-cache-file | --cache-file | --cache-fil | --cache-fi \
992
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
993
ac_prev=cache_file ;;
994
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
995
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
996
cache_file=$ac_optarg ;;
999
cache_file=config.cache ;;
1001
-datadir | --datadir | --datadi | --datad)
1003
-datadir=* | --datadir=* | --datadi=* | --datad=*)
1004
datadir=$ac_optarg ;;
1006
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1007
| --dataroo | --dataro | --datar)
1008
ac_prev=datarootdir ;;
1009
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1010
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1011
datarootdir=$ac_optarg ;;
1013
-disable-* | --disable-*)
1014
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1015
# Reject names that are not valid shell variable names.
1016
expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1017
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
1018
{ (exit 1); exit 1; }; }
1019
ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1020
eval enable_$ac_feature=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_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1034
# Reject names that are not valid shell variable names.
1035
expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1036
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
1037
{ (exit 1); exit 1; }; }
1038
ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1039
eval enable_$ac_feature=\$ac_optarg ;;
1041
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1042
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1043
| --exec | --exe | --ex)
1044
ac_prev=exec_prefix ;;
1045
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1046
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1047
| --exec=* | --exe=* | --ex=*)
1048
exec_prefix=$ac_optarg ;;
1050
-gas | --gas | --ga | --g)
1051
# Obsolete; use --with-gas.
1054
-help | --help | --hel | --he | -h)
1055
ac_init_help=long ;;
1056
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1057
ac_init_help=recursive ;;
1058
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1059
ac_init_help=short ;;
1061
-host | --host | --hos | --ho)
1062
ac_prev=host_alias ;;
1063
-host=* | --host=* | --hos=* | --ho=*)
1064
host_alias=$ac_optarg ;;
1066
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1068
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1070
htmldir=$ac_optarg ;;
1072
-includedir | --includedir | --includedi | --included | --include \
1073
| --includ | --inclu | --incl | --inc)
1074
ac_prev=includedir ;;
1075
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1076
| --includ=* | --inclu=* | --incl=* | --inc=*)
1077
includedir=$ac_optarg ;;
1079
-infodir | --infodir | --infodi | --infod | --info | --inf)
1081
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1082
infodir=$ac_optarg ;;
1084
-libdir | --libdir | --libdi | --libd)
1086
-libdir=* | --libdir=* | --libdi=* | --libd=*)
1087
libdir=$ac_optarg ;;
1089
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1090
| --libexe | --libex | --libe)
1091
ac_prev=libexecdir ;;
1092
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1093
| --libexe=* | --libex=* | --libe=*)
1094
libexecdir=$ac_optarg ;;
1096
-localedir | --localedir | --localedi | --localed | --locale)
1097
ac_prev=localedir ;;
1098
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1099
localedir=$ac_optarg ;;
1101
-localstatedir | --localstatedir | --localstatedi | --localstated \
1102
| --localstate | --localstat | --localsta | --localst | --locals)
1103
ac_prev=localstatedir ;;
1104
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1105
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1106
localstatedir=$ac_optarg ;;
1108
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1110
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1111
mandir=$ac_optarg ;;
1113
-nfp | --nfp | --nf)
1114
# Obsolete; use --without-fp.
1117
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
1118
| --no-cr | --no-c | -n)
1121
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
1122
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1125
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1126
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1127
| --oldin | --oldi | --old | --ol | --o)
1128
ac_prev=oldincludedir ;;
1129
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1130
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1131
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1132
oldincludedir=$ac_optarg ;;
1134
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1136
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1137
prefix=$ac_optarg ;;
1139
-program-prefix | --program-prefix | --program-prefi | --program-pref \
1140
| --program-pre | --program-pr | --program-p)
1141
ac_prev=program_prefix ;;
1142
-program-prefix=* | --program-prefix=* | --program-prefi=* \
1143
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1144
program_prefix=$ac_optarg ;;
1146
-program-suffix | --program-suffix | --program-suffi | --program-suff \
1147
| --program-suf | --program-su | --program-s)
1148
ac_prev=program_suffix ;;
1149
-program-suffix=* | --program-suffix=* | --program-suffi=* \
1150
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1151
program_suffix=$ac_optarg ;;
1153
-program-transform-name | --program-transform-name \
1154
| --program-transform-nam | --program-transform-na \
1155
| --program-transform-n | --program-transform- \
1156
| --program-transform | --program-transfor \
1157
| --program-transfo | --program-transf \
1158
| --program-trans | --program-tran \
1159
| --progr-tra | --program-tr | --program-t)
1160
ac_prev=program_transform_name ;;
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
program_transform_name=$ac_optarg ;;
1170
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1172
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1173
pdfdir=$ac_optarg ;;
1175
-psdir | --psdir | --psdi | --psd | --ps)
1177
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1180
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1181
| -silent | --silent | --silen | --sile | --sil)
1184
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1186
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1188
sbindir=$ac_optarg ;;
1190
-sharedstatedir | --sharedstatedir | --sharedstatedi \
1191
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1192
| --sharedst | --shareds | --shared | --share | --shar \
1194
ac_prev=sharedstatedir ;;
1195
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1196
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1197
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1199
sharedstatedir=$ac_optarg ;;
1201
-site | --site | --sit)
1203
-site=* | --site=* | --sit=*)
1206
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1208
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1209
srcdir=$ac_optarg ;;
1211
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1212
| --syscon | --sysco | --sysc | --sys | --sy)
1213
ac_prev=sysconfdir ;;
1214
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1215
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1216
sysconfdir=$ac_optarg ;;
1218
-target | --target | --targe | --targ | --tar | --ta | --t)
1219
ac_prev=target_alias ;;
1220
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1221
target_alias=$ac_optarg ;;
1223
-v | -verbose | --verbose | --verbos | --verbo | --verb)
1226
-version | --version | --versio | --versi | --vers | -V)
1227
ac_init_version=: ;;
1230
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1231
# Reject names that are not valid shell variable names.
1232
expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1233
{ echo "$as_me: error: invalid package name: $ac_package" >&2
1234
{ (exit 1); exit 1; }; }
1235
ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1236
eval with_$ac_package=\$ac_optarg ;;
1238
-without-* | --without-*)
1239
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1240
# Reject names that are not valid shell variable names.
1241
expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1242
{ echo "$as_me: error: invalid package name: $ac_package" >&2
1243
{ (exit 1); exit 1; }; }
1244
ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1245
eval with_$ac_package=no ;;
1248
# Obsolete; use --with-x.
1251
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1252
| --x-incl | --x-inc | --x-in | --x-i)
1253
ac_prev=x_includes ;;
1254
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1255
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1256
x_includes=$ac_optarg ;;
1258
-x-libraries | --x-libraries | --x-librarie | --x-librari \
1259
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1260
ac_prev=x_libraries ;;
1261
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1262
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1263
x_libraries=$ac_optarg ;;
1265
-*) { echo "$as_me: error: unrecognized option: $ac_option
1266
Try \`$0 --help' for more information." >&2
1267
{ (exit 1); exit 1; }; }
1271
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1272
# Reject names that are not valid shell variable names.
1273
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1274
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1275
{ (exit 1); exit 1; }; }
1276
eval $ac_envvar=\$ac_optarg
1277
export $ac_envvar ;;
1280
# FIXME: should be removed in autoconf 3.0.
1281
echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1282
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1283
echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1284
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1290
if test -n "$ac_prev"; then
1291
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1292
{ echo "$as_me: error: missing argument to $ac_option" >&2
1293
{ (exit 1); exit 1; }; }
1296
# Be sure to have absolute directory names.
1297
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1298
datadir sysconfdir sharedstatedir localstatedir includedir \
1299
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1300
libdir localedir mandir
1302
eval ac_val=\$$ac_var
1304
[\\/$]* | ?:[\\/]* ) continue;;
1305
NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1307
{ echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1308
{ (exit 1); exit 1; }; }
1311
# There might be people who depend on the old broken behavior: `$host'
1312
# used to hold the argument of --host etc.
1313
# FIXME: To remove some day.
1316
target=$target_alias
1318
# FIXME: To remove some day.
1319
if test "x$host_alias" != x; then
1320
if test "x$build_alias" = x; then
1321
cross_compiling=maybe
1322
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1323
If a cross compiler is detected then cross compile mode will be used." >&2
1324
elif test "x$build_alias" != "x$host_alias"; then
1330
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1332
test "$silent" = yes && exec 6>/dev/null
1335
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1336
ac_ls_di=`ls -di .` &&
1337
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1338
{ echo "$as_me: error: Working directory cannot be determined" >&2
1339
{ (exit 1); exit 1; }; }
1340
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1341
{ echo "$as_me: error: pwd does not report name of working directory" >&2
1342
{ (exit 1); exit 1; }; }
1345
# Find the source files, if location was not specified.
1346
if test -z "$srcdir"; then
1347
ac_srcdir_defaulted=yes
1348
# Try the directory containing this script, then the parent directory.
1349
ac_confdir=`$as_dirname -- "$0" ||
1350
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1351
X"$0" : 'X\(//\)[^/]' \| \
1352
X"$0" : 'X\(//\)$' \| \
1353
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1355
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1373
if test ! -r "$srcdir/$ac_unique_file"; then
1377
ac_srcdir_defaulted=no
1379
if test ! -r "$srcdir/$ac_unique_file"; then
1380
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1381
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1382
{ (exit 1); exit 1; }; }
1384
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1386
cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1387
{ (exit 1); exit 1; }; }
1389
# When building in place, set srcdir=.
1390
if test "$ac_abs_confdir" = "$ac_pwd"; then
1393
# Remove unnecessary trailing slashes from srcdir.
1394
# Double slashes in file names in object file debugging info
1395
# mess up M-x gdb in Emacs.
1397
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1399
for ac_var in $ac_precious_vars; do
1400
eval ac_env_${ac_var}_set=\${${ac_var}+set}
1401
eval ac_env_${ac_var}_value=\$${ac_var}
1402
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1403
eval ac_cv_env_${ac_var}_value=\$${ac_var}
1407
# Report the --help message.
1409
if test "$ac_init_help" = "long"; then
1410
# Omit some internal or obsolete options to make the list less imposing.
1411
# This message is too long to be a string in the A/UX 3.1 sh.
1413
\`configure' configures ThinkFinger 0.3 to adapt to many kinds of systems.
1415
Usage: $0 [OPTION]... [VAR=VALUE]...
1417
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1418
VAR=VALUE. See below for descriptions of some of the useful variables.
1420
Defaults for the options are specified in brackets.
1423
-h, --help display this help and exit
1424
--help=short display options specific to this package
1425
--help=recursive display the short help of all the included packages
1426
-V, --version display version information and exit
1427
-q, --quiet, --silent do not print \`checking...' messages
1428
--cache-file=FILE cache test results in FILE [disabled]
1429
-C, --config-cache alias for \`--cache-file=config.cache'
1430
-n, --no-create do not create output files
1431
--srcdir=DIR find the sources in DIR [configure dir or \`..']
1433
Installation directories:
1434
--prefix=PREFIX install architecture-independent files in PREFIX
1435
[$ac_default_prefix]
1436
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1439
By default, \`make install' will install all the files in
1440
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1441
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1442
for instance \`--prefix=\$HOME'.
1444
For better control, use the options below.
1446
Fine tuning of the installation directories:
1447
--bindir=DIR user executables [EPREFIX/bin]
1448
--sbindir=DIR system admin executables [EPREFIX/sbin]
1449
--libexecdir=DIR program executables [EPREFIX/libexec]
1450
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1451
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1452
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1453
--libdir=DIR object code libraries [EPREFIX/lib]
1454
--includedir=DIR C header files [PREFIX/include]
1455
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1456
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1457
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1458
--infodir=DIR info documentation [DATAROOTDIR/info]
1459
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1460
--mandir=DIR man documentation [DATAROOTDIR/man]
1461
--docdir=DIR documentation root [DATAROOTDIR/doc/thinkfinger]
1462
--htmldir=DIR html documentation [DOCDIR]
1463
--dvidir=DIR dvi documentation [DOCDIR]
1464
--pdfdir=DIR pdf documentation [DOCDIR]
1465
--psdir=DIR ps documentation [DOCDIR]
1471
--program-prefix=PREFIX prepend PREFIX to installed program names
1472
--program-suffix=SUFFIX append SUFFIX to installed program names
1473
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
1476
--build=BUILD configure for building on BUILD [guessed]
1477
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1481
if test -n "$ac_init_help"; then
1482
case $ac_init_help in
1483
short | recursive ) echo "Configuration of ThinkFinger 0.3:";;
1488
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1489
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1490
--disable-dependency-tracking speeds up one-time build
1491
--enable-dependency-tracking do not reject slow dependency extractors
1492
--enable-shared[=PKGS] build shared libraries [default=yes]
1493
--enable-static[=PKGS] build static libraries [default=yes]
1494
--enable-fast-install[=PKGS]
1495
optimize for fast installation [default=yes]
1496
--disable-libtool-lock avoid locking (might break parallel builds)
1497
--enable-usb-debug build with USB hooks for debugging
1498
--enable-pam build PAM module
1499
--with-securedir=dir Where to put PAM module [default=$libdir/security]
1500
--with-birdir=dir Where to put the biometric identification records
1501
(bir files) [default=$sysconfdir/pam_thinkfinger]
1504
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1505
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1506
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
1507
--with-pic try to use only PIC/non-PIC objects [default=use
1509
--with-tags[=TAGS] include additional configurations [automatic]
1511
Some influential environment variables:
1512
CC C compiler command
1513
CFLAGS C compiler flags
1514
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1515
nonstandard directory <lib dir>
1516
LIBS libraries to pass to the linker, e.g. -l<library>
1517
CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1518
you have headers in a nonstandard directory <include dir>
1520
CXX C++ compiler command
1521
CXXFLAGS C++ compiler flags
1522
CXXCPP C++ preprocessor
1523
F77 Fortran 77 compiler command
1524
FFLAGS Fortran 77 compiler flags
1525
PKG_CONFIG path to pkg-config utility
1526
USB_CFLAGS C compiler flags for USB, overriding pkg-config
1527
USB_LIBS linker flags for USB, overriding pkg-config
1529
Use these variables to override the choices made by `configure' or to help
1530
it to find libraries and programs with nonstandard names/locations.
1532
Report bugs to <http://thinkfinger.sourceforge.net/>.
1537
if test "$ac_init_help" = "recursive"; then
1538
# If there are subdirs, report their specific --help.
1539
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1540
test -d "$ac_dir" || continue
1544
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1546
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1547
# A ".." for each directory in $ac_dir_suffix.
1548
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1549
case $ac_top_builddir_sub in
1550
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1551
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1554
ac_abs_top_builddir=$ac_pwd
1555
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1556
# for backward compatibility:
1557
ac_top_builddir=$ac_top_build_prefix
1560
.) # We are building in place.
1562
ac_top_srcdir=$ac_top_builddir_sub
1563
ac_abs_top_srcdir=$ac_pwd ;;
1564
[\\/]* | ?:[\\/]* ) # Absolute name.
1565
ac_srcdir=$srcdir$ac_dir_suffix;
1566
ac_top_srcdir=$srcdir
1567
ac_abs_top_srcdir=$srcdir ;;
1569
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1570
ac_top_srcdir=$ac_top_build_prefix$srcdir
1571
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1573
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1575
cd "$ac_dir" || { ac_status=$?; continue; }
1576
# Check for guested configure.
1577
if test -f "$ac_srcdir/configure.gnu"; then
1579
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
1580
elif test -f "$ac_srcdir/configure"; then
1582
$SHELL "$ac_srcdir/configure" --help=recursive
1584
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1586
cd "$ac_pwd" || { ac_status=$?; break; }
1590
test -n "$ac_init_help" && exit $ac_status
1591
if $ac_init_version; then
1593
ThinkFinger configure 0.3
1594
generated by GNU Autoconf 2.61
1596
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1597
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1598
This configure script is free software; the Free Software Foundation
1599
gives unlimited permission to copy, distribute and modify it.
1603
cat >config.log <<_ACEOF
1604
This file contains any messages produced by compilers while
1605
running configure, to aid debugging if configure makes a mistake.
1607
It was created by ThinkFinger $as_me 0.3, which was
1608
generated by GNU Autoconf 2.61. Invocation command line was
1620
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1621
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1622
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1623
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1624
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1626
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1627
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1629
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1630
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1631
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1632
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1633
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1634
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1635
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1639
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1643
test -z "$as_dir" && as_dir=.
1644
echo "PATH: $as_dir"
1660
# Keep a trace of the command line.
1661
# Strip out --no-create and --no-recursion so they do not pile up.
1662
# Strip out --silent because we don't want to record it for future runs.
1663
# Also quote any args containing shell meta-characters.
1664
# Make two passes to allow for proper duplicate-argument suppression.
1668
ac_must_keep_next=false
1674
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1675
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1676
| -silent | --silent | --silen | --sile | --sil)
1679
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1682
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1684
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1685
if test $ac_must_keep_next = true; then
1686
ac_must_keep_next=false # Got value, back to normal.
1689
*=* | --config-cache | -C | -disable-* | --disable-* \
1690
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1691
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1692
| -with-* | --with-* | -without-* | --without-* | --x)
1693
case "$ac_configure_args0 " in
1694
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1697
-* ) ac_must_keep_next=true ;;
1700
ac_configure_args="$ac_configure_args '$ac_arg'"
1705
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1706
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1708
# When interrupted or exit'd, cleanup temporary files, and complete
1709
# config.log. We remove comments because anyway the quotes in there
1710
# would cause problems or look ugly.
1711
# WARNING: Use '\'' to represent an apostrophe within the trap.
1712
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1713
trap 'exit_status=$?
1714
# Save into config.log some information that might help in debugging.
1719
## ---------------- ##
1720
## Cache variables. ##
1721
## ---------------- ##
1724
# The following way of writing the cache mishandles newlines in values,
1726
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1727
eval ac_val=\$$ac_var
1731
*_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1732
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1735
_ | IFS | as_nl) ;; #(
1736
*) $as_unset $ac_var ;;
1741
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1742
*${as_nl}ac_space=\ *)
1744
"s/'\''/'\''\\\\'\'''\''/g;
1745
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1748
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1756
## ----------------- ##
1757
## Output variables. ##
1758
## ----------------- ##
1761
for ac_var in $ac_subst_vars
1763
eval ac_val=\$$ac_var
1765
*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1767
echo "$ac_var='\''$ac_val'\''"
1771
if test -n "$ac_subst_files"; then
1773
## ------------------- ##
1774
## File substitutions. ##
1775
## ------------------- ##
1778
for ac_var in $ac_subst_files
1780
eval ac_val=\$$ac_var
1782
*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1784
echo "$ac_var='\''$ac_val'\''"
1789
if test -s confdefs.h; then
1799
test "$ac_signal" != 0 &&
1800
echo "$as_me: caught signal $ac_signal"
1801
echo "$as_me: exit $exit_status"
1803
rm -f core *.core core.conftest.* &&
1804
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1807
for ac_signal in 1 2 13 15; do
1808
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1812
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1813
rm -f -r conftest* confdefs.h
1815
# Predefined preprocessor variables.
1817
cat >>confdefs.h <<_ACEOF
1818
#define PACKAGE_NAME "$PACKAGE_NAME"
1822
cat >>confdefs.h <<_ACEOF
1823
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1827
cat >>confdefs.h <<_ACEOF
1828
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1832
cat >>confdefs.h <<_ACEOF
1833
#define PACKAGE_STRING "$PACKAGE_STRING"
1837
cat >>confdefs.h <<_ACEOF
1838
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1842
# Let the site file select an alternate cache file if it wants to.
1843
# Prefer explicitly selected file to automatically selected ones.
1844
if test -n "$CONFIG_SITE"; then
1845
set x "$CONFIG_SITE"
1846
elif test "x$prefix" != xNONE; then
1847
set x "$prefix/share/config.site" "$prefix/etc/config.site"
1849
set x "$ac_default_prefix/share/config.site" \
1850
"$ac_default_prefix/etc/config.site"
1855
if test -r "$ac_site_file"; then
1856
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1857
echo "$as_me: loading site script $ac_site_file" >&6;}
1858
sed 's/^/| /' "$ac_site_file" >&5
1863
if test -r "$cache_file"; then
1864
# Some versions of bash will fail to source /dev/null (special
1865
# files actually), so we avoid doing that.
1866
if test -f "$cache_file"; then
1867
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
1868
echo "$as_me: loading cache $cache_file" >&6;}
1870
[\\/]* | ?:[\\/]* ) . "$cache_file";;
1871
*) . "./$cache_file";;
1875
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
1876
echo "$as_me: creating cache $cache_file" >&6;}
1880
# Check that the precious variables saved in the cache have kept the same
1882
ac_cache_corrupted=false
1883
for ac_var in $ac_precious_vars; do
1884
eval ac_old_set=\$ac_cv_env_${ac_var}_set
1885
eval ac_new_set=\$ac_env_${ac_var}_set
1886
eval ac_old_val=\$ac_cv_env_${ac_var}_value
1887
eval ac_new_val=\$ac_env_${ac_var}_value
1888
case $ac_old_set,$ac_new_set in
1890
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1891
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1892
ac_cache_corrupted=: ;;
1894
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1895
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1896
ac_cache_corrupted=: ;;
1899
if test "x$ac_old_val" != "x$ac_new_val"; then
1900
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1901
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1902
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1903
echo "$as_me: former value: $ac_old_val" >&2;}
1904
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1905
echo "$as_me: current value: $ac_new_val" >&2;}
1906
ac_cache_corrupted=:
1909
# Pass precious variables to config.status.
1910
if test "$ac_new_set" = set; then
1912
*\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1913
*) ac_arg=$ac_var=$ac_new_val ;;
1915
case " $ac_configure_args " in
1916
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1917
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1921
if $ac_cache_corrupted; then
1922
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1923
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1924
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1925
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1926
{ (exit 1); exit 1; }; }
1954
ac_cpp='$CPP $CPPFLAGS'
1955
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1956
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1957
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1960
ac_config_headers="$ac_config_headers config.h"
1962
am__api_version='1.10'
1965
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1966
if test -f "$ac_dir/install-sh"; then
1968
ac_install_sh="$ac_aux_dir/install-sh -c"
1970
elif test -f "$ac_dir/install.sh"; then
1972
ac_install_sh="$ac_aux_dir/install.sh -c"
1974
elif test -f "$ac_dir/shtool"; then
1976
ac_install_sh="$ac_aux_dir/shtool install -c"
1980
if test -z "$ac_aux_dir"; then
1981
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1982
echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1983
{ (exit 1); exit 1; }; }
1986
# These three variables are undocumented and unsupported,
1987
# and are intended to be withdrawn in a future Autoconf release.
1988
# They can cause serious problems if a builder's source tree is in a directory
1989
# whose full name contains unusual characters.
1990
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1991
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1992
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1995
# Find a good install program. We prefer a C program (faster),
1996
# so one script is as good as another. But avoid the broken or
1997
# incompatible versions:
1998
# SysV /etc/install, /usr/sbin/install
1999
# SunOS /usr/etc/install
2000
# IRIX /sbin/install
2002
# AmigaOS /C/install, which installs bootblocks on floppy discs
2003
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2004
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2005
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2006
# OS/2's system install, which has a completely different semantic
2007
# ./install, which can be erroneously created by make from ./install.sh.
2008
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2009
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2010
if test -z "$INSTALL"; then
2011
if test "${ac_cv_path_install+set}" = set; then
2012
echo $ECHO_N "(cached) $ECHO_C" >&6
2014
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2018
test -z "$as_dir" && as_dir=.
2019
# Account for people who put trailing slashes in PATH elements.
2021
./ | .// | /cC/* | \
2022
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2023
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2026
# OSF1 and SCO ODT 3.0 have their own names for install.
2027
# Don't use installbsd from OSF since it installs stuff as root
2029
for ac_prog in ginstall scoinst install; do
2030
for ac_exec_ext in '' $ac_executable_extensions; do
2031
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2032
if test $ac_prog = install &&
2033
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2034
# AIX install. It has an incompatible calling convention.
2036
elif test $ac_prog = install &&
2037
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2038
# program-specific install script used by HP pwplus--don't use.
2041
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2054
if test "${ac_cv_path_install+set}" = set; then
2055
INSTALL=$ac_cv_path_install
2057
# As a last resort, use the slow shell script. Don't cache a
2058
# value for INSTALL within a source directory, because that will
2059
# break other packages using the cache if that directory is
2060
# removed, or if the value is a relative name.
2061
INSTALL=$ac_install_sh
2064
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2065
echo "${ECHO_T}$INSTALL" >&6; }
2067
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2068
# It thinks the first close brace ends the variable substitution.
2069
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2071
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2073
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2075
{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2076
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2079
echo timestamp > conftest.file
2080
# Do `set' in a subshell so we don't clobber the current shell's
2081
# arguments. Must try -L first in case configure is actually a
2082
# symlink; some systems play weird games with the mod time of symlinks
2083
# (eg FreeBSD returns the mod time of the symlink's containing
2086
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2087
if test "$*" = "X"; then
2089
set X `ls -t $srcdir/configure conftest.file`
2092
if test "$*" != "X $srcdir/configure conftest.file" \
2093
&& test "$*" != "X conftest.file $srcdir/configure"; then
2095
# If neither matched, then we have a broken ls. This can happen
2096
# if, for instance, CONFIG_SHELL is bash and it inherits a
2097
# broken ls alias from the environment. This has actually
2098
# happened. Such a system could not be considered "sane".
2099
{ { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2100
alias in your environment" >&5
2101
echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2102
alias in your environment" >&2;}
2103
{ (exit 1); exit 1; }; }
2106
test "$2" = conftest.file
2112
{ { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2113
Check your system clock" >&5
2114
echo "$as_me: error: newly created file is older than distributed files!
2115
Check your system clock" >&2;}
2116
{ (exit 1); exit 1; }; }
2118
{ echo "$as_me:$LINENO: result: yes" >&5
2119
echo "${ECHO_T}yes" >&6; }
2120
test "$program_prefix" != NONE &&
2121
program_transform_name="s&^&$program_prefix&;$program_transform_name"
2122
# Use a double $ so make ignores it.
2123
test "$program_suffix" != NONE &&
2124
program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2125
# Double any \ or $. echo might interpret backslashes.
2126
# By default was `s,x,x', remove it if useless.
2127
cat <<\_ACEOF >conftest.sed
2128
s/[\\$]/&&/g;s/;s,x,x,$//
2130
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2133
# expand $ac_aux_dir to an absolute path
2134
am_aux_dir=`cd $ac_aux_dir && pwd`
2136
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2137
# Use eval to expand $SHELL
2138
if eval "$MISSING --run true"; then
2139
am_missing_run="$MISSING --run "
2142
{ echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2143
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2146
{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2147
echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2148
if test -z "$MKDIR_P"; then
2149
if test "${ac_cv_path_mkdir+set}" = set; then
2150
echo $ECHO_N "(cached) $ECHO_C" >&6
2152
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2153
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2156
test -z "$as_dir" && as_dir=.
2157
for ac_prog in mkdir gmkdir; do
2158
for ac_exec_ext in '' $ac_executable_extensions; do
2159
{ test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2160
case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2161
'mkdir (GNU coreutils) '* | \
2162
'mkdir (coreutils) '* | \
2163
'mkdir (fileutils) '4.1*)
2164
ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2174
if test "${ac_cv_path_mkdir+set}" = set; then
2175
MKDIR_P="$ac_cv_path_mkdir -p"
2177
# As a last resort, use the slow shell script. Don't cache a
2178
# value for MKDIR_P within a source directory, because that will
2179
# break other packages using the cache if that directory is
2180
# removed, or if the value is a relative name.
2181
test -d ./--version && rmdir ./--version
2182
MKDIR_P="$ac_install_sh -d"
2185
{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2186
echo "${ECHO_T}$MKDIR_P" >&6; }
2190
[\\/$]* | ?:[\\/]*) ;;
2191
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2194
for ac_prog in gawk mawk nawk awk
2196
# Extract the first word of "$ac_prog", so it can be a program name with args.
2197
set dummy $ac_prog; ac_word=$2
2198
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2199
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2200
if test "${ac_cv_prog_AWK+set}" = set; then
2201
echo $ECHO_N "(cached) $ECHO_C" >&6
2203
if test -n "$AWK"; then
2204
ac_cv_prog_AWK="$AWK" # Let the user override the test.
2206
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2210
test -z "$as_dir" && as_dir=.
2211
for ac_exec_ext in '' $ac_executable_extensions; do
2212
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2213
ac_cv_prog_AWK="$ac_prog"
2214
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2224
if test -n "$AWK"; then
2225
{ echo "$as_me:$LINENO: result: $AWK" >&5
2226
echo "${ECHO_T}$AWK" >&6; }
2228
{ echo "$as_me:$LINENO: result: no" >&5
2229
echo "${ECHO_T}no" >&6; }
2233
test -n "$AWK" && break
2236
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2237
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2238
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2239
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2240
echo $ECHO_N "(cached) $ECHO_C" >&6
2242
cat >conftest.make <<\_ACEOF
2245
@echo '@@@%%%=$(MAKE)=@@@%%%'
2247
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2248
case `${MAKE-make} -f conftest.make 2>/dev/null` in
2250
eval ac_cv_prog_make_${ac_make}_set=yes;;
2252
eval ac_cv_prog_make_${ac_make}_set=no;;
2256
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2257
{ echo "$as_me:$LINENO: result: yes" >&5
2258
echo "${ECHO_T}yes" >&6; }
2261
{ echo "$as_me:$LINENO: result: no" >&5
2262
echo "${ECHO_T}no" >&6; }
2263
SET_MAKE="MAKE=${MAKE-make}"
2266
rm -rf .tst 2>/dev/null
2267
mkdir .tst 2>/dev/null
2268
if test -d .tst; then
2273
rmdir .tst 2>/dev/null
2275
if test "`cd $srcdir && pwd`" != "`pwd`"; then
2276
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2277
# is not polluted with repeated "-I."
2278
am__isrc=' -I$(srcdir)'
2279
# test to see if srcdir already configured
2280
if test -f $srcdir/config.status; then
2281
{ { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2282
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2283
{ (exit 1); exit 1; }; }
2287
# test whether we have cygpath
2288
if test -z "$CYGPATH_W"; then
2289
if (cygpath --version) >/dev/null 2>/dev/null; then
2290
CYGPATH_W='cygpath -w'
2297
# Define the identity of the package.
2298
PACKAGE='thinkfinger'
2302
cat >>confdefs.h <<_ACEOF
2303
#define PACKAGE "$PACKAGE"
2307
cat >>confdefs.h <<_ACEOF
2308
#define VERSION "$VERSION"
2311
# Some tools Automake needs.
2313
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2316
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2319
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2322
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2325
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2327
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2329
# Installed binaries are usually stripped using `strip' when the user
2330
# run `make install-strip'. However `strip' might not be the right
2331
# tool to use in cross-compilation environments, therefore Automake
2332
# will honor the `STRIP' environment variable to overrule this program.
2333
if test "$cross_compiling" != no; then
2334
if test -n "$ac_tool_prefix"; then
2335
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2336
set dummy ${ac_tool_prefix}strip; ac_word=$2
2337
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2338
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2339
if test "${ac_cv_prog_STRIP+set}" = set; then
2340
echo $ECHO_N "(cached) $ECHO_C" >&6
2342
if test -n "$STRIP"; then
2343
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2345
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2349
test -z "$as_dir" && as_dir=.
2350
for ac_exec_ext in '' $ac_executable_extensions; do
2351
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2352
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2353
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2362
STRIP=$ac_cv_prog_STRIP
2363
if test -n "$STRIP"; then
2364
{ echo "$as_me:$LINENO: result: $STRIP" >&5
2365
echo "${ECHO_T}$STRIP" >&6; }
2367
{ echo "$as_me:$LINENO: result: no" >&5
2368
echo "${ECHO_T}no" >&6; }
2373
if test -z "$ac_cv_prog_STRIP"; then
2375
# Extract the first word of "strip", so it can be a program name with args.
2376
set dummy strip; ac_word=$2
2377
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2378
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2379
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2380
echo $ECHO_N "(cached) $ECHO_C" >&6
2382
if test -n "$ac_ct_STRIP"; then
2383
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2385
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2389
test -z "$as_dir" && as_dir=.
2390
for ac_exec_ext in '' $ac_executable_extensions; do
2391
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2392
ac_cv_prog_ac_ct_STRIP="strip"
2393
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2402
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2403
if test -n "$ac_ct_STRIP"; then
2404
{ echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2405
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2407
{ echo "$as_me:$LINENO: result: no" >&5
2408
echo "${ECHO_T}no" >&6; }
2411
if test "x$ac_ct_STRIP" = x; then
2414
case $cross_compiling:$ac_tool_warned in
2416
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2417
whose name does not start with the host triplet. If you think this
2418
configuration is useful to you, please write to autoconf@gnu.org." >&5
2419
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2420
whose name does not start with the host triplet. If you think this
2421
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2422
ac_tool_warned=yes ;;
2427
STRIP="$ac_cv_prog_STRIP"
2431
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2433
# We need awk for the "check" target. The system "awk" is bad on
2435
# Always define AMTAR for backward compatibility.
2437
AMTAR=${AMTAR-"${am_missing_run}tar"}
2439
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2447
# Checks for required programs
2449
ac_cpp='$CPP $CPPFLAGS'
2450
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2451
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2452
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2453
if test -n "$ac_tool_prefix"; then
2454
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2455
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2456
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2457
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2458
if test "${ac_cv_prog_CC+set}" = set; then
2459
echo $ECHO_N "(cached) $ECHO_C" >&6
2461
if test -n "$CC"; then
2462
ac_cv_prog_CC="$CC" # Let the user override the test.
2464
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2468
test -z "$as_dir" && as_dir=.
2469
for ac_exec_ext in '' $ac_executable_extensions; do
2470
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2471
ac_cv_prog_CC="${ac_tool_prefix}gcc"
2472
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2482
if test -n "$CC"; then
2483
{ echo "$as_me:$LINENO: result: $CC" >&5
2484
echo "${ECHO_T}$CC" >&6; }
2486
{ echo "$as_me:$LINENO: result: no" >&5
2487
echo "${ECHO_T}no" >&6; }
2492
if test -z "$ac_cv_prog_CC"; then
2494
# Extract the first word of "gcc", so it can be a program name with args.
2495
set dummy gcc; ac_word=$2
2496
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2497
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2498
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2499
echo $ECHO_N "(cached) $ECHO_C" >&6
2501
if test -n "$ac_ct_CC"; then
2502
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2504
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2508
test -z "$as_dir" && as_dir=.
2509
for ac_exec_ext in '' $ac_executable_extensions; do
2510
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2511
ac_cv_prog_ac_ct_CC="gcc"
2512
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2521
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2522
if test -n "$ac_ct_CC"; then
2523
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2524
echo "${ECHO_T}$ac_ct_CC" >&6; }
2526
{ echo "$as_me:$LINENO: result: no" >&5
2527
echo "${ECHO_T}no" >&6; }
2530
if test "x$ac_ct_CC" = x; then
2533
case $cross_compiling:$ac_tool_warned in
2535
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2536
whose name does not start with the host triplet. If you think this
2537
configuration is useful to you, please write to autoconf@gnu.org." >&5
2538
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2539
whose name does not start with the host triplet. If you think this
2540
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2541
ac_tool_warned=yes ;;
2549
if test -z "$CC"; then
2550
if test -n "$ac_tool_prefix"; then
2551
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2552
set dummy ${ac_tool_prefix}cc; ac_word=$2
2553
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2554
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2555
if test "${ac_cv_prog_CC+set}" = set; then
2556
echo $ECHO_N "(cached) $ECHO_C" >&6
2558
if test -n "$CC"; then
2559
ac_cv_prog_CC="$CC" # Let the user override the test.
2561
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2565
test -z "$as_dir" && as_dir=.
2566
for ac_exec_ext in '' $ac_executable_extensions; do
2567
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2568
ac_cv_prog_CC="${ac_tool_prefix}cc"
2569
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2579
if test -n "$CC"; then
2580
{ echo "$as_me:$LINENO: result: $CC" >&5
2581
echo "${ECHO_T}$CC" >&6; }
2583
{ echo "$as_me:$LINENO: result: no" >&5
2584
echo "${ECHO_T}no" >&6; }
2590
if test -z "$CC"; then
2591
# Extract the first word of "cc", so it can be a program name with args.
2592
set dummy cc; ac_word=$2
2593
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2594
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2595
if test "${ac_cv_prog_CC+set}" = set; then
2596
echo $ECHO_N "(cached) $ECHO_C" >&6
2598
if test -n "$CC"; then
2599
ac_cv_prog_CC="$CC" # Let the user override the test.
2602
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2606
test -z "$as_dir" && as_dir=.
2607
for ac_exec_ext in '' $ac_executable_extensions; do
2608
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2609
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2610
ac_prog_rejected=yes
2614
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2621
if test $ac_prog_rejected = yes; then
2622
# We found a bogon in the path, so make sure we never use it.
2623
set dummy $ac_cv_prog_CC
2625
if test $# != 0; then
2626
# We chose a different compiler from the bogus one.
2627
# However, it has the same basename, so the bogon will be chosen
2628
# first if we set CC to just the basename; use the full file name.
2630
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2636
if test -n "$CC"; then
2637
{ echo "$as_me:$LINENO: result: $CC" >&5
2638
echo "${ECHO_T}$CC" >&6; }
2640
{ echo "$as_me:$LINENO: result: no" >&5
2641
echo "${ECHO_T}no" >&6; }
2646
if test -z "$CC"; then
2647
if test -n "$ac_tool_prefix"; then
2648
for ac_prog in cl.exe
2650
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2651
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2652
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2653
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2654
if test "${ac_cv_prog_CC+set}" = set; then
2655
echo $ECHO_N "(cached) $ECHO_C" >&6
2657
if test -n "$CC"; then
2658
ac_cv_prog_CC="$CC" # Let the user override the test.
2660
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2664
test -z "$as_dir" && as_dir=.
2665
for ac_exec_ext in '' $ac_executable_extensions; do
2666
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2667
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2668
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2678
if test -n "$CC"; then
2679
{ echo "$as_me:$LINENO: result: $CC" >&5
2680
echo "${ECHO_T}$CC" >&6; }
2682
{ echo "$as_me:$LINENO: result: no" >&5
2683
echo "${ECHO_T}no" >&6; }
2687
test -n "$CC" && break
2690
if test -z "$CC"; then
2692
for ac_prog in cl.exe
2694
# Extract the first word of "$ac_prog", so it can be a program name with args.
2695
set dummy $ac_prog; ac_word=$2
2696
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2697
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2698
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2699
echo $ECHO_N "(cached) $ECHO_C" >&6
2701
if test -n "$ac_ct_CC"; then
2702
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2704
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2708
test -z "$as_dir" && as_dir=.
2709
for ac_exec_ext in '' $ac_executable_extensions; do
2710
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2711
ac_cv_prog_ac_ct_CC="$ac_prog"
2712
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2721
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2722
if test -n "$ac_ct_CC"; then
2723
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2724
echo "${ECHO_T}$ac_ct_CC" >&6; }
2726
{ echo "$as_me:$LINENO: result: no" >&5
2727
echo "${ECHO_T}no" >&6; }
2731
test -n "$ac_ct_CC" && break
2734
if test "x$ac_ct_CC" = x; then
2737
case $cross_compiling:$ac_tool_warned in
2739
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2740
whose name does not start with the host triplet. If you think this
2741
configuration is useful to you, please write to autoconf@gnu.org." >&5
2742
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2743
whose name does not start with the host triplet. If you think this
2744
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2745
ac_tool_warned=yes ;;
2754
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2755
See \`config.log' for more details." >&5
2756
echo "$as_me: error: no acceptable C compiler found in \$PATH
2757
See \`config.log' for more details." >&2;}
2758
{ (exit 1); exit 1; }; }
2760
# Provide some information about the compiler.
2761
echo "$as_me:$LINENO: checking for C compiler version" >&5
2762
ac_compiler=`set X $ac_compile; echo $2`
2763
{ (ac_try="$ac_compiler --version >&5"
2765
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2766
*) ac_try_echo=$ac_try;;
2768
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2769
(eval "$ac_compiler --version >&5") 2>&5
2771
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772
(exit $ac_status); }
2773
{ (ac_try="$ac_compiler -v >&5"
2775
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2776
*) ac_try_echo=$ac_try;;
2778
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2779
(eval "$ac_compiler -v >&5") 2>&5
2781
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782
(exit $ac_status); }
2783
{ (ac_try="$ac_compiler -V >&5"
2785
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2786
*) ac_try_echo=$ac_try;;
2788
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2789
(eval "$ac_compiler -V >&5") 2>&5
2791
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792
(exit $ac_status); }
2794
cat >conftest.$ac_ext <<_ACEOF
2797
cat confdefs.h >>conftest.$ac_ext
2798
cat >>conftest.$ac_ext <<_ACEOF
2799
/* end confdefs.h. */
2809
ac_clean_files_save=$ac_clean_files
2810
ac_clean_files="$ac_clean_files a.out a.exe b.out"
2811
# Try to create an executable without -o first, disregard a.out.
2812
# It will help us diagnose broken compilers, and finding out an intuition
2814
{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2815
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2816
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2818
# List of possible output files, starting from the most likely.
2819
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2820
# only as a last resort. b.out is created by i960 compilers.
2821
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2823
# The IRIX 6 linker writes into existing files which may not be
2824
# executable, retaining their permissions. Remove them first so a
2825
# subsequent execution test works.
2827
for ac_file in $ac_files
2830
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2831
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
2836
if { (ac_try="$ac_link_default"
2838
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2839
*) ac_try_echo=$ac_try;;
2841
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2842
(eval "$ac_link_default") 2>&5
2844
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2845
(exit $ac_status); }; then
2846
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2847
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2848
# in a Makefile. We should not override ac_cv_exeext if it was cached,
2849
# so that the user can short-circuit this test for compilers unknown to
2851
for ac_file in $ac_files ''
2853
test -f "$ac_file" || continue
2855
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2858
# We found the default executable, but exeext='' is most
2862
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2864
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2866
# We set ac_cv_exeext here because the later test for it is not
2867
# safe: cross compilers may not add the suffix if given an `-o'
2868
# argument, so we may need to know it at that point already.
2869
# Even if this section looks crufty: it has the advantage of
2876
test "$ac_cv_exeext" = no && ac_cv_exeext=
2882
{ echo "$as_me:$LINENO: result: $ac_file" >&5
2883
echo "${ECHO_T}$ac_file" >&6; }
2884
if test -z "$ac_file"; then
2885
echo "$as_me: failed program was:" >&5
2886
sed 's/^/| /' conftest.$ac_ext >&5
2888
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2889
See \`config.log' for more details." >&5
2890
echo "$as_me: error: C compiler cannot create executables
2891
See \`config.log' for more details." >&2;}
2892
{ (exit 77); exit 77; }; }
2895
ac_exeext=$ac_cv_exeext
2897
# Check that the compiler produces executables we can run. If not, either
2898
# the compiler is broken, or we cross compile.
2899
{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2900
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2901
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2902
# If not cross compiling, check that we can run a simple program.
2903
if test "$cross_compiling" != yes; then
2904
if { ac_try='./$ac_file'
2905
{ (case "(($ac_try" in
2906
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2907
*) ac_try_echo=$ac_try;;
2909
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2910
(eval "$ac_try") 2>&5
2912
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913
(exit $ac_status); }; }; then
2916
if test "$cross_compiling" = maybe; then
2919
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2920
If you meant to cross compile, use \`--host'.
2921
See \`config.log' for more details." >&5
2922
echo "$as_me: error: cannot run C compiled programs.
2923
If you meant to cross compile, use \`--host'.
2924
See \`config.log' for more details." >&2;}
2925
{ (exit 1); exit 1; }; }
2929
{ echo "$as_me:$LINENO: result: yes" >&5
2930
echo "${ECHO_T}yes" >&6; }
2932
rm -f a.out a.exe conftest$ac_cv_exeext b.out
2933
ac_clean_files=$ac_clean_files_save
2934
# Check that the compiler produces executables we can run. If not, either
2935
# the compiler is broken, or we cross compile.
2936
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2937
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2938
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2939
echo "${ECHO_T}$cross_compiling" >&6; }
2941
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2942
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2943
if { (ac_try="$ac_link"
2945
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2946
*) ac_try_echo=$ac_try;;
2948
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2949
(eval "$ac_link") 2>&5
2951
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2952
(exit $ac_status); }; then
2953
# If both `conftest.exe' and `conftest' are `present' (well, observable)
2954
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2955
# work properly (i.e., refer to `conftest.exe'), while it won't with
2957
for ac_file in conftest.exe conftest conftest.*; do
2958
test -f "$ac_file" || continue
2960
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2961
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2967
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2968
See \`config.log' for more details." >&5
2969
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2970
See \`config.log' for more details." >&2;}
2971
{ (exit 1); exit 1; }; }
2974
rm -f conftest$ac_cv_exeext
2975
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2976
echo "${ECHO_T}$ac_cv_exeext" >&6; }
2978
rm -f conftest.$ac_ext
2979
EXEEXT=$ac_cv_exeext
2981
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2982
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2983
if test "${ac_cv_objext+set}" = set; then
2984
echo $ECHO_N "(cached) $ECHO_C" >&6
2986
cat >conftest.$ac_ext <<_ACEOF
2989
cat confdefs.h >>conftest.$ac_ext
2990
cat >>conftest.$ac_ext <<_ACEOF
2991
/* end confdefs.h. */
3001
rm -f conftest.o conftest.obj
3002
if { (ac_try="$ac_compile"
3004
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3005
*) ac_try_echo=$ac_try;;
3007
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3008
(eval "$ac_compile") 2>&5
3010
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3011
(exit $ac_status); }; then
3012
for ac_file in conftest.o conftest.obj conftest.*; do
3013
test -f "$ac_file" || continue;
3015
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3016
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3021
echo "$as_me: failed program was:" >&5
3022
sed 's/^/| /' conftest.$ac_ext >&5
3024
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3025
See \`config.log' for more details." >&5
3026
echo "$as_me: error: cannot compute suffix of object files: cannot compile
3027
See \`config.log' for more details." >&2;}
3028
{ (exit 1); exit 1; }; }
3031
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3033
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3034
echo "${ECHO_T}$ac_cv_objext" >&6; }
3035
OBJEXT=$ac_cv_objext
3037
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3038
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3039
if test "${ac_cv_c_compiler_gnu+set}" = set; then
3040
echo $ECHO_N "(cached) $ECHO_C" >&6
3042
cat >conftest.$ac_ext <<_ACEOF
3045
cat confdefs.h >>conftest.$ac_ext
3046
cat >>conftest.$ac_ext <<_ACEOF
3047
/* end confdefs.h. */
3060
rm -f conftest.$ac_objext
3061
if { (ac_try="$ac_compile"
3063
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3064
*) ac_try_echo=$ac_try;;
3066
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3067
(eval "$ac_compile") 2>conftest.er1
3069
grep -v '^ *+' conftest.er1 >conftest.err
3071
cat conftest.err >&5
3072
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073
(exit $ac_status); } && {
3074
test -z "$ac_c_werror_flag" ||
3075
test ! -s conftest.err
3076
} && test -s conftest.$ac_objext; then
3079
echo "$as_me: failed program was:" >&5
3080
sed 's/^/| /' conftest.$ac_ext >&5
3085
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3086
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3089
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3090
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3091
GCC=`test $ac_compiler_gnu = yes && echo yes`
3092
ac_test_CFLAGS=${CFLAGS+set}
3093
ac_save_CFLAGS=$CFLAGS
3094
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3095
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3096
if test "${ac_cv_prog_cc_g+set}" = set; then
3097
echo $ECHO_N "(cached) $ECHO_C" >&6
3099
ac_save_c_werror_flag=$ac_c_werror_flag
3100
ac_c_werror_flag=yes
3103
cat >conftest.$ac_ext <<_ACEOF
3106
cat confdefs.h >>conftest.$ac_ext
3107
cat >>conftest.$ac_ext <<_ACEOF
3108
/* end confdefs.h. */
3118
rm -f conftest.$ac_objext
3119
if { (ac_try="$ac_compile"
3121
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3122
*) ac_try_echo=$ac_try;;
3124
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3125
(eval "$ac_compile") 2>conftest.er1
3127
grep -v '^ *+' conftest.er1 >conftest.err
3129
cat conftest.err >&5
3130
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131
(exit $ac_status); } && {
3132
test -z "$ac_c_werror_flag" ||
3133
test ! -s conftest.err
3134
} && test -s conftest.$ac_objext; then
3137
echo "$as_me: failed program was:" >&5
3138
sed 's/^/| /' conftest.$ac_ext >&5
3141
cat >conftest.$ac_ext <<_ACEOF
3144
cat confdefs.h >>conftest.$ac_ext
3145
cat >>conftest.$ac_ext <<_ACEOF
3146
/* end confdefs.h. */
3156
rm -f conftest.$ac_objext
3157
if { (ac_try="$ac_compile"
3159
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3160
*) ac_try_echo=$ac_try;;
3162
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3163
(eval "$ac_compile") 2>conftest.er1
3165
grep -v '^ *+' conftest.er1 >conftest.err
3167
cat conftest.err >&5
3168
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169
(exit $ac_status); } && {
3170
test -z "$ac_c_werror_flag" ||
3171
test ! -s conftest.err
3172
} && test -s conftest.$ac_objext; then
3175
echo "$as_me: failed program was:" >&5
3176
sed 's/^/| /' conftest.$ac_ext >&5
3178
ac_c_werror_flag=$ac_save_c_werror_flag
3180
cat >conftest.$ac_ext <<_ACEOF
3183
cat confdefs.h >>conftest.$ac_ext
3184
cat >>conftest.$ac_ext <<_ACEOF
3185
/* end confdefs.h. */
3195
rm -f conftest.$ac_objext
3196
if { (ac_try="$ac_compile"
3198
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3199
*) ac_try_echo=$ac_try;;
3201
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3202
(eval "$ac_compile") 2>conftest.er1
3204
grep -v '^ *+' conftest.er1 >conftest.err
3206
cat conftest.err >&5
3207
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208
(exit $ac_status); } && {
3209
test -z "$ac_c_werror_flag" ||
3210
test ! -s conftest.err
3211
} && test -s conftest.$ac_objext; then
3214
echo "$as_me: failed program was:" >&5
3215
sed 's/^/| /' conftest.$ac_ext >&5
3220
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3223
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3226
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3227
ac_c_werror_flag=$ac_save_c_werror_flag
3229
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3230
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3231
if test "$ac_test_CFLAGS" = set; then
3232
CFLAGS=$ac_save_CFLAGS
3233
elif test $ac_cv_prog_cc_g = yes; then
3234
if test "$GCC" = yes; then
3240
if test "$GCC" = yes; then
3246
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3247
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3248
if test "${ac_cv_prog_cc_c89+set}" = set; then
3249
echo $ECHO_N "(cached) $ECHO_C" >&6
3251
ac_cv_prog_cc_c89=no
3253
cat >conftest.$ac_ext <<_ACEOF
3256
cat confdefs.h >>conftest.$ac_ext
3257
cat >>conftest.$ac_ext <<_ACEOF
3258
/* end confdefs.h. */
3261
#include <sys/types.h>
3262
#include <sys/stat.h>
3263
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3264
struct buf { int x; };
3265
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3266
static char *e (p, i)
3272
static char *f (char * (*g) (char **, int), char **p, ...)
3277
s = g (p, va_arg (v,int));
3282
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3283
function prototypes and stuff, but not '\xHH' hex character constants.
3284
These don't provoke an error unfortunately, instead are silently treated
3285
as 'x'. The following induces an error, until -std is added to get
3286
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3287
array size at least. It's necessary to write '\x00'==0 to get something
3288
that's true only with -std. */
3289
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3291
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3292
inside strings and character constants. */
3294
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3296
int test (int i, double x);
3297
struct s1 {int (*f) (int a);};
3298
struct s2 {int (*f) (double a);};
3299
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3305
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3310
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3311
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3313
CC="$ac_save_CC $ac_arg"
3314
rm -f conftest.$ac_objext
3315
if { (ac_try="$ac_compile"
3317
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3318
*) ac_try_echo=$ac_try;;
3320
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3321
(eval "$ac_compile") 2>conftest.er1
3323
grep -v '^ *+' conftest.er1 >conftest.err
3325
cat conftest.err >&5
3326
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327
(exit $ac_status); } && {
3328
test -z "$ac_c_werror_flag" ||
3329
test ! -s conftest.err
3330
} && test -s conftest.$ac_objext; then
3331
ac_cv_prog_cc_c89=$ac_arg
3333
echo "$as_me: failed program was:" >&5
3334
sed 's/^/| /' conftest.$ac_ext >&5
3339
rm -f core conftest.err conftest.$ac_objext
3340
test "x$ac_cv_prog_cc_c89" != "xno" && break
3342
rm -f conftest.$ac_ext
3347
case "x$ac_cv_prog_cc_c89" in
3349
{ echo "$as_me:$LINENO: result: none needed" >&5
3350
echo "${ECHO_T}none needed" >&6; } ;;
3352
{ echo "$as_me:$LINENO: result: unsupported" >&5
3353
echo "${ECHO_T}unsupported" >&6; } ;;
3355
CC="$CC $ac_cv_prog_cc_c89"
3356
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3357
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3362
ac_cpp='$CPP $CPPFLAGS'
3363
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3364
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3365
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3366
DEPDIR="${am__leading_dot}deps"
3368
ac_config_commands="$ac_config_commands depfiles"
3371
am_make=${MAKE-make}
3372
cat > confinc << 'END'
3377
# If we don't find an include directive, just comment out the code.
3378
{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3379
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3383
# First try GNU make style include.
3384
echo "include confinc" > confmf
3385
# We grep out `Entering directory' and `Leaving directory'
3386
# messages which can occur if `w' ends up in MAKEFLAGS.
3387
# In particular we don't look at `^make:' because GNU make might
3388
# be invoked under some other name (usually "gmake"), in which
3389
# case it prints its new name instead of `make'.
3390
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3395
# Now try BSD make style include.
3396
if test "$am__include" = "#"; then
3397
echo '.include "confinc"' > confmf
3398
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3399
am__include=.include
3406
{ echo "$as_me:$LINENO: result: $_am_result" >&5
3407
echo "${ECHO_T}$_am_result" >&6; }
3408
rm -f confinc confmf
3410
# Check whether --enable-dependency-tracking was given.
3411
if test "${enable_dependency_tracking+set}" = set; then
3412
enableval=$enable_dependency_tracking;
3415
if test "x$enable_dependency_tracking" != xno; then
3416
am_depcomp="$ac_aux_dir/depcomp"
3419
if test "x$enable_dependency_tracking" != xno; then
3429
depcc="$CC" am_compiler_list=
3431
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3432
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3433
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3434
echo $ECHO_N "(cached) $ECHO_C" >&6
3436
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3437
# We make a subdir and do the tests there. Otherwise we can end up
3438
# making bogus files that we don't know about and never remove. For
3439
# instance it was reported that on HP-UX the gcc test will end up
3440
# making a dummy file named `D' -- because `-MD' means `put the output
3443
# Copy depcomp to subdir because otherwise we won't find it if we're
3444
# using a relative directory.
3445
cp "$am_depcomp" conftest.dir
3447
# We will build objects and dependencies in a subdirectory because
3448
# it helps to detect inapplicable dependency modes. For instance
3449
# both Tru64's cc and ICC support -MD to output dependencies as a
3450
# side effect of compilation, but ICC will put the dependencies in
3451
# the current directory while Tru64 will put them in the object
3455
am_cv_CC_dependencies_compiler_type=none
3456
if test "$am_compiler_list" = ""; then
3457
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3459
for depmode in $am_compiler_list; do
3460
# Setup a source with many dependencies, because some compilers
3461
# like to wrap large dependency lists on column 80 (with \), and
3462
# we should not choose a depcomp mode which is confused by this.
3464
# We need to recreate these files for each test, as the compiler may
3465
# overwrite some of them when testing with obscure command lines.
3466
# This happens at least with the AIX C compiler.
3468
for i in 1 2 3 4 5 6; do
3469
echo '#include "conftst'$i'.h"' >> sub/conftest.c
3470
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3471
# Solaris 8's {/usr,}/bin/sh.
3472
touch sub/conftst$i.h
3474
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3478
# after this tag, mechanisms are not by side-effect, so they'll
3479
# only be used when explicitly requested
3480
if test "x$enable_dependency_tracking" = xyes; then
3488
# We check with `-c' and `-o' for the sake of the "dashmstdout"
3489
# mode. It turns out that the SunPro C++ compiler does not properly
3490
# handle `-M -o', and we need to detect this.
3491
if depmode=$depmode \
3492
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3493
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3494
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3495
>/dev/null 2>conftest.err &&
3496
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3497
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3498
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3499
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3500
# icc doesn't choke on unknown options, it will just issue warnings
3501
# or remarks (even with -Werror). So we grep stderr for any message
3502
# that says an option was ignored or not supported.
3503
# When given -MP, icc 7.0 and 7.1 complain thusly:
3504
# icc: Command line warning: ignoring option '-M'; no argument required
3505
# The diagnosis changed in icc 8.0:
3506
# icc: Command line remark: option '-MP' not supported
3507
if (grep 'ignoring option' conftest.err ||
3508
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3509
am_cv_CC_dependencies_compiler_type=$depmode
3518
am_cv_CC_dependencies_compiler_type=none
3522
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3523
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3524
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3527
test "x$enable_dependency_tracking" != xno \
3528
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3530
am__fastdepCC_FALSE='#'
3532
am__fastdepCC_TRUE='#'
3533
am__fastdepCC_FALSE=
3537
# Find a good install program. We prefer a C program (faster),
3538
# so one script is as good as another. But avoid the broken or
3539
# incompatible versions:
3540
# SysV /etc/install, /usr/sbin/install
3541
# SunOS /usr/etc/install
3542
# IRIX /sbin/install
3544
# AmigaOS /C/install, which installs bootblocks on floppy discs
3545
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3546
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3547
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3548
# OS/2's system install, which has a completely different semantic
3549
# ./install, which can be erroneously created by make from ./install.sh.
3550
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3551
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3552
if test -z "$INSTALL"; then
3553
if test "${ac_cv_path_install+set}" = set; then
3554
echo $ECHO_N "(cached) $ECHO_C" >&6
3556
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3560
test -z "$as_dir" && as_dir=.
3561
# Account for people who put trailing slashes in PATH elements.
3563
./ | .// | /cC/* | \
3564
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3565
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3568
# OSF1 and SCO ODT 3.0 have their own names for install.
3569
# Don't use installbsd from OSF since it installs stuff as root
3571
for ac_prog in ginstall scoinst install; do
3572
for ac_exec_ext in '' $ac_executable_extensions; do
3573
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3574
if test $ac_prog = install &&
3575
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3576
# AIX install. It has an incompatible calling convention.
3578
elif test $ac_prog = install &&
3579
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3580
# program-specific install script used by HP pwplus--don't use.
3583
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3596
if test "${ac_cv_path_install+set}" = set; then
3597
INSTALL=$ac_cv_path_install
3599
# As a last resort, use the slow shell script. Don't cache a
3600
# value for INSTALL within a source directory, because that will
3601
# break other packages using the cache if that directory is
3602
# removed, or if the value is a relative name.
3603
INSTALL=$ac_install_sh
3606
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
3607
echo "${ECHO_T}$INSTALL" >&6; }
3609
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3610
# It thinks the first close brace ends the variable substitution.
3611
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3613
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3615
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3617
# Check whether --enable-shared was given.
3618
if test "${enable_shared+set}" = set; then
3619
enableval=$enable_shared; p=${PACKAGE-default}
3621
yes) enable_shared=yes ;;
3622
no) enable_shared=no ;;
3625
# Look at the argument we got. We use all the common list separators.
3626
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3627
for pkg in $enableval; do
3629
if test "X$pkg" = "X$p"; then
3641
# Check whether --enable-static was given.
3642
if test "${enable_static+set}" = set; then
3643
enableval=$enable_static; p=${PACKAGE-default}
3645
yes) enable_static=yes ;;
3646
no) enable_static=no ;;
3649
# Look at the argument we got. We use all the common list separators.
3650
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3651
for pkg in $enableval; do
3653
if test "X$pkg" = "X$p"; then
3665
# Check whether --enable-fast-install was given.
3666
if test "${enable_fast_install+set}" = set; then
3667
enableval=$enable_fast_install; p=${PACKAGE-default}
3669
yes) enable_fast_install=yes ;;
3670
no) enable_fast_install=no ;;
3672
enable_fast_install=no
3673
# Look at the argument we got. We use all the common list separators.
3674
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3675
for pkg in $enableval; do
3677
if test "X$pkg" = "X$p"; then
3678
enable_fast_install=yes
3685
enable_fast_install=yes
3689
# Make sure we can run config.sub.
3690
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3691
{ { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3692
echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3693
{ (exit 1); exit 1; }; }
3695
{ echo "$as_me:$LINENO: checking build system type" >&5
3696
echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3697
if test "${ac_cv_build+set}" = set; then
3698
echo $ECHO_N "(cached) $ECHO_C" >&6
3700
ac_build_alias=$build_alias
3701
test "x$ac_build_alias" = x &&
3702
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3703
test "x$ac_build_alias" = x &&
3704
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3705
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3706
{ (exit 1); exit 1; }; }
3707
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3708
{ { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3709
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3710
{ (exit 1); exit 1; }; }
3713
{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3714
echo "${ECHO_T}$ac_cv_build" >&6; }
3715
case $ac_cv_build in
3717
*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3718
echo "$as_me: error: invalid value of canonical build" >&2;}
3719
{ (exit 1); exit 1; }; };;
3722
ac_save_IFS=$IFS; IFS='-'
3728
# Remember, the first character of IFS is used to create $*,
3729
# except with old shells:
3732
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3735
{ echo "$as_me:$LINENO: checking host system type" >&5
3736
echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3737
if test "${ac_cv_host+set}" = set; then
3738
echo $ECHO_N "(cached) $ECHO_C" >&6
3740
if test "x$host_alias" = x; then
3741
ac_cv_host=$ac_cv_build
3743
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3744
{ { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3745
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3746
{ (exit 1); exit 1; }; }
3750
{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3751
echo "${ECHO_T}$ac_cv_host" >&6; }
3754
*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3755
echo "$as_me: error: invalid value of canonical host" >&2;}
3756
{ (exit 1); exit 1; }; };;
3759
ac_save_IFS=$IFS; IFS='-'
3765
# Remember, the first character of IFS is used to create $*,
3766
# except with old shells:
3769
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3772
{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3773
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3774
if test "${lt_cv_path_SED+set}" = set; then
3775
echo $ECHO_N "(cached) $ECHO_C" >&6
3777
# Loop through the user's path and test for sed and gsed.
3778
# Then use that list of sed's as ones to test for truncation.
3779
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3783
test -z "$as_dir" && as_dir=.
3784
for lt_ac_prog in sed gsed; do
3785
for ac_exec_ext in '' $ac_executable_extensions; do
3786
if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3787
lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3794
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3795
# along with /bin/sed that truncates output.
3796
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3797
test ! -f $lt_ac_sed && continue
3798
cat /dev/null > conftest.in
3800
echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3801
# Check for GNU sed and select it if it is found.
3802
if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3803
lt_cv_path_SED=$lt_ac_sed
3807
cat conftest.in conftest.in >conftest.tmp
3808
mv conftest.tmp conftest.in
3809
cp conftest.in conftest.nl
3811
$lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3812
cmp -s conftest.out conftest.nl || break
3813
# 10000 chars as input seems more than enough
3814
test $lt_ac_count -gt 10 && break
3815
lt_ac_count=`expr $lt_ac_count + 1`
3816
if test $lt_ac_count -gt $lt_ac_max; then
3817
lt_ac_max=$lt_ac_count
3818
lt_cv_path_SED=$lt_ac_sed
3826
{ echo "$as_me:$LINENO: result: $SED" >&5
3827
echo "${ECHO_T}$SED" >&6; }
3829
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3830
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3831
if test "${ac_cv_path_GREP+set}" = set; then
3832
echo $ECHO_N "(cached) $ECHO_C" >&6
3834
# Extract the first word of "grep ggrep" to use in msg output
3835
if test -z "$GREP"; then
3836
set dummy grep ggrep; ac_prog_name=$2
3837
if test "${ac_cv_path_GREP+set}" = set; then
3838
echo $ECHO_N "(cached) $ECHO_C" >&6
3840
ac_path_GREP_found=false
3841
# Loop through the user's path and test for each of PROGNAME-LIST
3842
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3843
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3846
test -z "$as_dir" && as_dir=.
3847
for ac_prog in grep ggrep; do
3848
for ac_exec_ext in '' $ac_executable_extensions; do
3849
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3850
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3851
# Check for GNU ac_path_GREP and select it if it is found.
3852
# Check for GNU $ac_path_GREP
3853
case `"$ac_path_GREP" --version 2>&1` in
3855
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3858
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3861
cat "conftest.in" "conftest.in" >"conftest.tmp"
3862
mv "conftest.tmp" "conftest.in"
3863
cp "conftest.in" "conftest.nl"
3864
echo 'GREP' >> "conftest.nl"
3865
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3866
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3867
ac_count=`expr $ac_count + 1`
3868
if test $ac_count -gt ${ac_path_GREP_max-0}; then
3869
# Best one so far, save it but keep looking for a better one
3870
ac_cv_path_GREP="$ac_path_GREP"
3871
ac_path_GREP_max=$ac_count
3873
# 10*(2^10) chars as input seems more than enough
3874
test $ac_count -gt 10 && break
3876
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3880
$ac_path_GREP_found && break 3
3890
GREP="$ac_cv_path_GREP"
3891
if test -z "$GREP"; then
3892
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3893
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3894
{ (exit 1); exit 1; }; }
3898
ac_cv_path_GREP=$GREP
3903
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3904
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3905
GREP="$ac_cv_path_GREP"
3908
{ echo "$as_me:$LINENO: checking for egrep" >&5
3909
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3910
if test "${ac_cv_path_EGREP+set}" = set; then
3911
echo $ECHO_N "(cached) $ECHO_C" >&6
3913
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3914
then ac_cv_path_EGREP="$GREP -E"
3916
# Extract the first word of "egrep" to use in msg output
3917
if test -z "$EGREP"; then
3918
set dummy egrep; ac_prog_name=$2
3919
if test "${ac_cv_path_EGREP+set}" = set; then
3920
echo $ECHO_N "(cached) $ECHO_C" >&6
3922
ac_path_EGREP_found=false
3923
# Loop through the user's path and test for each of PROGNAME-LIST
3924
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3925
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3928
test -z "$as_dir" && as_dir=.
3929
for ac_prog in egrep; do
3930
for ac_exec_ext in '' $ac_executable_extensions; do
3931
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3932
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3933
# Check for GNU ac_path_EGREP and select it if it is found.
3934
# Check for GNU $ac_path_EGREP
3935
case `"$ac_path_EGREP" --version 2>&1` in
3937
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3940
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3943
cat "conftest.in" "conftest.in" >"conftest.tmp"
3944
mv "conftest.tmp" "conftest.in"
3945
cp "conftest.in" "conftest.nl"
3946
echo 'EGREP' >> "conftest.nl"
3947
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3948
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3949
ac_count=`expr $ac_count + 1`
3950
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3951
# Best one so far, save it but keep looking for a better one
3952
ac_cv_path_EGREP="$ac_path_EGREP"
3953
ac_path_EGREP_max=$ac_count
3955
# 10*(2^10) chars as input seems more than enough
3956
test $ac_count -gt 10 && break
3958
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3962
$ac_path_EGREP_found && break 3
3972
EGREP="$ac_cv_path_EGREP"
3973
if test -z "$EGREP"; then
3974
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3975
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3976
{ (exit 1); exit 1; }; }
3980
ac_cv_path_EGREP=$EGREP
3986
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3987
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3988
EGREP="$ac_cv_path_EGREP"
3992
# Check whether --with-gnu-ld was given.
3993
if test "${with_gnu_ld+set}" = set; then
3994
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4000
if test "$GCC" = yes; then
4001
# Check if gcc -print-prog-name=ld gives a path.
4002
{ echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4003
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4006
# gcc leaves a trailing carriage return which upsets mingw
4007
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4009
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4012
# Accept absolute paths.
4014
re_direlt='/[^/][^/]*/\.\./'
4015
# Canonicalize the pathname of ld
4016
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4017
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4018
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4020
test -z "$LD" && LD="$ac_prog"
4023
# If it fails, then pretend we aren't using GCC.
4027
# If it is relative, then search for the first ld in PATH.
4031
elif test "$with_gnu_ld" = yes; then
4032
{ echo "$as_me:$LINENO: checking for GNU ld" >&5
4033
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4035
{ echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4036
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4038
if test "${lt_cv_path_LD+set}" = set; then
4039
echo $ECHO_N "(cached) $ECHO_C" >&6
4041
if test -z "$LD"; then
4042
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4043
for ac_dir in $PATH; do
4045
test -z "$ac_dir" && ac_dir=.
4046
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4047
lt_cv_path_LD="$ac_dir/$ac_prog"
4048
# Check to see if the program is GNU ld. I'd rather use --version,
4049
# but apparently some variants of GNU ld only accept -v.
4050
# Break only if it was the GNU/non-GNU ld that we prefer.
4051
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4052
*GNU* | *'with BFD'*)
4053
test "$with_gnu_ld" != no && break
4056
test "$with_gnu_ld" != yes && break
4063
lt_cv_path_LD="$LD" # Let the user override the test with a path.
4068
if test -n "$LD"; then
4069
{ echo "$as_me:$LINENO: result: $LD" >&5
4070
echo "${ECHO_T}$LD" >&6; }
4072
{ echo "$as_me:$LINENO: result: no" >&5
4073
echo "${ECHO_T}no" >&6; }
4075
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4076
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4077
{ (exit 1); exit 1; }; }
4078
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4079
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4080
if test "${lt_cv_prog_gnu_ld+set}" = set; then
4081
echo $ECHO_N "(cached) $ECHO_C" >&6
4083
# I'd rather use --version here, but apparently some GNU lds only accept -v.
4084
case `$LD -v 2>&1 </dev/null` in
4085
*GNU* | *'with BFD'*)
4086
lt_cv_prog_gnu_ld=yes
4089
lt_cv_prog_gnu_ld=no
4093
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4094
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4095
with_gnu_ld=$lt_cv_prog_gnu_ld
4098
{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4099
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4100
if test "${lt_cv_ld_reload_flag+set}" = set; then
4101
echo $ECHO_N "(cached) $ECHO_C" >&6
4103
lt_cv_ld_reload_flag='-r'
4105
{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4106
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4107
reload_flag=$lt_cv_ld_reload_flag
4108
case $reload_flag in
4110
*) reload_flag=" $reload_flag" ;;
4112
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4115
if test "$GCC" = yes; then
4116
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4118
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4123
{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4124
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4125
if test "${lt_cv_path_NM+set}" = set; then
4126
echo $ECHO_N "(cached) $ECHO_C" >&6
4128
if test -n "$NM"; then
4129
# Let the user override the test.
4132
lt_nm_to_check="${ac_tool_prefix}nm"
4133
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4134
lt_nm_to_check="$lt_nm_to_check nm"
4136
for lt_tmp_nm in $lt_nm_to_check; do
4137
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4138
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4140
test -z "$ac_dir" && ac_dir=.
4141
tmp_nm="$ac_dir/$lt_tmp_nm"
4142
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4143
# Check to see if the nm accepts a BSD-compat flag.
4144
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4145
# nm: unknown option "B" ignored
4146
# Tru64's nm complains that /dev/null is an invalid object file
4147
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4148
*/dev/null* | *'Invalid file or object type'*)
4149
lt_cv_path_NM="$tmp_nm -B"
4153
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4155
lt_cv_path_NM="$tmp_nm -p"
4159
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4160
continue # so that we can try to find one that supports BSD flags
4169
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4172
{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4173
echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4176
{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
4177
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4179
if test "$LN_S" = "ln -s"; then
4180
{ echo "$as_me:$LINENO: result: yes" >&5
4181
echo "${ECHO_T}yes" >&6; }
4183
{ echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4184
echo "${ECHO_T}no, using $LN_S" >&6; }
4187
{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4188
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4189
if test "${lt_cv_deplibs_check_method+set}" = set; then
4190
echo $ECHO_N "(cached) $ECHO_C" >&6
4192
lt_cv_file_magic_cmd='$MAGIC_CMD'
4193
lt_cv_file_magic_test_file=
4194
lt_cv_deplibs_check_method='unknown'
4195
# Need to set the preceding variable on all platforms that support
4196
# interlibrary dependencies.
4197
# 'none' -- dependencies not supported.
4198
# `unknown' -- same as none, but documents that we really don't know.
4199
# 'pass_all' -- all dependencies passed with no checks.
4200
# 'test_compile' -- check by making test program.
4201
# 'file_magic [[regex]]' -- check by looking for files in library path
4202
# which responds to the $file_magic_cmd with a given extended regex.
4203
# If you have `file' or equivalent on your system and you're not sure
4204
# whether `pass_all' will *always* work, you probably want this one.
4208
lt_cv_deplibs_check_method=pass_all
4212
lt_cv_deplibs_check_method=pass_all
4216
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4217
lt_cv_file_magic_cmd='/usr/bin/file -L'
4218
lt_cv_file_magic_test_file=/shlib/libc.so
4222
# func_win32_libid is a shell function defined in ltmain.sh
4223
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4224
lt_cv_file_magic_cmd='func_win32_libid'
4228
# Base MSYS/MinGW do not provide the 'file' command needed by
4229
# func_win32_libid shell function, so use a weaker test based on 'objdump'.
4230
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4231
lt_cv_file_magic_cmd='$OBJDUMP -f'
4234
darwin* | rhapsody*)
4235
lt_cv_deplibs_check_method=pass_all
4238
freebsd* | kfreebsd*-gnu | dragonfly*)
4239
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4242
# Not sure whether the presence of OpenBSD here was a mistake.
4243
# Let's accept both of them until this is cleared up.
4244
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4245
lt_cv_file_magic_cmd=/usr/bin/file
4246
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4250
lt_cv_deplibs_check_method=pass_all
4255
lt_cv_deplibs_check_method=pass_all
4258
hpux10.20* | hpux11*)
4259
lt_cv_file_magic_cmd=/usr/bin/file
4262
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4263
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4266
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]'
4267
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4270
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4271
lt_cv_file_magic_test_file=/usr/lib/libc.sl
4277
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4278
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4281
irix5* | irix6* | nonstopux*)
4283
*-32|*"-32 ") libmagic=32-bit;;
4284
*-n32|*"-n32 ") libmagic=N32;;
4285
*-64|*"-64 ") libmagic=64-bit;;
4286
*) libmagic=never-match;;
4288
lt_cv_deplibs_check_method=pass_all
4291
# This must be Linux ELF.
4293
lt_cv_deplibs_check_method=pass_all
4297
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4298
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4300
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4305
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4306
lt_cv_file_magic_cmd=/usr/bin/file
4307
lt_cv_file_magic_test_file=/usr/lib/libnls.so
4311
lt_cv_deplibs_check_method=unknown
4315
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4316
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4318
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4322
osf3* | osf4* | osf5*)
4323
lt_cv_deplibs_check_method=pass_all
4327
lt_cv_deplibs_check_method=pass_all
4331
case $host_vendor in
4333
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]'
4334
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4337
lt_cv_deplibs_check_method=pass_all
4340
lt_cv_file_magic_cmd='/bin/file'
4341
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4344
lt_cv_file_magic_cmd='/bin/file'
4345
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4346
lt_cv_file_magic_test_file=/lib/libc.so
4349
lt_cv_deplibs_check_method=pass_all
4352
lt_cv_deplibs_check_method=pass_all
4357
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4358
lt_cv_deplibs_check_method=pass_all
4363
{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4364
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4365
file_magic_cmd=$lt_cv_file_magic_cmd
4366
deplibs_check_method=$lt_cv_deplibs_check_method
4367
test -z "$deplibs_check_method" && deplibs_check_method=unknown
4372
# If no C compiler was specified, use CC.
4375
# If no C compiler flags were specified, use CFLAGS.
4376
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4378
# Allow CC to be a program name with arguments.
4382
# Check whether --enable-libtool-lock was given.
4383
if test "${enable_libtool_lock+set}" = set; then
4384
enableval=$enable_libtool_lock;
4387
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4389
# Some flags need to be propagated to the compiler or linker for good
4393
# Find out which ABI we are using.
4394
echo 'int i;' > conftest.$ac_ext
4395
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4396
(eval $ac_compile) 2>&5
4398
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399
(exit $ac_status); }; then
4400
case `/usr/bin/file conftest.$ac_objext` in
4412
# Find out which ABI we are using.
4413
echo '#line 4413 "configure"' > conftest.$ac_ext
4414
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4415
(eval $ac_compile) 2>&5
4417
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4418
(exit $ac_status); }; then
4419
if test "$lt_cv_prog_gnu_ld" = yes; then
4420
case `/usr/bin/file conftest.$ac_objext` in
4422
LD="${LD-ld} -melf32bsmip"
4425
LD="${LD-ld} -melf32bmipn32"
4428
LD="${LD-ld} -melf64bmip"
4432
case `/usr/bin/file conftest.$ac_objext` in
4448
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4449
# Find out which ABI we are using.
4450
echo 'int i;' > conftest.$ac_ext
4451
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4452
(eval $ac_compile) 2>&5
4454
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4455
(exit $ac_status); }; then
4456
case `/usr/bin/file conftest.o` in
4460
LD="${LD-ld} -m elf_i386"
4462
ppc64-*linux*|powerpc64-*linux*)
4463
LD="${LD-ld} -m elf32ppclinux"
4466
LD="${LD-ld} -m elf_s390"
4469
LD="${LD-ld} -m elf32_sparc"
4476
LD="${LD-ld} -m elf_x86_64"
4478
ppc*-*linux*|powerpc*-*linux*)
4479
LD="${LD-ld} -m elf64ppc"
4482
LD="${LD-ld} -m elf64_s390"
4485
LD="${LD-ld} -m elf64_sparc"
4495
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
4496
SAVE_CFLAGS="$CFLAGS"
4497
CFLAGS="$CFLAGS -belf"
4498
{ echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4499
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4500
if test "${lt_cv_cc_needs_belf+set}" = set; then
4501
echo $ECHO_N "(cached) $ECHO_C" >&6
4504
ac_cpp='$CPP $CPPFLAGS'
4505
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4506
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4507
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4509
cat >conftest.$ac_ext <<_ACEOF
4512
cat confdefs.h >>conftest.$ac_ext
4513
cat >>conftest.$ac_ext <<_ACEOF
4514
/* end confdefs.h. */
4524
rm -f conftest.$ac_objext conftest$ac_exeext
4525
if { (ac_try="$ac_link"
4527
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4528
*) ac_try_echo=$ac_try;;
4530
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4531
(eval "$ac_link") 2>conftest.er1
4533
grep -v '^ *+' conftest.er1 >conftest.err
4535
cat conftest.err >&5
4536
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4537
(exit $ac_status); } && {
4538
test -z "$ac_c_werror_flag" ||
4539
test ! -s conftest.err
4540
} && test -s conftest$ac_exeext &&
4541
$as_test_x conftest$ac_exeext; then
4542
lt_cv_cc_needs_belf=yes
4544
echo "$as_me: failed program was:" >&5
4545
sed 's/^/| /' conftest.$ac_ext >&5
4547
lt_cv_cc_needs_belf=no
4550
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4551
conftest$ac_exeext conftest.$ac_ext
4553
ac_cpp='$CPP $CPPFLAGS'
4554
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4555
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4556
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4559
{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4560
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4561
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4562
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4563
CFLAGS="$SAVE_CFLAGS"
4567
# Find out which ABI we are using.
4568
echo 'int i;' > conftest.$ac_ext
4569
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4570
(eval $ac_compile) 2>&5
4572
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4573
(exit $ac_status); }; then
4574
case `/usr/bin/file conftest.o` in
4576
case $lt_cv_prog_gnu_ld in
4577
yes*) LD="${LD-ld} -m elf64_sparc" ;;
4578
*) LD="${LD-ld} -64" ;;
4589
need_locks="$enable_libtool_lock"
4593
ac_cpp='$CPP $CPPFLAGS'
4594
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4595
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4596
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4597
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4598
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4599
# On Suns, sometimes $CPP names a directory.
4600
if test -n "$CPP" && test -d "$CPP"; then
4603
if test -z "$CPP"; then
4604
if test "${ac_cv_prog_CPP+set}" = set; then
4605
echo $ECHO_N "(cached) $ECHO_C" >&6
4607
# Double quotes because CPP needs to be expanded
4608
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4611
for ac_c_preproc_warn_flag in '' yes
4613
# Use a header file that comes with gcc, so configuring glibc
4614
# with a fresh cross-compiler works.
4615
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4616
# <limits.h> exists even on freestanding compilers.
4617
# On the NeXT, cc -E runs the code through the compiler's parser,
4618
# not just through cpp. "Syntax error" is here to catch this case.
4619
cat >conftest.$ac_ext <<_ACEOF
4622
cat confdefs.h >>conftest.$ac_ext
4623
cat >>conftest.$ac_ext <<_ACEOF
4624
/* end confdefs.h. */
4626
# include <limits.h>
4628
# include <assert.h>
4632
if { (ac_try="$ac_cpp conftest.$ac_ext"
4634
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4635
*) ac_try_echo=$ac_try;;
4637
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4638
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4640
grep -v '^ *+' conftest.er1 >conftest.err
4642
cat conftest.err >&5
4643
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644
(exit $ac_status); } >/dev/null && {
4645
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4646
test ! -s conftest.err
4650
echo "$as_me: failed program was:" >&5
4651
sed 's/^/| /' conftest.$ac_ext >&5
4653
# Broken: fails on valid input.
4657
rm -f conftest.err conftest.$ac_ext
4659
# OK, works on sane cases. Now check whether nonexistent headers
4660
# can be detected and how.
4661
cat >conftest.$ac_ext <<_ACEOF
4664
cat confdefs.h >>conftest.$ac_ext
4665
cat >>conftest.$ac_ext <<_ACEOF
4666
/* end confdefs.h. */
4667
#include <ac_nonexistent.h>
4669
if { (ac_try="$ac_cpp conftest.$ac_ext"
4671
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4672
*) ac_try_echo=$ac_try;;
4674
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4675
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4677
grep -v '^ *+' conftest.er1 >conftest.err
4679
cat conftest.err >&5
4680
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681
(exit $ac_status); } >/dev/null && {
4682
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4683
test ! -s conftest.err
4685
# Broken: success on invalid input.
4688
echo "$as_me: failed program was:" >&5
4689
sed 's/^/| /' conftest.$ac_ext >&5
4691
# Passes both tests.
4696
rm -f conftest.err conftest.$ac_ext
4699
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4700
rm -f conftest.err conftest.$ac_ext
4701
if $ac_preproc_ok; then
4713
{ echo "$as_me:$LINENO: result: $CPP" >&5
4714
echo "${ECHO_T}$CPP" >&6; }
4716
for ac_c_preproc_warn_flag in '' yes
4718
# Use a header file that comes with gcc, so configuring glibc
4719
# with a fresh cross-compiler works.
4720
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4721
# <limits.h> exists even on freestanding compilers.
4722
# On the NeXT, cc -E runs the code through the compiler's parser,
4723
# not just through cpp. "Syntax error" is here to catch this case.
4724
cat >conftest.$ac_ext <<_ACEOF
4727
cat confdefs.h >>conftest.$ac_ext
4728
cat >>conftest.$ac_ext <<_ACEOF
4729
/* end confdefs.h. */
4731
# include <limits.h>
4733
# include <assert.h>
4737
if { (ac_try="$ac_cpp conftest.$ac_ext"
4739
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4740
*) ac_try_echo=$ac_try;;
4742
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4743
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4745
grep -v '^ *+' conftest.er1 >conftest.err
4747
cat conftest.err >&5
4748
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4749
(exit $ac_status); } >/dev/null && {
4750
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4751
test ! -s conftest.err
4755
echo "$as_me: failed program was:" >&5
4756
sed 's/^/| /' conftest.$ac_ext >&5
4758
# Broken: fails on valid input.
4762
rm -f conftest.err conftest.$ac_ext
4764
# OK, works on sane cases. Now check whether nonexistent headers
4765
# can be detected and how.
4766
cat >conftest.$ac_ext <<_ACEOF
4769
cat confdefs.h >>conftest.$ac_ext
4770
cat >>conftest.$ac_ext <<_ACEOF
4771
/* end confdefs.h. */
4772
#include <ac_nonexistent.h>
4774
if { (ac_try="$ac_cpp conftest.$ac_ext"
4776
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4777
*) ac_try_echo=$ac_try;;
4779
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4780
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4782
grep -v '^ *+' conftest.er1 >conftest.err
4784
cat conftest.err >&5
4785
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4786
(exit $ac_status); } >/dev/null && {
4787
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4788
test ! -s conftest.err
4790
# Broken: success on invalid input.
4793
echo "$as_me: failed program was:" >&5
4794
sed 's/^/| /' conftest.$ac_ext >&5
4796
# Passes both tests.
4801
rm -f conftest.err conftest.$ac_ext
4804
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4805
rm -f conftest.err conftest.$ac_ext
4806
if $ac_preproc_ok; then
4809
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4810
See \`config.log' for more details." >&5
4811
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4812
See \`config.log' for more details." >&2;}
4813
{ (exit 1); exit 1; }; }
4817
ac_cpp='$CPP $CPPFLAGS'
4818
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4819
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4820
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4823
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4824
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4825
if test "${ac_cv_header_stdc+set}" = set; then
4826
echo $ECHO_N "(cached) $ECHO_C" >&6
4828
cat >conftest.$ac_ext <<_ACEOF
4831
cat confdefs.h >>conftest.$ac_ext
4832
cat >>conftest.$ac_ext <<_ACEOF
4833
/* end confdefs.h. */
4847
rm -f conftest.$ac_objext
4848
if { (ac_try="$ac_compile"
4850
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4851
*) ac_try_echo=$ac_try;;
4853
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4854
(eval "$ac_compile") 2>conftest.er1
4856
grep -v '^ *+' conftest.er1 >conftest.err
4858
cat conftest.err >&5
4859
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860
(exit $ac_status); } && {
4861
test -z "$ac_c_werror_flag" ||
4862
test ! -s conftest.err
4863
} && test -s conftest.$ac_objext; then
4864
ac_cv_header_stdc=yes
4866
echo "$as_me: failed program was:" >&5
4867
sed 's/^/| /' conftest.$ac_ext >&5
4869
ac_cv_header_stdc=no
4872
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4874
if test $ac_cv_header_stdc = yes; then
4875
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4876
cat >conftest.$ac_ext <<_ACEOF
4879
cat confdefs.h >>conftest.$ac_ext
4880
cat >>conftest.$ac_ext <<_ACEOF
4881
/* end confdefs.h. */
4885
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4886
$EGREP "memchr" >/dev/null 2>&1; then
4889
ac_cv_header_stdc=no
4895
if test $ac_cv_header_stdc = yes; then
4896
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4897
cat >conftest.$ac_ext <<_ACEOF
4900
cat confdefs.h >>conftest.$ac_ext
4901
cat >>conftest.$ac_ext <<_ACEOF
4902
/* end confdefs.h. */
4906
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4907
$EGREP "free" >/dev/null 2>&1; then
4910
ac_cv_header_stdc=no
4916
if test $ac_cv_header_stdc = yes; then
4917
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4918
if test "$cross_compiling" = yes; then
4921
cat >conftest.$ac_ext <<_ACEOF
4924
cat confdefs.h >>conftest.$ac_ext
4925
cat >>conftest.$ac_ext <<_ACEOF
4926
/* end confdefs.h. */
4929
#if ((' ' & 0x0FF) == 0x020)
4930
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4931
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4933
# define ISLOWER(c) \
4934
(('a' <= (c) && (c) <= 'i') \
4935
|| ('j' <= (c) && (c) <= 'r') \
4936
|| ('s' <= (c) && (c) <= 'z'))
4937
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4940
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4945
for (i = 0; i < 256; i++)
4946
if (XOR (islower (i), ISLOWER (i))
4947
|| toupper (i) != TOUPPER (i))
4952
rm -f conftest$ac_exeext
4953
if { (ac_try="$ac_link"
4955
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4956
*) ac_try_echo=$ac_try;;
4958
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4959
(eval "$ac_link") 2>&5
4961
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4962
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4963
{ (case "(($ac_try" in
4964
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4965
*) ac_try_echo=$ac_try;;
4967
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4968
(eval "$ac_try") 2>&5
4970
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4971
(exit $ac_status); }; }; then
4974
echo "$as_me: program exited with status $ac_status" >&5
4975
echo "$as_me: failed program was:" >&5
4976
sed 's/^/| /' conftest.$ac_ext >&5
4979
ac_cv_header_stdc=no
4981
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4987
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4988
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4989
if test $ac_cv_header_stdc = yes; then
4991
cat >>confdefs.h <<\_ACEOF
4992
#define STDC_HEADERS 1
4997
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5007
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5008
inttypes.h stdint.h unistd.h
5010
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5011
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5012
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5013
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5014
echo $ECHO_N "(cached) $ECHO_C" >&6
5016
cat >conftest.$ac_ext <<_ACEOF
5019
cat confdefs.h >>conftest.$ac_ext
5020
cat >>conftest.$ac_ext <<_ACEOF
5021
/* end confdefs.h. */
5022
$ac_includes_default
5024
#include <$ac_header>
5026
rm -f conftest.$ac_objext
5027
if { (ac_try="$ac_compile"
5029
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5030
*) ac_try_echo=$ac_try;;
5032
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5033
(eval "$ac_compile") 2>conftest.er1
5035
grep -v '^ *+' conftest.er1 >conftest.err
5037
cat conftest.err >&5
5038
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5039
(exit $ac_status); } && {
5040
test -z "$ac_c_werror_flag" ||
5041
test ! -s conftest.err
5042
} && test -s conftest.$ac_objext; then
5043
eval "$as_ac_Header=yes"
5045
echo "$as_me: failed program was:" >&5
5046
sed 's/^/| /' conftest.$ac_ext >&5
5048
eval "$as_ac_Header=no"
5051
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5053
ac_res=`eval echo '${'$as_ac_Header'}'`
5054
{ echo "$as_me:$LINENO: result: $ac_res" >&5
5055
echo "${ECHO_T}$ac_res" >&6; }
5056
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5057
cat >>confdefs.h <<_ACEOF
5058
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5067
for ac_header in dlfcn.h
5069
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5070
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5071
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5072
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5073
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5074
echo $ECHO_N "(cached) $ECHO_C" >&6
5076
ac_res=`eval echo '${'$as_ac_Header'}'`
5077
{ echo "$as_me:$LINENO: result: $ac_res" >&5
5078
echo "${ECHO_T}$ac_res" >&6; }
5080
# Is the header compilable?
5081
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5082
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5083
cat >conftest.$ac_ext <<_ACEOF
5086
cat confdefs.h >>conftest.$ac_ext
5087
cat >>conftest.$ac_ext <<_ACEOF
5088
/* end confdefs.h. */
5089
$ac_includes_default
5090
#include <$ac_header>
5092
rm -f conftest.$ac_objext
5093
if { (ac_try="$ac_compile"
5095
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5096
*) ac_try_echo=$ac_try;;
5098
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5099
(eval "$ac_compile") 2>conftest.er1
5101
grep -v '^ *+' conftest.er1 >conftest.err
5103
cat conftest.err >&5
5104
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5105
(exit $ac_status); } && {
5106
test -z "$ac_c_werror_flag" ||
5107
test ! -s conftest.err
5108
} && test -s conftest.$ac_objext; then
5109
ac_header_compiler=yes
5111
echo "$as_me: failed program was:" >&5
5112
sed 's/^/| /' conftest.$ac_ext >&5
5114
ac_header_compiler=no
5117
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5118
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5119
echo "${ECHO_T}$ac_header_compiler" >&6; }
5121
# Is the header present?
5122
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5123
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5124
cat >conftest.$ac_ext <<_ACEOF
5127
cat confdefs.h >>conftest.$ac_ext
5128
cat >>conftest.$ac_ext <<_ACEOF
5129
/* end confdefs.h. */
5130
#include <$ac_header>
5132
if { (ac_try="$ac_cpp conftest.$ac_ext"
5134
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5135
*) ac_try_echo=$ac_try;;
5137
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5138
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5140
grep -v '^ *+' conftest.er1 >conftest.err
5142
cat conftest.err >&5
5143
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5144
(exit $ac_status); } >/dev/null && {
5145
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5146
test ! -s conftest.err
5148
ac_header_preproc=yes
5150
echo "$as_me: failed program was:" >&5
5151
sed 's/^/| /' conftest.$ac_ext >&5
5153
ac_header_preproc=no
5156
rm -f conftest.err conftest.$ac_ext
5157
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5158
echo "${ECHO_T}$ac_header_preproc" >&6; }
5160
# So? What about this header?
5161
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5163
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5164
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5165
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5166
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5167
ac_header_preproc=yes
5170
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5171
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5172
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5173
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5174
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5175
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5176
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5177
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5178
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5179
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5180
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5181
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5183
## -------------------------------------------------- ##
5184
## Report this to http://thinkfinger.sourceforge.net/ ##
5185
## -------------------------------------------------- ##
5187
) | sed "s/^/$as_me: WARNING: /" >&2
5190
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5191
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5192
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5193
echo $ECHO_N "(cached) $ECHO_C" >&6
5195
eval "$as_ac_Header=\$ac_header_preproc"
5197
ac_res=`eval echo '${'$as_ac_Header'}'`
5198
{ echo "$as_me:$LINENO: result: $ac_res" >&5
5199
echo "${ECHO_T}$ac_res" >&6; }
5202
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5203
cat >>confdefs.h <<_ACEOF
5204
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5212
ac_cpp='$CXXCPP $CPPFLAGS'
5213
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5214
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5215
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5216
if test -z "$CXX"; then
5217
if test -n "$CCC"; then
5220
if test -n "$ac_tool_prefix"; then
5221
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5223
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5224
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5225
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5226
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5227
if test "${ac_cv_prog_CXX+set}" = set; then
5228
echo $ECHO_N "(cached) $ECHO_C" >&6
5230
if test -n "$CXX"; then
5231
ac_cv_prog_CXX="$CXX" # Let the user override the test.
5233
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5237
test -z "$as_dir" && as_dir=.
5238
for ac_exec_ext in '' $ac_executable_extensions; do
5239
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5240
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5241
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5251
if test -n "$CXX"; then
5252
{ echo "$as_me:$LINENO: result: $CXX" >&5
5253
echo "${ECHO_T}$CXX" >&6; }
5255
{ echo "$as_me:$LINENO: result: no" >&5
5256
echo "${ECHO_T}no" >&6; }
5260
test -n "$CXX" && break
5263
if test -z "$CXX"; then
5265
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5267
# Extract the first word of "$ac_prog", so it can be a program name with args.
5268
set dummy $ac_prog; ac_word=$2
5269
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5270
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5271
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5272
echo $ECHO_N "(cached) $ECHO_C" >&6
5274
if test -n "$ac_ct_CXX"; then
5275
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5277
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5281
test -z "$as_dir" && as_dir=.
5282
for ac_exec_ext in '' $ac_executable_extensions; do
5283
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5284
ac_cv_prog_ac_ct_CXX="$ac_prog"
5285
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5294
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5295
if test -n "$ac_ct_CXX"; then
5296
{ echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5297
echo "${ECHO_T}$ac_ct_CXX" >&6; }
5299
{ echo "$as_me:$LINENO: result: no" >&5
5300
echo "${ECHO_T}no" >&6; }
5304
test -n "$ac_ct_CXX" && break
5307
if test "x$ac_ct_CXX" = x; then
5310
case $cross_compiling:$ac_tool_warned in
5312
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5313
whose name does not start with the host triplet. If you think this
5314
configuration is useful to you, please write to autoconf@gnu.org." >&5
5315
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5316
whose name does not start with the host triplet. If you think this
5317
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5318
ac_tool_warned=yes ;;
5326
# Provide some information about the compiler.
5327
echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5328
ac_compiler=`set X $ac_compile; echo $2`
5329
{ (ac_try="$ac_compiler --version >&5"
5331
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5332
*) ac_try_echo=$ac_try;;
5334
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5335
(eval "$ac_compiler --version >&5") 2>&5
5337
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5338
(exit $ac_status); }
5339
{ (ac_try="$ac_compiler -v >&5"
5341
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5342
*) ac_try_echo=$ac_try;;
5344
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5345
(eval "$ac_compiler -v >&5") 2>&5
5347
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5348
(exit $ac_status); }
5349
{ (ac_try="$ac_compiler -V >&5"
5351
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5352
*) ac_try_echo=$ac_try;;
5354
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5355
(eval "$ac_compiler -V >&5") 2>&5
5357
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5358
(exit $ac_status); }
5360
{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5361
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5362
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5363
echo $ECHO_N "(cached) $ECHO_C" >&6
5365
cat >conftest.$ac_ext <<_ACEOF
5368
cat confdefs.h >>conftest.$ac_ext
5369
cat >>conftest.$ac_ext <<_ACEOF
5370
/* end confdefs.h. */
5383
rm -f conftest.$ac_objext
5384
if { (ac_try="$ac_compile"
5386
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5387
*) ac_try_echo=$ac_try;;
5389
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5390
(eval "$ac_compile") 2>conftest.er1
5392
grep -v '^ *+' conftest.er1 >conftest.err
5394
cat conftest.err >&5
5395
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5396
(exit $ac_status); } && {
5397
test -z "$ac_cxx_werror_flag" ||
5398
test ! -s conftest.err
5399
} && test -s conftest.$ac_objext; then
5402
echo "$as_me: failed program was:" >&5
5403
sed 's/^/| /' conftest.$ac_ext >&5
5408
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5409
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5412
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5413
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5414
GXX=`test $ac_compiler_gnu = yes && echo yes`
5415
ac_test_CXXFLAGS=${CXXFLAGS+set}
5416
ac_save_CXXFLAGS=$CXXFLAGS
5417
{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5418
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5419
if test "${ac_cv_prog_cxx_g+set}" = set; then
5420
echo $ECHO_N "(cached) $ECHO_C" >&6
5422
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5423
ac_cxx_werror_flag=yes
5426
cat >conftest.$ac_ext <<_ACEOF
5429
cat confdefs.h >>conftest.$ac_ext
5430
cat >>conftest.$ac_ext <<_ACEOF
5431
/* end confdefs.h. */
5441
rm -f conftest.$ac_objext
5442
if { (ac_try="$ac_compile"
5444
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5445
*) ac_try_echo=$ac_try;;
5447
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5448
(eval "$ac_compile") 2>conftest.er1
5450
grep -v '^ *+' conftest.er1 >conftest.err
5452
cat conftest.err >&5
5453
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5454
(exit $ac_status); } && {
5455
test -z "$ac_cxx_werror_flag" ||
5456
test ! -s conftest.err
5457
} && test -s conftest.$ac_objext; then
5458
ac_cv_prog_cxx_g=yes
5460
echo "$as_me: failed program was:" >&5
5461
sed 's/^/| /' conftest.$ac_ext >&5
5464
cat >conftest.$ac_ext <<_ACEOF
5467
cat confdefs.h >>conftest.$ac_ext
5468
cat >>conftest.$ac_ext <<_ACEOF
5469
/* end confdefs.h. */
5479
rm -f conftest.$ac_objext
5480
if { (ac_try="$ac_compile"
5482
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5483
*) ac_try_echo=$ac_try;;
5485
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5486
(eval "$ac_compile") 2>conftest.er1
5488
grep -v '^ *+' conftest.er1 >conftest.err
5490
cat conftest.err >&5
5491
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5492
(exit $ac_status); } && {
5493
test -z "$ac_cxx_werror_flag" ||
5494
test ! -s conftest.err
5495
} && test -s conftest.$ac_objext; then
5498
echo "$as_me: failed program was:" >&5
5499
sed 's/^/| /' conftest.$ac_ext >&5
5501
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5503
cat >conftest.$ac_ext <<_ACEOF
5506
cat confdefs.h >>conftest.$ac_ext
5507
cat >>conftest.$ac_ext <<_ACEOF
5508
/* end confdefs.h. */
5518
rm -f conftest.$ac_objext
5519
if { (ac_try="$ac_compile"
5521
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5522
*) ac_try_echo=$ac_try;;
5524
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5525
(eval "$ac_compile") 2>conftest.er1
5527
grep -v '^ *+' conftest.er1 >conftest.err
5529
cat conftest.err >&5
5530
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531
(exit $ac_status); } && {
5532
test -z "$ac_cxx_werror_flag" ||
5533
test ! -s conftest.err
5534
} && test -s conftest.$ac_objext; then
5535
ac_cv_prog_cxx_g=yes
5537
echo "$as_me: failed program was:" >&5
5538
sed 's/^/| /' conftest.$ac_ext >&5
5543
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5546
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5549
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5550
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5552
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5553
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5554
if test "$ac_test_CXXFLAGS" = set; then
5555
CXXFLAGS=$ac_save_CXXFLAGS
5556
elif test $ac_cv_prog_cxx_g = yes; then
5557
if test "$GXX" = yes; then
5563
if test "$GXX" = yes; then
5570
ac_cpp='$CXXCPP $CPPFLAGS'
5571
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5572
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5573
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5575
depcc="$CXX" am_compiler_list=
5577
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5578
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5579
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5580
echo $ECHO_N "(cached) $ECHO_C" >&6
5582
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5583
# We make a subdir and do the tests there. Otherwise we can end up
5584
# making bogus files that we don't know about and never remove. For
5585
# instance it was reported that on HP-UX the gcc test will end up
5586
# making a dummy file named `D' -- because `-MD' means `put the output
5589
# Copy depcomp to subdir because otherwise we won't find it if we're
5590
# using a relative directory.
5591
cp "$am_depcomp" conftest.dir
5593
# We will build objects and dependencies in a subdirectory because
5594
# it helps to detect inapplicable dependency modes. For instance
5595
# both Tru64's cc and ICC support -MD to output dependencies as a
5596
# side effect of compilation, but ICC will put the dependencies in
5597
# the current directory while Tru64 will put them in the object
5601
am_cv_CXX_dependencies_compiler_type=none
5602
if test "$am_compiler_list" = ""; then
5603
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5605
for depmode in $am_compiler_list; do
5606
# Setup a source with many dependencies, because some compilers
5607
# like to wrap large dependency lists on column 80 (with \), and
5608
# we should not choose a depcomp mode which is confused by this.
5610
# We need to recreate these files for each test, as the compiler may
5611
# overwrite some of them when testing with obscure command lines.
5612
# This happens at least with the AIX C compiler.
5614
for i in 1 2 3 4 5 6; do
5615
echo '#include "conftst'$i'.h"' >> sub/conftest.c
5616
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5617
# Solaris 8's {/usr,}/bin/sh.
5618
touch sub/conftst$i.h
5620
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5624
# after this tag, mechanisms are not by side-effect, so they'll
5625
# only be used when explicitly requested
5626
if test "x$enable_dependency_tracking" = xyes; then
5634
# We check with `-c' and `-o' for the sake of the "dashmstdout"
5635
# mode. It turns out that the SunPro C++ compiler does not properly
5636
# handle `-M -o', and we need to detect this.
5637
if depmode=$depmode \
5638
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5639
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5640
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5641
>/dev/null 2>conftest.err &&
5642
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5643
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5644
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5645
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5646
# icc doesn't choke on unknown options, it will just issue warnings
5647
# or remarks (even with -Werror). So we grep stderr for any message
5648
# that says an option was ignored or not supported.
5649
# When given -MP, icc 7.0 and 7.1 complain thusly:
5650
# icc: Command line warning: ignoring option '-M'; no argument required
5651
# The diagnosis changed in icc 8.0:
5652
# icc: Command line remark: option '-MP' not supported
5653
if (grep 'ignoring option' conftest.err ||
5654
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5655
am_cv_CXX_dependencies_compiler_type=$depmode
5664
am_cv_CXX_dependencies_compiler_type=none
5668
{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5669
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5670
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5673
test "x$enable_dependency_tracking" != xno \
5674
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5675
am__fastdepCXX_TRUE=
5676
am__fastdepCXX_FALSE='#'
5678
am__fastdepCXX_TRUE='#'
5679
am__fastdepCXX_FALSE=
5685
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5686
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5687
(test "X$CXX" != "Xg++"))) ; then
5689
ac_cpp='$CXXCPP $CPPFLAGS'
5690
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5691
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5692
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5693
{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5694
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5695
if test -z "$CXXCPP"; then
5696
if test "${ac_cv_prog_CXXCPP+set}" = set; then
5697
echo $ECHO_N "(cached) $ECHO_C" >&6
5699
# Double quotes because CXXCPP needs to be expanded
5700
for CXXCPP in "$CXX -E" "/lib/cpp"
5703
for ac_cxx_preproc_warn_flag in '' yes
5705
# Use a header file that comes with gcc, so configuring glibc
5706
# with a fresh cross-compiler works.
5707
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5708
# <limits.h> exists even on freestanding compilers.
5709
# On the NeXT, cc -E runs the code through the compiler's parser,
5710
# not just through cpp. "Syntax error" is here to catch this case.
5711
cat >conftest.$ac_ext <<_ACEOF
5714
cat confdefs.h >>conftest.$ac_ext
5715
cat >>conftest.$ac_ext <<_ACEOF
5716
/* end confdefs.h. */
5718
# include <limits.h>
5720
# include <assert.h>
5724
if { (ac_try="$ac_cpp conftest.$ac_ext"
5726
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5727
*) ac_try_echo=$ac_try;;
5729
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5730
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5732
grep -v '^ *+' conftest.er1 >conftest.err
5734
cat conftest.err >&5
5735
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736
(exit $ac_status); } >/dev/null && {
5737
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5738
test ! -s conftest.err
5742
echo "$as_me: failed program was:" >&5
5743
sed 's/^/| /' conftest.$ac_ext >&5
5745
# Broken: fails on valid input.
5749
rm -f conftest.err conftest.$ac_ext
5751
# OK, works on sane cases. Now check whether nonexistent headers
5752
# can be detected and how.
5753
cat >conftest.$ac_ext <<_ACEOF
5756
cat confdefs.h >>conftest.$ac_ext
5757
cat >>conftest.$ac_ext <<_ACEOF
5758
/* end confdefs.h. */
5759
#include <ac_nonexistent.h>
5761
if { (ac_try="$ac_cpp conftest.$ac_ext"
5763
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5764
*) ac_try_echo=$ac_try;;
5766
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5767
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5769
grep -v '^ *+' conftest.er1 >conftest.err
5771
cat conftest.err >&5
5772
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5773
(exit $ac_status); } >/dev/null && {
5774
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5775
test ! -s conftest.err
5777
# Broken: success on invalid input.
5780
echo "$as_me: failed program was:" >&5
5781
sed 's/^/| /' conftest.$ac_ext >&5
5783
# Passes both tests.
5788
rm -f conftest.err conftest.$ac_ext
5791
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5792
rm -f conftest.err conftest.$ac_ext
5793
if $ac_preproc_ok; then
5798
ac_cv_prog_CXXCPP=$CXXCPP
5801
CXXCPP=$ac_cv_prog_CXXCPP
5803
ac_cv_prog_CXXCPP=$CXXCPP
5805
{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
5806
echo "${ECHO_T}$CXXCPP" >&6; }
5808
for ac_cxx_preproc_warn_flag in '' yes
5810
# Use a header file that comes with gcc, so configuring glibc
5811
# with a fresh cross-compiler works.
5812
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5813
# <limits.h> exists even on freestanding compilers.
5814
# On the NeXT, cc -E runs the code through the compiler's parser,
5815
# not just through cpp. "Syntax error" is here to catch this case.
5816
cat >conftest.$ac_ext <<_ACEOF
5819
cat confdefs.h >>conftest.$ac_ext
5820
cat >>conftest.$ac_ext <<_ACEOF
5821
/* end confdefs.h. */
5823
# include <limits.h>
5825
# include <assert.h>
5829
if { (ac_try="$ac_cpp conftest.$ac_ext"
5831
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5832
*) ac_try_echo=$ac_try;;
5834
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5835
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5837
grep -v '^ *+' conftest.er1 >conftest.err
5839
cat conftest.err >&5
5840
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5841
(exit $ac_status); } >/dev/null && {
5842
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5843
test ! -s conftest.err
5847
echo "$as_me: failed program was:" >&5
5848
sed 's/^/| /' conftest.$ac_ext >&5
5850
# Broken: fails on valid input.
5854
rm -f conftest.err conftest.$ac_ext
5856
# OK, works on sane cases. Now check whether nonexistent headers
5857
# can be detected and how.
5858
cat >conftest.$ac_ext <<_ACEOF
5861
cat confdefs.h >>conftest.$ac_ext
5862
cat >>conftest.$ac_ext <<_ACEOF
5863
/* end confdefs.h. */
5864
#include <ac_nonexistent.h>
5866
if { (ac_try="$ac_cpp conftest.$ac_ext"
5868
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5869
*) ac_try_echo=$ac_try;;
5871
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5872
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5874
grep -v '^ *+' conftest.er1 >conftest.err
5876
cat conftest.err >&5
5877
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878
(exit $ac_status); } >/dev/null && {
5879
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5880
test ! -s conftest.err
5882
# Broken: success on invalid input.
5885
echo "$as_me: failed program was:" >&5
5886
sed 's/^/| /' conftest.$ac_ext >&5
5888
# Passes both tests.
5893
rm -f conftest.err conftest.$ac_ext
5896
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5897
rm -f conftest.err conftest.$ac_ext
5898
if $ac_preproc_ok; then
5901
{ { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5902
See \`config.log' for more details." >&5
5903
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5904
See \`config.log' for more details." >&2;}
5905
{ (exit 1); exit 1; }; }
5909
ac_cpp='$CXXCPP $CPPFLAGS'
5910
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5911
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5912
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5918
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5919
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5920
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5921
if test -n "$ac_tool_prefix"; then
5922
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
5924
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5925
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5926
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5927
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5928
if test "${ac_cv_prog_F77+set}" = set; then
5929
echo $ECHO_N "(cached) $ECHO_C" >&6
5931
if test -n "$F77"; then
5932
ac_cv_prog_F77="$F77" # Let the user override the test.
5934
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5938
test -z "$as_dir" && as_dir=.
5939
for ac_exec_ext in '' $ac_executable_extensions; do
5940
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5941
ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5942
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5952
if test -n "$F77"; then
5953
{ echo "$as_me:$LINENO: result: $F77" >&5
5954
echo "${ECHO_T}$F77" >&6; }
5956
{ echo "$as_me:$LINENO: result: no" >&5
5957
echo "${ECHO_T}no" >&6; }
5961
test -n "$F77" && break
5964
if test -z "$F77"; then
5966
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
5968
# Extract the first word of "$ac_prog", so it can be a program name with args.
5969
set dummy $ac_prog; ac_word=$2
5970
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5971
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5972
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5973
echo $ECHO_N "(cached) $ECHO_C" >&6
5975
if test -n "$ac_ct_F77"; then
5976
ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5978
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5982
test -z "$as_dir" && as_dir=.
5983
for ac_exec_ext in '' $ac_executable_extensions; do
5984
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5985
ac_cv_prog_ac_ct_F77="$ac_prog"
5986
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5995
ac_ct_F77=$ac_cv_prog_ac_ct_F77
5996
if test -n "$ac_ct_F77"; then
5997
{ echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5998
echo "${ECHO_T}$ac_ct_F77" >&6; }
6000
{ echo "$as_me:$LINENO: result: no" >&5
6001
echo "${ECHO_T}no" >&6; }
6005
test -n "$ac_ct_F77" && break
6008
if test "x$ac_ct_F77" = x; then
6011
case $cross_compiling:$ac_tool_warned in
6013
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6014
whose name does not start with the host triplet. If you think this
6015
configuration is useful to you, please write to autoconf@gnu.org." >&5
6016
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6017
whose name does not start with the host triplet. If you think this
6018
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6019
ac_tool_warned=yes ;;
6026
# Provide some information about the compiler.
6027
echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6028
ac_compiler=`set X $ac_compile; echo $2`
6029
{ (ac_try="$ac_compiler --version >&5"
6031
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6032
*) ac_try_echo=$ac_try;;
6034
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6035
(eval "$ac_compiler --version >&5") 2>&5
6037
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6038
(exit $ac_status); }
6039
{ (ac_try="$ac_compiler -v >&5"
6041
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6042
*) ac_try_echo=$ac_try;;
6044
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6045
(eval "$ac_compiler -v >&5") 2>&5
6047
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048
(exit $ac_status); }
6049
{ (ac_try="$ac_compiler -V >&5"
6051
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6052
*) ac_try_echo=$ac_try;;
6054
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6055
(eval "$ac_compiler -V >&5") 2>&5
6057
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6058
(exit $ac_status); }
6061
# If we don't use `.F' as extension, the preprocessor is not run on the
6062
# input file. (Note that this only needs to work for GNU compilers.)
6065
{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6066
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6067
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6068
echo $ECHO_N "(cached) $ECHO_C" >&6
6070
cat >conftest.$ac_ext <<_ACEOF
6078
rm -f conftest.$ac_objext
6079
if { (ac_try="$ac_compile"
6081
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6082
*) ac_try_echo=$ac_try;;
6084
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6085
(eval "$ac_compile") 2>conftest.er1
6087
grep -v '^ *+' conftest.er1 >conftest.err
6089
cat conftest.err >&5
6090
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091
(exit $ac_status); } && {
6092
test -z "$ac_f77_werror_flag" ||
6093
test ! -s conftest.err
6094
} && test -s conftest.$ac_objext; then
6097
echo "$as_me: failed program was:" >&5
6098
sed 's/^/| /' conftest.$ac_ext >&5
6103
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6104
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6107
{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6108
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6110
ac_test_FFLAGS=${FFLAGS+set}
6111
ac_save_FFLAGS=$FFLAGS
6113
{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6114
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6115
if test "${ac_cv_prog_f77_g+set}" = set; then
6116
echo $ECHO_N "(cached) $ECHO_C" >&6
6119
cat >conftest.$ac_ext <<_ACEOF
6124
rm -f conftest.$ac_objext
6125
if { (ac_try="$ac_compile"
6127
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6128
*) ac_try_echo=$ac_try;;
6130
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6131
(eval "$ac_compile") 2>conftest.er1
6133
grep -v '^ *+' conftest.er1 >conftest.err
6135
cat conftest.err >&5
6136
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6137
(exit $ac_status); } && {
6138
test -z "$ac_f77_werror_flag" ||
6139
test ! -s conftest.err
6140
} && test -s conftest.$ac_objext; then
6141
ac_cv_prog_f77_g=yes
6143
echo "$as_me: failed program was:" >&5
6144
sed 's/^/| /' conftest.$ac_ext >&5
6149
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6152
{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6153
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6154
if test "$ac_test_FFLAGS" = set; then
6155
FFLAGS=$ac_save_FFLAGS
6156
elif test $ac_cv_prog_f77_g = yes; then
6157
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6163
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6170
G77=`test $ac_compiler_gnu = yes && echo yes`
6172
ac_cpp='$CPP $CPPFLAGS'
6173
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6174
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6175
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6179
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6181
# find the maximum length of command line arguments
6182
{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6183
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6184
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6185
echo $ECHO_N "(cached) $ECHO_C" >&6
6192
# On DJGPP, this test can blow up pretty badly due to problems in libc
6193
# (any single argument exceeding 2000 bytes causes a buffer overrun
6194
# during glob expansion). Even if it were fixed, the result of this
6195
# check would be larger than it should be.
6196
lt_cv_sys_max_cmd_len=12288; # 12K is about right
6200
# Under GNU Hurd, this test is not required because there is
6201
# no limit to the length of command line arguments.
6202
# Libtool will interpret -1 as no limit whatsoever
6203
lt_cv_sys_max_cmd_len=-1;
6207
# On Win9x/ME, this test blows up -- it succeeds, but takes
6208
# about 5 minutes as the teststring grows exponentially.
6209
# Worse, since 9x/ME are not pre-emptively multitasking,
6210
# you end up with a "frozen" computer, even though with patience
6211
# the test eventually succeeds (with a max line length of 256k).
6212
# Instead, let's just punt: use the minimum linelength reported by
6213
# all of the supported platforms: 8192 (on NT/2K/XP).
6214
lt_cv_sys_max_cmd_len=8192;
6218
# On AmigaOS with pdksh, this test takes hours, literally.
6219
# So we just punt and use a minimum line length of 8192.
6220
lt_cv_sys_max_cmd_len=8192;
6223
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6224
# This has been around since 386BSD, at least. Likely further.
6225
if test -x /sbin/sysctl; then
6226
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6227
elif test -x /usr/sbin/sysctl; then
6228
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6230
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6232
# And add a safety zone
6233
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6234
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6238
# We know the value 262144 and hardcode it with a safety zone (like BSD)
6239
lt_cv_sys_max_cmd_len=196608
6243
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6244
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6245
# nice to cause kernel panics so lets avoid the loop below.
6246
# First set a reasonable default.
6247
lt_cv_sys_max_cmd_len=16384
6249
if test -x /sbin/sysconfig; then
6250
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6251
*1*) lt_cv_sys_max_cmd_len=-1 ;;
6256
lt_cv_sys_max_cmd_len=102400
6258
sysv5* | sco5v6* | sysv4.2uw2*)
6259
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6260
if test -n "$kargmax"; then
6261
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6263
lt_cv_sys_max_cmd_len=32768
6267
# If test is not a shell built-in, we'll probably end up computing a
6268
# maximum length that is only half of the actual maximum length, but
6270
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6271
while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6272
= "XX$teststring") >/dev/null 2>&1 &&
6273
new_result=`expr "X$teststring" : ".*" 2>&1` &&
6274
lt_cv_sys_max_cmd_len=$new_result &&
6275
test $i != 17 # 1/2 MB should be enough
6278
teststring=$teststring$teststring
6281
# Add a significant safety factor because C++ compilers can tack on massive
6282
# amounts of additional arguments before passing them to the linker.
6283
# It appears as though 1/2 is a usable value.
6284
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6290
if test -n $lt_cv_sys_max_cmd_len ; then
6291
{ echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6292
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6294
{ echo "$as_me:$LINENO: result: none" >&5
6295
echo "${ECHO_T}none" >&6; }
6301
# Check for command to grab the raw symbol name followed by C symbol from nm.
6302
{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6303
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6304
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6305
echo $ECHO_N "(cached) $ECHO_C" >&6
6308
# These are sane defaults that work on at least a few old systems.
6309
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6311
# Character class describing NM global symbol codes.
6312
symcode='[BCDEGRST]'
6314
# Regexp to match symbols that can be accessed directly from C.
6315
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6317
# Transform an extracted symbol line into a proper C declaration
6318
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6320
# Transform an extracted symbol line into symbol name and symbol address
6321
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'"
6323
# Define system-specific variables.
6328
cygwin* | mingw* | pw32*)
6329
symcode='[ABCDGISTW]'
6331
hpux*) # Its linker distinguishes data from code symbols
6332
if test "$host_cpu" = ia64; then
6333
symcode='[ABCDEGRST]'
6335
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6336
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'"
6339
if test "$host_cpu" = ia64; then
6340
symcode='[ABCDGIRSTW]'
6341
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6342
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'"
6346
symcode='[BCDEGRST]'
6349
symcode='[BCDEGQRST]'
6360
sysv5* | sco5v6* | unixware* | OpenUNIX*)
6368
# Handle CRLF in mingw tool chain
6372
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6376
# If we're using GNU nm, then use its standard symbol codes.
6377
case `$NM -V 2>&1` in
6378
*GNU* | *'with BFD'*)
6379
symcode='[ABCDGIRSTW]' ;;
6382
# Try without a prefix undercore, then with it.
6383
for ac_symprfx in "" "_"; do
6385
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6386
symxfrm="\\1 $ac_symprfx\\2 \\2"
6388
# Write the raw and C identifiers.
6389
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6391
# Check to see that the pipe works correctly.
6395
cat > conftest.$ac_ext <<EOF
6400
void nm_test_func(){}
6404
int main(){nm_test_var='a';nm_test_func();return(0);}
6407
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6408
(eval $ac_compile) 2>&5
6410
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6411
(exit $ac_status); }; then
6412
# Now try to grab the symbols.
6414
if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6415
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6417
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6418
(exit $ac_status); } && test -s "$nlist"; then
6419
# Try sorting and uniquifying the output.
6420
if sort "$nlist" | uniq > "$nlist"T; then
6421
mv -f "$nlist"T "$nlist"
6426
# Make sure that we snagged all the symbols we need.
6427
if grep ' nm_test_var$' "$nlist" >/dev/null; then
6428
if grep ' nm_test_func$' "$nlist" >/dev/null; then
6429
cat <<EOF > conftest.$ac_ext
6435
# Now generate the symbol file.
6436
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6438
cat <<EOF >> conftest.$ac_ext
6439
#if defined (__STDC__) && __STDC__
6440
# define lt_ptr_t void *
6442
# define lt_ptr_t char *
6446
/* The mapping between symbol names and symbols. */
6451
lt_preloaded_symbols[] =
6454
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6455
cat <<\EOF >> conftest.$ac_ext
6463
# Now try linking the two files.
6464
mv conftest.$ac_objext conftstm.$ac_objext
6465
lt_save_LIBS="$LIBS"
6466
lt_save_CFLAGS="$CFLAGS"
6467
LIBS="conftstm.$ac_objext"
6468
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6469
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6470
(eval $ac_link) 2>&5
6472
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6473
(exit $ac_status); } && test -s conftest${ac_exeext}; then
6476
LIBS="$lt_save_LIBS"
6477
CFLAGS="$lt_save_CFLAGS"
6479
echo "cannot find nm_test_func in $nlist" >&5
6482
echo "cannot find nm_test_var in $nlist" >&5
6485
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6488
echo "$progname: failed program was:" >&5
6489
cat conftest.$ac_ext >&5
6491
rm -f conftest* conftst*
6493
# Do not use the global_symbol_pipe unless it works.
6494
if test "$pipe_works" = yes; then
6497
lt_cv_sys_global_symbol_pipe=
6503
if test -z "$lt_cv_sys_global_symbol_pipe"; then
6504
lt_cv_sys_global_symbol_to_cdecl=
6506
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6507
{ echo "$as_me:$LINENO: result: failed" >&5
6508
echo "${ECHO_T}failed" >&6; }
6510
{ echo "$as_me:$LINENO: result: ok" >&5
6511
echo "${ECHO_T}ok" >&6; }
6514
{ echo "$as_me:$LINENO: checking for objdir" >&5
6515
echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6516
if test "${lt_cv_objdir+set}" = set; then
6517
echo $ECHO_N "(cached) $ECHO_C" >&6
6519
rm -f .libs 2>/dev/null
6520
mkdir .libs 2>/dev/null
6521
if test -d .libs; then
6524
# MS-DOS does not allow filenames that begin with a dot.
6527
rmdir .libs 2>/dev/null
6529
{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6530
echo "${ECHO_T}$lt_cv_objdir" >&6; }
6531
objdir=$lt_cv_objdir
6539
# AIX sometimes has problems with the GCC collect2 program. For some
6540
# reason, if we set the COLLECT_NAMES environment variable, the problems
6541
# vanish in a puff of smoke.
6542
if test "X${COLLECT_NAMES+set}" != Xset; then
6544
export COLLECT_NAMES
6549
# Sed substitution that helps us do robust quoting. It backslashifies
6550
# metacharacters that are still active within double-quoted strings.
6551
Xsed='sed -e 1s/^X//'
6552
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6554
# Same as above, but do not quote variable references.
6555
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6557
# Sed substitution to delay expansion of an escaped shell variable in a
6558
# double_quote_subst'ed string.
6559
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6561
# Sed substitution to avoid accidental globbing in evaled expressions
6562
no_glob_subst='s/\*/\\\*/g'
6568
default_ofile=libtool
6569
can_build_shared=yes
6571
# All known linkers require a `.a' archive for static linking (except MSVC,
6572
# which needs '.lib').
6574
ltmain="$ac_aux_dir/ltmain.sh"
6575
ofile="$default_ofile"
6576
with_gnu_ld="$lt_cv_prog_gnu_ld"
6578
if test -n "$ac_tool_prefix"; then
6579
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6580
set dummy ${ac_tool_prefix}ar; ac_word=$2
6581
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6582
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6583
if test "${ac_cv_prog_AR+set}" = set; then
6584
echo $ECHO_N "(cached) $ECHO_C" >&6
6586
if test -n "$AR"; then
6587
ac_cv_prog_AR="$AR" # Let the user override the test.
6589
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6593
test -z "$as_dir" && as_dir=.
6594
for ac_exec_ext in '' $ac_executable_extensions; do
6595
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6596
ac_cv_prog_AR="${ac_tool_prefix}ar"
6597
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6607
if test -n "$AR"; then
6608
{ echo "$as_me:$LINENO: result: $AR" >&5
6609
echo "${ECHO_T}$AR" >&6; }
6611
{ echo "$as_me:$LINENO: result: no" >&5
6612
echo "${ECHO_T}no" >&6; }
6617
if test -z "$ac_cv_prog_AR"; then
6619
# Extract the first word of "ar", so it can be a program name with args.
6620
set dummy ar; ac_word=$2
6621
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6622
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6623
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6624
echo $ECHO_N "(cached) $ECHO_C" >&6
6626
if test -n "$ac_ct_AR"; then
6627
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6629
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6633
test -z "$as_dir" && as_dir=.
6634
for ac_exec_ext in '' $ac_executable_extensions; do
6635
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6636
ac_cv_prog_ac_ct_AR="ar"
6637
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6646
ac_ct_AR=$ac_cv_prog_ac_ct_AR
6647
if test -n "$ac_ct_AR"; then
6648
{ echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6649
echo "${ECHO_T}$ac_ct_AR" >&6; }
6651
{ echo "$as_me:$LINENO: result: no" >&5
6652
echo "${ECHO_T}no" >&6; }
6655
if test "x$ac_ct_AR" = x; then
6658
case $cross_compiling:$ac_tool_warned in
6660
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6661
whose name does not start with the host triplet. If you think this
6662
configuration is useful to you, please write to autoconf@gnu.org." >&5
6663
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6664
whose name does not start with the host triplet. If you think this
6665
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6666
ac_tool_warned=yes ;;
6674
if test -n "$ac_tool_prefix"; then
6675
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6676
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6677
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6678
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6679
if test "${ac_cv_prog_RANLIB+set}" = set; then
6680
echo $ECHO_N "(cached) $ECHO_C" >&6
6682
if test -n "$RANLIB"; then
6683
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6685
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6689
test -z "$as_dir" && as_dir=.
6690
for ac_exec_ext in '' $ac_executable_extensions; do
6691
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6692
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6693
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6702
RANLIB=$ac_cv_prog_RANLIB
6703
if test -n "$RANLIB"; then
6704
{ echo "$as_me:$LINENO: result: $RANLIB" >&5
6705
echo "${ECHO_T}$RANLIB" >&6; }
6707
{ echo "$as_me:$LINENO: result: no" >&5
6708
echo "${ECHO_T}no" >&6; }
6713
if test -z "$ac_cv_prog_RANLIB"; then
6714
ac_ct_RANLIB=$RANLIB
6715
# Extract the first word of "ranlib", so it can be a program name with args.
6716
set dummy ranlib; ac_word=$2
6717
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6718
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6719
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6720
echo $ECHO_N "(cached) $ECHO_C" >&6
6722
if test -n "$ac_ct_RANLIB"; then
6723
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6725
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6729
test -z "$as_dir" && as_dir=.
6730
for ac_exec_ext in '' $ac_executable_extensions; do
6731
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6732
ac_cv_prog_ac_ct_RANLIB="ranlib"
6733
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6742
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6743
if test -n "$ac_ct_RANLIB"; then
6744
{ echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6745
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6747
{ echo "$as_me:$LINENO: result: no" >&5
6748
echo "${ECHO_T}no" >&6; }
6751
if test "x$ac_ct_RANLIB" = x; then
6754
case $cross_compiling:$ac_tool_warned in
6756
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6757
whose name does not start with the host triplet. If you think this
6758
configuration is useful to you, please write to autoconf@gnu.org." >&5
6759
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6760
whose name does not start with the host triplet. If you think this
6761
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6762
ac_tool_warned=yes ;;
6764
RANLIB=$ac_ct_RANLIB
6767
RANLIB="$ac_cv_prog_RANLIB"
6770
if test -n "$ac_tool_prefix"; then
6771
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6772
set dummy ${ac_tool_prefix}strip; ac_word=$2
6773
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6774
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6775
if test "${ac_cv_prog_STRIP+set}" = set; then
6776
echo $ECHO_N "(cached) $ECHO_C" >&6
6778
if test -n "$STRIP"; then
6779
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6781
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6785
test -z "$as_dir" && as_dir=.
6786
for ac_exec_ext in '' $ac_executable_extensions; do
6787
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6788
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6789
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6798
STRIP=$ac_cv_prog_STRIP
6799
if test -n "$STRIP"; then
6800
{ echo "$as_me:$LINENO: result: $STRIP" >&5
6801
echo "${ECHO_T}$STRIP" >&6; }
6803
{ echo "$as_me:$LINENO: result: no" >&5
6804
echo "${ECHO_T}no" >&6; }
6809
if test -z "$ac_cv_prog_STRIP"; then
6811
# Extract the first word of "strip", so it can be a program name with args.
6812
set dummy strip; ac_word=$2
6813
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6814
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6815
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6816
echo $ECHO_N "(cached) $ECHO_C" >&6
6818
if test -n "$ac_ct_STRIP"; then
6819
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6821
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6825
test -z "$as_dir" && as_dir=.
6826
for ac_exec_ext in '' $ac_executable_extensions; do
6827
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6828
ac_cv_prog_ac_ct_STRIP="strip"
6829
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6838
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6839
if test -n "$ac_ct_STRIP"; then
6840
{ echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6841
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6843
{ echo "$as_me:$LINENO: result: no" >&5
6844
echo "${ECHO_T}no" >&6; }
6847
if test "x$ac_ct_STRIP" = x; then
6850
case $cross_compiling:$ac_tool_warned in
6852
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6853
whose name does not start with the host triplet. If you think this
6854
configuration is useful to you, please write to autoconf@gnu.org." >&5
6855
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6856
whose name does not start with the host triplet. If you think this
6857
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6858
ac_tool_warned=yes ;;
6863
STRIP="$ac_cv_prog_STRIP"
6868
old_CFLAGS="$CFLAGS"
6870
# Set sane defaults for various variables
6871
test -z "$AR" && AR=ar
6872
test -z "$AR_FLAGS" && AR_FLAGS=cru
6873
test -z "$AS" && AS=as
6874
test -z "$CC" && CC=cc
6875
test -z "$LTCC" && LTCC=$CC
6876
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6877
test -z "$DLLTOOL" && DLLTOOL=dlltool
6878
test -z "$LD" && LD=ld
6879
test -z "$LN_S" && LN_S="ln -s"
6880
test -z "$MAGIC_CMD" && MAGIC_CMD=file
6881
test -z "$NM" && NM=nm
6882
test -z "$SED" && SED=sed
6883
test -z "$OBJDUMP" && OBJDUMP=objdump
6884
test -z "$RANLIB" && RANLIB=:
6885
test -z "$STRIP" && STRIP=:
6886
test -z "$ac_objext" && ac_objext=o
6888
# Determine commands to create old-style static archives.
6889
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6890
old_postinstall_cmds='chmod 644 $oldlib'
6891
old_postuninstall_cmds=
6893
if test -n "$RANLIB"; then
6896
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6899
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6902
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6905
for cc_temp in $compiler""; do
6907
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6908
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6913
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6916
# Only perform the check for file, if the check method requires it
6917
case $deplibs_check_method in
6919
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6920
{ echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6921
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6922
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6923
echo $ECHO_N "(cached) $ECHO_C" >&6
6927
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6930
lt_save_MAGIC_CMD="$MAGIC_CMD"
6931
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6932
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6933
for ac_dir in $ac_dummy; do
6935
test -z "$ac_dir" && ac_dir=.
6936
if test -f $ac_dir/${ac_tool_prefix}file; then
6937
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6938
if test -n "$file_magic_test_file"; then
6939
case $deplibs_check_method in
6941
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6942
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6943
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6944
$EGREP "$file_magic_regex" > /dev/null; then
6949
*** Warning: the command libtool uses to detect shared libraries,
6950
*** $file_magic_cmd, produces output that libtool cannot recognize.
6951
*** The result is that libtool may fail to recognize shared libraries
6952
*** as such. This will affect the creation of libtool libraries that
6953
*** depend on shared libraries, but programs linked with such libtool
6954
*** libraries will work regardless of this problem. Nevertheless, you
6955
*** may want to report the problem to your system manager and/or to
6956
*** bug-libtool@gnu.org
6966
MAGIC_CMD="$lt_save_MAGIC_CMD"
6971
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6972
if test -n "$MAGIC_CMD"; then
6973
{ echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6974
echo "${ECHO_T}$MAGIC_CMD" >&6; }
6976
{ echo "$as_me:$LINENO: result: no" >&5
6977
echo "${ECHO_T}no" >&6; }
6980
if test -z "$lt_cv_path_MAGIC_CMD"; then
6981
if test -n "$ac_tool_prefix"; then
6982
{ echo "$as_me:$LINENO: checking for file" >&5
6983
echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6984
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6985
echo $ECHO_N "(cached) $ECHO_C" >&6
6989
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6992
lt_save_MAGIC_CMD="$MAGIC_CMD"
6993
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6994
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6995
for ac_dir in $ac_dummy; do
6997
test -z "$ac_dir" && ac_dir=.
6998
if test -f $ac_dir/file; then
6999
lt_cv_path_MAGIC_CMD="$ac_dir/file"
7000
if test -n "$file_magic_test_file"; then
7001
case $deplibs_check_method in
7003
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7004
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7005
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7006
$EGREP "$file_magic_regex" > /dev/null; then
7011
*** Warning: the command libtool uses to detect shared libraries,
7012
*** $file_magic_cmd, produces output that libtool cannot recognize.
7013
*** The result is that libtool may fail to recognize shared libraries
7014
*** as such. This will affect the creation of libtool libraries that
7015
*** depend on shared libraries, but programs linked with such libtool
7016
*** libraries will work regardless of this problem. Nevertheless, you
7017
*** may want to report the problem to your system manager and/or to
7018
*** bug-libtool@gnu.org
7028
MAGIC_CMD="$lt_save_MAGIC_CMD"
7033
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7034
if test -n "$MAGIC_CMD"; then
7035
{ echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7036
echo "${ECHO_T}$MAGIC_CMD" >&6; }
7038
{ echo "$as_me:$LINENO: result: no" >&5
7039
echo "${ECHO_T}no" >&6; }
7054
# Check whether --enable-libtool-lock was given.
7055
if test "${enable_libtool_lock+set}" = set; then
7056
enableval=$enable_libtool_lock;
7059
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7062
# Check whether --with-pic was given.
7063
if test "${with_pic+set}" = set; then
7064
withval=$with_pic; pic_mode="$withval"
7069
test -z "$pic_mode" && pic_mode=default
7071
# Use C for the default configuration in the libtool script
7075
ac_cpp='$CPP $CPPFLAGS'
7076
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7077
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7078
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7081
# Source file extension for C test sources.
7084
# Object file extension for compiled C test sources.
7088
# Code to be used in simple compile tests
7089
lt_simple_compile_test_code="int some_variable = 0;\n"
7091
# Code to be used in simple link tests
7092
lt_simple_link_test_code='int main(){return(0);}\n'
7095
# If no C compiler was specified, use CC.
7098
# If no C compiler flags were specified, use CFLAGS.
7099
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7101
# Allow CC to be a program name with arguments.
7105
# save warnings/boilerplate of simple test code
7106
ac_outfile=conftest.$ac_objext
7107
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7108
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7109
_lt_compiler_boilerplate=`cat conftest.err`
7112
ac_outfile=conftest.$ac_objext
7113
printf "$lt_simple_link_test_code" >conftest.$ac_ext
7114
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7115
_lt_linker_boilerplate=`cat conftest.err`
7120
lt_prog_compiler_no_builtin_flag=
7122
if test "$GCC" = yes; then
7123
lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7126
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7127
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7128
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7129
echo $ECHO_N "(cached) $ECHO_C" >&6
7131
lt_cv_prog_compiler_rtti_exceptions=no
7132
ac_outfile=conftest.$ac_objext
7133
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7134
lt_compiler_flag="-fno-rtti -fno-exceptions"
7135
# Insert the option either (1) after the last *FLAGS variable, or
7136
# (2) before a word containing "conftest.", or (3) at the end.
7137
# Note that $ac_compile itself does not contain backslashes and begins
7138
# with a dollar sign (not a hyphen), so the echo should work correctly.
7139
# The option is referenced via a variable to avoid confusing sed.
7140
lt_compile=`echo "$ac_compile" | $SED \
7141
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7142
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7143
-e 's:$: $lt_compiler_flag:'`
7144
(eval echo "\"\$as_me:7144: $lt_compile\"" >&5)
7145
(eval "$lt_compile" 2>conftest.err)
7147
cat conftest.err >&5
7148
echo "$as_me:7148: \$? = $ac_status" >&5
7149
if (exit $ac_status) && test -s "$ac_outfile"; then
7150
# The compiler can only warn and ignore the option if not recognized
7151
# So say no if there are warnings other than the usual output.
7152
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7153
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7154
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7155
lt_cv_prog_compiler_rtti_exceptions=yes
7161
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7162
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7164
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7165
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7172
lt_prog_compiler_wl=
7173
lt_prog_compiler_pic=
7174
lt_prog_compiler_static=
7176
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7177
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7179
if test "$GCC" = yes; then
7180
lt_prog_compiler_wl='-Wl,'
7181
lt_prog_compiler_static='-static'
7185
# All AIX code is PIC.
7186
if test "$host_cpu" = ia64; then
7187
# AIX 5 now supports IA64 processor
7188
lt_prog_compiler_static='-Bstatic'
7193
# FIXME: we need at least 68020 code to build shared libraries, but
7194
# adding the `-m68020' flag to GCC prevents building anything better,
7196
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7199
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7200
# PIC is the default for these OSes.
7203
mingw* | pw32* | os2*)
7204
# This hack is so that the source file can tell whether it is being
7205
# built for inclusion in a dll (and should export symbols for example).
7206
lt_prog_compiler_pic='-DDLL_EXPORT'
7209
darwin* | rhapsody*)
7210
# PIC is the default on this platform
7211
# Common symbols not allowed in MH_DYLIB files
7212
lt_prog_compiler_pic='-fno-common'
7216
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
7217
# Instead, we relocate shared libraries at runtime.
7221
# Just because we use GCC doesn't mean we suddenly get shared libraries
7222
# on systems that don't support them.
7223
lt_prog_compiler_can_build_shared=no
7228
if test -d /usr/nec; then
7229
lt_prog_compiler_pic=-Kconform_pic
7234
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7241
lt_prog_compiler_pic='-fPIC'
7247
lt_prog_compiler_pic='-fPIC'
7251
# PORTME Check for flag to pass linker flags through the system compiler.
7254
lt_prog_compiler_wl='-Wl,'
7255
if test "$host_cpu" = ia64; then
7256
# AIX 5 now supports IA64 processor
7257
lt_prog_compiler_static='-Bstatic'
7259
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7263
# PIC is the default on this platform
7264
# Common symbols not allowed in MH_DYLIB files
7265
case $cc_basename in
7267
lt_prog_compiler_pic='-qnocommon'
7268
lt_prog_compiler_wl='-Wl,'
7273
mingw* | pw32* | os2*)
7274
# This hack is so that the source file can tell whether it is being
7275
# built for inclusion in a dll (and should export symbols for example).
7276
lt_prog_compiler_pic='-DDLL_EXPORT'
7279
hpux9* | hpux10* | hpux11*)
7280
lt_prog_compiler_wl='-Wl,'
7281
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7288
lt_prog_compiler_pic='+Z'
7291
# Is there a better lt_prog_compiler_static that works with the bundled CC?
7292
lt_prog_compiler_static='${wl}-a ${wl}archive'
7295
irix5* | irix6* | nonstopux*)
7296
lt_prog_compiler_wl='-Wl,'
7297
# PIC (with -KPIC) is the default.
7298
lt_prog_compiler_static='-non_shared'
7302
lt_prog_compiler_pic='-KPIC'
7303
lt_prog_compiler_static='-Bstatic'
7307
case $cc_basename in
7309
lt_prog_compiler_wl='-Wl,'
7310
lt_prog_compiler_pic='-KPIC'
7311
lt_prog_compiler_static='-static'
7313
pgcc* | pgf77* | pgf90* | pgf95*)
7314
# Portland Group compilers (*not* the Pentium gcc compiler,
7315
# which looks to be a dead project)
7316
lt_prog_compiler_wl='-Wl,'
7317
lt_prog_compiler_pic='-fpic'
7318
lt_prog_compiler_static='-Bstatic'
7321
lt_prog_compiler_wl='-Wl,'
7322
# All Alpha code is PIC.
7323
lt_prog_compiler_static='-non_shared'
7328
osf3* | osf4* | osf5*)
7329
lt_prog_compiler_wl='-Wl,'
7330
# All OSF/1 code is PIC.
7331
lt_prog_compiler_static='-non_shared'
7335
lt_prog_compiler_pic='-KPIC'
7336
lt_prog_compiler_static='-Bstatic'
7337
case $cc_basename in
7339
lt_prog_compiler_wl='-Qoption ld ';;
7341
lt_prog_compiler_wl='-Wl,';;
7346
lt_prog_compiler_wl='-Qoption ld '
7347
lt_prog_compiler_pic='-PIC'
7348
lt_prog_compiler_static='-Bstatic'
7351
sysv4 | sysv4.2uw2* | sysv4.3*)
7352
lt_prog_compiler_wl='-Wl,'
7353
lt_prog_compiler_pic='-KPIC'
7354
lt_prog_compiler_static='-Bstatic'
7358
if test -d /usr/nec ;then
7359
lt_prog_compiler_pic='-Kconform_pic'
7360
lt_prog_compiler_static='-Bstatic'
7364
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7365
lt_prog_compiler_wl='-Wl,'
7366
lt_prog_compiler_pic='-KPIC'
7367
lt_prog_compiler_static='-Bstatic'
7371
lt_prog_compiler_wl='-Wl,'
7372
lt_prog_compiler_can_build_shared=no
7376
lt_prog_compiler_pic='-pic'
7377
lt_prog_compiler_static='-Bstatic'
7381
lt_prog_compiler_can_build_shared=no
7386
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7387
echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7390
# Check to make sure the PIC flag actually works.
7392
if test -n "$lt_prog_compiler_pic"; then
7394
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7395
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7396
if test "${lt_prog_compiler_pic_works+set}" = set; then
7397
echo $ECHO_N "(cached) $ECHO_C" >&6
7399
lt_prog_compiler_pic_works=no
7400
ac_outfile=conftest.$ac_objext
7401
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7402
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7403
# Insert the option either (1) after the last *FLAGS variable, or
7404
# (2) before a word containing "conftest.", or (3) at the end.
7405
# Note that $ac_compile itself does not contain backslashes and begins
7406
# with a dollar sign (not a hyphen), so the echo should work correctly.
7407
# The option is referenced via a variable to avoid confusing sed.
7408
lt_compile=`echo "$ac_compile" | $SED \
7409
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7410
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7411
-e 's:$: $lt_compiler_flag:'`
7412
(eval echo "\"\$as_me:7412: $lt_compile\"" >&5)
7413
(eval "$lt_compile" 2>conftest.err)
7415
cat conftest.err >&5
7416
echo "$as_me:7416: \$? = $ac_status" >&5
7417
if (exit $ac_status) && test -s "$ac_outfile"; then
7418
# The compiler can only warn and ignore the option if not recognized
7419
# So say no if there are warnings other than the usual output.
7420
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7421
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7422
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7423
lt_prog_compiler_pic_works=yes
7429
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7430
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7432
if test x"$lt_prog_compiler_pic_works" = xyes; then
7433
case $lt_prog_compiler_pic in
7435
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7438
lt_prog_compiler_pic=
7439
lt_prog_compiler_can_build_shared=no
7444
# For platforms which do not support PIC, -DPIC is meaningless:
7446
lt_prog_compiler_pic=
7449
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7454
# Check to make sure the static flag actually works.
7456
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7457
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7458
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7459
if test "${lt_prog_compiler_static_works+set}" = set; then
7460
echo $ECHO_N "(cached) $ECHO_C" >&6
7462
lt_prog_compiler_static_works=no
7463
save_LDFLAGS="$LDFLAGS"
7464
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7465
printf "$lt_simple_link_test_code" > conftest.$ac_ext
7466
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7467
# The linker can only warn and ignore the option if not recognized
7468
# So say no if there are warnings
7469
if test -s conftest.err; then
7470
# Append any errors to the config.log.
7471
cat conftest.err 1>&5
7472
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7473
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7474
if diff conftest.exp conftest.er2 >/dev/null; then
7475
lt_prog_compiler_static_works=yes
7478
lt_prog_compiler_static_works=yes
7482
LDFLAGS="$save_LDFLAGS"
7485
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7486
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7488
if test x"$lt_prog_compiler_static_works" = xyes; then
7491
lt_prog_compiler_static=
7495
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7496
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7497
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7498
echo $ECHO_N "(cached) $ECHO_C" >&6
7500
lt_cv_prog_compiler_c_o=no
7501
$rm -r conftest 2>/dev/null
7505
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7507
lt_compiler_flag="-o out/conftest2.$ac_objext"
7508
# Insert the option either (1) after the last *FLAGS variable, or
7509
# (2) before a word containing "conftest.", or (3) at the end.
7510
# Note that $ac_compile itself does not contain backslashes and begins
7511
# with a dollar sign (not a hyphen), so the echo should work correctly.
7512
lt_compile=`echo "$ac_compile" | $SED \
7513
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7514
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7515
-e 's:$: $lt_compiler_flag:'`
7516
(eval echo "\"\$as_me:7516: $lt_compile\"" >&5)
7517
(eval "$lt_compile" 2>out/conftest.err)
7519
cat out/conftest.err >&5
7520
echo "$as_me:7520: \$? = $ac_status" >&5
7521
if (exit $ac_status) && test -s out/conftest2.$ac_objext
7523
# The compiler can only warn and ignore the option if not recognized
7524
# So say no if there are warnings
7525
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7526
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7527
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7528
lt_cv_prog_compiler_c_o=yes
7533
# SGI C++ compiler will create directory out/ii_files/ for
7534
# template instantiation
7535
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7536
$rm out/* && rmdir out
7542
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7543
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7546
hard_links="nottested"
7547
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7548
# do not overwrite the value of need_locks provided by the user
7549
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7550
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7553
ln conftest.a conftest.b 2>/dev/null && hard_links=no
7555
ln conftest.a conftest.b 2>&5 || hard_links=no
7556
ln conftest.a conftest.b 2>/dev/null && hard_links=no
7557
{ echo "$as_me:$LINENO: result: $hard_links" >&5
7558
echo "${ECHO_T}$hard_links" >&6; }
7559
if test "$hard_links" = no; then
7560
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7561
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7568
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7569
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7572
allow_undefined_flag=
7573
enable_shared_with_static_runtimes=no
7575
archive_expsym_cmds=
7576
old_archive_From_new_cmds=
7577
old_archive_from_expsyms_cmds=
7578
export_dynamic_flag_spec=
7579
whole_archive_flag_spec=
7580
thread_safe_flag_spec=
7581
hardcode_libdir_flag_spec=
7582
hardcode_libdir_flag_spec_ld=
7583
hardcode_libdir_separator=
7586
hardcode_shlibpath_var=unsupported
7587
link_all_deplibs=unknown
7588
hardcode_automatic=no
7591
always_export_symbols=no
7592
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7593
# include_expsyms should be a list of space-separated symbols to be *always*
7594
# included in the symbol list
7596
# exclude_expsyms can be an extended regexp of symbols to exclude
7597
# it will be wrapped by ` (' and `)$', so one must not match beginning or
7598
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7599
# as well as any symbol that contains `d'.
7600
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7601
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7602
# platforms (ab)use it in PIC code, but their linkers get confused if
7603
# the symbol is explicitly referenced. Since portable code cannot
7604
# rely on this symbol name, it's probably fine to never include it in
7605
# preloaded symbol tables.
7606
extract_expsyms_cmds=
7607
# Just being paranoid about ensuring that cc_basename is set.
7608
for cc_temp in $compiler""; do
7610
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7611
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7616
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7619
cygwin* | mingw* | pw32*)
7620
# FIXME: the MSVC++ port hasn't been tested in a loooong time
7621
# When not using gcc, we currently assume that we are using
7622
# Microsoft Visual C++.
7623
if test "$GCC" != yes; then
7628
# we just hope/assume this is gcc and not c89 (= MSVC++)
7637
if test "$with_gnu_ld" = yes; then
7638
# If archive_cmds runs LD, not CC, wlarc should be empty
7641
# Set some defaults for GNU ld with shared library support. These
7642
# are reset later if shared libraries are not supported. Putting them
7643
# here allows them to be overridden if necessary.
7644
runpath_var=LD_RUN_PATH
7645
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7646
export_dynamic_flag_spec='${wl}--export-dynamic'
7647
# ancient GNU ld didn't support --whole-archive et. al.
7648
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7649
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7651
whole_archive_flag_spec=
7653
supports_anon_versioning=no
7654
case `$LD -v 2>/dev/null` in
7655
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7656
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7657
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7658
*\ 2.11.*) ;; # other 2.11 versions
7659
*) supports_anon_versioning=yes ;;
7662
# See if GNU ld supports shared libraries.
7664
aix3* | aix4* | aix5*)
7665
# On AIX/PPC, the GNU linker is very broken
7666
if test "$host_cpu" != ia64; then
7670
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7671
*** to be unable to reliably create shared libraries on AIX.
7672
*** Therefore, libtool is disabling shared libraries support. If you
7673
*** really care for shared libraries, you may want to modify your PATH
7674
*** so that a non-GNU linker is found, and then restart.
7681
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)'
7682
hardcode_libdir_flag_spec='-L$libdir'
7683
hardcode_minus_L=yes
7685
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7686
# that the semantics of dynamic libraries on AmigaOS, at least up
7687
# to version 4, is to share data among multiple programs linked
7688
# with the same dynamic library. Since this doesn't match the
7689
# behavior of shared libraries on other platforms, we can't use
7695
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7696
allow_undefined_flag=unsupported
7697
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7698
# support --undefined. This deserves some investigation. FIXME
7699
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7705
cygwin* | mingw* | pw32*)
7706
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7707
# as there is no search path for DLLs.
7708
hardcode_libdir_flag_spec='-L$libdir'
7709
allow_undefined_flag=unsupported
7710
always_export_symbols=no
7711
enable_shared_with_static_runtimes=yes
7712
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7714
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7715
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7716
# If the export-symbols file already is a .def file (1st line
7717
# is EXPORTS), use it as is; otherwise, prepend...
7718
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7719
cp $export_symbols $output_objdir/$soname.def;
7721
echo EXPORTS > $output_objdir/$soname.def;
7722
cat $export_symbols >> $output_objdir/$soname.def;
7724
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7732
hardcode_shlibpath_var=no
7733
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7734
export_dynamic_flag_spec='${wl}-E'
7735
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7736
# Instead, shared libraries are loaded at an image base (0x10000000 by
7737
# default) and relocated if they conflict, which is a slow very memory
7738
# consuming and fragmenting process. To avoid this, we pick a random,
7739
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7740
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
7741
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7742
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'
7746
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7748
case $cc_basename,$host_cpu in
7749
pgcc*) # Portland Group C compiler
7750
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'
7751
tmp_addflag=' $pic_flag'
7753
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7754
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'
7755
tmp_addflag=' $pic_flag -Mnomain' ;;
7756
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7757
tmp_addflag=' -i_dynamic' ;;
7758
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7759
tmp_addflag=' -i_dynamic -nofor_main' ;;
7760
ifc* | ifort*) # Intel Fortran compiler
7761
tmp_addflag=' -nofor_main' ;;
7763
archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7765
if test $supports_anon_versioning = yes; then
7766
archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7767
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7768
$echo "local: *; };" >> $output_objdir/$libname.ver~
7769
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7777
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7778
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7781
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7782
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7787
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7791
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7792
*** create shared libraries on Solaris systems. Therefore, libtool
7793
*** is disabling shared libraries support. We urge you to upgrade GNU
7794
*** binutils to release 2.9.1 or newer. Another option is to modify
7795
*** your PATH or compiler configuration so that the native linker is
7796
*** used, and then restart.
7799
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7800
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7801
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7807
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7808
case `$LD -v 2>&1` in
7809
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7813
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7814
*** reliably create shared libraries on SCO systems. Therefore, libtool
7815
*** is disabling shared libraries support. We urge you to upgrade GNU
7816
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7817
*** your PATH or compiler configuration so that the native linker is
7818
*** used, and then restart.
7823
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7824
hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7825
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7826
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7835
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7838
hardcode_shlibpath_var=no
7842
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7843
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7844
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7851
if test "$ld_shlibs" = no; then
7853
hardcode_libdir_flag_spec=
7854
export_dynamic_flag_spec=
7855
whole_archive_flag_spec=
7858
# PORTME fill in a description of your system's linker (not GNU ld)
7861
allow_undefined_flag=unsupported
7862
always_export_symbols=yes
7863
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'
7864
# Note: this linker hardcodes the directories in LIBPATH if there
7865
# are no directories specified by -L.
7866
hardcode_minus_L=yes
7867
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7868
# Neither direct hardcoding nor static linking is supported with a
7870
hardcode_direct=unsupported
7875
if test "$host_cpu" = ia64; then
7876
# On IA64, the linker does run time linking by default, so we don't
7877
# have to do anything special.
7878
aix_use_runtimelinking=no
7879
exp_sym_flag='-Bexport'
7882
# If we're using GNU nm, then we don't want the "-C" option.
7883
# -C means demangle to AIX nm, but means don't demangle with GNU nm
7884
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7885
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'
7887
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'
7889
aix_use_runtimelinking=no
7891
# Test if we are trying to use run time linking or normal
7892
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
7893
# need to do runtime linking.
7894
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7895
for ld_flag in $LDFLAGS; do
7896
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7897
aix_use_runtimelinking=yes
7904
exp_sym_flag='-bexport'
7905
no_entry_flag='-bnoentry'
7908
# When large executables or shared objects are built, AIX ld can
7909
# have problems creating the table of contents. If linking a library
7910
# or program results in "error TOC overflow" add -mminimal-toc to
7911
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7912
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7916
hardcode_libdir_separator=':'
7917
link_all_deplibs=yes
7919
if test "$GCC" = yes; then
7920
case $host_os in aix4.[012]|aix4.[012].*)
7921
# We only want to do this on AIX 4.2 and lower, the check
7922
# below for broken collect2 doesn't work under 4.3+
7923
collect2name=`${CC} -print-prog-name=collect2`
7924
if test -f "$collect2name" && \
7925
strings "$collect2name" | grep resolve_lib_name >/dev/null
7927
# We have reworked collect2
7930
# We have old collect2
7931
hardcode_direct=unsupported
7932
# It fails to find uninstalled libraries when the uninstalled
7933
# path is not listed in the libpath. Setting hardcode_minus_L
7934
# to unsupported forces relinking
7935
hardcode_minus_L=yes
7936
hardcode_libdir_flag_spec='-L$libdir'
7937
hardcode_libdir_separator=
7941
shared_flag='-shared'
7942
if test "$aix_use_runtimelinking" = yes; then
7943
shared_flag="$shared_flag "'${wl}-G'
7947
if test "$host_cpu" = ia64; then
7948
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7949
# chokes on -Wl,-G. The following line is correct:
7952
if test "$aix_use_runtimelinking" = yes; then
7953
shared_flag='${wl}-G'
7955
shared_flag='${wl}-bM:SRE'
7960
# It seems that -bexpall does not export symbols beginning with
7961
# underscore (_), so it is better to generate a list of symbols to export.
7962
always_export_symbols=yes
7963
if test "$aix_use_runtimelinking" = yes; then
7964
# Warning - without using the other runtime loading flags (-brtl),
7965
# -berok will link without error, but may produce a broken library.
7966
allow_undefined_flag='-berok'
7967
# Determine the default libpath from the value encoded in an empty executable.
7968
cat >conftest.$ac_ext <<_ACEOF
7971
cat confdefs.h >>conftest.$ac_ext
7972
cat >>conftest.$ac_ext <<_ACEOF
7973
/* end confdefs.h. */
7983
rm -f conftest.$ac_objext conftest$ac_exeext
7984
if { (ac_try="$ac_link"
7986
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7987
*) ac_try_echo=$ac_try;;
7989
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7990
(eval "$ac_link") 2>conftest.er1
7992
grep -v '^ *+' conftest.er1 >conftest.err
7994
cat conftest.err >&5
7995
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7996
(exit $ac_status); } && {
7997
test -z "$ac_c_werror_flag" ||
7998
test ! -s conftest.err
7999
} && test -s conftest$ac_exeext &&
8000
$as_test_x conftest$ac_exeext; then
8002
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8004
# Check for a 64-bit object if we didn't find anything.
8005
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8008
echo "$as_me: failed program was:" >&5
8009
sed 's/^/| /' conftest.$ac_ext >&5
8014
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8015
conftest$ac_exeext conftest.$ac_ext
8016
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8018
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8019
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"
8021
if test "$host_cpu" = ia64; then
8022
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8023
allow_undefined_flag="-z nodefs"
8024
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"
8026
# Determine the default libpath from the value encoded in an empty executable.
8027
cat >conftest.$ac_ext <<_ACEOF
8030
cat confdefs.h >>conftest.$ac_ext
8031
cat >>conftest.$ac_ext <<_ACEOF
8032
/* end confdefs.h. */
8042
rm -f conftest.$ac_objext conftest$ac_exeext
8043
if { (ac_try="$ac_link"
8045
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8046
*) ac_try_echo=$ac_try;;
8048
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8049
(eval "$ac_link") 2>conftest.er1
8051
grep -v '^ *+' conftest.er1 >conftest.err
8053
cat conftest.err >&5
8054
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8055
(exit $ac_status); } && {
8056
test -z "$ac_c_werror_flag" ||
8057
test ! -s conftest.err
8058
} && test -s conftest$ac_exeext &&
8059
$as_test_x conftest$ac_exeext; then
8061
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8063
# Check for a 64-bit object if we didn't find anything.
8064
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8067
echo "$as_me: failed program was:" >&5
8068
sed 's/^/| /' conftest.$ac_ext >&5
8073
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8074
conftest$ac_exeext conftest.$ac_ext
8075
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8077
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8078
# Warning - without using the other run time loading flags,
8079
# -berok will link without error, but may produce a broken library.
8080
no_undefined_flag=' ${wl}-bernotok'
8081
allow_undefined_flag=' ${wl}-berok'
8082
# Exported symbols can be pulled into shared objects from archives
8083
whole_archive_flag_spec='$convenience'
8084
archive_cmds_need_lc=yes
8085
# This is similar to how AIX traditionally builds its shared libraries.
8086
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'
8092
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)'
8093
hardcode_libdir_flag_spec='-L$libdir'
8094
hardcode_minus_L=yes
8095
# see comment about different semantics on the GNU ld section
8100
export_dynamic_flag_spec=-rdynamic
8103
cygwin* | mingw* | pw32*)
8104
# When not using gcc, we currently assume that we are using
8105
# Microsoft Visual C++.
8106
# hardcode_libdir_flag_spec is actually meaningless, as there is
8107
# no search path for DLLs.
8108
hardcode_libdir_flag_spec=' '
8109
allow_undefined_flag=unsupported
8110
# Tell ltmain to make .lib files, not .a files.
8112
# Tell ltmain to make .dll files, not .so files.
8114
# FIXME: Setting linknames here is a bad hack.
8115
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8116
# The linker will automatically build a .lib file if we build a DLL.
8117
old_archive_From_new_cmds='true'
8118
# FIXME: Should let the user specify the lib program.
8119
old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8120
fix_srcfile_path='`cygpath -w "$srcfile"`'
8121
enable_shared_with_static_runtimes=yes
8124
darwin* | rhapsody*)
8126
rhapsody* | darwin1.[012])
8127
allow_undefined_flag='${wl}-undefined ${wl}suppress'
8130
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8131
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8133
case ${MACOSX_DEPLOYMENT_TARGET} in
8135
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8138
allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8144
archive_cmds_need_lc=no
8146
hardcode_automatic=yes
8147
hardcode_shlibpath_var=unsupported
8148
whole_archive_flag_spec=''
8149
link_all_deplibs=yes
8150
if test "$GCC" = yes ; then
8151
output_verbose_link_cmd='echo'
8152
archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8153
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8154
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8155
archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8156
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}'
8158
case $cc_basename in
8160
output_verbose_link_cmd='echo'
8161
archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8162
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8163
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8164
archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8165
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}'
8175
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8176
hardcode_libdir_flag_spec='-L$libdir'
8177
hardcode_shlibpath_var=no
8184
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8185
# support. Future versions do this automatically, but an explicit c++rt0.o
8186
# does not break anything, and helps significantly (at the cost of a little
8189
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8190
hardcode_libdir_flag_spec='-R$libdir'
8192
hardcode_shlibpath_var=no
8195
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
8197
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8199
hardcode_minus_L=yes
8200
hardcode_shlibpath_var=no
8203
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8204
freebsd* | kfreebsd*-gnu | dragonfly*)
8205
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8206
hardcode_libdir_flag_spec='-R$libdir'
8208
hardcode_shlibpath_var=no
8212
if test "$GCC" = yes; then
8213
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'
8215
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'
8217
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8218
hardcode_libdir_separator=:
8221
# hardcode_minus_L: Not really in the search PATH,
8222
# but as the default location of the library.
8223
hardcode_minus_L=yes
8224
export_dynamic_flag_spec='${wl}-E'
8228
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8229
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8231
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8233
if test "$with_gnu_ld" = no; then
8234
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8235
hardcode_libdir_separator=:
8238
export_dynamic_flag_spec='${wl}-E'
8240
# hardcode_minus_L: Not really in the search PATH,
8241
# but as the default location of the library.
8242
hardcode_minus_L=yes
8247
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8250
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8253
archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8256
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8262
archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8265
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8268
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8272
if test "$with_gnu_ld" = no; then
8273
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8274
hardcode_libdir_separator=:
8278
hardcode_libdir_flag_spec_ld='+b $libdir'
8280
hardcode_shlibpath_var=no
8284
export_dynamic_flag_spec='${wl}-E'
8286
# hardcode_minus_L: Not really in the search PATH,
8287
# but as the default location of the library.
8288
hardcode_minus_L=yes
8294
irix5* | irix6* | nonstopux*)
8295
if test "$GCC" = yes; then
8296
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'
8298
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'
8299
hardcode_libdir_flag_spec_ld='-rpath $libdir'
8301
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8302
hardcode_libdir_separator=:
8303
link_all_deplibs=yes
8307
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8308
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8310
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8312
hardcode_libdir_flag_spec='-R$libdir'
8314
hardcode_shlibpath_var=no
8318
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8320
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8321
hardcode_libdir_separator=:
8322
hardcode_shlibpath_var=no
8327
hardcode_shlibpath_var=no
8328
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8329
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8330
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8331
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8332
export_dynamic_flag_spec='${wl}-E'
8335
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8336
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8337
hardcode_libdir_flag_spec='-R$libdir'
8340
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8341
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8348
hardcode_libdir_flag_spec='-L$libdir'
8349
hardcode_minus_L=yes
8350
allow_undefined_flag=unsupported
8351
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'
8352
old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8356
if test "$GCC" = yes; then
8357
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8358
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'
8360
allow_undefined_flag=' -expect_unresolved \*'
8361
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'
8363
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8364
hardcode_libdir_separator=:
8367
osf4* | osf5*) # as osf3* with the addition of -msym flag
8368
if test "$GCC" = yes; then
8369
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8370
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'
8371
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8373
allow_undefined_flag=' -expect_unresolved \*'
8374
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'
8375
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8376
$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'
8378
# Both c and cxx compiler support -rpath directly
8379
hardcode_libdir_flag_spec='-rpath $libdir'
8381
hardcode_libdir_separator=:
8385
no_undefined_flag=' -z text'
8386
if test "$GCC" = yes; then
8388
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8389
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8390
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8393
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8394
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8395
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8397
hardcode_libdir_flag_spec='-R$libdir'
8398
hardcode_shlibpath_var=no
8400
solaris2.[0-5] | solaris2.[0-5].*) ;;
8402
# The compiler driver will combine linker options so we
8403
# cannot just pass the convience library names through
8404
# without $wl, iff we do not link with $LD.
8405
# Luckily, gcc supports the same syntax we need for Sun Studio.
8406
# Supported since Solaris 2.6 (maybe 2.5.1?)
8409
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8411
whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8414
link_all_deplibs=yes
8418
if test "x$host_vendor" = xsequent; then
8419
# Use $CC to link under sequent, because it throws in some extra .o
8420
# files that make .init and .fini sections work.
8421
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8423
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8425
hardcode_libdir_flag_spec='-L$libdir'
8427
hardcode_minus_L=yes
8428
hardcode_shlibpath_var=no
8432
case $host_vendor in
8434
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8435
hardcode_direct=yes # is this really true???
8438
## LD is ld it makes a PLAMLIB
8439
## CC just makes a GrossModule.
8440
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8441
reload_cmds='$CC -r -o $output$reload_objs'
8445
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8446
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8449
runpath_var='LD_RUN_PATH'
8450
hardcode_shlibpath_var=no
8454
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8455
hardcode_shlibpath_var=no
8456
export_dynamic_flag_spec='-Bexport'
8460
if test -d /usr/nec; then
8461
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8462
hardcode_shlibpath_var=no
8463
runpath_var=LD_RUN_PATH
8464
hardcode_runpath_var=yes
8469
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8470
no_undefined_flag='${wl}-z,text'
8471
archive_cmds_need_lc=no
8472
hardcode_shlibpath_var=no
8473
runpath_var='LD_RUN_PATH'
8475
if test "$GCC" = yes; then
8476
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8477
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8479
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8480
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8484
sysv5* | sco3.2v5* | sco5v6*)
8485
# Note: We can NOT use -z defs as we might desire, because we do not
8486
# link with -lc, and that would cause any symbols used from libc to
8487
# always be unresolved, which means just about no library would
8488
# ever link correctly. If we're not using GNU ld we use -z text
8489
# though, which does catch some bad symbols but isn't as heavy-handed
8491
no_undefined_flag='${wl}-z,text'
8492
allow_undefined_flag='${wl}-z,nodefs'
8493
archive_cmds_need_lc=no
8494
hardcode_shlibpath_var=no
8495
hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8496
hardcode_libdir_separator=':'
8497
link_all_deplibs=yes
8498
export_dynamic_flag_spec='${wl}-Bexport'
8499
runpath_var='LD_RUN_PATH'
8501
if test "$GCC" = yes; then
8502
archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8503
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8505
archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8506
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8511
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8512
hardcode_libdir_flag_spec='-L$libdir'
8513
hardcode_shlibpath_var=no
8522
{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8523
echo "${ECHO_T}$ld_shlibs" >&6; }
8524
test "$ld_shlibs" = no && can_build_shared=no
8527
# Do we need to explicitly link libc?
8529
case "x$archive_cmds_need_lc" in
8531
# Assume -lc should be added
8532
archive_cmds_need_lc=yes
8534
if test "$enable_shared" = yes && test "$GCC" = yes; then
8535
case $archive_cmds in
8537
# FIXME: we may have to deal with multi-command sequences.
8540
# Test whether the compiler implicitly links with -lc since on some
8541
# systems, -lgcc has to come before -lc. If gcc already passes -lc
8542
# to ld, don't add -lc before -lgcc.
8543
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8544
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8546
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8548
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8549
(eval $ac_compile) 2>&5
8551
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8552
(exit $ac_status); } 2>conftest.err; then
8555
libobjs=conftest.$ac_objext
8557
wl=$lt_prog_compiler_wl
8558
pic_flag=$lt_prog_compiler_pic
8564
lt_save_allow_undefined_flag=$allow_undefined_flag
8565
allow_undefined_flag=
8566
if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8567
(eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8569
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8570
(exit $ac_status); }
8572
archive_cmds_need_lc=no
8574
archive_cmds_need_lc=yes
8576
allow_undefined_flag=$lt_save_allow_undefined_flag
8578
cat conftest.err 1>&5
8581
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8582
echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8589
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8590
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8592
libname_spec='lib$name'
8600
shlibpath_overrides_runpath=unknown
8602
dynamic_linker="$host_os ld.so"
8603
sys_lib_dlsearch_path_spec="/lib /usr/lib"
8604
if test "$GCC" = yes; then
8605
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8606
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8607
# if the path contains ";" then we assume it to be the separator
8608
# otherwise default to the standard path separator (i.e. ":") - it is
8609
# assumed that no part of a normal pathname contains ";" but that should
8610
# okay in the real world where ";" in dirpaths is itself problematic.
8611
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8613
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8616
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8618
need_lib_prefix=unknown
8619
hardcode_into_libs=no
8621
# when you set need_version to no, make sure it does not cause -set_version
8622
# flags to be left without arguments
8623
need_version=unknown
8628
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8629
shlibpath_var=LIBPATH
8631
# AIX 3 has no versioning support, so we append a major version to the name.
8632
soname_spec='${libname}${release}${shared_ext}$major'
8639
hardcode_into_libs=yes
8640
if test "$host_cpu" = ia64; then
8641
# AIX 5 supports IA64
8642
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8643
shlibpath_var=LD_LIBRARY_PATH
8645
# With GCC up to 2.95.x, collect2 would create an import file
8646
# for dependence libraries. The import file would start with
8647
# the line `#! .'. This would cause the generated library to
8648
# depend on `.', always an invalid library. This was fixed in
8649
# development snapshots of GCC prior to 3.0.
8651
aix4 | aix4.[01] | aix4.[01].*)
8652
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8654
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8661
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8662
# soname into executable. Probably we can add versioning support to
8663
# collect2, so additional links can be useful in future.
8664
if test "$aix_use_runtimelinking" = yes; then
8665
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
8666
# instead of lib<name>.a to let people know that these are not
8667
# typical AIX shared libraries.
8668
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8670
# We preserve .a as extension for shared libraries through AIX4.2
8671
# and later when we are not doing run time linking.
8672
library_names_spec='${libname}${release}.a $libname.a'
8673
soname_spec='${libname}${release}${shared_ext}$major'
8675
shlibpath_var=LIBPATH
8680
library_names_spec='$libname.ixlibrary $libname.a'
8681
# Create ${libname}_ixlibrary.a entries in /sys/libs.
8682
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'
8686
library_names_spec='${libname}${shared_ext}'
8687
dynamic_linker="$host_os ld.so"
8688
shlibpath_var=LIBRARY_PATH
8694
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8695
soname_spec='${libname}${release}${shared_ext}$major'
8696
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8697
shlibpath_var=LD_LIBRARY_PATH
8698
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8699
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8700
# the default ld.so.conf also contains /usr/contrib/lib and
8701
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8702
# libtool to hard-code these into programs
8705
cygwin* | mingw* | pw32*)
8706
version_type=windows
8711
case $GCC,$host_os in
8712
yes,cygwin* | yes,mingw* | yes,pw32*)
8713
library_names_spec='$libname.dll.a'
8714
# DLL is installed to $(libdir)/../bin by postinstall_cmds
8715
postinstall_cmds='base_file=`basename \${file}`~
8716
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8717
dldir=$destdir/`dirname \$dlpath`~
8718
test -d \$dldir || mkdir -p \$dldir~
8719
$install_prog $dir/$dlname \$dldir/$dlname~
8720
chmod a+x \$dldir/$dlname'
8721
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8722
dlpath=$dir/\$dldll~
8724
shlibpath_overrides_runpath=yes
8728
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
8729
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8730
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8733
# MinGW DLLs use traditional 'lib' prefix
8734
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8735
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8736
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8737
# It is most probably a Windows format PATH printed by
8738
# mingw gcc, but we are running on Cygwin. Gcc prints its search
8739
# path with ; separators, and with drive letters. We can handle the
8740
# drive letters (cygwin fileutils understands them), so leave them,
8741
# especially as we might pass files found there to a mingw objdump,
8742
# which wouldn't understand a cygwinified path. Ahh.
8743
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8745
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8749
# pw32 DLLs use 'pw' prefix rather than 'lib'
8750
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8756
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8759
dynamic_linker='Win32 ld.exe'
8760
# FIXME: first we should search . and the directory the executable is in
8764
darwin* | rhapsody*)
8765
dynamic_linker="$host_os dyld"
8769
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8770
soname_spec='${libname}${release}${major}$shared_ext'
8771
shlibpath_overrides_runpath=yes
8772
shlibpath_var=DYLD_LIBRARY_PATH
8773
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8774
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8775
if test "$GCC" = yes; then
8776
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8778
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8780
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8787
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8788
soname_spec='${libname}${release}${shared_ext}$major'
8789
shlibpath_var=LD_LIBRARY_PATH
8800
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8801
soname_spec='${libname}${release}${shared_ext}$major'
8802
shlibpath_var=LD_LIBRARY_PATH
8803
shlibpath_overrides_runpath=no
8804
hardcode_into_libs=yes
8805
dynamic_linker='GNU ld.so'
8808
freebsd* | dragonfly*)
8809
# DragonFly does not have aout. When/if they implement a new
8810
# versioning mechanism, adjust this.
8811
if test -x /usr/bin/objformat; then
8812
objformat=`/usr/bin/objformat`
8815
freebsd[123]*) objformat=aout ;;
8819
version_type=freebsd-$objformat
8820
case $version_type in
8822
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8827
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8831
shlibpath_var=LD_LIBRARY_PATH
8834
shlibpath_overrides_runpath=yes
8836
freebsd3.[01]* | freebsdelf3.[01]*)
8837
shlibpath_overrides_runpath=yes
8838
hardcode_into_libs=yes
8840
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8841
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8842
shlibpath_overrides_runpath=no
8843
hardcode_into_libs=yes
8845
freebsd*) # from 4.6 on
8846
shlibpath_overrides_runpath=yes
8847
hardcode_into_libs=yes
8856
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8857
soname_spec='${libname}${release}${shared_ext}$major'
8858
shlibpath_var=LD_LIBRARY_PATH
8859
hardcode_into_libs=yes
8862
hpux9* | hpux10* | hpux11*)
8863
# Give a soname corresponding to the major version so that dld.sl refuses to
8864
# link against other versions.
8871
hardcode_into_libs=yes
8872
dynamic_linker="$host_os dld.so"
8873
shlibpath_var=LD_LIBRARY_PATH
8874
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8875
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8876
soname_spec='${libname}${release}${shared_ext}$major'
8877
if test "X$HPUX_IA64_MODE" = X32; then
8878
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8880
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8882
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8886
hardcode_into_libs=yes
8887
dynamic_linker="$host_os dld.sl"
8888
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8889
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8890
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8891
soname_spec='${libname}${release}${shared_ext}$major'
8892
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8893
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8897
dynamic_linker="$host_os dld.sl"
8898
shlibpath_var=SHLIB_PATH
8899
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8900
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8901
soname_spec='${libname}${release}${shared_ext}$major'
8904
# HP-UX runs *really* slowly unless shared libraries are mode 555.
8905
postinstall_cmds='chmod 555 $lib'
8912
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8913
soname_spec='${libname}${release}${shared_ext}$major'
8914
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8915
shlibpath_var=LD_LIBRARY_PATH
8916
shlibpath_overrides_runpath=no
8917
hardcode_into_libs=yes
8920
irix5* | irix6* | nonstopux*)
8922
nonstopux*) version_type=nonstopux ;;
8924
if test "$lt_cv_prog_gnu_ld" = yes; then
8932
soname_spec='${libname}${release}${shared_ext}$major'
8933
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8935
irix5* | nonstopux*)
8939
case $LD in # libtool.m4 will add one of these switches to LD
8940
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8941
libsuff= shlibsuff= libmagic=32-bit;;
8942
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8943
libsuff=32 shlibsuff=N32 libmagic=N32;;
8944
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8945
libsuff=64 shlibsuff=64 libmagic=64-bit;;
8946
*) libsuff= shlibsuff= libmagic=never-match;;
8950
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8951
shlibpath_overrides_runpath=no
8952
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8953
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8954
hardcode_into_libs=yes
8957
# No shared lib support for Linux oldld, aout, or coff.
8958
linux*oldld* | linux*aout* | linux*coff*)
8962
# This must be Linux ELF.
8967
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8968
soname_spec='${libname}${release}${shared_ext}$major'
8969
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8970
shlibpath_var=LD_LIBRARY_PATH
8971
shlibpath_overrides_runpath=no
8972
# This implies no fast_install, which is unacceptable.
8973
# Some rework will be needed to allow for fast_install
8974
# before this can be enabled.
8975
hardcode_into_libs=yes
8977
# Append ld.so.conf contents to the search path
8978
if test -f /etc/ld.so.conf; then
8979
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8980
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8983
# We used to test for /lib/ld.so.1 and disable shared libraries on
8984
# powerpc, because MkLinux only supported shared libraries with the
8985
# GNU dynamic linker. Since this was broken with cross compilers,
8986
# most powerpc-linux boxes support dynamic linking these days and
8987
# people can always --disable-shared, the test was removed, and we
8988
# assume the GNU/Linux dynamic linker is in use.
8989
dynamic_linker='GNU/Linux ld.so'
8996
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8997
soname_spec='${libname}${release}${shared_ext}$major'
8998
shlibpath_var=LD_LIBRARY_PATH
8999
shlibpath_overrides_runpath=no
9000
hardcode_into_libs=yes
9001
dynamic_linker='GNU ld.so'
9008
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9009
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9010
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9011
dynamic_linker='NetBSD (a.out) ld.so'
9013
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9014
soname_spec='${libname}${release}${shared_ext}$major'
9015
dynamic_linker='NetBSD ld.elf_so'
9017
shlibpath_var=LD_LIBRARY_PATH
9018
shlibpath_overrides_runpath=yes
9019
hardcode_into_libs=yes
9024
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9025
shlibpath_var=LD_LIBRARY_PATH
9026
shlibpath_overrides_runpath=yes
9033
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9034
soname_spec='${libname}${release}${shared_ext}$major'
9035
shlibpath_var=LD_LIBRARY_PATH
9036
shlibpath_overrides_runpath=yes
9041
sys_lib_dlsearch_path_spec="/usr/lib"
9043
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9045
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9046
*) need_version=no ;;
9048
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9049
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9050
shlibpath_var=LD_LIBRARY_PATH
9051
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9053
openbsd2.[89] | openbsd2.[89].*)
9054
shlibpath_overrides_runpath=no
9057
shlibpath_overrides_runpath=yes
9061
shlibpath_overrides_runpath=yes
9066
libname_spec='$name'
9069
library_names_spec='$libname${shared_ext} $libname.a'
9070
dynamic_linker='OS/2 ld.exe'
9071
shlibpath_var=LIBPATH
9074
osf3* | osf4* | osf5*)
9078
soname_spec='${libname}${release}${shared_ext}$major'
9079
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9080
shlibpath_var=LD_LIBRARY_PATH
9081
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9082
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9089
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9090
soname_spec='${libname}${release}${shared_ext}$major'
9091
shlibpath_var=LD_LIBRARY_PATH
9092
shlibpath_overrides_runpath=yes
9093
hardcode_into_libs=yes
9094
# ldd complains unless libraries are executable
9095
postinstall_cmds='chmod +x $lib'
9100
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9101
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9102
shlibpath_var=LD_LIBRARY_PATH
9103
shlibpath_overrides_runpath=yes
9104
if test "$with_gnu_ld" = yes; then
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
shlibpath_var=LD_LIBRARY_PATH
9115
case $host_vendor in
9117
shlibpath_overrides_runpath=no
9119
export_dynamic_flag_spec='${wl}-Blargedynsym'
9120
runpath_var=LD_RUN_PATH
9128
shlibpath_overrides_runpath=no
9129
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9135
if test -d /usr/nec ;then
9137
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9138
soname_spec='$libname${shared_ext}.$major'
9139
shlibpath_var=LD_LIBRARY_PATH
9143
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9144
version_type=freebsd-elf
9147
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9148
soname_spec='${libname}${release}${shared_ext}$major'
9149
shlibpath_var=LD_LIBRARY_PATH
9150
hardcode_into_libs=yes
9151
if test "$with_gnu_ld" = yes; then
9152
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9153
shlibpath_overrides_runpath=no
9155
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9156
shlibpath_overrides_runpath=yes
9159
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9163
sys_lib_dlsearch_path_spec='/usr/lib'
9168
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9169
soname_spec='${libname}${release}${shared_ext}$major'
9170
shlibpath_var=LD_LIBRARY_PATH
9177
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9178
echo "${ECHO_T}$dynamic_linker" >&6; }
9179
test "$dynamic_linker" = no && can_build_shared=no
9181
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9182
if test "$GCC" = yes; then
9183
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9186
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9187
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9189
if test -n "$hardcode_libdir_flag_spec" || \
9190
test -n "$runpath_var" || \
9191
test "X$hardcode_automatic" = "Xyes" ; then
9193
# We can hardcode non-existant directories.
9194
if test "$hardcode_direct" != no &&
9195
# If the only mechanism to avoid hardcoding is shlibpath_var, we
9196
# have to relink, otherwise we might link with an installed library
9197
# when we should be linking with a yet-to-be-installed one
9198
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9199
test "$hardcode_minus_L" != no; then
9200
# Linking always hardcodes the temporary library directory.
9201
hardcode_action=relink
9203
# We can link without hardcoding, and we can hardcode nonexisting dirs.
9204
hardcode_action=immediate
9207
# We cannot hardcode anything, or else we can only hardcode existing
9209
hardcode_action=unsupported
9211
{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
9212
echo "${ECHO_T}$hardcode_action" >&6; }
9214
if test "$hardcode_action" = relink; then
9215
# Fast installation is not supported
9216
enable_fast_install=no
9217
elif test "$shlibpath_overrides_runpath" = yes ||
9218
test "$enable_shared" = no; then
9219
# Fast installation is not necessary
9220
enable_fast_install=needless
9225
{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9226
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9227
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9228
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9229
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9230
{ echo "$as_me:$LINENO: result: yes" >&5
9231
echo "${ECHO_T}yes" >&6; }
9233
# FIXME - insert some real tests, host_os isn't really good enough
9236
if test -n "$STRIP" ; then
9237
striplib="$STRIP -x"
9238
{ echo "$as_me:$LINENO: result: yes" >&5
9239
echo "${ECHO_T}yes" >&6; }
9241
{ echo "$as_me:$LINENO: result: no" >&5
9242
echo "${ECHO_T}no" >&6; }
9246
{ echo "$as_me:$LINENO: result: no" >&5
9247
echo "${ECHO_T}no" >&6; }
9252
if test "x$enable_dlopen" != xyes; then
9253
enable_dlopen=unknown
9254
enable_dlopen_self=unknown
9255
enable_dlopen_self_static=unknown
9262
lt_cv_dlopen="load_add_on"
9264
lt_cv_dlopen_self=yes
9268
lt_cv_dlopen="LoadLibrary"
9273
lt_cv_dlopen="dlopen"
9278
# if libdl is installed we need to link against it
9279
{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9280
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9281
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9282
echo $ECHO_N "(cached) $ECHO_C" >&6
9284
ac_check_lib_save_LIBS=$LIBS
9286
cat >conftest.$ac_ext <<_ACEOF
9289
cat confdefs.h >>conftest.$ac_ext
9290
cat >>conftest.$ac_ext <<_ACEOF
9291
/* end confdefs.h. */
9293
/* Override any GCC internal prototype to avoid an error.
9294
Use char because int might match the return type of a GCC
9295
builtin and then its argument prototype would still apply. */
9308
rm -f conftest.$ac_objext conftest$ac_exeext
9309
if { (ac_try="$ac_link"
9311
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9312
*) ac_try_echo=$ac_try;;
9314
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9315
(eval "$ac_link") 2>conftest.er1
9317
grep -v '^ *+' conftest.er1 >conftest.err
9319
cat conftest.err >&5
9320
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9321
(exit $ac_status); } && {
9322
test -z "$ac_c_werror_flag" ||
9323
test ! -s conftest.err
9324
} && test -s conftest$ac_exeext &&
9325
$as_test_x conftest$ac_exeext; then
9326
ac_cv_lib_dl_dlopen=yes
9328
echo "$as_me: failed program was:" >&5
9329
sed 's/^/| /' conftest.$ac_ext >&5
9331
ac_cv_lib_dl_dlopen=no
9334
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9335
conftest$ac_exeext conftest.$ac_ext
9336
LIBS=$ac_check_lib_save_LIBS
9338
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9339
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9340
if test $ac_cv_lib_dl_dlopen = yes; then
9341
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9346
lt_cv_dlopen_self=yes
9353
{ echo "$as_me:$LINENO: checking for shl_load" >&5
9354
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9355
if test "${ac_cv_func_shl_load+set}" = set; then
9356
echo $ECHO_N "(cached) $ECHO_C" >&6
9358
cat >conftest.$ac_ext <<_ACEOF
9361
cat confdefs.h >>conftest.$ac_ext
9362
cat >>conftest.$ac_ext <<_ACEOF
9363
/* end confdefs.h. */
9364
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9365
For example, HP-UX 11i <limits.h> declares gettimeofday. */
9366
#define shl_load innocuous_shl_load
9368
/* System header to define __stub macros and hopefully few prototypes,
9369
which can conflict with char shl_load (); below.
9370
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9371
<limits.h> exists even on freestanding compilers. */
9374
# include <limits.h>
9376
# include <assert.h>
9381
/* Override any GCC internal prototype to avoid an error.
9382
Use char because int might match the return type of a GCC
9383
builtin and then its argument prototype would still apply. */
9388
/* The GNU C library defines this for functions which it implements
9389
to always fail with ENOSYS. Some functions are actually named
9390
something starting with __ and the normal name is an alias. */
9391
#if defined __stub_shl_load || defined __stub___shl_load
9403
rm -f conftest.$ac_objext conftest$ac_exeext
9404
if { (ac_try="$ac_link"
9406
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9407
*) ac_try_echo=$ac_try;;
9409
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9410
(eval "$ac_link") 2>conftest.er1
9412
grep -v '^ *+' conftest.er1 >conftest.err
9414
cat conftest.err >&5
9415
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9416
(exit $ac_status); } && {
9417
test -z "$ac_c_werror_flag" ||
9418
test ! -s conftest.err
9419
} && test -s conftest$ac_exeext &&
9420
$as_test_x conftest$ac_exeext; then
9421
ac_cv_func_shl_load=yes
9423
echo "$as_me: failed program was:" >&5
9424
sed 's/^/| /' conftest.$ac_ext >&5
9426
ac_cv_func_shl_load=no
9429
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9430
conftest$ac_exeext conftest.$ac_ext
9432
{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9433
echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9434
if test $ac_cv_func_shl_load = yes; then
9435
lt_cv_dlopen="shl_load"
9437
{ echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9438
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9439
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9440
echo $ECHO_N "(cached) $ECHO_C" >&6
9442
ac_check_lib_save_LIBS=$LIBS
9444
cat >conftest.$ac_ext <<_ACEOF
9447
cat confdefs.h >>conftest.$ac_ext
9448
cat >>conftest.$ac_ext <<_ACEOF
9449
/* end confdefs.h. */
9451
/* Override any GCC internal prototype to avoid an error.
9452
Use char because int might match the return type of a GCC
9453
builtin and then its argument prototype would still apply. */
9466
rm -f conftest.$ac_objext conftest$ac_exeext
9467
if { (ac_try="$ac_link"
9469
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9470
*) ac_try_echo=$ac_try;;
9472
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9473
(eval "$ac_link") 2>conftest.er1
9475
grep -v '^ *+' conftest.er1 >conftest.err
9477
cat conftest.err >&5
9478
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9479
(exit $ac_status); } && {
9480
test -z "$ac_c_werror_flag" ||
9481
test ! -s conftest.err
9482
} && test -s conftest$ac_exeext &&
9483
$as_test_x conftest$ac_exeext; then
9484
ac_cv_lib_dld_shl_load=yes
9486
echo "$as_me: failed program was:" >&5
9487
sed 's/^/| /' conftest.$ac_ext >&5
9489
ac_cv_lib_dld_shl_load=no
9492
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9493
conftest$ac_exeext conftest.$ac_ext
9494
LIBS=$ac_check_lib_save_LIBS
9496
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9497
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9498
if test $ac_cv_lib_dld_shl_load = yes; then
9499
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9501
{ echo "$as_me:$LINENO: checking for dlopen" >&5
9502
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9503
if test "${ac_cv_func_dlopen+set}" = set; then
9504
echo $ECHO_N "(cached) $ECHO_C" >&6
9506
cat >conftest.$ac_ext <<_ACEOF
9509
cat confdefs.h >>conftest.$ac_ext
9510
cat >>conftest.$ac_ext <<_ACEOF
9511
/* end confdefs.h. */
9512
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9513
For example, HP-UX 11i <limits.h> declares gettimeofday. */
9514
#define dlopen innocuous_dlopen
9516
/* System header to define __stub macros and hopefully few prototypes,
9517
which can conflict with char dlopen (); below.
9518
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9519
<limits.h> exists even on freestanding compilers. */
9522
# include <limits.h>
9524
# include <assert.h>
9529
/* Override any GCC internal prototype to avoid an error.
9530
Use char because int might match the return type of a GCC
9531
builtin and then its argument prototype would still apply. */
9536
/* The GNU C library defines this for functions which it implements
9537
to always fail with ENOSYS. Some functions are actually named
9538
something starting with __ and the normal name is an alias. */
9539
#if defined __stub_dlopen || defined __stub___dlopen
9551
rm -f conftest.$ac_objext conftest$ac_exeext
9552
if { (ac_try="$ac_link"
9554
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9555
*) ac_try_echo=$ac_try;;
9557
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9558
(eval "$ac_link") 2>conftest.er1
9560
grep -v '^ *+' conftest.er1 >conftest.err
9562
cat conftest.err >&5
9563
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9564
(exit $ac_status); } && {
9565
test -z "$ac_c_werror_flag" ||
9566
test ! -s conftest.err
9567
} && test -s conftest$ac_exeext &&
9568
$as_test_x conftest$ac_exeext; then
9569
ac_cv_func_dlopen=yes
9571
echo "$as_me: failed program was:" >&5
9572
sed 's/^/| /' conftest.$ac_ext >&5
9574
ac_cv_func_dlopen=no
9577
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9578
conftest$ac_exeext conftest.$ac_ext
9580
{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9581
echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9582
if test $ac_cv_func_dlopen = yes; then
9583
lt_cv_dlopen="dlopen"
9585
{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9586
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9587
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9588
echo $ECHO_N "(cached) $ECHO_C" >&6
9590
ac_check_lib_save_LIBS=$LIBS
9592
cat >conftest.$ac_ext <<_ACEOF
9595
cat confdefs.h >>conftest.$ac_ext
9596
cat >>conftest.$ac_ext <<_ACEOF
9597
/* end confdefs.h. */
9599
/* Override any GCC internal prototype to avoid an error.
9600
Use char because int might match the return type of a GCC
9601
builtin and then its argument prototype would still apply. */
9614
rm -f conftest.$ac_objext conftest$ac_exeext
9615
if { (ac_try="$ac_link"
9617
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9618
*) ac_try_echo=$ac_try;;
9620
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9621
(eval "$ac_link") 2>conftest.er1
9623
grep -v '^ *+' conftest.er1 >conftest.err
9625
cat conftest.err >&5
9626
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9627
(exit $ac_status); } && {
9628
test -z "$ac_c_werror_flag" ||
9629
test ! -s conftest.err
9630
} && test -s conftest$ac_exeext &&
9631
$as_test_x conftest$ac_exeext; then
9632
ac_cv_lib_dl_dlopen=yes
9634
echo "$as_me: failed program was:" >&5
9635
sed 's/^/| /' conftest.$ac_ext >&5
9637
ac_cv_lib_dl_dlopen=no
9640
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9641
conftest$ac_exeext conftest.$ac_ext
9642
LIBS=$ac_check_lib_save_LIBS
9644
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9645
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9646
if test $ac_cv_lib_dl_dlopen = yes; then
9647
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9649
{ echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9650
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9651
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9652
echo $ECHO_N "(cached) $ECHO_C" >&6
9654
ac_check_lib_save_LIBS=$LIBS
9656
cat >conftest.$ac_ext <<_ACEOF
9659
cat confdefs.h >>conftest.$ac_ext
9660
cat >>conftest.$ac_ext <<_ACEOF
9661
/* end confdefs.h. */
9663
/* Override any GCC internal prototype to avoid an error.
9664
Use char because int might match the return type of a GCC
9665
builtin and then its argument prototype would still apply. */
9678
rm -f conftest.$ac_objext conftest$ac_exeext
9679
if { (ac_try="$ac_link"
9681
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9682
*) ac_try_echo=$ac_try;;
9684
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9685
(eval "$ac_link") 2>conftest.er1
9687
grep -v '^ *+' conftest.er1 >conftest.err
9689
cat conftest.err >&5
9690
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9691
(exit $ac_status); } && {
9692
test -z "$ac_c_werror_flag" ||
9693
test ! -s conftest.err
9694
} && test -s conftest$ac_exeext &&
9695
$as_test_x conftest$ac_exeext; then
9696
ac_cv_lib_svld_dlopen=yes
9698
echo "$as_me: failed program was:" >&5
9699
sed 's/^/| /' conftest.$ac_ext >&5
9701
ac_cv_lib_svld_dlopen=no
9704
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9705
conftest$ac_exeext conftest.$ac_ext
9706
LIBS=$ac_check_lib_save_LIBS
9708
{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9709
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9710
if test $ac_cv_lib_svld_dlopen = yes; then
9711
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9713
{ echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9714
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9715
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9716
echo $ECHO_N "(cached) $ECHO_C" >&6
9718
ac_check_lib_save_LIBS=$LIBS
9720
cat >conftest.$ac_ext <<_ACEOF
9723
cat confdefs.h >>conftest.$ac_ext
9724
cat >>conftest.$ac_ext <<_ACEOF
9725
/* end confdefs.h. */
9727
/* Override any GCC internal prototype to avoid an error.
9728
Use char because int might match the return type of a GCC
9729
builtin and then its argument prototype would still apply. */
9742
rm -f conftest.$ac_objext conftest$ac_exeext
9743
if { (ac_try="$ac_link"
9745
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9746
*) ac_try_echo=$ac_try;;
9748
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9749
(eval "$ac_link") 2>conftest.er1
9751
grep -v '^ *+' conftest.er1 >conftest.err
9753
cat conftest.err >&5
9754
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9755
(exit $ac_status); } && {
9756
test -z "$ac_c_werror_flag" ||
9757
test ! -s conftest.err
9758
} && test -s conftest$ac_exeext &&
9759
$as_test_x conftest$ac_exeext; then
9760
ac_cv_lib_dld_dld_link=yes
9762
echo "$as_me: failed program was:" >&5
9763
sed 's/^/| /' conftest.$ac_ext >&5
9765
ac_cv_lib_dld_dld_link=no
9768
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9769
conftest$ac_exeext conftest.$ac_ext
9770
LIBS=$ac_check_lib_save_LIBS
9772
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9773
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9774
if test $ac_cv_lib_dld_dld_link = yes; then
9775
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9796
if test "x$lt_cv_dlopen" != xno; then
9802
case $lt_cv_dlopen in
9804
save_CPPFLAGS="$CPPFLAGS"
9805
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9807
save_LDFLAGS="$LDFLAGS"
9808
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9811
LIBS="$lt_cv_dlopen_libs $LIBS"
9813
{ echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9814
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9815
if test "${lt_cv_dlopen_self+set}" = set; then
9816
echo $ECHO_N "(cached) $ECHO_C" >&6
9818
if test "$cross_compiling" = yes; then :
9819
lt_cv_dlopen_self=cross
9821
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9822
lt_status=$lt_dlunknown
9823
cat > conftest.$ac_ext <<EOF
9824
#line 9824 "configure"
9825
#include "confdefs.h"
9834
# define LT_DLGLOBAL RTLD_GLOBAL
9837
# define LT_DLGLOBAL DL_GLOBAL
9839
# define LT_DLGLOBAL 0
9843
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9844
find out it does not work in some platform. */
9845
#ifndef LT_DLLAZY_OR_NOW
9847
# define LT_DLLAZY_OR_NOW RTLD_LAZY
9850
# define LT_DLLAZY_OR_NOW DL_LAZY
9853
# define LT_DLLAZY_OR_NOW RTLD_NOW
9856
# define LT_DLLAZY_OR_NOW DL_NOW
9858
# define LT_DLLAZY_OR_NOW 0
9866
extern "C" void exit (int);
9869
void fnord() { int i=42;}
9872
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9873
int status = $lt_dlunknown;
9877
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9878
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9879
/* dlclose (self); */
9887
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9888
(eval $ac_link) 2>&5
9890
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9891
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9892
(./conftest; exit; ) >&5 2>/dev/null
9895
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9896
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9897
x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9900
# compilation failed
9901
lt_cv_dlopen_self=no
9908
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9909
echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9911
if test "x$lt_cv_dlopen_self" = xyes; then
9912
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9913
{ echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9914
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9915
if test "${lt_cv_dlopen_self_static+set}" = set; then
9916
echo $ECHO_N "(cached) $ECHO_C" >&6
9918
if test "$cross_compiling" = yes; then :
9919
lt_cv_dlopen_self_static=cross
9921
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9922
lt_status=$lt_dlunknown
9923
cat > conftest.$ac_ext <<EOF
9924
#line 9924 "configure"
9925
#include "confdefs.h"
9934
# define LT_DLGLOBAL RTLD_GLOBAL
9937
# define LT_DLGLOBAL DL_GLOBAL
9939
# define LT_DLGLOBAL 0
9943
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9944
find out it does not work in some platform. */
9945
#ifndef LT_DLLAZY_OR_NOW
9947
# define LT_DLLAZY_OR_NOW RTLD_LAZY
9950
# define LT_DLLAZY_OR_NOW DL_LAZY
9953
# define LT_DLLAZY_OR_NOW RTLD_NOW
9956
# define LT_DLLAZY_OR_NOW DL_NOW
9958
# define LT_DLLAZY_OR_NOW 0
9966
extern "C" void exit (int);
9969
void fnord() { int i=42;}
9972
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9973
int status = $lt_dlunknown;
9977
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9978
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9979
/* dlclose (self); */
9987
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9988
(eval $ac_link) 2>&5
9990
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9991
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9992
(./conftest; exit; ) >&5 2>/dev/null
9995
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9996
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9997
x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10000
# compilation failed
10001
lt_cv_dlopen_self_static=no
10008
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10009
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10012
CPPFLAGS="$save_CPPFLAGS"
10013
LDFLAGS="$save_LDFLAGS"
10018
case $lt_cv_dlopen_self in
10019
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10020
*) enable_dlopen_self=unknown ;;
10023
case $lt_cv_dlopen_self_static in
10024
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10025
*) enable_dlopen_self_static=unknown ;;
10030
# Report which library types will actually be built
10031
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10032
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10033
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
10034
echo "${ECHO_T}$can_build_shared" >&6; }
10036
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10037
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10038
test "$can_build_shared" = "no" && enable_shared=no
10040
# On AIX, shared libraries and static libraries use the same namespace, and
10041
# are all built from PIC.
10044
test "$enable_shared" = yes && enable_static=no
10045
if test -n "$RANLIB"; then
10046
archive_cmds="$archive_cmds~\$RANLIB \$lib"
10047
postinstall_cmds='$RANLIB $lib'
10052
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10053
test "$enable_shared" = yes && enable_static=no
10057
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10058
echo "${ECHO_T}$enable_shared" >&6; }
10060
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10061
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10062
# Make sure either enable_shared or enable_static is yes.
10063
test "$enable_shared" = yes || enable_static=yes
10064
{ echo "$as_me:$LINENO: result: $enable_static" >&5
10065
echo "${ECHO_T}$enable_static" >&6; }
10067
# The else clause should only fire when bootstrapping the
10068
# libtool distribution, otherwise you forgot to ship ltmain.sh
10069
# with your package, and you will get complaints that there are
10070
# no rules to generate ltmain.sh.
10071
if test -f "$ltmain"; then
10072
# See if we are running on zsh, and set the options which allow our commands through
10073
# without removal of \ escapes.
10074
if test -n "${ZSH_VERSION+set}" ; then
10075
setopt NO_GLOB_SUBST
10077
# Now quote all the things that may contain metacharacters while being
10078
# careful not to overquote the AC_SUBSTed values. We take copies of the
10079
# variables and quote the copies for generation of the libtool script.
10080
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10082
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10083
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10084
deplibs_check_method reload_flag reload_cmds need_locks \
10085
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10086
lt_cv_sys_global_symbol_to_c_name_address \
10087
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10088
old_postinstall_cmds old_postuninstall_cmds \
10092
lt_prog_compiler_wl \
10093
lt_prog_compiler_pic \
10094
lt_prog_compiler_static \
10095
lt_prog_compiler_no_builtin_flag \
10096
export_dynamic_flag_spec \
10097
thread_safe_flag_spec \
10098
whole_archive_flag_spec \
10099
enable_shared_with_static_runtimes \
10101
old_archive_from_new_cmds \
10106
compiler_lib_search_path \
10108
archive_expsym_cmds \
10110
postuninstall_cmds \
10111
old_archive_from_expsyms_cmds \
10112
allow_undefined_flag \
10113
no_undefined_flag \
10114
export_symbols_cmds \
10115
hardcode_libdir_flag_spec \
10116
hardcode_libdir_flag_spec_ld \
10117
hardcode_libdir_separator \
10118
hardcode_automatic \
10120
module_expsym_cmds \
10121
lt_cv_prog_compiler_c_o \
10123
include_expsyms; do
10126
old_archive_cmds | \
10127
old_archive_from_new_cmds | \
10129
archive_expsym_cmds | \
10131
module_expsym_cmds | \
10132
old_archive_from_expsyms_cmds | \
10133
export_symbols_cmds | \
10134
extract_expsyms_cmds | reload_cmds | finish_cmds | \
10135
postinstall_cmds | postuninstall_cmds | \
10136
old_postinstall_cmds | old_postuninstall_cmds | \
10137
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10138
# Double-quote double-evaled strings.
10139
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10142
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10148
*'\$0 --fallback-echo"')
10149
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10153
cfgfile="${ofile}T"
10154
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10156
{ echo "$as_me:$LINENO: creating $ofile" >&5
10157
echo "$as_me: creating $ofile" >&6;}
10159
cat <<__EOF__ >> "$cfgfile"
10162
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10163
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10164
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10166
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10167
# Free Software Foundation, Inc.
10169
# This file is part of GNU Libtool:
10170
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10172
# This program is free software; you can redistribute it and/or modify
10173
# it under the terms of the GNU General Public License as published by
10174
# the Free Software Foundation; either version 2 of the License, or
10175
# (at your option) any later version.
10177
# This program is distributed in the hope that it will be useful, but
10178
# WITHOUT ANY WARRANTY; without even the implied warranty of
10179
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10180
# General Public License for more details.
10182
# You should have received a copy of the GNU General Public License
10183
# along with this program; if not, write to the Free Software
10184
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10186
# As a special exception to the GNU General Public License, if you
10187
# distribute this file as part of a program that contains a
10188
# configuration script generated by Autoconf, you may include it under
10189
# the same distribution terms that you use for the rest of that program.
10191
# A sed program that does not truncate output.
10194
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10195
Xsed="$SED -e 1s/^X//"
10197
# The HP-UX ksh and POSIX shell print the target directory to stdout
10198
# if CDPATH is set.
10199
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10201
# The names of the tagged configurations supported by this script.
10204
# ### BEGIN LIBTOOL CONFIG
10206
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10208
# Shell to use when invoking shell scripts.
10211
# Whether or not to build shared libraries.
10212
build_libtool_libs=$enable_shared
10214
# Whether or not to build static libraries.
10215
build_old_libs=$enable_static
10217
# Whether or not to add -lc for building shared libraries.
10218
build_libtool_need_lc=$archive_cmds_need_lc
10220
# Whether or not to disallow shared libs when runtime libs are static
10221
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10223
# Whether or not to optimize for fast installation.
10224
fast_install=$enable_fast_install
10227
host_alias=$host_alias
10231
# The build system.
10232
build_alias=$build_alias
10236
# An echo program that does not interpret backslashes.
10241
AR_FLAGS=$lt_AR_FLAGS
10246
# LTCC compiler flags.
10247
LTCFLAGS=$lt_LTCFLAGS
10249
# A language-specific compiler.
10252
# Is the compiler the GNU C compiler?
10258
# The linker used to build libraries.
10261
# Whether we need hard or soft links.
10264
# A BSD-compatible nm program.
10267
# A symbol stripping program
10270
# Used to examine libraries when file_magic_cmd begins "file"
10271
MAGIC_CMD=$MAGIC_CMD
10273
# Used on cygwin: DLL creation program.
10276
# Used on cygwin: object dumper.
10279
# Used on cygwin: assembler.
10282
# The name of the directory that contains temporary libtool files.
10285
# How to create reloadable object files.
10286
reload_flag=$lt_reload_flag
10287
reload_cmds=$lt_reload_cmds
10289
# How to pass a linker flag through the compiler.
10290
wl=$lt_lt_prog_compiler_wl
10292
# Object file suffix (normally "o").
10293
objext="$ac_objext"
10295
# Old archive suffix (normally "a").
10298
# Shared library suffix (normally ".so").
10299
shrext_cmds='$shrext_cmds'
10301
# Executable file suffix (normally "").
10304
# Additional compiler flags for building library objects.
10305
pic_flag=$lt_lt_prog_compiler_pic
10308
# What is the maximum length of a command?
10309
max_cmd_len=$lt_cv_sys_max_cmd_len
10311
# Does compiler simultaneously support -c and -o options?
10312
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10314
# Must we lock files when doing compilation?
10315
need_locks=$lt_need_locks
10317
# Do we need the lib prefix for modules?
10318
need_lib_prefix=$need_lib_prefix
10320
# Do we need a version for libraries?
10321
need_version=$need_version
10323
# Whether dlopen is supported.
10324
dlopen_support=$enable_dlopen
10326
# Whether dlopen of programs is supported.
10327
dlopen_self=$enable_dlopen_self
10329
# Whether dlopen of statically linked programs is supported.
10330
dlopen_self_static=$enable_dlopen_self_static
10332
# Compiler flag to prevent dynamic linking.
10333
link_static_flag=$lt_lt_prog_compiler_static
10335
# Compiler flag to turn off builtin functions.
10336
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10338
# Compiler flag to allow reflexive dlopens.
10339
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10341
# Compiler flag to generate shared objects directly from archives.
10342
whole_archive_flag_spec=$lt_whole_archive_flag_spec
10344
# Compiler flag to generate thread-safe objects.
10345
thread_safe_flag_spec=$lt_thread_safe_flag_spec
10347
# Library versioning type.
10348
version_type=$version_type
10350
# Format of library name prefix.
10351
libname_spec=$lt_libname_spec
10353
# List of archive names. First name is the real one, the rest are links.
10354
# The last name is the one that the linker finds with -lNAME.
10355
library_names_spec=$lt_library_names_spec
10357
# The coded name of the library, if different from the real name.
10358
soname_spec=$lt_soname_spec
10360
# Commands used to build and install an old-style archive.
10362
old_archive_cmds=$lt_old_archive_cmds
10363
old_postinstall_cmds=$lt_old_postinstall_cmds
10364
old_postuninstall_cmds=$lt_old_postuninstall_cmds
10366
# Create an old-style archive from a shared archive.
10367
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10369
# Create a temporary old-style archive to link instead of a shared archive.
10370
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10372
# Commands used to build and install a shared archive.
10373
archive_cmds=$lt_archive_cmds
10374
archive_expsym_cmds=$lt_archive_expsym_cmds
10375
postinstall_cmds=$lt_postinstall_cmds
10376
postuninstall_cmds=$lt_postuninstall_cmds
10378
# Commands used to build a loadable module (assumed same as above if empty)
10379
module_cmds=$lt_module_cmds
10380
module_expsym_cmds=$lt_module_expsym_cmds
10382
# Commands to strip libraries.
10383
old_striplib=$lt_old_striplib
10384
striplib=$lt_striplib
10386
# Dependencies to place before the objects being linked to create a
10388
predep_objects=$lt_predep_objects
10390
# Dependencies to place after the objects being linked to create a
10392
postdep_objects=$lt_postdep_objects
10394
# Dependencies to place before the objects being linked to create a
10396
predeps=$lt_predeps
10398
# Dependencies to place after the objects being linked to create a
10400
postdeps=$lt_postdeps
10402
# The library search path used internally by the compiler when linking
10403
# a shared library.
10404
compiler_lib_search_path=$lt_compiler_lib_search_path
10406
# Method to check whether dependent libraries are shared objects.
10407
deplibs_check_method=$lt_deplibs_check_method
10409
# Command to use when deplibs_check_method == file_magic.
10410
file_magic_cmd=$lt_file_magic_cmd
10412
# Flag that allows shared libraries with undefined symbols to be built.
10413
allow_undefined_flag=$lt_allow_undefined_flag
10415
# Flag that forces no undefined symbols.
10416
no_undefined_flag=$lt_no_undefined_flag
10418
# Commands used to finish a libtool library installation in a directory.
10419
finish_cmds=$lt_finish_cmds
10421
# Same as above, but a single script fragment to be evaled but not shown.
10422
finish_eval=$lt_finish_eval
10424
# Take the output of nm and produce a listing of raw symbols and C names.
10425
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10427
# Transform the output of nm in a proper C declaration
10428
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10430
# Transform the output of nm in a C name address pair
10431
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10433
# This is the shared library runtime path variable.
10434
runpath_var=$runpath_var
10436
# This is the shared library path variable.
10437
shlibpath_var=$shlibpath_var
10439
# Is shlibpath searched before the hard-coded library search path?
10440
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10442
# How to hardcode a shared library path into an executable.
10443
hardcode_action=$hardcode_action
10445
# Whether we should hardcode library paths into libraries.
10446
hardcode_into_libs=$hardcode_into_libs
10448
# Flag to hardcode \$libdir into a binary during linking.
10449
# This must work even if \$libdir does not exist.
10450
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10452
# If ld is used when linking, flag to hardcode \$libdir into
10453
# a binary during linking. This must work even if \$libdir does
10455
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10457
# Whether we need a single -rpath flag with a separated argument.
10458
hardcode_libdir_separator=$lt_hardcode_libdir_separator
10460
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10461
# resulting binary.
10462
hardcode_direct=$hardcode_direct
10464
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10465
# resulting binary.
10466
hardcode_minus_L=$hardcode_minus_L
10468
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10469
# the resulting binary.
10470
hardcode_shlibpath_var=$hardcode_shlibpath_var
10472
# Set to yes if building a shared library automatically hardcodes DIR into the library
10473
# and all subsequent libraries and executables linked against it.
10474
hardcode_automatic=$hardcode_automatic
10476
# Variables whose values should be saved in libtool wrapper scripts and
10477
# restored at relink time.
10478
variables_saved_for_relink="$variables_saved_for_relink"
10480
# Whether libtool must link a program against all its dependency libraries.
10481
link_all_deplibs=$link_all_deplibs
10483
# Compile-time system search path for libraries
10484
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10486
# Run-time system search path for libraries
10487
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10489
# Fix the shell variable \$srcfile for the compiler.
10490
fix_srcfile_path="$fix_srcfile_path"
10492
# Set to yes if exported symbols are required.
10493
always_export_symbols=$always_export_symbols
10495
# The commands to list exported symbols.
10496
export_symbols_cmds=$lt_export_symbols_cmds
10498
# The commands to extract the exported symbol list from a shared archive.
10499
extract_expsyms_cmds=$lt_extract_expsyms_cmds
10501
# Symbols that should not be listed in the preloaded symbols.
10502
exclude_expsyms=$lt_exclude_expsyms
10504
# Symbols that must always be exported.
10505
include_expsyms=$lt_include_expsyms
10507
# ### END LIBTOOL CONFIG
10514
cat <<\EOF >> "$cfgfile"
10516
# AIX sometimes has problems with the GCC collect2 program. For some
10517
# reason, if we set the COLLECT_NAMES environment variable, the problems
10518
# vanish in a puff of smoke.
10519
if test "X${COLLECT_NAMES+set}" != Xset; then
10521
export COLLECT_NAMES
10527
# We use sed instead of cat because bash on DJGPP gets confused if
10528
# if finds mixed CR/LF and LF-only lines. Since sed operates in
10529
# text mode, it properly converts lines to CR/LF. This bash problem
10530
# is reportedly fixed, but why not run on old versions too?
10531
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10533
mv -f "$cfgfile" "$ofile" || \
10534
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10538
# If there is no Makefile yet, we rely on a make rule to execute
10539
# `config.status --recheck' to rerun these tests and create the
10540
# libtool script then.
10541
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10542
if test -f "$ltmain_in"; then
10543
test -f Makefile && make "$ltmain"
10549
ac_cpp='$CPP $CPPFLAGS'
10550
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10551
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10552
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10557
# Check whether --with-tags was given.
10558
if test "${with_tags+set}" = set; then
10559
withval=$with_tags; tagnames="$withval"
10563
if test -f "$ltmain" && test -n "$tagnames"; then
10564
if test ! -f "${ofile}"; then
10565
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10566
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10569
if test -z "$LTCC"; then
10570
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10571
if test -z "$LTCC"; then
10572
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10573
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10575
{ echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10576
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10579
if test -z "$LTCFLAGS"; then
10580
eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10583
# Extract list of available tagged configurations in $ofile.
10584
# Note that this assumes the entire list is on one line.
10585
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10587
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10588
for tagname in $tagnames; do
10590
# Check whether tagname contains only valid characters
10591
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10593
*) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10594
echo "$as_me: error: invalid tag name: $tagname" >&2;}
10595
{ (exit 1); exit 1; }; }
10599
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10601
{ { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10602
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10603
{ (exit 1); exit 1; }; }
10606
# Update the list of available tags.
10607
if test -n "$tagname"; then
10608
echo appending configuration tag \"$tagname\" to $ofile
10612
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10613
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10614
(test "X$CXX" != "Xg++"))) ; then
10616
ac_cpp='$CXXCPP $CPPFLAGS'
10617
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10618
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10619
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10624
archive_cmds_need_lc_CXX=no
10625
allow_undefined_flag_CXX=
10626
always_export_symbols_CXX=no
10627
archive_expsym_cmds_CXX=
10628
export_dynamic_flag_spec_CXX=
10629
hardcode_direct_CXX=no
10630
hardcode_libdir_flag_spec_CXX=
10631
hardcode_libdir_flag_spec_ld_CXX=
10632
hardcode_libdir_separator_CXX=
10633
hardcode_minus_L_CXX=no
10634
hardcode_shlibpath_var_CXX=unsupported
10635
hardcode_automatic_CXX=no
10637
module_expsym_cmds_CXX=
10638
link_all_deplibs_CXX=unknown
10639
old_archive_cmds_CXX=$old_archive_cmds
10640
no_undefined_flag_CXX=
10641
whole_archive_flag_spec_CXX=
10642
enable_shared_with_static_runtimes_CXX=no
10644
# Dependencies to place before and after the object being linked:
10645
predep_objects_CXX=
10646
postdep_objects_CXX=
10649
compiler_lib_search_path_CXX=
10651
# Source file extension for C++ test sources.
10654
# Object file extension for compiled C++ test sources.
10658
# Code to be used in simple compile tests
10659
lt_simple_compile_test_code="int some_variable = 0;\n"
10661
# Code to be used in simple link tests
10662
lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10664
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10666
# If no C compiler was specified, use CC.
10669
# If no C compiler flags were specified, use CFLAGS.
10670
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10672
# Allow CC to be a program name with arguments.
10676
# save warnings/boilerplate of simple test code
10677
ac_outfile=conftest.$ac_objext
10678
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10679
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10680
_lt_compiler_boilerplate=`cat conftest.err`
10683
ac_outfile=conftest.$ac_objext
10684
printf "$lt_simple_link_test_code" >conftest.$ac_ext
10685
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10686
_lt_linker_boilerplate=`cat conftest.err`
10690
# Allow CC to be a program name with arguments.
10695
lt_save_with_gnu_ld=$with_gnu_ld
10696
lt_save_path_LD=$lt_cv_path_LD
10697
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10698
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10700
$as_unset lt_cv_prog_gnu_ld
10702
if test -n "${lt_cv_path_LDCXX+set}"; then
10703
lt_cv_path_LD=$lt_cv_path_LDCXX
10705
$as_unset lt_cv_path_LD
10707
test -z "${LDCXX+set}" || LD=$LDCXX
10711
for cc_temp in $compiler""; do
10713
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10714
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10719
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10722
# We don't want -fno-exception wen compiling C++ code, so set the
10723
# no_builtin_flag separately
10724
if test "$GXX" = yes; then
10725
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10727
lt_prog_compiler_no_builtin_flag_CXX=
10730
if test "$GXX" = yes; then
10731
# Set up default GNU C++ configuration
10734
# Check whether --with-gnu-ld was given.
10735
if test "${with_gnu_ld+set}" = set; then
10736
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10742
if test "$GCC" = yes; then
10743
# Check if gcc -print-prog-name=ld gives a path.
10744
{ echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10745
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10748
# gcc leaves a trailing carriage return which upsets mingw
10749
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10751
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10754
# Accept absolute paths.
10756
re_direlt='/[^/][^/]*/\.\./'
10757
# Canonicalize the pathname of ld
10758
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10759
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10760
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10762
test -z "$LD" && LD="$ac_prog"
10765
# If it fails, then pretend we aren't using GCC.
10769
# If it is relative, then search for the first ld in PATH.
10770
with_gnu_ld=unknown
10773
elif test "$with_gnu_ld" = yes; then
10774
{ echo "$as_me:$LINENO: checking for GNU ld" >&5
10775
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10777
{ echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10778
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10780
if test "${lt_cv_path_LD+set}" = set; then
10781
echo $ECHO_N "(cached) $ECHO_C" >&6
10783
if test -z "$LD"; then
10784
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10785
for ac_dir in $PATH; do
10787
test -z "$ac_dir" && ac_dir=.
10788
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10789
lt_cv_path_LD="$ac_dir/$ac_prog"
10790
# Check to see if the program is GNU ld. I'd rather use --version,
10791
# but apparently some variants of GNU ld only accept -v.
10792
# Break only if it was the GNU/non-GNU ld that we prefer.
10793
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10794
*GNU* | *'with BFD'*)
10795
test "$with_gnu_ld" != no && break
10798
test "$with_gnu_ld" != yes && break
10805
lt_cv_path_LD="$LD" # Let the user override the test with a path.
10809
LD="$lt_cv_path_LD"
10810
if test -n "$LD"; then
10811
{ echo "$as_me:$LINENO: result: $LD" >&5
10812
echo "${ECHO_T}$LD" >&6; }
10814
{ echo "$as_me:$LINENO: result: no" >&5
10815
echo "${ECHO_T}no" >&6; }
10817
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10818
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10819
{ (exit 1); exit 1; }; }
10820
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10821
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10822
if test "${lt_cv_prog_gnu_ld+set}" = set; then
10823
echo $ECHO_N "(cached) $ECHO_C" >&6
10825
# I'd rather use --version here, but apparently some GNU lds only accept -v.
10826
case `$LD -v 2>&1 </dev/null` in
10827
*GNU* | *'with BFD'*)
10828
lt_cv_prog_gnu_ld=yes
10831
lt_cv_prog_gnu_ld=no
10835
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10836
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10837
with_gnu_ld=$lt_cv_prog_gnu_ld
10841
# Check if GNU C++ uses GNU ld as the underlying linker, since the
10842
# archiving commands below assume that GNU ld is being used.
10843
if test "$with_gnu_ld" = yes; then
10844
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10845
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'
10847
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10848
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10850
# If archive_cmds runs LD, not CC, wlarc should be empty
10851
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10852
# investigate it a little bit more. (MM)
10855
# ancient GNU ld didn't support --whole-archive et. al.
10856
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10857
grep 'no-whole-archive' > /dev/null; then
10858
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10860
whole_archive_flag_spec_CXX=
10866
# A generic and very simple default shared library creation
10867
# command for GNU C++ for the case where it uses the native
10868
# linker, instead of GNU ld. If possible, this setting should
10869
# overridden to take advantage of the native linker features on
10870
# the platform it is being used on.
10871
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10874
# Commands to make compiler produce verbose output that lists
10875
# what "hidden" libraries, object files and flags are used when
10876
# linking a shared library.
10877
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10885
# PORTME: fill in a description of your system's C++ link characteristics
10886
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10887
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10891
# FIXME: insert proper C++ library support
10895
if test "$host_cpu" = ia64; then
10896
# On IA64, the linker does run time linking by default, so we don't
10897
# have to do anything special.
10898
aix_use_runtimelinking=no
10899
exp_sym_flag='-Bexport'
10902
aix_use_runtimelinking=no
10904
# Test if we are trying to use run time linking or normal
10905
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10906
# need to do runtime linking.
10907
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10908
for ld_flag in $LDFLAGS; do
10911
aix_use_runtimelinking=yes
10919
exp_sym_flag='-bexport'
10920
no_entry_flag='-bnoentry'
10923
# When large executables or shared objects are built, AIX ld can
10924
# have problems creating the table of contents. If linking a library
10925
# or program results in "error TOC overflow" add -mminimal-toc to
10926
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10927
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10929
archive_cmds_CXX=''
10930
hardcode_direct_CXX=yes
10931
hardcode_libdir_separator_CXX=':'
10932
link_all_deplibs_CXX=yes
10934
if test "$GXX" = yes; then
10935
case $host_os in aix4.[012]|aix4.[012].*)
10936
# We only want to do this on AIX 4.2 and lower, the check
10937
# below for broken collect2 doesn't work under 4.3+
10938
collect2name=`${CC} -print-prog-name=collect2`
10939
if test -f "$collect2name" && \
10940
strings "$collect2name" | grep resolve_lib_name >/dev/null
10942
# We have reworked collect2
10943
hardcode_direct_CXX=yes
10945
# We have old collect2
10946
hardcode_direct_CXX=unsupported
10947
# It fails to find uninstalled libraries when the uninstalled
10948
# path is not listed in the libpath. Setting hardcode_minus_L
10949
# to unsupported forces relinking
10950
hardcode_minus_L_CXX=yes
10951
hardcode_libdir_flag_spec_CXX='-L$libdir'
10952
hardcode_libdir_separator_CXX=
10956
shared_flag='-shared'
10957
if test "$aix_use_runtimelinking" = yes; then
10958
shared_flag="$shared_flag "'${wl}-G'
10962
if test "$host_cpu" = ia64; then
10963
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10964
# chokes on -Wl,-G. The following line is correct:
10967
if test "$aix_use_runtimelinking" = yes; then
10968
shared_flag='${wl}-G'
10970
shared_flag='${wl}-bM:SRE'
10975
# It seems that -bexpall does not export symbols beginning with
10976
# underscore (_), so it is better to generate a list of symbols to export.
10977
always_export_symbols_CXX=yes
10978
if test "$aix_use_runtimelinking" = yes; then
10979
# Warning - without using the other runtime loading flags (-brtl),
10980
# -berok will link without error, but may produce a broken library.
10981
allow_undefined_flag_CXX='-berok'
10982
# Determine the default libpath from the value encoded in an empty executable.
10983
cat >conftest.$ac_ext <<_ACEOF
10986
cat confdefs.h >>conftest.$ac_ext
10987
cat >>conftest.$ac_ext <<_ACEOF
10988
/* end confdefs.h. */
10998
rm -f conftest.$ac_objext conftest$ac_exeext
10999
if { (ac_try="$ac_link"
11000
case "(($ac_try" in
11001
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11002
*) ac_try_echo=$ac_try;;
11004
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11005
(eval "$ac_link") 2>conftest.er1
11007
grep -v '^ *+' conftest.er1 >conftest.err
11009
cat conftest.err >&5
11010
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11011
(exit $ac_status); } && {
11012
test -z "$ac_cxx_werror_flag" ||
11013
test ! -s conftest.err
11014
} && test -s conftest$ac_exeext &&
11015
$as_test_x conftest$ac_exeext; then
11017
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11019
# Check for a 64-bit object if we didn't find anything.
11020
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11023
echo "$as_me: failed program was:" >&5
11024
sed 's/^/| /' conftest.$ac_ext >&5
11029
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11030
conftest$ac_exeext conftest.$ac_ext
11031
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11033
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11035
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"
11037
if test "$host_cpu" = ia64; then
11038
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11039
allow_undefined_flag_CXX="-z nodefs"
11040
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"
11042
# Determine the default libpath from the value encoded in an empty executable.
11043
cat >conftest.$ac_ext <<_ACEOF
11046
cat confdefs.h >>conftest.$ac_ext
11047
cat >>conftest.$ac_ext <<_ACEOF
11048
/* end confdefs.h. */
11058
rm -f conftest.$ac_objext conftest$ac_exeext
11059
if { (ac_try="$ac_link"
11060
case "(($ac_try" in
11061
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11062
*) ac_try_echo=$ac_try;;
11064
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11065
(eval "$ac_link") 2>conftest.er1
11067
grep -v '^ *+' conftest.er1 >conftest.err
11069
cat conftest.err >&5
11070
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11071
(exit $ac_status); } && {
11072
test -z "$ac_cxx_werror_flag" ||
11073
test ! -s conftest.err
11074
} && test -s conftest$ac_exeext &&
11075
$as_test_x conftest$ac_exeext; then
11077
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11079
# Check for a 64-bit object if we didn't find anything.
11080
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11083
echo "$as_me: failed program was:" >&5
11084
sed 's/^/| /' conftest.$ac_ext >&5
11089
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11090
conftest$ac_exeext conftest.$ac_ext
11091
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11093
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11094
# Warning - without using the other run time loading flags,
11095
# -berok will link without error, but may produce a broken library.
11096
no_undefined_flag_CXX=' ${wl}-bernotok'
11097
allow_undefined_flag_CXX=' ${wl}-berok'
11098
# Exported symbols can be pulled into shared objects from archives
11099
whole_archive_flag_spec_CXX='$convenience'
11100
archive_cmds_need_lc_CXX=yes
11101
# This is similar to how AIX traditionally builds its shared libraries.
11102
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'
11108
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11109
allow_undefined_flag_CXX=unsupported
11110
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11111
# support --undefined. This deserves some investigation. FIXME
11112
archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11119
case $cc_basename in
11121
# FIXME: insert proper C++ library support
11127
cygwin* | mingw* | pw32*)
11128
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11129
# as there is no search path for DLLs.
11130
hardcode_libdir_flag_spec_CXX='-L$libdir'
11131
allow_undefined_flag_CXX=unsupported
11132
always_export_symbols_CXX=no
11133
enable_shared_with_static_runtimes_CXX=yes
11135
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11136
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'
11137
# If the export-symbols file already is a .def file (1st line
11138
# is EXPORTS), use it as is; otherwise, prepend...
11139
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11140
cp $export_symbols $output_objdir/$soname.def;
11142
echo EXPORTS > $output_objdir/$soname.def;
11143
cat $export_symbols >> $output_objdir/$soname.def;
11145
$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'
11150
darwin* | rhapsody*)
11152
rhapsody* | darwin1.[012])
11153
allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11156
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11157
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11159
case ${MACOSX_DEPLOYMENT_TARGET} in
11161
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11164
allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11170
archive_cmds_need_lc_CXX=no
11171
hardcode_direct_CXX=no
11172
hardcode_automatic_CXX=yes
11173
hardcode_shlibpath_var_CXX=unsupported
11174
whole_archive_flag_spec_CXX=''
11175
link_all_deplibs_CXX=yes
11177
if test "$GXX" = yes ; then
11178
lt_int_apple_cc_single_mod=no
11179
output_verbose_link_cmd='echo'
11180
if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11181
lt_int_apple_cc_single_mod=yes
11183
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11184
archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11186
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'
11188
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11189
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11190
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11191
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11193
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11195
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}'
11197
case $cc_basename in
11199
output_verbose_link_cmd='echo'
11200
archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11201
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11202
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11203
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11204
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}'
11214
case $cc_basename in
11216
# FIXME: insert proper C++ library support
11220
# Green Hills C++ Compiler
11221
# FIXME: insert proper C++ library support
11225
# FIXME: insert proper C++ library support
11231
# C++ shared libraries reported to be fairly broken before switch to ELF
11235
archive_cmds_need_lc_CXX=no
11237
freebsd* | kfreebsd*-gnu | dragonfly*)
11238
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11245
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11246
hardcode_libdir_separator_CXX=:
11247
export_dynamic_flag_spec_CXX='${wl}-E'
11248
hardcode_direct_CXX=yes
11249
hardcode_minus_L_CXX=yes # Not in the search PATH,
11250
# but as the default
11251
# location of the library.
11253
case $cc_basename in
11255
# FIXME: insert proper C++ library support
11259
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'
11260
# Commands to make compiler produce verbose output that lists
11261
# what "hidden" libraries, object files and flags are used when
11262
# linking a shared library.
11264
# There doesn't appear to be a way to prevent this compiler from
11265
# explicitly linking system object files so we need to strip them
11266
# from the output so that they don't get included in the library
11268
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'
11271
if test "$GXX" = yes; then
11272
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'
11274
# FIXME: insert proper C++ library support
11281
if test $with_gnu_ld = no; then
11282
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11283
hardcode_libdir_separator_CXX=:
11287
hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11290
export_dynamic_flag_spec_CXX='${wl}-E'
11296
hardcode_direct_CXX=no
11297
hardcode_shlibpath_var_CXX=no
11300
hardcode_direct_CXX=yes
11301
hardcode_minus_L_CXX=yes # Not in the search PATH,
11302
# but as the default
11303
# location of the library.
11307
case $cc_basename in
11309
# FIXME: insert proper C++ library support
11315
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11318
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11321
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11324
# Commands to make compiler produce verbose output that lists
11325
# what "hidden" libraries, object files and flags are used when
11326
# linking a shared library.
11328
# There doesn't appear to be a way to prevent this compiler from
11329
# explicitly linking system object files so we need to strip them
11330
# from the output so that they don't get included in the library
11332
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'
11335
if test "$GXX" = yes; then
11336
if test $with_gnu_ld = no; then
11339
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11342
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11345
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'
11350
# FIXME: insert proper C++ library support
11357
hardcode_direct_CXX=no
11358
hardcode_shlibpath_var_CXX=no
11359
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11360
export_dynamic_flag_spec_CXX='${wl}-E'
11361
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11362
# Instead, shared libraries are loaded at an image base (0x10000000 by
11363
# default) and relocated if they conflict, which is a slow very memory
11364
# consuming and fragmenting process. To avoid this, we pick a random,
11365
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11366
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
11367
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'
11368
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'
11371
case $cc_basename in
11374
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'
11376
# Archives containing C++ object files must be created using
11377
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
11378
# necessary to make sure instantiated templates are included
11380
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11383
if test "$GXX" = yes; then
11384
if test "$with_gnu_ld" = no; then
11385
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'
11387
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'
11390
link_all_deplibs_CXX=yes
11393
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11394
hardcode_libdir_separator_CXX=:
11397
case $cc_basename in
11399
# Kuck and Associates, Inc. (KAI) C++ Compiler
11401
# KCC will only create a shared library if the output file
11402
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11403
# to its proper name (with version) after linking.
11404
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'
11405
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'
11406
# Commands to make compiler produce verbose output that lists
11407
# what "hidden" libraries, object files and flags are used when
11408
# linking a shared library.
11410
# There doesn't appear to be a way to prevent this compiler from
11411
# explicitly linking system object files so we need to strip them
11412
# from the output so that they don't get included in the library
11414
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'
11416
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11417
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11419
# Archives containing C++ object files must be created using
11420
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11421
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11426
# version 8.0 and above of icpc choke on multiply defined symbols
11427
# if we add $predep_objects and $postdep_objects, however 7.1 and
11428
# earlier do not add the objects themselves.
11429
case `$CC -V 2>&1` in
11431
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11432
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'
11434
*) # Version 8.0 or newer
11437
ia64*) tmp_idyn=' -i_dynamic';;
11439
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11440
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'
11443
archive_cmds_need_lc_CXX=no
11444
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11445
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11446
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11449
# Portland Group C++ compiler
11450
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11451
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'
11453
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11454
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11455
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'
11459
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11460
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'
11462
runpath_var=LD_RUN_PATH
11463
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11464
hardcode_libdir_separator_CXX=:
11466
# Commands to make compiler produce verbose output that lists
11467
# what "hidden" libraries, object files and flags are used when
11468
# linking a shared library.
11470
# There doesn't appear to be a way to prevent this compiler from
11471
# explicitly linking system object files so we need to strip them
11472
# from the output so that they don't get included in the library
11474
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'
11479
# FIXME: insert proper C++ library support
11483
# FIXME: insert proper C++ library support
11487
case $cc_basename in
11489
# FIXME: insert proper C++ library support
11493
# FIXME: insert proper C++ library support
11499
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11500
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11502
hardcode_libdir_flag_spec_CXX='-R$libdir'
11503
hardcode_direct_CXX=yes
11504
hardcode_shlibpath_var_CXX=no
11506
# Workaround some broken pre-1.5 toolchains
11507
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11510
# C++ shared libraries are fairly broken
11514
hardcode_direct_CXX=yes
11515
hardcode_shlibpath_var_CXX=no
11516
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11517
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11518
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11519
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11520
export_dynamic_flag_spec_CXX='${wl}-E'
11521
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11523
output_verbose_link_cmd='echo'
11526
case $cc_basename in
11528
# Kuck and Associates, Inc. (KAI) C++ Compiler
11530
# KCC will only create a shared library if the output file
11531
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11532
# to its proper name (with version) after linking.
11533
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'
11535
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11536
hardcode_libdir_separator_CXX=:
11538
# Archives containing C++ object files must be created using
11539
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11540
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11544
# Rational C++ 2.4.1
11545
# FIXME: insert proper C++ library support
11549
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11550
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'
11552
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11553
hardcode_libdir_separator_CXX=:
11555
# Commands to make compiler produce verbose output that lists
11556
# what "hidden" libraries, object files and flags are used when
11557
# linking a shared library.
11559
# There doesn't appear to be a way to prevent this compiler from
11560
# explicitly linking system object files so we need to strip them
11561
# from the output so that they don't get included in the library
11563
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'
11566
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11567
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11568
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'
11570
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11571
hardcode_libdir_separator_CXX=:
11573
# Commands to make compiler produce verbose output that lists
11574
# what "hidden" libraries, object files and flags are used when
11575
# linking a shared library.
11576
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11579
# FIXME: insert proper C++ library support
11586
case $cc_basename in
11588
# Kuck and Associates, Inc. (KAI) C++ Compiler
11590
# KCC will only create a shared library if the output file
11591
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11592
# to its proper name (with version) after linking.
11593
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'
11595
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11596
hardcode_libdir_separator_CXX=:
11598
# Archives containing C++ object files must be created using
11599
# the KAI C++ compiler.
11600
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11603
# Rational C++ 2.4.1
11604
# FIXME: insert proper C++ library support
11608
allow_undefined_flag_CXX=' -expect_unresolved \*'
11609
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'
11610
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11611
echo "-hidden">> $lib.exp~
11612
$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~
11615
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11616
hardcode_libdir_separator_CXX=:
11618
# Commands to make compiler produce verbose output that lists
11619
# what "hidden" libraries, object files and flags are used when
11620
# linking a shared library.
11622
# There doesn't appear to be a way to prevent this compiler from
11623
# explicitly linking system object files so we need to strip them
11624
# from the output so that they don't get included in the library
11626
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'
11629
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11630
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11631
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'
11633
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11634
hardcode_libdir_separator_CXX=:
11636
# Commands to make compiler produce verbose output that lists
11637
# what "hidden" libraries, object files and flags are used when
11638
# linking a shared library.
11639
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11642
# FIXME: insert proper C++ library support
11649
# FIXME: insert proper C++ library support
11653
case $cc_basename in
11656
# FIXME: insert proper C++ library support
11661
# FIXME: insert proper C++ library support
11665
# FIXME: insert proper C++ library support
11671
case $cc_basename in
11673
# Sun C++ 4.2, 5.x and Centerline C++
11674
archive_cmds_need_lc_CXX=yes
11675
no_undefined_flag_CXX=' -zdefs'
11676
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11677
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11678
$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'
11680
hardcode_libdir_flag_spec_CXX='-R$libdir'
11681
hardcode_shlibpath_var_CXX=no
11683
solaris2.[0-5] | solaris2.[0-5].*) ;;
11685
# The C++ compiler is used as linker so we must use $wl
11686
# flag to pass the commands to the underlying system
11687
# linker. We must also pass each convience library through
11688
# to the system linker between allextract/defaultextract.
11689
# The C++ compiler will combine linker options so we
11690
# cannot just pass the convience library names through
11692
# Supported since Solaris 2.6 (maybe 2.5.1?)
11693
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11696
link_all_deplibs_CXX=yes
11698
output_verbose_link_cmd='echo'
11700
# Archives containing C++ object files must be created using
11701
# "CC -xar", where "CC" is the Sun C++ compiler. This is
11702
# necessary to make sure instantiated templates are included
11704
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11707
# Green Hills C++ Compiler
11708
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11710
# The C++ compiler must be used to create the archive.
11711
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11714
# GNU C++ compiler with Solaris linker
11715
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11716
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11717
if $CC --version | grep -v '^2\.7' > /dev/null; then
11718
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11719
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11720
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11722
# Commands to make compiler produce verbose output that lists
11723
# what "hidden" libraries, object files and flags are used when
11724
# linking a shared library.
11725
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11727
# g++ 2.7 appears to require `-G' NOT `-shared' on this
11729
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11730
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11731
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11733
# Commands to make compiler produce verbose output that lists
11734
# what "hidden" libraries, object files and flags are used when
11735
# linking a shared library.
11736
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11739
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11744
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11745
no_undefined_flag_CXX='${wl}-z,text'
11746
archive_cmds_need_lc_CXX=no
11747
hardcode_shlibpath_var_CXX=no
11748
runpath_var='LD_RUN_PATH'
11750
case $cc_basename in
11752
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11753
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11756
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11757
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11761
sysv5* | sco3.2v5* | sco5v6*)
11762
# Note: We can NOT use -z defs as we might desire, because we do not
11763
# link with -lc, and that would cause any symbols used from libc to
11764
# always be unresolved, which means just about no library would
11765
# ever link correctly. If we're not using GNU ld we use -z text
11766
# though, which does catch some bad symbols but isn't as heavy-handed
11768
# For security reasons, it is highly recommended that you always
11769
# use absolute paths for naming shared libraries, and exclude the
11770
# DT_RUNPATH tag from executables and libraries. But doing so
11771
# requires that you compile everything twice, which is a pain.
11772
# So that behaviour is only enabled if SCOABSPATH is set to a
11773
# non-empty value in the environment. Most likely only useful for
11774
# creating official distributions of packages.
11775
# This is a hack until libtool officially supports absolute path
11776
# names for shared libraries.
11777
no_undefined_flag_CXX='${wl}-z,text'
11778
allow_undefined_flag_CXX='${wl}-z,nodefs'
11779
archive_cmds_need_lc_CXX=no
11780
hardcode_shlibpath_var_CXX=no
11781
hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11782
hardcode_libdir_separator_CXX=':'
11783
link_all_deplibs_CXX=yes
11784
export_dynamic_flag_spec_CXX='${wl}-Bexport'
11785
runpath_var='LD_RUN_PATH'
11787
case $cc_basename in
11789
archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11790
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11793
archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11794
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11799
case $cc_basename in
11801
# NonStop-UX NCC 3.20
11802
# FIXME: insert proper C++ library support
11806
# FIXME: insert proper C++ library support
11812
# FIXME: insert proper C++ library support
11816
# FIXME: insert proper C++ library support
11820
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11821
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11822
test "$ld_shlibs_CXX" = no && can_build_shared=no
11828
cat > conftest.$ac_ext <<EOF
11832
Foo (void) { a = 0; }
11838
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11839
(eval $ac_compile) 2>&5
11841
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11842
(exit $ac_status); }; then
11843
# Parse the compiler output and extract the necessary
11844
# objects, libraries and library flags.
11846
# Sentinel used to keep track of whether or not we are before
11847
# the conftest object file.
11848
pre_test_object_deps_done=no
11850
# The `*' in the case matches for architectures that use `case' in
11851
# $output_verbose_cmd can trigger glob expansion during the loop
11852
# eval without this substitution.
11853
output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11855
for p in `eval $output_verbose_link_cmd`; do
11859
# Some compilers place space between "-{L,R}" and the path.
11860
# Remove the space.
11861
if test $p = "-L" \
11862
|| test $p = "-R"; then
11869
if test "$pre_test_object_deps_done" = no; then
11872
# Internal compiler library paths should come after those
11873
# provided the user. The postdeps already come after the
11874
# user supplied libs so there is no need to process them.
11875
if test -z "$compiler_lib_search_path_CXX"; then
11876
compiler_lib_search_path_CXX="${prev}${p}"
11878
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11881
# The "-l" case would never come before the object being
11882
# linked, so don't bother handling this case.
11885
if test -z "$postdeps_CXX"; then
11886
postdeps_CXX="${prev}${p}"
11888
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11894
# This assumes that the test object file only shows up
11895
# once in the compiler output.
11896
if test "$p" = "conftest.$objext"; then
11897
pre_test_object_deps_done=yes
11901
if test "$pre_test_object_deps_done" = no; then
11902
if test -z "$predep_objects_CXX"; then
11903
predep_objects_CXX="$p"
11905
predep_objects_CXX="$predep_objects_CXX $p"
11908
if test -z "$postdep_objects_CXX"; then
11909
postdep_objects_CXX="$p"
11911
postdep_objects_CXX="$postdep_objects_CXX $p"
11916
*) ;; # Ignore the rest.
11924
echo "libtool.m4: error: problem compiling CXX test program"
11927
$rm -f confest.$objext
11929
# PORTME: override above test on systems where it is broken
11932
# Interix 3.5 installs completely hosed .la files for C++, so rather than
11933
# hack all around it, let's just trust "g++" to DTRT.
11934
predep_objects_CXX=
11935
postdep_objects_CXX=
11940
case $cc_basename in
11942
# Adding this requires a known-good setup of shared libraries for
11943
# Sun compiler versions before 5.6, else PIC objects from an old
11944
# archive will be linked into the output, leading to subtle bugs.
11945
postdeps_CXX='-lCstd -lCrun'
11952
case " $postdeps_CXX " in
11953
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11956
lt_prog_compiler_wl_CXX=
11957
lt_prog_compiler_pic_CXX=
11958
lt_prog_compiler_static_CXX=
11960
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11961
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11963
# C++ specific cases for pic, static, wl, etc.
11964
if test "$GXX" = yes; then
11965
lt_prog_compiler_wl_CXX='-Wl,'
11966
lt_prog_compiler_static_CXX='-static'
11970
# All AIX code is PIC.
11971
if test "$host_cpu" = ia64; then
11972
# AIX 5 now supports IA64 processor
11973
lt_prog_compiler_static_CXX='-Bstatic'
11977
# FIXME: we need at least 68020 code to build shared libraries, but
11978
# adding the `-m68020' flag to GCC prevents building anything better,
11980
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11982
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11983
# PIC is the default for these OSes.
11985
mingw* | os2* | pw32*)
11986
# This hack is so that the source file can tell whether it is being
11987
# built for inclusion in a dll (and should export symbols for example).
11988
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11990
darwin* | rhapsody*)
11991
# PIC is the default on this platform
11992
# Common symbols not allowed in MH_DYLIB files
11993
lt_prog_compiler_pic_CXX='-fno-common'
11996
# DJGPP does not support shared libraries at all
11997
lt_prog_compiler_pic_CXX=
12000
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
12001
# Instead, we relocate shared libraries at runtime.
12004
if test -d /usr/nec; then
12005
lt_prog_compiler_pic_CXX=-Kconform_pic
12009
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12010
# not for PA HP-UX.
12015
lt_prog_compiler_pic_CXX='-fPIC'
12020
lt_prog_compiler_pic_CXX='-fPIC'
12026
# All AIX code is PIC.
12027
if test "$host_cpu" = ia64; then
12028
# AIX 5 now supports IA64 processor
12029
lt_prog_compiler_static_CXX='-Bstatic'
12031
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12035
case $cc_basename in
12037
# Green Hills C++ Compiler
12038
# _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"
12043
# PIC is the default on this platform
12044
# Common symbols not allowed in MH_DYLIB files
12045
case $cc_basename in
12047
lt_prog_compiler_pic_CXX='-qnocommon'
12048
lt_prog_compiler_wl_CXX='-Wl,'
12053
case $cc_basename in
12055
lt_prog_compiler_pic_CXX='-KPIC'
12058
# Green Hills C++ Compiler
12059
lt_prog_compiler_pic_CXX='-pic'
12065
freebsd* | kfreebsd*-gnu | dragonfly*)
12066
# FreeBSD uses GNU C++
12068
hpux9* | hpux10* | hpux11*)
12069
case $cc_basename in
12071
lt_prog_compiler_wl_CXX='-Wl,'
12072
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12073
if test "$host_cpu" != ia64; then
12074
lt_prog_compiler_pic_CXX='+Z'
12078
lt_prog_compiler_wl_CXX='-Wl,'
12079
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12085
lt_prog_compiler_pic_CXX='+Z'
12094
# This is c89, which is MS Visual C++ (no shared libs)
12095
# Anyone wants to do a port?
12097
irix5* | irix6* | nonstopux*)
12098
case $cc_basename in
12100
lt_prog_compiler_wl_CXX='-Wl,'
12101
lt_prog_compiler_static_CXX='-non_shared'
12102
# CC pic flag -KPIC is the default.
12109
case $cc_basename in
12112
lt_prog_compiler_wl_CXX='--backend -Wl,'
12113
lt_prog_compiler_pic_CXX='-fPIC'
12117
lt_prog_compiler_wl_CXX='-Wl,'
12118
lt_prog_compiler_pic_CXX='-KPIC'
12119
lt_prog_compiler_static_CXX='-static'
12122
# Portland Group C++ compiler.
12123
lt_prog_compiler_wl_CXX='-Wl,'
12124
lt_prog_compiler_pic_CXX='-fpic'
12125
lt_prog_compiler_static_CXX='-Bstatic'
12129
# Make sure the PIC flag is empty. It appears that all Alpha
12130
# Linux and Compaq Tru64 Unix objects are PIC.
12131
lt_prog_compiler_pic_CXX=
12132
lt_prog_compiler_static_CXX='-non_shared'
12143
case $cc_basename in
12145
lt_prog_compiler_pic_CXX='-W c,exportall'
12153
osf3* | osf4* | osf5*)
12154
case $cc_basename in
12156
lt_prog_compiler_wl_CXX='--backend -Wl,'
12159
# Rational C++ 2.4.1
12160
lt_prog_compiler_pic_CXX='-pic'
12163
# Digital/Compaq C++
12164
lt_prog_compiler_wl_CXX='-Wl,'
12165
# Make sure the PIC flag is empty. It appears that all Alpha
12166
# Linux and Compaq Tru64 Unix objects are PIC.
12167
lt_prog_compiler_pic_CXX=
12168
lt_prog_compiler_static_CXX='-non_shared'
12177
case $cc_basename in
12179
# Sun C++ 4.2, 5.x and Centerline C++
12180
lt_prog_compiler_pic_CXX='-KPIC'
12181
lt_prog_compiler_static_CXX='-Bstatic'
12182
lt_prog_compiler_wl_CXX='-Qoption ld '
12185
# Green Hills C++ Compiler
12186
lt_prog_compiler_pic_CXX='-PIC'
12193
case $cc_basename in
12196
lt_prog_compiler_pic_CXX='-pic'
12197
lt_prog_compiler_static_CXX='-Bstatic'
12201
lt_prog_compiler_pic_CXX='-pic'
12208
case $cc_basename in
12210
# NonStop-UX NCC 3.20
12211
lt_prog_compiler_pic_CXX='-KPIC'
12217
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12218
case $cc_basename in
12220
lt_prog_compiler_wl_CXX='-Wl,'
12221
lt_prog_compiler_pic_CXX='-KPIC'
12222
lt_prog_compiler_static_CXX='-Bstatic'
12229
lt_prog_compiler_can_build_shared_CXX=no
12234
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12235
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12238
# Check to make sure the PIC flag actually works.
12240
if test -n "$lt_prog_compiler_pic_CXX"; then
12242
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12243
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12244
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12245
echo $ECHO_N "(cached) $ECHO_C" >&6
12247
lt_prog_compiler_pic_works_CXX=no
12248
ac_outfile=conftest.$ac_objext
12249
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12250
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12251
# Insert the option either (1) after the last *FLAGS variable, or
12252
# (2) before a word containing "conftest.", or (3) at the end.
12253
# Note that $ac_compile itself does not contain backslashes and begins
12254
# with a dollar sign (not a hyphen), so the echo should work correctly.
12255
# The option is referenced via a variable to avoid confusing sed.
12256
lt_compile=`echo "$ac_compile" | $SED \
12257
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12258
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12259
-e 's:$: $lt_compiler_flag:'`
12260
(eval echo "\"\$as_me:12260: $lt_compile\"" >&5)
12261
(eval "$lt_compile" 2>conftest.err)
12263
cat conftest.err >&5
12264
echo "$as_me:12264: \$? = $ac_status" >&5
12265
if (exit $ac_status) && test -s "$ac_outfile"; then
12266
# The compiler can only warn and ignore the option if not recognized
12267
# So say no if there are warnings other than the usual output.
12268
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12269
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12270
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12271
lt_prog_compiler_pic_works_CXX=yes
12277
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12278
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12280
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12281
case $lt_prog_compiler_pic_CXX in
12283
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12286
lt_prog_compiler_pic_CXX=
12287
lt_prog_compiler_can_build_shared_CXX=no
12292
# For platforms which do not support PIC, -DPIC is meaningless:
12294
lt_prog_compiler_pic_CXX=
12297
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12302
# Check to make sure the static flag actually works.
12304
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12305
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12306
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12307
if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12308
echo $ECHO_N "(cached) $ECHO_C" >&6
12310
lt_prog_compiler_static_works_CXX=no
12311
save_LDFLAGS="$LDFLAGS"
12312
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12313
printf "$lt_simple_link_test_code" > conftest.$ac_ext
12314
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12315
# The linker can only warn and ignore the option if not recognized
12316
# So say no if there are warnings
12317
if test -s conftest.err; then
12318
# Append any errors to the config.log.
12319
cat conftest.err 1>&5
12320
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12321
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12322
if diff conftest.exp conftest.er2 >/dev/null; then
12323
lt_prog_compiler_static_works_CXX=yes
12326
lt_prog_compiler_static_works_CXX=yes
12330
LDFLAGS="$save_LDFLAGS"
12333
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12334
echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12336
if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12339
lt_prog_compiler_static_CXX=
12343
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12344
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12345
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12346
echo $ECHO_N "(cached) $ECHO_C" >&6
12348
lt_cv_prog_compiler_c_o_CXX=no
12349
$rm -r conftest 2>/dev/null
12353
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12355
lt_compiler_flag="-o out/conftest2.$ac_objext"
12356
# Insert the option either (1) after the last *FLAGS variable, or
12357
# (2) before a word containing "conftest.", or (3) at the end.
12358
# Note that $ac_compile itself does not contain backslashes and begins
12359
# with a dollar sign (not a hyphen), so the echo should work correctly.
12360
lt_compile=`echo "$ac_compile" | $SED \
12361
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12362
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12363
-e 's:$: $lt_compiler_flag:'`
12364
(eval echo "\"\$as_me:12364: $lt_compile\"" >&5)
12365
(eval "$lt_compile" 2>out/conftest.err)
12367
cat out/conftest.err >&5
12368
echo "$as_me:12368: \$? = $ac_status" >&5
12369
if (exit $ac_status) && test -s out/conftest2.$ac_objext
12371
# The compiler can only warn and ignore the option if not recognized
12372
# So say no if there are warnings
12373
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12374
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12375
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12376
lt_cv_prog_compiler_c_o_CXX=yes
12381
# SGI C++ compiler will create directory out/ii_files/ for
12382
# template instantiation
12383
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12384
$rm out/* && rmdir out
12390
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12391
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12394
hard_links="nottested"
12395
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12396
# do not overwrite the value of need_locks provided by the user
12397
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12398
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12401
ln conftest.a conftest.b 2>/dev/null && hard_links=no
12403
ln conftest.a conftest.b 2>&5 || hard_links=no
12404
ln conftest.a conftest.b 2>/dev/null && hard_links=no
12405
{ echo "$as_me:$LINENO: result: $hard_links" >&5
12406
echo "${ECHO_T}$hard_links" >&6; }
12407
if test "$hard_links" = no; then
12408
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12409
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12416
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12417
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12419
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12422
# If we're using GNU nm, then we don't want the "-C" option.
12423
# -C means demangle to AIX nm, but means don't demangle with GNU nm
12424
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12425
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'
12427
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'
12431
export_symbols_cmds_CXX="$ltdll_cmds"
12434
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'
12437
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12441
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12442
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12443
test "$ld_shlibs_CXX" = no && can_build_shared=no
12446
# Do we need to explicitly link libc?
12448
case "x$archive_cmds_need_lc_CXX" in
12450
# Assume -lc should be added
12451
archive_cmds_need_lc_CXX=yes
12453
if test "$enable_shared" = yes && test "$GCC" = yes; then
12454
case $archive_cmds_CXX in
12456
# FIXME: we may have to deal with multi-command sequences.
12459
# Test whether the compiler implicitly links with -lc since on some
12460
# systems, -lgcc has to come before -lc. If gcc already passes -lc
12461
# to ld, don't add -lc before -lgcc.
12462
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12463
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12465
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12467
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12468
(eval $ac_compile) 2>&5
12470
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12471
(exit $ac_status); } 2>conftest.err; then
12474
libobjs=conftest.$ac_objext
12476
wl=$lt_prog_compiler_wl_CXX
12477
pic_flag=$lt_prog_compiler_pic_CXX
12483
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12484
allow_undefined_flag_CXX=
12485
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12486
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12488
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12489
(exit $ac_status); }
12491
archive_cmds_need_lc_CXX=no
12493
archive_cmds_need_lc_CXX=yes
12495
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12497
cat conftest.err 1>&5
12500
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12501
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12508
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12509
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12510
library_names_spec=
12511
libname_spec='lib$name'
12515
postuninstall_cmds=
12519
shlibpath_overrides_runpath=unknown
12521
dynamic_linker="$host_os ld.so"
12522
sys_lib_dlsearch_path_spec="/lib /usr/lib"
12523
if test "$GCC" = yes; then
12524
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12525
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12526
# if the path contains ";" then we assume it to be the separator
12527
# otherwise default to the standard path separator (i.e. ":") - it is
12528
# assumed that no part of a normal pathname contains ";" but that should
12529
# okay in the real world where ";" in dirpaths is itself problematic.
12530
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12532
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12535
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12537
need_lib_prefix=unknown
12538
hardcode_into_libs=no
12540
# when you set need_version to no, make sure it does not cause -set_version
12541
# flags to be left without arguments
12542
need_version=unknown
12547
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12548
shlibpath_var=LIBPATH
12550
# AIX 3 has no versioning support, so we append a major version to the name.
12551
soname_spec='${libname}${release}${shared_ext}$major'
12558
hardcode_into_libs=yes
12559
if test "$host_cpu" = ia64; then
12560
# AIX 5 supports IA64
12561
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12562
shlibpath_var=LD_LIBRARY_PATH
12564
# With GCC up to 2.95.x, collect2 would create an import file
12565
# for dependence libraries. The import file would start with
12566
# the line `#! .'. This would cause the generated library to
12567
# depend on `.', always an invalid library. This was fixed in
12568
# development snapshots of GCC prior to 3.0.
12570
aix4 | aix4.[01] | aix4.[01].*)
12571
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12573
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12576
can_build_shared=no
12580
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12581
# soname into executable. Probably we can add versioning support to
12582
# collect2, so additional links can be useful in future.
12583
if test "$aix_use_runtimelinking" = yes; then
12584
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
12585
# instead of lib<name>.a to let people know that these are not
12586
# typical AIX shared libraries.
12587
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12589
# We preserve .a as extension for shared libraries through AIX4.2
12590
# and later when we are not doing run time linking.
12591
library_names_spec='${libname}${release}.a $libname.a'
12592
soname_spec='${libname}${release}${shared_ext}$major'
12594
shlibpath_var=LIBPATH
12599
library_names_spec='$libname.ixlibrary $libname.a'
12600
# Create ${libname}_ixlibrary.a entries in /sys/libs.
12601
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'
12605
library_names_spec='${libname}${shared_ext}'
12606
dynamic_linker="$host_os ld.so"
12607
shlibpath_var=LIBRARY_PATH
12613
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12614
soname_spec='${libname}${release}${shared_ext}$major'
12615
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12616
shlibpath_var=LD_LIBRARY_PATH
12617
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12618
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12619
# the default ld.so.conf also contains /usr/contrib/lib and
12620
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12621
# libtool to hard-code these into programs
12624
cygwin* | mingw* | pw32*)
12625
version_type=windows
12630
case $GCC,$host_os in
12631
yes,cygwin* | yes,mingw* | yes,pw32*)
12632
library_names_spec='$libname.dll.a'
12633
# DLL is installed to $(libdir)/../bin by postinstall_cmds
12634
postinstall_cmds='base_file=`basename \${file}`~
12635
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12636
dldir=$destdir/`dirname \$dlpath`~
12637
test -d \$dldir || mkdir -p \$dldir~
12638
$install_prog $dir/$dlname \$dldir/$dlname~
12639
chmod a+x \$dldir/$dlname'
12640
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12641
dlpath=$dir/\$dldll~
12643
shlibpath_overrides_runpath=yes
12647
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
12648
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12649
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12652
# MinGW DLLs use traditional 'lib' prefix
12653
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12654
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12655
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12656
# It is most probably a Windows format PATH printed by
12657
# mingw gcc, but we are running on Cygwin. Gcc prints its search
12658
# path with ; separators, and with drive letters. We can handle the
12659
# drive letters (cygwin fileutils understands them), so leave them,
12660
# especially as we might pass files found there to a mingw objdump,
12661
# which wouldn't understand a cygwinified path. Ahh.
12662
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12664
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12668
# pw32 DLLs use 'pw' prefix rather than 'lib'
12669
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12675
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12678
dynamic_linker='Win32 ld.exe'
12679
# FIXME: first we should search . and the directory the executable is in
12683
darwin* | rhapsody*)
12684
dynamic_linker="$host_os dyld"
12685
version_type=darwin
12688
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12689
soname_spec='${libname}${release}${major}$shared_ext'
12690
shlibpath_overrides_runpath=yes
12691
shlibpath_var=DYLD_LIBRARY_PATH
12692
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12693
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12694
if test "$GCC" = yes; then
12695
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
12697
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12699
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12706
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12707
soname_spec='${libname}${release}${shared_ext}$major'
12708
shlibpath_var=LD_LIBRARY_PATH
12719
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12720
soname_spec='${libname}${release}${shared_ext}$major'
12721
shlibpath_var=LD_LIBRARY_PATH
12722
shlibpath_overrides_runpath=no
12723
hardcode_into_libs=yes
12724
dynamic_linker='GNU ld.so'
12727
freebsd* | dragonfly*)
12728
# DragonFly does not have aout. When/if they implement a new
12729
# versioning mechanism, adjust this.
12730
if test -x /usr/bin/objformat; then
12731
objformat=`/usr/bin/objformat`
12734
freebsd[123]*) objformat=aout ;;
12735
*) objformat=elf ;;
12738
version_type=freebsd-$objformat
12739
case $version_type in
12741
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12746
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12750
shlibpath_var=LD_LIBRARY_PATH
12753
shlibpath_overrides_runpath=yes
12755
freebsd3.[01]* | freebsdelf3.[01]*)
12756
shlibpath_overrides_runpath=yes
12757
hardcode_into_libs=yes
12759
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12760
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12761
shlibpath_overrides_runpath=no
12762
hardcode_into_libs=yes
12764
freebsd*) # from 4.6 on
12765
shlibpath_overrides_runpath=yes
12766
hardcode_into_libs=yes
12775
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12776
soname_spec='${libname}${release}${shared_ext}$major'
12777
shlibpath_var=LD_LIBRARY_PATH
12778
hardcode_into_libs=yes
12781
hpux9* | hpux10* | hpux11*)
12782
# Give a soname corresponding to the major version so that dld.sl refuses to
12783
# link against other versions.
12790
hardcode_into_libs=yes
12791
dynamic_linker="$host_os dld.so"
12792
shlibpath_var=LD_LIBRARY_PATH
12793
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12794
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12795
soname_spec='${libname}${release}${shared_ext}$major'
12796
if test "X$HPUX_IA64_MODE" = X32; then
12797
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12799
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12801
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12805
hardcode_into_libs=yes
12806
dynamic_linker="$host_os dld.sl"
12807
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12808
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12809
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12810
soname_spec='${libname}${release}${shared_ext}$major'
12811
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12812
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12816
dynamic_linker="$host_os dld.sl"
12817
shlibpath_var=SHLIB_PATH
12818
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12819
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12820
soname_spec='${libname}${release}${shared_ext}$major'
12823
# HP-UX runs *really* slowly unless shared libraries are mode 555.
12824
postinstall_cmds='chmod 555 $lib'
12831
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12832
soname_spec='${libname}${release}${shared_ext}$major'
12833
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12834
shlibpath_var=LD_LIBRARY_PATH
12835
shlibpath_overrides_runpath=no
12836
hardcode_into_libs=yes
12839
irix5* | irix6* | nonstopux*)
12841
nonstopux*) version_type=nonstopux ;;
12843
if test "$lt_cv_prog_gnu_ld" = yes; then
12851
soname_spec='${libname}${release}${shared_ext}$major'
12852
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12854
irix5* | nonstopux*)
12855
libsuff= shlibsuff=
12858
case $LD in # libtool.m4 will add one of these switches to LD
12859
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12860
libsuff= shlibsuff= libmagic=32-bit;;
12861
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12862
libsuff=32 shlibsuff=N32 libmagic=N32;;
12863
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12864
libsuff=64 shlibsuff=64 libmagic=64-bit;;
12865
*) libsuff= shlibsuff= libmagic=never-match;;
12869
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12870
shlibpath_overrides_runpath=no
12871
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12872
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12873
hardcode_into_libs=yes
12876
# No shared lib support for Linux oldld, aout, or coff.
12877
linux*oldld* | linux*aout* | linux*coff*)
12881
# This must be Linux ELF.
12886
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12887
soname_spec='${libname}${release}${shared_ext}$major'
12888
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12889
shlibpath_var=LD_LIBRARY_PATH
12890
shlibpath_overrides_runpath=no
12891
# This implies no fast_install, which is unacceptable.
12892
# Some rework will be needed to allow for fast_install
12893
# before this can be enabled.
12894
hardcode_into_libs=yes
12896
# Append ld.so.conf contents to the search path
12897
if test -f /etc/ld.so.conf; then
12898
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12899
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12902
# We used to test for /lib/ld.so.1 and disable shared libraries on
12903
# powerpc, because MkLinux only supported shared libraries with the
12904
# GNU dynamic linker. Since this was broken with cross compilers,
12905
# most powerpc-linux boxes support dynamic linking these days and
12906
# people can always --disable-shared, the test was removed, and we
12907
# assume the GNU/Linux dynamic linker is in use.
12908
dynamic_linker='GNU/Linux ld.so'
12915
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12916
soname_spec='${libname}${release}${shared_ext}$major'
12917
shlibpath_var=LD_LIBRARY_PATH
12918
shlibpath_overrides_runpath=no
12919
hardcode_into_libs=yes
12920
dynamic_linker='GNU ld.so'
12927
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12928
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12929
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12930
dynamic_linker='NetBSD (a.out) ld.so'
12932
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12933
soname_spec='${libname}${release}${shared_ext}$major'
12934
dynamic_linker='NetBSD ld.elf_so'
12936
shlibpath_var=LD_LIBRARY_PATH
12937
shlibpath_overrides_runpath=yes
12938
hardcode_into_libs=yes
12943
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12944
shlibpath_var=LD_LIBRARY_PATH
12945
shlibpath_overrides_runpath=yes
12952
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12953
soname_spec='${libname}${release}${shared_ext}$major'
12954
shlibpath_var=LD_LIBRARY_PATH
12955
shlibpath_overrides_runpath=yes
12960
sys_lib_dlsearch_path_spec="/usr/lib"
12962
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12964
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12965
*) need_version=no ;;
12967
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12968
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12969
shlibpath_var=LD_LIBRARY_PATH
12970
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12972
openbsd2.[89] | openbsd2.[89].*)
12973
shlibpath_overrides_runpath=no
12976
shlibpath_overrides_runpath=yes
12980
shlibpath_overrides_runpath=yes
12985
libname_spec='$name'
12988
library_names_spec='$libname${shared_ext} $libname.a'
12989
dynamic_linker='OS/2 ld.exe'
12990
shlibpath_var=LIBPATH
12993
osf3* | osf4* | osf5*)
12997
soname_spec='${libname}${release}${shared_ext}$major'
12998
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12999
shlibpath_var=LD_LIBRARY_PATH
13000
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13001
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13008
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13009
soname_spec='${libname}${release}${shared_ext}$major'
13010
shlibpath_var=LD_LIBRARY_PATH
13011
shlibpath_overrides_runpath=yes
13012
hardcode_into_libs=yes
13013
# ldd complains unless libraries are executable
13014
postinstall_cmds='chmod +x $lib'
13019
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13020
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13021
shlibpath_var=LD_LIBRARY_PATH
13022
shlibpath_overrides_runpath=yes
13023
if test "$with_gnu_ld" = yes; then
13031
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13032
soname_spec='${libname}${release}${shared_ext}$major'
13033
shlibpath_var=LD_LIBRARY_PATH
13034
case $host_vendor in
13036
shlibpath_overrides_runpath=no
13038
export_dynamic_flag_spec='${wl}-Blargedynsym'
13039
runpath_var=LD_RUN_PATH
13047
shlibpath_overrides_runpath=no
13048
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13054
if test -d /usr/nec ;then
13056
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13057
soname_spec='$libname${shared_ext}.$major'
13058
shlibpath_var=LD_LIBRARY_PATH
13062
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13063
version_type=freebsd-elf
13066
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13067
soname_spec='${libname}${release}${shared_ext}$major'
13068
shlibpath_var=LD_LIBRARY_PATH
13069
hardcode_into_libs=yes
13070
if test "$with_gnu_ld" = yes; then
13071
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13072
shlibpath_overrides_runpath=no
13074
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13075
shlibpath_overrides_runpath=yes
13078
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13082
sys_lib_dlsearch_path_spec='/usr/lib'
13087
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13088
soname_spec='${libname}${release}${shared_ext}$major'
13089
shlibpath_var=LD_LIBRARY_PATH
13096
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13097
echo "${ECHO_T}$dynamic_linker" >&6; }
13098
test "$dynamic_linker" = no && can_build_shared=no
13100
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13101
if test "$GCC" = yes; then
13102
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13105
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13106
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13107
hardcode_action_CXX=
13108
if test -n "$hardcode_libdir_flag_spec_CXX" || \
13109
test -n "$runpath_var_CXX" || \
13110
test "X$hardcode_automatic_CXX" = "Xyes" ; then
13112
# We can hardcode non-existant directories.
13113
if test "$hardcode_direct_CXX" != no &&
13114
# If the only mechanism to avoid hardcoding is shlibpath_var, we
13115
# have to relink, otherwise we might link with an installed library
13116
# when we should be linking with a yet-to-be-installed one
13117
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13118
test "$hardcode_minus_L_CXX" != no; then
13119
# Linking always hardcodes the temporary library directory.
13120
hardcode_action_CXX=relink
13122
# We can link without hardcoding, and we can hardcode nonexisting dirs.
13123
hardcode_action_CXX=immediate
13126
# We cannot hardcode anything, or else we can only hardcode existing
13128
hardcode_action_CXX=unsupported
13130
{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13131
echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13133
if test "$hardcode_action_CXX" = relink; then
13134
# Fast installation is not supported
13135
enable_fast_install=no
13136
elif test "$shlibpath_overrides_runpath" = yes ||
13137
test "$enable_shared" = no; then
13138
# Fast installation is not necessary
13139
enable_fast_install=needless
13143
# The else clause should only fire when bootstrapping the
13144
# libtool distribution, otherwise you forgot to ship ltmain.sh
13145
# with your package, and you will get complaints that there are
13146
# no rules to generate ltmain.sh.
13147
if test -f "$ltmain"; then
13148
# See if we are running on zsh, and set the options which allow our commands through
13149
# without removal of \ escapes.
13150
if test -n "${ZSH_VERSION+set}" ; then
13151
setopt NO_GLOB_SUBST
13153
# Now quote all the things that may contain metacharacters while being
13154
# careful not to overquote the AC_SUBSTed values. We take copies of the
13155
# variables and quote the copies for generation of the libtool script.
13156
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13158
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13159
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13160
deplibs_check_method reload_flag reload_cmds need_locks \
13161
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13162
lt_cv_sys_global_symbol_to_c_name_address \
13163
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13164
old_postinstall_cmds old_postuninstall_cmds \
13168
lt_prog_compiler_wl_CXX \
13169
lt_prog_compiler_pic_CXX \
13170
lt_prog_compiler_static_CXX \
13171
lt_prog_compiler_no_builtin_flag_CXX \
13172
export_dynamic_flag_spec_CXX \
13173
thread_safe_flag_spec_CXX \
13174
whole_archive_flag_spec_CXX \
13175
enable_shared_with_static_runtimes_CXX \
13176
old_archive_cmds_CXX \
13177
old_archive_from_new_cmds_CXX \
13178
predep_objects_CXX \
13179
postdep_objects_CXX \
13182
compiler_lib_search_path_CXX \
13184
archive_expsym_cmds_CXX \
13185
postinstall_cmds_CXX \
13186
postuninstall_cmds_CXX \
13187
old_archive_from_expsyms_cmds_CXX \
13188
allow_undefined_flag_CXX \
13189
no_undefined_flag_CXX \
13190
export_symbols_cmds_CXX \
13191
hardcode_libdir_flag_spec_CXX \
13192
hardcode_libdir_flag_spec_ld_CXX \
13193
hardcode_libdir_separator_CXX \
13194
hardcode_automatic_CXX \
13196
module_expsym_cmds_CXX \
13197
lt_cv_prog_compiler_c_o_CXX \
13198
exclude_expsyms_CXX \
13199
include_expsyms_CXX; do
13202
old_archive_cmds_CXX | \
13203
old_archive_from_new_cmds_CXX | \
13204
archive_cmds_CXX | \
13205
archive_expsym_cmds_CXX | \
13206
module_cmds_CXX | \
13207
module_expsym_cmds_CXX | \
13208
old_archive_from_expsyms_cmds_CXX | \
13209
export_symbols_cmds_CXX | \
13210
extract_expsyms_cmds | reload_cmds | finish_cmds | \
13211
postinstall_cmds | postuninstall_cmds | \
13212
old_postinstall_cmds | old_postuninstall_cmds | \
13213
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13214
# Double-quote double-evaled strings.
13215
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13218
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13224
*'\$0 --fallback-echo"')
13225
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13231
cat <<__EOF__ >> "$cfgfile"
13232
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13234
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13236
# Shell to use when invoking shell scripts.
13239
# Whether or not to build shared libraries.
13240
build_libtool_libs=$enable_shared
13242
# Whether or not to build static libraries.
13243
build_old_libs=$enable_static
13245
# Whether or not to add -lc for building shared libraries.
13246
build_libtool_need_lc=$archive_cmds_need_lc_CXX
13248
# Whether or not to disallow shared libs when runtime libs are static
13249
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13251
# Whether or not to optimize for fast installation.
13252
fast_install=$enable_fast_install
13255
host_alias=$host_alias
13259
# The build system.
13260
build_alias=$build_alias
13264
# An echo program that does not interpret backslashes.
13269
AR_FLAGS=$lt_AR_FLAGS
13274
# LTCC compiler flags.
13275
LTCFLAGS=$lt_LTCFLAGS
13277
# A language-specific compiler.
13278
CC=$lt_compiler_CXX
13280
# Is the compiler the GNU C compiler?
13286
# The linker used to build libraries.
13289
# Whether we need hard or soft links.
13292
# A BSD-compatible nm program.
13295
# A symbol stripping program
13298
# Used to examine libraries when file_magic_cmd begins "file"
13299
MAGIC_CMD=$MAGIC_CMD
13301
# Used on cygwin: DLL creation program.
13304
# Used on cygwin: object dumper.
13307
# Used on cygwin: assembler.
13310
# The name of the directory that contains temporary libtool files.
13313
# How to create reloadable object files.
13314
reload_flag=$lt_reload_flag
13315
reload_cmds=$lt_reload_cmds
13317
# How to pass a linker flag through the compiler.
13318
wl=$lt_lt_prog_compiler_wl_CXX
13320
# Object file suffix (normally "o").
13321
objext="$ac_objext"
13323
# Old archive suffix (normally "a").
13326
# Shared library suffix (normally ".so").
13327
shrext_cmds='$shrext_cmds'
13329
# Executable file suffix (normally "").
13332
# Additional compiler flags for building library objects.
13333
pic_flag=$lt_lt_prog_compiler_pic_CXX
13336
# What is the maximum length of a command?
13337
max_cmd_len=$lt_cv_sys_max_cmd_len
13339
# Does compiler simultaneously support -c and -o options?
13340
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13342
# Must we lock files when doing compilation?
13343
need_locks=$lt_need_locks
13345
# Do we need the lib prefix for modules?
13346
need_lib_prefix=$need_lib_prefix
13348
# Do we need a version for libraries?
13349
need_version=$need_version
13351
# Whether dlopen is supported.
13352
dlopen_support=$enable_dlopen
13354
# Whether dlopen of programs is supported.
13355
dlopen_self=$enable_dlopen_self
13357
# Whether dlopen of statically linked programs is supported.
13358
dlopen_self_static=$enable_dlopen_self_static
13360
# Compiler flag to prevent dynamic linking.
13361
link_static_flag=$lt_lt_prog_compiler_static_CXX
13363
# Compiler flag to turn off builtin functions.
13364
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13366
# Compiler flag to allow reflexive dlopens.
13367
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13369
# Compiler flag to generate shared objects directly from archives.
13370
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13372
# Compiler flag to generate thread-safe objects.
13373
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13375
# Library versioning type.
13376
version_type=$version_type
13378
# Format of library name prefix.
13379
libname_spec=$lt_libname_spec
13381
# List of archive names. First name is the real one, the rest are links.
13382
# The last name is the one that the linker finds with -lNAME.
13383
library_names_spec=$lt_library_names_spec
13385
# The coded name of the library, if different from the real name.
13386
soname_spec=$lt_soname_spec
13388
# Commands used to build and install an old-style archive.
13390
old_archive_cmds=$lt_old_archive_cmds_CXX
13391
old_postinstall_cmds=$lt_old_postinstall_cmds
13392
old_postuninstall_cmds=$lt_old_postuninstall_cmds
13394
# Create an old-style archive from a shared archive.
13395
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13397
# Create a temporary old-style archive to link instead of a shared archive.
13398
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13400
# Commands used to build and install a shared archive.
13401
archive_cmds=$lt_archive_cmds_CXX
13402
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13403
postinstall_cmds=$lt_postinstall_cmds
13404
postuninstall_cmds=$lt_postuninstall_cmds
13406
# Commands used to build a loadable module (assumed same as above if empty)
13407
module_cmds=$lt_module_cmds_CXX
13408
module_expsym_cmds=$lt_module_expsym_cmds_CXX
13410
# Commands to strip libraries.
13411
old_striplib=$lt_old_striplib
13412
striplib=$lt_striplib
13414
# Dependencies to place before the objects being linked to create a
13416
predep_objects=$lt_predep_objects_CXX
13418
# Dependencies to place after the objects being linked to create a
13420
postdep_objects=$lt_postdep_objects_CXX
13422
# Dependencies to place before the objects being linked to create a
13424
predeps=$lt_predeps_CXX
13426
# Dependencies to place after the objects being linked to create a
13428
postdeps=$lt_postdeps_CXX
13430
# The library search path used internally by the compiler when linking
13431
# a shared library.
13432
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13434
# Method to check whether dependent libraries are shared objects.
13435
deplibs_check_method=$lt_deplibs_check_method
13437
# Command to use when deplibs_check_method == file_magic.
13438
file_magic_cmd=$lt_file_magic_cmd
13440
# Flag that allows shared libraries with undefined symbols to be built.
13441
allow_undefined_flag=$lt_allow_undefined_flag_CXX
13443
# Flag that forces no undefined symbols.
13444
no_undefined_flag=$lt_no_undefined_flag_CXX
13446
# Commands used to finish a libtool library installation in a directory.
13447
finish_cmds=$lt_finish_cmds
13449
# Same as above, but a single script fragment to be evaled but not shown.
13450
finish_eval=$lt_finish_eval
13452
# Take the output of nm and produce a listing of raw symbols and C names.
13453
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13455
# Transform the output of nm in a proper C declaration
13456
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13458
# Transform the output of nm in a C name address pair
13459
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13461
# This is the shared library runtime path variable.
13462
runpath_var=$runpath_var
13464
# This is the shared library path variable.
13465
shlibpath_var=$shlibpath_var
13467
# Is shlibpath searched before the hard-coded library search path?
13468
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13470
# How to hardcode a shared library path into an executable.
13471
hardcode_action=$hardcode_action_CXX
13473
# Whether we should hardcode library paths into libraries.
13474
hardcode_into_libs=$hardcode_into_libs
13476
# Flag to hardcode \$libdir into a binary during linking.
13477
# This must work even if \$libdir does not exist.
13478
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13480
# If ld is used when linking, flag to hardcode \$libdir into
13481
# a binary during linking. This must work even if \$libdir does
13483
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13485
# Whether we need a single -rpath flag with a separated argument.
13486
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13488
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13489
# resulting binary.
13490
hardcode_direct=$hardcode_direct_CXX
13492
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13493
# resulting binary.
13494
hardcode_minus_L=$hardcode_minus_L_CXX
13496
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13497
# the resulting binary.
13498
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13500
# Set to yes if building a shared library automatically hardcodes DIR into the library
13501
# and all subsequent libraries and executables linked against it.
13502
hardcode_automatic=$hardcode_automatic_CXX
13504
# Variables whose values should be saved in libtool wrapper scripts and
13505
# restored at relink time.
13506
variables_saved_for_relink="$variables_saved_for_relink"
13508
# Whether libtool must link a program against all its dependency libraries.
13509
link_all_deplibs=$link_all_deplibs_CXX
13511
# Compile-time system search path for libraries
13512
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13514
# Run-time system search path for libraries
13515
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13517
# Fix the shell variable \$srcfile for the compiler.
13518
fix_srcfile_path="$fix_srcfile_path_CXX"
13520
# Set to yes if exported symbols are required.
13521
always_export_symbols=$always_export_symbols_CXX
13523
# The commands to list exported symbols.
13524
export_symbols_cmds=$lt_export_symbols_cmds_CXX
13526
# The commands to extract the exported symbol list from a shared archive.
13527
extract_expsyms_cmds=$lt_extract_expsyms_cmds
13529
# Symbols that should not be listed in the preloaded symbols.
13530
exclude_expsyms=$lt_exclude_expsyms_CXX
13532
# Symbols that must always be exported.
13533
include_expsyms=$lt_include_expsyms_CXX
13535
# ### END LIBTOOL TAG CONFIG: $tagname
13541
# If there is no Makefile yet, we rely on a make rule to execute
13542
# `config.status --recheck' to rerun these tests and create the
13543
# libtool script then.
13544
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13545
if test -f "$ltmain_in"; then
13546
test -f Makefile && make "$ltmain"
13552
ac_cpp='$CPP $CPPFLAGS'
13553
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13554
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13555
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13561
with_gnu_ldcxx=$with_gnu_ld
13562
with_gnu_ld=$lt_save_with_gnu_ld
13563
lt_cv_path_LDCXX=$lt_cv_path_LD
13564
lt_cv_path_LD=$lt_save_path_LD
13565
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13566
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13574
if test -n "$F77" && test "X$F77" != "Xno"; then
13577
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13578
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13579
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13582
archive_cmds_need_lc_F77=no
13583
allow_undefined_flag_F77=
13584
always_export_symbols_F77=no
13585
archive_expsym_cmds_F77=
13586
export_dynamic_flag_spec_F77=
13587
hardcode_direct_F77=no
13588
hardcode_libdir_flag_spec_F77=
13589
hardcode_libdir_flag_spec_ld_F77=
13590
hardcode_libdir_separator_F77=
13591
hardcode_minus_L_F77=no
13592
hardcode_automatic_F77=no
13594
module_expsym_cmds_F77=
13595
link_all_deplibs_F77=unknown
13596
old_archive_cmds_F77=$old_archive_cmds
13597
no_undefined_flag_F77=
13598
whole_archive_flag_spec_F77=
13599
enable_shared_with_static_runtimes_F77=no
13601
# Source file extension for f77 test sources.
13604
# Object file extension for compiled f77 test sources.
13608
# Code to be used in simple compile tests
13609
lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13611
# Code to be used in simple link tests
13612
lt_simple_link_test_code=" program t\n end\n"
13614
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13616
# If no C compiler was specified, use CC.
13619
# If no C compiler flags were specified, use CFLAGS.
13620
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13622
# Allow CC to be a program name with arguments.
13626
# save warnings/boilerplate of simple test code
13627
ac_outfile=conftest.$ac_objext
13628
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13629
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13630
_lt_compiler_boilerplate=`cat conftest.err`
13633
ac_outfile=conftest.$ac_objext
13634
printf "$lt_simple_link_test_code" >conftest.$ac_ext
13635
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13636
_lt_linker_boilerplate=`cat conftest.err`
13640
# Allow CC to be a program name with arguments.
13645
for cc_temp in $compiler""; do
13647
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13648
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13653
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13656
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13657
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13658
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
13659
echo "${ECHO_T}$can_build_shared" >&6; }
13661
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13662
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13663
test "$can_build_shared" = "no" && enable_shared=no
13665
# On AIX, shared libraries and static libraries use the same namespace, and
13666
# are all built from PIC.
13669
test "$enable_shared" = yes && enable_static=no
13670
if test -n "$RANLIB"; then
13671
archive_cmds="$archive_cmds~\$RANLIB \$lib"
13672
postinstall_cmds='$RANLIB $lib'
13676
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13677
test "$enable_shared" = yes && enable_static=no
13681
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
13682
echo "${ECHO_T}$enable_shared" >&6; }
13684
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13685
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13686
# Make sure either enable_shared or enable_static is yes.
13687
test "$enable_shared" = yes || enable_static=yes
13688
{ echo "$as_me:$LINENO: result: $enable_static" >&5
13689
echo "${ECHO_T}$enable_static" >&6; }
13694
lt_prog_compiler_wl_F77=
13695
lt_prog_compiler_pic_F77=
13696
lt_prog_compiler_static_F77=
13698
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13699
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13701
if test "$GCC" = yes; then
13702
lt_prog_compiler_wl_F77='-Wl,'
13703
lt_prog_compiler_static_F77='-static'
13707
# All AIX code is PIC.
13708
if test "$host_cpu" = ia64; then
13709
# AIX 5 now supports IA64 processor
13710
lt_prog_compiler_static_F77='-Bstatic'
13715
# FIXME: we need at least 68020 code to build shared libraries, but
13716
# adding the `-m68020' flag to GCC prevents building anything better,
13718
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13721
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13722
# PIC is the default for these OSes.
13725
mingw* | pw32* | os2*)
13726
# This hack is so that the source file can tell whether it is being
13727
# built for inclusion in a dll (and should export symbols for example).
13728
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13731
darwin* | rhapsody*)
13732
# PIC is the default on this platform
13733
# Common symbols not allowed in MH_DYLIB files
13734
lt_prog_compiler_pic_F77='-fno-common'
13738
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
13739
# Instead, we relocate shared libraries at runtime.
13743
# Just because we use GCC doesn't mean we suddenly get shared libraries
13744
# on systems that don't support them.
13745
lt_prog_compiler_can_build_shared_F77=no
13750
if test -d /usr/nec; then
13751
lt_prog_compiler_pic_F77=-Kconform_pic
13756
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13757
# not for PA HP-UX.
13763
lt_prog_compiler_pic_F77='-fPIC'
13769
lt_prog_compiler_pic_F77='-fPIC'
13773
# PORTME Check for flag to pass linker flags through the system compiler.
13776
lt_prog_compiler_wl_F77='-Wl,'
13777
if test "$host_cpu" = ia64; then
13778
# AIX 5 now supports IA64 processor
13779
lt_prog_compiler_static_F77='-Bstatic'
13781
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13785
# PIC is the default on this platform
13786
# Common symbols not allowed in MH_DYLIB files
13787
case $cc_basename in
13789
lt_prog_compiler_pic_F77='-qnocommon'
13790
lt_prog_compiler_wl_F77='-Wl,'
13795
mingw* | pw32* | os2*)
13796
# This hack is so that the source file can tell whether it is being
13797
# built for inclusion in a dll (and should export symbols for example).
13798
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13801
hpux9* | hpux10* | hpux11*)
13802
lt_prog_compiler_wl_F77='-Wl,'
13803
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13804
# not for PA HP-UX.
13810
lt_prog_compiler_pic_F77='+Z'
13813
# Is there a better lt_prog_compiler_static that works with the bundled CC?
13814
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13817
irix5* | irix6* | nonstopux*)
13818
lt_prog_compiler_wl_F77='-Wl,'
13819
# PIC (with -KPIC) is the default.
13820
lt_prog_compiler_static_F77='-non_shared'
13824
lt_prog_compiler_pic_F77='-KPIC'
13825
lt_prog_compiler_static_F77='-Bstatic'
13829
case $cc_basename in
13831
lt_prog_compiler_wl_F77='-Wl,'
13832
lt_prog_compiler_pic_F77='-KPIC'
13833
lt_prog_compiler_static_F77='-static'
13835
pgcc* | pgf77* | pgf90* | pgf95*)
13836
# Portland Group compilers (*not* the Pentium gcc compiler,
13837
# which looks to be a dead project)
13838
lt_prog_compiler_wl_F77='-Wl,'
13839
lt_prog_compiler_pic_F77='-fpic'
13840
lt_prog_compiler_static_F77='-Bstatic'
13843
lt_prog_compiler_wl_F77='-Wl,'
13844
# All Alpha code is PIC.
13845
lt_prog_compiler_static_F77='-non_shared'
13850
osf3* | osf4* | osf5*)
13851
lt_prog_compiler_wl_F77='-Wl,'
13852
# All OSF/1 code is PIC.
13853
lt_prog_compiler_static_F77='-non_shared'
13857
lt_prog_compiler_pic_F77='-KPIC'
13858
lt_prog_compiler_static_F77='-Bstatic'
13859
case $cc_basename in
13860
f77* | f90* | f95*)
13861
lt_prog_compiler_wl_F77='-Qoption ld ';;
13863
lt_prog_compiler_wl_F77='-Wl,';;
13868
lt_prog_compiler_wl_F77='-Qoption ld '
13869
lt_prog_compiler_pic_F77='-PIC'
13870
lt_prog_compiler_static_F77='-Bstatic'
13873
sysv4 | sysv4.2uw2* | sysv4.3*)
13874
lt_prog_compiler_wl_F77='-Wl,'
13875
lt_prog_compiler_pic_F77='-KPIC'
13876
lt_prog_compiler_static_F77='-Bstatic'
13880
if test -d /usr/nec ;then
13881
lt_prog_compiler_pic_F77='-Kconform_pic'
13882
lt_prog_compiler_static_F77='-Bstatic'
13886
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13887
lt_prog_compiler_wl_F77='-Wl,'
13888
lt_prog_compiler_pic_F77='-KPIC'
13889
lt_prog_compiler_static_F77='-Bstatic'
13893
lt_prog_compiler_wl_F77='-Wl,'
13894
lt_prog_compiler_can_build_shared_F77=no
13898
lt_prog_compiler_pic_F77='-pic'
13899
lt_prog_compiler_static_F77='-Bstatic'
13903
lt_prog_compiler_can_build_shared_F77=no
13908
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13909
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13912
# Check to make sure the PIC flag actually works.
13914
if test -n "$lt_prog_compiler_pic_F77"; then
13916
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13917
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13918
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13919
echo $ECHO_N "(cached) $ECHO_C" >&6
13921
lt_prog_compiler_pic_works_F77=no
13922
ac_outfile=conftest.$ac_objext
13923
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13924
lt_compiler_flag="$lt_prog_compiler_pic_F77"
13925
# Insert the option either (1) after the last *FLAGS variable, or
13926
# (2) before a word containing "conftest.", or (3) at the end.
13927
# Note that $ac_compile itself does not contain backslashes and begins
13928
# with a dollar sign (not a hyphen), so the echo should work correctly.
13929
# The option is referenced via a variable to avoid confusing sed.
13930
lt_compile=`echo "$ac_compile" | $SED \
13931
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13932
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13933
-e 's:$: $lt_compiler_flag:'`
13934
(eval echo "\"\$as_me:13934: $lt_compile\"" >&5)
13935
(eval "$lt_compile" 2>conftest.err)
13937
cat conftest.err >&5
13938
echo "$as_me:13938: \$? = $ac_status" >&5
13939
if (exit $ac_status) && test -s "$ac_outfile"; then
13940
# The compiler can only warn and ignore the option if not recognized
13941
# So say no if there are warnings other than the usual output.
13942
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13943
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13944
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13945
lt_prog_compiler_pic_works_F77=yes
13951
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13952
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
13954
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13955
case $lt_prog_compiler_pic_F77 in
13957
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13960
lt_prog_compiler_pic_F77=
13961
lt_prog_compiler_can_build_shared_F77=no
13966
# For platforms which do not support PIC, -DPIC is meaningless:
13968
lt_prog_compiler_pic_F77=
13971
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13976
# Check to make sure the static flag actually works.
13978
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13979
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13980
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13981
if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13982
echo $ECHO_N "(cached) $ECHO_C" >&6
13984
lt_prog_compiler_static_works_F77=no
13985
save_LDFLAGS="$LDFLAGS"
13986
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13987
printf "$lt_simple_link_test_code" > conftest.$ac_ext
13988
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13989
# The linker can only warn and ignore the option if not recognized
13990
# So say no if there are warnings
13991
if test -s conftest.err; then
13992
# Append any errors to the config.log.
13993
cat conftest.err 1>&5
13994
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13995
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13996
if diff conftest.exp conftest.er2 >/dev/null; then
13997
lt_prog_compiler_static_works_F77=yes
14000
lt_prog_compiler_static_works_F77=yes
14004
LDFLAGS="$save_LDFLAGS"
14007
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14008
echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14010
if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14013
lt_prog_compiler_static_F77=
14017
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14018
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14019
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14020
echo $ECHO_N "(cached) $ECHO_C" >&6
14022
lt_cv_prog_compiler_c_o_F77=no
14023
$rm -r conftest 2>/dev/null
14027
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14029
lt_compiler_flag="-o out/conftest2.$ac_objext"
14030
# Insert the option either (1) after the last *FLAGS variable, or
14031
# (2) before a word containing "conftest.", or (3) at the end.
14032
# Note that $ac_compile itself does not contain backslashes and begins
14033
# with a dollar sign (not a hyphen), so the echo should work correctly.
14034
lt_compile=`echo "$ac_compile" | $SED \
14035
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14036
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14037
-e 's:$: $lt_compiler_flag:'`
14038
(eval echo "\"\$as_me:14038: $lt_compile\"" >&5)
14039
(eval "$lt_compile" 2>out/conftest.err)
14041
cat out/conftest.err >&5
14042
echo "$as_me:14042: \$? = $ac_status" >&5
14043
if (exit $ac_status) && test -s out/conftest2.$ac_objext
14045
# The compiler can only warn and ignore the option if not recognized
14046
# So say no if there are warnings
14047
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14048
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14049
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14050
lt_cv_prog_compiler_c_o_F77=yes
14055
# SGI C++ compiler will create directory out/ii_files/ for
14056
# template instantiation
14057
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14058
$rm out/* && rmdir out
14064
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14065
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14068
hard_links="nottested"
14069
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14070
# do not overwrite the value of need_locks provided by the user
14071
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14072
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14075
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14077
ln conftest.a conftest.b 2>&5 || hard_links=no
14078
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14079
{ echo "$as_me:$LINENO: result: $hard_links" >&5
14080
echo "${ECHO_T}$hard_links" >&6; }
14081
if test "$hard_links" = no; then
14082
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14083
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14090
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14091
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14094
allow_undefined_flag_F77=
14095
enable_shared_with_static_runtimes_F77=no
14097
archive_expsym_cmds_F77=
14098
old_archive_From_new_cmds_F77=
14099
old_archive_from_expsyms_cmds_F77=
14100
export_dynamic_flag_spec_F77=
14101
whole_archive_flag_spec_F77=
14102
thread_safe_flag_spec_F77=
14103
hardcode_libdir_flag_spec_F77=
14104
hardcode_libdir_flag_spec_ld_F77=
14105
hardcode_libdir_separator_F77=
14106
hardcode_direct_F77=no
14107
hardcode_minus_L_F77=no
14108
hardcode_shlibpath_var_F77=unsupported
14109
link_all_deplibs_F77=unknown
14110
hardcode_automatic_F77=no
14112
module_expsym_cmds_F77=
14113
always_export_symbols_F77=no
14114
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14115
# include_expsyms should be a list of space-separated symbols to be *always*
14116
# included in the symbol list
14117
include_expsyms_F77=
14118
# exclude_expsyms can be an extended regexp of symbols to exclude
14119
# it will be wrapped by ` (' and `)$', so one must not match beginning or
14120
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14121
# as well as any symbol that contains `d'.
14122
exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14123
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14124
# platforms (ab)use it in PIC code, but their linkers get confused if
14125
# the symbol is explicitly referenced. Since portable code cannot
14126
# rely on this symbol name, it's probably fine to never include it in
14127
# preloaded symbol tables.
14128
extract_expsyms_cmds=
14129
# Just being paranoid about ensuring that cc_basename is set.
14130
for cc_temp in $compiler""; do
14132
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14133
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14138
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14141
cygwin* | mingw* | pw32*)
14142
# FIXME: the MSVC++ port hasn't been tested in a loooong time
14143
# When not using gcc, we currently assume that we are using
14144
# Microsoft Visual C++.
14145
if test "$GCC" != yes; then
14150
# we just hope/assume this is gcc and not c89 (= MSVC++)
14159
if test "$with_gnu_ld" = yes; then
14160
# If archive_cmds runs LD, not CC, wlarc should be empty
14163
# Set some defaults for GNU ld with shared library support. These
14164
# are reset later if shared libraries are not supported. Putting them
14165
# here allows them to be overridden if necessary.
14166
runpath_var=LD_RUN_PATH
14167
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14168
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14169
# ancient GNU ld didn't support --whole-archive et. al.
14170
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14171
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14173
whole_archive_flag_spec_F77=
14175
supports_anon_versioning=no
14176
case `$LD -v 2>/dev/null` in
14177
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14178
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14179
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14180
*\ 2.11.*) ;; # other 2.11 versions
14181
*) supports_anon_versioning=yes ;;
14184
# See if GNU ld supports shared libraries.
14186
aix3* | aix4* | aix5*)
14187
# On AIX/PPC, the GNU linker is very broken
14188
if test "$host_cpu" != ia64; then
14192
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14193
*** to be unable to reliably create shared libraries on AIX.
14194
*** Therefore, libtool is disabling shared libraries support. If you
14195
*** really care for shared libraries, you may want to modify your PATH
14196
*** so that a non-GNU linker is found, and then restart.
14203
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)'
14204
hardcode_libdir_flag_spec_F77='-L$libdir'
14205
hardcode_minus_L_F77=yes
14207
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14208
# that the semantics of dynamic libraries on AmigaOS, at least up
14209
# to version 4, is to share data among multiple programs linked
14210
# with the same dynamic library. Since this doesn't match the
14211
# behavior of shared libraries on other platforms, we can't use
14217
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14218
allow_undefined_flag_F77=unsupported
14219
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14220
# support --undefined. This deserves some investigation. FIXME
14221
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14227
cygwin* | mingw* | pw32*)
14228
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14229
# as there is no search path for DLLs.
14230
hardcode_libdir_flag_spec_F77='-L$libdir'
14231
allow_undefined_flag_F77=unsupported
14232
always_export_symbols_F77=no
14233
enable_shared_with_static_runtimes_F77=yes
14234
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14236
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14237
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14238
# If the export-symbols file already is a .def file (1st line
14239
# is EXPORTS), use it as is; otherwise, prepend...
14240
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14241
cp $export_symbols $output_objdir/$soname.def;
14243
echo EXPORTS > $output_objdir/$soname.def;
14244
cat $export_symbols >> $output_objdir/$soname.def;
14246
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14253
hardcode_direct_F77=no
14254
hardcode_shlibpath_var_F77=no
14255
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14256
export_dynamic_flag_spec_F77='${wl}-E'
14257
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14258
# Instead, shared libraries are loaded at an image base (0x10000000 by
14259
# default) and relocated if they conflict, which is a slow very memory
14260
# consuming and fragmenting process. To avoid this, we pick a random,
14261
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14262
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
14263
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'
14264
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'
14268
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14270
case $cc_basename,$host_cpu in
14271
pgcc*) # Portland Group C compiler
14272
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'
14273
tmp_addflag=' $pic_flag'
14275
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14276
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'
14277
tmp_addflag=' $pic_flag -Mnomain' ;;
14278
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14279
tmp_addflag=' -i_dynamic' ;;
14280
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14281
tmp_addflag=' -i_dynamic -nofor_main' ;;
14282
ifc* | ifort*) # Intel Fortran compiler
14283
tmp_addflag=' -nofor_main' ;;
14285
archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14287
if test $supports_anon_versioning = yes; then
14288
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14289
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14290
$echo "local: *; };" >> $output_objdir/$libname.ver~
14291
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14299
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14300
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14303
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14304
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14309
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14313
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14314
*** create shared libraries on Solaris systems. Therefore, libtool
14315
*** is disabling shared libraries support. We urge you to upgrade GNU
14316
*** binutils to release 2.9.1 or newer. Another option is to modify
14317
*** your PATH or compiler configuration so that the native linker is
14318
*** used, and then restart.
14321
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14322
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14323
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14329
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14330
case `$LD -v 2>&1` in
14331
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14335
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14336
*** reliably create shared libraries on SCO systems. Therefore, libtool
14337
*** is disabling shared libraries support. We urge you to upgrade GNU
14338
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14339
*** your PATH or compiler configuration so that the native linker is
14340
*** used, and then restart.
14345
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14346
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14347
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14348
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14357
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14359
hardcode_direct_F77=yes
14360
hardcode_shlibpath_var_F77=no
14364
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14365
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14366
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14373
if test "$ld_shlibs_F77" = no; then
14375
hardcode_libdir_flag_spec_F77=
14376
export_dynamic_flag_spec_F77=
14377
whole_archive_flag_spec_F77=
14380
# PORTME fill in a description of your system's linker (not GNU ld)
14383
allow_undefined_flag_F77=unsupported
14384
always_export_symbols_F77=yes
14385
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'
14386
# Note: this linker hardcodes the directories in LIBPATH if there
14387
# are no directories specified by -L.
14388
hardcode_minus_L_F77=yes
14389
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14390
# Neither direct hardcoding nor static linking is supported with a
14392
hardcode_direct_F77=unsupported
14397
if test "$host_cpu" = ia64; then
14398
# On IA64, the linker does run time linking by default, so we don't
14399
# have to do anything special.
14400
aix_use_runtimelinking=no
14401
exp_sym_flag='-Bexport'
14404
# If we're using GNU nm, then we don't want the "-C" option.
14405
# -C means demangle to AIX nm, but means don't demangle with GNU nm
14406
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14407
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'
14409
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'
14411
aix_use_runtimelinking=no
14413
# Test if we are trying to use run time linking or normal
14414
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14415
# need to do runtime linking.
14416
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14417
for ld_flag in $LDFLAGS; do
14418
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14419
aix_use_runtimelinking=yes
14426
exp_sym_flag='-bexport'
14427
no_entry_flag='-bnoentry'
14430
# When large executables or shared objects are built, AIX ld can
14431
# have problems creating the table of contents. If linking a library
14432
# or program results in "error TOC overflow" add -mminimal-toc to
14433
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14434
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14436
archive_cmds_F77=''
14437
hardcode_direct_F77=yes
14438
hardcode_libdir_separator_F77=':'
14439
link_all_deplibs_F77=yes
14441
if test "$GCC" = yes; then
14442
case $host_os in aix4.[012]|aix4.[012].*)
14443
# We only want to do this on AIX 4.2 and lower, the check
14444
# below for broken collect2 doesn't work under 4.3+
14445
collect2name=`${CC} -print-prog-name=collect2`
14446
if test -f "$collect2name" && \
14447
strings "$collect2name" | grep resolve_lib_name >/dev/null
14449
# We have reworked collect2
14450
hardcode_direct_F77=yes
14452
# We have old collect2
14453
hardcode_direct_F77=unsupported
14454
# It fails to find uninstalled libraries when the uninstalled
14455
# path is not listed in the libpath. Setting hardcode_minus_L
14456
# to unsupported forces relinking
14457
hardcode_minus_L_F77=yes
14458
hardcode_libdir_flag_spec_F77='-L$libdir'
14459
hardcode_libdir_separator_F77=
14463
shared_flag='-shared'
14464
if test "$aix_use_runtimelinking" = yes; then
14465
shared_flag="$shared_flag "'${wl}-G'
14469
if test "$host_cpu" = ia64; then
14470
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14471
# chokes on -Wl,-G. The following line is correct:
14474
if test "$aix_use_runtimelinking" = yes; then
14475
shared_flag='${wl}-G'
14477
shared_flag='${wl}-bM:SRE'
14482
# It seems that -bexpall does not export symbols beginning with
14483
# underscore (_), so it is better to generate a list of symbols to export.
14484
always_export_symbols_F77=yes
14485
if test "$aix_use_runtimelinking" = yes; then
14486
# Warning - without using the other runtime loading flags (-brtl),
14487
# -berok will link without error, but may produce a broken library.
14488
allow_undefined_flag_F77='-berok'
14489
# Determine the default libpath from the value encoded in an empty executable.
14490
cat >conftest.$ac_ext <<_ACEOF
14495
rm -f conftest.$ac_objext conftest$ac_exeext
14496
if { (ac_try="$ac_link"
14497
case "(($ac_try" in
14498
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14499
*) ac_try_echo=$ac_try;;
14501
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14502
(eval "$ac_link") 2>conftest.er1
14504
grep -v '^ *+' conftest.er1 >conftest.err
14506
cat conftest.err >&5
14507
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14508
(exit $ac_status); } && {
14509
test -z "$ac_f77_werror_flag" ||
14510
test ! -s conftest.err
14511
} && test -s conftest$ac_exeext &&
14512
$as_test_x conftest$ac_exeext; then
14514
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14516
# Check for a 64-bit object if we didn't find anything.
14517
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14520
echo "$as_me: failed program was:" >&5
14521
sed 's/^/| /' conftest.$ac_ext >&5
14526
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14527
conftest$ac_exeext conftest.$ac_ext
14528
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14530
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14531
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"
14533
if test "$host_cpu" = ia64; then
14534
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14535
allow_undefined_flag_F77="-z nodefs"
14536
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"
14538
# Determine the default libpath from the value encoded in an empty executable.
14539
cat >conftest.$ac_ext <<_ACEOF
14544
rm -f conftest.$ac_objext conftest$ac_exeext
14545
if { (ac_try="$ac_link"
14546
case "(($ac_try" in
14547
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14548
*) ac_try_echo=$ac_try;;
14550
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14551
(eval "$ac_link") 2>conftest.er1
14553
grep -v '^ *+' conftest.er1 >conftest.err
14555
cat conftest.err >&5
14556
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14557
(exit $ac_status); } && {
14558
test -z "$ac_f77_werror_flag" ||
14559
test ! -s conftest.err
14560
} && test -s conftest$ac_exeext &&
14561
$as_test_x conftest$ac_exeext; then
14563
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14565
# Check for a 64-bit object if we didn't find anything.
14566
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14569
echo "$as_me: failed program was:" >&5
14570
sed 's/^/| /' conftest.$ac_ext >&5
14575
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14576
conftest$ac_exeext conftest.$ac_ext
14577
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14579
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14580
# Warning - without using the other run time loading flags,
14581
# -berok will link without error, but may produce a broken library.
14582
no_undefined_flag_F77=' ${wl}-bernotok'
14583
allow_undefined_flag_F77=' ${wl}-berok'
14584
# Exported symbols can be pulled into shared objects from archives
14585
whole_archive_flag_spec_F77='$convenience'
14586
archive_cmds_need_lc_F77=yes
14587
# This is similar to how AIX traditionally builds its shared libraries.
14588
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'
14594
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)'
14595
hardcode_libdir_flag_spec_F77='-L$libdir'
14596
hardcode_minus_L_F77=yes
14597
# see comment about different semantics on the GNU ld section
14602
export_dynamic_flag_spec_F77=-rdynamic
14605
cygwin* | mingw* | pw32*)
14606
# When not using gcc, we currently assume that we are using
14607
# Microsoft Visual C++.
14608
# hardcode_libdir_flag_spec is actually meaningless, as there is
14609
# no search path for DLLs.
14610
hardcode_libdir_flag_spec_F77=' '
14611
allow_undefined_flag_F77=unsupported
14612
# Tell ltmain to make .lib files, not .a files.
14614
# Tell ltmain to make .dll files, not .so files.
14616
# FIXME: Setting linknames here is a bad hack.
14617
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14618
# The linker will automatically build a .lib file if we build a DLL.
14619
old_archive_From_new_cmds_F77='true'
14620
# FIXME: Should let the user specify the lib program.
14621
old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14622
fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14623
enable_shared_with_static_runtimes_F77=yes
14626
darwin* | rhapsody*)
14628
rhapsody* | darwin1.[012])
14629
allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14632
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14633
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14635
case ${MACOSX_DEPLOYMENT_TARGET} in
14637
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14640
allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14646
archive_cmds_need_lc_F77=no
14647
hardcode_direct_F77=no
14648
hardcode_automatic_F77=yes
14649
hardcode_shlibpath_var_F77=unsupported
14650
whole_archive_flag_spec_F77=''
14651
link_all_deplibs_F77=yes
14652
if test "$GCC" = yes ; then
14653
output_verbose_link_cmd='echo'
14654
archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14655
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14656
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14657
archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14658
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}'
14660
case $cc_basename in
14662
output_verbose_link_cmd='echo'
14663
archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14664
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14665
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14666
archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14667
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}'
14677
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14678
hardcode_libdir_flag_spec_F77='-L$libdir'
14679
hardcode_shlibpath_var_F77=no
14686
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14687
# support. Future versions do this automatically, but an explicit c++rt0.o
14688
# does not break anything, and helps significantly (at the cost of a little
14691
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14692
hardcode_libdir_flag_spec_F77='-R$libdir'
14693
hardcode_direct_F77=yes
14694
hardcode_shlibpath_var_F77=no
14697
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
14699
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14700
hardcode_direct_F77=yes
14701
hardcode_minus_L_F77=yes
14702
hardcode_shlibpath_var_F77=no
14705
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14706
freebsd* | kfreebsd*-gnu | dragonfly*)
14707
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14708
hardcode_libdir_flag_spec_F77='-R$libdir'
14709
hardcode_direct_F77=yes
14710
hardcode_shlibpath_var_F77=no
14714
if test "$GCC" = yes; then
14715
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'
14717
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'
14719
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14720
hardcode_libdir_separator_F77=:
14721
hardcode_direct_F77=yes
14723
# hardcode_minus_L: Not really in the search PATH,
14724
# but as the default location of the library.
14725
hardcode_minus_L_F77=yes
14726
export_dynamic_flag_spec_F77='${wl}-E'
14730
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14731
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14733
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14735
if test "$with_gnu_ld" = no; then
14736
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14737
hardcode_libdir_separator_F77=:
14739
hardcode_direct_F77=yes
14740
export_dynamic_flag_spec_F77='${wl}-E'
14742
# hardcode_minus_L: Not really in the search PATH,
14743
# but as the default location of the library.
14744
hardcode_minus_L_F77=yes
14749
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14752
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14755
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14758
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14764
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14767
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14770
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14774
if test "$with_gnu_ld" = no; then
14775
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14776
hardcode_libdir_separator_F77=:
14780
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14781
hardcode_direct_F77=no
14782
hardcode_shlibpath_var_F77=no
14785
hardcode_direct_F77=yes
14786
export_dynamic_flag_spec_F77='${wl}-E'
14788
# hardcode_minus_L: Not really in the search PATH,
14789
# but as the default location of the library.
14790
hardcode_minus_L_F77=yes
14796
irix5* | irix6* | nonstopux*)
14797
if test "$GCC" = yes; then
14798
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'
14800
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'
14801
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14803
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14804
hardcode_libdir_separator_F77=:
14805
link_all_deplibs_F77=yes
14809
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14810
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14812
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14814
hardcode_libdir_flag_spec_F77='-R$libdir'
14815
hardcode_direct_F77=yes
14816
hardcode_shlibpath_var_F77=no
14820
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14821
hardcode_direct_F77=yes
14822
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14823
hardcode_libdir_separator_F77=:
14824
hardcode_shlibpath_var_F77=no
14828
hardcode_direct_F77=yes
14829
hardcode_shlibpath_var_F77=no
14830
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14831
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14832
archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14833
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14834
export_dynamic_flag_spec_F77='${wl}-E'
14837
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14838
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14839
hardcode_libdir_flag_spec_F77='-R$libdir'
14842
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14843
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14850
hardcode_libdir_flag_spec_F77='-L$libdir'
14851
hardcode_minus_L_F77=yes
14852
allow_undefined_flag_F77=unsupported
14853
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'
14854
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14858
if test "$GCC" = yes; then
14859
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14860
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'
14862
allow_undefined_flag_F77=' -expect_unresolved \*'
14863
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'
14865
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14866
hardcode_libdir_separator_F77=:
14869
osf4* | osf5*) # as osf3* with the addition of -msym flag
14870
if test "$GCC" = yes; then
14871
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14872
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'
14873
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14875
allow_undefined_flag_F77=' -expect_unresolved \*'
14876
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'
14877
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~
14878
$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'
14880
# Both c and cxx compiler support -rpath directly
14881
hardcode_libdir_flag_spec_F77='-rpath $libdir'
14883
hardcode_libdir_separator_F77=:
14887
no_undefined_flag_F77=' -z text'
14888
if test "$GCC" = yes; then
14890
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14891
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14892
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14895
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14896
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14897
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14899
hardcode_libdir_flag_spec_F77='-R$libdir'
14900
hardcode_shlibpath_var_F77=no
14902
solaris2.[0-5] | solaris2.[0-5].*) ;;
14904
# The compiler driver will combine linker options so we
14905
# cannot just pass the convience library names through
14906
# without $wl, iff we do not link with $LD.
14907
# Luckily, gcc supports the same syntax we need for Sun Studio.
14908
# Supported since Solaris 2.6 (maybe 2.5.1?)
14911
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14913
whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14916
link_all_deplibs_F77=yes
14920
if test "x$host_vendor" = xsequent; then
14921
# Use $CC to link under sequent, because it throws in some extra .o
14922
# files that make .init and .fini sections work.
14923
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14925
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14927
hardcode_libdir_flag_spec_F77='-L$libdir'
14928
hardcode_direct_F77=yes
14929
hardcode_minus_L_F77=yes
14930
hardcode_shlibpath_var_F77=no
14934
case $host_vendor in
14936
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14937
hardcode_direct_F77=yes # is this really true???
14940
## LD is ld it makes a PLAMLIB
14941
## CC just makes a GrossModule.
14942
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14943
reload_cmds_F77='$CC -r -o $output$reload_objs'
14944
hardcode_direct_F77=no
14947
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14948
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14951
runpath_var='LD_RUN_PATH'
14952
hardcode_shlibpath_var_F77=no
14956
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14957
hardcode_shlibpath_var_F77=no
14958
export_dynamic_flag_spec_F77='-Bexport'
14962
if test -d /usr/nec; then
14963
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14964
hardcode_shlibpath_var_F77=no
14965
runpath_var=LD_RUN_PATH
14966
hardcode_runpath_var=yes
14971
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14972
no_undefined_flag_F77='${wl}-z,text'
14973
archive_cmds_need_lc_F77=no
14974
hardcode_shlibpath_var_F77=no
14975
runpath_var='LD_RUN_PATH'
14977
if test "$GCC" = yes; then
14978
archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14979
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14981
archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14982
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14986
sysv5* | sco3.2v5* | sco5v6*)
14987
# Note: We can NOT use -z defs as we might desire, because we do not
14988
# link with -lc, and that would cause any symbols used from libc to
14989
# always be unresolved, which means just about no library would
14990
# ever link correctly. If we're not using GNU ld we use -z text
14991
# though, which does catch some bad symbols but isn't as heavy-handed
14993
no_undefined_flag_F77='${wl}-z,text'
14994
allow_undefined_flag_F77='${wl}-z,nodefs'
14995
archive_cmds_need_lc_F77=no
14996
hardcode_shlibpath_var_F77=no
14997
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14998
hardcode_libdir_separator_F77=':'
14999
link_all_deplibs_F77=yes
15000
export_dynamic_flag_spec_F77='${wl}-Bexport'
15001
runpath_var='LD_RUN_PATH'
15003
if test "$GCC" = yes; then
15004
archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15005
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15007
archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15008
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15013
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15014
hardcode_libdir_flag_spec_F77='-L$libdir'
15015
hardcode_shlibpath_var_F77=no
15024
{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15025
echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15026
test "$ld_shlibs_F77" = no && can_build_shared=no
15029
# Do we need to explicitly link libc?
15031
case "x$archive_cmds_need_lc_F77" in
15033
# Assume -lc should be added
15034
archive_cmds_need_lc_F77=yes
15036
if test "$enable_shared" = yes && test "$GCC" = yes; then
15037
case $archive_cmds_F77 in
15039
# FIXME: we may have to deal with multi-command sequences.
15042
# Test whether the compiler implicitly links with -lc since on some
15043
# systems, -lgcc has to come before -lc. If gcc already passes -lc
15044
# to ld, don't add -lc before -lgcc.
15045
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15046
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15048
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15050
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15051
(eval $ac_compile) 2>&5
15053
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15054
(exit $ac_status); } 2>conftest.err; then
15057
libobjs=conftest.$ac_objext
15059
wl=$lt_prog_compiler_wl_F77
15060
pic_flag=$lt_prog_compiler_pic_F77
15066
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15067
allow_undefined_flag_F77=
15068
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15069
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15071
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15072
(exit $ac_status); }
15074
archive_cmds_need_lc_F77=no
15076
archive_cmds_need_lc_F77=yes
15078
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15080
cat conftest.err 1>&5
15083
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15084
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15091
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15092
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15093
library_names_spec=
15094
libname_spec='lib$name'
15098
postuninstall_cmds=
15102
shlibpath_overrides_runpath=unknown
15104
dynamic_linker="$host_os ld.so"
15105
sys_lib_dlsearch_path_spec="/lib /usr/lib"
15106
if test "$GCC" = yes; then
15107
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15108
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15109
# if the path contains ";" then we assume it to be the separator
15110
# otherwise default to the standard path separator (i.e. ":") - it is
15111
# assumed that no part of a normal pathname contains ";" but that should
15112
# okay in the real world where ";" in dirpaths is itself problematic.
15113
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15115
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15118
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15120
need_lib_prefix=unknown
15121
hardcode_into_libs=no
15123
# when you set need_version to no, make sure it does not cause -set_version
15124
# flags to be left without arguments
15125
need_version=unknown
15130
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15131
shlibpath_var=LIBPATH
15133
# AIX 3 has no versioning support, so we append a major version to the name.
15134
soname_spec='${libname}${release}${shared_ext}$major'
15141
hardcode_into_libs=yes
15142
if test "$host_cpu" = ia64; then
15143
# AIX 5 supports IA64
15144
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15145
shlibpath_var=LD_LIBRARY_PATH
15147
# With GCC up to 2.95.x, collect2 would create an import file
15148
# for dependence libraries. The import file would start with
15149
# the line `#! .'. This would cause the generated library to
15150
# depend on `.', always an invalid library. This was fixed in
15151
# development snapshots of GCC prior to 3.0.
15153
aix4 | aix4.[01] | aix4.[01].*)
15154
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15156
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15159
can_build_shared=no
15163
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15164
# soname into executable. Probably we can add versioning support to
15165
# collect2, so additional links can be useful in future.
15166
if test "$aix_use_runtimelinking" = yes; then
15167
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
15168
# instead of lib<name>.a to let people know that these are not
15169
# typical AIX shared libraries.
15170
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15172
# We preserve .a as extension for shared libraries through AIX4.2
15173
# and later when we are not doing run time linking.
15174
library_names_spec='${libname}${release}.a $libname.a'
15175
soname_spec='${libname}${release}${shared_ext}$major'
15177
shlibpath_var=LIBPATH
15182
library_names_spec='$libname.ixlibrary $libname.a'
15183
# Create ${libname}_ixlibrary.a entries in /sys/libs.
15184
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'
15188
library_names_spec='${libname}${shared_ext}'
15189
dynamic_linker="$host_os ld.so"
15190
shlibpath_var=LIBRARY_PATH
15196
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15197
soname_spec='${libname}${release}${shared_ext}$major'
15198
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15199
shlibpath_var=LD_LIBRARY_PATH
15200
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15201
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15202
# the default ld.so.conf also contains /usr/contrib/lib and
15203
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15204
# libtool to hard-code these into programs
15207
cygwin* | mingw* | pw32*)
15208
version_type=windows
15213
case $GCC,$host_os in
15214
yes,cygwin* | yes,mingw* | yes,pw32*)
15215
library_names_spec='$libname.dll.a'
15216
# DLL is installed to $(libdir)/../bin by postinstall_cmds
15217
postinstall_cmds='base_file=`basename \${file}`~
15218
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15219
dldir=$destdir/`dirname \$dlpath`~
15220
test -d \$dldir || mkdir -p \$dldir~
15221
$install_prog $dir/$dlname \$dldir/$dlname~
15222
chmod a+x \$dldir/$dlname'
15223
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15224
dlpath=$dir/\$dldll~
15226
shlibpath_overrides_runpath=yes
15230
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
15231
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15232
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15235
# MinGW DLLs use traditional 'lib' prefix
15236
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15237
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15238
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15239
# It is most probably a Windows format PATH printed by
15240
# mingw gcc, but we are running on Cygwin. Gcc prints its search
15241
# path with ; separators, and with drive letters. We can handle the
15242
# drive letters (cygwin fileutils understands them), so leave them,
15243
# especially as we might pass files found there to a mingw objdump,
15244
# which wouldn't understand a cygwinified path. Ahh.
15245
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15247
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15251
# pw32 DLLs use 'pw' prefix rather than 'lib'
15252
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15258
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15261
dynamic_linker='Win32 ld.exe'
15262
# FIXME: first we should search . and the directory the executable is in
15266
darwin* | rhapsody*)
15267
dynamic_linker="$host_os dyld"
15268
version_type=darwin
15271
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15272
soname_spec='${libname}${release}${major}$shared_ext'
15273
shlibpath_overrides_runpath=yes
15274
shlibpath_var=DYLD_LIBRARY_PATH
15275
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15276
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15277
if test "$GCC" = yes; then
15278
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15280
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15282
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15289
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15290
soname_spec='${libname}${release}${shared_ext}$major'
15291
shlibpath_var=LD_LIBRARY_PATH
15302
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15303
soname_spec='${libname}${release}${shared_ext}$major'
15304
shlibpath_var=LD_LIBRARY_PATH
15305
shlibpath_overrides_runpath=no
15306
hardcode_into_libs=yes
15307
dynamic_linker='GNU ld.so'
15310
freebsd* | dragonfly*)
15311
# DragonFly does not have aout. When/if they implement a new
15312
# versioning mechanism, adjust this.
15313
if test -x /usr/bin/objformat; then
15314
objformat=`/usr/bin/objformat`
15317
freebsd[123]*) objformat=aout ;;
15318
*) objformat=elf ;;
15321
version_type=freebsd-$objformat
15322
case $version_type in
15324
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15329
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15333
shlibpath_var=LD_LIBRARY_PATH
15336
shlibpath_overrides_runpath=yes
15338
freebsd3.[01]* | freebsdelf3.[01]*)
15339
shlibpath_overrides_runpath=yes
15340
hardcode_into_libs=yes
15342
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15343
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15344
shlibpath_overrides_runpath=no
15345
hardcode_into_libs=yes
15347
freebsd*) # from 4.6 on
15348
shlibpath_overrides_runpath=yes
15349
hardcode_into_libs=yes
15358
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15359
soname_spec='${libname}${release}${shared_ext}$major'
15360
shlibpath_var=LD_LIBRARY_PATH
15361
hardcode_into_libs=yes
15364
hpux9* | hpux10* | hpux11*)
15365
# Give a soname corresponding to the major version so that dld.sl refuses to
15366
# link against other versions.
15373
hardcode_into_libs=yes
15374
dynamic_linker="$host_os dld.so"
15375
shlibpath_var=LD_LIBRARY_PATH
15376
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15377
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15378
soname_spec='${libname}${release}${shared_ext}$major'
15379
if test "X$HPUX_IA64_MODE" = X32; then
15380
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15382
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15384
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15388
hardcode_into_libs=yes
15389
dynamic_linker="$host_os dld.sl"
15390
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15391
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15392
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15393
soname_spec='${libname}${release}${shared_ext}$major'
15394
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15395
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15399
dynamic_linker="$host_os dld.sl"
15400
shlibpath_var=SHLIB_PATH
15401
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15402
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15403
soname_spec='${libname}${release}${shared_ext}$major'
15406
# HP-UX runs *really* slowly unless shared libraries are mode 555.
15407
postinstall_cmds='chmod 555 $lib'
15414
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15415
soname_spec='${libname}${release}${shared_ext}$major'
15416
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15417
shlibpath_var=LD_LIBRARY_PATH
15418
shlibpath_overrides_runpath=no
15419
hardcode_into_libs=yes
15422
irix5* | irix6* | nonstopux*)
15424
nonstopux*) version_type=nonstopux ;;
15426
if test "$lt_cv_prog_gnu_ld" = yes; then
15434
soname_spec='${libname}${release}${shared_ext}$major'
15435
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15437
irix5* | nonstopux*)
15438
libsuff= shlibsuff=
15441
case $LD in # libtool.m4 will add one of these switches to LD
15442
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15443
libsuff= shlibsuff= libmagic=32-bit;;
15444
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15445
libsuff=32 shlibsuff=N32 libmagic=N32;;
15446
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15447
libsuff=64 shlibsuff=64 libmagic=64-bit;;
15448
*) libsuff= shlibsuff= libmagic=never-match;;
15452
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15453
shlibpath_overrides_runpath=no
15454
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15455
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15456
hardcode_into_libs=yes
15459
# No shared lib support for Linux oldld, aout, or coff.
15460
linux*oldld* | linux*aout* | linux*coff*)
15464
# This must be Linux ELF.
15469
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15470
soname_spec='${libname}${release}${shared_ext}$major'
15471
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15472
shlibpath_var=LD_LIBRARY_PATH
15473
shlibpath_overrides_runpath=no
15474
# This implies no fast_install, which is unacceptable.
15475
# Some rework will be needed to allow for fast_install
15476
# before this can be enabled.
15477
hardcode_into_libs=yes
15479
# Append ld.so.conf contents to the search path
15480
if test -f /etc/ld.so.conf; then
15481
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15482
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15485
# We used to test for /lib/ld.so.1 and disable shared libraries on
15486
# powerpc, because MkLinux only supported shared libraries with the
15487
# GNU dynamic linker. Since this was broken with cross compilers,
15488
# most powerpc-linux boxes support dynamic linking these days and
15489
# people can always --disable-shared, the test was removed, and we
15490
# assume the GNU/Linux dynamic linker is in use.
15491
dynamic_linker='GNU/Linux ld.so'
15498
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15499
soname_spec='${libname}${release}${shared_ext}$major'
15500
shlibpath_var=LD_LIBRARY_PATH
15501
shlibpath_overrides_runpath=no
15502
hardcode_into_libs=yes
15503
dynamic_linker='GNU ld.so'
15510
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15511
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15512
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15513
dynamic_linker='NetBSD (a.out) ld.so'
15515
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15516
soname_spec='${libname}${release}${shared_ext}$major'
15517
dynamic_linker='NetBSD ld.elf_so'
15519
shlibpath_var=LD_LIBRARY_PATH
15520
shlibpath_overrides_runpath=yes
15521
hardcode_into_libs=yes
15526
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15527
shlibpath_var=LD_LIBRARY_PATH
15528
shlibpath_overrides_runpath=yes
15535
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15536
soname_spec='${libname}${release}${shared_ext}$major'
15537
shlibpath_var=LD_LIBRARY_PATH
15538
shlibpath_overrides_runpath=yes
15543
sys_lib_dlsearch_path_spec="/usr/lib"
15545
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15547
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15548
*) need_version=no ;;
15550
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15551
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15552
shlibpath_var=LD_LIBRARY_PATH
15553
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15555
openbsd2.[89] | openbsd2.[89].*)
15556
shlibpath_overrides_runpath=no
15559
shlibpath_overrides_runpath=yes
15563
shlibpath_overrides_runpath=yes
15568
libname_spec='$name'
15571
library_names_spec='$libname${shared_ext} $libname.a'
15572
dynamic_linker='OS/2 ld.exe'
15573
shlibpath_var=LIBPATH
15576
osf3* | osf4* | osf5*)
15580
soname_spec='${libname}${release}${shared_ext}$major'
15581
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15582
shlibpath_var=LD_LIBRARY_PATH
15583
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15584
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15591
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15592
soname_spec='${libname}${release}${shared_ext}$major'
15593
shlibpath_var=LD_LIBRARY_PATH
15594
shlibpath_overrides_runpath=yes
15595
hardcode_into_libs=yes
15596
# ldd complains unless libraries are executable
15597
postinstall_cmds='chmod +x $lib'
15602
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15603
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15604
shlibpath_var=LD_LIBRARY_PATH
15605
shlibpath_overrides_runpath=yes
15606
if test "$with_gnu_ld" = yes; then
15614
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15615
soname_spec='${libname}${release}${shared_ext}$major'
15616
shlibpath_var=LD_LIBRARY_PATH
15617
case $host_vendor in
15619
shlibpath_overrides_runpath=no
15621
export_dynamic_flag_spec='${wl}-Blargedynsym'
15622
runpath_var=LD_RUN_PATH
15630
shlibpath_overrides_runpath=no
15631
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15637
if test -d /usr/nec ;then
15639
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15640
soname_spec='$libname${shared_ext}.$major'
15641
shlibpath_var=LD_LIBRARY_PATH
15645
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15646
version_type=freebsd-elf
15649
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15650
soname_spec='${libname}${release}${shared_ext}$major'
15651
shlibpath_var=LD_LIBRARY_PATH
15652
hardcode_into_libs=yes
15653
if test "$with_gnu_ld" = yes; then
15654
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15655
shlibpath_overrides_runpath=no
15657
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15658
shlibpath_overrides_runpath=yes
15661
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15665
sys_lib_dlsearch_path_spec='/usr/lib'
15670
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15671
soname_spec='${libname}${release}${shared_ext}$major'
15672
shlibpath_var=LD_LIBRARY_PATH
15679
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15680
echo "${ECHO_T}$dynamic_linker" >&6; }
15681
test "$dynamic_linker" = no && can_build_shared=no
15683
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15684
if test "$GCC" = yes; then
15685
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15688
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15689
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15690
hardcode_action_F77=
15691
if test -n "$hardcode_libdir_flag_spec_F77" || \
15692
test -n "$runpath_var_F77" || \
15693
test "X$hardcode_automatic_F77" = "Xyes" ; then
15695
# We can hardcode non-existant directories.
15696
if test "$hardcode_direct_F77" != no &&
15697
# If the only mechanism to avoid hardcoding is shlibpath_var, we
15698
# have to relink, otherwise we might link with an installed library
15699
# when we should be linking with a yet-to-be-installed one
15700
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15701
test "$hardcode_minus_L_F77" != no; then
15702
# Linking always hardcodes the temporary library directory.
15703
hardcode_action_F77=relink
15705
# We can link without hardcoding, and we can hardcode nonexisting dirs.
15706
hardcode_action_F77=immediate
15709
# We cannot hardcode anything, or else we can only hardcode existing
15711
hardcode_action_F77=unsupported
15713
{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15714
echo "${ECHO_T}$hardcode_action_F77" >&6; }
15716
if test "$hardcode_action_F77" = relink; then
15717
# Fast installation is not supported
15718
enable_fast_install=no
15719
elif test "$shlibpath_overrides_runpath" = yes ||
15720
test "$enable_shared" = no; then
15721
# Fast installation is not necessary
15722
enable_fast_install=needless
15726
# The else clause should only fire when bootstrapping the
15727
# libtool distribution, otherwise you forgot to ship ltmain.sh
15728
# with your package, and you will get complaints that there are
15729
# no rules to generate ltmain.sh.
15730
if test -f "$ltmain"; then
15731
# See if we are running on zsh, and set the options which allow our commands through
15732
# without removal of \ escapes.
15733
if test -n "${ZSH_VERSION+set}" ; then
15734
setopt NO_GLOB_SUBST
15736
# Now quote all the things that may contain metacharacters while being
15737
# careful not to overquote the AC_SUBSTed values. We take copies of the
15738
# variables and quote the copies for generation of the libtool script.
15739
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15741
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15742
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15743
deplibs_check_method reload_flag reload_cmds need_locks \
15744
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15745
lt_cv_sys_global_symbol_to_c_name_address \
15746
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15747
old_postinstall_cmds old_postuninstall_cmds \
15751
lt_prog_compiler_wl_F77 \
15752
lt_prog_compiler_pic_F77 \
15753
lt_prog_compiler_static_F77 \
15754
lt_prog_compiler_no_builtin_flag_F77 \
15755
export_dynamic_flag_spec_F77 \
15756
thread_safe_flag_spec_F77 \
15757
whole_archive_flag_spec_F77 \
15758
enable_shared_with_static_runtimes_F77 \
15759
old_archive_cmds_F77 \
15760
old_archive_from_new_cmds_F77 \
15761
predep_objects_F77 \
15762
postdep_objects_F77 \
15765
compiler_lib_search_path_F77 \
15767
archive_expsym_cmds_F77 \
15768
postinstall_cmds_F77 \
15769
postuninstall_cmds_F77 \
15770
old_archive_from_expsyms_cmds_F77 \
15771
allow_undefined_flag_F77 \
15772
no_undefined_flag_F77 \
15773
export_symbols_cmds_F77 \
15774
hardcode_libdir_flag_spec_F77 \
15775
hardcode_libdir_flag_spec_ld_F77 \
15776
hardcode_libdir_separator_F77 \
15777
hardcode_automatic_F77 \
15779
module_expsym_cmds_F77 \
15780
lt_cv_prog_compiler_c_o_F77 \
15781
exclude_expsyms_F77 \
15782
include_expsyms_F77; do
15785
old_archive_cmds_F77 | \
15786
old_archive_from_new_cmds_F77 | \
15787
archive_cmds_F77 | \
15788
archive_expsym_cmds_F77 | \
15789
module_cmds_F77 | \
15790
module_expsym_cmds_F77 | \
15791
old_archive_from_expsyms_cmds_F77 | \
15792
export_symbols_cmds_F77 | \
15793
extract_expsyms_cmds | reload_cmds | finish_cmds | \
15794
postinstall_cmds | postuninstall_cmds | \
15795
old_postinstall_cmds | old_postuninstall_cmds | \
15796
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15797
# Double-quote double-evaled strings.
15798
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15801
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15807
*'\$0 --fallback-echo"')
15808
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15814
cat <<__EOF__ >> "$cfgfile"
15815
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15817
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15819
# Shell to use when invoking shell scripts.
15822
# Whether or not to build shared libraries.
15823
build_libtool_libs=$enable_shared
15825
# Whether or not to build static libraries.
15826
build_old_libs=$enable_static
15828
# Whether or not to add -lc for building shared libraries.
15829
build_libtool_need_lc=$archive_cmds_need_lc_F77
15831
# Whether or not to disallow shared libs when runtime libs are static
15832
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15834
# Whether or not to optimize for fast installation.
15835
fast_install=$enable_fast_install
15838
host_alias=$host_alias
15842
# The build system.
15843
build_alias=$build_alias
15847
# An echo program that does not interpret backslashes.
15852
AR_FLAGS=$lt_AR_FLAGS
15857
# LTCC compiler flags.
15858
LTCFLAGS=$lt_LTCFLAGS
15860
# A language-specific compiler.
15861
CC=$lt_compiler_F77
15863
# Is the compiler the GNU C compiler?
15869
# The linker used to build libraries.
15872
# Whether we need hard or soft links.
15875
# A BSD-compatible nm program.
15878
# A symbol stripping program
15881
# Used to examine libraries when file_magic_cmd begins "file"
15882
MAGIC_CMD=$MAGIC_CMD
15884
# Used on cygwin: DLL creation program.
15887
# Used on cygwin: object dumper.
15890
# Used on cygwin: assembler.
15893
# The name of the directory that contains temporary libtool files.
15896
# How to create reloadable object files.
15897
reload_flag=$lt_reload_flag
15898
reload_cmds=$lt_reload_cmds
15900
# How to pass a linker flag through the compiler.
15901
wl=$lt_lt_prog_compiler_wl_F77
15903
# Object file suffix (normally "o").
15904
objext="$ac_objext"
15906
# Old archive suffix (normally "a").
15909
# Shared library suffix (normally ".so").
15910
shrext_cmds='$shrext_cmds'
15912
# Executable file suffix (normally "").
15915
# Additional compiler flags for building library objects.
15916
pic_flag=$lt_lt_prog_compiler_pic_F77
15919
# What is the maximum length of a command?
15920
max_cmd_len=$lt_cv_sys_max_cmd_len
15922
# Does compiler simultaneously support -c and -o options?
15923
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15925
# Must we lock files when doing compilation?
15926
need_locks=$lt_need_locks
15928
# Do we need the lib prefix for modules?
15929
need_lib_prefix=$need_lib_prefix
15931
# Do we need a version for libraries?
15932
need_version=$need_version
15934
# Whether dlopen is supported.
15935
dlopen_support=$enable_dlopen
15937
# Whether dlopen of programs is supported.
15938
dlopen_self=$enable_dlopen_self
15940
# Whether dlopen of statically linked programs is supported.
15941
dlopen_self_static=$enable_dlopen_self_static
15943
# Compiler flag to prevent dynamic linking.
15944
link_static_flag=$lt_lt_prog_compiler_static_F77
15946
# Compiler flag to turn off builtin functions.
15947
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15949
# Compiler flag to allow reflexive dlopens.
15950
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15952
# Compiler flag to generate shared objects directly from archives.
15953
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15955
# Compiler flag to generate thread-safe objects.
15956
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15958
# Library versioning type.
15959
version_type=$version_type
15961
# Format of library name prefix.
15962
libname_spec=$lt_libname_spec
15964
# List of archive names. First name is the real one, the rest are links.
15965
# The last name is the one that the linker finds with -lNAME.
15966
library_names_spec=$lt_library_names_spec
15968
# The coded name of the library, if different from the real name.
15969
soname_spec=$lt_soname_spec
15971
# Commands used to build and install an old-style archive.
15973
old_archive_cmds=$lt_old_archive_cmds_F77
15974
old_postinstall_cmds=$lt_old_postinstall_cmds
15975
old_postuninstall_cmds=$lt_old_postuninstall_cmds
15977
# Create an old-style archive from a shared archive.
15978
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15980
# Create a temporary old-style archive to link instead of a shared archive.
15981
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15983
# Commands used to build and install a shared archive.
15984
archive_cmds=$lt_archive_cmds_F77
15985
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15986
postinstall_cmds=$lt_postinstall_cmds
15987
postuninstall_cmds=$lt_postuninstall_cmds
15989
# Commands used to build a loadable module (assumed same as above if empty)
15990
module_cmds=$lt_module_cmds_F77
15991
module_expsym_cmds=$lt_module_expsym_cmds_F77
15993
# Commands to strip libraries.
15994
old_striplib=$lt_old_striplib
15995
striplib=$lt_striplib
15997
# Dependencies to place before the objects being linked to create a
15999
predep_objects=$lt_predep_objects_F77
16001
# Dependencies to place after the objects being linked to create a
16003
postdep_objects=$lt_postdep_objects_F77
16005
# Dependencies to place before the objects being linked to create a
16007
predeps=$lt_predeps_F77
16009
# Dependencies to place after the objects being linked to create a
16011
postdeps=$lt_postdeps_F77
16013
# The library search path used internally by the compiler when linking
16014
# a shared library.
16015
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16017
# Method to check whether dependent libraries are shared objects.
16018
deplibs_check_method=$lt_deplibs_check_method
16020
# Command to use when deplibs_check_method == file_magic.
16021
file_magic_cmd=$lt_file_magic_cmd
16023
# Flag that allows shared libraries with undefined symbols to be built.
16024
allow_undefined_flag=$lt_allow_undefined_flag_F77
16026
# Flag that forces no undefined symbols.
16027
no_undefined_flag=$lt_no_undefined_flag_F77
16029
# Commands used to finish a libtool library installation in a directory.
16030
finish_cmds=$lt_finish_cmds
16032
# Same as above, but a single script fragment to be evaled but not shown.
16033
finish_eval=$lt_finish_eval
16035
# Take the output of nm and produce a listing of raw symbols and C names.
16036
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16038
# Transform the output of nm in a proper C declaration
16039
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16041
# Transform the output of nm in a C name address pair
16042
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16044
# This is the shared library runtime path variable.
16045
runpath_var=$runpath_var
16047
# This is the shared library path variable.
16048
shlibpath_var=$shlibpath_var
16050
# Is shlibpath searched before the hard-coded library search path?
16051
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16053
# How to hardcode a shared library path into an executable.
16054
hardcode_action=$hardcode_action_F77
16056
# Whether we should hardcode library paths into libraries.
16057
hardcode_into_libs=$hardcode_into_libs
16059
# Flag to hardcode \$libdir into a binary during linking.
16060
# This must work even if \$libdir does not exist.
16061
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16063
# If ld is used when linking, flag to hardcode \$libdir into
16064
# a binary during linking. This must work even if \$libdir does
16066
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16068
# Whether we need a single -rpath flag with a separated argument.
16069
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16071
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16072
# resulting binary.
16073
hardcode_direct=$hardcode_direct_F77
16075
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16076
# resulting binary.
16077
hardcode_minus_L=$hardcode_minus_L_F77
16079
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16080
# the resulting binary.
16081
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16083
# Set to yes if building a shared library automatically hardcodes DIR into the library
16084
# and all subsequent libraries and executables linked against it.
16085
hardcode_automatic=$hardcode_automatic_F77
16087
# Variables whose values should be saved in libtool wrapper scripts and
16088
# restored at relink time.
16089
variables_saved_for_relink="$variables_saved_for_relink"
16091
# Whether libtool must link a program against all its dependency libraries.
16092
link_all_deplibs=$link_all_deplibs_F77
16094
# Compile-time system search path for libraries
16095
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16097
# Run-time system search path for libraries
16098
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16100
# Fix the shell variable \$srcfile for the compiler.
16101
fix_srcfile_path="$fix_srcfile_path_F77"
16103
# Set to yes if exported symbols are required.
16104
always_export_symbols=$always_export_symbols_F77
16106
# The commands to list exported symbols.
16107
export_symbols_cmds=$lt_export_symbols_cmds_F77
16109
# The commands to extract the exported symbol list from a shared archive.
16110
extract_expsyms_cmds=$lt_extract_expsyms_cmds
16112
# Symbols that should not be listed in the preloaded symbols.
16113
exclude_expsyms=$lt_exclude_expsyms_F77
16115
# Symbols that must always be exported.
16116
include_expsyms=$lt_include_expsyms_F77
16118
# ### END LIBTOOL TAG CONFIG: $tagname
16124
# If there is no Makefile yet, we rely on a make rule to execute
16125
# `config.status --recheck' to rerun these tests and create the
16126
# libtool script then.
16127
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16128
if test -f "$ltmain_in"; then
16129
test -f Makefile && make "$ltmain"
16135
ac_cpp='$CPP $CPPFLAGS'
16136
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16137
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16138
ac_compiler_gnu=$ac_cv_c_compiler_gnu
16148
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16151
# Source file extension for Java test sources.
16154
# Object file extension for compiled Java test sources.
16158
# Code to be used in simple compile tests
16159
lt_simple_compile_test_code="class foo {}\n"
16161
# Code to be used in simple link tests
16162
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16164
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16166
# If no C compiler was specified, use CC.
16169
# If no C compiler flags were specified, use CFLAGS.
16170
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16172
# Allow CC to be a program name with arguments.
16176
# save warnings/boilerplate of simple test code
16177
ac_outfile=conftest.$ac_objext
16178
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16179
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16180
_lt_compiler_boilerplate=`cat conftest.err`
16183
ac_outfile=conftest.$ac_objext
16184
printf "$lt_simple_link_test_code" >conftest.$ac_ext
16185
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16186
_lt_linker_boilerplate=`cat conftest.err`
16190
# Allow CC to be a program name with arguments.
16195
for cc_temp in $compiler""; do
16197
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16198
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16203
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16206
# GCJ did not exist at the time GCC didn't implicitly link libc in.
16207
archive_cmds_need_lc_GCJ=no
16209
old_archive_cmds_GCJ=$old_archive_cmds
16212
lt_prog_compiler_no_builtin_flag_GCJ=
16214
if test "$GCC" = yes; then
16215
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16218
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16219
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16220
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16221
echo $ECHO_N "(cached) $ECHO_C" >&6
16223
lt_cv_prog_compiler_rtti_exceptions=no
16224
ac_outfile=conftest.$ac_objext
16225
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16226
lt_compiler_flag="-fno-rtti -fno-exceptions"
16227
# Insert the option either (1) after the last *FLAGS variable, or
16228
# (2) before a word containing "conftest.", or (3) at the end.
16229
# Note that $ac_compile itself does not contain backslashes and begins
16230
# with a dollar sign (not a hyphen), so the echo should work correctly.
16231
# The option is referenced via a variable to avoid confusing sed.
16232
lt_compile=`echo "$ac_compile" | $SED \
16233
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16234
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16235
-e 's:$: $lt_compiler_flag:'`
16236
(eval echo "\"\$as_me:16236: $lt_compile\"" >&5)
16237
(eval "$lt_compile" 2>conftest.err)
16239
cat conftest.err >&5
16240
echo "$as_me:16240: \$? = $ac_status" >&5
16241
if (exit $ac_status) && test -s "$ac_outfile"; then
16242
# The compiler can only warn and ignore the option if not recognized
16243
# So say no if there are warnings other than the usual output.
16244
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16245
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16246
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16247
lt_cv_prog_compiler_rtti_exceptions=yes
16253
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16254
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16256
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16257
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16264
lt_prog_compiler_wl_GCJ=
16265
lt_prog_compiler_pic_GCJ=
16266
lt_prog_compiler_static_GCJ=
16268
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16269
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16271
if test "$GCC" = yes; then
16272
lt_prog_compiler_wl_GCJ='-Wl,'
16273
lt_prog_compiler_static_GCJ='-static'
16277
# All AIX code is PIC.
16278
if test "$host_cpu" = ia64; then
16279
# AIX 5 now supports IA64 processor
16280
lt_prog_compiler_static_GCJ='-Bstatic'
16285
# FIXME: we need at least 68020 code to build shared libraries, but
16286
# adding the `-m68020' flag to GCC prevents building anything better,
16288
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16291
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16292
# PIC is the default for these OSes.
16295
mingw* | pw32* | os2*)
16296
# This hack is so that the source file can tell whether it is being
16297
# built for inclusion in a dll (and should export symbols for example).
16298
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16301
darwin* | rhapsody*)
16302
# PIC is the default on this platform
16303
# Common symbols not allowed in MH_DYLIB files
16304
lt_prog_compiler_pic_GCJ='-fno-common'
16308
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
16309
# Instead, we relocate shared libraries at runtime.
16313
# Just because we use GCC doesn't mean we suddenly get shared libraries
16314
# on systems that don't support them.
16315
lt_prog_compiler_can_build_shared_GCJ=no
16320
if test -d /usr/nec; then
16321
lt_prog_compiler_pic_GCJ=-Kconform_pic
16326
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16327
# not for PA HP-UX.
16333
lt_prog_compiler_pic_GCJ='-fPIC'
16339
lt_prog_compiler_pic_GCJ='-fPIC'
16343
# PORTME Check for flag to pass linker flags through the system compiler.
16346
lt_prog_compiler_wl_GCJ='-Wl,'
16347
if test "$host_cpu" = ia64; then
16348
# AIX 5 now supports IA64 processor
16349
lt_prog_compiler_static_GCJ='-Bstatic'
16351
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16355
# PIC is the default on this platform
16356
# Common symbols not allowed in MH_DYLIB files
16357
case $cc_basename in
16359
lt_prog_compiler_pic_GCJ='-qnocommon'
16360
lt_prog_compiler_wl_GCJ='-Wl,'
16365
mingw* | pw32* | os2*)
16366
# This hack is so that the source file can tell whether it is being
16367
# built for inclusion in a dll (and should export symbols for example).
16368
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16371
hpux9* | hpux10* | hpux11*)
16372
lt_prog_compiler_wl_GCJ='-Wl,'
16373
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16374
# not for PA HP-UX.
16380
lt_prog_compiler_pic_GCJ='+Z'
16383
# Is there a better lt_prog_compiler_static that works with the bundled CC?
16384
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16387
irix5* | irix6* | nonstopux*)
16388
lt_prog_compiler_wl_GCJ='-Wl,'
16389
# PIC (with -KPIC) is the default.
16390
lt_prog_compiler_static_GCJ='-non_shared'
16394
lt_prog_compiler_pic_GCJ='-KPIC'
16395
lt_prog_compiler_static_GCJ='-Bstatic'
16399
case $cc_basename in
16401
lt_prog_compiler_wl_GCJ='-Wl,'
16402
lt_prog_compiler_pic_GCJ='-KPIC'
16403
lt_prog_compiler_static_GCJ='-static'
16405
pgcc* | pgf77* | pgf90* | pgf95*)
16406
# Portland Group compilers (*not* the Pentium gcc compiler,
16407
# which looks to be a dead project)
16408
lt_prog_compiler_wl_GCJ='-Wl,'
16409
lt_prog_compiler_pic_GCJ='-fpic'
16410
lt_prog_compiler_static_GCJ='-Bstatic'
16413
lt_prog_compiler_wl_GCJ='-Wl,'
16414
# All Alpha code is PIC.
16415
lt_prog_compiler_static_GCJ='-non_shared'
16420
osf3* | osf4* | osf5*)
16421
lt_prog_compiler_wl_GCJ='-Wl,'
16422
# All OSF/1 code is PIC.
16423
lt_prog_compiler_static_GCJ='-non_shared'
16427
lt_prog_compiler_pic_GCJ='-KPIC'
16428
lt_prog_compiler_static_GCJ='-Bstatic'
16429
case $cc_basename in
16430
f77* | f90* | f95*)
16431
lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16433
lt_prog_compiler_wl_GCJ='-Wl,';;
16438
lt_prog_compiler_wl_GCJ='-Qoption ld '
16439
lt_prog_compiler_pic_GCJ='-PIC'
16440
lt_prog_compiler_static_GCJ='-Bstatic'
16443
sysv4 | sysv4.2uw2* | sysv4.3*)
16444
lt_prog_compiler_wl_GCJ='-Wl,'
16445
lt_prog_compiler_pic_GCJ='-KPIC'
16446
lt_prog_compiler_static_GCJ='-Bstatic'
16450
if test -d /usr/nec ;then
16451
lt_prog_compiler_pic_GCJ='-Kconform_pic'
16452
lt_prog_compiler_static_GCJ='-Bstatic'
16456
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16457
lt_prog_compiler_wl_GCJ='-Wl,'
16458
lt_prog_compiler_pic_GCJ='-KPIC'
16459
lt_prog_compiler_static_GCJ='-Bstatic'
16463
lt_prog_compiler_wl_GCJ='-Wl,'
16464
lt_prog_compiler_can_build_shared_GCJ=no
16468
lt_prog_compiler_pic_GCJ='-pic'
16469
lt_prog_compiler_static_GCJ='-Bstatic'
16473
lt_prog_compiler_can_build_shared_GCJ=no
16478
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16479
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16482
# Check to make sure the PIC flag actually works.
16484
if test -n "$lt_prog_compiler_pic_GCJ"; then
16486
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16487
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16488
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16489
echo $ECHO_N "(cached) $ECHO_C" >&6
16491
lt_prog_compiler_pic_works_GCJ=no
16492
ac_outfile=conftest.$ac_objext
16493
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16494
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16495
# Insert the option either (1) after the last *FLAGS variable, or
16496
# (2) before a word containing "conftest.", or (3) at the end.
16497
# Note that $ac_compile itself does not contain backslashes and begins
16498
# with a dollar sign (not a hyphen), so the echo should work correctly.
16499
# The option is referenced via a variable to avoid confusing sed.
16500
lt_compile=`echo "$ac_compile" | $SED \
16501
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16502
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16503
-e 's:$: $lt_compiler_flag:'`
16504
(eval echo "\"\$as_me:16504: $lt_compile\"" >&5)
16505
(eval "$lt_compile" 2>conftest.err)
16507
cat conftest.err >&5
16508
echo "$as_me:16508: \$? = $ac_status" >&5
16509
if (exit $ac_status) && test -s "$ac_outfile"; then
16510
# The compiler can only warn and ignore the option if not recognized
16511
# So say no if there are warnings other than the usual output.
16512
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16513
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16514
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16515
lt_prog_compiler_pic_works_GCJ=yes
16521
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16522
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16524
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16525
case $lt_prog_compiler_pic_GCJ in
16527
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16530
lt_prog_compiler_pic_GCJ=
16531
lt_prog_compiler_can_build_shared_GCJ=no
16536
# For platforms which do not support PIC, -DPIC is meaningless:
16538
lt_prog_compiler_pic_GCJ=
16541
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16546
# Check to make sure the static flag actually works.
16548
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16549
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16550
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16551
if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16552
echo $ECHO_N "(cached) $ECHO_C" >&6
16554
lt_prog_compiler_static_works_GCJ=no
16555
save_LDFLAGS="$LDFLAGS"
16556
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16557
printf "$lt_simple_link_test_code" > conftest.$ac_ext
16558
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16559
# The linker can only warn and ignore the option if not recognized
16560
# So say no if there are warnings
16561
if test -s conftest.err; then
16562
# Append any errors to the config.log.
16563
cat conftest.err 1>&5
16564
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16565
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16566
if diff conftest.exp conftest.er2 >/dev/null; then
16567
lt_prog_compiler_static_works_GCJ=yes
16570
lt_prog_compiler_static_works_GCJ=yes
16574
LDFLAGS="$save_LDFLAGS"
16577
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16578
echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16580
if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16583
lt_prog_compiler_static_GCJ=
16587
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16588
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16589
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16590
echo $ECHO_N "(cached) $ECHO_C" >&6
16592
lt_cv_prog_compiler_c_o_GCJ=no
16593
$rm -r conftest 2>/dev/null
16597
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16599
lt_compiler_flag="-o out/conftest2.$ac_objext"
16600
# Insert the option either (1) after the last *FLAGS variable, or
16601
# (2) before a word containing "conftest.", or (3) at the end.
16602
# Note that $ac_compile itself does not contain backslashes and begins
16603
# with a dollar sign (not a hyphen), so the echo should work correctly.
16604
lt_compile=`echo "$ac_compile" | $SED \
16605
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16606
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16607
-e 's:$: $lt_compiler_flag:'`
16608
(eval echo "\"\$as_me:16608: $lt_compile\"" >&5)
16609
(eval "$lt_compile" 2>out/conftest.err)
16611
cat out/conftest.err >&5
16612
echo "$as_me:16612: \$? = $ac_status" >&5
16613
if (exit $ac_status) && test -s out/conftest2.$ac_objext
16615
# The compiler can only warn and ignore the option if not recognized
16616
# So say no if there are warnings
16617
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16618
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16619
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16620
lt_cv_prog_compiler_c_o_GCJ=yes
16625
# SGI C++ compiler will create directory out/ii_files/ for
16626
# template instantiation
16627
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16628
$rm out/* && rmdir out
16634
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16635
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16638
hard_links="nottested"
16639
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16640
# do not overwrite the value of need_locks provided by the user
16641
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16642
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16645
ln conftest.a conftest.b 2>/dev/null && hard_links=no
16647
ln conftest.a conftest.b 2>&5 || hard_links=no
16648
ln conftest.a conftest.b 2>/dev/null && hard_links=no
16649
{ echo "$as_me:$LINENO: result: $hard_links" >&5
16650
echo "${ECHO_T}$hard_links" >&6; }
16651
if test "$hard_links" = no; then
16652
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16653
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16660
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16661
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16664
allow_undefined_flag_GCJ=
16665
enable_shared_with_static_runtimes_GCJ=no
16667
archive_expsym_cmds_GCJ=
16668
old_archive_From_new_cmds_GCJ=
16669
old_archive_from_expsyms_cmds_GCJ=
16670
export_dynamic_flag_spec_GCJ=
16671
whole_archive_flag_spec_GCJ=
16672
thread_safe_flag_spec_GCJ=
16673
hardcode_libdir_flag_spec_GCJ=
16674
hardcode_libdir_flag_spec_ld_GCJ=
16675
hardcode_libdir_separator_GCJ=
16676
hardcode_direct_GCJ=no
16677
hardcode_minus_L_GCJ=no
16678
hardcode_shlibpath_var_GCJ=unsupported
16679
link_all_deplibs_GCJ=unknown
16680
hardcode_automatic_GCJ=no
16682
module_expsym_cmds_GCJ=
16683
always_export_symbols_GCJ=no
16684
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16685
# include_expsyms should be a list of space-separated symbols to be *always*
16686
# included in the symbol list
16687
include_expsyms_GCJ=
16688
# exclude_expsyms can be an extended regexp of symbols to exclude
16689
# it will be wrapped by ` (' and `)$', so one must not match beginning or
16690
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16691
# as well as any symbol that contains `d'.
16692
exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16693
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16694
# platforms (ab)use it in PIC code, but their linkers get confused if
16695
# the symbol is explicitly referenced. Since portable code cannot
16696
# rely on this symbol name, it's probably fine to never include it in
16697
# preloaded symbol tables.
16698
extract_expsyms_cmds=
16699
# Just being paranoid about ensuring that cc_basename is set.
16700
for cc_temp in $compiler""; do
16702
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16703
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16708
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16711
cygwin* | mingw* | pw32*)
16712
# FIXME: the MSVC++ port hasn't been tested in a loooong time
16713
# When not using gcc, we currently assume that we are using
16714
# Microsoft Visual C++.
16715
if test "$GCC" != yes; then
16720
# we just hope/assume this is gcc and not c89 (= MSVC++)
16729
if test "$with_gnu_ld" = yes; then
16730
# If archive_cmds runs LD, not CC, wlarc should be empty
16733
# Set some defaults for GNU ld with shared library support. These
16734
# are reset later if shared libraries are not supported. Putting them
16735
# here allows them to be overridden if necessary.
16736
runpath_var=LD_RUN_PATH
16737
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16738
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16739
# ancient GNU ld didn't support --whole-archive et. al.
16740
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16741
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16743
whole_archive_flag_spec_GCJ=
16745
supports_anon_versioning=no
16746
case `$LD -v 2>/dev/null` in
16747
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16748
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16749
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16750
*\ 2.11.*) ;; # other 2.11 versions
16751
*) supports_anon_versioning=yes ;;
16754
# See if GNU ld supports shared libraries.
16756
aix3* | aix4* | aix5*)
16757
# On AIX/PPC, the GNU linker is very broken
16758
if test "$host_cpu" != ia64; then
16762
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16763
*** to be unable to reliably create shared libraries on AIX.
16764
*** Therefore, libtool is disabling shared libraries support. If you
16765
*** really care for shared libraries, you may want to modify your PATH
16766
*** so that a non-GNU linker is found, and then restart.
16773
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)'
16774
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16775
hardcode_minus_L_GCJ=yes
16777
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16778
# that the semantics of dynamic libraries on AmigaOS, at least up
16779
# to version 4, is to share data among multiple programs linked
16780
# with the same dynamic library. Since this doesn't match the
16781
# behavior of shared libraries on other platforms, we can't use
16787
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16788
allow_undefined_flag_GCJ=unsupported
16789
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16790
# support --undefined. This deserves some investigation. FIXME
16791
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16797
cygwin* | mingw* | pw32*)
16798
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16799
# as there is no search path for DLLs.
16800
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16801
allow_undefined_flag_GCJ=unsupported
16802
always_export_symbols_GCJ=no
16803
enable_shared_with_static_runtimes_GCJ=yes
16804
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16806
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16807
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16808
# If the export-symbols file already is a .def file (1st line
16809
# is EXPORTS), use it as is; otherwise, prepend...
16810
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16811
cp $export_symbols $output_objdir/$soname.def;
16813
echo EXPORTS > $output_objdir/$soname.def;
16814
cat $export_symbols >> $output_objdir/$soname.def;
16816
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16823
hardcode_direct_GCJ=no
16824
hardcode_shlibpath_var_GCJ=no
16825
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16826
export_dynamic_flag_spec_GCJ='${wl}-E'
16827
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16828
# Instead, shared libraries are loaded at an image base (0x10000000 by
16829
# default) and relocated if they conflict, which is a slow very memory
16830
# consuming and fragmenting process. To avoid this, we pick a random,
16831
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16832
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
16833
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'
16834
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'
16838
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16840
case $cc_basename,$host_cpu in
16841
pgcc*) # Portland Group C compiler
16842
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'
16843
tmp_addflag=' $pic_flag'
16845
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16846
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'
16847
tmp_addflag=' $pic_flag -Mnomain' ;;
16848
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16849
tmp_addflag=' -i_dynamic' ;;
16850
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16851
tmp_addflag=' -i_dynamic -nofor_main' ;;
16852
ifc* | ifort*) # Intel Fortran compiler
16853
tmp_addflag=' -nofor_main' ;;
16855
archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16857
if test $supports_anon_versioning = yes; then
16858
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16859
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16860
$echo "local: *; };" >> $output_objdir/$libname.ver~
16861
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16869
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16870
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16873
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16874
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16879
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16883
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16884
*** create shared libraries on Solaris systems. Therefore, libtool
16885
*** is disabling shared libraries support. We urge you to upgrade GNU
16886
*** binutils to release 2.9.1 or newer. Another option is to modify
16887
*** your PATH or compiler configuration so that the native linker is
16888
*** used, and then restart.
16891
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16892
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16893
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16899
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16900
case `$LD -v 2>&1` in
16901
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16905
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16906
*** reliably create shared libraries on SCO systems. Therefore, libtool
16907
*** is disabling shared libraries support. We urge you to upgrade GNU
16908
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16909
*** your PATH or compiler configuration so that the native linker is
16910
*** used, and then restart.
16915
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16916
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16917
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16918
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16927
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16929
hardcode_direct_GCJ=yes
16930
hardcode_shlibpath_var_GCJ=no
16934
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16935
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16936
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16943
if test "$ld_shlibs_GCJ" = no; then
16945
hardcode_libdir_flag_spec_GCJ=
16946
export_dynamic_flag_spec_GCJ=
16947
whole_archive_flag_spec_GCJ=
16950
# PORTME fill in a description of your system's linker (not GNU ld)
16953
allow_undefined_flag_GCJ=unsupported
16954
always_export_symbols_GCJ=yes
16955
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'
16956
# Note: this linker hardcodes the directories in LIBPATH if there
16957
# are no directories specified by -L.
16958
hardcode_minus_L_GCJ=yes
16959
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16960
# Neither direct hardcoding nor static linking is supported with a
16962
hardcode_direct_GCJ=unsupported
16967
if test "$host_cpu" = ia64; then
16968
# On IA64, the linker does run time linking by default, so we don't
16969
# have to do anything special.
16970
aix_use_runtimelinking=no
16971
exp_sym_flag='-Bexport'
16974
# If we're using GNU nm, then we don't want the "-C" option.
16975
# -C means demangle to AIX nm, but means don't demangle with GNU nm
16976
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16977
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'
16979
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'
16981
aix_use_runtimelinking=no
16983
# Test if we are trying to use run time linking or normal
16984
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16985
# need to do runtime linking.
16986
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16987
for ld_flag in $LDFLAGS; do
16988
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16989
aix_use_runtimelinking=yes
16996
exp_sym_flag='-bexport'
16997
no_entry_flag='-bnoentry'
17000
# When large executables or shared objects are built, AIX ld can
17001
# have problems creating the table of contents. If linking a library
17002
# or program results in "error TOC overflow" add -mminimal-toc to
17003
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17004
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17006
archive_cmds_GCJ=''
17007
hardcode_direct_GCJ=yes
17008
hardcode_libdir_separator_GCJ=':'
17009
link_all_deplibs_GCJ=yes
17011
if test "$GCC" = yes; then
17012
case $host_os in aix4.[012]|aix4.[012].*)
17013
# We only want to do this on AIX 4.2 and lower, the check
17014
# below for broken collect2 doesn't work under 4.3+
17015
collect2name=`${CC} -print-prog-name=collect2`
17016
if test -f "$collect2name" && \
17017
strings "$collect2name" | grep resolve_lib_name >/dev/null
17019
# We have reworked collect2
17020
hardcode_direct_GCJ=yes
17022
# We have old collect2
17023
hardcode_direct_GCJ=unsupported
17024
# It fails to find uninstalled libraries when the uninstalled
17025
# path is not listed in the libpath. Setting hardcode_minus_L
17026
# to unsupported forces relinking
17027
hardcode_minus_L_GCJ=yes
17028
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17029
hardcode_libdir_separator_GCJ=
17033
shared_flag='-shared'
17034
if test "$aix_use_runtimelinking" = yes; then
17035
shared_flag="$shared_flag "'${wl}-G'
17039
if test "$host_cpu" = ia64; then
17040
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17041
# chokes on -Wl,-G. The following line is correct:
17044
if test "$aix_use_runtimelinking" = yes; then
17045
shared_flag='${wl}-G'
17047
shared_flag='${wl}-bM:SRE'
17052
# It seems that -bexpall does not export symbols beginning with
17053
# underscore (_), so it is better to generate a list of symbols to export.
17054
always_export_symbols_GCJ=yes
17055
if test "$aix_use_runtimelinking" = yes; then
17056
# Warning - without using the other runtime loading flags (-brtl),
17057
# -berok will link without error, but may produce a broken library.
17058
allow_undefined_flag_GCJ='-berok'
17059
# Determine the default libpath from the value encoded in an empty executable.
17060
cat >conftest.$ac_ext <<_ACEOF
17063
cat confdefs.h >>conftest.$ac_ext
17064
cat >>conftest.$ac_ext <<_ACEOF
17065
/* end confdefs.h. */
17075
rm -f conftest.$ac_objext conftest$ac_exeext
17076
if { (ac_try="$ac_link"
17077
case "(($ac_try" in
17078
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17079
*) ac_try_echo=$ac_try;;
17081
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17082
(eval "$ac_link") 2>conftest.er1
17084
grep -v '^ *+' conftest.er1 >conftest.err
17086
cat conftest.err >&5
17087
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17088
(exit $ac_status); } && {
17089
test -z "$ac_c_werror_flag" ||
17090
test ! -s conftest.err
17091
} && test -s conftest$ac_exeext &&
17092
$as_test_x conftest$ac_exeext; then
17094
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17096
# Check for a 64-bit object if we didn't find anything.
17097
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17100
echo "$as_me: failed program was:" >&5
17101
sed 's/^/| /' conftest.$ac_ext >&5
17106
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17107
conftest$ac_exeext conftest.$ac_ext
17108
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17110
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17111
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"
17113
if test "$host_cpu" = ia64; then
17114
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17115
allow_undefined_flag_GCJ="-z nodefs"
17116
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"
17118
# Determine the default libpath from the value encoded in an empty executable.
17119
cat >conftest.$ac_ext <<_ACEOF
17122
cat confdefs.h >>conftest.$ac_ext
17123
cat >>conftest.$ac_ext <<_ACEOF
17124
/* end confdefs.h. */
17134
rm -f conftest.$ac_objext conftest$ac_exeext
17135
if { (ac_try="$ac_link"
17136
case "(($ac_try" in
17137
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17138
*) ac_try_echo=$ac_try;;
17140
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17141
(eval "$ac_link") 2>conftest.er1
17143
grep -v '^ *+' conftest.er1 >conftest.err
17145
cat conftest.err >&5
17146
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17147
(exit $ac_status); } && {
17148
test -z "$ac_c_werror_flag" ||
17149
test ! -s conftest.err
17150
} && test -s conftest$ac_exeext &&
17151
$as_test_x conftest$ac_exeext; then
17153
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17155
# Check for a 64-bit object if we didn't find anything.
17156
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17159
echo "$as_me: failed program was:" >&5
17160
sed 's/^/| /' conftest.$ac_ext >&5
17165
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17166
conftest$ac_exeext conftest.$ac_ext
17167
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17169
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17170
# Warning - without using the other run time loading flags,
17171
# -berok will link without error, but may produce a broken library.
17172
no_undefined_flag_GCJ=' ${wl}-bernotok'
17173
allow_undefined_flag_GCJ=' ${wl}-berok'
17174
# Exported symbols can be pulled into shared objects from archives
17175
whole_archive_flag_spec_GCJ='$convenience'
17176
archive_cmds_need_lc_GCJ=yes
17177
# This is similar to how AIX traditionally builds its shared libraries.
17178
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'
17184
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)'
17185
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17186
hardcode_minus_L_GCJ=yes
17187
# see comment about different semantics on the GNU ld section
17192
export_dynamic_flag_spec_GCJ=-rdynamic
17195
cygwin* | mingw* | pw32*)
17196
# When not using gcc, we currently assume that we are using
17197
# Microsoft Visual C++.
17198
# hardcode_libdir_flag_spec is actually meaningless, as there is
17199
# no search path for DLLs.
17200
hardcode_libdir_flag_spec_GCJ=' '
17201
allow_undefined_flag_GCJ=unsupported
17202
# Tell ltmain to make .lib files, not .a files.
17204
# Tell ltmain to make .dll files, not .so files.
17206
# FIXME: Setting linknames here is a bad hack.
17207
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17208
# The linker will automatically build a .lib file if we build a DLL.
17209
old_archive_From_new_cmds_GCJ='true'
17210
# FIXME: Should let the user specify the lib program.
17211
old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17212
fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17213
enable_shared_with_static_runtimes_GCJ=yes
17216
darwin* | rhapsody*)
17218
rhapsody* | darwin1.[012])
17219
allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17222
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17223
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17225
case ${MACOSX_DEPLOYMENT_TARGET} in
17227
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17230
allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17236
archive_cmds_need_lc_GCJ=no
17237
hardcode_direct_GCJ=no
17238
hardcode_automatic_GCJ=yes
17239
hardcode_shlibpath_var_GCJ=unsupported
17240
whole_archive_flag_spec_GCJ=''
17241
link_all_deplibs_GCJ=yes
17242
if test "$GCC" = yes ; then
17243
output_verbose_link_cmd='echo'
17244
archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17245
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17246
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17247
archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17248
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}'
17250
case $cc_basename in
17252
output_verbose_link_cmd='echo'
17253
archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17254
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17255
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17256
archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17257
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}'
17267
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17268
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17269
hardcode_shlibpath_var_GCJ=no
17276
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17277
# support. Future versions do this automatically, but an explicit c++rt0.o
17278
# does not break anything, and helps significantly (at the cost of a little
17281
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17282
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17283
hardcode_direct_GCJ=yes
17284
hardcode_shlibpath_var_GCJ=no
17287
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
17289
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17290
hardcode_direct_GCJ=yes
17291
hardcode_minus_L_GCJ=yes
17292
hardcode_shlibpath_var_GCJ=no
17295
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17296
freebsd* | kfreebsd*-gnu | dragonfly*)
17297
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17298
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17299
hardcode_direct_GCJ=yes
17300
hardcode_shlibpath_var_GCJ=no
17304
if test "$GCC" = yes; then
17305
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'
17307
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'
17309
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17310
hardcode_libdir_separator_GCJ=:
17311
hardcode_direct_GCJ=yes
17313
# hardcode_minus_L: Not really in the search PATH,
17314
# but as the default location of the library.
17315
hardcode_minus_L_GCJ=yes
17316
export_dynamic_flag_spec_GCJ='${wl}-E'
17320
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17321
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17323
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17325
if test "$with_gnu_ld" = no; then
17326
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17327
hardcode_libdir_separator_GCJ=:
17329
hardcode_direct_GCJ=yes
17330
export_dynamic_flag_spec_GCJ='${wl}-E'
17332
# hardcode_minus_L: Not really in the search PATH,
17333
# but as the default location of the library.
17334
hardcode_minus_L_GCJ=yes
17339
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17342
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17345
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17348
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17354
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17357
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17360
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17364
if test "$with_gnu_ld" = no; then
17365
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17366
hardcode_libdir_separator_GCJ=:
17370
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17371
hardcode_direct_GCJ=no
17372
hardcode_shlibpath_var_GCJ=no
17375
hardcode_direct_GCJ=yes
17376
export_dynamic_flag_spec_GCJ='${wl}-E'
17378
# hardcode_minus_L: Not really in the search PATH,
17379
# but as the default location of the library.
17380
hardcode_minus_L_GCJ=yes
17386
irix5* | irix6* | nonstopux*)
17387
if test "$GCC" = yes; then
17388
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'
17390
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'
17391
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17393
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17394
hardcode_libdir_separator_GCJ=:
17395
link_all_deplibs_GCJ=yes
17399
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17400
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17402
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17404
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17405
hardcode_direct_GCJ=yes
17406
hardcode_shlibpath_var_GCJ=no
17410
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17411
hardcode_direct_GCJ=yes
17412
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17413
hardcode_libdir_separator_GCJ=:
17414
hardcode_shlibpath_var_GCJ=no
17418
hardcode_direct_GCJ=yes
17419
hardcode_shlibpath_var_GCJ=no
17420
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17421
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17422
archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17423
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17424
export_dynamic_flag_spec_GCJ='${wl}-E'
17427
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17428
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17429
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17432
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17433
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17440
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17441
hardcode_minus_L_GCJ=yes
17442
allow_undefined_flag_GCJ=unsupported
17443
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'
17444
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17448
if test "$GCC" = yes; then
17449
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17450
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'
17452
allow_undefined_flag_GCJ=' -expect_unresolved \*'
17453
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'
17455
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17456
hardcode_libdir_separator_GCJ=:
17459
osf4* | osf5*) # as osf3* with the addition of -msym flag
17460
if test "$GCC" = yes; then
17461
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17462
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'
17463
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17465
allow_undefined_flag_GCJ=' -expect_unresolved \*'
17466
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'
17467
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~
17468
$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'
17470
# Both c and cxx compiler support -rpath directly
17471
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17473
hardcode_libdir_separator_GCJ=:
17477
no_undefined_flag_GCJ=' -z text'
17478
if test "$GCC" = yes; then
17480
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17481
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17482
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17485
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17486
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17487
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17489
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17490
hardcode_shlibpath_var_GCJ=no
17492
solaris2.[0-5] | solaris2.[0-5].*) ;;
17494
# The compiler driver will combine linker options so we
17495
# cannot just pass the convience library names through
17496
# without $wl, iff we do not link with $LD.
17497
# Luckily, gcc supports the same syntax we need for Sun Studio.
17498
# Supported since Solaris 2.6 (maybe 2.5.1?)
17501
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17503
whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17506
link_all_deplibs_GCJ=yes
17510
if test "x$host_vendor" = xsequent; then
17511
# Use $CC to link under sequent, because it throws in some extra .o
17512
# files that make .init and .fini sections work.
17513
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17515
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17517
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17518
hardcode_direct_GCJ=yes
17519
hardcode_minus_L_GCJ=yes
17520
hardcode_shlibpath_var_GCJ=no
17524
case $host_vendor in
17526
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17527
hardcode_direct_GCJ=yes # is this really true???
17530
## LD is ld it makes a PLAMLIB
17531
## CC just makes a GrossModule.
17532
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17533
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17534
hardcode_direct_GCJ=no
17537
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17538
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17541
runpath_var='LD_RUN_PATH'
17542
hardcode_shlibpath_var_GCJ=no
17546
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17547
hardcode_shlibpath_var_GCJ=no
17548
export_dynamic_flag_spec_GCJ='-Bexport'
17552
if test -d /usr/nec; then
17553
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17554
hardcode_shlibpath_var_GCJ=no
17555
runpath_var=LD_RUN_PATH
17556
hardcode_runpath_var=yes
17561
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17562
no_undefined_flag_GCJ='${wl}-z,text'
17563
archive_cmds_need_lc_GCJ=no
17564
hardcode_shlibpath_var_GCJ=no
17565
runpath_var='LD_RUN_PATH'
17567
if test "$GCC" = yes; then
17568
archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17569
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17571
archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17572
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17576
sysv5* | sco3.2v5* | sco5v6*)
17577
# Note: We can NOT use -z defs as we might desire, because we do not
17578
# link with -lc, and that would cause any symbols used from libc to
17579
# always be unresolved, which means just about no library would
17580
# ever link correctly. If we're not using GNU ld we use -z text
17581
# though, which does catch some bad symbols but isn't as heavy-handed
17583
no_undefined_flag_GCJ='${wl}-z,text'
17584
allow_undefined_flag_GCJ='${wl}-z,nodefs'
17585
archive_cmds_need_lc_GCJ=no
17586
hardcode_shlibpath_var_GCJ=no
17587
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17588
hardcode_libdir_separator_GCJ=':'
17589
link_all_deplibs_GCJ=yes
17590
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17591
runpath_var='LD_RUN_PATH'
17593
if test "$GCC" = yes; then
17594
archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17595
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17597
archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17598
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17603
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17604
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17605
hardcode_shlibpath_var_GCJ=no
17614
{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17615
echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17616
test "$ld_shlibs_GCJ" = no && can_build_shared=no
17619
# Do we need to explicitly link libc?
17621
case "x$archive_cmds_need_lc_GCJ" in
17623
# Assume -lc should be added
17624
archive_cmds_need_lc_GCJ=yes
17626
if test "$enable_shared" = yes && test "$GCC" = yes; then
17627
case $archive_cmds_GCJ in
17629
# FIXME: we may have to deal with multi-command sequences.
17632
# Test whether the compiler implicitly links with -lc since on some
17633
# systems, -lgcc has to come before -lc. If gcc already passes -lc
17634
# to ld, don't add -lc before -lgcc.
17635
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17636
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17638
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17640
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17641
(eval $ac_compile) 2>&5
17643
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17644
(exit $ac_status); } 2>conftest.err; then
17647
libobjs=conftest.$ac_objext
17649
wl=$lt_prog_compiler_wl_GCJ
17650
pic_flag=$lt_prog_compiler_pic_GCJ
17656
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17657
allow_undefined_flag_GCJ=
17658
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17659
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17661
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17662
(exit $ac_status); }
17664
archive_cmds_need_lc_GCJ=no
17666
archive_cmds_need_lc_GCJ=yes
17668
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17670
cat conftest.err 1>&5
17673
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17674
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17681
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17682
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17683
library_names_spec=
17684
libname_spec='lib$name'
17688
postuninstall_cmds=
17692
shlibpath_overrides_runpath=unknown
17694
dynamic_linker="$host_os ld.so"
17695
sys_lib_dlsearch_path_spec="/lib /usr/lib"
17696
if test "$GCC" = yes; then
17697
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17698
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17699
# if the path contains ";" then we assume it to be the separator
17700
# otherwise default to the standard path separator (i.e. ":") - it is
17701
# assumed that no part of a normal pathname contains ";" but that should
17702
# okay in the real world where ";" in dirpaths is itself problematic.
17703
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17705
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17708
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17710
need_lib_prefix=unknown
17711
hardcode_into_libs=no
17713
# when you set need_version to no, make sure it does not cause -set_version
17714
# flags to be left without arguments
17715
need_version=unknown
17720
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17721
shlibpath_var=LIBPATH
17723
# AIX 3 has no versioning support, so we append a major version to the name.
17724
soname_spec='${libname}${release}${shared_ext}$major'
17731
hardcode_into_libs=yes
17732
if test "$host_cpu" = ia64; then
17733
# AIX 5 supports IA64
17734
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17735
shlibpath_var=LD_LIBRARY_PATH
17737
# With GCC up to 2.95.x, collect2 would create an import file
17738
# for dependence libraries. The import file would start with
17739
# the line `#! .'. This would cause the generated library to
17740
# depend on `.', always an invalid library. This was fixed in
17741
# development snapshots of GCC prior to 3.0.
17743
aix4 | aix4.[01] | aix4.[01].*)
17744
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17746
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17749
can_build_shared=no
17753
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17754
# soname into executable. Probably we can add versioning support to
17755
# collect2, so additional links can be useful in future.
17756
if test "$aix_use_runtimelinking" = yes; then
17757
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
17758
# instead of lib<name>.a to let people know that these are not
17759
# typical AIX shared libraries.
17760
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17762
# We preserve .a as extension for shared libraries through AIX4.2
17763
# and later when we are not doing run time linking.
17764
library_names_spec='${libname}${release}.a $libname.a'
17765
soname_spec='${libname}${release}${shared_ext}$major'
17767
shlibpath_var=LIBPATH
17772
library_names_spec='$libname.ixlibrary $libname.a'
17773
# Create ${libname}_ixlibrary.a entries in /sys/libs.
17774
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'
17778
library_names_spec='${libname}${shared_ext}'
17779
dynamic_linker="$host_os ld.so"
17780
shlibpath_var=LIBRARY_PATH
17786
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17787
soname_spec='${libname}${release}${shared_ext}$major'
17788
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17789
shlibpath_var=LD_LIBRARY_PATH
17790
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17791
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17792
# the default ld.so.conf also contains /usr/contrib/lib and
17793
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17794
# libtool to hard-code these into programs
17797
cygwin* | mingw* | pw32*)
17798
version_type=windows
17803
case $GCC,$host_os in
17804
yes,cygwin* | yes,mingw* | yes,pw32*)
17805
library_names_spec='$libname.dll.a'
17806
# DLL is installed to $(libdir)/../bin by postinstall_cmds
17807
postinstall_cmds='base_file=`basename \${file}`~
17808
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17809
dldir=$destdir/`dirname \$dlpath`~
17810
test -d \$dldir || mkdir -p \$dldir~
17811
$install_prog $dir/$dlname \$dldir/$dlname~
17812
chmod a+x \$dldir/$dlname'
17813
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17814
dlpath=$dir/\$dldll~
17816
shlibpath_overrides_runpath=yes
17820
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
17821
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17822
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17825
# MinGW DLLs use traditional 'lib' prefix
17826
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17827
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17828
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17829
# It is most probably a Windows format PATH printed by
17830
# mingw gcc, but we are running on Cygwin. Gcc prints its search
17831
# path with ; separators, and with drive letters. We can handle the
17832
# drive letters (cygwin fileutils understands them), so leave them,
17833
# especially as we might pass files found there to a mingw objdump,
17834
# which wouldn't understand a cygwinified path. Ahh.
17835
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17837
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17841
# pw32 DLLs use 'pw' prefix rather than 'lib'
17842
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17848
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17851
dynamic_linker='Win32 ld.exe'
17852
# FIXME: first we should search . and the directory the executable is in
17856
darwin* | rhapsody*)
17857
dynamic_linker="$host_os dyld"
17858
version_type=darwin
17861
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17862
soname_spec='${libname}${release}${major}$shared_ext'
17863
shlibpath_overrides_runpath=yes
17864
shlibpath_var=DYLD_LIBRARY_PATH
17865
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17866
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17867
if test "$GCC" = yes; then
17868
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17870
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17872
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17879
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17880
soname_spec='${libname}${release}${shared_ext}$major'
17881
shlibpath_var=LD_LIBRARY_PATH
17892
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17893
soname_spec='${libname}${release}${shared_ext}$major'
17894
shlibpath_var=LD_LIBRARY_PATH
17895
shlibpath_overrides_runpath=no
17896
hardcode_into_libs=yes
17897
dynamic_linker='GNU ld.so'
17900
freebsd* | dragonfly*)
17901
# DragonFly does not have aout. When/if they implement a new
17902
# versioning mechanism, adjust this.
17903
if test -x /usr/bin/objformat; then
17904
objformat=`/usr/bin/objformat`
17907
freebsd[123]*) objformat=aout ;;
17908
*) objformat=elf ;;
17911
version_type=freebsd-$objformat
17912
case $version_type in
17914
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17919
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17923
shlibpath_var=LD_LIBRARY_PATH
17926
shlibpath_overrides_runpath=yes
17928
freebsd3.[01]* | freebsdelf3.[01]*)
17929
shlibpath_overrides_runpath=yes
17930
hardcode_into_libs=yes
17932
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17933
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17934
shlibpath_overrides_runpath=no
17935
hardcode_into_libs=yes
17937
freebsd*) # from 4.6 on
17938
shlibpath_overrides_runpath=yes
17939
hardcode_into_libs=yes
17948
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17949
soname_spec='${libname}${release}${shared_ext}$major'
17950
shlibpath_var=LD_LIBRARY_PATH
17951
hardcode_into_libs=yes
17954
hpux9* | hpux10* | hpux11*)
17955
# Give a soname corresponding to the major version so that dld.sl refuses to
17956
# link against other versions.
17963
hardcode_into_libs=yes
17964
dynamic_linker="$host_os dld.so"
17965
shlibpath_var=LD_LIBRARY_PATH
17966
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17967
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17968
soname_spec='${libname}${release}${shared_ext}$major'
17969
if test "X$HPUX_IA64_MODE" = X32; then
17970
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17972
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17974
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17978
hardcode_into_libs=yes
17979
dynamic_linker="$host_os dld.sl"
17980
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17981
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17982
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17983
soname_spec='${libname}${release}${shared_ext}$major'
17984
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17985
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17989
dynamic_linker="$host_os dld.sl"
17990
shlibpath_var=SHLIB_PATH
17991
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17992
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17993
soname_spec='${libname}${release}${shared_ext}$major'
17996
# HP-UX runs *really* slowly unless shared libraries are mode 555.
17997
postinstall_cmds='chmod 555 $lib'
18004
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18005
soname_spec='${libname}${release}${shared_ext}$major'
18006
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18007
shlibpath_var=LD_LIBRARY_PATH
18008
shlibpath_overrides_runpath=no
18009
hardcode_into_libs=yes
18012
irix5* | irix6* | nonstopux*)
18014
nonstopux*) version_type=nonstopux ;;
18016
if test "$lt_cv_prog_gnu_ld" = yes; then
18024
soname_spec='${libname}${release}${shared_ext}$major'
18025
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18027
irix5* | nonstopux*)
18028
libsuff= shlibsuff=
18031
case $LD in # libtool.m4 will add one of these switches to LD
18032
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18033
libsuff= shlibsuff= libmagic=32-bit;;
18034
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18035
libsuff=32 shlibsuff=N32 libmagic=N32;;
18036
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18037
libsuff=64 shlibsuff=64 libmagic=64-bit;;
18038
*) libsuff= shlibsuff= libmagic=never-match;;
18042
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18043
shlibpath_overrides_runpath=no
18044
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18045
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18046
hardcode_into_libs=yes
18049
# No shared lib support for Linux oldld, aout, or coff.
18050
linux*oldld* | linux*aout* | linux*coff*)
18054
# This must be Linux ELF.
18059
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18060
soname_spec='${libname}${release}${shared_ext}$major'
18061
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18062
shlibpath_var=LD_LIBRARY_PATH
18063
shlibpath_overrides_runpath=no
18064
# This implies no fast_install, which is unacceptable.
18065
# Some rework will be needed to allow for fast_install
18066
# before this can be enabled.
18067
hardcode_into_libs=yes
18069
# Append ld.so.conf contents to the search path
18070
if test -f /etc/ld.so.conf; then
18071
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18072
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18075
# We used to test for /lib/ld.so.1 and disable shared libraries on
18076
# powerpc, because MkLinux only supported shared libraries with the
18077
# GNU dynamic linker. Since this was broken with cross compilers,
18078
# most powerpc-linux boxes support dynamic linking these days and
18079
# people can always --disable-shared, the test was removed, and we
18080
# assume the GNU/Linux dynamic linker is in use.
18081
dynamic_linker='GNU/Linux ld.so'
18088
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18089
soname_spec='${libname}${release}${shared_ext}$major'
18090
shlibpath_var=LD_LIBRARY_PATH
18091
shlibpath_overrides_runpath=no
18092
hardcode_into_libs=yes
18093
dynamic_linker='GNU ld.so'
18100
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18101
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18102
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18103
dynamic_linker='NetBSD (a.out) ld.so'
18105
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18106
soname_spec='${libname}${release}${shared_ext}$major'
18107
dynamic_linker='NetBSD ld.elf_so'
18109
shlibpath_var=LD_LIBRARY_PATH
18110
shlibpath_overrides_runpath=yes
18111
hardcode_into_libs=yes
18116
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18117
shlibpath_var=LD_LIBRARY_PATH
18118
shlibpath_overrides_runpath=yes
18125
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18126
soname_spec='${libname}${release}${shared_ext}$major'
18127
shlibpath_var=LD_LIBRARY_PATH
18128
shlibpath_overrides_runpath=yes
18133
sys_lib_dlsearch_path_spec="/usr/lib"
18135
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18137
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18138
*) need_version=no ;;
18140
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18141
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18142
shlibpath_var=LD_LIBRARY_PATH
18143
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18145
openbsd2.[89] | openbsd2.[89].*)
18146
shlibpath_overrides_runpath=no
18149
shlibpath_overrides_runpath=yes
18153
shlibpath_overrides_runpath=yes
18158
libname_spec='$name'
18161
library_names_spec='$libname${shared_ext} $libname.a'
18162
dynamic_linker='OS/2 ld.exe'
18163
shlibpath_var=LIBPATH
18166
osf3* | osf4* | osf5*)
18170
soname_spec='${libname}${release}${shared_ext}$major'
18171
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18172
shlibpath_var=LD_LIBRARY_PATH
18173
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18174
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18181
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18182
soname_spec='${libname}${release}${shared_ext}$major'
18183
shlibpath_var=LD_LIBRARY_PATH
18184
shlibpath_overrides_runpath=yes
18185
hardcode_into_libs=yes
18186
# ldd complains unless libraries are executable
18187
postinstall_cmds='chmod +x $lib'
18192
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18193
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18194
shlibpath_var=LD_LIBRARY_PATH
18195
shlibpath_overrides_runpath=yes
18196
if test "$with_gnu_ld" = yes; then
18204
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18205
soname_spec='${libname}${release}${shared_ext}$major'
18206
shlibpath_var=LD_LIBRARY_PATH
18207
case $host_vendor in
18209
shlibpath_overrides_runpath=no
18211
export_dynamic_flag_spec='${wl}-Blargedynsym'
18212
runpath_var=LD_RUN_PATH
18220
shlibpath_overrides_runpath=no
18221
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18227
if test -d /usr/nec ;then
18229
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18230
soname_spec='$libname${shared_ext}.$major'
18231
shlibpath_var=LD_LIBRARY_PATH
18235
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18236
version_type=freebsd-elf
18239
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18240
soname_spec='${libname}${release}${shared_ext}$major'
18241
shlibpath_var=LD_LIBRARY_PATH
18242
hardcode_into_libs=yes
18243
if test "$with_gnu_ld" = yes; then
18244
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18245
shlibpath_overrides_runpath=no
18247
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18248
shlibpath_overrides_runpath=yes
18251
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18255
sys_lib_dlsearch_path_spec='/usr/lib'
18260
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18261
soname_spec='${libname}${release}${shared_ext}$major'
18262
shlibpath_var=LD_LIBRARY_PATH
18269
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18270
echo "${ECHO_T}$dynamic_linker" >&6; }
18271
test "$dynamic_linker" = no && can_build_shared=no
18273
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18274
if test "$GCC" = yes; then
18275
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18278
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18279
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18280
hardcode_action_GCJ=
18281
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18282
test -n "$runpath_var_GCJ" || \
18283
test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18285
# We can hardcode non-existant directories.
18286
if test "$hardcode_direct_GCJ" != no &&
18287
# If the only mechanism to avoid hardcoding is shlibpath_var, we
18288
# have to relink, otherwise we might link with an installed library
18289
# when we should be linking with a yet-to-be-installed one
18290
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18291
test "$hardcode_minus_L_GCJ" != no; then
18292
# Linking always hardcodes the temporary library directory.
18293
hardcode_action_GCJ=relink
18295
# We can link without hardcoding, and we can hardcode nonexisting dirs.
18296
hardcode_action_GCJ=immediate
18299
# We cannot hardcode anything, or else we can only hardcode existing
18301
hardcode_action_GCJ=unsupported
18303
{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18304
echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18306
if test "$hardcode_action_GCJ" = relink; then
18307
# Fast installation is not supported
18308
enable_fast_install=no
18309
elif test "$shlibpath_overrides_runpath" = yes ||
18310
test "$enable_shared" = no; then
18311
# Fast installation is not necessary
18312
enable_fast_install=needless
18316
# The else clause should only fire when bootstrapping the
18317
# libtool distribution, otherwise you forgot to ship ltmain.sh
18318
# with your package, and you will get complaints that there are
18319
# no rules to generate ltmain.sh.
18320
if test -f "$ltmain"; then
18321
# See if we are running on zsh, and set the options which allow our commands through
18322
# without removal of \ escapes.
18323
if test -n "${ZSH_VERSION+set}" ; then
18324
setopt NO_GLOB_SUBST
18326
# Now quote all the things that may contain metacharacters while being
18327
# careful not to overquote the AC_SUBSTed values. We take copies of the
18328
# variables and quote the copies for generation of the libtool script.
18329
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18331
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18332
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18333
deplibs_check_method reload_flag reload_cmds need_locks \
18334
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18335
lt_cv_sys_global_symbol_to_c_name_address \
18336
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18337
old_postinstall_cmds old_postuninstall_cmds \
18341
lt_prog_compiler_wl_GCJ \
18342
lt_prog_compiler_pic_GCJ \
18343
lt_prog_compiler_static_GCJ \
18344
lt_prog_compiler_no_builtin_flag_GCJ \
18345
export_dynamic_flag_spec_GCJ \
18346
thread_safe_flag_spec_GCJ \
18347
whole_archive_flag_spec_GCJ \
18348
enable_shared_with_static_runtimes_GCJ \
18349
old_archive_cmds_GCJ \
18350
old_archive_from_new_cmds_GCJ \
18351
predep_objects_GCJ \
18352
postdep_objects_GCJ \
18355
compiler_lib_search_path_GCJ \
18357
archive_expsym_cmds_GCJ \
18358
postinstall_cmds_GCJ \
18359
postuninstall_cmds_GCJ \
18360
old_archive_from_expsyms_cmds_GCJ \
18361
allow_undefined_flag_GCJ \
18362
no_undefined_flag_GCJ \
18363
export_symbols_cmds_GCJ \
18364
hardcode_libdir_flag_spec_GCJ \
18365
hardcode_libdir_flag_spec_ld_GCJ \
18366
hardcode_libdir_separator_GCJ \
18367
hardcode_automatic_GCJ \
18369
module_expsym_cmds_GCJ \
18370
lt_cv_prog_compiler_c_o_GCJ \
18371
exclude_expsyms_GCJ \
18372
include_expsyms_GCJ; do
18375
old_archive_cmds_GCJ | \
18376
old_archive_from_new_cmds_GCJ | \
18377
archive_cmds_GCJ | \
18378
archive_expsym_cmds_GCJ | \
18379
module_cmds_GCJ | \
18380
module_expsym_cmds_GCJ | \
18381
old_archive_from_expsyms_cmds_GCJ | \
18382
export_symbols_cmds_GCJ | \
18383
extract_expsyms_cmds | reload_cmds | finish_cmds | \
18384
postinstall_cmds | postuninstall_cmds | \
18385
old_postinstall_cmds | old_postuninstall_cmds | \
18386
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18387
# Double-quote double-evaled strings.
18388
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18391
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18397
*'\$0 --fallback-echo"')
18398
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18404
cat <<__EOF__ >> "$cfgfile"
18405
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18407
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18409
# Shell to use when invoking shell scripts.
18412
# Whether or not to build shared libraries.
18413
build_libtool_libs=$enable_shared
18415
# Whether or not to build static libraries.
18416
build_old_libs=$enable_static
18418
# Whether or not to add -lc for building shared libraries.
18419
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18421
# Whether or not to disallow shared libs when runtime libs are static
18422
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18424
# Whether or not to optimize for fast installation.
18425
fast_install=$enable_fast_install
18428
host_alias=$host_alias
18432
# The build system.
18433
build_alias=$build_alias
18437
# An echo program that does not interpret backslashes.
18442
AR_FLAGS=$lt_AR_FLAGS
18447
# LTCC compiler flags.
18448
LTCFLAGS=$lt_LTCFLAGS
18450
# A language-specific compiler.
18451
CC=$lt_compiler_GCJ
18453
# Is the compiler the GNU C compiler?
18459
# The linker used to build libraries.
18462
# Whether we need hard or soft links.
18465
# A BSD-compatible nm program.
18468
# A symbol stripping program
18471
# Used to examine libraries when file_magic_cmd begins "file"
18472
MAGIC_CMD=$MAGIC_CMD
18474
# Used on cygwin: DLL creation program.
18477
# Used on cygwin: object dumper.
18480
# Used on cygwin: assembler.
18483
# The name of the directory that contains temporary libtool files.
18486
# How to create reloadable object files.
18487
reload_flag=$lt_reload_flag
18488
reload_cmds=$lt_reload_cmds
18490
# How to pass a linker flag through the compiler.
18491
wl=$lt_lt_prog_compiler_wl_GCJ
18493
# Object file suffix (normally "o").
18494
objext="$ac_objext"
18496
# Old archive suffix (normally "a").
18499
# Shared library suffix (normally ".so").
18500
shrext_cmds='$shrext_cmds'
18502
# Executable file suffix (normally "").
18505
# Additional compiler flags for building library objects.
18506
pic_flag=$lt_lt_prog_compiler_pic_GCJ
18509
# What is the maximum length of a command?
18510
max_cmd_len=$lt_cv_sys_max_cmd_len
18512
# Does compiler simultaneously support -c and -o options?
18513
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18515
# Must we lock files when doing compilation?
18516
need_locks=$lt_need_locks
18518
# Do we need the lib prefix for modules?
18519
need_lib_prefix=$need_lib_prefix
18521
# Do we need a version for libraries?
18522
need_version=$need_version
18524
# Whether dlopen is supported.
18525
dlopen_support=$enable_dlopen
18527
# Whether dlopen of programs is supported.
18528
dlopen_self=$enable_dlopen_self
18530
# Whether dlopen of statically linked programs is supported.
18531
dlopen_self_static=$enable_dlopen_self_static
18533
# Compiler flag to prevent dynamic linking.
18534
link_static_flag=$lt_lt_prog_compiler_static_GCJ
18536
# Compiler flag to turn off builtin functions.
18537
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18539
# Compiler flag to allow reflexive dlopens.
18540
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18542
# Compiler flag to generate shared objects directly from archives.
18543
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18545
# Compiler flag to generate thread-safe objects.
18546
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18548
# Library versioning type.
18549
version_type=$version_type
18551
# Format of library name prefix.
18552
libname_spec=$lt_libname_spec
18554
# List of archive names. First name is the real one, the rest are links.
18555
# The last name is the one that the linker finds with -lNAME.
18556
library_names_spec=$lt_library_names_spec
18558
# The coded name of the library, if different from the real name.
18559
soname_spec=$lt_soname_spec
18561
# Commands used to build and install an old-style archive.
18563
old_archive_cmds=$lt_old_archive_cmds_GCJ
18564
old_postinstall_cmds=$lt_old_postinstall_cmds
18565
old_postuninstall_cmds=$lt_old_postuninstall_cmds
18567
# Create an old-style archive from a shared archive.
18568
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18570
# Create a temporary old-style archive to link instead of a shared archive.
18571
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18573
# Commands used to build and install a shared archive.
18574
archive_cmds=$lt_archive_cmds_GCJ
18575
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18576
postinstall_cmds=$lt_postinstall_cmds
18577
postuninstall_cmds=$lt_postuninstall_cmds
18579
# Commands used to build a loadable module (assumed same as above if empty)
18580
module_cmds=$lt_module_cmds_GCJ
18581
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18583
# Commands to strip libraries.
18584
old_striplib=$lt_old_striplib
18585
striplib=$lt_striplib
18587
# Dependencies to place before the objects being linked to create a
18589
predep_objects=$lt_predep_objects_GCJ
18591
# Dependencies to place after the objects being linked to create a
18593
postdep_objects=$lt_postdep_objects_GCJ
18595
# Dependencies to place before the objects being linked to create a
18597
predeps=$lt_predeps_GCJ
18599
# Dependencies to place after the objects being linked to create a
18601
postdeps=$lt_postdeps_GCJ
18603
# The library search path used internally by the compiler when linking
18604
# a shared library.
18605
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18607
# Method to check whether dependent libraries are shared objects.
18608
deplibs_check_method=$lt_deplibs_check_method
18610
# Command to use when deplibs_check_method == file_magic.
18611
file_magic_cmd=$lt_file_magic_cmd
18613
# Flag that allows shared libraries with undefined symbols to be built.
18614
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18616
# Flag that forces no undefined symbols.
18617
no_undefined_flag=$lt_no_undefined_flag_GCJ
18619
# Commands used to finish a libtool library installation in a directory.
18620
finish_cmds=$lt_finish_cmds
18622
# Same as above, but a single script fragment to be evaled but not shown.
18623
finish_eval=$lt_finish_eval
18625
# Take the output of nm and produce a listing of raw symbols and C names.
18626
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18628
# Transform the output of nm in a proper C declaration
18629
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18631
# Transform the output of nm in a C name address pair
18632
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18634
# This is the shared library runtime path variable.
18635
runpath_var=$runpath_var
18637
# This is the shared library path variable.
18638
shlibpath_var=$shlibpath_var
18640
# Is shlibpath searched before the hard-coded library search path?
18641
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18643
# How to hardcode a shared library path into an executable.
18644
hardcode_action=$hardcode_action_GCJ
18646
# Whether we should hardcode library paths into libraries.
18647
hardcode_into_libs=$hardcode_into_libs
18649
# Flag to hardcode \$libdir into a binary during linking.
18650
# This must work even if \$libdir does not exist.
18651
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18653
# If ld is used when linking, flag to hardcode \$libdir into
18654
# a binary during linking. This must work even if \$libdir does
18656
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18658
# Whether we need a single -rpath flag with a separated argument.
18659
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18661
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18662
# resulting binary.
18663
hardcode_direct=$hardcode_direct_GCJ
18665
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18666
# resulting binary.
18667
hardcode_minus_L=$hardcode_minus_L_GCJ
18669
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18670
# the resulting binary.
18671
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18673
# Set to yes if building a shared library automatically hardcodes DIR into the library
18674
# and all subsequent libraries and executables linked against it.
18675
hardcode_automatic=$hardcode_automatic_GCJ
18677
# Variables whose values should be saved in libtool wrapper scripts and
18678
# restored at relink time.
18679
variables_saved_for_relink="$variables_saved_for_relink"
18681
# Whether libtool must link a program against all its dependency libraries.
18682
link_all_deplibs=$link_all_deplibs_GCJ
18684
# Compile-time system search path for libraries
18685
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18687
# Run-time system search path for libraries
18688
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18690
# Fix the shell variable \$srcfile for the compiler.
18691
fix_srcfile_path="$fix_srcfile_path_GCJ"
18693
# Set to yes if exported symbols are required.
18694
always_export_symbols=$always_export_symbols_GCJ
18696
# The commands to list exported symbols.
18697
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18699
# The commands to extract the exported symbol list from a shared archive.
18700
extract_expsyms_cmds=$lt_extract_expsyms_cmds
18702
# Symbols that should not be listed in the preloaded symbols.
18703
exclude_expsyms=$lt_exclude_expsyms_GCJ
18705
# Symbols that must always be exported.
18706
include_expsyms=$lt_include_expsyms_GCJ
18708
# ### END LIBTOOL TAG CONFIG: $tagname
18714
# If there is no Makefile yet, we rely on a make rule to execute
18715
# `config.status --recheck' to rerun these tests and create the
18716
# libtool script then.
18717
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18718
if test -f "$ltmain_in"; then
18719
test -f Makefile && make "$ltmain"
18725
ac_cpp='$CPP $CPPFLAGS'
18726
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18727
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18728
ac_compiler_gnu=$ac_cv_c_compiler_gnu
18740
# Source file extension for RC test sources.
18743
# Object file extension for compiled RC test sources.
18747
# Code to be used in simple compile tests
18748
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18750
# Code to be used in simple link tests
18751
lt_simple_link_test_code="$lt_simple_compile_test_code"
18753
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18755
# If no C compiler was specified, use CC.
18758
# If no C compiler flags were specified, use CFLAGS.
18759
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18761
# Allow CC to be a program name with arguments.
18765
# save warnings/boilerplate of simple test code
18766
ac_outfile=conftest.$ac_objext
18767
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18768
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18769
_lt_compiler_boilerplate=`cat conftest.err`
18772
ac_outfile=conftest.$ac_objext
18773
printf "$lt_simple_link_test_code" >conftest.$ac_ext
18774
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18775
_lt_linker_boilerplate=`cat conftest.err`
18779
# Allow CC to be a program name with arguments.
18784
for cc_temp in $compiler""; do
18786
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18787
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18792
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18794
lt_cv_prog_compiler_c_o_RC=yes
18796
# The else clause should only fire when bootstrapping the
18797
# libtool distribution, otherwise you forgot to ship ltmain.sh
18798
# with your package, and you will get complaints that there are
18799
# no rules to generate ltmain.sh.
18800
if test -f "$ltmain"; then
18801
# See if we are running on zsh, and set the options which allow our commands through
18802
# without removal of \ escapes.
18803
if test -n "${ZSH_VERSION+set}" ; then
18804
setopt NO_GLOB_SUBST
18806
# Now quote all the things that may contain metacharacters while being
18807
# careful not to overquote the AC_SUBSTed values. We take copies of the
18808
# variables and quote the copies for generation of the libtool script.
18809
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18811
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18812
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18813
deplibs_check_method reload_flag reload_cmds need_locks \
18814
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18815
lt_cv_sys_global_symbol_to_c_name_address \
18816
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18817
old_postinstall_cmds old_postuninstall_cmds \
18821
lt_prog_compiler_wl_RC \
18822
lt_prog_compiler_pic_RC \
18823
lt_prog_compiler_static_RC \
18824
lt_prog_compiler_no_builtin_flag_RC \
18825
export_dynamic_flag_spec_RC \
18826
thread_safe_flag_spec_RC \
18827
whole_archive_flag_spec_RC \
18828
enable_shared_with_static_runtimes_RC \
18829
old_archive_cmds_RC \
18830
old_archive_from_new_cmds_RC \
18831
predep_objects_RC \
18832
postdep_objects_RC \
18835
compiler_lib_search_path_RC \
18837
archive_expsym_cmds_RC \
18838
postinstall_cmds_RC \
18839
postuninstall_cmds_RC \
18840
old_archive_from_expsyms_cmds_RC \
18841
allow_undefined_flag_RC \
18842
no_undefined_flag_RC \
18843
export_symbols_cmds_RC \
18844
hardcode_libdir_flag_spec_RC \
18845
hardcode_libdir_flag_spec_ld_RC \
18846
hardcode_libdir_separator_RC \
18847
hardcode_automatic_RC \
18849
module_expsym_cmds_RC \
18850
lt_cv_prog_compiler_c_o_RC \
18851
exclude_expsyms_RC \
18852
include_expsyms_RC; do
18855
old_archive_cmds_RC | \
18856
old_archive_from_new_cmds_RC | \
18857
archive_cmds_RC | \
18858
archive_expsym_cmds_RC | \
18860
module_expsym_cmds_RC | \
18861
old_archive_from_expsyms_cmds_RC | \
18862
export_symbols_cmds_RC | \
18863
extract_expsyms_cmds | reload_cmds | finish_cmds | \
18864
postinstall_cmds | postuninstall_cmds | \
18865
old_postinstall_cmds | old_postuninstall_cmds | \
18866
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18867
# Double-quote double-evaled strings.
18868
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18871
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18877
*'\$0 --fallback-echo"')
18878
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18884
cat <<__EOF__ >> "$cfgfile"
18885
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18887
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18889
# Shell to use when invoking shell scripts.
18892
# Whether or not to build shared libraries.
18893
build_libtool_libs=$enable_shared
18895
# Whether or not to build static libraries.
18896
build_old_libs=$enable_static
18898
# Whether or not to add -lc for building shared libraries.
18899
build_libtool_need_lc=$archive_cmds_need_lc_RC
18901
# Whether or not to disallow shared libs when runtime libs are static
18902
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18904
# Whether or not to optimize for fast installation.
18905
fast_install=$enable_fast_install
18908
host_alias=$host_alias
18912
# The build system.
18913
build_alias=$build_alias
18917
# An echo program that does not interpret backslashes.
18922
AR_FLAGS=$lt_AR_FLAGS
18927
# LTCC compiler flags.
18928
LTCFLAGS=$lt_LTCFLAGS
18930
# A language-specific compiler.
18933
# Is the compiler the GNU C compiler?
18939
# The linker used to build libraries.
18942
# Whether we need hard or soft links.
18945
# A BSD-compatible nm program.
18948
# A symbol stripping program
18951
# Used to examine libraries when file_magic_cmd begins "file"
18952
MAGIC_CMD=$MAGIC_CMD
18954
# Used on cygwin: DLL creation program.
18957
# Used on cygwin: object dumper.
18960
# Used on cygwin: assembler.
18963
# The name of the directory that contains temporary libtool files.
18966
# How to create reloadable object files.
18967
reload_flag=$lt_reload_flag
18968
reload_cmds=$lt_reload_cmds
18970
# How to pass a linker flag through the compiler.
18971
wl=$lt_lt_prog_compiler_wl_RC
18973
# Object file suffix (normally "o").
18974
objext="$ac_objext"
18976
# Old archive suffix (normally "a").
18979
# Shared library suffix (normally ".so").
18980
shrext_cmds='$shrext_cmds'
18982
# Executable file suffix (normally "").
18985
# Additional compiler flags for building library objects.
18986
pic_flag=$lt_lt_prog_compiler_pic_RC
18989
# What is the maximum length of a command?
18990
max_cmd_len=$lt_cv_sys_max_cmd_len
18992
# Does compiler simultaneously support -c and -o options?
18993
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18995
# Must we lock files when doing compilation?
18996
need_locks=$lt_need_locks
18998
# Do we need the lib prefix for modules?
18999
need_lib_prefix=$need_lib_prefix
19001
# Do we need a version for libraries?
19002
need_version=$need_version
19004
# Whether dlopen is supported.
19005
dlopen_support=$enable_dlopen
19007
# Whether dlopen of programs is supported.
19008
dlopen_self=$enable_dlopen_self
19010
# Whether dlopen of statically linked programs is supported.
19011
dlopen_self_static=$enable_dlopen_self_static
19013
# Compiler flag to prevent dynamic linking.
19014
link_static_flag=$lt_lt_prog_compiler_static_RC
19016
# Compiler flag to turn off builtin functions.
19017
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19019
# Compiler flag to allow reflexive dlopens.
19020
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19022
# Compiler flag to generate shared objects directly from archives.
19023
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19025
# Compiler flag to generate thread-safe objects.
19026
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19028
# Library versioning type.
19029
version_type=$version_type
19031
# Format of library name prefix.
19032
libname_spec=$lt_libname_spec
19034
# List of archive names. First name is the real one, the rest are links.
19035
# The last name is the one that the linker finds with -lNAME.
19036
library_names_spec=$lt_library_names_spec
19038
# The coded name of the library, if different from the real name.
19039
soname_spec=$lt_soname_spec
19041
# Commands used to build and install an old-style archive.
19043
old_archive_cmds=$lt_old_archive_cmds_RC
19044
old_postinstall_cmds=$lt_old_postinstall_cmds
19045
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19047
# Create an old-style archive from a shared archive.
19048
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19050
# Create a temporary old-style archive to link instead of a shared archive.
19051
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19053
# Commands used to build and install a shared archive.
19054
archive_cmds=$lt_archive_cmds_RC
19055
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19056
postinstall_cmds=$lt_postinstall_cmds
19057
postuninstall_cmds=$lt_postuninstall_cmds
19059
# Commands used to build a loadable module (assumed same as above if empty)
19060
module_cmds=$lt_module_cmds_RC
19061
module_expsym_cmds=$lt_module_expsym_cmds_RC
19063
# Commands to strip libraries.
19064
old_striplib=$lt_old_striplib
19065
striplib=$lt_striplib
19067
# Dependencies to place before the objects being linked to create a
19069
predep_objects=$lt_predep_objects_RC
19071
# Dependencies to place after the objects being linked to create a
19073
postdep_objects=$lt_postdep_objects_RC
19075
# Dependencies to place before the objects being linked to create a
19077
predeps=$lt_predeps_RC
19079
# Dependencies to place after the objects being linked to create a
19081
postdeps=$lt_postdeps_RC
19083
# The library search path used internally by the compiler when linking
19084
# a shared library.
19085
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19087
# Method to check whether dependent libraries are shared objects.
19088
deplibs_check_method=$lt_deplibs_check_method
19090
# Command to use when deplibs_check_method == file_magic.
19091
file_magic_cmd=$lt_file_magic_cmd
19093
# Flag that allows shared libraries with undefined symbols to be built.
19094
allow_undefined_flag=$lt_allow_undefined_flag_RC
19096
# Flag that forces no undefined symbols.
19097
no_undefined_flag=$lt_no_undefined_flag_RC
19099
# Commands used to finish a libtool library installation in a directory.
19100
finish_cmds=$lt_finish_cmds
19102
# Same as above, but a single script fragment to be evaled but not shown.
19103
finish_eval=$lt_finish_eval
19105
# Take the output of nm and produce a listing of raw symbols and C names.
19106
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19108
# Transform the output of nm in a proper C declaration
19109
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19111
# Transform the output of nm in a C name address pair
19112
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19114
# This is the shared library runtime path variable.
19115
runpath_var=$runpath_var
19117
# This is the shared library path variable.
19118
shlibpath_var=$shlibpath_var
19120
# Is shlibpath searched before the hard-coded library search path?
19121
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19123
# How to hardcode a shared library path into an executable.
19124
hardcode_action=$hardcode_action_RC
19126
# Whether we should hardcode library paths into libraries.
19127
hardcode_into_libs=$hardcode_into_libs
19129
# Flag to hardcode \$libdir into a binary during linking.
19130
# This must work even if \$libdir does not exist.
19131
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19133
# If ld is used when linking, flag to hardcode \$libdir into
19134
# a binary during linking. This must work even if \$libdir does
19136
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19138
# Whether we need a single -rpath flag with a separated argument.
19139
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19141
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19142
# resulting binary.
19143
hardcode_direct=$hardcode_direct_RC
19145
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19146
# resulting binary.
19147
hardcode_minus_L=$hardcode_minus_L_RC
19149
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19150
# the resulting binary.
19151
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19153
# Set to yes if building a shared library automatically hardcodes DIR into the library
19154
# and all subsequent libraries and executables linked against it.
19155
hardcode_automatic=$hardcode_automatic_RC
19157
# Variables whose values should be saved in libtool wrapper scripts and
19158
# restored at relink time.
19159
variables_saved_for_relink="$variables_saved_for_relink"
19161
# Whether libtool must link a program against all its dependency libraries.
19162
link_all_deplibs=$link_all_deplibs_RC
19164
# Compile-time system search path for libraries
19165
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19167
# Run-time system search path for libraries
19168
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19170
# Fix the shell variable \$srcfile for the compiler.
19171
fix_srcfile_path="$fix_srcfile_path_RC"
19173
# Set to yes if exported symbols are required.
19174
always_export_symbols=$always_export_symbols_RC
19176
# The commands to list exported symbols.
19177
export_symbols_cmds=$lt_export_symbols_cmds_RC
19179
# The commands to extract the exported symbol list from a shared archive.
19180
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19182
# Symbols that should not be listed in the preloaded symbols.
19183
exclude_expsyms=$lt_exclude_expsyms_RC
19185
# Symbols that must always be exported.
19186
include_expsyms=$lt_include_expsyms_RC
19188
# ### END LIBTOOL TAG CONFIG: $tagname
19194
# If there is no Makefile yet, we rely on a make rule to execute
19195
# `config.status --recheck' to rerun these tests and create the
19196
# libtool script then.
19197
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19198
if test -f "$ltmain_in"; then
19199
test -f Makefile && make "$ltmain"
19205
ac_cpp='$CPP $CPPFLAGS'
19206
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19207
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19208
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19215
{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19216
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19217
{ (exit 1); exit 1; }; }
19221
# Append the new tag name to the list of available tags.
19222
if test -n "$tagname" ; then
19223
available_tags="$available_tags $tagname"
19229
# Now substitute the updated list of available tags.
19230
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19231
mv "${ofile}T" "$ofile"
19235
{ { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19236
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19237
{ (exit 1); exit 1; }; }
19243
# This can be used to rebuild libtool when needed
19244
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19246
# Always use our own libtool.
19247
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19249
# Prevent multiple expansion
19270
if test "x$CC" != xcc; then
19271
{ echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
19272
echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
19274
{ echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
19275
echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
19277
set dummy $CC; ac_cc=`echo $2 |
19278
sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
19279
if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
19280
echo $ECHO_N "(cached) $ECHO_C" >&6
19282
cat >conftest.$ac_ext <<_ACEOF
19285
cat confdefs.h >>conftest.$ac_ext
19286
cat >>conftest.$ac_ext <<_ACEOF
19287
/* end confdefs.h. */
19297
# Make sure it works both with $CC and with simple cc.
19298
# We do the test twice because some compilers refuse to overwrite an
19299
# existing .o file with -o, though they will create one.
19300
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
19302
if { (case "(($ac_try" in
19303
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19304
*) ac_try_echo=$ac_try;;
19306
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19307
(eval "$ac_try") 2>&5
19309
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19310
(exit $ac_status); } &&
19311
test -f conftest2.$ac_objext && { (case "(($ac_try" in
19312
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19313
*) ac_try_echo=$ac_try;;
19315
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19316
(eval "$ac_try") 2>&5
19318
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19319
(exit $ac_status); };
19321
eval ac_cv_prog_cc_${ac_cc}_c_o=yes
19322
if test "x$CC" != xcc; then
19323
# Test first that cc exists at all.
19324
if { ac_try='cc -c conftest.$ac_ext >&5'
19325
{ (case "(($ac_try" in
19326
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19327
*) ac_try_echo=$ac_try;;
19329
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19330
(eval "$ac_try") 2>&5
19332
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19333
(exit $ac_status); }; }; then
19334
ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
19336
if { (case "(($ac_try" in
19337
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19338
*) ac_try_echo=$ac_try;;
19340
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19341
(eval "$ac_try") 2>&5
19343
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19344
(exit $ac_status); } &&
19345
test -f conftest2.$ac_objext && { (case "(($ac_try" in
19346
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19347
*) ac_try_echo=$ac_try;;
19349
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19350
(eval "$ac_try") 2>&5
19352
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19353
(exit $ac_status); };
19358
# cc exists but doesn't like -o.
19359
eval ac_cv_prog_cc_${ac_cc}_c_o=no
19364
eval ac_cv_prog_cc_${ac_cc}_c_o=no
19366
rm -f core conftest*
19369
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
19370
{ echo "$as_me:$LINENO: result: yes" >&5
19371
echo "${ECHO_T}yes" >&6; }
19373
{ echo "$as_me:$LINENO: result: no" >&5
19374
echo "${ECHO_T}no" >&6; }
19376
cat >>confdefs.h <<\_ACEOF
19377
#define NO_MINUS_C_MINUS_O 1
19382
# FIXME: we rely on the cache variable name because
19383
# there is no other way.
19385
ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
19386
if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
19387
# Losing compiler, so override with the script.
19388
# FIXME: It is wrong to rewrite CC.
19389
# But if we don't then we get into trouble of one sort or another.
19390
# A longer-term fix would be to have automake use am__CC in this case,
19391
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
19392
CC="$am_aux_dir/compile $CC"
19397
# Checks for header files.
19405
for ac_header in errno.h stdio.h stdlib.h string.h syslog.h unistd.h usb.h
19407
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19408
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19409
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
19410
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19411
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19412
echo $ECHO_N "(cached) $ECHO_C" >&6
19414
ac_res=`eval echo '${'$as_ac_Header'}'`
19415
{ echo "$as_me:$LINENO: result: $ac_res" >&5
19416
echo "${ECHO_T}$ac_res" >&6; }
19418
# Is the header compilable?
19419
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
19420
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19421
cat >conftest.$ac_ext <<_ACEOF
19424
cat confdefs.h >>conftest.$ac_ext
19425
cat >>conftest.$ac_ext <<_ACEOF
19426
/* end confdefs.h. */
19427
$ac_includes_default
19428
#include <$ac_header>
19430
rm -f conftest.$ac_objext
19431
if { (ac_try="$ac_compile"
19432
case "(($ac_try" in
19433
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19434
*) ac_try_echo=$ac_try;;
19436
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19437
(eval "$ac_compile") 2>conftest.er1
19439
grep -v '^ *+' conftest.er1 >conftest.err
19441
cat conftest.err >&5
19442
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19443
(exit $ac_status); } && {
19444
test -z "$ac_c_werror_flag" ||
19445
test ! -s conftest.err
19446
} && test -s conftest.$ac_objext; then
19447
ac_header_compiler=yes
19449
echo "$as_me: failed program was:" >&5
19450
sed 's/^/| /' conftest.$ac_ext >&5
19452
ac_header_compiler=no
19455
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19456
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19457
echo "${ECHO_T}$ac_header_compiler" >&6; }
19459
# Is the header present?
19460
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
19461
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19462
cat >conftest.$ac_ext <<_ACEOF
19465
cat confdefs.h >>conftest.$ac_ext
19466
cat >>conftest.$ac_ext <<_ACEOF
19467
/* end confdefs.h. */
19468
#include <$ac_header>
19470
if { (ac_try="$ac_cpp conftest.$ac_ext"
19471
case "(($ac_try" in
19472
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19473
*) ac_try_echo=$ac_try;;
19475
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19476
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19478
grep -v '^ *+' conftest.er1 >conftest.err
19480
cat conftest.err >&5
19481
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19482
(exit $ac_status); } >/dev/null && {
19483
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19484
test ! -s conftest.err
19486
ac_header_preproc=yes
19488
echo "$as_me: failed program was:" >&5
19489
sed 's/^/| /' conftest.$ac_ext >&5
19491
ac_header_preproc=no
19494
rm -f conftest.err conftest.$ac_ext
19495
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19496
echo "${ECHO_T}$ac_header_preproc" >&6; }
19498
# So? What about this header?
19499
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19501
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19502
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19503
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19504
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19505
ac_header_preproc=yes
19508
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19509
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19510
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19511
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19512
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19513
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19514
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19515
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19516
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19517
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19518
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19519
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19521
## -------------------------------------------------- ##
19522
## Report this to http://thinkfinger.sourceforge.net/ ##
19523
## -------------------------------------------------- ##
19525
) | sed "s/^/$as_me: WARNING: /" >&2
19528
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
19529
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19530
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19531
echo $ECHO_N "(cached) $ECHO_C" >&6
19533
eval "$as_ac_Header=\$ac_header_preproc"
19535
ac_res=`eval echo '${'$as_ac_Header'}'`
19536
{ echo "$as_me:$LINENO: result: $ac_res" >&5
19537
echo "${ECHO_T}$ac_res" >&6; }
19540
if test `eval echo '${'$as_ac_Header'}'` = yes; then
19541
cat >>confdefs.h <<_ACEOF
19542
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19550
# AC_ARG_ENABLE USB_DEBUG
19551
{ echo "$as_me:$LINENO: checking whether to build with USB hooks for debugging" >&5
19552
echo $ECHO_N "checking whether to build with USB hooks for debugging... $ECHO_C" >&6; }
19553
# Check whether --enable-usb-debug was given.
19554
if test "${enable_usb_debug+set}" = set; then
19555
enableval=$enable_usb_debug; enable_usb_debug=$enableval
19557
enable_usb_debug=no
19560
{ echo "$as_me:$LINENO: result: $enable_usb_debug" >&5
19561
echo "${ECHO_T}$enable_usb_debug" >&6; }
19563
if test "x$enable_usb_debug" = "xyes"; then
19565
cat >>confdefs.h <<_ACEOF
19566
#define USB_DEBUG 1
19571
# AC_ARG_ENABLE PAM
19572
{ echo "$as_me:$LINENO: checking whether to build the pluggable authentication module (PAM)" >&5
19573
echo $ECHO_N "checking whether to build the pluggable authentication module (PAM)... $ECHO_C" >&6; }
19574
# Check whether --enable-pam was given.
19575
if test "${enable_pam+set}" = set; then
19576
enableval=$enable_pam; enable_pam=$enableval
19581
{ echo "$as_me:$LINENO: result: $enable_pam" >&5
19582
echo "${ECHO_T}$enable_pam" >&6; }
19584
if test "x$enable_pam" != "xno"; then
19587
for ac_header in security/pam_appl.h security/pam_modules.h
19589
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19590
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19591
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
19592
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19593
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19594
echo $ECHO_N "(cached) $ECHO_C" >&6
19596
ac_res=`eval echo '${'$as_ac_Header'}'`
19597
{ echo "$as_me:$LINENO: result: $ac_res" >&5
19598
echo "${ECHO_T}$ac_res" >&6; }
19600
# Is the header compilable?
19601
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
19602
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19603
cat >conftest.$ac_ext <<_ACEOF
19606
cat confdefs.h >>conftest.$ac_ext
19607
cat >>conftest.$ac_ext <<_ACEOF
19608
/* end confdefs.h. */
19609
$ac_includes_default
19610
#include <$ac_header>
19612
rm -f conftest.$ac_objext
19613
if { (ac_try="$ac_compile"
19614
case "(($ac_try" in
19615
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19616
*) ac_try_echo=$ac_try;;
19618
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19619
(eval "$ac_compile") 2>conftest.er1
19621
grep -v '^ *+' conftest.er1 >conftest.err
19623
cat conftest.err >&5
19624
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19625
(exit $ac_status); } && {
19626
test -z "$ac_c_werror_flag" ||
19627
test ! -s conftest.err
19628
} && test -s conftest.$ac_objext; then
19629
ac_header_compiler=yes
19631
echo "$as_me: failed program was:" >&5
19632
sed 's/^/| /' conftest.$ac_ext >&5
19634
ac_header_compiler=no
19637
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19638
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19639
echo "${ECHO_T}$ac_header_compiler" >&6; }
19641
# Is the header present?
19642
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
19643
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19644
cat >conftest.$ac_ext <<_ACEOF
19647
cat confdefs.h >>conftest.$ac_ext
19648
cat >>conftest.$ac_ext <<_ACEOF
19649
/* end confdefs.h. */
19650
#include <$ac_header>
19652
if { (ac_try="$ac_cpp conftest.$ac_ext"
19653
case "(($ac_try" in
19654
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19655
*) ac_try_echo=$ac_try;;
19657
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19658
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19660
grep -v '^ *+' conftest.er1 >conftest.err
19662
cat conftest.err >&5
19663
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19664
(exit $ac_status); } >/dev/null && {
19665
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19666
test ! -s conftest.err
19668
ac_header_preproc=yes
19670
echo "$as_me: failed program was:" >&5
19671
sed 's/^/| /' conftest.$ac_ext >&5
19673
ac_header_preproc=no
19676
rm -f conftest.err conftest.$ac_ext
19677
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19678
echo "${ECHO_T}$ac_header_preproc" >&6; }
19680
# So? What about this header?
19681
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19683
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19684
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19685
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19686
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19687
ac_header_preproc=yes
19690
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19691
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19692
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19693
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19694
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19695
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19696
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19697
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19698
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19699
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19700
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19701
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19703
## -------------------------------------------------- ##
19704
## Report this to http://thinkfinger.sourceforge.net/ ##
19705
## -------------------------------------------------- ##
19707
) | sed "s/^/$as_me: WARNING: /" >&2
19710
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
19711
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19712
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19713
echo $ECHO_N "(cached) $ECHO_C" >&6
19715
eval "$as_ac_Header=\$ac_header_preproc"
19717
ac_res=`eval echo '${'$as_ac_Header'}'`
19718
{ echo "$as_me:$LINENO: result: $ac_res" >&5
19719
echo "${ECHO_T}$ac_res" >&6; }
19722
if test `eval echo '${'$as_ac_Header'}'` = yes; then
19723
cat >>confdefs.h <<_ACEOF
19724
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19728
{ { echo "$as_me:$LINENO: error: PAM header files not found" >&5
19729
echo "$as_me: error: PAM header files not found" >&2;}
19730
{ (exit 1); exit 1; }; }
19735
{ echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
19736
echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6; }
19737
if test "${ac_cv_lib_pam_pam_start+set}" = set; then
19738
echo $ECHO_N "(cached) $ECHO_C" >&6
19740
ac_check_lib_save_LIBS=$LIBS
19742
cat >conftest.$ac_ext <<_ACEOF
19745
cat confdefs.h >>conftest.$ac_ext
19746
cat >>conftest.$ac_ext <<_ACEOF
19747
/* end confdefs.h. */
19749
/* Override any GCC internal prototype to avoid an error.
19750
Use char because int might match the return type of a GCC
19751
builtin and then its argument prototype would still apply. */
19759
return pam_start ();
19764
rm -f conftest.$ac_objext conftest$ac_exeext
19765
if { (ac_try="$ac_link"
19766
case "(($ac_try" in
19767
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19768
*) ac_try_echo=$ac_try;;
19770
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19771
(eval "$ac_link") 2>conftest.er1
19773
grep -v '^ *+' conftest.er1 >conftest.err
19775
cat conftest.err >&5
19776
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19777
(exit $ac_status); } && {
19778
test -z "$ac_c_werror_flag" ||
19779
test ! -s conftest.err
19780
} && test -s conftest$ac_exeext &&
19781
$as_test_x conftest$ac_exeext; then
19782
ac_cv_lib_pam_pam_start=yes
19784
echo "$as_me: failed program was:" >&5
19785
sed 's/^/| /' conftest.$ac_ext >&5
19787
ac_cv_lib_pam_pam_start=no
19790
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19791
conftest$ac_exeext conftest.$ac_ext
19792
LIBS=$ac_check_lib_save_LIBS
19794
{ echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
19795
echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6; }
19796
if test $ac_cv_lib_pam_pam_start = yes; then
19799
{ { echo "$as_me:$LINENO: error: libpam missing" >&5
19800
echo "$as_me: error: libpam missing" >&2;}
19801
{ (exit 1); exit 1; }; }
19805
cat >>confdefs.h <<\_ACEOF
19806
#define BUILD_PAM 1
19810
{ echo "$as_me:$LINENO: checking for pam_prompt in -lpam" >&5
19811
echo $ECHO_N "checking for pam_prompt in -lpam... $ECHO_C" >&6; }
19812
if test "${ac_cv_lib_pam_pam_prompt+set}" = set; then
19813
echo $ECHO_N "(cached) $ECHO_C" >&6
19815
ac_check_lib_save_LIBS=$LIBS
19817
cat >conftest.$ac_ext <<_ACEOF
19820
cat confdefs.h >>conftest.$ac_ext
19821
cat >>conftest.$ac_ext <<_ACEOF
19822
/* end confdefs.h. */
19824
/* Override any GCC internal prototype to avoid an error.
19825
Use char because int might match the return type of a GCC
19826
builtin and then its argument prototype would still apply. */
19830
char pam_prompt ();
19834
return pam_prompt ();
19839
rm -f conftest.$ac_objext conftest$ac_exeext
19840
if { (ac_try="$ac_link"
19841
case "(($ac_try" in
19842
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19843
*) ac_try_echo=$ac_try;;
19845
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19846
(eval "$ac_link") 2>conftest.er1
19848
grep -v '^ *+' conftest.er1 >conftest.err
19850
cat conftest.err >&5
19851
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19852
(exit $ac_status); } && {
19853
test -z "$ac_c_werror_flag" ||
19854
test ! -s conftest.err
19855
} && test -s conftest$ac_exeext &&
19856
$as_test_x conftest$ac_exeext; then
19857
ac_cv_lib_pam_pam_prompt=yes
19859
echo "$as_me: failed program was:" >&5
19860
sed 's/^/| /' conftest.$ac_ext >&5
19862
ac_cv_lib_pam_pam_prompt=no
19865
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19866
conftest$ac_exeext conftest.$ac_ext
19867
LIBS=$ac_check_lib_save_LIBS
19869
{ echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_prompt" >&5
19870
echo "${ECHO_T}$ac_cv_lib_pam_pam_prompt" >&6; }
19871
if test $ac_cv_lib_pam_pam_prompt = yes; then
19872
cat >>confdefs.h <<_ACEOF
19873
#define HAVE_LIBPAM 1
19881
cat >>confdefs.h <<\_ACEOF
19882
#define HAVE_OLD_PAM 1
19888
# Check for Linux input and uinput headers
19889
if test "${ac_cv_header_linux_input_h+set}" = set; then
19890
{ echo "$as_me:$LINENO: checking for linux/input.h" >&5
19891
echo $ECHO_N "checking for linux/input.h... $ECHO_C" >&6; }
19892
if test "${ac_cv_header_linux_input_h+set}" = set; then
19893
echo $ECHO_N "(cached) $ECHO_C" >&6
19895
{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_input_h" >&5
19896
echo "${ECHO_T}$ac_cv_header_linux_input_h" >&6; }
19898
# Is the header compilable?
19899
{ echo "$as_me:$LINENO: checking linux/input.h usability" >&5
19900
echo $ECHO_N "checking linux/input.h usability... $ECHO_C" >&6; }
19901
cat >conftest.$ac_ext <<_ACEOF
19904
cat confdefs.h >>conftest.$ac_ext
19905
cat >>conftest.$ac_ext <<_ACEOF
19906
/* end confdefs.h. */
19907
$ac_includes_default
19908
#include <linux/input.h>
19910
rm -f conftest.$ac_objext
19911
if { (ac_try="$ac_compile"
19912
case "(($ac_try" in
19913
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19914
*) ac_try_echo=$ac_try;;
19916
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19917
(eval "$ac_compile") 2>conftest.er1
19919
grep -v '^ *+' conftest.er1 >conftest.err
19921
cat conftest.err >&5
19922
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19923
(exit $ac_status); } && {
19924
test -z "$ac_c_werror_flag" ||
19925
test ! -s conftest.err
19926
} && test -s conftest.$ac_objext; then
19927
ac_header_compiler=yes
19929
echo "$as_me: failed program was:" >&5
19930
sed 's/^/| /' conftest.$ac_ext >&5
19932
ac_header_compiler=no
19935
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19936
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19937
echo "${ECHO_T}$ac_header_compiler" >&6; }
19939
# Is the header present?
19940
{ echo "$as_me:$LINENO: checking linux/input.h presence" >&5
19941
echo $ECHO_N "checking linux/input.h presence... $ECHO_C" >&6; }
19942
cat >conftest.$ac_ext <<_ACEOF
19945
cat confdefs.h >>conftest.$ac_ext
19946
cat >>conftest.$ac_ext <<_ACEOF
19947
/* end confdefs.h. */
19948
#include <linux/input.h>
19950
if { (ac_try="$ac_cpp conftest.$ac_ext"
19951
case "(($ac_try" in
19952
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19953
*) ac_try_echo=$ac_try;;
19955
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19956
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19958
grep -v '^ *+' conftest.er1 >conftest.err
19960
cat conftest.err >&5
19961
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19962
(exit $ac_status); } >/dev/null && {
19963
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19964
test ! -s conftest.err
19966
ac_header_preproc=yes
19968
echo "$as_me: failed program was:" >&5
19969
sed 's/^/| /' conftest.$ac_ext >&5
19971
ac_header_preproc=no
19974
rm -f conftest.err conftest.$ac_ext
19975
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19976
echo "${ECHO_T}$ac_header_preproc" >&6; }
19978
# So? What about this header?
19979
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19981
{ echo "$as_me:$LINENO: WARNING: linux/input.h: accepted by the compiler, rejected by the preprocessor!" >&5
19982
echo "$as_me: WARNING: linux/input.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19983
{ echo "$as_me:$LINENO: WARNING: linux/input.h: proceeding with the compiler's result" >&5
19984
echo "$as_me: WARNING: linux/input.h: proceeding with the compiler's result" >&2;}
19985
ac_header_preproc=yes
19988
{ echo "$as_me:$LINENO: WARNING: linux/input.h: present but cannot be compiled" >&5
19989
echo "$as_me: WARNING: linux/input.h: present but cannot be compiled" >&2;}
19990
{ echo "$as_me:$LINENO: WARNING: linux/input.h: check for missing prerequisite headers?" >&5
19991
echo "$as_me: WARNING: linux/input.h: check for missing prerequisite headers?" >&2;}
19992
{ echo "$as_me:$LINENO: WARNING: linux/input.h: see the Autoconf documentation" >&5
19993
echo "$as_me: WARNING: linux/input.h: see the Autoconf documentation" >&2;}
19994
{ echo "$as_me:$LINENO: WARNING: linux/input.h: section \"Present But Cannot Be Compiled\"" >&5
19995
echo "$as_me: WARNING: linux/input.h: section \"Present But Cannot Be Compiled\"" >&2;}
19996
{ echo "$as_me:$LINENO: WARNING: linux/input.h: proceeding with the preprocessor's result" >&5
19997
echo "$as_me: WARNING: linux/input.h: proceeding with the preprocessor's result" >&2;}
19998
{ echo "$as_me:$LINENO: WARNING: linux/input.h: in the future, the compiler will take precedence" >&5
19999
echo "$as_me: WARNING: linux/input.h: in the future, the compiler will take precedence" >&2;}
20001
## -------------------------------------------------- ##
20002
## Report this to http://thinkfinger.sourceforge.net/ ##
20003
## -------------------------------------------------- ##
20005
) | sed "s/^/$as_me: WARNING: /" >&2
20008
{ echo "$as_me:$LINENO: checking for linux/input.h" >&5
20009
echo $ECHO_N "checking for linux/input.h... $ECHO_C" >&6; }
20010
if test "${ac_cv_header_linux_input_h+set}" = set; then
20011
echo $ECHO_N "(cached) $ECHO_C" >&6
20013
ac_cv_header_linux_input_h=$ac_header_preproc
20015
{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_input_h" >&5
20016
echo "${ECHO_T}$ac_cv_header_linux_input_h" >&6; }
20019
if test $ac_cv_header_linux_input_h = yes; then
20024
if test "$HAVE_LINUX_INPUT" = "1"; then
20025
{ echo "$as_me:$LINENO: checking for linux/uinput.h" >&5
20026
echo $ECHO_N "checking for linux/uinput.h... $ECHO_C" >&6; }
20027
if test "${ac_cv_header_linux_uinput_h+set}" = set; then
20028
echo $ECHO_N "(cached) $ECHO_C" >&6
20030
cat >conftest.$ac_ext <<_ACEOF
20033
cat confdefs.h >>conftest.$ac_ext
20034
cat >>conftest.$ac_ext <<_ACEOF
20035
/* end confdefs.h. */
20036
#include <linux/input.h>
20038
#include <linux/uinput.h>
20040
rm -f conftest.$ac_objext
20041
if { (ac_try="$ac_compile"
20042
case "(($ac_try" in
20043
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20044
*) ac_try_echo=$ac_try;;
20046
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20047
(eval "$ac_compile") 2>conftest.er1
20049
grep -v '^ *+' conftest.er1 >conftest.err
20051
cat conftest.err >&5
20052
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20053
(exit $ac_status); } && {
20054
test -z "$ac_c_werror_flag" ||
20055
test ! -s conftest.err
20056
} && test -s conftest.$ac_objext; then
20057
ac_cv_header_linux_uinput_h=yes
20059
echo "$as_me: failed program was:" >&5
20060
sed 's/^/| /' conftest.$ac_ext >&5
20062
ac_cv_header_linux_uinput_h=no
20065
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20067
{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_uinput_h" >&5
20068
echo "${ECHO_T}$ac_cv_header_linux_uinput_h" >&6; }
20069
if test $ac_cv_header_linux_uinput_h = yes; then
20070
HAVE_LINUX_UINPUT=1
20075
{ { echo "$as_me:$LINENO: error: \"Required header file not found.\"" >&5
20076
echo "$as_me: error: \"Required header file not found.\"" >&2;}
20077
{ (exit 1); exit 1; }; }
20080
if test "$HAVE_LINUX_UINPUT" != "1"; then
20081
{ { echo "$as_me:$LINENO: error: \"Required header file not found.\"" >&5
20082
echo "$as_me: error: \"Required header file not found.\"" >&2;}
20083
{ (exit 1); exit 1; }; }
20087
# AC_ARG_ENABLE SECUREDIR
20088
# Check whether --enable-securedir was given.
20089
if test "${enable_securedir+set}" = set; then
20090
enableval=$enable_securedir;
20094
# AC_ARG_ENABLE_BIR_DIR
20095
# Check whether --enable-birdir was given.
20096
if test "${enable_birdir+set}" = set; then
20097
enableval=$enable_birdir;
20101
# Check for pthread
20102
{ echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
20103
echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
20104
if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
20105
echo $ECHO_N "(cached) $ECHO_C" >&6
20107
ac_check_lib_save_LIBS=$LIBS
20108
LIBS="-lpthread $LIBS"
20109
cat >conftest.$ac_ext <<_ACEOF
20112
cat confdefs.h >>conftest.$ac_ext
20113
cat >>conftest.$ac_ext <<_ACEOF
20114
/* end confdefs.h. */
20116
/* Override any GCC internal prototype to avoid an error.
20117
Use char because int might match the return type of a GCC
20118
builtin and then its argument prototype would still apply. */
20122
char pthread_create ();
20126
return pthread_create ();
20131
rm -f conftest.$ac_objext conftest$ac_exeext
20132
if { (ac_try="$ac_link"
20133
case "(($ac_try" in
20134
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20135
*) ac_try_echo=$ac_try;;
20137
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20138
(eval "$ac_link") 2>conftest.er1
20140
grep -v '^ *+' conftest.er1 >conftest.err
20142
cat conftest.err >&5
20143
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20144
(exit $ac_status); } && {
20145
test -z "$ac_c_werror_flag" ||
20146
test ! -s conftest.err
20147
} && test -s conftest$ac_exeext &&
20148
$as_test_x conftest$ac_exeext; then
20149
ac_cv_lib_pthread_pthread_create=yes
20151
echo "$as_me: failed program was:" >&5
20152
sed 's/^/| /' conftest.$ac_ext >&5
20154
ac_cv_lib_pthread_pthread_create=no
20157
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20158
conftest$ac_exeext conftest.$ac_ext
20159
LIBS=$ac_check_lib_save_LIBS
20161
{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
20162
echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
20163
if test $ac_cv_lib_pthread_pthread_create = yes; then
20164
PTHREAD_LIBS="-lpthread"
20166
{ { echo "$as_me:$LINENO: error: libpthread missing" >&5
20167
echo "$as_me: error: libpthread missing" >&2;}
20168
{ (exit 1); exit 1; }; }
20172
# Check for libusb using pkg-config
20175
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
20176
if test -n "$ac_tool_prefix"; then
20177
# Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20178
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20179
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20180
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20181
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20182
echo $ECHO_N "(cached) $ECHO_C" >&6
20184
case $PKG_CONFIG in
20186
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20189
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20190
for as_dir in $PATH
20193
test -z "$as_dir" && as_dir=.
20194
for ac_exec_ext in '' $ac_executable_extensions; do
20195
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20196
ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20197
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20207
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20208
if test -n "$PKG_CONFIG"; then
20209
{ echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20210
echo "${ECHO_T}$PKG_CONFIG" >&6; }
20212
{ echo "$as_me:$LINENO: result: no" >&5
20213
echo "${ECHO_T}no" >&6; }
20218
if test -z "$ac_cv_path_PKG_CONFIG"; then
20219
ac_pt_PKG_CONFIG=$PKG_CONFIG
20220
# Extract the first word of "pkg-config", so it can be a program name with args.
20221
set dummy pkg-config; ac_word=$2
20222
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20223
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20224
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
20225
echo $ECHO_N "(cached) $ECHO_C" >&6
20227
case $ac_pt_PKG_CONFIG in
20229
ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
20232
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20233
for as_dir in $PATH
20236
test -z "$as_dir" && as_dir=.
20237
for ac_exec_ext in '' $ac_executable_extensions; do
20238
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20239
ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20240
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20250
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
20251
if test -n "$ac_pt_PKG_CONFIG"; then
20252
{ echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
20253
echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
20255
{ echo "$as_me:$LINENO: result: no" >&5
20256
echo "${ECHO_T}no" >&6; }
20259
if test "x$ac_pt_PKG_CONFIG" = x; then
20262
case $cross_compiling:$ac_tool_warned in
20264
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20265
whose name does not start with the host triplet. If you think this
20266
configuration is useful to you, please write to autoconf@gnu.org." >&5
20267
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20268
whose name does not start with the host triplet. If you think this
20269
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20270
ac_tool_warned=yes ;;
20272
PKG_CONFIG=$ac_pt_PKG_CONFIG
20275
PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
20279
if test -n "$PKG_CONFIG"; then
20280
_pkg_min_version=0.9.0
20281
{ echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
20282
echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
20283
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
20284
{ echo "$as_me:$LINENO: result: yes" >&5
20285
echo "${ECHO_T}yes" >&6; }
20287
{ echo "$as_me:$LINENO: result: no" >&5
20288
echo "${ECHO_T}no" >&6; }
20295
{ echo "$as_me:$LINENO: checking for USB" >&5
20296
echo $ECHO_N "checking for USB... $ECHO_C" >&6; }
20298
if test -n "$PKG_CONFIG"; then
20299
if test -n "$USB_CFLAGS"; then
20300
pkg_cv_USB_CFLAGS="$USB_CFLAGS"
20302
if test -n "$PKG_CONFIG" && \
20303
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libusb >= 0.1.11\"") >&5
20304
($PKG_CONFIG --exists --print-errors "libusb >= 0.1.11") 2>&5
20306
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20307
(exit $ac_status); }; then
20308
pkg_cv_USB_CFLAGS=`$PKG_CONFIG --cflags "libusb >= 0.1.11" 2>/dev/null`
20316
if test -n "$PKG_CONFIG"; then
20317
if test -n "$USB_LIBS"; then
20318
pkg_cv_USB_LIBS="$USB_LIBS"
20320
if test -n "$PKG_CONFIG" && \
20321
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libusb >= 0.1.11\"") >&5
20322
($PKG_CONFIG --exists --print-errors "libusb >= 0.1.11") 2>&5
20324
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20325
(exit $ac_status); }; then
20326
pkg_cv_USB_LIBS=`$PKG_CONFIG --libs "libusb >= 0.1.11" 2>/dev/null`
20337
if test $pkg_failed = yes; then
20339
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20340
_pkg_short_errors_supported=yes
20342
_pkg_short_errors_supported=no
20344
if test $_pkg_short_errors_supported = yes; then
20345
USB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libusb >= 0.1.11"`
20347
USB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libusb >= 0.1.11"`
20349
# Put the nasty error message in config.log where it belongs
20350
echo "$USB_PKG_ERRORS" >&5
20352
{ { echo "$as_me:$LINENO: error: libusb missing" >&5
20353
echo "$as_me: error: libusb missing" >&2;}
20354
{ (exit 1); exit 1; }; }
20355
elif test $pkg_failed = untried; then
20356
{ { echo "$as_me:$LINENO: error: libusb missing" >&5
20357
echo "$as_me: error: libusb missing" >&2;}
20358
{ (exit 1); exit 1; }; }
20360
USB_CFLAGS=$pkg_cv_USB_CFLAGS
20361
USB_LIBS=$pkg_cv_USB_LIBS
20362
{ echo "$as_me:$LINENO: result: yes" >&5
20363
echo "${ECHO_T}yes" >&6; }
20367
# Check for Doxygen
20368
# Extract the first word of "doxygen", so it can be a program name with args.
20369
set dummy doxygen; ac_word=$2
20370
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20371
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20372
if test "${ac_cv_prog_DOXYGEN+set}" = set; then
20373
echo $ECHO_N "(cached) $ECHO_C" >&6
20375
if test -n "$DOXYGEN"; then
20376
ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test.
20378
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20379
for as_dir in $PATH
20382
test -z "$as_dir" && as_dir=.
20383
for ac_exec_ext in '' $ac_executable_extensions; do
20384
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20385
ac_cv_prog_DOXYGEN="doxygen"
20386
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20395
DOXYGEN=$ac_cv_prog_DOXYGEN
20396
if test -n "$DOXYGEN"; then
20397
{ echo "$as_me:$LINENO: result: $DOXYGEN" >&5
20398
echo "${ECHO_T}$DOXYGEN" >&6; }
20400
{ echo "$as_me:$LINENO: result: no" >&5
20401
echo "${ECHO_T}no" >&6; }
20408
if test "x$prefix" = "xNONE" ; then
20409
PREFIX=$ac_default_prefix
20415
# Find out exec_prefix
20417
if test "x$exec_prefix" = xNONE ; then
20418
EXEC_PREFIX=$prefix
20420
EXEC_PREFIX=$exec_prefix
20422
exec_prefix=$EXEC_PREFIX
20424
# AC_SUBST PREFIX, LIBDIR, BINDIR, SBINDIR, MANDIR, SECUREDIR and BIRDIR
20425
PREFIX_TMP="$prefix"
20426
PREFIX=`eval echo $PREFIX_TMP`
20429
LIBDIR_TMP="$libdir"
20430
LIBDIR=`eval echo $LIBDIR_TMP`
20433
BINDIR_TMP="$bindir"
20434
BINDIR=`eval echo $BINDIR_TMP`
20437
SBINDIR_TMP="$sbindir"
20438
SBINDIR=`eval echo $SBINDIR_TMP`
20441
if ! test -z "$with_securedir" ; then
20442
SECUREDIR_TMP="$with_securedir"
20444
SECUREDIR_TMP=$LIBDIR/security
20446
SECUREDIR=`eval echo $SECUREDIR_TMP`
20449
if ! test -z "$with_birdir" ; then
20450
BIRDIR_TMP="$with_birdir"
20452
BIRDIR_TMP=$sysconfdir/pam_thinkfinger
20454
BIRDIR=`eval echo $BIRDIR_TMP`
20457
if ! test -z "$mandir" ; then
20458
MANDIR_TMP=`eval echo "$mandir"`
20460
MANDIR_TMP=`eval echo $datadir/man`
20462
MANDIR=`eval echo \"$MANDIR_TMP\"`
20465
# AC_DEFINE PAM_BIRDIR
20467
cat >>confdefs.h <<_ACEOF
20468
#define PAM_BIRDIR "${BIRDIR}"
20473
CFLAGS="$CFLAGS -Wall"
20474
CFLAGS="$CFLAGS -fno-common"
20475
CFLAGS="$CFLAGS -fPIC"
20476
CFLAGS="$CFLAGS -Wchar-subscripts"
20477
CFLAGS="$CFLAGS -Wmissing-declarations"
20478
CFLAGS="$CFLAGS -Wmissing-prototypes"
20479
CFLAGS="$CFLAGS -Wnested-externs"
20480
CFLAGS="$CFLAGS -Wpointer-arith"
20481
CFLAGS="$CFLAGS -Wcast-align"
20482
CFLAGS="$CFLAGS -Wsign-compare"
20483
CFLAGS="$CFLAGS -Wdeclaration-after-statement"
20486
# AC_SUBST USB_LIBS
20489
# AC_SUBST PAM_LIBS
20492
# AC_SUBST_PTHREAD_LIBS
20496
if test "x$enable_pam" = "xyes"; then
20498
BUILD_PAM_FALSE='#'
20504
if test "x$HAVE_OLD_PAM" = "xyes"; then
20506
HAVE_OLD_PAM_FALSE='#'
20508
HAVE_OLD_PAM_TRUE='#'
20509
HAVE_OLD_PAM_FALSE=
20514
ac_config_files="$ac_config_files Makefile README INSTALL docs/Makefile docs/autodocs/Makefile libthinkfinger/Makefile libthinkfinger/libthinkfinger.pc pam/Makefile tf-tool/Makefile"
20519
$PACKAGE_NAME $VERSION
20522
+ prefix: ${PREFIX}
20523
+ libdir: ${LIBDIR}
20524
+ bindir: ${BINDIR}
20525
+ sbindir: ${SBINDIR}
20526
+ mandir: ${MANDIR}
20528
+ cflags: ${CFLAGS}
20529
+ libusb: ${USB_LIBS}
20534
+ enable USB hooks: $enable_usb_debug
20538
if test "x$enable_pam" = "xyes" ; then
20539
echo " Build PAM module: $enable_pam
20541
+ libpam: ${PAM_LIBS}
20542
+ libpthread: ${PTHREAD_LIBS}
20543
+ securedir: ${SECUREDIR}
20544
+ birdir: ${BIRDIR}
20549
cat >confcache <<\_ACEOF
20550
# This file is a shell script that caches the results of configure
20551
# tests run on this system so they can be shared between configure
20552
# scripts and configure runs, see configure's option --config-cache.
20553
# It is not useful on other systems. If it contains results you don't
20554
# want to keep, you may remove or edit it.
20556
# config.status only pays attention to the cache file if you give it
20557
# the --recheck option to rerun configure.
20559
# `ac_cv_env_foo' variables (set or unset) will be overridden when
20560
# loading this file, other *unset* `ac_cv_foo' will be assigned the
20561
# following values.
20565
# The following way of writing the cache mishandles newlines in values,
20566
# but we know of no workaround that is simple, portable, and efficient.
20567
# So, we kill variables containing newlines.
20568
# Ultrix sh set writes to stderr and can't be redirected directly,
20569
# and sets the high bit in the cache file unless we assign to the vars.
20571
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20572
eval ac_val=\$$ac_var
20576
*_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20577
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20580
_ | IFS | as_nl) ;; #(
20581
*) $as_unset $ac_var ;;
20587
case $as_nl`(ac_space=' '; set) 2>&1` in #(
20588
*${as_nl}ac_space=\ *)
20589
# `set' does not quote correctly, so add quotes (double-quote
20590
# substitution turns \\\\ into \\, and sed turns \\ into \).
20593
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20596
# `set' quotes correctly as required by POSIX, so do not add quotes.
20597
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20606
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20608
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20610
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20611
if test -w "$cache_file"; then
20612
test "x$cache_file" != "x/dev/null" &&
20613
{ echo "$as_me:$LINENO: updating cache $cache_file" >&5
20614
echo "$as_me: updating cache $cache_file" >&6;}
20615
cat confcache >$cache_file
20617
{ echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20618
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20623
test "x$prefix" = xNONE && prefix=$ac_default_prefix
20624
# Let make expand exec_prefix.
20625
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20627
DEFS=-DHAVE_CONFIG_H
20631
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20632
# 1. Remove the extension, and $U if already installed.
20633
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20634
ac_i=`echo "$ac_i" | sed "$ac_script"`
20635
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20636
# will be set to the directory where LIBOBJS objects are built.
20637
ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20638
ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20640
LIBOBJS=$ac_libobjs
20642
LTLIBOBJS=$ac_ltlibobjs
20645
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20646
{ { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20647
Usually this means the macro was only invoked conditionally." >&5
20648
echo "$as_me: error: conditional \"AMDEP\" was never defined.
20649
Usually this means the macro was only invoked conditionally." >&2;}
20650
{ (exit 1); exit 1; }; }
20652
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20653
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20654
Usually this means the macro was only invoked conditionally." >&5
20655
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20656
Usually this means the macro was only invoked conditionally." >&2;}
20657
{ (exit 1); exit 1; }; }
20659
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20660
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20661
Usually this means the macro was only invoked conditionally." >&5
20662
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20663
Usually this means the macro was only invoked conditionally." >&2;}
20664
{ (exit 1); exit 1; }; }
20666
if test -z "${BUILD_PAM_TRUE}" && test -z "${BUILD_PAM_FALSE}"; then
20667
{ { echo "$as_me:$LINENO: error: conditional \"BUILD_PAM\" was never defined.
20668
Usually this means the macro was only invoked conditionally." >&5
20669
echo "$as_me: error: conditional \"BUILD_PAM\" was never defined.
20670
Usually this means the macro was only invoked conditionally." >&2;}
20671
{ (exit 1); exit 1; }; }
20673
if test -z "${HAVE_OLD_PAM_TRUE}" && test -z "${HAVE_OLD_PAM_FALSE}"; then
20674
{ { echo "$as_me:$LINENO: error: conditional \"HAVE_OLD_PAM\" was never defined.
20675
Usually this means the macro was only invoked conditionally." >&5
20676
echo "$as_me: error: conditional \"HAVE_OLD_PAM\" was never defined.
20677
Usually this means the macro was only invoked conditionally." >&2;}
20678
{ (exit 1); exit 1; }; }
20681
: ${CONFIG_STATUS=./config.status}
20682
ac_clean_files_save=$ac_clean_files
20683
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20684
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20685
echo "$as_me: creating $CONFIG_STATUS" >&6;}
20686
cat >$CONFIG_STATUS <<_ACEOF
20688
# Generated by $as_me.
20689
# Run this file to recreate the current configuration.
20690
# Compiler output produced by configure, useful for debugging
20691
# configure, is in config.log if it exists.
20694
ac_cs_recheck=false
20696
SHELL=\${CONFIG_SHELL-$SHELL}
20699
cat >>$CONFIG_STATUS <<\_ACEOF
20700
## --------------------- ##
20701
## M4sh Initialization. ##
20702
## --------------------- ##
20704
# Be more Bourne compatible
20705
DUALCASE=1; export DUALCASE # for MKS sh
20706
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20709
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20710
# is contrary to our usage. Disable this feature.
20711
alias -g '${1+"$@"}'='"$@"'
20712
setopt NO_GLOB_SUBST
20714
case `(set -o) 2>/dev/null` in
20715
*posix*) set -o posix ;;
20724
# Avoid depending upon Character Ranges.
20725
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20726
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20727
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20728
as_cr_digits='0123456789'
20729
as_cr_alnum=$as_cr_Letters$as_cr_digits
20731
# The user is always right.
20732
if test "${PATH_SEPARATOR+set}" != set; then
20733
echo "#! /bin/sh" >conf$$.sh
20734
echo "exit 0" >>conf$$.sh
20736
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20744
# Support unset when possible.
20745
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20753
# We need space, tab and new line, in precisely that order. Quoting is
20754
# there to prevent editors from complaining about space-tab.
20755
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
20756
# splitting by setting IFS to empty value.)
20761
# Find who we are. Look in the path if we contain no directory separator.
20763
*[\\/]* ) as_myself=$0 ;;
20764
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20765
for as_dir in $PATH
20768
test -z "$as_dir" && as_dir=.
20769
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20775
# We did not find ourselves, most probably we were run as `sh COMMAND'
20776
# in which case we are not to be found in the path.
20777
if test "x$as_myself" = x; then
20780
if test ! -f "$as_myself"; then
20781
echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20782
{ (exit 1); exit 1; }
20785
# Work around bugs in pre-3.0 UWIN ksh.
20786
for as_var in ENV MAIL MAILPATH
20787
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20795
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20796
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20797
LC_TELEPHONE LC_TIME
20799
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20800
eval $as_var=C; export $as_var
20802
($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20806
# Required to use basename.
20807
if expr a : '\(a\)' >/dev/null 2>&1 &&
20808
test "X`expr 00001 : '.*\(...\)'`" = X001; then
20814
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20815
as_basename=basename
20821
# Name of the executable.
20822
as_me=`$as_basename -- "$0" ||
20823
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20824
X"$0" : 'X\(//\)$' \| \
20825
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20827
sed '/^.*\/\([^/][^/]*\)\/*$/{
20846
as_lineno_1=$LINENO
20847
as_lineno_2=$LINENO
20848
test "x$as_lineno_1" != "x$as_lineno_2" &&
20849
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20851
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20852
# uniformly replaced by the line number. The first 'sed' inserts a
20853
# line-number line after each line using $LINENO; the second 'sed'
20854
# does the real work. The second script uses 'N' to pair each
20855
# line-number line with the line containing $LINENO, and appends
20856
# trailing '-' during substitution so that $LINENO is not a special
20857
# case at line end.
20858
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20859
# scripts with optimization help from Paolo Bonzini. Blame Lee
20860
# E. McMahon (1931-1989) for sed's syntax. :-)
20872
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20875
' >$as_me.lineno &&
20876
chmod +x "$as_me.lineno" ||
20877
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20878
{ (exit 1); exit 1; }; }
20880
# Don't try to exec as it changes $[0], causing all sort of problems
20881
# (the dirname of $[0] is not the place where we might find the
20882
# original and so on. Autoconf is especially sensitive to this).
20883
. "./$as_me.lineno"
20884
# Exit status is that of the last command.
20889
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20895
ECHO_C= ECHO_N= ECHO_T=
20896
case `echo -n x` in
20898
case `echo 'x\c'` in
20899
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
20906
if expr a : '\(a\)' >/dev/null 2>&1 &&
20907
test "X`expr 00001 : '.*\(...\)'`" = X001; then
20913
rm -f conf$$ conf$$.exe conf$$.file
20914
if test -d conf$$.dir; then
20915
rm -f conf$$.dir/conf$$.file
20921
if ln -s conf$$.file conf$$ 2>/dev/null; then
20923
# ... but there are two gotchas:
20924
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20925
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20926
# In both cases, we have to default to `cp -p'.
20927
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20929
elif ln conf$$.file conf$$ 2>/dev/null; then
20934
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20935
rmdir conf$$.dir 2>/dev/null
20937
if mkdir -p . 2>/dev/null; then
20940
test -d ./-p && rmdir ./-p
20944
if test -x / >/dev/null 2>&1; then
20945
as_test_x='test -x'
20947
if ls -dL / >/dev/null 2>&1; then
20954
if test -d "$1"; then
20960
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
20961
???[sx]*):;;*)false;;esac;fi
20965
as_executable_p=$as_test_x
20967
# Sed expression to map a string onto a valid CPP name.
20968
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20970
# Sed expression to map a string onto a valid variable name.
20971
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20976
# Save the log message, to keep $[0] and so on meaningful, and to
20977
# report actual input values of CONFIG_FILES etc. instead of their
20978
# values after options handling.
20980
This file was extended by ThinkFinger $as_me 0.3, which was
20981
generated by GNU Autoconf 2.61. Invocation command line was
20983
CONFIG_FILES = $CONFIG_FILES
20984
CONFIG_HEADERS = $CONFIG_HEADERS
20985
CONFIG_LINKS = $CONFIG_LINKS
20986
CONFIG_COMMANDS = $CONFIG_COMMANDS
20989
on `(hostname || uname -n) 2>/dev/null | sed 1q`
20994
cat >>$CONFIG_STATUS <<_ACEOF
20995
# Files that config.status was made for.
20996
config_files="$ac_config_files"
20997
config_headers="$ac_config_headers"
20998
config_commands="$ac_config_commands"
21002
cat >>$CONFIG_STATUS <<\_ACEOF
21004
\`$as_me' instantiates files from templates according to the
21005
current configuration.
21007
Usage: $0 [OPTIONS] [FILE]...
21009
-h, --help print this help, then exit
21010
-V, --version print version number and configuration settings, then exit
21011
-q, --quiet do not print progress messages
21012
-d, --debug don't remove temporary files
21013
--recheck update $as_me by reconfiguring in the same conditions
21014
--file=FILE[:TEMPLATE]
21015
instantiate the configuration file FILE
21016
--header=FILE[:TEMPLATE]
21017
instantiate the configuration header FILE
21019
Configuration files:
21022
Configuration headers:
21025
Configuration commands:
21028
Report bugs to <bug-autoconf@gnu.org>."
21031
cat >>$CONFIG_STATUS <<_ACEOF
21033
ThinkFinger config.status 0.3
21034
configured by $0, generated by GNU Autoconf 2.61,
21035
with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21037
Copyright (C) 2006 Free Software Foundation, Inc.
21038
This config.status script is free software; the Free Software Foundation
21039
gives unlimited permission to copy, distribute and modify it."
21047
cat >>$CONFIG_STATUS <<\_ACEOF
21048
# If no file are specified by the user, then we need to provide default
21049
# value. By we need to know if files were specified by the user.
21055
ac_option=`expr "X$1" : 'X\([^=]*\)='`
21056
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21067
# Handling of the options.
21068
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21070
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21071
echo "$ac_cs_version"; exit ;;
21072
--debug | --debu | --deb | --de | --d | -d )
21074
--file | --fil | --fi | --f )
21076
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21077
ac_need_defaults=false;;
21078
--header | --heade | --head | --hea )
21080
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21081
ac_need_defaults=false;;
21083
# Conflict between --help and --header
21084
{ echo "$as_me: error: ambiguous option: $1
21085
Try \`$0 --help' for more information." >&2
21086
{ (exit 1); exit 1; }; };;
21087
--help | --hel | -h )
21088
echo "$ac_cs_usage"; exit ;;
21089
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
21090
| -silent | --silent | --silen | --sile | --sil | --si | --s)
21093
# This is an error.
21094
-*) { echo "$as_me: error: unrecognized option: $1
21095
Try \`$0 --help' for more information." >&2
21096
{ (exit 1); exit 1; }; } ;;
21098
*) ac_config_targets="$ac_config_targets $1"
21099
ac_need_defaults=false ;;
21105
ac_configure_extra_args=
21107
if $ac_cs_silent; then
21109
ac_configure_extra_args="$ac_configure_extra_args --silent"
21113
cat >>$CONFIG_STATUS <<_ACEOF
21114
if \$ac_cs_recheck; then
21115
echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21116
CONFIG_SHELL=$SHELL
21117
export CONFIG_SHELL
21118
exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21122
cat >>$CONFIG_STATUS <<\_ACEOF
21126
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21127
## Running $as_me. ##
21133
cat >>$CONFIG_STATUS <<_ACEOF
21137
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21141
cat >>$CONFIG_STATUS <<\_ACEOF
21143
# Handling of arguments.
21144
for ac_config_target in $ac_config_targets
21146
case $ac_config_target in
21147
"config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21148
"depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21149
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21150
"README") CONFIG_FILES="$CONFIG_FILES README" ;;
21151
"INSTALL") CONFIG_FILES="$CONFIG_FILES INSTALL" ;;
21152
"docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
21153
"docs/autodocs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/autodocs/Makefile" ;;
21154
"libthinkfinger/Makefile") CONFIG_FILES="$CONFIG_FILES libthinkfinger/Makefile" ;;
21155
"libthinkfinger/libthinkfinger.pc") CONFIG_FILES="$CONFIG_FILES libthinkfinger/libthinkfinger.pc" ;;
21156
"pam/Makefile") CONFIG_FILES="$CONFIG_FILES pam/Makefile" ;;
21157
"tf-tool/Makefile") CONFIG_FILES="$CONFIG_FILES tf-tool/Makefile" ;;
21159
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21160
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21161
{ (exit 1); exit 1; }; };;
21166
# If the user did not use the arguments to specify the items to instantiate,
21167
# then the envvar interface is used. Set only those that are not.
21168
# We use the long form for the default assignment because of an extremely
21169
# bizarre bug on SunOS 4.1.3.
21170
if $ac_need_defaults; then
21171
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21172
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21173
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21176
# Have a temporary directory for convenience. Make it in the build tree
21177
# simply because there is no reason against having it here, and in addition,
21178
# creating and moving files from /tmp can sometimes cause problems.
21179
# Hook for its removal unless debugging.
21180
# Note that there is a small window in which the directory will not be cleaned:
21181
# after its creation but before its name has been assigned to `$tmp'.
21185
trap 'exit_status=$?
21186
{ test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21188
trap '{ (exit 1); exit 1; }' 1 2 13 15
21190
# Create a (secure) tmp directory for tmp files.
21193
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21194
test -n "$tmp" && test -d "$tmp"
21197
tmp=./conf$$-$RANDOM
21198
(umask 077 && mkdir "$tmp")
21201
echo "$me: cannot create a temporary directory in ." >&2
21202
{ (exit 1); exit 1; }
21206
# Set up the sed scripts for CONFIG_FILES section.
21209
# No need to generate the scripts if there are no CONFIG_FILES.
21210
# This happens for instance when ./config.status config.h
21211
if test -n "$CONFIG_FILES"; then
21218
for ac_last_try in false false false false false :; do
21219
cat >conf$$subs.sed <<_ACEOF
21220
SHELL!$SHELL$ac_delim
21221
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21222
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21223
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21224
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21225
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21226
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21227
exec_prefix!$exec_prefix$ac_delim
21228
prefix!$prefix$ac_delim
21229
program_transform_name!$program_transform_name$ac_delim
21230
bindir!$bindir$ac_delim
21231
sbindir!$sbindir$ac_delim
21232
libexecdir!$libexecdir$ac_delim
21233
datarootdir!$datarootdir$ac_delim
21234
datadir!$datadir$ac_delim
21235
sysconfdir!$sysconfdir$ac_delim
21236
sharedstatedir!$sharedstatedir$ac_delim
21237
localstatedir!$localstatedir$ac_delim
21238
includedir!$includedir$ac_delim
21239
oldincludedir!$oldincludedir$ac_delim
21240
docdir!$docdir$ac_delim
21241
infodir!$infodir$ac_delim
21242
htmldir!$htmldir$ac_delim
21243
dvidir!$dvidir$ac_delim
21244
pdfdir!$pdfdir$ac_delim
21245
psdir!$psdir$ac_delim
21246
libdir!$libdir$ac_delim
21247
localedir!$localedir$ac_delim
21248
mandir!$mandir$ac_delim
21249
DEFS!$DEFS$ac_delim
21250
ECHO_C!$ECHO_C$ac_delim
21251
ECHO_N!$ECHO_N$ac_delim
21252
ECHO_T!$ECHO_T$ac_delim
21253
LIBS!$LIBS$ac_delim
21254
build_alias!$build_alias$ac_delim
21255
host_alias!$host_alias$ac_delim
21256
target_alias!$target_alias$ac_delim
21257
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21258
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21259
INSTALL_DATA!$INSTALL_DATA$ac_delim
21260
am__isrc!$am__isrc$ac_delim
21261
CYGPATH_W!$CYGPATH_W$ac_delim
21262
PACKAGE!$PACKAGE$ac_delim
21263
VERSION!$VERSION$ac_delim
21264
ACLOCAL!$ACLOCAL$ac_delim
21265
AUTOCONF!$AUTOCONF$ac_delim
21266
AUTOMAKE!$AUTOMAKE$ac_delim
21267
AUTOHEADER!$AUTOHEADER$ac_delim
21268
MAKEINFO!$MAKEINFO$ac_delim
21269
install_sh!$install_sh$ac_delim
21270
STRIP!$STRIP$ac_delim
21271
INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
21272
mkdir_p!$mkdir_p$ac_delim
21274
SET_MAKE!$SET_MAKE$ac_delim
21275
am__leading_dot!$am__leading_dot$ac_delim
21276
AMTAR!$AMTAR$ac_delim
21277
am__tar!$am__tar$ac_delim
21278
am__untar!$am__untar$ac_delim
21280
CFLAGS!$CFLAGS$ac_delim
21281
LDFLAGS!$LDFLAGS$ac_delim
21282
CPPFLAGS!$CPPFLAGS$ac_delim
21283
ac_ct_CC!$ac_ct_CC$ac_delim
21284
EXEEXT!$EXEEXT$ac_delim
21285
OBJEXT!$OBJEXT$ac_delim
21286
DEPDIR!$DEPDIR$ac_delim
21287
am__include!$am__include$ac_delim
21288
am__quote!$am__quote$ac_delim
21289
AMDEP_TRUE!$AMDEP_TRUE$ac_delim
21290
AMDEP_FALSE!$AMDEP_FALSE$ac_delim
21291
AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
21292
CCDEPMODE!$CCDEPMODE$ac_delim
21293
am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
21294
am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
21295
build!$build$ac_delim
21296
build_cpu!$build_cpu$ac_delim
21297
build_vendor!$build_vendor$ac_delim
21298
build_os!$build_os$ac_delim
21299
host!$host$ac_delim
21300
host_cpu!$host_cpu$ac_delim
21301
host_vendor!$host_vendor$ac_delim
21302
host_os!$host_os$ac_delim
21303
GREP!$GREP$ac_delim
21304
EGREP!$EGREP$ac_delim
21305
LN_S!$LN_S$ac_delim
21306
ECHO!$ECHO$ac_delim
21308
RANLIB!$RANLIB$ac_delim
21311
CXXFLAGS!$CXXFLAGS$ac_delim
21312
ac_ct_CXX!$ac_ct_CXX$ac_delim
21313
CXXDEPMODE!$CXXDEPMODE$ac_delim
21314
am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
21315
am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
21316
CXXCPP!$CXXCPP$ac_delim
21319
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21321
elif $ac_last_try; then
21322
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21323
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21324
{ (exit 1); exit 1; }; }
21326
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21330
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21331
if test -n "$ac_eof"; then
21332
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21333
ac_eof=`expr $ac_eof + 1`
21336
cat >>$CONFIG_STATUS <<_ACEOF
21337
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21338
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21341
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21342
s/^/s,@/; s/!/@,|#_!!_#|/
21345
s/'"$ac_delim"'$/,g/; t
21347
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21348
' >>$CONFIG_STATUS <conf$$subs.sed
21349
rm -f conf$$subs.sed
21350
cat >>$CONFIG_STATUS <<_ACEOF
21356
for ac_last_try in false false false false false :; do
21357
cat >conf$$subs.sed <<_ACEOF
21359
FFLAGS!$FFLAGS$ac_delim
21360
ac_ct_F77!$ac_ct_F77$ac_delim
21361
LIBTOOL!$LIBTOOL$ac_delim
21362
PKG_CONFIG!$PKG_CONFIG$ac_delim
21363
USB_CFLAGS!$USB_CFLAGS$ac_delim
21364
USB_LIBS!$USB_LIBS$ac_delim
21365
DOXYGEN!$DOXYGEN$ac_delim
21366
PREFIX!$PREFIX$ac_delim
21367
LIBDIR!$LIBDIR$ac_delim
21368
BINDIR!$BINDIR$ac_delim
21369
SBINDIR!$SBINDIR$ac_delim
21370
SECUREDIR!$SECUREDIR$ac_delim
21371
BIRDIR!$BIRDIR$ac_delim
21372
MANDIR!$MANDIR$ac_delim
21373
PAM_LIBS!$PAM_LIBS$ac_delim
21374
PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
21375
BUILD_PAM_TRUE!$BUILD_PAM_TRUE$ac_delim
21376
BUILD_PAM_FALSE!$BUILD_PAM_FALSE$ac_delim
21377
HAVE_OLD_PAM_TRUE!$HAVE_OLD_PAM_TRUE$ac_delim
21378
HAVE_OLD_PAM_FALSE!$HAVE_OLD_PAM_FALSE$ac_delim
21379
LIBOBJS!$LIBOBJS$ac_delim
21380
LTLIBOBJS!$LTLIBOBJS$ac_delim
21383
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 23; then
21385
elif $ac_last_try; then
21386
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21387
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21388
{ (exit 1); exit 1; }; }
21390
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21394
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21395
if test -n "$ac_eof"; then
21396
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21397
ac_eof=`expr $ac_eof + 1`
21400
cat >>$CONFIG_STATUS <<_ACEOF
21401
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21402
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21405
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21406
s/^/s,@/; s/!/@,|#_!!_#|/
21409
s/'"$ac_delim"'$/,g/; t
21411
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21412
' >>$CONFIG_STATUS <conf$$subs.sed
21413
rm -f conf$$subs.sed
21414
cat >>$CONFIG_STATUS <<_ACEOF
21421
# VPATH may cause trouble with some makes, so we remove $(srcdir),
21422
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21423
# trailing colons and then remove the whole line if VPATH becomes empty
21424
# (actually we leave an empty line to preserve line numbers).
21425
if test "x$srcdir" = x.; then
21426
ac_vpsub='/^[ ]*VPATH[ ]*=/{
21427
s/:*\$(srcdir):*/:/
21428
s/:*\${srcdir}:*/:/
21430
s/^\([^=]*=[ ]*\):*/\1/
21436
cat >>$CONFIG_STATUS <<\_ACEOF
21437
fi # test -n "$CONFIG_FILES"
21440
for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
21443
:[FHLC]) ac_mode=$ac_tag; continue;;
21445
case $ac_mode$ac_tag in
21447
:L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21448
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21449
{ (exit 1); exit 1; }; };;
21450
:[FH]-) ac_tag=-:-;;
21451
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21468
-) ac_f="$tmp/stdin";;
21469
*) # Look for the file first in the build tree, then in the source tree
21470
# (if the path is not absolute). The absolute path cannot be DOS-style,
21471
# because $ac_f cannot contain `:'.
21475
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21477
{ { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21478
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21479
{ (exit 1); exit 1; }; };;
21481
ac_file_inputs="$ac_file_inputs $ac_f"
21484
# Let's still pretend it is `configure' which instantiates (i.e., don't
21485
# use $as_me), people would be surprised to read:
21486
# /* config.h. Generated by config.status. */
21487
configure_input="Generated from "`IFS=:
21488
echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21489
if test x"$ac_file" != x-; then
21490
configure_input="$ac_file. $configure_input"
21491
{ echo "$as_me:$LINENO: creating $ac_file" >&5
21492
echo "$as_me: creating $ac_file" >&6;}
21496
*:-:* | *:-) cat >"$tmp/stdin";;
21501
ac_dir=`$as_dirname -- "$ac_file" ||
21502
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21503
X"$ac_file" : 'X\(//\)[^/]' \| \
21504
X"$ac_file" : 'X\(//\)$' \| \
21505
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21507
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21511
/^X\(\/\/\)[^/].*/{
21526
-*) as_dir=./$as_dir;;
21528
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21532
*\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21533
*) as_qdir=$as_dir;;
21535
as_dirs="'$as_qdir' $as_dirs"
21536
as_dir=`$as_dirname -- "$as_dir" ||
21537
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21538
X"$as_dir" : 'X\(//\)[^/]' \| \
21539
X"$as_dir" : 'X\(//\)$' \| \
21540
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21542
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21546
/^X\(\/\/\)[^/].*/{
21559
test -d "$as_dir" && break
21561
test -z "$as_dirs" || eval "mkdir $as_dirs"
21562
} || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21563
echo "$as_me: error: cannot create directory $as_dir" >&2;}
21564
{ (exit 1); exit 1; }; }; }
21568
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21570
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21571
# A ".." for each directory in $ac_dir_suffix.
21572
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21573
case $ac_top_builddir_sub in
21574
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21575
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21578
ac_abs_top_builddir=$ac_pwd
21579
ac_abs_builddir=$ac_pwd$ac_dir_suffix
21580
# for backward compatibility:
21581
ac_top_builddir=$ac_top_build_prefix
21584
.) # We are building in place.
21586
ac_top_srcdir=$ac_top_builddir_sub
21587
ac_abs_top_srcdir=$ac_pwd ;;
21588
[\\/]* | ?:[\\/]* ) # Absolute name.
21589
ac_srcdir=$srcdir$ac_dir_suffix;
21590
ac_top_srcdir=$srcdir
21591
ac_abs_top_srcdir=$srcdir ;;
21592
*) # Relative name.
21593
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21594
ac_top_srcdir=$ac_top_build_prefix$srcdir
21595
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21597
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21607
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21608
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21610
ac_MKDIR_P=$MKDIR_P
21612
[\\/$]* | ?:[\\/]* ) ;;
21613
*/*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21617
cat >>$CONFIG_STATUS <<\_ACEOF
21618
# If the template does not know about datarootdir, expand it.
21619
# FIXME: This hack should be removed a few years after 2.60.
21620
ac_datarootdir_hack=; ac_datarootdir_seen=
21622
case `sed -n '/datarootdir/ {
21631
' $ac_file_inputs` in
21632
*datarootdir*) ac_datarootdir_seen=yes;;
21633
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21634
{ echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21635
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21637
cat >>$CONFIG_STATUS <<_ACEOF
21638
ac_datarootdir_hack='
21639
s&@datadir@&$datadir&g
21640
s&@docdir@&$docdir&g
21641
s&@infodir@&$infodir&g
21642
s&@localedir@&$localedir&g
21643
s&@mandir@&$mandir&g
21644
s&\\\${datarootdir}&$datarootdir&g' ;;
21648
# Neutralize VPATH when `$srcdir' = `.'.
21649
# Shell code in configure.ac might set extrasub.
21650
# FIXME: do we really want to maintain this feature?
21651
cat >>$CONFIG_STATUS <<_ACEOF
21655
cat >>$CONFIG_STATUS <<\_ACEOF
21657
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21658
s&@configure_input@&$configure_input&;t t
21659
s&@top_builddir@&$ac_top_builddir_sub&;t t
21660
s&@srcdir@&$ac_srcdir&;t t
21661
s&@abs_srcdir@&$ac_abs_srcdir&;t t
21662
s&@top_srcdir@&$ac_top_srcdir&;t t
21663
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21664
s&@builddir@&$ac_builddir&;t t
21665
s&@abs_builddir@&$ac_abs_builddir&;t t
21666
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21667
s&@INSTALL@&$ac_INSTALL&;t t
21668
s&@MKDIR_P@&$ac_MKDIR_P&;t t
21669
$ac_datarootdir_hack
21670
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21672
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21673
{ ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21674
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21675
{ echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21676
which seems to be undefined. Please make sure it is defined." >&5
21677
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21678
which seems to be undefined. Please make sure it is defined." >&2;}
21682
-) cat "$tmp/out"; rm -f "$tmp/out";;
21683
*) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21692
# Transform confdefs.h into a sed script `conftest.defines', that
21693
# substitutes the proper values into config.h.in to produce config.h.
21694
rm -f conftest.defines conftest.tail
21695
# First, append a space to every undef/define line, to ease matching.
21696
echo 's/$/ /' >conftest.defines
21697
# Then, protect against being on the right side of a sed subst, or in
21698
# an unquoted here document, in config.status. If some macros were
21699
# called several times there might be several #defines for the same
21700
# symbol, which is useless. But do not sort them, since the last
21701
# AC_DEFINE must be honored.
21702
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21703
# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21704
# NAME is the cpp macro being defined, VALUE is the value it is being given.
21705
# PARAMS is the parameter list in the macro definition--in most cases, it's
21706
# just an empty string.
21707
ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
21708
ac_dB='\\)[ (].*,\\1define\\2'
21716
s/^[ ]*#[ ]*define[ ][ ]*//
21721
s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21722
s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21723
' >>conftest.defines
21725
# Remove the space that was appended to ease matching.
21726
# Then replace #undef with comments. This is necessary, for
21727
# example, in the case of _POSIX_SOURCE, which is predefined and required
21728
# on some systems where configure will not decide to define it.
21729
# (The regexp can be short, since the line contains either #define or #undef.)
21731
s,^[ #]*u.*,/* & */,' >>conftest.defines
21733
# Break up conftest.defines:
21734
ac_max_sed_lines=50
21736
# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21737
# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21738
# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21740
ac_in='$ac_file_inputs'
21741
ac_out='"$tmp/out1"'
21742
ac_nxt='"$tmp/out2"'
21746
# Write a here document:
21747
cat >>$CONFIG_STATUS <<_ACEOF
21748
# First, check the format of the line:
21749
cat >"\$tmp/defines.sed" <<\\CEOF
21750
/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21751
/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21755
sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21757
sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21758
ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21759
sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21760
grep . conftest.tail >/dev/null || break
21761
rm -f conftest.defines
21762
mv conftest.tail conftest.defines
21764
rm -f conftest.defines conftest.tail
21766
echo "ac_result=$ac_in" >>$CONFIG_STATUS
21767
cat >>$CONFIG_STATUS <<\_ACEOF
21768
if test x"$ac_file" != x-; then
21769
echo "/* $configure_input */" >"$tmp/config.h"
21770
cat "$ac_result" >>"$tmp/config.h"
21771
if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21772
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21773
echo "$as_me: $ac_file is unchanged" >&6;}
21776
mv "$tmp/config.h" $ac_file
21779
echo "/* $configure_input */"
21783
# Compute $ac_file's index in $config_headers.
21785
for _am_header in $config_headers :; do
21786
case $_am_header in
21787
$ac_file | $ac_file:* )
21790
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
21793
echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
21794
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21795
X$ac_file : 'X\(//\)[^/]' \| \
21796
X$ac_file : 'X\(//\)$' \| \
21797
X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
21799
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21803
/^X\(\/\/\)[^/].*/{
21815
s/.*/./; q'`/stamp-h$_am_stamp_count
21818
:C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21819
echo "$as_me: executing $ac_file commands" >&6;}
21824
case $ac_file$ac_mode in
21825
"depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21826
# Strip MF so we end up with the name of the file.
21827
mf=`echo "$mf" | sed -e 's/:.*$//'`
21828
# Check whether this is an Automake generated Makefile or not.
21829
# We used to match only the files named `Makefile.in', but
21830
# some people rename them; so instead we look at the file content.
21831
# Grep'ing the first line is not enough: some people post-process
21832
# each Makefile.in and add a new line on top of each file to say so.
21833
# Grep'ing the whole file is not good either: AIX grep has a line
21834
# limit of 2048, but all sed's we know have understand at least 4000.
21835
if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
21836
dirpart=`$as_dirname -- "$mf" ||
21837
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21838
X"$mf" : 'X\(//\)[^/]' \| \
21839
X"$mf" : 'X\(//\)$' \| \
21840
X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21842
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21846
/^X\(\/\/\)[^/].*/{
21862
# Extract the definition of DEPDIR, am__include, and am__quote
21863
# from the Makefile without running `make'.
21864
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21865
test -z "$DEPDIR" && continue
21866
am__include=`sed -n 's/^am__include = //p' < "$mf"`
21867
test -z "am__include" && continue
21868
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21869
# When using ansi2knr, U may be empty or an underscore; expand it
21870
U=`sed -n 's/^U = //p' < "$mf"`
21871
# Find all dependency output files, they are included files with
21872
# $(DEPDIR) in their names. We invoke sed twice because it is the
21873
# simplest approach to changing $(DEPDIR) to its actual value in the
21875
for file in `sed -n "
21876
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21877
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21878
# Make sure the directory exists.
21879
test -f "$dirpart/$file" && continue
21880
fdir=`$as_dirname -- "$file" ||
21881
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21882
X"$file" : 'X\(//\)[^/]' \| \
21883
X"$file" : 'X\(//\)$' \| \
21884
X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21886
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21890
/^X\(\/\/\)[^/].*/{
21903
{ as_dir=$dirpart/$fdir
21905
-*) as_dir=./$as_dir;;
21907
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21911
*\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21912
*) as_qdir=$as_dir;;
21914
as_dirs="'$as_qdir' $as_dirs"
21915
as_dir=`$as_dirname -- "$as_dir" ||
21916
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21917
X"$as_dir" : 'X\(//\)[^/]' \| \
21918
X"$as_dir" : 'X\(//\)$' \| \
21919
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21921
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21925
/^X\(\/\/\)[^/].*/{
21938
test -d "$as_dir" && break
21940
test -z "$as_dirs" || eval "mkdir $as_dirs"
21941
} || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21942
echo "$as_me: error: cannot create directory $as_dir" >&2;}
21943
{ (exit 1); exit 1; }; }; }
21944
# echo "creating $dirpart/$file"
21945
echo '# dummy' > "$dirpart/$file"
21954
{ (exit 0); exit 0; }
21956
chmod +x $CONFIG_STATUS
21957
ac_clean_files=$ac_clean_files_save
21960
# configure is writing to config.log, and then calls config.status.
21961
# config.status does its own redirection, appending to config.log.
21962
# Unfortunately, on DOS this fails, as config.log is still kept open
21963
# by configure, so config.status won't be able to write to it; its
21964
# output is simply discarded. So we exec the FD to /dev/null,
21965
# effectively closing config.log, so it can be properly (re)opened and
21966
# appended to by config.status. When coming back to configure, we
21967
# need to make the FD available again.
21968
if test "$no_create" != yes; then
21970
ac_config_status_args=
21971
test "$silent" = yes &&
21972
ac_config_status_args="$ac_config_status_args --quiet"
21974
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21976
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
21977
# would make configure fail if this is the last instruction.
21978
$ac_cs_success || { (exit 1); exit 1; }