2
@%:@ From configure.ac Revision: 5783 .
3
@%:@ Guess values for system-dependent variables and create Makefiles.
4
@%:@ Generated by GNU Autoconf 2.61 for ijs 0.35.
6
@%:@ Report bugs to <inkjet-list@linuxprinting.org>.
8
@%:@ Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9
@%:@ 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
10
@%:@ This configure script is free software; the Free Software Foundation
11
@%:@ gives unlimited permission to copy, distribute and modify it.
12
## --------------------- ##
13
## M4sh Initialization. ##
14
## --------------------- ##
16
# Be more Bourne compatible
17
DUALCASE=1; export DUALCASE # for MKS sh
18
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22
# is contrary to our usage. Disable this feature.
23
alias -g '${1+"$@"}'='"$@"'
26
case `(set -o) 2>/dev/null` in
27
*posix*) set -o posix ;;
36
# Avoid depending upon Character Ranges.
37
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40
as_cr_digits='0123456789'
41
as_cr_alnum=$as_cr_Letters$as_cr_digits
43
# The user is always right.
44
if test "${PATH_SEPARATOR+set}" != set; then
45
echo "#! /bin/sh" >conf$$.sh
46
echo "exit 0" >>conf$$.sh
48
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
56
# Support unset when possible.
57
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
65
# We need space, tab and new line, in precisely that order. Quoting is
66
# there to prevent editors from complaining about space-tab.
67
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
68
# splitting by setting IFS to empty value.)
73
# Find who we are. Look in the path if we contain no directory separator.
75
*[\\/]* ) as_myself=$0 ;;
76
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
80
test -z "$as_dir" && as_dir=.
81
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
87
# We did not find ourselves, most probably we were run as `sh COMMAND'
88
# in which case we are not to be found in the path.
89
if test "x$as_myself" = x; then
92
if test ! -f "$as_myself"; then
93
echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
97
# Work around bugs in pre-3.0 UWIN ksh.
98
for as_var in ENV MAIL MAILPATH
99
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
107
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
108
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
111
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112
eval $as_var=C; export $as_var
114
($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
118
# Required to use basename.
119
if expr a : '\(a\)' >/dev/null 2>&1 &&
120
test "X`expr 00001 : '.*\(...\)'`" = X001; then
126
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
133
# Name of the executable.
134
as_me=`$as_basename -- "$0" ||
135
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136
X"$0" : 'X\(//\)$' \| \
137
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
139
sed '/^.*\/\([^/][^/]*\)\/*$/{
157
if test "x$CONFIG_SHELL" = x; then
158
if (eval ":") 2>/dev/null; then
164
if test $as_have_required = yes && (eval ":
174
as_func_ret_success () {
177
as_func_ret_failure () {
182
if as_func_success; then
186
echo as_func_success failed.
189
if as_func_failure; then
191
echo as_func_failure succeeded.
194
if as_func_ret_success; then
198
echo as_func_ret_success failed.
201
if as_func_ret_failure; then
203
echo as_func_ret_failure succeeded.
206
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
210
echo positional parameters were not saved.
213
test \$exitcode = 0) || { (exit 1); exit 1; }
218
test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
219
test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
220
") 2> /dev/null; then
224
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
225
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
228
test -z "$as_dir" && as_dir=.
231
for as_base in sh bash ksh sh5; do
232
as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
239
for as_shell in $as_candidate_shells $SHELL; do
240
# Try only shells that exist, to save several forks.
241
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
242
{ ("$as_shell") 2> /dev/null <<\_ASEOF
243
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
246
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
247
# is contrary to our usage. Disable this feature.
248
alias -g '${1+"$@"}'='"$@"'
251
case `(set -o) 2>/dev/null` in
252
*posix*) set -o posix ;;
261
CONFIG_SHELL=$as_shell
263
if { "$as_shell" 2> /dev/null <<\_ASEOF
264
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
267
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
268
# is contrary to our usage. Disable this feature.
269
alias -g '${1+"$@"}'='"$@"'
272
case `(set -o) 2>/dev/null` in
273
*posix*) set -o posix ;;
289
as_func_ret_success () {
292
as_func_ret_failure () {
297
if as_func_success; then
301
echo as_func_success failed.
304
if as_func_failure; then
306
echo as_func_failure succeeded.
309
if as_func_ret_success; then
313
echo as_func_ret_success failed.
316
if as_func_ret_failure; then
318
echo as_func_ret_failure succeeded.
321
if ( set x; as_func_ret_success y && test x = "$1" ); then
325
echo positional parameters were not saved.
328
test $exitcode = 0) || { (exit 1); exit 1; }
333
test "x$as_lineno_1" != "x$as_lineno_2" &&
334
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
345
if test "x$CONFIG_SHELL" != x; then
346
for as_var in BASH_ENV ENV
347
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
350
exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
354
if test $as_have_required = no; then
355
echo This script requires a shell more modern than all the
356
echo shells that I found on your system. Please install a
357
echo modern shell, or manually run the script under such a
358
echo shell if you do have one.
359
{ (exit 1); exit 1; }
369
(eval "as_func_return () {
378
as_func_ret_success () {
381
as_func_ret_failure () {
386
if as_func_success; then
390
echo as_func_success failed.
393
if as_func_failure; then
395
echo as_func_failure succeeded.
398
if as_func_ret_success; then
402
echo as_func_ret_success failed.
405
if as_func_ret_failure; then
407
echo as_func_ret_failure succeeded.
410
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
414
echo positional parameters were not saved.
417
test \$exitcode = 0") || {
418
echo No shell found that supports shell functions.
419
echo Please tell autoconf@gnu.org about your system,
420
echo including any error possibly output before this
428
test "x$as_lineno_1" != "x$as_lineno_2" &&
429
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
431
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
432
# uniformly replaced by the line number. The first 'sed' inserts a
433
# line-number line after each line using $LINENO; the second 'sed'
434
# does the real work. The second script uses 'N' to pair each
435
# line-number line with the line containing $LINENO, and appends
436
# trailing '-' during substitution so that $LINENO is not a special
438
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
439
# scripts with optimization help from Paolo Bonzini. Blame Lee
440
# E. McMahon (1931-1989) for sed's syntax. :-)
452
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
456
chmod +x "$as_me.lineno" ||
457
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
458
{ (exit 1); exit 1; }; }
460
# Don't try to exec as it changes $[0], causing all sort of problems
461
# (the dirname of $[0] is not the place where we might find the
462
# original and so on. Autoconf is especially sensitive to this).
464
# Exit status is that of the last command.
469
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
475
ECHO_C= ECHO_N= ECHO_T=
479
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
486
if expr a : '\(a\)' >/dev/null 2>&1 &&
487
test "X`expr 00001 : '.*\(...\)'`" = X001; then
493
rm -f conf$$ conf$$.exe conf$$.file
494
if test -d conf$$.dir; then
495
rm -f conf$$.dir/conf$$.file
501
if ln -s conf$$.file conf$$ 2>/dev/null; then
503
# ... but there are two gotchas:
504
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
505
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
506
# In both cases, we have to default to `cp -p'.
507
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
509
elif ln conf$$.file conf$$ 2>/dev/null; then
514
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
515
rmdir conf$$.dir 2>/dev/null
517
if mkdir -p . 2>/dev/null; then
520
test -d ./-p && rmdir ./-p
524
if test -x / >/dev/null 2>&1; then
527
if ls -dL / >/dev/null 2>&1; then
534
if test -d "$1"; then
540
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541
???[sx]*):;;*)false;;esac;fi
545
as_executable_p=$as_test_x
547
# Sed expression to map a string onto a valid CPP name.
548
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
550
# Sed expression to map a string onto a valid variable name.
551
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
556
# Check that we are running under the correct shell.
557
SHELL=${CONFIG_SHELL-/bin/sh}
561
# Remove one level of quotation (which was required for Make).
562
ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
567
if test "X$1" = X--no-reexec; then
568
# Discard the --no-reexec flag, and continue.
570
elif test "X$1" = X--fallback-echo; then
571
# Avoid inline document here, it may be left over
573
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
574
# Yippee, $echo works!
577
# Restart under the correct shell.
578
exec $SHELL "$0" --no-reexec ${1+"$@"}
581
if test "X$1" = X--fallback-echo; then
582
# used as fallback echo
590
# The HP-UX ksh and POSIX shell print the target directory to stdout
592
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
594
if test -z "$ECHO"; then
595
if test "X${echo_test_string+set}" != Xset; then
596
# find a string as large as possible, as long as the shell can cope with it
597
for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
598
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
599
if (echo_test_string=`eval $cmd`) 2>/dev/null &&
600
echo_test_string=`eval $cmd` &&
601
(test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
608
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
609
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
610
test "X$echo_testing_string" = "X$echo_test_string"; then
613
# The Solaris, AIX, and Digital Unix default echo programs unquote
614
# backslashes. This makes it impossible to quote backslashes using
615
# echo "$something" | sed 's/\\/\\\\/g'
617
# So, first we look for a working echo in the user's PATH.
619
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
620
for dir in $PATH /usr/ucb; do
622
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
623
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
624
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
625
test "X$echo_testing_string" = "X$echo_test_string"; then
632
if test "X$echo" = Xecho; then
633
# We didn't find a better echo, so look for alternatives.
634
if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
635
echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
636
test "X$echo_testing_string" = "X$echo_test_string"; then
637
# This shell has a builtin print -r that does the trick.
639
elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
640
test "X$CONFIG_SHELL" != X/bin/ksh; then
641
# If we have ksh, try running configure again with it.
642
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
643
export ORIGINAL_CONFIG_SHELL
644
CONFIG_SHELL=/bin/ksh
646
exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
650
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
651
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
652
test "X$echo_testing_string" = "X$echo_test_string"; then
655
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
656
test "X$echo_testing_string" = 'X\t' &&
657
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
658
test "X$echo_testing_string" = "X$echo_test_string"; then
659
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
661
SHELL="$CONFIG_SHELL"
663
echo="$CONFIG_SHELL $0 --fallback-echo"
664
elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
665
test "X$echo_testing_string" = 'X\t' &&
666
echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
667
test "X$echo_testing_string" = "X$echo_test_string"; then
668
echo="$CONFIG_SHELL $0 --fallback-echo"
670
# maybe with a smaller string...
673
for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
674
if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
681
if test "$prev" != 'sed 50q "$0"'; then
682
echo_test_string=`eval $prev`
683
export echo_test_string
684
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
686
# Oops. We lost completely, so just stick with echo.
695
# Copy echo and quote the copy suitably for passing to libtool from
696
# the Makefile, instead of quoting the original, which is used later.
698
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
699
ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
705
tagnames=${tagnames+${tagnames},}CXX
707
tagnames=${tagnames+${tagnames},}F77
709
exec 7<&0 </dev/null 6>&1
712
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
713
# so uname gets run too.
714
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
719
ac_default_prefix=/usr/local
721
ac_config_libobj_dir=.
727
SHELL=${CONFIG_SHELL-/bin/sh}
729
# Identity of this package.
731
PACKAGE_TARNAME='ijs'
732
PACKAGE_VERSION='0.35'
733
PACKAGE_STRING='ijs 0.35'
734
PACKAGE_BUGREPORT='inkjet-list@linuxprinting.org'
736
ac_unique_file="ijs.c"
737
# Factoring default headers for most tests.
738
ac_includes_default="\
740
#ifdef HAVE_SYS_TYPES_H
741
# include <sys/types.h>
743
#ifdef HAVE_SYS_STAT_H
744
# include <sys/stat.h>
750
# ifdef HAVE_STDLIB_H
755
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
760
#ifdef HAVE_STRINGS_H
761
# include <strings.h>
763
#ifdef HAVE_INTTYPES_H
764
# include <inttypes.h>
782
program_transform_name
824
INSTALL_STRIP_PROGRAM
834
IJS_CURRENT_INTERFACE
888
SYSDEPS_WINDOWS_FALSE
899
ac_precious_vars='build_alias
916
# Initialize some variables set by options.
918
ac_init_version=false
919
# The variables have the same names as the options, with
920
# dashes changed to underlines.
928
program_transform_name=s,x,x,
936
# Installation directory options.
937
# These are left unexpanded so users can "make install exec_prefix=/foo"
938
# and all the variables that are supposed to be based on exec_prefix
939
# by default will actually change.
940
# Use braces instead of parens because sh, perl, etc. also accept them.
941
# (The list follows the same order as the GNU Coding Standards.)
942
bindir='${exec_prefix}/bin'
943
sbindir='${exec_prefix}/sbin'
944
libexecdir='${exec_prefix}/libexec'
945
datarootdir='${prefix}/share'
946
datadir='${datarootdir}'
947
sysconfdir='${prefix}/etc'
948
sharedstatedir='${prefix}/com'
949
localstatedir='${prefix}/var'
950
includedir='${prefix}/include'
951
oldincludedir='/usr/include'
952
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
953
infodir='${datarootdir}/info'
958
libdir='${exec_prefix}/lib'
959
localedir='${datarootdir}/locale'
960
mandir='${datarootdir}/man'
966
# If the previous option needs an argument, assign it.
967
if test -n "$ac_prev"; then
968
eval $ac_prev=\$ac_option
974
*=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
978
# Accept the important Cygnus configure options, so we can diagnose typos.
980
case $ac_dashdash$ac_option in
984
-bindir | --bindir | --bindi | --bind | --bin | --bi)
986
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
989
-build | --build | --buil | --bui | --bu)
990
ac_prev=build_alias ;;
991
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
992
build_alias=$ac_optarg ;;
994
-cache-file | --cache-file | --cache-fil | --cache-fi \
995
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
996
ac_prev=cache_file ;;
997
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
998
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
999
cache_file=$ac_optarg ;;
1001
--config-cache | -C)
1002
cache_file=config.cache ;;
1004
-datadir | --datadir | --datadi | --datad)
1006
-datadir=* | --datadir=* | --datadi=* | --datad=*)
1007
datadir=$ac_optarg ;;
1009
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1010
| --dataroo | --dataro | --datar)
1011
ac_prev=datarootdir ;;
1012
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1013
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1014
datarootdir=$ac_optarg ;;
1016
-disable-* | --disable-*)
1017
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1018
# Reject names that are not valid shell variable names.
1019
expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1020
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
1021
{ (exit 1); exit 1; }; }
1022
ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1023
eval enable_$ac_feature=no ;;
1025
-docdir | --docdir | --docdi | --doc | --do)
1027
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1028
docdir=$ac_optarg ;;
1030
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1032
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1033
dvidir=$ac_optarg ;;
1035
-enable-* | --enable-*)
1036
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1037
# Reject names that are not valid shell variable names.
1038
expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1039
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
1040
{ (exit 1); exit 1; }; }
1041
ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1042
eval enable_$ac_feature=\$ac_optarg ;;
1044
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1045
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1046
| --exec | --exe | --ex)
1047
ac_prev=exec_prefix ;;
1048
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1049
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1050
| --exec=* | --exe=* | --ex=*)
1051
exec_prefix=$ac_optarg ;;
1053
-gas | --gas | --ga | --g)
1054
# Obsolete; use --with-gas.
1057
-help | --help | --hel | --he | -h)
1058
ac_init_help=long ;;
1059
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1060
ac_init_help=recursive ;;
1061
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1062
ac_init_help=short ;;
1064
-host | --host | --hos | --ho)
1065
ac_prev=host_alias ;;
1066
-host=* | --host=* | --hos=* | --ho=*)
1067
host_alias=$ac_optarg ;;
1069
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1071
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1073
htmldir=$ac_optarg ;;
1075
-includedir | --includedir | --includedi | --included | --include \
1076
| --includ | --inclu | --incl | --inc)
1077
ac_prev=includedir ;;
1078
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1079
| --includ=* | --inclu=* | --incl=* | --inc=*)
1080
includedir=$ac_optarg ;;
1082
-infodir | --infodir | --infodi | --infod | --info | --inf)
1084
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1085
infodir=$ac_optarg ;;
1087
-libdir | --libdir | --libdi | --libd)
1089
-libdir=* | --libdir=* | --libdi=* | --libd=*)
1090
libdir=$ac_optarg ;;
1092
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1093
| --libexe | --libex | --libe)
1094
ac_prev=libexecdir ;;
1095
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1096
| --libexe=* | --libex=* | --libe=*)
1097
libexecdir=$ac_optarg ;;
1099
-localedir | --localedir | --localedi | --localed | --locale)
1100
ac_prev=localedir ;;
1101
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1102
localedir=$ac_optarg ;;
1104
-localstatedir | --localstatedir | --localstatedi | --localstated \
1105
| --localstate | --localstat | --localsta | --localst | --locals)
1106
ac_prev=localstatedir ;;
1107
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1108
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1109
localstatedir=$ac_optarg ;;
1111
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1113
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1114
mandir=$ac_optarg ;;
1116
-nfp | --nfp | --nf)
1117
# Obsolete; use --without-fp.
1120
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
1121
| --no-cr | --no-c | -n)
1124
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
1125
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1128
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1129
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1130
| --oldin | --oldi | --old | --ol | --o)
1131
ac_prev=oldincludedir ;;
1132
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1133
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1134
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1135
oldincludedir=$ac_optarg ;;
1137
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1139
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1140
prefix=$ac_optarg ;;
1142
-program-prefix | --program-prefix | --program-prefi | --program-pref \
1143
| --program-pre | --program-pr | --program-p)
1144
ac_prev=program_prefix ;;
1145
-program-prefix=* | --program-prefix=* | --program-prefi=* \
1146
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1147
program_prefix=$ac_optarg ;;
1149
-program-suffix | --program-suffix | --program-suffi | --program-suff \
1150
| --program-suf | --program-su | --program-s)
1151
ac_prev=program_suffix ;;
1152
-program-suffix=* | --program-suffix=* | --program-suffi=* \
1153
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1154
program_suffix=$ac_optarg ;;
1156
-program-transform-name | --program-transform-name \
1157
| --program-transform-nam | --program-transform-na \
1158
| --program-transform-n | --program-transform- \
1159
| --program-transform | --program-transfor \
1160
| --program-transfo | --program-transf \
1161
| --program-trans | --program-tran \
1162
| --progr-tra | --program-tr | --program-t)
1163
ac_prev=program_transform_name ;;
1164
-program-transform-name=* | --program-transform-name=* \
1165
| --program-transform-nam=* | --program-transform-na=* \
1166
| --program-transform-n=* | --program-transform-=* \
1167
| --program-transform=* | --program-transfor=* \
1168
| --program-transfo=* | --program-transf=* \
1169
| --program-trans=* | --program-tran=* \
1170
| --progr-tra=* | --program-tr=* | --program-t=*)
1171
program_transform_name=$ac_optarg ;;
1173
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1175
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1176
pdfdir=$ac_optarg ;;
1178
-psdir | --psdir | --psdi | --psd | --ps)
1180
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1183
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1184
| -silent | --silent | --silen | --sile | --sil)
1187
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1189
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1191
sbindir=$ac_optarg ;;
1193
-sharedstatedir | --sharedstatedir | --sharedstatedi \
1194
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1195
| --sharedst | --shareds | --shared | --share | --shar \
1197
ac_prev=sharedstatedir ;;
1198
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1199
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1200
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1202
sharedstatedir=$ac_optarg ;;
1204
-site | --site | --sit)
1206
-site=* | --site=* | --sit=*)
1209
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1211
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1212
srcdir=$ac_optarg ;;
1214
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1215
| --syscon | --sysco | --sysc | --sys | --sy)
1216
ac_prev=sysconfdir ;;
1217
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1218
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1219
sysconfdir=$ac_optarg ;;
1221
-target | --target | --targe | --targ | --tar | --ta | --t)
1222
ac_prev=target_alias ;;
1223
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1224
target_alias=$ac_optarg ;;
1226
-v | -verbose | --verbose | --verbos | --verbo | --verb)
1229
-version | --version | --versio | --versi | --vers | -V)
1230
ac_init_version=: ;;
1233
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1234
# Reject names that are not valid shell variable names.
1235
expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1236
{ echo "$as_me: error: invalid package name: $ac_package" >&2
1237
{ (exit 1); exit 1; }; }
1238
ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1239
eval with_$ac_package=\$ac_optarg ;;
1241
-without-* | --without-*)
1242
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1243
# Reject names that are not valid shell variable names.
1244
expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1245
{ echo "$as_me: error: invalid package name: $ac_package" >&2
1246
{ (exit 1); exit 1; }; }
1247
ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1248
eval with_$ac_package=no ;;
1251
# Obsolete; use --with-x.
1254
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1255
| --x-incl | --x-inc | --x-in | --x-i)
1256
ac_prev=x_includes ;;
1257
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1258
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1259
x_includes=$ac_optarg ;;
1261
-x-libraries | --x-libraries | --x-librarie | --x-librari \
1262
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1263
ac_prev=x_libraries ;;
1264
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1265
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1266
x_libraries=$ac_optarg ;;
1268
-*) { echo "$as_me: error: unrecognized option: $ac_option
1269
Try \`$0 --help' for more information." >&2
1270
{ (exit 1); exit 1; }; }
1274
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1275
# Reject names that are not valid shell variable names.
1276
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1277
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1278
{ (exit 1); exit 1; }; }
1279
eval $ac_envvar=\$ac_optarg
1280
export $ac_envvar ;;
1283
# FIXME: should be removed in autoconf 3.0.
1284
echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1285
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1286
echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1287
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1293
if test -n "$ac_prev"; then
1294
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1295
{ echo "$as_me: error: missing argument to $ac_option" >&2
1296
{ (exit 1); exit 1; }; }
1299
# Be sure to have absolute directory names.
1300
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1301
datadir sysconfdir sharedstatedir localstatedir includedir \
1302
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1303
libdir localedir mandir
1305
eval ac_val=\$$ac_var
1307
[\\/$]* | ?:[\\/]* ) continue;;
1308
NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1310
{ echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1311
{ (exit 1); exit 1; }; }
1314
# There might be people who depend on the old broken behavior: `$host'
1315
# used to hold the argument of --host etc.
1316
# FIXME: To remove some day.
1319
target=$target_alias
1321
# FIXME: To remove some day.
1322
if test "x$host_alias" != x; then
1323
if test "x$build_alias" = x; then
1324
cross_compiling=maybe
1325
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1326
If a cross compiler is detected then cross compile mode will be used." >&2
1327
elif test "x$build_alias" != "x$host_alias"; then
1333
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1335
test "$silent" = yes && exec 6>/dev/null
1338
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1339
ac_ls_di=`ls -di .` &&
1340
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1341
{ echo "$as_me: error: Working directory cannot be determined" >&2
1342
{ (exit 1); exit 1; }; }
1343
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1344
{ echo "$as_me: error: pwd does not report name of working directory" >&2
1345
{ (exit 1); exit 1; }; }
1348
# Find the source files, if location was not specified.
1349
if test -z "$srcdir"; then
1350
ac_srcdir_defaulted=yes
1351
# Try the directory containing this script, then the parent directory.
1352
ac_confdir=`$as_dirname -- "$0" ||
1353
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1354
X"$0" : 'X\(//\)[^/]' \| \
1355
X"$0" : 'X\(//\)$' \| \
1356
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1358
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1376
if test ! -r "$srcdir/$ac_unique_file"; then
1380
ac_srcdir_defaulted=no
1382
if test ! -r "$srcdir/$ac_unique_file"; then
1383
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1384
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1385
{ (exit 1); exit 1; }; }
1387
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1389
cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1390
{ (exit 1); exit 1; }; }
1392
# When building in place, set srcdir=.
1393
if test "$ac_abs_confdir" = "$ac_pwd"; then
1396
# Remove unnecessary trailing slashes from srcdir.
1397
# Double slashes in file names in object file debugging info
1398
# mess up M-x gdb in Emacs.
1400
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1402
for ac_var in $ac_precious_vars; do
1403
eval ac_env_${ac_var}_set=\${${ac_var}+set}
1404
eval ac_env_${ac_var}_value=\$${ac_var}
1405
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1406
eval ac_cv_env_${ac_var}_value=\$${ac_var}
1410
# Report the --help message.
1412
if test "$ac_init_help" = "long"; then
1413
# Omit some internal or obsolete options to make the list less imposing.
1414
# This message is too long to be a string in the A/UX 3.1 sh.
1416
\`configure' configures ijs 0.35 to adapt to many kinds of systems.
1418
Usage: $0 [OPTION]... [VAR=VALUE]...
1420
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1421
VAR=VALUE. See below for descriptions of some of the useful variables.
1423
Defaults for the options are specified in brackets.
1426
-h, --help display this help and exit
1427
--help=short display options specific to this package
1428
--help=recursive display the short help of all the included packages
1429
-V, --version display version information and exit
1430
-q, --quiet, --silent do not print \`checking...' messages
1431
--cache-file=FILE cache test results in FILE [disabled]
1432
-C, --config-cache alias for \`--cache-file=config.cache'
1433
-n, --no-create do not create output files
1434
--srcdir=DIR find the sources in DIR [configure dir or \`..']
1436
Installation directories:
1437
--prefix=PREFIX install architecture-independent files in PREFIX
1438
[$ac_default_prefix]
1439
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1442
By default, \`make install' will install all the files in
1443
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1444
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1445
for instance \`--prefix=\$HOME'.
1447
For better control, use the options below.
1449
Fine tuning of the installation directories:
1450
--bindir=DIR user executables [EPREFIX/bin]
1451
--sbindir=DIR system admin executables [EPREFIX/sbin]
1452
--libexecdir=DIR program executables [EPREFIX/libexec]
1453
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1454
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1455
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1456
--libdir=DIR object code libraries [EPREFIX/lib]
1457
--includedir=DIR C header files [PREFIX/include]
1458
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1459
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1460
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1461
--infodir=DIR info documentation [DATAROOTDIR/info]
1462
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1463
--mandir=DIR man documentation [DATAROOTDIR/man]
1464
--docdir=DIR documentation root @<:@DATAROOTDIR/doc/ijs@:>@
1465
--htmldir=DIR html documentation [DOCDIR]
1466
--dvidir=DIR dvi documentation [DOCDIR]
1467
--pdfdir=DIR pdf documentation [DOCDIR]
1468
--psdir=DIR ps documentation [DOCDIR]
1474
--program-prefix=PREFIX prepend PREFIX to installed program names
1475
--program-suffix=SUFFIX append SUFFIX to installed program names
1476
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
1479
--build=BUILD configure for building on BUILD [guessed]
1480
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1484
if test -n "$ac_init_help"; then
1485
case $ac_init_help in
1486
short | recursive ) echo "Configuration of ijs 0.35:";;
1491
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1492
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1493
--enable-shared@<:@=PKGS@:>@ build shared libraries @<:@default=no@:>@
1494
--enable-static@<:@=PKGS@:>@ build static libraries @<:@default=yes@:>@
1495
--enable-fast-install@<:@=PKGS@:>@
1496
optimize for fast installation @<:@default=yes@:>@
1497
--disable-dependency-tracking speeds up one-time build
1498
--enable-dependency-tracking do not reject slow dependency extractors
1499
--disable-libtool-lock avoid locking (might break parallel builds)
1502
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1503
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1504
--with-gnu-ld assume the C compiler uses GNU ld @<:@default=no@:>@
1505
--with-pic try to use only PIC/non-PIC objects @<:@default=use
1507
--with-tags@<:@=TAGS@:>@ include additional configurations @<:@automatic@:>@
1509
Some influential environment variables:
1510
CC C compiler command
1511
CFLAGS C compiler flags
1512
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1513
nonstandard directory <lib dir>
1514
LIBS libraries to pass to the linker, e.g. -l<library>
1515
CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1516
you have headers in a nonstandard directory <include dir>
1518
CXX C++ compiler command
1519
CXXFLAGS C++ compiler flags
1520
CXXCPP C++ preprocessor
1521
F77 Fortran 77 compiler command
1522
FFLAGS Fortran 77 compiler flags
1524
Use these variables to override the choices made by `configure' or to help
1525
it to find libraries and programs with nonstandard names/locations.
1527
Report bugs to <inkjet-list@linuxprinting.org>.
1532
if test "$ac_init_help" = "recursive"; then
1533
# If there are subdirs, report their specific --help.
1534
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1535
test -d "$ac_dir" || continue
1539
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1541
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1542
# A ".." for each directory in $ac_dir_suffix.
1543
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1544
case $ac_top_builddir_sub in
1545
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1546
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1549
ac_abs_top_builddir=$ac_pwd
1550
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1551
# for backward compatibility:
1552
ac_top_builddir=$ac_top_build_prefix
1555
.) # We are building in place.
1557
ac_top_srcdir=$ac_top_builddir_sub
1558
ac_abs_top_srcdir=$ac_pwd ;;
1559
[\\/]* | ?:[\\/]* ) # Absolute name.
1560
ac_srcdir=$srcdir$ac_dir_suffix;
1561
ac_top_srcdir=$srcdir
1562
ac_abs_top_srcdir=$srcdir ;;
1564
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1565
ac_top_srcdir=$ac_top_build_prefix$srcdir
1566
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1568
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1570
cd "$ac_dir" || { ac_status=$?; continue; }
1571
# Check for guested configure.
1572
if test -f "$ac_srcdir/configure.gnu"; then
1574
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
1575
elif test -f "$ac_srcdir/configure"; then
1577
$SHELL "$ac_srcdir/configure" --help=recursive
1579
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1581
cd "$ac_pwd" || { ac_status=$?; break; }
1585
test -n "$ac_init_help" && exit $ac_status
1586
if $ac_init_version; then
1589
generated by GNU Autoconf 2.61
1591
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1592
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1593
This configure script is free software; the Free Software Foundation
1594
gives unlimited permission to copy, distribute and modify it.
1598
cat >config.log <<_ACEOF
1599
This file contains any messages produced by compilers while
1600
running configure, to aid debugging if configure makes a mistake.
1602
It was created by ijs $as_me 0.35, which was
1603
generated by GNU Autoconf 2.61. Invocation command line was
1611
@%:@@%:@ --------- @%:@@%:@
1612
@%:@@%:@ Platform. @%:@@%:@
1613
@%:@@%:@ --------- @%:@@%:@
1615
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1616
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1617
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1618
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1619
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1621
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1622
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1624
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1625
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1626
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1627
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1628
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1629
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1630
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1634
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1638
test -z "$as_dir" && as_dir=.
1639
echo "PATH: $as_dir"
1648
@%:@@%:@ ----------- @%:@@%:@
1649
@%:@@%:@ Core tests. @%:@@%:@
1650
@%:@@%:@ ----------- @%:@@%:@
1655
# Keep a trace of the command line.
1656
# Strip out --no-create and --no-recursion so they do not pile up.
1657
# Strip out --silent because we don't want to record it for future runs.
1658
# Also quote any args containing shell meta-characters.
1659
# Make two passes to allow for proper duplicate-argument suppression.
1663
ac_must_keep_next=false
1669
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1670
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1671
| -silent | --silent | --silen | --sile | --sil)
1674
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1677
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1679
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1680
if test $ac_must_keep_next = true; then
1681
ac_must_keep_next=false # Got value, back to normal.
1684
*=* | --config-cache | -C | -disable-* | --disable-* \
1685
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1686
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1687
| -with-* | --with-* | -without-* | --without-* | --x)
1688
case "$ac_configure_args0 " in
1689
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1692
-* ) ac_must_keep_next=true ;;
1695
ac_configure_args="$ac_configure_args '$ac_arg'"
1700
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1701
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1703
# When interrupted or exit'd, cleanup temporary files, and complete
1704
# config.log. We remove comments because anyway the quotes in there
1705
# would cause problems or look ugly.
1706
# WARNING: Use '\'' to represent an apostrophe within the trap.
1707
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1708
trap 'exit_status=$?
1709
# Save into config.log some information that might help in debugging.
1714
@%:@@%:@ ---------------- @%:@@%:@
1715
@%:@@%:@ Cache variables. @%:@@%:@
1716
@%:@@%:@ ---------------- @%:@@%:@
1719
# The following way of writing the cache mishandles newlines in values,
1721
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1722
eval ac_val=\$$ac_var
1726
*_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1727
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1730
_ | IFS | as_nl) ;; #(
1731
*) $as_unset $ac_var ;;
1736
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1737
*${as_nl}ac_space=\ *)
1739
"s/'\''/'\''\\\\'\'''\''/g;
1740
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1743
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1751
@%:@@%:@ ----------------- @%:@@%:@
1752
@%:@@%:@ Output variables. @%:@@%:@
1753
@%:@@%:@ ----------------- @%:@@%:@
1756
for ac_var in $ac_subst_vars
1758
eval ac_val=\$$ac_var
1760
*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1762
echo "$ac_var='\''$ac_val'\''"
1766
if test -n "$ac_subst_files"; then
1768
@%:@@%:@ ------------------- @%:@@%:@
1769
@%:@@%:@ File substitutions. @%:@@%:@
1770
@%:@@%:@ ------------------- @%:@@%:@
1773
for ac_var in $ac_subst_files
1775
eval ac_val=\$$ac_var
1777
*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1779
echo "$ac_var='\''$ac_val'\''"
1784
if test -s confdefs.h; then
1786
@%:@@%:@ ----------- @%:@@%:@
1787
@%:@@%:@ confdefs.h. @%:@@%:@
1788
@%:@@%:@ ----------- @%:@@%:@
1794
test "$ac_signal" != 0 &&
1795
echo "$as_me: caught signal $ac_signal"
1796
echo "$as_me: exit $exit_status"
1798
rm -f core *.core core.conftest.* &&
1799
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1802
for ac_signal in 1 2 13 15; do
1803
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1807
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1808
rm -f -r conftest* confdefs.h
1810
# Predefined preprocessor variables.
1812
cat >>confdefs.h <<_ACEOF
1813
@%:@define PACKAGE_NAME "$PACKAGE_NAME"
1817
cat >>confdefs.h <<_ACEOF
1818
@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1822
cat >>confdefs.h <<_ACEOF
1823
@%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
1827
cat >>confdefs.h <<_ACEOF
1828
@%:@define PACKAGE_STRING "$PACKAGE_STRING"
1832
cat >>confdefs.h <<_ACEOF
1833
@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1837
# Let the site file select an alternate cache file if it wants to.
1838
# Prefer explicitly selected file to automatically selected ones.
1839
if test -n "$CONFIG_SITE"; then
1840
set x "$CONFIG_SITE"
1841
elif test "x$prefix" != xNONE; then
1842
set x "$prefix/share/config.site" "$prefix/etc/config.site"
1844
set x "$ac_default_prefix/share/config.site" \
1845
"$ac_default_prefix/etc/config.site"
1850
if test -r "$ac_site_file"; then
1851
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1852
echo "$as_me: loading site script $ac_site_file" >&6;}
1853
sed 's/^/| /' "$ac_site_file" >&5
1858
if test -r "$cache_file"; then
1859
# Some versions of bash will fail to source /dev/null (special
1860
# files actually), so we avoid doing that.
1861
if test -f "$cache_file"; then
1862
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
1863
echo "$as_me: loading cache $cache_file" >&6;}
1865
[\\/]* | ?:[\\/]* ) . "$cache_file";;
1866
*) . "./$cache_file";;
1870
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
1871
echo "$as_me: creating cache $cache_file" >&6;}
1875
# Check that the precious variables saved in the cache have kept the same
1877
ac_cache_corrupted=false
1878
for ac_var in $ac_precious_vars; do
1879
eval ac_old_set=\$ac_cv_env_${ac_var}_set
1880
eval ac_new_set=\$ac_env_${ac_var}_set
1881
eval ac_old_val=\$ac_cv_env_${ac_var}_value
1882
eval ac_new_val=\$ac_env_${ac_var}_value
1883
case $ac_old_set,$ac_new_set in
1885
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1886
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1887
ac_cache_corrupted=: ;;
1889
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1890
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1891
ac_cache_corrupted=: ;;
1894
if test "x$ac_old_val" != "x$ac_new_val"; then
1895
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1896
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1897
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1898
echo "$as_me: former value: $ac_old_val" >&2;}
1899
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1900
echo "$as_me: current value: $ac_new_val" >&2;}
1901
ac_cache_corrupted=:
1904
# Pass precious variables to config.status.
1905
if test "$ac_new_set" = set; then
1907
*\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1908
*) ac_arg=$ac_var=$ac_new_val ;;
1910
case " $ac_configure_args " in
1911
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1912
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1916
if $ac_cache_corrupted; then
1917
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1918
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1919
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1920
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1921
{ (exit 1); exit 1; }; }
1949
ac_cpp='$CPP $CPPFLAGS'
1950
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1951
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1952
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1963
IJS_MINOR_VERSION=35
1966
IJS_CURRENT_INTERFACE=1
1977
am__api_version='1.10'
1980
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1981
if test -f "$ac_dir/install-sh"; then
1983
ac_install_sh="$ac_aux_dir/install-sh -c"
1985
elif test -f "$ac_dir/install.sh"; then
1987
ac_install_sh="$ac_aux_dir/install.sh -c"
1989
elif test -f "$ac_dir/shtool"; then
1991
ac_install_sh="$ac_aux_dir/shtool install -c"
1995
if test -z "$ac_aux_dir"; then
1996
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1997
echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1998
{ (exit 1); exit 1; }; }
2001
# These three variables are undocumented and unsupported,
2002
# and are intended to be withdrawn in a future Autoconf release.
2003
# They can cause serious problems if a builder's source tree is in a directory
2004
# whose full name contains unusual characters.
2005
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2006
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2007
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2010
# Find a good install program. We prefer a C program (faster),
2011
# so one script is as good as another. But avoid the broken or
2012
# incompatible versions:
2013
# SysV /etc/install, /usr/sbin/install
2014
# SunOS /usr/etc/install
2015
# IRIX /sbin/install
2017
# AmigaOS /C/install, which installs bootblocks on floppy discs
2018
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2019
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2020
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2021
# OS/2's system install, which has a completely different semantic
2022
# ./install, which can be erroneously created by make from ./install.sh.
2023
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2024
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2025
if test -z "$INSTALL"; then
2026
if test "${ac_cv_path_install+set}" = set; then
2027
echo $ECHO_N "(cached) $ECHO_C" >&6
2029
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2033
test -z "$as_dir" && as_dir=.
2034
# Account for people who put trailing slashes in PATH elements.
2036
./ | .// | /cC/* | \
2037
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2038
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2041
# OSF1 and SCO ODT 3.0 have their own names for install.
2042
# Don't use installbsd from OSF since it installs stuff as root
2044
for ac_prog in ginstall scoinst install; do
2045
for ac_exec_ext in '' $ac_executable_extensions; do
2046
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2047
if test $ac_prog = install &&
2048
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2049
# AIX install. It has an incompatible calling convention.
2051
elif test $ac_prog = install &&
2052
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2053
# program-specific install script used by HP pwplus--don't use.
2056
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2069
if test "${ac_cv_path_install+set}" = set; then
2070
INSTALL=$ac_cv_path_install
2072
# As a last resort, use the slow shell script. Don't cache a
2073
# value for INSTALL within a source directory, because that will
2074
# break other packages using the cache if that directory is
2075
# removed, or if the value is a relative name.
2076
INSTALL=$ac_install_sh
2079
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2080
echo "${ECHO_T}$INSTALL" >&6; }
2082
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2083
# It thinks the first close brace ends the variable substitution.
2084
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2086
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2088
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2090
{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2091
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2094
echo timestamp > conftest.file
2095
# Do `set' in a subshell so we don't clobber the current shell's
2096
# arguments. Must try -L first in case configure is actually a
2097
# symlink; some systems play weird games with the mod time of symlinks
2098
# (eg FreeBSD returns the mod time of the symlink's containing
2101
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2102
if test "$*" = "X"; then
2104
set X `ls -t $srcdir/configure conftest.file`
2107
if test "$*" != "X $srcdir/configure conftest.file" \
2108
&& test "$*" != "X conftest.file $srcdir/configure"; then
2110
# If neither matched, then we have a broken ls. This can happen
2111
# if, for instance, CONFIG_SHELL is bash and it inherits a
2112
# broken ls alias from the environment. This has actually
2113
# happened. Such a system could not be considered "sane".
2114
{ { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2115
alias in your environment" >&5
2116
echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2117
alias in your environment" >&2;}
2118
{ (exit 1); exit 1; }; }
2121
test "$2" = conftest.file
2127
{ { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2128
Check your system clock" >&5
2129
echo "$as_me: error: newly created file is older than distributed files!
2130
Check your system clock" >&2;}
2131
{ (exit 1); exit 1; }; }
2133
{ echo "$as_me:$LINENO: result: yes" >&5
2134
echo "${ECHO_T}yes" >&6; }
2135
test "$program_prefix" != NONE &&
2136
program_transform_name="s&^&$program_prefix&;$program_transform_name"
2137
# Use a double $ so make ignores it.
2138
test "$program_suffix" != NONE &&
2139
program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2140
# Double any \ or $. echo might interpret backslashes.
2141
# By default was `s,x,x', remove it if useless.
2142
cat <<\_ACEOF >conftest.sed
2143
s/[\\$]/&&/g;s/;s,x,x,$//
2145
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2148
# expand $ac_aux_dir to an absolute path
2149
am_aux_dir=`cd $ac_aux_dir && pwd`
2151
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2152
# Use eval to expand $SHELL
2153
if eval "$MISSING --run true"; then
2154
am_missing_run="$MISSING --run "
2157
{ echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2158
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2161
{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2162
echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2163
if test -z "$MKDIR_P"; then
2164
if test "${ac_cv_path_mkdir+set}" = set; then
2165
echo $ECHO_N "(cached) $ECHO_C" >&6
2167
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2168
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2171
test -z "$as_dir" && as_dir=.
2172
for ac_prog in mkdir gmkdir; do
2173
for ac_exec_ext in '' $ac_executable_extensions; do
2174
{ test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2175
case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2176
'mkdir (GNU coreutils) '* | \
2177
'mkdir (coreutils) '* | \
2178
'mkdir (fileutils) '4.1*)
2179
ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2189
if test "${ac_cv_path_mkdir+set}" = set; then
2190
MKDIR_P="$ac_cv_path_mkdir -p"
2192
# As a last resort, use the slow shell script. Don't cache a
2193
# value for MKDIR_P within a source directory, because that will
2194
# break other packages using the cache if that directory is
2195
# removed, or if the value is a relative name.
2196
test -d ./--version && rmdir ./--version
2197
MKDIR_P="$ac_install_sh -d"
2200
{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2201
echo "${ECHO_T}$MKDIR_P" >&6; }
2205
[\\/$]* | ?:[\\/]*) ;;
2206
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2209
for ac_prog in gawk mawk nawk awk
2211
# Extract the first word of "$ac_prog", so it can be a program name with args.
2212
set dummy $ac_prog; ac_word=$2
2213
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2214
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2215
if test "${ac_cv_prog_AWK+set}" = set; then
2216
echo $ECHO_N "(cached) $ECHO_C" >&6
2218
if test -n "$AWK"; then
2219
ac_cv_prog_AWK="$AWK" # Let the user override the test.
2221
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2225
test -z "$as_dir" && as_dir=.
2226
for ac_exec_ext in '' $ac_executable_extensions; do
2227
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2228
ac_cv_prog_AWK="$ac_prog"
2229
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2239
if test -n "$AWK"; then
2240
{ echo "$as_me:$LINENO: result: $AWK" >&5
2241
echo "${ECHO_T}$AWK" >&6; }
2243
{ echo "$as_me:$LINENO: result: no" >&5
2244
echo "${ECHO_T}no" >&6; }
2248
test -n "$AWK" && break
2251
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2252
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2253
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2254
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2255
echo $ECHO_N "(cached) $ECHO_C" >&6
2257
cat >conftest.make <<\_ACEOF
2260
@echo '@@@%%%=$(MAKE)=@@@%%%'
2262
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2263
case `${MAKE-make} -f conftest.make 2>/dev/null` in
2265
eval ac_cv_prog_make_${ac_make}_set=yes;;
2267
eval ac_cv_prog_make_${ac_make}_set=no;;
2271
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2272
{ echo "$as_me:$LINENO: result: yes" >&5
2273
echo "${ECHO_T}yes" >&6; }
2276
{ echo "$as_me:$LINENO: result: no" >&5
2277
echo "${ECHO_T}no" >&6; }
2278
SET_MAKE="MAKE=${MAKE-make}"
2281
rm -rf .tst 2>/dev/null
2282
mkdir .tst 2>/dev/null
2283
if test -d .tst; then
2288
rmdir .tst 2>/dev/null
2290
if test "`cd $srcdir && pwd`" != "`pwd`"; then
2291
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2292
# is not polluted with repeated "-I."
2293
am__isrc=' -I$(srcdir)'
2294
# test to see if srcdir already configured
2295
if test -f $srcdir/config.status; then
2296
{ { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2297
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2298
{ (exit 1); exit 1; }; }
2302
# test whether we have cygpath
2303
if test -z "$CYGPATH_W"; then
2304
if (cygpath --version) >/dev/null 2>/dev/null; then
2305
CYGPATH_W='cygpath -w'
2312
# Define the identity of the package.
2317
cat >>confdefs.h <<_ACEOF
2318
@%:@define PACKAGE "$PACKAGE"
2322
cat >>confdefs.h <<_ACEOF
2323
@%:@define VERSION "$VERSION"
2326
# Some tools Automake needs.
2328
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2331
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2334
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2337
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2340
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2342
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2344
# Installed binaries are usually stripped using `strip' when the user
2345
# run `make install-strip'. However `strip' might not be the right
2346
# tool to use in cross-compilation environments, therefore Automake
2347
# will honor the `STRIP' environment variable to overrule this program.
2348
if test "$cross_compiling" != no; then
2349
if test -n "$ac_tool_prefix"; then
2350
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2351
set dummy ${ac_tool_prefix}strip; ac_word=$2
2352
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2353
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2354
if test "${ac_cv_prog_STRIP+set}" = set; then
2355
echo $ECHO_N "(cached) $ECHO_C" >&6
2357
if test -n "$STRIP"; then
2358
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2360
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2364
test -z "$as_dir" && as_dir=.
2365
for ac_exec_ext in '' $ac_executable_extensions; do
2366
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2367
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2368
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2377
STRIP=$ac_cv_prog_STRIP
2378
if test -n "$STRIP"; then
2379
{ echo "$as_me:$LINENO: result: $STRIP" >&5
2380
echo "${ECHO_T}$STRIP" >&6; }
2382
{ echo "$as_me:$LINENO: result: no" >&5
2383
echo "${ECHO_T}no" >&6; }
2388
if test -z "$ac_cv_prog_STRIP"; then
2390
# Extract the first word of "strip", so it can be a program name with args.
2391
set dummy strip; ac_word=$2
2392
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2393
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2394
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2395
echo $ECHO_N "(cached) $ECHO_C" >&6
2397
if test -n "$ac_ct_STRIP"; then
2398
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2400
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2404
test -z "$as_dir" && as_dir=.
2405
for ac_exec_ext in '' $ac_executable_extensions; do
2406
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2407
ac_cv_prog_ac_ct_STRIP="strip"
2408
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2417
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2418
if test -n "$ac_ct_STRIP"; then
2419
{ echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2420
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2422
{ echo "$as_me:$LINENO: result: no" >&5
2423
echo "${ECHO_T}no" >&6; }
2426
if test "x$ac_ct_STRIP" = x; then
2429
case $cross_compiling:$ac_tool_warned in
2431
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2432
whose name does not start with the host triplet. If you think this
2433
configuration is useful to you, please write to autoconf@gnu.org." >&5
2434
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2435
whose name does not start with the host triplet. If you think this
2436
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2437
ac_tool_warned=yes ;;
2442
STRIP="$ac_cv_prog_STRIP"
2446
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2448
# We need awk for the "check" target. The system "awk" is bad on
2450
# Always define AMTAR for backward compatibility.
2452
AMTAR=${AMTAR-"${am_missing_run}tar"}
2454
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2470
LT_RELEASE=$IJS_MAJOR_VERSION.$IJS_MINOR_VERSION
2471
LT_CURRENT=$IJS_CURRENT_INTERFACE
2472
LT_REVISION=$IJS_INTERFACE_AGE
2473
LT_AGE=$IJS_BINARY_AGE
2480
# Check whether --enable-shared was given.
2481
if test "${enable_shared+set}" = set; then
2482
enableval=$enable_shared; p=${PACKAGE-default}
2484
yes) enable_shared=yes ;;
2485
no) enable_shared=no ;;
2488
# Look at the argument we got. We use all the common list separators.
2489
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2490
for pkg in $enableval; do
2492
if test "X$pkg" = "X$p"; then
2505
# Check whether --enable-static was given.
2506
if test "${enable_static+set}" = set; then
2507
enableval=$enable_static; p=${PACKAGE-default}
2509
yes) enable_static=yes ;;
2510
no) enable_static=no ;;
2513
# Look at the argument we got. We use all the common list separators.
2514
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2515
for pkg in $enableval; do
2517
if test "X$pkg" = "X$p"; then
2529
# Check whether --enable-fast-install was given.
2530
if test "${enable_fast_install+set}" = set; then
2531
enableval=$enable_fast_install; p=${PACKAGE-default}
2533
yes) enable_fast_install=yes ;;
2534
no) enable_fast_install=no ;;
2536
enable_fast_install=no
2537
# Look at the argument we got. We use all the common list separators.
2538
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2539
for pkg in $enableval; do
2541
if test "X$pkg" = "X$p"; then
2542
enable_fast_install=yes
2549
enable_fast_install=yes
2553
# Make sure we can run config.sub.
2554
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2555
{ { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2556
echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2557
{ (exit 1); exit 1; }; }
2559
{ echo "$as_me:$LINENO: checking build system type" >&5
2560
echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2561
if test "${ac_cv_build+set}" = set; then
2562
echo $ECHO_N "(cached) $ECHO_C" >&6
2564
ac_build_alias=$build_alias
2565
test "x$ac_build_alias" = x &&
2566
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2567
test "x$ac_build_alias" = x &&
2568
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2569
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2570
{ (exit 1); exit 1; }; }
2571
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2572
{ { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2573
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2574
{ (exit 1); exit 1; }; }
2577
{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2578
echo "${ECHO_T}$ac_cv_build" >&6; }
2579
case $ac_cv_build in
2581
*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2582
echo "$as_me: error: invalid value of canonical build" >&2;}
2583
{ (exit 1); exit 1; }; };;
2586
ac_save_IFS=$IFS; IFS='-'
2592
# Remember, the first character of IFS is used to create $*,
2593
# except with old shells:
2596
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2599
{ echo "$as_me:$LINENO: checking host system type" >&5
2600
echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2601
if test "${ac_cv_host+set}" = set; then
2602
echo $ECHO_N "(cached) $ECHO_C" >&6
2604
if test "x$host_alias" = x; then
2605
ac_cv_host=$ac_cv_build
2607
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2608
{ { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2609
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2610
{ (exit 1); exit 1; }; }
2614
{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2615
echo "${ECHO_T}$ac_cv_host" >&6; }
2618
*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2619
echo "$as_me: error: invalid value of canonical host" >&2;}
2620
{ (exit 1); exit 1; }; };;
2623
ac_save_IFS=$IFS; IFS='-'
2629
# Remember, the first character of IFS is used to create $*,
2630
# except with old shells:
2633
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2636
DEPDIR="${am__leading_dot}deps"
2638
ac_config_commands="$ac_config_commands depfiles"
2641
am_make=${MAKE-make}
2642
cat > confinc << 'END'
2647
# If we don't find an include directive, just comment out the code.
2648
{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2649
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2653
# First try GNU make style include.
2654
echo "include confinc" > confmf
2655
# We grep out `Entering directory' and `Leaving directory'
2656
# messages which can occur if `w' ends up in MAKEFLAGS.
2657
# In particular we don't look at `^make:' because GNU make might
2658
# be invoked under some other name (usually "gmake"), in which
2659
# case it prints its new name instead of `make'.
2660
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2665
# Now try BSD make style include.
2666
if test "$am__include" = "#"; then
2667
echo '.include "confinc"' > confmf
2668
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2669
am__include=.include
2676
{ echo "$as_me:$LINENO: result: $_am_result" >&5
2677
echo "${ECHO_T}$_am_result" >&6; }
2678
rm -f confinc confmf
2680
# Check whether --enable-dependency-tracking was given.
2681
if test "${enable_dependency_tracking+set}" = set; then
2682
enableval=$enable_dependency_tracking;
2685
if test "x$enable_dependency_tracking" != xno; then
2686
am_depcomp="$ac_aux_dir/depcomp"
2689
if test "x$enable_dependency_tracking" != xno; then
2699
ac_cpp='$CPP $CPPFLAGS'
2700
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2701
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2702
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2703
if test -n "$ac_tool_prefix"; then
2704
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2705
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2706
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2707
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2708
if test "${ac_cv_prog_CC+set}" = set; then
2709
echo $ECHO_N "(cached) $ECHO_C" >&6
2711
if test -n "$CC"; then
2712
ac_cv_prog_CC="$CC" # Let the user override the test.
2714
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2718
test -z "$as_dir" && as_dir=.
2719
for ac_exec_ext in '' $ac_executable_extensions; do
2720
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2721
ac_cv_prog_CC="${ac_tool_prefix}gcc"
2722
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2732
if test -n "$CC"; then
2733
{ echo "$as_me:$LINENO: result: $CC" >&5
2734
echo "${ECHO_T}$CC" >&6; }
2736
{ echo "$as_me:$LINENO: result: no" >&5
2737
echo "${ECHO_T}no" >&6; }
2742
if test -z "$ac_cv_prog_CC"; then
2744
# Extract the first word of "gcc", so it can be a program name with args.
2745
set dummy gcc; ac_word=$2
2746
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2747
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2748
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2749
echo $ECHO_N "(cached) $ECHO_C" >&6
2751
if test -n "$ac_ct_CC"; then
2752
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2754
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2758
test -z "$as_dir" && as_dir=.
2759
for ac_exec_ext in '' $ac_executable_extensions; do
2760
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2761
ac_cv_prog_ac_ct_CC="gcc"
2762
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2771
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2772
if test -n "$ac_ct_CC"; then
2773
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2774
echo "${ECHO_T}$ac_ct_CC" >&6; }
2776
{ echo "$as_me:$LINENO: result: no" >&5
2777
echo "${ECHO_T}no" >&6; }
2780
if test "x$ac_ct_CC" = x; then
2783
case $cross_compiling:$ac_tool_warned in
2785
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2786
whose name does not start with the host triplet. If you think this
2787
configuration is useful to you, please write to autoconf@gnu.org." >&5
2788
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2789
whose name does not start with the host triplet. If you think this
2790
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2791
ac_tool_warned=yes ;;
2799
if test -z "$CC"; then
2800
if test -n "$ac_tool_prefix"; then
2801
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2802
set dummy ${ac_tool_prefix}cc; ac_word=$2
2803
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2804
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2805
if test "${ac_cv_prog_CC+set}" = set; then
2806
echo $ECHO_N "(cached) $ECHO_C" >&6
2808
if test -n "$CC"; then
2809
ac_cv_prog_CC="$CC" # Let the user override the test.
2811
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2815
test -z "$as_dir" && as_dir=.
2816
for ac_exec_ext in '' $ac_executable_extensions; do
2817
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2818
ac_cv_prog_CC="${ac_tool_prefix}cc"
2819
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2829
if test -n "$CC"; then
2830
{ echo "$as_me:$LINENO: result: $CC" >&5
2831
echo "${ECHO_T}$CC" >&6; }
2833
{ echo "$as_me:$LINENO: result: no" >&5
2834
echo "${ECHO_T}no" >&6; }
2840
if test -z "$CC"; then
2841
# Extract the first word of "cc", so it can be a program name with args.
2842
set dummy cc; ac_word=$2
2843
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2844
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2845
if test "${ac_cv_prog_CC+set}" = set; then
2846
echo $ECHO_N "(cached) $ECHO_C" >&6
2848
if test -n "$CC"; then
2849
ac_cv_prog_CC="$CC" # Let the user override the test.
2852
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2856
test -z "$as_dir" && as_dir=.
2857
for ac_exec_ext in '' $ac_executable_extensions; do
2858
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2859
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2860
ac_prog_rejected=yes
2864
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2871
if test $ac_prog_rejected = yes; then
2872
# We found a bogon in the path, so make sure we never use it.
2873
set dummy $ac_cv_prog_CC
2875
if test $@%:@ != 0; then
2876
# We chose a different compiler from the bogus one.
2877
# However, it has the same basename, so the bogon will be chosen
2878
# first if we set CC to just the basename; use the full file name.
2880
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2886
if test -n "$CC"; then
2887
{ echo "$as_me:$LINENO: result: $CC" >&5
2888
echo "${ECHO_T}$CC" >&6; }
2890
{ echo "$as_me:$LINENO: result: no" >&5
2891
echo "${ECHO_T}no" >&6; }
2896
if test -z "$CC"; then
2897
if test -n "$ac_tool_prefix"; then
2898
for ac_prog in cl.exe
2900
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2901
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2902
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2903
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2904
if test "${ac_cv_prog_CC+set}" = set; then
2905
echo $ECHO_N "(cached) $ECHO_C" >&6
2907
if test -n "$CC"; then
2908
ac_cv_prog_CC="$CC" # Let the user override the test.
2910
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2914
test -z "$as_dir" && as_dir=.
2915
for ac_exec_ext in '' $ac_executable_extensions; do
2916
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2917
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2918
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2928
if test -n "$CC"; then
2929
{ echo "$as_me:$LINENO: result: $CC" >&5
2930
echo "${ECHO_T}$CC" >&6; }
2932
{ echo "$as_me:$LINENO: result: no" >&5
2933
echo "${ECHO_T}no" >&6; }
2937
test -n "$CC" && break
2940
if test -z "$CC"; then
2942
for ac_prog in cl.exe
2944
# Extract the first word of "$ac_prog", so it can be a program name with args.
2945
set dummy $ac_prog; ac_word=$2
2946
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2947
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2948
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2949
echo $ECHO_N "(cached) $ECHO_C" >&6
2951
if test -n "$ac_ct_CC"; then
2952
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2954
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2958
test -z "$as_dir" && as_dir=.
2959
for ac_exec_ext in '' $ac_executable_extensions; do
2960
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2961
ac_cv_prog_ac_ct_CC="$ac_prog"
2962
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2971
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2972
if test -n "$ac_ct_CC"; then
2973
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2974
echo "${ECHO_T}$ac_ct_CC" >&6; }
2976
{ echo "$as_me:$LINENO: result: no" >&5
2977
echo "${ECHO_T}no" >&6; }
2981
test -n "$ac_ct_CC" && break
2984
if test "x$ac_ct_CC" = x; then
2987
case $cross_compiling:$ac_tool_warned in
2989
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2990
whose name does not start with the host triplet. If you think this
2991
configuration is useful to you, please write to autoconf@gnu.org." >&5
2992
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2993
whose name does not start with the host triplet. If you think this
2994
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2995
ac_tool_warned=yes ;;
3004
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3005
See \`config.log' for more details." >&5
3006
echo "$as_me: error: no acceptable C compiler found in \$PATH
3007
See \`config.log' for more details." >&2;}
3008
{ (exit 1); exit 1; }; }
3010
# Provide some information about the compiler.
3011
echo "$as_me:$LINENO: checking for C compiler version" >&5
3012
ac_compiler=`set X $ac_compile; echo $2`
3013
{ (ac_try="$ac_compiler --version >&5"
3015
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3016
*) ac_try_echo=$ac_try;;
3018
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3019
(eval "$ac_compiler --version >&5") 2>&5
3021
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3022
(exit $ac_status); }
3023
{ (ac_try="$ac_compiler -v >&5"
3025
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3026
*) ac_try_echo=$ac_try;;
3028
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3029
(eval "$ac_compiler -v >&5") 2>&5
3031
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032
(exit $ac_status); }
3033
{ (ac_try="$ac_compiler -V >&5"
3035
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3036
*) ac_try_echo=$ac_try;;
3038
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3039
(eval "$ac_compiler -V >&5") 2>&5
3041
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042
(exit $ac_status); }
3044
cat >conftest.$ac_ext <<_ACEOF
3047
cat confdefs.h >>conftest.$ac_ext
3048
cat >>conftest.$ac_ext <<_ACEOF
3049
/* end confdefs.h. */
3059
ac_clean_files_save=$ac_clean_files
3060
ac_clean_files="$ac_clean_files a.out a.exe b.out"
3061
# Try to create an executable without -o first, disregard a.out.
3062
# It will help us diagnose broken compilers, and finding out an intuition
3064
{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3065
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3066
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3068
# List of possible output files, starting from the most likely.
3069
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3070
# only as a last resort. b.out is created by i960 compilers.
3071
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3073
# The IRIX 6 linker writes into existing files which may not be
3074
# executable, retaining their permissions. Remove them first so a
3075
# subsequent execution test works.
3077
for ac_file in $ac_files
3080
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3081
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
3086
if { (ac_try="$ac_link_default"
3088
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3089
*) ac_try_echo=$ac_try;;
3091
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3092
(eval "$ac_link_default") 2>&5
3094
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3095
(exit $ac_status); }; then
3096
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3097
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3098
# in a Makefile. We should not override ac_cv_exeext if it was cached,
3099
# so that the user can short-circuit this test for compilers unknown to
3101
for ac_file in $ac_files ''
3103
test -f "$ac_file" || continue
3105
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3108
# We found the default executable, but exeext='' is most
3112
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3114
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3116
# We set ac_cv_exeext here because the later test for it is not
3117
# safe: cross compilers may not add the suffix if given an `-o'
3118
# argument, so we may need to know it at that point already.
3119
# Even if this section looks crufty: it has the advantage of
3126
test "$ac_cv_exeext" = no && ac_cv_exeext=
3132
{ echo "$as_me:$LINENO: result: $ac_file" >&5
3133
echo "${ECHO_T}$ac_file" >&6; }
3134
if test -z "$ac_file"; then
3135
echo "$as_me: failed program was:" >&5
3136
sed 's/^/| /' conftest.$ac_ext >&5
3138
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3139
See \`config.log' for more details." >&5
3140
echo "$as_me: error: C compiler cannot create executables
3141
See \`config.log' for more details." >&2;}
3142
{ (exit 77); exit 77; }; }
3145
ac_exeext=$ac_cv_exeext
3147
# Check that the compiler produces executables we can run. If not, either
3148
# the compiler is broken, or we cross compile.
3149
{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3150
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3151
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3152
# If not cross compiling, check that we can run a simple program.
3153
if test "$cross_compiling" != yes; then
3154
if { ac_try='./$ac_file'
3155
{ (case "(($ac_try" in
3156
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3157
*) ac_try_echo=$ac_try;;
3159
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3160
(eval "$ac_try") 2>&5
3162
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163
(exit $ac_status); }; }; then
3166
if test "$cross_compiling" = maybe; then
3169
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3170
If you meant to cross compile, use \`--host'.
3171
See \`config.log' for more details." >&5
3172
echo "$as_me: error: cannot run C compiled programs.
3173
If you meant to cross compile, use \`--host'.
3174
See \`config.log' for more details." >&2;}
3175
{ (exit 1); exit 1; }; }
3179
{ echo "$as_me:$LINENO: result: yes" >&5
3180
echo "${ECHO_T}yes" >&6; }
3182
rm -f a.out a.exe conftest$ac_cv_exeext b.out
3183
ac_clean_files=$ac_clean_files_save
3184
# Check that the compiler produces executables we can run. If not, either
3185
# the compiler is broken, or we cross compile.
3186
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3187
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3188
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
3189
echo "${ECHO_T}$cross_compiling" >&6; }
3191
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
3192
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3193
if { (ac_try="$ac_link"
3195
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3196
*) ac_try_echo=$ac_try;;
3198
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3199
(eval "$ac_link") 2>&5
3201
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3202
(exit $ac_status); }; then
3203
# If both `conftest.exe' and `conftest' are `present' (well, observable)
3204
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3205
# work properly (i.e., refer to `conftest.exe'), while it won't with
3207
for ac_file in conftest.exe conftest conftest.*; do
3208
test -f "$ac_file" || continue
3210
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3211
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3217
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3218
See \`config.log' for more details." >&5
3219
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3220
See \`config.log' for more details." >&2;}
3221
{ (exit 1); exit 1; }; }
3224
rm -f conftest$ac_cv_exeext
3225
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3226
echo "${ECHO_T}$ac_cv_exeext" >&6; }
3228
rm -f conftest.$ac_ext
3229
EXEEXT=$ac_cv_exeext
3231
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3232
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3233
if test "${ac_cv_objext+set}" = set; then
3234
echo $ECHO_N "(cached) $ECHO_C" >&6
3236
cat >conftest.$ac_ext <<_ACEOF
3239
cat confdefs.h >>conftest.$ac_ext
3240
cat >>conftest.$ac_ext <<_ACEOF
3241
/* end confdefs.h. */
3251
rm -f conftest.o conftest.obj
3252
if { (ac_try="$ac_compile"
3254
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3255
*) ac_try_echo=$ac_try;;
3257
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3258
(eval "$ac_compile") 2>&5
3260
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261
(exit $ac_status); }; then
3262
for ac_file in conftest.o conftest.obj conftest.*; do
3263
test -f "$ac_file" || continue;
3265
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3266
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3271
echo "$as_me: failed program was:" >&5
3272
sed 's/^/| /' conftest.$ac_ext >&5
3274
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3275
See \`config.log' for more details." >&5
3276
echo "$as_me: error: cannot compute suffix of object files: cannot compile
3277
See \`config.log' for more details." >&2;}
3278
{ (exit 1); exit 1; }; }
3281
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3283
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3284
echo "${ECHO_T}$ac_cv_objext" >&6; }
3285
OBJEXT=$ac_cv_objext
3287
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3288
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3289
if test "${ac_cv_c_compiler_gnu+set}" = set; then
3290
echo $ECHO_N "(cached) $ECHO_C" >&6
3292
cat >conftest.$ac_ext <<_ACEOF
3295
cat confdefs.h >>conftest.$ac_ext
3296
cat >>conftest.$ac_ext <<_ACEOF
3297
/* end confdefs.h. */
3310
rm -f conftest.$ac_objext
3311
if { (ac_try="$ac_compile"
3313
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3314
*) ac_try_echo=$ac_try;;
3316
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3317
(eval "$ac_compile") 2>conftest.er1
3319
grep -v '^ *+' conftest.er1 >conftest.err
3321
cat conftest.err >&5
3322
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3323
(exit $ac_status); } && {
3324
test -z "$ac_c_werror_flag" ||
3325
test ! -s conftest.err
3326
} && test -s conftest.$ac_objext; then
3329
echo "$as_me: failed program was:" >&5
3330
sed 's/^/| /' conftest.$ac_ext >&5
3335
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3336
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3339
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3340
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3341
GCC=`test $ac_compiler_gnu = yes && echo yes`
3342
ac_test_CFLAGS=${CFLAGS+set}
3343
ac_save_CFLAGS=$CFLAGS
3344
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3345
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3346
if test "${ac_cv_prog_cc_g+set}" = set; then
3347
echo $ECHO_N "(cached) $ECHO_C" >&6
3349
ac_save_c_werror_flag=$ac_c_werror_flag
3350
ac_c_werror_flag=yes
3353
cat >conftest.$ac_ext <<_ACEOF
3356
cat confdefs.h >>conftest.$ac_ext
3357
cat >>conftest.$ac_ext <<_ACEOF
3358
/* end confdefs.h. */
3368
rm -f conftest.$ac_objext
3369
if { (ac_try="$ac_compile"
3371
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3372
*) ac_try_echo=$ac_try;;
3374
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3375
(eval "$ac_compile") 2>conftest.er1
3377
grep -v '^ *+' conftest.er1 >conftest.err
3379
cat conftest.err >&5
3380
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381
(exit $ac_status); } && {
3382
test -z "$ac_c_werror_flag" ||
3383
test ! -s conftest.err
3384
} && test -s conftest.$ac_objext; then
3387
echo "$as_me: failed program was:" >&5
3388
sed 's/^/| /' conftest.$ac_ext >&5
3391
cat >conftest.$ac_ext <<_ACEOF
3394
cat confdefs.h >>conftest.$ac_ext
3395
cat >>conftest.$ac_ext <<_ACEOF
3396
/* end confdefs.h. */
3406
rm -f conftest.$ac_objext
3407
if { (ac_try="$ac_compile"
3409
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3410
*) ac_try_echo=$ac_try;;
3412
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3413
(eval "$ac_compile") 2>conftest.er1
3415
grep -v '^ *+' conftest.er1 >conftest.err
3417
cat conftest.err >&5
3418
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3419
(exit $ac_status); } && {
3420
test -z "$ac_c_werror_flag" ||
3421
test ! -s conftest.err
3422
} && test -s conftest.$ac_objext; then
3425
echo "$as_me: failed program was:" >&5
3426
sed 's/^/| /' conftest.$ac_ext >&5
3428
ac_c_werror_flag=$ac_save_c_werror_flag
3430
cat >conftest.$ac_ext <<_ACEOF
3433
cat confdefs.h >>conftest.$ac_ext
3434
cat >>conftest.$ac_ext <<_ACEOF
3435
/* end confdefs.h. */
3445
rm -f conftest.$ac_objext
3446
if { (ac_try="$ac_compile"
3448
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3449
*) ac_try_echo=$ac_try;;
3451
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3452
(eval "$ac_compile") 2>conftest.er1
3454
grep -v '^ *+' conftest.er1 >conftest.err
3456
cat conftest.err >&5
3457
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458
(exit $ac_status); } && {
3459
test -z "$ac_c_werror_flag" ||
3460
test ! -s conftest.err
3461
} && test -s conftest.$ac_objext; then
3464
echo "$as_me: failed program was:" >&5
3465
sed 's/^/| /' conftest.$ac_ext >&5
3470
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3473
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3476
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3477
ac_c_werror_flag=$ac_save_c_werror_flag
3479
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3480
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3481
if test "$ac_test_CFLAGS" = set; then
3482
CFLAGS=$ac_save_CFLAGS
3483
elif test $ac_cv_prog_cc_g = yes; then
3484
if test "$GCC" = yes; then
3490
if test "$GCC" = yes; then
3496
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3497
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3498
if test "${ac_cv_prog_cc_c89+set}" = set; then
3499
echo $ECHO_N "(cached) $ECHO_C" >&6
3501
ac_cv_prog_cc_c89=no
3503
cat >conftest.$ac_ext <<_ACEOF
3506
cat confdefs.h >>conftest.$ac_ext
3507
cat >>conftest.$ac_ext <<_ACEOF
3508
/* end confdefs.h. */
3511
#include <sys/types.h>
3512
#include <sys/stat.h>
3513
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3514
struct buf { int x; };
3515
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3516
static char *e (p, i)
3522
static char *f (char * (*g) (char **, int), char **p, ...)
3527
s = g (p, va_arg (v,int));
3532
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3533
function prototypes and stuff, but not '\xHH' hex character constants.
3534
These don't provoke an error unfortunately, instead are silently treated
3535
as 'x'. The following induces an error, until -std is added to get
3536
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3537
array size at least. It's necessary to write '\x00'==0 to get something
3538
that's true only with -std. */
3539
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3541
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3542
inside strings and character constants. */
3544
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3546
int test (int i, double x);
3547
struct s1 {int (*f) (int a);};
3548
struct s2 {int (*f) (double a);};
3549
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3555
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3560
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3561
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3563
CC="$ac_save_CC $ac_arg"
3564
rm -f conftest.$ac_objext
3565
if { (ac_try="$ac_compile"
3567
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3568
*) ac_try_echo=$ac_try;;
3570
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3571
(eval "$ac_compile") 2>conftest.er1
3573
grep -v '^ *+' conftest.er1 >conftest.err
3575
cat conftest.err >&5
3576
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577
(exit $ac_status); } && {
3578
test -z "$ac_c_werror_flag" ||
3579
test ! -s conftest.err
3580
} && test -s conftest.$ac_objext; then
3581
ac_cv_prog_cc_c89=$ac_arg
3583
echo "$as_me: failed program was:" >&5
3584
sed 's/^/| /' conftest.$ac_ext >&5
3589
rm -f core conftest.err conftest.$ac_objext
3590
test "x$ac_cv_prog_cc_c89" != "xno" && break
3592
rm -f conftest.$ac_ext
3597
case "x$ac_cv_prog_cc_c89" in
3599
{ echo "$as_me:$LINENO: result: none needed" >&5
3600
echo "${ECHO_T}none needed" >&6; } ;;
3602
{ echo "$as_me:$LINENO: result: unsupported" >&5
3603
echo "${ECHO_T}unsupported" >&6; } ;;
3605
CC="$CC $ac_cv_prog_cc_c89"
3606
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3607
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3612
ac_cpp='$CPP $CPPFLAGS'
3613
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3614
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3615
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3617
depcc="$CC" am_compiler_list=
3619
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3620
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3621
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3622
echo $ECHO_N "(cached) $ECHO_C" >&6
3624
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3625
# We make a subdir and do the tests there. Otherwise we can end up
3626
# making bogus files that we don't know about and never remove. For
3627
# instance it was reported that on HP-UX the gcc test will end up
3628
# making a dummy file named `D' -- because `-MD' means `put the output
3631
# Copy depcomp to subdir because otherwise we won't find it if we're
3632
# using a relative directory.
3633
cp "$am_depcomp" conftest.dir
3635
# We will build objects and dependencies in a subdirectory because
3636
# it helps to detect inapplicable dependency modes. For instance
3637
# both Tru64's cc and ICC support -MD to output dependencies as a
3638
# side effect of compilation, but ICC will put the dependencies in
3639
# the current directory while Tru64 will put them in the object
3643
am_cv_CC_dependencies_compiler_type=none
3644
if test "$am_compiler_list" = ""; then
3645
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3647
for depmode in $am_compiler_list; do
3648
# Setup a source with many dependencies, because some compilers
3649
# like to wrap large dependency lists on column 80 (with \), and
3650
# we should not choose a depcomp mode which is confused by this.
3652
# We need to recreate these files for each test, as the compiler may
3653
# overwrite some of them when testing with obscure command lines.
3654
# This happens at least with the AIX C compiler.
3656
for i in 1 2 3 4 5 6; do
3657
echo '#include "conftst'$i'.h"' >> sub/conftest.c
3658
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3659
# Solaris 8's {/usr,}/bin/sh.
3660
touch sub/conftst$i.h
3662
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3666
# after this tag, mechanisms are not by side-effect, so they'll
3667
# only be used when explicitly requested
3668
if test "x$enable_dependency_tracking" = xyes; then
3676
# We check with `-c' and `-o' for the sake of the "dashmstdout"
3677
# mode. It turns out that the SunPro C++ compiler does not properly
3678
# handle `-M -o', and we need to detect this.
3679
if depmode=$depmode \
3680
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3681
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3682
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3683
>/dev/null 2>conftest.err &&
3684
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3685
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3686
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3687
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3688
# icc doesn't choke on unknown options, it will just issue warnings
3689
# or remarks (even with -Werror). So we grep stderr for any message
3690
# that says an option was ignored or not supported.
3691
# When given -MP, icc 7.0 and 7.1 complain thusly:
3692
# icc: Command line warning: ignoring option '-M'; no argument required
3693
# The diagnosis changed in icc 8.0:
3694
# icc: Command line remark: option '-MP' not supported
3695
if (grep 'ignoring option' conftest.err ||
3696
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3697
am_cv_CC_dependencies_compiler_type=$depmode
3706
am_cv_CC_dependencies_compiler_type=none
3710
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3711
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3712
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3715
test "x$enable_dependency_tracking" != xno \
3716
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3718
am__fastdepCC_FALSE='#'
3720
am__fastdepCC_TRUE='#'
3721
am__fastdepCC_FALSE=
3725
{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3726
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3727
if test "${lt_cv_path_SED+set}" = set; then
3728
echo $ECHO_N "(cached) $ECHO_C" >&6
3730
# Loop through the user's path and test for sed and gsed.
3731
# Then use that list of sed's as ones to test for truncation.
3732
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3736
test -z "$as_dir" && as_dir=.
3737
for lt_ac_prog in sed gsed; do
3738
for ac_exec_ext in '' $ac_executable_extensions; do
3739
if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3740
lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3747
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3748
# along with /bin/sed that truncates output.
3749
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3750
test ! -f $lt_ac_sed && continue
3751
cat /dev/null > conftest.in
3753
echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3754
# Check for GNU sed and select it if it is found.
3755
if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3756
lt_cv_path_SED=$lt_ac_sed
3760
cat conftest.in conftest.in >conftest.tmp
3761
mv conftest.tmp conftest.in
3762
cp conftest.in conftest.nl
3764
$lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3765
cmp -s conftest.out conftest.nl || break
3766
# 10000 chars as input seems more than enough
3767
test $lt_ac_count -gt 10 && break
3768
lt_ac_count=`expr $lt_ac_count + 1`
3769
if test $lt_ac_count -gt $lt_ac_max; then
3770
lt_ac_max=$lt_ac_count
3771
lt_cv_path_SED=$lt_ac_sed
3779
{ echo "$as_me:$LINENO: result: $SED" >&5
3780
echo "${ECHO_T}$SED" >&6; }
3782
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3783
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3784
if test "${ac_cv_path_GREP+set}" = set; then
3785
echo $ECHO_N "(cached) $ECHO_C" >&6
3787
# Extract the first word of "grep ggrep" to use in msg output
3788
if test -z "$GREP"; then
3789
set dummy grep ggrep; ac_prog_name=$2
3790
if test "${ac_cv_path_GREP+set}" = set; then
3791
echo $ECHO_N "(cached) $ECHO_C" >&6
3793
ac_path_GREP_found=false
3794
# Loop through the user's path and test for each of PROGNAME-LIST
3795
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3796
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3799
test -z "$as_dir" && as_dir=.
3800
for ac_prog in grep ggrep; do
3801
for ac_exec_ext in '' $ac_executable_extensions; do
3802
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3803
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3804
# Check for GNU ac_path_GREP and select it if it is found.
3805
# Check for GNU $ac_path_GREP
3806
case `"$ac_path_GREP" --version 2>&1` in
3808
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3811
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3814
cat "conftest.in" "conftest.in" >"conftest.tmp"
3815
mv "conftest.tmp" "conftest.in"
3816
cp "conftest.in" "conftest.nl"
3817
echo 'GREP' >> "conftest.nl"
3818
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3819
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3820
ac_count=`expr $ac_count + 1`
3821
if test $ac_count -gt ${ac_path_GREP_max-0}; then
3822
# Best one so far, save it but keep looking for a better one
3823
ac_cv_path_GREP="$ac_path_GREP"
3824
ac_path_GREP_max=$ac_count
3826
# 10*(2^10) chars as input seems more than enough
3827
test $ac_count -gt 10 && break
3829
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3833
$ac_path_GREP_found && break 3
3843
GREP="$ac_cv_path_GREP"
3844
if test -z "$GREP"; then
3845
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3846
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3847
{ (exit 1); exit 1; }; }
3851
ac_cv_path_GREP=$GREP
3856
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3857
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3858
GREP="$ac_cv_path_GREP"
3861
{ echo "$as_me:$LINENO: checking for egrep" >&5
3862
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3863
if test "${ac_cv_path_EGREP+set}" = set; then
3864
echo $ECHO_N "(cached) $ECHO_C" >&6
3866
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3867
then ac_cv_path_EGREP="$GREP -E"
3869
# Extract the first word of "egrep" to use in msg output
3870
if test -z "$EGREP"; then
3871
set dummy egrep; ac_prog_name=$2
3872
if test "${ac_cv_path_EGREP+set}" = set; then
3873
echo $ECHO_N "(cached) $ECHO_C" >&6
3875
ac_path_EGREP_found=false
3876
# Loop through the user's path and test for each of PROGNAME-LIST
3877
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3878
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3881
test -z "$as_dir" && as_dir=.
3882
for ac_prog in egrep; do
3883
for ac_exec_ext in '' $ac_executable_extensions; do
3884
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3885
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3886
# Check for GNU ac_path_EGREP and select it if it is found.
3887
# Check for GNU $ac_path_EGREP
3888
case `"$ac_path_EGREP" --version 2>&1` in
3890
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3893
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3896
cat "conftest.in" "conftest.in" >"conftest.tmp"
3897
mv "conftest.tmp" "conftest.in"
3898
cp "conftest.in" "conftest.nl"
3899
echo 'EGREP' >> "conftest.nl"
3900
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3901
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3902
ac_count=`expr $ac_count + 1`
3903
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3904
# Best one so far, save it but keep looking for a better one
3905
ac_cv_path_EGREP="$ac_path_EGREP"
3906
ac_path_EGREP_max=$ac_count
3908
# 10*(2^10) chars as input seems more than enough
3909
test $ac_count -gt 10 && break
3911
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3915
$ac_path_EGREP_found && break 3
3925
EGREP="$ac_cv_path_EGREP"
3926
if test -z "$EGREP"; then
3927
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3928
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3929
{ (exit 1); exit 1; }; }
3933
ac_cv_path_EGREP=$EGREP
3939
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3940
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3941
EGREP="$ac_cv_path_EGREP"
3945
# Check whether --with-gnu-ld was given.
3946
if test "${with_gnu_ld+set}" = set; then
3947
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3953
if test "$GCC" = yes; then
3954
# Check if gcc -print-prog-name=ld gives a path.
3955
{ echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3956
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3959
# gcc leaves a trailing carriage return which upsets mingw
3960
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3962
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3965
# Accept absolute paths.
3967
re_direlt='/[^/][^/]*/\.\./'
3968
# Canonicalize the pathname of ld
3969
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3970
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3971
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3973
test -z "$LD" && LD="$ac_prog"
3976
# If it fails, then pretend we aren't using GCC.
3980
# If it is relative, then search for the first ld in PATH.
3984
elif test "$with_gnu_ld" = yes; then
3985
{ echo "$as_me:$LINENO: checking for GNU ld" >&5
3986
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3988
{ echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3989
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
3991
if test "${lt_cv_path_LD+set}" = set; then
3992
echo $ECHO_N "(cached) $ECHO_C" >&6
3994
if test -z "$LD"; then
3995
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3996
for ac_dir in $PATH; do
3998
test -z "$ac_dir" && ac_dir=.
3999
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4000
lt_cv_path_LD="$ac_dir/$ac_prog"
4001
# Check to see if the program is GNU ld. I'd rather use --version,
4002
# but apparently some variants of GNU ld only accept -v.
4003
# Break only if it was the GNU/non-GNU ld that we prefer.
4004
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4005
*GNU* | *'with BFD'*)
4006
test "$with_gnu_ld" != no && break
4009
test "$with_gnu_ld" != yes && break
4016
lt_cv_path_LD="$LD" # Let the user override the test with a path.
4021
if test -n "$LD"; then
4022
{ echo "$as_me:$LINENO: result: $LD" >&5
4023
echo "${ECHO_T}$LD" >&6; }
4025
{ echo "$as_me:$LINENO: result: no" >&5
4026
echo "${ECHO_T}no" >&6; }
4028
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4029
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4030
{ (exit 1); exit 1; }; }
4031
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4032
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4033
if test "${lt_cv_prog_gnu_ld+set}" = set; then
4034
echo $ECHO_N "(cached) $ECHO_C" >&6
4036
# I'd rather use --version here, but apparently some GNU lds only accept -v.
4037
case `$LD -v 2>&1 </dev/null` in
4038
*GNU* | *'with BFD'*)
4039
lt_cv_prog_gnu_ld=yes
4042
lt_cv_prog_gnu_ld=no
4046
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4047
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4048
with_gnu_ld=$lt_cv_prog_gnu_ld
4051
{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4052
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4053
if test "${lt_cv_ld_reload_flag+set}" = set; then
4054
echo $ECHO_N "(cached) $ECHO_C" >&6
4056
lt_cv_ld_reload_flag='-r'
4058
{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4059
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4060
reload_flag=$lt_cv_ld_reload_flag
4061
case $reload_flag in
4063
*) reload_flag=" $reload_flag" ;;
4065
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4068
if test "$GCC" = yes; then
4069
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4071
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4076
{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4077
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4078
if test "${lt_cv_path_NM+set}" = set; then
4079
echo $ECHO_N "(cached) $ECHO_C" >&6
4081
if test -n "$NM"; then
4082
# Let the user override the test.
4085
lt_nm_to_check="${ac_tool_prefix}nm"
4086
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4087
lt_nm_to_check="$lt_nm_to_check nm"
4089
for lt_tmp_nm in $lt_nm_to_check; do
4090
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4091
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4093
test -z "$ac_dir" && ac_dir=.
4094
tmp_nm="$ac_dir/$lt_tmp_nm"
4095
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4096
# Check to see if the nm accepts a BSD-compat flag.
4097
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4098
# nm: unknown option "B" ignored
4099
# Tru64's nm complains that /dev/null is an invalid object file
4100
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4101
*/dev/null* | *'Invalid file or object type'*)
4102
lt_cv_path_NM="$tmp_nm -B"
4106
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4108
lt_cv_path_NM="$tmp_nm -p"
4112
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4113
continue # so that we can try to find one that supports BSD flags
4122
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4125
{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4126
echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4129
{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
4130
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4132
if test "$LN_S" = "ln -s"; then
4133
{ echo "$as_me:$LINENO: result: yes" >&5
4134
echo "${ECHO_T}yes" >&6; }
4136
{ echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4137
echo "${ECHO_T}no, using $LN_S" >&6; }
4140
{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4141
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4142
if test "${lt_cv_deplibs_check_method+set}" = set; then
4143
echo $ECHO_N "(cached) $ECHO_C" >&6
4145
lt_cv_file_magic_cmd='$MAGIC_CMD'
4146
lt_cv_file_magic_test_file=
4147
lt_cv_deplibs_check_method='unknown'
4148
# Need to set the preceding variable on all platforms that support
4149
# interlibrary dependencies.
4150
# 'none' -- dependencies not supported.
4151
# `unknown' -- same as none, but documents that we really don't know.
4152
# 'pass_all' -- all dependencies passed with no checks.
4153
# 'test_compile' -- check by making test program.
4154
# 'file_magic [[regex]]' -- check by looking for files in library path
4155
# which responds to the $file_magic_cmd with a given extended regex.
4156
# If you have `file' or equivalent on your system and you're not sure
4157
# whether `pass_all' will *always* work, you probably want this one.
4161
lt_cv_deplibs_check_method=pass_all
4165
lt_cv_deplibs_check_method=pass_all
4169
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4170
lt_cv_file_magic_cmd='/usr/bin/file -L'
4171
lt_cv_file_magic_test_file=/shlib/libc.so
4175
# func_win32_libid is a shell function defined in ltmain.sh
4176
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4177
lt_cv_file_magic_cmd='func_win32_libid'
4181
# Base MSYS/MinGW do not provide the 'file' command needed by
4182
# func_win32_libid shell function, so use a weaker test based on 'objdump'.
4183
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4184
lt_cv_file_magic_cmd='$OBJDUMP -f'
4187
darwin* | rhapsody*)
4188
lt_cv_deplibs_check_method=pass_all
4191
freebsd* | dragonfly*)
4192
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4195
# Not sure whether the presence of OpenBSD here was a mistake.
4196
# Let's accept both of them until this is cleared up.
4197
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4198
lt_cv_file_magic_cmd=/usr/bin/file
4199
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4203
lt_cv_deplibs_check_method=pass_all
4208
lt_cv_deplibs_check_method=pass_all
4211
hpux10.20* | hpux11*)
4212
lt_cv_file_magic_cmd=/usr/bin/file
4215
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4216
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4219
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]'
4220
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4223
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4224
lt_cv_file_magic_test_file=/usr/lib/libc.sl
4230
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4231
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4234
irix5* | irix6* | nonstopux*)
4236
*-32|*"-32 ") libmagic=32-bit;;
4237
*-n32|*"-n32 ") libmagic=N32;;
4238
*-64|*"-64 ") libmagic=64-bit;;
4239
*) libmagic=never-match;;
4241
lt_cv_deplibs_check_method=pass_all
4244
# This must be Linux ELF.
4245
linux* | k*bsd*-gnu)
4246
lt_cv_deplibs_check_method=pass_all
4249
netbsd* | netbsdelf*-gnu)
4250
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4251
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4253
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4258
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4259
lt_cv_file_magic_cmd=/usr/bin/file
4260
lt_cv_file_magic_test_file=/usr/lib/libnls.so
4264
lt_cv_deplibs_check_method=unknown
4268
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4269
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4271
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4275
osf3* | osf4* | osf5*)
4276
lt_cv_deplibs_check_method=pass_all
4280
lt_cv_deplibs_check_method=pass_all
4284
case $host_vendor in
4286
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]'
4287
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4290
lt_cv_deplibs_check_method=pass_all
4293
lt_cv_file_magic_cmd='/bin/file'
4294
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4297
lt_cv_file_magic_cmd='/bin/file'
4298
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4299
lt_cv_file_magic_test_file=/lib/libc.so
4302
lt_cv_deplibs_check_method=pass_all
4305
lt_cv_deplibs_check_method=pass_all
4310
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4311
lt_cv_deplibs_check_method=pass_all
4316
{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4317
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4318
file_magic_cmd=$lt_cv_file_magic_cmd
4319
deplibs_check_method=$lt_cv_deplibs_check_method
4320
test -z "$deplibs_check_method" && deplibs_check_method=unknown
4325
# If no C compiler was specified, use CC.
4328
# If no C compiler flags were specified, use CFLAGS.
4329
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4331
# Allow CC to be a program name with arguments.
4335
# Check whether --enable-libtool-lock was given.
4336
if test "${enable_libtool_lock+set}" = set; then
4337
enableval=$enable_libtool_lock;
4340
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4342
# Some flags need to be propagated to the compiler or linker for good
4346
# Find out which ABI we are using.
4347
echo 'int i;' > conftest.$ac_ext
4348
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4349
(eval $ac_compile) 2>&5
4351
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4352
(exit $ac_status); }; then
4353
case `/usr/bin/file conftest.$ac_objext` in
4365
# Find out which ABI we are using.
4366
echo '#line __oline__ "configure"' > conftest.$ac_ext
4367
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4368
(eval $ac_compile) 2>&5
4370
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4371
(exit $ac_status); }; then
4372
if test "$lt_cv_prog_gnu_ld" = yes; then
4373
case `/usr/bin/file conftest.$ac_objext` in
4375
LD="${LD-ld} -melf32bsmip"
4378
LD="${LD-ld} -melf32bmipn32"
4381
LD="${LD-ld} -melf64bmip"
4385
case `/usr/bin/file conftest.$ac_objext` in
4401
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4402
# Find out which ABI we are using.
4403
echo 'int i;' > conftest.$ac_ext
4404
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4405
(eval $ac_compile) 2>&5
4407
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4408
(exit $ac_status); }; then
4409
case `/usr/bin/file conftest.o` in
4413
LD="${LD-ld} -m elf_i386"
4415
ppc64-*linux*|powerpc64-*linux*)
4416
LD="${LD-ld} -m elf32ppclinux"
4419
LD="${LD-ld} -m elf_s390"
4422
LD="${LD-ld} -m elf32_sparc"
4429
LD="${LD-ld} -m elf_x86_64"
4431
ppc*-*linux*|powerpc*-*linux*)
4432
LD="${LD-ld} -m elf64ppc"
4435
LD="${LD-ld} -m elf64_s390"
4438
LD="${LD-ld} -m elf64_sparc"
4448
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
4449
SAVE_CFLAGS="$CFLAGS"
4450
CFLAGS="$CFLAGS -belf"
4451
{ echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4452
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4453
if test "${lt_cv_cc_needs_belf+set}" = set; then
4454
echo $ECHO_N "(cached) $ECHO_C" >&6
4457
ac_cpp='$CPP $CPPFLAGS'
4458
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4459
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4460
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4462
cat >conftest.$ac_ext <<_ACEOF
4465
cat confdefs.h >>conftest.$ac_ext
4466
cat >>conftest.$ac_ext <<_ACEOF
4467
/* end confdefs.h. */
4477
rm -f conftest.$ac_objext conftest$ac_exeext
4478
if { (ac_try="$ac_link"
4480
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4481
*) ac_try_echo=$ac_try;;
4483
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4484
(eval "$ac_link") 2>conftest.er1
4486
grep -v '^ *+' conftest.er1 >conftest.err
4488
cat conftest.err >&5
4489
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490
(exit $ac_status); } && {
4491
test -z "$ac_c_werror_flag" ||
4492
test ! -s conftest.err
4493
} && test -s conftest$ac_exeext &&
4494
$as_test_x conftest$ac_exeext; then
4495
lt_cv_cc_needs_belf=yes
4497
echo "$as_me: failed program was:" >&5
4498
sed 's/^/| /' conftest.$ac_ext >&5
4500
lt_cv_cc_needs_belf=no
4503
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4504
conftest$ac_exeext conftest.$ac_ext
4506
ac_cpp='$CPP $CPPFLAGS'
4507
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4508
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4509
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4512
{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4513
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4514
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4515
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4516
CFLAGS="$SAVE_CFLAGS"
4520
# Find out which ABI we are using.
4521
echo 'int i;' > conftest.$ac_ext
4522
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4523
(eval $ac_compile) 2>&5
4525
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4526
(exit $ac_status); }; then
4527
case `/usr/bin/file conftest.o` in
4529
case $lt_cv_prog_gnu_ld in
4530
yes*) LD="${LD-ld} -m elf64_sparc" ;;
4531
*) LD="${LD-ld} -64" ;;
4542
need_locks="$enable_libtool_lock"
4546
ac_cpp='$CPP $CPPFLAGS'
4547
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4548
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4549
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4550
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4551
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4552
# On Suns, sometimes $CPP names a directory.
4553
if test -n "$CPP" && test -d "$CPP"; then
4556
if test -z "$CPP"; then
4557
if test "${ac_cv_prog_CPP+set}" = set; then
4558
echo $ECHO_N "(cached) $ECHO_C" >&6
4560
# Double quotes because CPP needs to be expanded
4561
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4564
for ac_c_preproc_warn_flag in '' yes
4566
# Use a header file that comes with gcc, so configuring glibc
4567
# with a fresh cross-compiler works.
4568
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4569
# <limits.h> exists even on freestanding compilers.
4570
# On the NeXT, cc -E runs the code through the compiler's parser,
4571
# not just through cpp. "Syntax error" is here to catch this case.
4572
cat >conftest.$ac_ext <<_ACEOF
4575
cat confdefs.h >>conftest.$ac_ext
4576
cat >>conftest.$ac_ext <<_ACEOF
4577
/* end confdefs.h. */
4579
@%:@ include <limits.h>
4581
@%:@ include <assert.h>
4585
if { (ac_try="$ac_cpp conftest.$ac_ext"
4587
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4588
*) ac_try_echo=$ac_try;;
4590
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4591
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4593
grep -v '^ *+' conftest.er1 >conftest.err
4595
cat conftest.err >&5
4596
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4597
(exit $ac_status); } >/dev/null && {
4598
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4599
test ! -s conftest.err
4603
echo "$as_me: failed program was:" >&5
4604
sed 's/^/| /' conftest.$ac_ext >&5
4606
# Broken: fails on valid input.
4610
rm -f conftest.err conftest.$ac_ext
4612
# OK, works on sane cases. Now check whether nonexistent headers
4613
# can be detected and how.
4614
cat >conftest.$ac_ext <<_ACEOF
4617
cat confdefs.h >>conftest.$ac_ext
4618
cat >>conftest.$ac_ext <<_ACEOF
4619
/* end confdefs.h. */
4620
@%:@include <ac_nonexistent.h>
4622
if { (ac_try="$ac_cpp conftest.$ac_ext"
4624
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4625
*) ac_try_echo=$ac_try;;
4627
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4628
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4630
grep -v '^ *+' conftest.er1 >conftest.err
4632
cat conftest.err >&5
4633
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4634
(exit $ac_status); } >/dev/null && {
4635
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4636
test ! -s conftest.err
4638
# Broken: success on invalid input.
4641
echo "$as_me: failed program was:" >&5
4642
sed 's/^/| /' conftest.$ac_ext >&5
4644
# Passes both tests.
4649
rm -f conftest.err conftest.$ac_ext
4652
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4653
rm -f conftest.err conftest.$ac_ext
4654
if $ac_preproc_ok; then
4666
{ echo "$as_me:$LINENO: result: $CPP" >&5
4667
echo "${ECHO_T}$CPP" >&6; }
4669
for ac_c_preproc_warn_flag in '' yes
4671
# Use a header file that comes with gcc, so configuring glibc
4672
# with a fresh cross-compiler works.
4673
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4674
# <limits.h> exists even on freestanding compilers.
4675
# On the NeXT, cc -E runs the code through the compiler's parser,
4676
# not just through cpp. "Syntax error" is here to catch this case.
4677
cat >conftest.$ac_ext <<_ACEOF
4680
cat confdefs.h >>conftest.$ac_ext
4681
cat >>conftest.$ac_ext <<_ACEOF
4682
/* end confdefs.h. */
4684
@%:@ include <limits.h>
4686
@%:@ include <assert.h>
4690
if { (ac_try="$ac_cpp conftest.$ac_ext"
4692
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4693
*) ac_try_echo=$ac_try;;
4695
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4696
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4698
grep -v '^ *+' conftest.er1 >conftest.err
4700
cat conftest.err >&5
4701
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4702
(exit $ac_status); } >/dev/null && {
4703
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4704
test ! -s conftest.err
4708
echo "$as_me: failed program was:" >&5
4709
sed 's/^/| /' conftest.$ac_ext >&5
4711
# Broken: fails on valid input.
4715
rm -f conftest.err conftest.$ac_ext
4717
# OK, works on sane cases. Now check whether nonexistent headers
4718
# can be detected and how.
4719
cat >conftest.$ac_ext <<_ACEOF
4722
cat confdefs.h >>conftest.$ac_ext
4723
cat >>conftest.$ac_ext <<_ACEOF
4724
/* end confdefs.h. */
4725
@%:@include <ac_nonexistent.h>
4727
if { (ac_try="$ac_cpp conftest.$ac_ext"
4729
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4730
*) ac_try_echo=$ac_try;;
4732
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4733
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4735
grep -v '^ *+' conftest.er1 >conftest.err
4737
cat conftest.err >&5
4738
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4739
(exit $ac_status); } >/dev/null && {
4740
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4741
test ! -s conftest.err
4743
# Broken: success on invalid input.
4746
echo "$as_me: failed program was:" >&5
4747
sed 's/^/| /' conftest.$ac_ext >&5
4749
# Passes both tests.
4754
rm -f conftest.err conftest.$ac_ext
4757
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4758
rm -f conftest.err conftest.$ac_ext
4759
if $ac_preproc_ok; then
4762
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4763
See \`config.log' for more details." >&5
4764
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4765
See \`config.log' for more details." >&2;}
4766
{ (exit 1); exit 1; }; }
4770
ac_cpp='$CPP $CPPFLAGS'
4771
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4772
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4773
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4776
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4777
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4778
if test "${ac_cv_header_stdc+set}" = set; then
4779
echo $ECHO_N "(cached) $ECHO_C" >&6
4781
cat >conftest.$ac_ext <<_ACEOF
4784
cat confdefs.h >>conftest.$ac_ext
4785
cat >>conftest.$ac_ext <<_ACEOF
4786
/* end confdefs.h. */
4800
rm -f conftest.$ac_objext
4801
if { (ac_try="$ac_compile"
4803
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4804
*) ac_try_echo=$ac_try;;
4806
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4807
(eval "$ac_compile") 2>conftest.er1
4809
grep -v '^ *+' conftest.er1 >conftest.err
4811
cat conftest.err >&5
4812
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4813
(exit $ac_status); } && {
4814
test -z "$ac_c_werror_flag" ||
4815
test ! -s conftest.err
4816
} && test -s conftest.$ac_objext; then
4817
ac_cv_header_stdc=yes
4819
echo "$as_me: failed program was:" >&5
4820
sed 's/^/| /' conftest.$ac_ext >&5
4822
ac_cv_header_stdc=no
4825
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4827
if test $ac_cv_header_stdc = yes; then
4828
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4829
cat >conftest.$ac_ext <<_ACEOF
4832
cat confdefs.h >>conftest.$ac_ext
4833
cat >>conftest.$ac_ext <<_ACEOF
4834
/* end confdefs.h. */
4838
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4839
$EGREP "memchr" >/dev/null 2>&1; then
4842
ac_cv_header_stdc=no
4848
if test $ac_cv_header_stdc = yes; then
4849
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4850
cat >conftest.$ac_ext <<_ACEOF
4853
cat confdefs.h >>conftest.$ac_ext
4854
cat >>conftest.$ac_ext <<_ACEOF
4855
/* end confdefs.h. */
4859
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4860
$EGREP "free" >/dev/null 2>&1; then
4863
ac_cv_header_stdc=no
4869
if test $ac_cv_header_stdc = yes; then
4870
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4871
if test "$cross_compiling" = yes; then
4874
cat >conftest.$ac_ext <<_ACEOF
4877
cat confdefs.h >>conftest.$ac_ext
4878
cat >>conftest.$ac_ext <<_ACEOF
4879
/* end confdefs.h. */
4882
#if ((' ' & 0x0FF) == 0x020)
4883
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4884
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4886
# define ISLOWER(c) \
4887
(('a' <= (c) && (c) <= 'i') \
4888
|| ('j' <= (c) && (c) <= 'r') \
4889
|| ('s' <= (c) && (c) <= 'z'))
4890
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4893
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4898
for (i = 0; i < 256; i++)
4899
if (XOR (islower (i), ISLOWER (i))
4900
|| toupper (i) != TOUPPER (i))
4905
rm -f conftest$ac_exeext
4906
if { (ac_try="$ac_link"
4908
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4909
*) ac_try_echo=$ac_try;;
4911
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4912
(eval "$ac_link") 2>&5
4914
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4915
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4916
{ (case "(($ac_try" in
4917
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4918
*) ac_try_echo=$ac_try;;
4920
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4921
(eval "$ac_try") 2>&5
4923
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4924
(exit $ac_status); }; }; then
4927
echo "$as_me: program exited with status $ac_status" >&5
4928
echo "$as_me: failed program was:" >&5
4929
sed 's/^/| /' conftest.$ac_ext >&5
4932
ac_cv_header_stdc=no
4934
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4940
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4941
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4942
if test $ac_cv_header_stdc = yes; then
4944
cat >>confdefs.h <<\_ACEOF
4945
@%:@define STDC_HEADERS 1
4950
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4960
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4961
inttypes.h stdint.h unistd.h
4963
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4964
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4965
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4966
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4967
echo $ECHO_N "(cached) $ECHO_C" >&6
4969
cat >conftest.$ac_ext <<_ACEOF
4972
cat confdefs.h >>conftest.$ac_ext
4973
cat >>conftest.$ac_ext <<_ACEOF
4974
/* end confdefs.h. */
4975
$ac_includes_default
4977
@%:@include <$ac_header>
4979
rm -f conftest.$ac_objext
4980
if { (ac_try="$ac_compile"
4982
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4983
*) ac_try_echo=$ac_try;;
4985
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4986
(eval "$ac_compile") 2>conftest.er1
4988
grep -v '^ *+' conftest.er1 >conftest.err
4990
cat conftest.err >&5
4991
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4992
(exit $ac_status); } && {
4993
test -z "$ac_c_werror_flag" ||
4994
test ! -s conftest.err
4995
} && test -s conftest.$ac_objext; then
4996
eval "$as_ac_Header=yes"
4998
echo "$as_me: failed program was:" >&5
4999
sed 's/^/| /' conftest.$ac_ext >&5
5001
eval "$as_ac_Header=no"
5004
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5006
ac_res=`eval echo '${'$as_ac_Header'}'`
5007
{ echo "$as_me:$LINENO: result: $ac_res" >&5
5008
echo "${ECHO_T}$ac_res" >&6; }
5009
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5010
cat >>confdefs.h <<_ACEOF
5011
@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5020
for ac_header in dlfcn.h
5022
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5023
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5024
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5025
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5026
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5027
echo $ECHO_N "(cached) $ECHO_C" >&6
5029
ac_res=`eval echo '${'$as_ac_Header'}'`
5030
{ echo "$as_me:$LINENO: result: $ac_res" >&5
5031
echo "${ECHO_T}$ac_res" >&6; }
5033
# Is the header compilable?
5034
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5035
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5036
cat >conftest.$ac_ext <<_ACEOF
5039
cat confdefs.h >>conftest.$ac_ext
5040
cat >>conftest.$ac_ext <<_ACEOF
5041
/* end confdefs.h. */
5042
$ac_includes_default
5043
@%:@include <$ac_header>
5045
rm -f conftest.$ac_objext
5046
if { (ac_try="$ac_compile"
5048
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5049
*) ac_try_echo=$ac_try;;
5051
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5052
(eval "$ac_compile") 2>conftest.er1
5054
grep -v '^ *+' conftest.er1 >conftest.err
5056
cat conftest.err >&5
5057
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5058
(exit $ac_status); } && {
5059
test -z "$ac_c_werror_flag" ||
5060
test ! -s conftest.err
5061
} && test -s conftest.$ac_objext; then
5062
ac_header_compiler=yes
5064
echo "$as_me: failed program was:" >&5
5065
sed 's/^/| /' conftest.$ac_ext >&5
5067
ac_header_compiler=no
5070
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5071
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5072
echo "${ECHO_T}$ac_header_compiler" >&6; }
5074
# Is the header present?
5075
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5076
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5077
cat >conftest.$ac_ext <<_ACEOF
5080
cat confdefs.h >>conftest.$ac_ext
5081
cat >>conftest.$ac_ext <<_ACEOF
5082
/* end confdefs.h. */
5083
@%:@include <$ac_header>
5085
if { (ac_try="$ac_cpp conftest.$ac_ext"
5087
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5088
*) ac_try_echo=$ac_try;;
5090
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5091
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5093
grep -v '^ *+' conftest.er1 >conftest.err
5095
cat conftest.err >&5
5096
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5097
(exit $ac_status); } >/dev/null && {
5098
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5099
test ! -s conftest.err
5101
ac_header_preproc=yes
5103
echo "$as_me: failed program was:" >&5
5104
sed 's/^/| /' conftest.$ac_ext >&5
5106
ac_header_preproc=no
5109
rm -f conftest.err conftest.$ac_ext
5110
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5111
echo "${ECHO_T}$ac_header_preproc" >&6; }
5113
# So? What about this header?
5114
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5116
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5117
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5118
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5119
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5120
ac_header_preproc=yes
5123
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5124
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5125
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5126
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5127
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5128
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5129
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5130
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5131
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5132
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5133
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5134
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5136
@%:@@%:@ -------------------------------------------- @%:@@%:@
5137
@%:@@%:@ Report this to inkjet-list@linuxprinting.org @%:@@%:@
5138
@%:@@%:@ -------------------------------------------- @%:@@%:@
5140
) | sed "s/^/$as_me: WARNING: /" >&2
5143
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5144
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5145
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5146
echo $ECHO_N "(cached) $ECHO_C" >&6
5148
eval "$as_ac_Header=\$ac_header_preproc"
5150
ac_res=`eval echo '${'$as_ac_Header'}'`
5151
{ echo "$as_me:$LINENO: result: $ac_res" >&5
5152
echo "${ECHO_T}$ac_res" >&6; }
5155
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5156
cat >>confdefs.h <<_ACEOF
5157
@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5165
ac_cpp='$CXXCPP $CPPFLAGS'
5166
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5167
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5168
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5169
if test -z "$CXX"; then
5170
if test -n "$CCC"; then
5173
if test -n "$ac_tool_prefix"; then
5174
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5176
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5177
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5178
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5179
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5180
if test "${ac_cv_prog_CXX+set}" = set; then
5181
echo $ECHO_N "(cached) $ECHO_C" >&6
5183
if test -n "$CXX"; then
5184
ac_cv_prog_CXX="$CXX" # Let the user override the test.
5186
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5190
test -z "$as_dir" && as_dir=.
5191
for ac_exec_ext in '' $ac_executable_extensions; do
5192
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5193
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5194
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5204
if test -n "$CXX"; then
5205
{ echo "$as_me:$LINENO: result: $CXX" >&5
5206
echo "${ECHO_T}$CXX" >&6; }
5208
{ echo "$as_me:$LINENO: result: no" >&5
5209
echo "${ECHO_T}no" >&6; }
5213
test -n "$CXX" && break
5216
if test -z "$CXX"; then
5218
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5220
# Extract the first word of "$ac_prog", so it can be a program name with args.
5221
set dummy $ac_prog; ac_word=$2
5222
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5223
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5224
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5225
echo $ECHO_N "(cached) $ECHO_C" >&6
5227
if test -n "$ac_ct_CXX"; then
5228
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5230
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5234
test -z "$as_dir" && as_dir=.
5235
for ac_exec_ext in '' $ac_executable_extensions; do
5236
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5237
ac_cv_prog_ac_ct_CXX="$ac_prog"
5238
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5247
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5248
if test -n "$ac_ct_CXX"; then
5249
{ echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5250
echo "${ECHO_T}$ac_ct_CXX" >&6; }
5252
{ echo "$as_me:$LINENO: result: no" >&5
5253
echo "${ECHO_T}no" >&6; }
5257
test -n "$ac_ct_CXX" && break
5260
if test "x$ac_ct_CXX" = x; then
5263
case $cross_compiling:$ac_tool_warned in
5265
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5266
whose name does not start with the host triplet. If you think this
5267
configuration is useful to you, please write to autoconf@gnu.org." >&5
5268
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5269
whose name does not start with the host triplet. If you think this
5270
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5271
ac_tool_warned=yes ;;
5279
# Provide some information about the compiler.
5280
echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5281
ac_compiler=`set X $ac_compile; echo $2`
5282
{ (ac_try="$ac_compiler --version >&5"
5284
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5285
*) ac_try_echo=$ac_try;;
5287
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5288
(eval "$ac_compiler --version >&5") 2>&5
5290
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5291
(exit $ac_status); }
5292
{ (ac_try="$ac_compiler -v >&5"
5294
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5295
*) ac_try_echo=$ac_try;;
5297
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5298
(eval "$ac_compiler -v >&5") 2>&5
5300
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5301
(exit $ac_status); }
5302
{ (ac_try="$ac_compiler -V >&5"
5304
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5305
*) ac_try_echo=$ac_try;;
5307
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5308
(eval "$ac_compiler -V >&5") 2>&5
5310
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5311
(exit $ac_status); }
5313
{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5314
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5315
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5316
echo $ECHO_N "(cached) $ECHO_C" >&6
5318
cat >conftest.$ac_ext <<_ACEOF
5321
cat confdefs.h >>conftest.$ac_ext
5322
cat >>conftest.$ac_ext <<_ACEOF
5323
/* end confdefs.h. */
5336
rm -f conftest.$ac_objext
5337
if { (ac_try="$ac_compile"
5339
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5340
*) ac_try_echo=$ac_try;;
5342
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5343
(eval "$ac_compile") 2>conftest.er1
5345
grep -v '^ *+' conftest.er1 >conftest.err
5347
cat conftest.err >&5
5348
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5349
(exit $ac_status); } && {
5350
test -z "$ac_cxx_werror_flag" ||
5351
test ! -s conftest.err
5352
} && test -s conftest.$ac_objext; then
5355
echo "$as_me: failed program was:" >&5
5356
sed 's/^/| /' conftest.$ac_ext >&5
5361
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5362
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5365
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5366
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5367
GXX=`test $ac_compiler_gnu = yes && echo yes`
5368
ac_test_CXXFLAGS=${CXXFLAGS+set}
5369
ac_save_CXXFLAGS=$CXXFLAGS
5370
{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5371
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5372
if test "${ac_cv_prog_cxx_g+set}" = set; then
5373
echo $ECHO_N "(cached) $ECHO_C" >&6
5375
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5376
ac_cxx_werror_flag=yes
5379
cat >conftest.$ac_ext <<_ACEOF
5382
cat confdefs.h >>conftest.$ac_ext
5383
cat >>conftest.$ac_ext <<_ACEOF
5384
/* end confdefs.h. */
5394
rm -f conftest.$ac_objext
5395
if { (ac_try="$ac_compile"
5397
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5398
*) ac_try_echo=$ac_try;;
5400
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5401
(eval "$ac_compile") 2>conftest.er1
5403
grep -v '^ *+' conftest.er1 >conftest.err
5405
cat conftest.err >&5
5406
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5407
(exit $ac_status); } && {
5408
test -z "$ac_cxx_werror_flag" ||
5409
test ! -s conftest.err
5410
} && test -s conftest.$ac_objext; then
5411
ac_cv_prog_cxx_g=yes
5413
echo "$as_me: failed program was:" >&5
5414
sed 's/^/| /' conftest.$ac_ext >&5
5417
cat >conftest.$ac_ext <<_ACEOF
5420
cat confdefs.h >>conftest.$ac_ext
5421
cat >>conftest.$ac_ext <<_ACEOF
5422
/* end confdefs.h. */
5432
rm -f conftest.$ac_objext
5433
if { (ac_try="$ac_compile"
5435
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5436
*) ac_try_echo=$ac_try;;
5438
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5439
(eval "$ac_compile") 2>conftest.er1
5441
grep -v '^ *+' conftest.er1 >conftest.err
5443
cat conftest.err >&5
5444
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5445
(exit $ac_status); } && {
5446
test -z "$ac_cxx_werror_flag" ||
5447
test ! -s conftest.err
5448
} && test -s conftest.$ac_objext; then
5451
echo "$as_me: failed program was:" >&5
5452
sed 's/^/| /' conftest.$ac_ext >&5
5454
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5456
cat >conftest.$ac_ext <<_ACEOF
5459
cat confdefs.h >>conftest.$ac_ext
5460
cat >>conftest.$ac_ext <<_ACEOF
5461
/* end confdefs.h. */
5471
rm -f conftest.$ac_objext
5472
if { (ac_try="$ac_compile"
5474
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5475
*) ac_try_echo=$ac_try;;
5477
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5478
(eval "$ac_compile") 2>conftest.er1
5480
grep -v '^ *+' conftest.er1 >conftest.err
5482
cat conftest.err >&5
5483
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5484
(exit $ac_status); } && {
5485
test -z "$ac_cxx_werror_flag" ||
5486
test ! -s conftest.err
5487
} && test -s conftest.$ac_objext; then
5488
ac_cv_prog_cxx_g=yes
5490
echo "$as_me: failed program was:" >&5
5491
sed 's/^/| /' conftest.$ac_ext >&5
5496
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5499
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5502
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5503
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5505
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5506
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5507
if test "$ac_test_CXXFLAGS" = set; then
5508
CXXFLAGS=$ac_save_CXXFLAGS
5509
elif test $ac_cv_prog_cxx_g = yes; then
5510
if test "$GXX" = yes; then
5516
if test "$GXX" = yes; then
5523
ac_cpp='$CXXCPP $CPPFLAGS'
5524
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5525
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5526
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5528
depcc="$CXX" am_compiler_list=
5530
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5531
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5532
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5533
echo $ECHO_N "(cached) $ECHO_C" >&6
5535
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5536
# We make a subdir and do the tests there. Otherwise we can end up
5537
# making bogus files that we don't know about and never remove. For
5538
# instance it was reported that on HP-UX the gcc test will end up
5539
# making a dummy file named `D' -- because `-MD' means `put the output
5542
# Copy depcomp to subdir because otherwise we won't find it if we're
5543
# using a relative directory.
5544
cp "$am_depcomp" conftest.dir
5546
# We will build objects and dependencies in a subdirectory because
5547
# it helps to detect inapplicable dependency modes. For instance
5548
# both Tru64's cc and ICC support -MD to output dependencies as a
5549
# side effect of compilation, but ICC will put the dependencies in
5550
# the current directory while Tru64 will put them in the object
5554
am_cv_CXX_dependencies_compiler_type=none
5555
if test "$am_compiler_list" = ""; then
5556
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5558
for depmode in $am_compiler_list; do
5559
# Setup a source with many dependencies, because some compilers
5560
# like to wrap large dependency lists on column 80 (with \), and
5561
# we should not choose a depcomp mode which is confused by this.
5563
# We need to recreate these files for each test, as the compiler may
5564
# overwrite some of them when testing with obscure command lines.
5565
# This happens at least with the AIX C compiler.
5567
for i in 1 2 3 4 5 6; do
5568
echo '#include "conftst'$i'.h"' >> sub/conftest.c
5569
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5570
# Solaris 8's {/usr,}/bin/sh.
5571
touch sub/conftst$i.h
5573
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5577
# after this tag, mechanisms are not by side-effect, so they'll
5578
# only be used when explicitly requested
5579
if test "x$enable_dependency_tracking" = xyes; then
5587
# We check with `-c' and `-o' for the sake of the "dashmstdout"
5588
# mode. It turns out that the SunPro C++ compiler does not properly
5589
# handle `-M -o', and we need to detect this.
5590
if depmode=$depmode \
5591
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5592
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5593
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5594
>/dev/null 2>conftest.err &&
5595
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5596
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5597
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5598
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5599
# icc doesn't choke on unknown options, it will just issue warnings
5600
# or remarks (even with -Werror). So we grep stderr for any message
5601
# that says an option was ignored or not supported.
5602
# When given -MP, icc 7.0 and 7.1 complain thusly:
5603
# icc: Command line warning: ignoring option '-M'; no argument required
5604
# The diagnosis changed in icc 8.0:
5605
# icc: Command line remark: option '-MP' not supported
5606
if (grep 'ignoring option' conftest.err ||
5607
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5608
am_cv_CXX_dependencies_compiler_type=$depmode
5617
am_cv_CXX_dependencies_compiler_type=none
5621
{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5622
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5623
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5626
test "x$enable_dependency_tracking" != xno \
5627
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5628
am__fastdepCXX_TRUE=
5629
am__fastdepCXX_FALSE='#'
5631
am__fastdepCXX_TRUE='#'
5632
am__fastdepCXX_FALSE=
5638
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5639
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5640
(test "X$CXX" != "Xg++"))) ; then
5642
ac_cpp='$CXXCPP $CPPFLAGS'
5643
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5644
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5645
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5646
{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5647
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5648
if test -z "$CXXCPP"; then
5649
if test "${ac_cv_prog_CXXCPP+set}" = set; then
5650
echo $ECHO_N "(cached) $ECHO_C" >&6
5652
# Double quotes because CXXCPP needs to be expanded
5653
for CXXCPP in "$CXX -E" "/lib/cpp"
5656
for ac_cxx_preproc_warn_flag in '' yes
5658
# Use a header file that comes with gcc, so configuring glibc
5659
# with a fresh cross-compiler works.
5660
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5661
# <limits.h> exists even on freestanding compilers.
5662
# On the NeXT, cc -E runs the code through the compiler's parser,
5663
# not just through cpp. "Syntax error" is here to catch this case.
5664
cat >conftest.$ac_ext <<_ACEOF
5667
cat confdefs.h >>conftest.$ac_ext
5668
cat >>conftest.$ac_ext <<_ACEOF
5669
/* end confdefs.h. */
5671
@%:@ include <limits.h>
5673
@%:@ include <assert.h>
5677
if { (ac_try="$ac_cpp conftest.$ac_ext"
5679
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5680
*) ac_try_echo=$ac_try;;
5682
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5683
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5685
grep -v '^ *+' conftest.er1 >conftest.err
5687
cat conftest.err >&5
5688
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5689
(exit $ac_status); } >/dev/null && {
5690
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5691
test ! -s conftest.err
5695
echo "$as_me: failed program was:" >&5
5696
sed 's/^/| /' conftest.$ac_ext >&5
5698
# Broken: fails on valid input.
5702
rm -f conftest.err conftest.$ac_ext
5704
# OK, works on sane cases. Now check whether nonexistent headers
5705
# can be detected and how.
5706
cat >conftest.$ac_ext <<_ACEOF
5709
cat confdefs.h >>conftest.$ac_ext
5710
cat >>conftest.$ac_ext <<_ACEOF
5711
/* end confdefs.h. */
5712
@%:@include <ac_nonexistent.h>
5714
if { (ac_try="$ac_cpp conftest.$ac_ext"
5716
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5717
*) ac_try_echo=$ac_try;;
5719
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5720
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5722
grep -v '^ *+' conftest.er1 >conftest.err
5724
cat conftest.err >&5
5725
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5726
(exit $ac_status); } >/dev/null && {
5727
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5728
test ! -s conftest.err
5730
# Broken: success on invalid input.
5733
echo "$as_me: failed program was:" >&5
5734
sed 's/^/| /' conftest.$ac_ext >&5
5736
# Passes both tests.
5741
rm -f conftest.err conftest.$ac_ext
5744
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5745
rm -f conftest.err conftest.$ac_ext
5746
if $ac_preproc_ok; then
5751
ac_cv_prog_CXXCPP=$CXXCPP
5754
CXXCPP=$ac_cv_prog_CXXCPP
5756
ac_cv_prog_CXXCPP=$CXXCPP
5758
{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
5759
echo "${ECHO_T}$CXXCPP" >&6; }
5761
for ac_cxx_preproc_warn_flag in '' yes
5763
# Use a header file that comes with gcc, so configuring glibc
5764
# with a fresh cross-compiler works.
5765
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5766
# <limits.h> exists even on freestanding compilers.
5767
# On the NeXT, cc -E runs the code through the compiler's parser,
5768
# not just through cpp. "Syntax error" is here to catch this case.
5769
cat >conftest.$ac_ext <<_ACEOF
5772
cat confdefs.h >>conftest.$ac_ext
5773
cat >>conftest.$ac_ext <<_ACEOF
5774
/* end confdefs.h. */
5776
@%:@ include <limits.h>
5778
@%:@ include <assert.h>
5782
if { (ac_try="$ac_cpp conftest.$ac_ext"
5784
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5785
*) ac_try_echo=$ac_try;;
5787
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5788
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5790
grep -v '^ *+' conftest.er1 >conftest.err
5792
cat conftest.err >&5
5793
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5794
(exit $ac_status); } >/dev/null && {
5795
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5796
test ! -s conftest.err
5800
echo "$as_me: failed program was:" >&5
5801
sed 's/^/| /' conftest.$ac_ext >&5
5803
# Broken: fails on valid input.
5807
rm -f conftest.err conftest.$ac_ext
5809
# OK, works on sane cases. Now check whether nonexistent headers
5810
# can be detected and how.
5811
cat >conftest.$ac_ext <<_ACEOF
5814
cat confdefs.h >>conftest.$ac_ext
5815
cat >>conftest.$ac_ext <<_ACEOF
5816
/* end confdefs.h. */
5817
@%:@include <ac_nonexistent.h>
5819
if { (ac_try="$ac_cpp conftest.$ac_ext"
5821
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5822
*) ac_try_echo=$ac_try;;
5824
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5825
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5827
grep -v '^ *+' conftest.er1 >conftest.err
5829
cat conftest.err >&5
5830
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5831
(exit $ac_status); } >/dev/null && {
5832
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5833
test ! -s conftest.err
5835
# Broken: success on invalid input.
5838
echo "$as_me: failed program was:" >&5
5839
sed 's/^/| /' conftest.$ac_ext >&5
5841
# Passes both tests.
5846
rm -f conftest.err conftest.$ac_ext
5849
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5850
rm -f conftest.err conftest.$ac_ext
5851
if $ac_preproc_ok; then
5854
{ { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5855
See \`config.log' for more details." >&5
5856
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5857
See \`config.log' for more details." >&2;}
5858
{ (exit 1); exit 1; }; }
5862
ac_cpp='$CXXCPP $CPPFLAGS'
5863
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5864
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5865
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5871
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5872
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5873
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5874
if test -n "$ac_tool_prefix"; then
5875
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
5877
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5878
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5879
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5880
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5881
if test "${ac_cv_prog_F77+set}" = set; then
5882
echo $ECHO_N "(cached) $ECHO_C" >&6
5884
if test -n "$F77"; then
5885
ac_cv_prog_F77="$F77" # Let the user override the test.
5887
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5891
test -z "$as_dir" && as_dir=.
5892
for ac_exec_ext in '' $ac_executable_extensions; do
5893
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5894
ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5895
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5905
if test -n "$F77"; then
5906
{ echo "$as_me:$LINENO: result: $F77" >&5
5907
echo "${ECHO_T}$F77" >&6; }
5909
{ echo "$as_me:$LINENO: result: no" >&5
5910
echo "${ECHO_T}no" >&6; }
5914
test -n "$F77" && break
5917
if test -z "$F77"; then
5919
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
5921
# Extract the first word of "$ac_prog", so it can be a program name with args.
5922
set dummy $ac_prog; ac_word=$2
5923
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5924
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5925
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5926
echo $ECHO_N "(cached) $ECHO_C" >&6
5928
if test -n "$ac_ct_F77"; then
5929
ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5931
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5935
test -z "$as_dir" && as_dir=.
5936
for ac_exec_ext in '' $ac_executable_extensions; do
5937
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5938
ac_cv_prog_ac_ct_F77="$ac_prog"
5939
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5948
ac_ct_F77=$ac_cv_prog_ac_ct_F77
5949
if test -n "$ac_ct_F77"; then
5950
{ echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5951
echo "${ECHO_T}$ac_ct_F77" >&6; }
5953
{ echo "$as_me:$LINENO: result: no" >&5
5954
echo "${ECHO_T}no" >&6; }
5958
test -n "$ac_ct_F77" && break
5961
if test "x$ac_ct_F77" = x; then
5964
case $cross_compiling:$ac_tool_warned in
5966
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5967
whose name does not start with the host triplet. If you think this
5968
configuration is useful to you, please write to autoconf@gnu.org." >&5
5969
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5970
whose name does not start with the host triplet. If you think this
5971
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5972
ac_tool_warned=yes ;;
5979
# Provide some information about the compiler.
5980
echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5981
ac_compiler=`set X $ac_compile; echo $2`
5982
{ (ac_try="$ac_compiler --version >&5"
5984
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5985
*) ac_try_echo=$ac_try;;
5987
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5988
(eval "$ac_compiler --version >&5") 2>&5
5990
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5991
(exit $ac_status); }
5992
{ (ac_try="$ac_compiler -v >&5"
5994
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5995
*) ac_try_echo=$ac_try;;
5997
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5998
(eval "$ac_compiler -v >&5") 2>&5
6000
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6001
(exit $ac_status); }
6002
{ (ac_try="$ac_compiler -V >&5"
6004
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6005
*) ac_try_echo=$ac_try;;
6007
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6008
(eval "$ac_compiler -V >&5") 2>&5
6010
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6011
(exit $ac_status); }
6014
# If we don't use `.F' as extension, the preprocessor is not run on the
6015
# input file. (Note that this only needs to work for GNU compilers.)
6018
{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6019
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6020
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6021
echo $ECHO_N "(cached) $ECHO_C" >&6
6023
cat >conftest.$ac_ext <<_ACEOF
6031
rm -f conftest.$ac_objext
6032
if { (ac_try="$ac_compile"
6034
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6035
*) ac_try_echo=$ac_try;;
6037
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6038
(eval "$ac_compile") 2>conftest.er1
6040
grep -v '^ *+' conftest.er1 >conftest.err
6042
cat conftest.err >&5
6043
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6044
(exit $ac_status); } && {
6045
test -z "$ac_f77_werror_flag" ||
6046
test ! -s conftest.err
6047
} && test -s conftest.$ac_objext; then
6050
echo "$as_me: failed program was:" >&5
6051
sed 's/^/| /' conftest.$ac_ext >&5
6056
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6057
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6060
{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6061
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6063
ac_test_FFLAGS=${FFLAGS+set}
6064
ac_save_FFLAGS=$FFLAGS
6066
{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6067
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6068
if test "${ac_cv_prog_f77_g+set}" = set; then
6069
echo $ECHO_N "(cached) $ECHO_C" >&6
6072
cat >conftest.$ac_ext <<_ACEOF
6077
rm -f conftest.$ac_objext
6078
if { (ac_try="$ac_compile"
6080
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6081
*) ac_try_echo=$ac_try;;
6083
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6084
(eval "$ac_compile") 2>conftest.er1
6086
grep -v '^ *+' conftest.er1 >conftest.err
6088
cat conftest.err >&5
6089
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090
(exit $ac_status); } && {
6091
test -z "$ac_f77_werror_flag" ||
6092
test ! -s conftest.err
6093
} && test -s conftest.$ac_objext; then
6094
ac_cv_prog_f77_g=yes
6096
echo "$as_me: failed program was:" >&5
6097
sed 's/^/| /' conftest.$ac_ext >&5
6102
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6105
{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6106
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6107
if test "$ac_test_FFLAGS" = set; then
6108
FFLAGS=$ac_save_FFLAGS
6109
elif test $ac_cv_prog_f77_g = yes; then
6110
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6116
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6123
G77=`test $ac_compiler_gnu = yes && echo yes`
6125
ac_cpp='$CPP $CPPFLAGS'
6126
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6127
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6128
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6132
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6134
# find the maximum length of command line arguments
6135
{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6136
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6137
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6138
echo $ECHO_N "(cached) $ECHO_C" >&6
6145
# On DJGPP, this test can blow up pretty badly due to problems in libc
6146
# (any single argument exceeding 2000 bytes causes a buffer overrun
6147
# during glob expansion). Even if it were fixed, the result of this
6148
# check would be larger than it should be.
6149
lt_cv_sys_max_cmd_len=12288; # 12K is about right
6153
# Under GNU Hurd, this test is not required because there is
6154
# no limit to the length of command line arguments.
6155
# Libtool will interpret -1 as no limit whatsoever
6156
lt_cv_sys_max_cmd_len=-1;
6160
# On Win9x/ME, this test blows up -- it succeeds, but takes
6161
# about 5 minutes as the teststring grows exponentially.
6162
# Worse, since 9x/ME are not pre-emptively multitasking,
6163
# you end up with a "frozen" computer, even though with patience
6164
# the test eventually succeeds (with a max line length of 256k).
6165
# Instead, let's just punt: use the minimum linelength reported by
6166
# all of the supported platforms: 8192 (on NT/2K/XP).
6167
lt_cv_sys_max_cmd_len=8192;
6171
# On AmigaOS with pdksh, this test takes hours, literally.
6172
# So we just punt and use a minimum line length of 8192.
6173
lt_cv_sys_max_cmd_len=8192;
6176
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6177
# This has been around since 386BSD, at least. Likely further.
6178
if test -x /sbin/sysctl; then
6179
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6180
elif test -x /usr/sbin/sysctl; then
6181
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6183
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6185
# And add a safety zone
6186
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6187
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6191
# We know the value 262144 and hardcode it with a safety zone (like BSD)
6192
lt_cv_sys_max_cmd_len=196608
6196
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6197
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6198
# nice to cause kernel panics so lets avoid the loop below.
6199
# First set a reasonable default.
6200
lt_cv_sys_max_cmd_len=16384
6202
if test -x /sbin/sysconfig; then
6203
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6204
*1*) lt_cv_sys_max_cmd_len=-1 ;;
6209
lt_cv_sys_max_cmd_len=102400
6211
sysv5* | sco5v6* | sysv4.2uw2*)
6212
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6213
if test -n "$kargmax"; then
6214
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6216
lt_cv_sys_max_cmd_len=32768
6220
# If test is not a shell built-in, we'll probably end up computing a
6221
# maximum length that is only half of the actual maximum length, but
6223
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6224
while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6225
= "XX$teststring") >/dev/null 2>&1 &&
6226
new_result=`expr "X$teststring" : ".*" 2>&1` &&
6227
lt_cv_sys_max_cmd_len=$new_result &&
6228
test $i != 17 # 1/2 MB should be enough
6231
teststring=$teststring$teststring
6234
# Add a significant safety factor because C++ compilers can tack on massive
6235
# amounts of additional arguments before passing them to the linker.
6236
# It appears as though 1/2 is a usable value.
6237
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6243
if test -n $lt_cv_sys_max_cmd_len ; then
6244
{ echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6245
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6247
{ echo "$as_me:$LINENO: result: none" >&5
6248
echo "${ECHO_T}none" >&6; }
6254
# Check for command to grab the raw symbol name followed by C symbol from nm.
6255
{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6256
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6257
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6258
echo $ECHO_N "(cached) $ECHO_C" >&6
6261
# These are sane defaults that work on at least a few old systems.
6262
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6264
# Character class describing NM global symbol codes.
6265
symcode='[BCDEGRST]'
6267
# Regexp to match symbols that can be accessed directly from C.
6268
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6270
# Transform an extracted symbol line into a proper C declaration
6271
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6273
# Transform an extracted symbol line into symbol name and symbol address
6274
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'"
6276
# Define system-specific variables.
6281
cygwin* | mingw* | pw32*)
6282
symcode='[ABCDGISTW]'
6284
hpux*) # Its linker distinguishes data from code symbols
6285
if test "$host_cpu" = ia64; then
6286
symcode='[ABCDEGRST]'
6288
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6289
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'"
6291
linux* | k*bsd*-gnu)
6292
if test "$host_cpu" = ia64; then
6293
symcode='[ABCDGIRSTW]'
6294
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6295
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'"
6299
symcode='[BCDEGRST]'
6302
symcode='[BCDEGQRST]'
6313
sysv5* | sco5v6* | unixware* | OpenUNIX*)
6321
# Handle CRLF in mingw tool chain
6325
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6329
# If we're using GNU nm, then use its standard symbol codes.
6330
case `$NM -V 2>&1` in
6331
*GNU* | *'with BFD'*)
6332
symcode='[ABCDGIRSTW]' ;;
6335
# Try without a prefix undercore, then with it.
6336
for ac_symprfx in "" "_"; do
6338
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6339
symxfrm="\\1 $ac_symprfx\\2 \\2"
6341
# Write the raw and C identifiers.
6342
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6344
# Check to see that the pipe works correctly.
6348
cat > conftest.$ac_ext <<EOF
6353
void nm_test_func(){}
6357
int main(){nm_test_var='a';nm_test_func();return(0);}
6360
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6361
(eval $ac_compile) 2>&5
6363
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364
(exit $ac_status); }; then
6365
# Now try to grab the symbols.
6367
if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6368
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6370
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6371
(exit $ac_status); } && test -s "$nlist"; then
6372
# Try sorting and uniquifying the output.
6373
if sort "$nlist" | uniq > "$nlist"T; then
6374
mv -f "$nlist"T "$nlist"
6379
# Make sure that we snagged all the symbols we need.
6380
if grep ' nm_test_var$' "$nlist" >/dev/null; then
6381
if grep ' nm_test_func$' "$nlist" >/dev/null; then
6382
cat <<EOF > conftest.$ac_ext
6388
# Now generate the symbol file.
6389
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6391
cat <<EOF >> conftest.$ac_ext
6392
#if defined (__STDC__) && __STDC__
6393
# define lt_ptr_t void *
6395
# define lt_ptr_t char *
6399
/* The mapping between symbol names and symbols. */
6404
lt_preloaded_symbols[] =
6407
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6408
cat <<\EOF >> conftest.$ac_ext
6416
# Now try linking the two files.
6417
mv conftest.$ac_objext conftstm.$ac_objext
6418
lt_save_LIBS="$LIBS"
6419
lt_save_CFLAGS="$CFLAGS"
6420
LIBS="conftstm.$ac_objext"
6421
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6422
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6423
(eval $ac_link) 2>&5
6425
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6426
(exit $ac_status); } && test -s conftest${ac_exeext}; then
6429
LIBS="$lt_save_LIBS"
6430
CFLAGS="$lt_save_CFLAGS"
6432
echo "cannot find nm_test_func in $nlist" >&5
6435
echo "cannot find nm_test_var in $nlist" >&5
6438
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6441
echo "$progname: failed program was:" >&5
6442
cat conftest.$ac_ext >&5
6444
rm -f conftest* conftst*
6446
# Do not use the global_symbol_pipe unless it works.
6447
if test "$pipe_works" = yes; then
6450
lt_cv_sys_global_symbol_pipe=
6456
if test -z "$lt_cv_sys_global_symbol_pipe"; then
6457
lt_cv_sys_global_symbol_to_cdecl=
6459
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6460
{ echo "$as_me:$LINENO: result: failed" >&5
6461
echo "${ECHO_T}failed" >&6; }
6463
{ echo "$as_me:$LINENO: result: ok" >&5
6464
echo "${ECHO_T}ok" >&6; }
6467
{ echo "$as_me:$LINENO: checking for objdir" >&5
6468
echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6469
if test "${lt_cv_objdir+set}" = set; then
6470
echo $ECHO_N "(cached) $ECHO_C" >&6
6472
rm -f .libs 2>/dev/null
6473
mkdir .libs 2>/dev/null
6474
if test -d .libs; then
6477
# MS-DOS does not allow filenames that begin with a dot.
6480
rmdir .libs 2>/dev/null
6482
{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6483
echo "${ECHO_T}$lt_cv_objdir" >&6; }
6484
objdir=$lt_cv_objdir
6492
# AIX sometimes has problems with the GCC collect2 program. For some
6493
# reason, if we set the COLLECT_NAMES environment variable, the problems
6494
# vanish in a puff of smoke.
6495
if test "X${COLLECT_NAMES+set}" != Xset; then
6497
export COLLECT_NAMES
6502
# Sed substitution that helps us do robust quoting. It backslashifies
6503
# metacharacters that are still active within double-quoted strings.
6504
Xsed='sed -e 1s/^X//'
6505
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6507
# Same as above, but do not quote variable references.
6508
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6510
# Sed substitution to delay expansion of an escaped shell variable in a
6511
# double_quote_subst'ed string.
6512
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6514
# Sed substitution to avoid accidental globbing in evaled expressions
6515
no_glob_subst='s/\*/\\\*/g'
6521
default_ofile=libtool
6522
can_build_shared=yes
6524
# All known linkers require a `.a' archive for static linking (except MSVC,
6525
# which needs '.lib').
6527
ltmain="$ac_aux_dir/ltmain.sh"
6528
ofile="$default_ofile"
6529
with_gnu_ld="$lt_cv_prog_gnu_ld"
6531
if test -n "$ac_tool_prefix"; then
6532
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6533
set dummy ${ac_tool_prefix}ar; ac_word=$2
6534
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6535
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6536
if test "${ac_cv_prog_AR+set}" = set; then
6537
echo $ECHO_N "(cached) $ECHO_C" >&6
6539
if test -n "$AR"; then
6540
ac_cv_prog_AR="$AR" # Let the user override the test.
6542
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6546
test -z "$as_dir" && as_dir=.
6547
for ac_exec_ext in '' $ac_executable_extensions; do
6548
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6549
ac_cv_prog_AR="${ac_tool_prefix}ar"
6550
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6560
if test -n "$AR"; then
6561
{ echo "$as_me:$LINENO: result: $AR" >&5
6562
echo "${ECHO_T}$AR" >&6; }
6564
{ echo "$as_me:$LINENO: result: no" >&5
6565
echo "${ECHO_T}no" >&6; }
6570
if test -z "$ac_cv_prog_AR"; then
6572
# Extract the first word of "ar", so it can be a program name with args.
6573
set dummy ar; ac_word=$2
6574
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6575
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6576
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6577
echo $ECHO_N "(cached) $ECHO_C" >&6
6579
if test -n "$ac_ct_AR"; then
6580
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6582
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6586
test -z "$as_dir" && as_dir=.
6587
for ac_exec_ext in '' $ac_executable_extensions; do
6588
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6589
ac_cv_prog_ac_ct_AR="ar"
6590
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6599
ac_ct_AR=$ac_cv_prog_ac_ct_AR
6600
if test -n "$ac_ct_AR"; then
6601
{ echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6602
echo "${ECHO_T}$ac_ct_AR" >&6; }
6604
{ echo "$as_me:$LINENO: result: no" >&5
6605
echo "${ECHO_T}no" >&6; }
6608
if test "x$ac_ct_AR" = x; then
6611
case $cross_compiling:$ac_tool_warned in
6613
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6614
whose name does not start with the host triplet. If you think this
6615
configuration is useful to you, please write to autoconf@gnu.org." >&5
6616
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6617
whose name does not start with the host triplet. If you think this
6618
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6619
ac_tool_warned=yes ;;
6627
if test -n "$ac_tool_prefix"; then
6628
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6629
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6630
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6631
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6632
if test "${ac_cv_prog_RANLIB+set}" = set; then
6633
echo $ECHO_N "(cached) $ECHO_C" >&6
6635
if test -n "$RANLIB"; then
6636
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6638
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6642
test -z "$as_dir" && as_dir=.
6643
for ac_exec_ext in '' $ac_executable_extensions; do
6644
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6645
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6646
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6655
RANLIB=$ac_cv_prog_RANLIB
6656
if test -n "$RANLIB"; then
6657
{ echo "$as_me:$LINENO: result: $RANLIB" >&5
6658
echo "${ECHO_T}$RANLIB" >&6; }
6660
{ echo "$as_me:$LINENO: result: no" >&5
6661
echo "${ECHO_T}no" >&6; }
6666
if test -z "$ac_cv_prog_RANLIB"; then
6667
ac_ct_RANLIB=$RANLIB
6668
# Extract the first word of "ranlib", so it can be a program name with args.
6669
set dummy ranlib; ac_word=$2
6670
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6671
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6672
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6673
echo $ECHO_N "(cached) $ECHO_C" >&6
6675
if test -n "$ac_ct_RANLIB"; then
6676
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6678
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6682
test -z "$as_dir" && as_dir=.
6683
for ac_exec_ext in '' $ac_executable_extensions; do
6684
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6685
ac_cv_prog_ac_ct_RANLIB="ranlib"
6686
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6695
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6696
if test -n "$ac_ct_RANLIB"; then
6697
{ echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6698
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6700
{ echo "$as_me:$LINENO: result: no" >&5
6701
echo "${ECHO_T}no" >&6; }
6704
if test "x$ac_ct_RANLIB" = x; then
6707
case $cross_compiling:$ac_tool_warned in
6709
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6710
whose name does not start with the host triplet. If you think this
6711
configuration is useful to you, please write to autoconf@gnu.org." >&5
6712
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6713
whose name does not start with the host triplet. If you think this
6714
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6715
ac_tool_warned=yes ;;
6717
RANLIB=$ac_ct_RANLIB
6720
RANLIB="$ac_cv_prog_RANLIB"
6723
if test -n "$ac_tool_prefix"; then
6724
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6725
set dummy ${ac_tool_prefix}strip; ac_word=$2
6726
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6727
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6728
if test "${ac_cv_prog_STRIP+set}" = set; then
6729
echo $ECHO_N "(cached) $ECHO_C" >&6
6731
if test -n "$STRIP"; then
6732
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6734
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6738
test -z "$as_dir" && as_dir=.
6739
for ac_exec_ext in '' $ac_executable_extensions; do
6740
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6741
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6742
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6751
STRIP=$ac_cv_prog_STRIP
6752
if test -n "$STRIP"; then
6753
{ echo "$as_me:$LINENO: result: $STRIP" >&5
6754
echo "${ECHO_T}$STRIP" >&6; }
6756
{ echo "$as_me:$LINENO: result: no" >&5
6757
echo "${ECHO_T}no" >&6; }
6762
if test -z "$ac_cv_prog_STRIP"; then
6764
# Extract the first word of "strip", so it can be a program name with args.
6765
set dummy strip; ac_word=$2
6766
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6767
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6768
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6769
echo $ECHO_N "(cached) $ECHO_C" >&6
6771
if test -n "$ac_ct_STRIP"; then
6772
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6774
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6778
test -z "$as_dir" && as_dir=.
6779
for ac_exec_ext in '' $ac_executable_extensions; do
6780
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6781
ac_cv_prog_ac_ct_STRIP="strip"
6782
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6791
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6792
if test -n "$ac_ct_STRIP"; then
6793
{ echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6794
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6796
{ echo "$as_me:$LINENO: result: no" >&5
6797
echo "${ECHO_T}no" >&6; }
6800
if test "x$ac_ct_STRIP" = x; then
6803
case $cross_compiling:$ac_tool_warned in
6805
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6806
whose name does not start with the host triplet. If you think this
6807
configuration is useful to you, please write to autoconf@gnu.org." >&5
6808
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6809
whose name does not start with the host triplet. If you think this
6810
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6811
ac_tool_warned=yes ;;
6816
STRIP="$ac_cv_prog_STRIP"
6821
old_CFLAGS="$CFLAGS"
6823
# Set sane defaults for various variables
6824
test -z "$AR" && AR=ar
6825
test -z "$AR_FLAGS" && AR_FLAGS=cru
6826
test -z "$AS" && AS=as
6827
test -z "$CC" && CC=cc
6828
test -z "$LTCC" && LTCC=$CC
6829
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6830
test -z "$DLLTOOL" && DLLTOOL=dlltool
6831
test -z "$LD" && LD=ld
6832
test -z "$LN_S" && LN_S="ln -s"
6833
test -z "$MAGIC_CMD" && MAGIC_CMD=file
6834
test -z "$NM" && NM=nm
6835
test -z "$SED" && SED=sed
6836
test -z "$OBJDUMP" && OBJDUMP=objdump
6837
test -z "$RANLIB" && RANLIB=:
6838
test -z "$STRIP" && STRIP=:
6839
test -z "$ac_objext" && ac_objext=o
6841
# Determine commands to create old-style static archives.
6842
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6843
old_postinstall_cmds='chmod 644 $oldlib'
6844
old_postuninstall_cmds=
6846
if test -n "$RANLIB"; then
6849
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6852
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6855
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6858
for cc_temp in $compiler""; do
6860
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6861
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6866
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6869
# Only perform the check for file, if the check method requires it
6870
case $deplibs_check_method in
6872
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6873
{ echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6874
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6875
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6876
echo $ECHO_N "(cached) $ECHO_C" >&6
6880
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6883
lt_save_MAGIC_CMD="$MAGIC_CMD"
6884
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6885
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6886
for ac_dir in $ac_dummy; do
6888
test -z "$ac_dir" && ac_dir=.
6889
if test -f $ac_dir/${ac_tool_prefix}file; then
6890
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6891
if test -n "$file_magic_test_file"; then
6892
case $deplibs_check_method in
6894
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6895
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6896
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6897
$EGREP "$file_magic_regex" > /dev/null; then
6902
*** Warning: the command libtool uses to detect shared libraries,
6903
*** $file_magic_cmd, produces output that libtool cannot recognize.
6904
*** The result is that libtool may fail to recognize shared libraries
6905
*** as such. This will affect the creation of libtool libraries that
6906
*** depend on shared libraries, but programs linked with such libtool
6907
*** libraries will work regardless of this problem. Nevertheless, you
6908
*** may want to report the problem to your system manager and/or to
6909
*** bug-libtool@gnu.org
6919
MAGIC_CMD="$lt_save_MAGIC_CMD"
6924
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6925
if test -n "$MAGIC_CMD"; then
6926
{ echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6927
echo "${ECHO_T}$MAGIC_CMD" >&6; }
6929
{ echo "$as_me:$LINENO: result: no" >&5
6930
echo "${ECHO_T}no" >&6; }
6933
if test -z "$lt_cv_path_MAGIC_CMD"; then
6934
if test -n "$ac_tool_prefix"; then
6935
{ echo "$as_me:$LINENO: checking for file" >&5
6936
echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6937
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6938
echo $ECHO_N "(cached) $ECHO_C" >&6
6942
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6945
lt_save_MAGIC_CMD="$MAGIC_CMD"
6946
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6947
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6948
for ac_dir in $ac_dummy; do
6950
test -z "$ac_dir" && ac_dir=.
6951
if test -f $ac_dir/file; then
6952
lt_cv_path_MAGIC_CMD="$ac_dir/file"
6953
if test -n "$file_magic_test_file"; then
6954
case $deplibs_check_method in
6956
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6957
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6958
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6959
$EGREP "$file_magic_regex" > /dev/null; then
6964
*** Warning: the command libtool uses to detect shared libraries,
6965
*** $file_magic_cmd, produces output that libtool cannot recognize.
6966
*** The result is that libtool may fail to recognize shared libraries
6967
*** as such. This will affect the creation of libtool libraries that
6968
*** depend on shared libraries, but programs linked with such libtool
6969
*** libraries will work regardless of this problem. Nevertheless, you
6970
*** may want to report the problem to your system manager and/or to
6971
*** bug-libtool@gnu.org
6981
MAGIC_CMD="$lt_save_MAGIC_CMD"
6986
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6987
if test -n "$MAGIC_CMD"; then
6988
{ echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6989
echo "${ECHO_T}$MAGIC_CMD" >&6; }
6991
{ echo "$as_me:$LINENO: result: no" >&5
6992
echo "${ECHO_T}no" >&6; }
7007
# Check whether --enable-libtool-lock was given.
7008
if test "${enable_libtool_lock+set}" = set; then
7009
enableval=$enable_libtool_lock;
7012
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7015
# Check whether --with-pic was given.
7016
if test "${with_pic+set}" = set; then
7017
withval=$with_pic; pic_mode="$withval"
7022
test -z "$pic_mode" && pic_mode=default
7024
# Use C for the default configuration in the libtool script
7028
ac_cpp='$CPP $CPPFLAGS'
7029
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7030
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7031
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7034
# Source file extension for C test sources.
7037
# Object file extension for compiled C test sources.
7041
# Code to be used in simple compile tests
7042
lt_simple_compile_test_code="int some_variable = 0;\n"
7044
# Code to be used in simple link tests
7045
lt_simple_link_test_code='int main(){return(0);}\n'
7048
# If no C compiler was specified, use CC.
7051
# If no C compiler flags were specified, use CFLAGS.
7052
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7054
# Allow CC to be a program name with arguments.
7058
# save warnings/boilerplate of simple test code
7059
ac_outfile=conftest.$ac_objext
7060
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7061
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7062
_lt_compiler_boilerplate=`cat conftest.err`
7065
ac_outfile=conftest.$ac_objext
7066
printf "$lt_simple_link_test_code" >conftest.$ac_ext
7067
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7068
_lt_linker_boilerplate=`cat conftest.err`
7073
lt_prog_compiler_no_builtin_flag=
7075
if test "$GCC" = yes; then
7076
lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7079
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7080
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7081
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7082
echo $ECHO_N "(cached) $ECHO_C" >&6
7084
lt_cv_prog_compiler_rtti_exceptions=no
7085
ac_outfile=conftest.$ac_objext
7086
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7087
lt_compiler_flag="-fno-rtti -fno-exceptions"
7088
# Insert the option either (1) after the last *FLAGS variable, or
7089
# (2) before a word containing "conftest.", or (3) at the end.
7090
# Note that $ac_compile itself does not contain backslashes and begins
7091
# with a dollar sign (not a hyphen), so the echo should work correctly.
7092
# The option is referenced via a variable to avoid confusing sed.
7093
lt_compile=`echo "$ac_compile" | $SED \
7094
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7095
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7096
-e 's:$: $lt_compiler_flag:'`
7097
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
7098
(eval "$lt_compile" 2>conftest.err)
7100
cat conftest.err >&5
7101
echo "$as_me:__oline__: \$? = $ac_status" >&5
7102
if (exit $ac_status) && test -s "$ac_outfile"; then
7103
# The compiler can only warn and ignore the option if not recognized
7104
# So say no if there are warnings other than the usual output.
7105
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7106
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7107
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7108
lt_cv_prog_compiler_rtti_exceptions=yes
7114
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7115
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7117
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7118
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7125
lt_prog_compiler_wl=
7126
lt_prog_compiler_pic=
7127
lt_prog_compiler_static=
7129
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7130
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7132
if test "$GCC" = yes; then
7133
lt_prog_compiler_wl='-Wl,'
7134
lt_prog_compiler_static='-static'
7138
# All AIX code is PIC.
7139
if test "$host_cpu" = ia64; then
7140
# AIX 5 now supports IA64 processor
7141
lt_prog_compiler_static='-Bstatic'
7146
# FIXME: we need at least 68020 code to build shared libraries, but
7147
# adding the `-m68020' flag to GCC prevents building anything better,
7149
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7152
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7153
# PIC is the default for these OSes.
7156
mingw* | pw32* | os2*)
7157
# This hack is so that the source file can tell whether it is being
7158
# built for inclusion in a dll (and should export symbols for example).
7159
lt_prog_compiler_pic='-DDLL_EXPORT'
7162
darwin* | rhapsody*)
7163
# PIC is the default on this platform
7164
# Common symbols not allowed in MH_DYLIB files
7165
lt_prog_compiler_pic='-fno-common'
7169
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
7170
# Instead, we relocate shared libraries at runtime.
7174
# Just because we use GCC doesn't mean we suddenly get shared libraries
7175
# on systems that don't support them.
7176
lt_prog_compiler_can_build_shared=no
7181
if test -d /usr/nec; then
7182
lt_prog_compiler_pic=-Kconform_pic
7187
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7194
lt_prog_compiler_pic='-fPIC'
7200
lt_prog_compiler_pic='-fPIC'
7204
# PORTME Check for flag to pass linker flags through the system compiler.
7207
lt_prog_compiler_wl='-Wl,'
7208
if test "$host_cpu" = ia64; then
7209
# AIX 5 now supports IA64 processor
7210
lt_prog_compiler_static='-Bstatic'
7212
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7216
# PIC is the default on this platform
7217
# Common symbols not allowed in MH_DYLIB files
7218
case $cc_basename in
7220
lt_prog_compiler_pic='-qnocommon'
7221
lt_prog_compiler_wl='-Wl,'
7226
mingw* | pw32* | os2*)
7227
# This hack is so that the source file can tell whether it is being
7228
# built for inclusion in a dll (and should export symbols for example).
7229
lt_prog_compiler_pic='-DDLL_EXPORT'
7232
hpux9* | hpux10* | hpux11*)
7233
lt_prog_compiler_wl='-Wl,'
7234
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7241
lt_prog_compiler_pic='+Z'
7244
# Is there a better lt_prog_compiler_static that works with the bundled CC?
7245
lt_prog_compiler_static='${wl}-a ${wl}archive'
7248
irix5* | irix6* | nonstopux*)
7249
lt_prog_compiler_wl='-Wl,'
7250
# PIC (with -KPIC) is the default.
7251
lt_prog_compiler_static='-non_shared'
7255
lt_prog_compiler_pic='-KPIC'
7256
lt_prog_compiler_static='-Bstatic'
7259
linux* | k*bsd*-gnu)
7260
case $cc_basename in
7262
lt_prog_compiler_wl='-Wl,'
7263
lt_prog_compiler_pic='-KPIC'
7264
lt_prog_compiler_static='-static'
7266
pgcc* | pgf77* | pgf90* | pgf95*)
7267
# Portland Group compilers (*not* the Pentium gcc compiler,
7268
# which looks to be a dead project)
7269
lt_prog_compiler_wl='-Wl,'
7270
lt_prog_compiler_pic='-fpic'
7271
lt_prog_compiler_static='-Bstatic'
7274
lt_prog_compiler_wl='-Wl,'
7275
# All Alpha code is PIC.
7276
lt_prog_compiler_static='-non_shared'
7281
osf3* | osf4* | osf5*)
7282
lt_prog_compiler_wl='-Wl,'
7283
# All OSF/1 code is PIC.
7284
lt_prog_compiler_static='-non_shared'
7288
lt_prog_compiler_pic='-KPIC'
7289
lt_prog_compiler_static='-Bstatic'
7290
case $cc_basename in
7292
lt_prog_compiler_wl='-Qoption ld ';;
7294
lt_prog_compiler_wl='-Wl,';;
7299
lt_prog_compiler_wl='-Qoption ld '
7300
lt_prog_compiler_pic='-PIC'
7301
lt_prog_compiler_static='-Bstatic'
7304
sysv4 | sysv4.2uw2* | sysv4.3*)
7305
lt_prog_compiler_wl='-Wl,'
7306
lt_prog_compiler_pic='-KPIC'
7307
lt_prog_compiler_static='-Bstatic'
7311
if test -d /usr/nec ;then
7312
lt_prog_compiler_pic='-Kconform_pic'
7313
lt_prog_compiler_static='-Bstatic'
7317
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7318
lt_prog_compiler_wl='-Wl,'
7319
lt_prog_compiler_pic='-KPIC'
7320
lt_prog_compiler_static='-Bstatic'
7324
lt_prog_compiler_wl='-Wl,'
7325
lt_prog_compiler_can_build_shared=no
7329
lt_prog_compiler_pic='-pic'
7330
lt_prog_compiler_static='-Bstatic'
7334
lt_prog_compiler_can_build_shared=no
7339
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7340
echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7343
# Check to make sure the PIC flag actually works.
7345
if test -n "$lt_prog_compiler_pic"; then
7347
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7348
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7349
if test "${lt_prog_compiler_pic_works+set}" = set; then
7350
echo $ECHO_N "(cached) $ECHO_C" >&6
7352
lt_prog_compiler_pic_works=no
7353
ac_outfile=conftest.$ac_objext
7354
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7355
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7356
# Insert the option either (1) after the last *FLAGS variable, or
7357
# (2) before a word containing "conftest.", or (3) at the end.
7358
# Note that $ac_compile itself does not contain backslashes and begins
7359
# with a dollar sign (not a hyphen), so the echo should work correctly.
7360
# The option is referenced via a variable to avoid confusing sed.
7361
lt_compile=`echo "$ac_compile" | $SED \
7362
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7363
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7364
-e 's:$: $lt_compiler_flag:'`
7365
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
7366
(eval "$lt_compile" 2>conftest.err)
7368
cat conftest.err >&5
7369
echo "$as_me:__oline__: \$? = $ac_status" >&5
7370
if (exit $ac_status) && test -s "$ac_outfile"; then
7371
# The compiler can only warn and ignore the option if not recognized
7372
# So say no if there are warnings other than the usual output.
7373
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7374
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7375
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7376
lt_prog_compiler_pic_works=yes
7382
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7383
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7385
if test x"$lt_prog_compiler_pic_works" = xyes; then
7386
case $lt_prog_compiler_pic in
7388
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7391
lt_prog_compiler_pic=
7392
lt_prog_compiler_can_build_shared=no
7397
# For platforms which do not support PIC, -DPIC is meaningless:
7399
lt_prog_compiler_pic=
7402
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7407
# Check to make sure the static flag actually works.
7409
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7410
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7411
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7412
if test "${lt_prog_compiler_static_works+set}" = set; then
7413
echo $ECHO_N "(cached) $ECHO_C" >&6
7415
lt_prog_compiler_static_works=no
7416
save_LDFLAGS="$LDFLAGS"
7417
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7418
printf "$lt_simple_link_test_code" > conftest.$ac_ext
7419
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7420
# The linker can only warn and ignore the option if not recognized
7421
# So say no if there are warnings
7422
if test -s conftest.err; then
7423
# Append any errors to the config.log.
7424
cat conftest.err 1>&5
7425
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7426
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7427
if diff conftest.exp conftest.er2 >/dev/null; then
7428
lt_prog_compiler_static_works=yes
7431
lt_prog_compiler_static_works=yes
7435
LDFLAGS="$save_LDFLAGS"
7438
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7439
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7441
if test x"$lt_prog_compiler_static_works" = xyes; then
7444
lt_prog_compiler_static=
7448
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7449
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7450
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7451
echo $ECHO_N "(cached) $ECHO_C" >&6
7453
lt_cv_prog_compiler_c_o=no
7454
$rm -r conftest 2>/dev/null
7458
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7460
lt_compiler_flag="-o out/conftest2.$ac_objext"
7461
# Insert the option either (1) after the last *FLAGS variable, or
7462
# (2) before a word containing "conftest.", or (3) at the end.
7463
# Note that $ac_compile itself does not contain backslashes and begins
7464
# with a dollar sign (not a hyphen), so the echo should work correctly.
7465
lt_compile=`echo "$ac_compile" | $SED \
7466
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7467
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7468
-e 's:$: $lt_compiler_flag:'`
7469
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
7470
(eval "$lt_compile" 2>out/conftest.err)
7472
cat out/conftest.err >&5
7473
echo "$as_me:__oline__: \$? = $ac_status" >&5
7474
if (exit $ac_status) && test -s out/conftest2.$ac_objext
7476
# The compiler can only warn and ignore the option if not recognized
7477
# So say no if there are warnings
7478
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7479
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7480
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7481
lt_cv_prog_compiler_c_o=yes
7486
# SGI C++ compiler will create directory out/ii_files/ for
7487
# template instantiation
7488
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7489
$rm out/* && rmdir out
7495
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7496
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7499
hard_links="nottested"
7500
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7501
# do not overwrite the value of need_locks provided by the user
7502
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7503
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7506
ln conftest.a conftest.b 2>/dev/null && hard_links=no
7508
ln conftest.a conftest.b 2>&5 || hard_links=no
7509
ln conftest.a conftest.b 2>/dev/null && hard_links=no
7510
{ echo "$as_me:$LINENO: result: $hard_links" >&5
7511
echo "${ECHO_T}$hard_links" >&6; }
7512
if test "$hard_links" = no; then
7513
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7514
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7521
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7522
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7525
allow_undefined_flag=
7526
enable_shared_with_static_runtimes=no
7528
archive_expsym_cmds=
7529
old_archive_From_new_cmds=
7530
old_archive_from_expsyms_cmds=
7531
export_dynamic_flag_spec=
7532
whole_archive_flag_spec=
7533
thread_safe_flag_spec=
7534
hardcode_libdir_flag_spec=
7535
hardcode_libdir_flag_spec_ld=
7536
hardcode_libdir_separator=
7539
hardcode_shlibpath_var=unsupported
7540
link_all_deplibs=unknown
7541
hardcode_automatic=no
7544
always_export_symbols=no
7545
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7546
# include_expsyms should be a list of space-separated symbols to be *always*
7547
# included in the symbol list
7549
# exclude_expsyms can be an extended regexp of symbols to exclude
7550
# it will be wrapped by ` (' and `)$', so one must not match beginning or
7551
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7552
# as well as any symbol that contains `d'.
7553
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7554
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7555
# platforms (ab)use it in PIC code, but their linkers get confused if
7556
# the symbol is explicitly referenced. Since portable code cannot
7557
# rely on this symbol name, it's probably fine to never include it in
7558
# preloaded symbol tables.
7559
extract_expsyms_cmds=
7560
# Just being paranoid about ensuring that cc_basename is set.
7561
for cc_temp in $compiler""; do
7563
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7564
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7569
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7572
cygwin* | mingw* | pw32*)
7573
# FIXME: the MSVC++ port hasn't been tested in a loooong time
7574
# When not using gcc, we currently assume that we are using
7575
# Microsoft Visual C++.
7576
if test "$GCC" != yes; then
7581
# we just hope/assume this is gcc and not c89 (= MSVC++)
7590
if test "$with_gnu_ld" = yes; then
7591
# If archive_cmds runs LD, not CC, wlarc should be empty
7594
# Set some defaults for GNU ld with shared library support. These
7595
# are reset later if shared libraries are not supported. Putting them
7596
# here allows them to be overridden if necessary.
7597
runpath_var=LD_RUN_PATH
7598
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7599
export_dynamic_flag_spec='${wl}--export-dynamic'
7600
# ancient GNU ld didn't support --whole-archive et. al.
7601
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7602
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7604
whole_archive_flag_spec=
7606
supports_anon_versioning=no
7607
case `$LD -v 2>/dev/null` in
7608
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7609
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7610
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7611
*\ 2.11.*) ;; # other 2.11 versions
7612
*) supports_anon_versioning=yes ;;
7615
# See if GNU ld supports shared libraries.
7617
aix3* | aix4* | aix5*)
7618
# On AIX/PPC, the GNU linker is very broken
7619
if test "$host_cpu" != ia64; then
7623
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7624
*** to be unable to reliably create shared libraries on AIX.
7625
*** Therefore, libtool is disabling shared libraries support. If you
7626
*** really care for shared libraries, you may want to modify your PATH
7627
*** so that a non-GNU linker is found, and then restart.
7634
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)'
7635
hardcode_libdir_flag_spec='-L$libdir'
7636
hardcode_minus_L=yes
7638
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7639
# that the semantics of dynamic libraries on AmigaOS, at least up
7640
# to version 4, is to share data among multiple programs linked
7641
# with the same dynamic library. Since this doesn't match the
7642
# behavior of shared libraries on other platforms, we can't use
7648
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7649
allow_undefined_flag=unsupported
7650
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7651
# support --undefined. This deserves some investigation. FIXME
7652
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7658
cygwin* | mingw* | pw32*)
7659
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7660
# as there is no search path for DLLs.
7661
hardcode_libdir_flag_spec='-L$libdir'
7662
allow_undefined_flag=unsupported
7663
always_export_symbols=no
7664
enable_shared_with_static_runtimes=yes
7665
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7667
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7668
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7669
# If the export-symbols file already is a .def file (1st line
7670
# is EXPORTS), use it as is; otherwise, prepend...
7671
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7672
cp $export_symbols $output_objdir/$soname.def;
7674
echo EXPORTS > $output_objdir/$soname.def;
7675
cat $export_symbols >> $output_objdir/$soname.def;
7677
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7685
hardcode_shlibpath_var=no
7686
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7687
export_dynamic_flag_spec='${wl}-E'
7688
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7689
# Instead, shared libraries are loaded at an image base (0x10000000 by
7690
# default) and relocated if they conflict, which is a slow very memory
7691
# consuming and fragmenting process. To avoid this, we pick a random,
7692
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7693
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
7694
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7695
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'
7698
linux* | k*bsd*-gnu)
7699
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7701
case $cc_basename,$host_cpu in
7702
pgcc*) # Portland Group C compiler
7703
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'
7704
tmp_addflag=' $pic_flag'
7706
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7707
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'
7708
tmp_addflag=' $pic_flag -Mnomain' ;;
7709
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7710
tmp_addflag=' -i_dynamic' ;;
7711
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7712
tmp_addflag=' -i_dynamic -nofor_main' ;;
7713
ifc* | ifort*) # Intel Fortran compiler
7714
tmp_addflag=' -nofor_main' ;;
7716
archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7718
if test $supports_anon_versioning = yes; then
7719
archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7720
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7721
$echo "local: *; };" >> $output_objdir/$libname.ver~
7722
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7730
netbsd* | netbsdelf*-gnu)
7731
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7732
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7735
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7736
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7741
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7745
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7746
*** create shared libraries on Solaris systems. Therefore, libtool
7747
*** is disabling shared libraries support. We urge you to upgrade GNU
7748
*** binutils to release 2.9.1 or newer. Another option is to modify
7749
*** your PATH or compiler configuration so that the native linker is
7750
*** used, and then restart.
7753
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7754
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7755
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7761
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7762
case `$LD -v 2>&1` in
7763
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7767
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7768
*** reliably create shared libraries on SCO systems. Therefore, libtool
7769
*** is disabling shared libraries support. We urge you to upgrade GNU
7770
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7771
*** your PATH or compiler configuration so that the native linker is
7772
*** used, and then restart.
7777
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7778
hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7779
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7780
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7789
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7792
hardcode_shlibpath_var=no
7796
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7797
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7798
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7805
if test "$ld_shlibs" = no; then
7807
hardcode_libdir_flag_spec=
7808
export_dynamic_flag_spec=
7809
whole_archive_flag_spec=
7812
# PORTME fill in a description of your system's linker (not GNU ld)
7815
allow_undefined_flag=unsupported
7816
always_export_symbols=yes
7817
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'
7818
# Note: this linker hardcodes the directories in LIBPATH if there
7819
# are no directories specified by -L.
7820
hardcode_minus_L=yes
7821
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7822
# Neither direct hardcoding nor static linking is supported with a
7824
hardcode_direct=unsupported
7829
if test "$host_cpu" = ia64; then
7830
# On IA64, the linker does run time linking by default, so we don't
7831
# have to do anything special.
7832
aix_use_runtimelinking=no
7833
exp_sym_flag='-Bexport'
7836
# If we're using GNU nm, then we don't want the "-C" option.
7837
# -C means demangle to AIX nm, but means don't demangle with GNU nm
7838
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7839
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'
7841
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'
7843
aix_use_runtimelinking=no
7845
# Test if we are trying to use run time linking or normal
7846
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
7847
# need to do runtime linking.
7848
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7849
for ld_flag in $LDFLAGS; do
7850
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7851
aix_use_runtimelinking=yes
7858
exp_sym_flag='-bexport'
7859
no_entry_flag='-bnoentry'
7862
# When large executables or shared objects are built, AIX ld can
7863
# have problems creating the table of contents. If linking a library
7864
# or program results in "error TOC overflow" add -mminimal-toc to
7865
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7866
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7870
hardcode_libdir_separator=':'
7871
link_all_deplibs=yes
7873
if test "$GCC" = yes; then
7874
case $host_os in aix4.[012]|aix4.[012].*)
7875
# We only want to do this on AIX 4.2 and lower, the check
7876
# below for broken collect2 doesn't work under 4.3+
7877
collect2name=`${CC} -print-prog-name=collect2`
7878
if test -f "$collect2name" && \
7879
strings "$collect2name" | grep resolve_lib_name >/dev/null
7881
# We have reworked collect2
7884
# We have old collect2
7885
hardcode_direct=unsupported
7886
# It fails to find uninstalled libraries when the uninstalled
7887
# path is not listed in the libpath. Setting hardcode_minus_L
7888
# to unsupported forces relinking
7889
hardcode_minus_L=yes
7890
hardcode_libdir_flag_spec='-L$libdir'
7891
hardcode_libdir_separator=
7895
shared_flag='-shared'
7896
if test "$aix_use_runtimelinking" = yes; then
7897
shared_flag="$shared_flag "'${wl}-G'
7901
if test "$host_cpu" = ia64; then
7902
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7903
# chokes on -Wl,-G. The following line is correct:
7906
if test "$aix_use_runtimelinking" = yes; then
7907
shared_flag='${wl}-G'
7909
shared_flag='${wl}-bM:SRE'
7914
# It seems that -bexpall does not export symbols beginning with
7915
# underscore (_), so it is better to generate a list of symbols to export.
7916
always_export_symbols=yes
7917
if test "$aix_use_runtimelinking" = yes; then
7918
# Warning - without using the other runtime loading flags (-brtl),
7919
# -berok will link without error, but may produce a broken library.
7920
allow_undefined_flag='-berok'
7921
# Determine the default libpath from the value encoded in an empty executable.
7922
cat >conftest.$ac_ext <<_ACEOF
7925
cat confdefs.h >>conftest.$ac_ext
7926
cat >>conftest.$ac_ext <<_ACEOF
7927
/* end confdefs.h. */
7937
rm -f conftest.$ac_objext conftest$ac_exeext
7938
if { (ac_try="$ac_link"
7940
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7941
*) ac_try_echo=$ac_try;;
7943
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7944
(eval "$ac_link") 2>conftest.er1
7946
grep -v '^ *+' conftest.er1 >conftest.err
7948
cat conftest.err >&5
7949
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7950
(exit $ac_status); } && {
7951
test -z "$ac_c_werror_flag" ||
7952
test ! -s conftest.err
7953
} && test -s conftest$ac_exeext &&
7954
$as_test_x conftest$ac_exeext; then
7956
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7958
# Check for a 64-bit object if we didn't find anything.
7959
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; }
7962
echo "$as_me: failed program was:" >&5
7963
sed 's/^/| /' conftest.$ac_ext >&5
7968
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7969
conftest$ac_exeext conftest.$ac_ext
7970
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7972
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7973
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"
7975
if test "$host_cpu" = ia64; then
7976
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7977
allow_undefined_flag="-z nodefs"
7978
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"
7980
# Determine the default libpath from the value encoded in an empty executable.
7981
cat >conftest.$ac_ext <<_ACEOF
7984
cat confdefs.h >>conftest.$ac_ext
7985
cat >>conftest.$ac_ext <<_ACEOF
7986
/* end confdefs.h. */
7996
rm -f conftest.$ac_objext conftest$ac_exeext
7997
if { (ac_try="$ac_link"
7999
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8000
*) ac_try_echo=$ac_try;;
8002
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8003
(eval "$ac_link") 2>conftest.er1
8005
grep -v '^ *+' conftest.er1 >conftest.err
8007
cat conftest.err >&5
8008
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8009
(exit $ac_status); } && {
8010
test -z "$ac_c_werror_flag" ||
8011
test ! -s conftest.err
8012
} && test -s conftest$ac_exeext &&
8013
$as_test_x conftest$ac_exeext; then
8015
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8017
# Check for a 64-bit object if we didn't find anything.
8018
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; }
8021
echo "$as_me: failed program was:" >&5
8022
sed 's/^/| /' conftest.$ac_ext >&5
8027
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8028
conftest$ac_exeext conftest.$ac_ext
8029
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8031
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8032
# Warning - without using the other run time loading flags,
8033
# -berok will link without error, but may produce a broken library.
8034
no_undefined_flag=' ${wl}-bernotok'
8035
allow_undefined_flag=' ${wl}-berok'
8036
# Exported symbols can be pulled into shared objects from archives
8037
whole_archive_flag_spec='$convenience'
8038
archive_cmds_need_lc=yes
8039
# This is similar to how AIX traditionally builds its shared libraries.
8040
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'
8046
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)'
8047
hardcode_libdir_flag_spec='-L$libdir'
8048
hardcode_minus_L=yes
8049
# see comment about different semantics on the GNU ld section
8054
export_dynamic_flag_spec=-rdynamic
8057
cygwin* | mingw* | pw32*)
8058
# When not using gcc, we currently assume that we are using
8059
# Microsoft Visual C++.
8060
# hardcode_libdir_flag_spec is actually meaningless, as there is
8061
# no search path for DLLs.
8062
hardcode_libdir_flag_spec=' '
8063
allow_undefined_flag=unsupported
8064
# Tell ltmain to make .lib files, not .a files.
8066
# Tell ltmain to make .dll files, not .so files.
8068
# FIXME: Setting linknames here is a bad hack.
8069
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8070
# The linker will automatically build a .lib file if we build a DLL.
8071
old_archive_From_new_cmds='true'
8072
# FIXME: Should let the user specify the lib program.
8073
old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8074
fix_srcfile_path='`cygpath -w "$srcfile"`'
8075
enable_shared_with_static_runtimes=yes
8078
darwin* | rhapsody*)
8080
rhapsody* | darwin1.[012])
8081
allow_undefined_flag='${wl}-undefined ${wl}suppress'
8084
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8085
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8087
case ${MACOSX_DEPLOYMENT_TARGET} in
8089
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8092
allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8098
archive_cmds_need_lc=no
8100
hardcode_automatic=yes
8101
hardcode_shlibpath_var=unsupported
8102
whole_archive_flag_spec=''
8103
link_all_deplibs=yes
8104
if test "$GCC" = yes ; then
8105
output_verbose_link_cmd='echo'
8106
archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8107
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8108
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8109
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}'
8110
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}'
8112
case $cc_basename in
8114
output_verbose_link_cmd='echo'
8115
archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8116
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8117
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8118
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}'
8119
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}'
8129
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8130
hardcode_libdir_flag_spec='-L$libdir'
8131
hardcode_shlibpath_var=no
8138
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8139
# support. Future versions do this automatically, but an explicit c++rt0.o
8140
# does not break anything, and helps significantly (at the cost of a little
8143
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8144
hardcode_libdir_flag_spec='-R$libdir'
8146
hardcode_shlibpath_var=no
8149
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
8151
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8153
hardcode_minus_L=yes
8154
hardcode_shlibpath_var=no
8157
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8158
freebsd* | dragonfly*)
8159
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8160
hardcode_libdir_flag_spec='-R$libdir'
8162
hardcode_shlibpath_var=no
8166
if test "$GCC" = yes; then
8167
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'
8169
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'
8171
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8172
hardcode_libdir_separator=:
8175
# hardcode_minus_L: Not really in the search PATH,
8176
# but as the default location of the library.
8177
hardcode_minus_L=yes
8178
export_dynamic_flag_spec='${wl}-E'
8182
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8183
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8185
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8187
if test "$with_gnu_ld" = no; then
8188
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8189
hardcode_libdir_separator=:
8192
export_dynamic_flag_spec='${wl}-E'
8194
# hardcode_minus_L: Not really in the search PATH,
8195
# but as the default location of the library.
8196
hardcode_minus_L=yes
8201
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8204
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8207
archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8210
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8216
archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8219
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8222
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8226
if test "$with_gnu_ld" = no; then
8227
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8228
hardcode_libdir_separator=:
8232
hardcode_libdir_flag_spec_ld='+b $libdir'
8234
hardcode_shlibpath_var=no
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
8248
irix5* | irix6* | nonstopux*)
8249
if test "$GCC" = yes; then
8250
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'
8252
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'
8253
hardcode_libdir_flag_spec_ld='-rpath $libdir'
8255
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8256
hardcode_libdir_separator=:
8257
link_all_deplibs=yes
8260
netbsd* | netbsdelf*-gnu)
8261
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8262
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8264
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8266
hardcode_libdir_flag_spec='-R$libdir'
8268
hardcode_shlibpath_var=no
8272
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8274
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8275
hardcode_libdir_separator=:
8276
hardcode_shlibpath_var=no
8281
hardcode_shlibpath_var=no
8282
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8283
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8284
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8285
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8286
export_dynamic_flag_spec='${wl}-E'
8289
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8290
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8291
hardcode_libdir_flag_spec='-R$libdir'
8294
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8295
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8302
hardcode_libdir_flag_spec='-L$libdir'
8303
hardcode_minus_L=yes
8304
allow_undefined_flag=unsupported
8305
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'
8306
old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8310
if test "$GCC" = yes; then
8311
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8312
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'
8314
allow_undefined_flag=' -expect_unresolved \*'
8315
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'
8317
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8318
hardcode_libdir_separator=:
8321
osf4* | osf5*) # as osf3* with the addition of -msym flag
8322
if test "$GCC" = yes; then
8323
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8324
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'
8325
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8327
allow_undefined_flag=' -expect_unresolved \*'
8328
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'
8329
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8330
$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'
8332
# Both c and cxx compiler support -rpath directly
8333
hardcode_libdir_flag_spec='-rpath $libdir'
8335
hardcode_libdir_separator=:
8339
no_undefined_flag=' -z text'
8340
if test "$GCC" = yes; then
8342
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8343
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8344
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8347
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8348
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8349
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8351
hardcode_libdir_flag_spec='-R$libdir'
8352
hardcode_shlibpath_var=no
8354
solaris2.[0-5] | solaris2.[0-5].*) ;;
8356
# The compiler driver will combine linker options so we
8357
# cannot just pass the convience library names through
8358
# without $wl, iff we do not link with $LD.
8359
# Luckily, gcc supports the same syntax we need for Sun Studio.
8360
# Supported since Solaris 2.6 (maybe 2.5.1?)
8363
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8365
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' ;;
8368
link_all_deplibs=yes
8372
if test "x$host_vendor" = xsequent; then
8373
# Use $CC to link under sequent, because it throws in some extra .o
8374
# files that make .init and .fini sections work.
8375
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8377
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8379
hardcode_libdir_flag_spec='-L$libdir'
8381
hardcode_minus_L=yes
8382
hardcode_shlibpath_var=no
8386
case $host_vendor in
8388
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8389
hardcode_direct=yes # is this really true???
8392
## LD is ld it makes a PLAMLIB
8393
## CC just makes a GrossModule.
8394
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8395
reload_cmds='$CC -r -o $output$reload_objs'
8399
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8400
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8403
runpath_var='LD_RUN_PATH'
8404
hardcode_shlibpath_var=no
8408
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8409
hardcode_shlibpath_var=no
8410
export_dynamic_flag_spec='-Bexport'
8414
if test -d /usr/nec; then
8415
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8416
hardcode_shlibpath_var=no
8417
runpath_var=LD_RUN_PATH
8418
hardcode_runpath_var=yes
8423
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8424
no_undefined_flag='${wl}-z,text'
8425
archive_cmds_need_lc=no
8426
hardcode_shlibpath_var=no
8427
runpath_var='LD_RUN_PATH'
8429
if test "$GCC" = yes; then
8430
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8431
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8433
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8434
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8438
sysv5* | sco3.2v5* | sco5v6*)
8439
# Note: We can NOT use -z defs as we might desire, because we do not
8440
# link with -lc, and that would cause any symbols used from libc to
8441
# always be unresolved, which means just about no library would
8442
# ever link correctly. If we're not using GNU ld we use -z text
8443
# though, which does catch some bad symbols but isn't as heavy-handed
8445
no_undefined_flag='${wl}-z,text'
8446
allow_undefined_flag='${wl}-z,nodefs'
8447
archive_cmds_need_lc=no
8448
hardcode_shlibpath_var=no
8449
hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8450
hardcode_libdir_separator=':'
8451
link_all_deplibs=yes
8452
export_dynamic_flag_spec='${wl}-Bexport'
8453
runpath_var='LD_RUN_PATH'
8455
if test "$GCC" = yes; then
8456
archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8457
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8459
archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8460
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8465
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8466
hardcode_libdir_flag_spec='-L$libdir'
8467
hardcode_shlibpath_var=no
8476
{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8477
echo "${ECHO_T}$ld_shlibs" >&6; }
8478
test "$ld_shlibs" = no && can_build_shared=no
8481
# Do we need to explicitly link libc?
8483
case "x$archive_cmds_need_lc" in
8485
# Assume -lc should be added
8486
archive_cmds_need_lc=yes
8488
if test "$enable_shared" = yes && test "$GCC" = yes; then
8489
case $archive_cmds in
8491
# FIXME: we may have to deal with multi-command sequences.
8494
# Test whether the compiler implicitly links with -lc since on some
8495
# systems, -lgcc has to come before -lc. If gcc already passes -lc
8496
# to ld, don't add -lc before -lgcc.
8497
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8498
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8500
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8502
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8503
(eval $ac_compile) 2>&5
8505
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8506
(exit $ac_status); } 2>conftest.err; then
8509
libobjs=conftest.$ac_objext
8511
wl=$lt_prog_compiler_wl
8512
pic_flag=$lt_prog_compiler_pic
8518
lt_save_allow_undefined_flag=$allow_undefined_flag
8519
allow_undefined_flag=
8520
if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8521
(eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8523
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8524
(exit $ac_status); }
8526
archive_cmds_need_lc=no
8528
archive_cmds_need_lc=yes
8530
allow_undefined_flag=$lt_save_allow_undefined_flag
8532
cat conftest.err 1>&5
8535
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8536
echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8543
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8544
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8546
libname_spec='lib$name'
8554
shlibpath_overrides_runpath=unknown
8556
dynamic_linker="$host_os ld.so"
8557
sys_lib_dlsearch_path_spec="/lib /usr/lib"
8558
if test "$GCC" = yes; then
8559
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8560
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8561
# if the path contains ";" then we assume it to be the separator
8562
# otherwise default to the standard path separator (i.e. ":") - it is
8563
# assumed that no part of a normal pathname contains ";" but that should
8564
# okay in the real world where ";" in dirpaths is itself problematic.
8565
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8567
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8570
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8572
need_lib_prefix=unknown
8573
hardcode_into_libs=no
8575
# when you set need_version to no, make sure it does not cause -set_version
8576
# flags to be left without arguments
8577
need_version=unknown
8582
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8583
shlibpath_var=LIBPATH
8585
# AIX 3 has no versioning support, so we append a major version to the name.
8586
soname_spec='${libname}${release}${shared_ext}$major'
8593
hardcode_into_libs=yes
8594
if test "$host_cpu" = ia64; then
8595
# AIX 5 supports IA64
8596
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8597
shlibpath_var=LD_LIBRARY_PATH
8599
# With GCC up to 2.95.x, collect2 would create an import file
8600
# for dependence libraries. The import file would start with
8601
# the line `#! .'. This would cause the generated library to
8602
# depend on `.', always an invalid library. This was fixed in
8603
# development snapshots of GCC prior to 3.0.
8605
aix4 | aix4.[01] | aix4.[01].*)
8606
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8608
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8615
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8616
# soname into executable. Probably we can add versioning support to
8617
# collect2, so additional links can be useful in future.
8618
if test "$aix_use_runtimelinking" = yes; then
8619
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
8620
# instead of lib<name>.a to let people know that these are not
8621
# typical AIX shared libraries.
8622
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8624
# We preserve .a as extension for shared libraries through AIX4.2
8625
# and later when we are not doing run time linking.
8626
library_names_spec='${libname}${release}.a $libname.a'
8627
soname_spec='${libname}${release}${shared_ext}$major'
8629
shlibpath_var=LIBPATH
8634
library_names_spec='$libname.ixlibrary $libname.a'
8635
# Create ${libname}_ixlibrary.a entries in /sys/libs.
8636
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'
8640
library_names_spec='${libname}${shared_ext}'
8641
dynamic_linker="$host_os ld.so"
8642
shlibpath_var=LIBRARY_PATH
8648
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8649
soname_spec='${libname}${release}${shared_ext}$major'
8650
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8651
shlibpath_var=LD_LIBRARY_PATH
8652
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8653
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8654
# the default ld.so.conf also contains /usr/contrib/lib and
8655
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8656
# libtool to hard-code these into programs
8659
cygwin* | mingw* | pw32*)
8660
version_type=windows
8665
case $GCC,$host_os in
8666
yes,cygwin* | yes,mingw* | yes,pw32*)
8667
library_names_spec='$libname.dll.a'
8668
# DLL is installed to $(libdir)/../bin by postinstall_cmds
8669
postinstall_cmds='base_file=`basename \${file}`~
8670
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8671
dldir=$destdir/`dirname \$dlpath`~
8672
test -d \$dldir || mkdir -p \$dldir~
8673
$install_prog $dir/$dlname \$dldir/$dlname~
8674
chmod a+x \$dldir/$dlname'
8675
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8676
dlpath=$dir/\$dldll~
8678
shlibpath_overrides_runpath=yes
8682
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
8683
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8684
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8687
# MinGW DLLs use traditional 'lib' prefix
8688
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8689
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8690
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8691
# It is most probably a Windows format PATH printed by
8692
# mingw gcc, but we are running on Cygwin. Gcc prints its search
8693
# path with ; separators, and with drive letters. We can handle the
8694
# drive letters (cygwin fileutils understands them), so leave them,
8695
# especially as we might pass files found there to a mingw objdump,
8696
# which wouldn't understand a cygwinified path. Ahh.
8697
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8699
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8703
# pw32 DLLs use 'pw' prefix rather than 'lib'
8704
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8710
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8713
dynamic_linker='Win32 ld.exe'
8714
# FIXME: first we should search . and the directory the executable is in
8718
darwin* | rhapsody*)
8719
dynamic_linker="$host_os dyld"
8723
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8724
soname_spec='${libname}${release}${major}$shared_ext'
8725
shlibpath_overrides_runpath=yes
8726
shlibpath_var=DYLD_LIBRARY_PATH
8727
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8728
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8729
if test "$GCC" = yes; then
8730
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"`
8732
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8734
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8741
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8742
soname_spec='${libname}${release}${shared_ext}$major'
8743
shlibpath_var=LD_LIBRARY_PATH
8750
freebsd* | dragonfly*)
8751
# DragonFly does not have aout. When/if they implement a new
8752
# versioning mechanism, adjust this.
8753
if test -x /usr/bin/objformat; then
8754
objformat=`/usr/bin/objformat`
8757
freebsd[123]*) objformat=aout ;;
8761
version_type=freebsd-$objformat
8762
case $version_type in
8764
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8769
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8773
shlibpath_var=LD_LIBRARY_PATH
8776
shlibpath_overrides_runpath=yes
8778
freebsd3.[01]* | freebsdelf3.[01]*)
8779
shlibpath_overrides_runpath=yes
8780
hardcode_into_libs=yes
8782
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8783
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8784
shlibpath_overrides_runpath=no
8785
hardcode_into_libs=yes
8787
freebsd*) # from 4.6 on
8788
shlibpath_overrides_runpath=yes
8789
hardcode_into_libs=yes
8798
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8799
soname_spec='${libname}${release}${shared_ext}$major'
8800
shlibpath_var=LD_LIBRARY_PATH
8801
hardcode_into_libs=yes
8804
hpux9* | hpux10* | hpux11*)
8805
# Give a soname corresponding to the major version so that dld.sl refuses to
8806
# link against other versions.
8813
hardcode_into_libs=yes
8814
dynamic_linker="$host_os dld.so"
8815
shlibpath_var=LD_LIBRARY_PATH
8816
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8817
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8818
soname_spec='${libname}${release}${shared_ext}$major'
8819
if test "X$HPUX_IA64_MODE" = X32; then
8820
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8822
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8824
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8828
hardcode_into_libs=yes
8829
dynamic_linker="$host_os dld.sl"
8830
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8831
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8832
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8833
soname_spec='${libname}${release}${shared_ext}$major'
8834
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8835
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8839
dynamic_linker="$host_os dld.sl"
8840
shlibpath_var=SHLIB_PATH
8841
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8842
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8843
soname_spec='${libname}${release}${shared_ext}$major'
8846
# HP-UX runs *really* slowly unless shared libraries are mode 555.
8847
postinstall_cmds='chmod 555 $lib'
8854
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8855
soname_spec='${libname}${release}${shared_ext}$major'
8856
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8857
shlibpath_var=LD_LIBRARY_PATH
8858
shlibpath_overrides_runpath=no
8859
hardcode_into_libs=yes
8862
irix5* | irix6* | nonstopux*)
8864
nonstopux*) version_type=nonstopux ;;
8866
if test "$lt_cv_prog_gnu_ld" = yes; then
8874
soname_spec='${libname}${release}${shared_ext}$major'
8875
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8877
irix5* | nonstopux*)
8881
case $LD in # libtool.m4 will add one of these switches to LD
8882
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8883
libsuff= shlibsuff= libmagic=32-bit;;
8884
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8885
libsuff=32 shlibsuff=N32 libmagic=N32;;
8886
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8887
libsuff=64 shlibsuff=64 libmagic=64-bit;;
8888
*) libsuff= shlibsuff= libmagic=never-match;;
8892
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8893
shlibpath_overrides_runpath=no
8894
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8895
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8896
hardcode_into_libs=yes
8899
# No shared lib support for Linux oldld, aout, or coff.
8900
linux*oldld* | linux*aout* | linux*coff*)
8904
# This must be Linux ELF.
8905
linux* | k*bsd*-gnu)
8909
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8910
soname_spec='${libname}${release}${shared_ext}$major'
8911
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8912
shlibpath_var=LD_LIBRARY_PATH
8913
shlibpath_overrides_runpath=no
8914
# This implies no fast_install, which is unacceptable.
8915
# Some rework will be needed to allow for fast_install
8916
# before this can be enabled.
8917
hardcode_into_libs=yes
8919
# Append ld.so.conf contents to the search path
8920
if test -f /etc/ld.so.conf; then
8921
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' ' '`
8922
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8925
# We used to test for /lib/ld.so.1 and disable shared libraries on
8926
# powerpc, because MkLinux only supported shared libraries with the
8927
# GNU dynamic linker. Since this was broken with cross compilers,
8928
# most powerpc-linux boxes support dynamic linking these days and
8929
# people can always --disable-shared, the test was removed, and we
8930
# assume the GNU/Linux dynamic linker is in use.
8931
dynamic_linker='GNU/Linux ld.so'
8938
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8939
soname_spec='${libname}${release}${shared_ext}$major'
8940
shlibpath_var=LD_LIBRARY_PATH
8941
shlibpath_overrides_runpath=no
8942
hardcode_into_libs=yes
8943
dynamic_linker='NetBSD ld.elf_so'
8950
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8951
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8952
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8953
dynamic_linker='NetBSD (a.out) ld.so'
8955
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8956
soname_spec='${libname}${release}${shared_ext}$major'
8957
dynamic_linker='NetBSD ld.elf_so'
8959
shlibpath_var=LD_LIBRARY_PATH
8960
shlibpath_overrides_runpath=yes
8961
hardcode_into_libs=yes
8966
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8967
shlibpath_var=LD_LIBRARY_PATH
8968
shlibpath_overrides_runpath=yes
8975
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8976
soname_spec='${libname}${release}${shared_ext}$major'
8977
shlibpath_var=LD_LIBRARY_PATH
8978
shlibpath_overrides_runpath=yes
8983
sys_lib_dlsearch_path_spec="/usr/lib"
8985
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8987
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8988
*) need_version=no ;;
8990
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8991
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8992
shlibpath_var=LD_LIBRARY_PATH
8993
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8995
openbsd2.[89] | openbsd2.[89].*)
8996
shlibpath_overrides_runpath=no
8999
shlibpath_overrides_runpath=yes
9003
shlibpath_overrides_runpath=yes
9008
libname_spec='$name'
9011
library_names_spec='$libname${shared_ext} $libname.a'
9012
dynamic_linker='OS/2 ld.exe'
9013
shlibpath_var=LIBPATH
9016
osf3* | osf4* | osf5*)
9020
soname_spec='${libname}${release}${shared_ext}$major'
9021
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9022
shlibpath_var=LD_LIBRARY_PATH
9023
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9024
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9031
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9032
soname_spec='${libname}${release}${shared_ext}$major'
9033
shlibpath_var=LD_LIBRARY_PATH
9034
shlibpath_overrides_runpath=yes
9035
hardcode_into_libs=yes
9036
# ldd complains unless libraries are executable
9037
postinstall_cmds='chmod +x $lib'
9042
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9043
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9044
shlibpath_var=LD_LIBRARY_PATH
9045
shlibpath_overrides_runpath=yes
9046
if test "$with_gnu_ld" = yes; then
9054
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9055
soname_spec='${libname}${release}${shared_ext}$major'
9056
shlibpath_var=LD_LIBRARY_PATH
9057
case $host_vendor in
9059
shlibpath_overrides_runpath=no
9061
export_dynamic_flag_spec='${wl}-Blargedynsym'
9062
runpath_var=LD_RUN_PATH
9070
shlibpath_overrides_runpath=no
9071
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9077
if test -d /usr/nec ;then
9079
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9080
soname_spec='$libname${shared_ext}.$major'
9081
shlibpath_var=LD_LIBRARY_PATH
9085
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9086
version_type=freebsd-elf
9089
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9090
soname_spec='${libname}${release}${shared_ext}$major'
9091
shlibpath_var=LD_LIBRARY_PATH
9092
hardcode_into_libs=yes
9093
if test "$with_gnu_ld" = yes; then
9094
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9095
shlibpath_overrides_runpath=no
9097
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9098
shlibpath_overrides_runpath=yes
9101
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9105
sys_lib_dlsearch_path_spec='/usr/lib'
9110
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9111
soname_spec='${libname}${release}${shared_ext}$major'
9112
shlibpath_var=LD_LIBRARY_PATH
9119
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9120
echo "${ECHO_T}$dynamic_linker" >&6; }
9121
test "$dynamic_linker" = no && can_build_shared=no
9123
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9124
if test "$GCC" = yes; then
9125
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9128
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9129
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9131
if test -n "$hardcode_libdir_flag_spec" || \
9132
test -n "$runpath_var" || \
9133
test "X$hardcode_automatic" = "Xyes" ; then
9135
# We can hardcode non-existant directories.
9136
if test "$hardcode_direct" != no &&
9137
# If the only mechanism to avoid hardcoding is shlibpath_var, we
9138
# have to relink, otherwise we might link with an installed library
9139
# when we should be linking with a yet-to-be-installed one
9140
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9141
test "$hardcode_minus_L" != no; then
9142
# Linking always hardcodes the temporary library directory.
9143
hardcode_action=relink
9145
# We can link without hardcoding, and we can hardcode nonexisting dirs.
9146
hardcode_action=immediate
9149
# We cannot hardcode anything, or else we can only hardcode existing
9151
hardcode_action=unsupported
9153
{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
9154
echo "${ECHO_T}$hardcode_action" >&6; }
9156
if test "$hardcode_action" = relink; then
9157
# Fast installation is not supported
9158
enable_fast_install=no
9159
elif test "$shlibpath_overrides_runpath" = yes ||
9160
test "$enable_shared" = no; then
9161
# Fast installation is not necessary
9162
enable_fast_install=needless
9167
{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9168
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9169
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9170
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9171
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9172
{ echo "$as_me:$LINENO: result: yes" >&5
9173
echo "${ECHO_T}yes" >&6; }
9175
# FIXME - insert some real tests, host_os isn't really good enough
9178
if test -n "$STRIP" ; then
9179
striplib="$STRIP -x"
9180
{ echo "$as_me:$LINENO: result: yes" >&5
9181
echo "${ECHO_T}yes" >&6; }
9183
{ echo "$as_me:$LINENO: result: no" >&5
9184
echo "${ECHO_T}no" >&6; }
9188
{ echo "$as_me:$LINENO: result: no" >&5
9189
echo "${ECHO_T}no" >&6; }
9194
if test "x$enable_dlopen" != xyes; then
9195
enable_dlopen=unknown
9196
enable_dlopen_self=unknown
9197
enable_dlopen_self_static=unknown
9204
lt_cv_dlopen="load_add_on"
9206
lt_cv_dlopen_self=yes
9210
lt_cv_dlopen="LoadLibrary"
9215
lt_cv_dlopen="dlopen"
9220
# if libdl is installed we need to link against it
9221
{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9222
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9223
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9224
echo $ECHO_N "(cached) $ECHO_C" >&6
9226
ac_check_lib_save_LIBS=$LIBS
9228
cat >conftest.$ac_ext <<_ACEOF
9231
cat confdefs.h >>conftest.$ac_ext
9232
cat >>conftest.$ac_ext <<_ACEOF
9233
/* end confdefs.h. */
9235
/* Override any GCC internal prototype to avoid an error.
9236
Use char because int might match the return type of a GCC
9237
builtin and then its argument prototype would still apply. */
9250
rm -f conftest.$ac_objext conftest$ac_exeext
9251
if { (ac_try="$ac_link"
9253
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9254
*) ac_try_echo=$ac_try;;
9256
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9257
(eval "$ac_link") 2>conftest.er1
9259
grep -v '^ *+' conftest.er1 >conftest.err
9261
cat conftest.err >&5
9262
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9263
(exit $ac_status); } && {
9264
test -z "$ac_c_werror_flag" ||
9265
test ! -s conftest.err
9266
} && test -s conftest$ac_exeext &&
9267
$as_test_x conftest$ac_exeext; then
9268
ac_cv_lib_dl_dlopen=yes
9270
echo "$as_me: failed program was:" >&5
9271
sed 's/^/| /' conftest.$ac_ext >&5
9273
ac_cv_lib_dl_dlopen=no
9276
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9277
conftest$ac_exeext conftest.$ac_ext
9278
LIBS=$ac_check_lib_save_LIBS
9280
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9281
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9282
if test $ac_cv_lib_dl_dlopen = yes; then
9283
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9288
lt_cv_dlopen_self=yes
9295
{ echo "$as_me:$LINENO: checking for shl_load" >&5
9296
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9297
if test "${ac_cv_func_shl_load+set}" = set; then
9298
echo $ECHO_N "(cached) $ECHO_C" >&6
9300
cat >conftest.$ac_ext <<_ACEOF
9303
cat confdefs.h >>conftest.$ac_ext
9304
cat >>conftest.$ac_ext <<_ACEOF
9305
/* end confdefs.h. */
9306
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9307
For example, HP-UX 11i <limits.h> declares gettimeofday. */
9308
#define shl_load innocuous_shl_load
9310
/* System header to define __stub macros and hopefully few prototypes,
9311
which can conflict with char shl_load (); below.
9312
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9313
<limits.h> exists even on freestanding compilers. */
9316
# include <limits.h>
9318
# include <assert.h>
9323
/* Override any GCC internal prototype to avoid an error.
9324
Use char because int might match the return type of a GCC
9325
builtin and then its argument prototype would still apply. */
9330
/* The GNU C library defines this for functions which it implements
9331
to always fail with ENOSYS. Some functions are actually named
9332
something starting with __ and the normal name is an alias. */
9333
#if defined __stub_shl_load || defined __stub___shl_load
9345
rm -f conftest.$ac_objext conftest$ac_exeext
9346
if { (ac_try="$ac_link"
9348
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9349
*) ac_try_echo=$ac_try;;
9351
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9352
(eval "$ac_link") 2>conftest.er1
9354
grep -v '^ *+' conftest.er1 >conftest.err
9356
cat conftest.err >&5
9357
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9358
(exit $ac_status); } && {
9359
test -z "$ac_c_werror_flag" ||
9360
test ! -s conftest.err
9361
} && test -s conftest$ac_exeext &&
9362
$as_test_x conftest$ac_exeext; then
9363
ac_cv_func_shl_load=yes
9365
echo "$as_me: failed program was:" >&5
9366
sed 's/^/| /' conftest.$ac_ext >&5
9368
ac_cv_func_shl_load=no
9371
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9372
conftest$ac_exeext conftest.$ac_ext
9374
{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9375
echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9376
if test $ac_cv_func_shl_load = yes; then
9377
lt_cv_dlopen="shl_load"
9379
{ echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9380
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9381
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9382
echo $ECHO_N "(cached) $ECHO_C" >&6
9384
ac_check_lib_save_LIBS=$LIBS
9386
cat >conftest.$ac_ext <<_ACEOF
9389
cat confdefs.h >>conftest.$ac_ext
9390
cat >>conftest.$ac_ext <<_ACEOF
9391
/* end confdefs.h. */
9393
/* Override any GCC internal prototype to avoid an error.
9394
Use char because int might match the return type of a GCC
9395
builtin and then its argument prototype would still apply. */
9408
rm -f conftest.$ac_objext conftest$ac_exeext
9409
if { (ac_try="$ac_link"
9411
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9412
*) ac_try_echo=$ac_try;;
9414
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9415
(eval "$ac_link") 2>conftest.er1
9417
grep -v '^ *+' conftest.er1 >conftest.err
9419
cat conftest.err >&5
9420
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9421
(exit $ac_status); } && {
9422
test -z "$ac_c_werror_flag" ||
9423
test ! -s conftest.err
9424
} && test -s conftest$ac_exeext &&
9425
$as_test_x conftest$ac_exeext; then
9426
ac_cv_lib_dld_shl_load=yes
9428
echo "$as_me: failed program was:" >&5
9429
sed 's/^/| /' conftest.$ac_ext >&5
9431
ac_cv_lib_dld_shl_load=no
9434
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9435
conftest$ac_exeext conftest.$ac_ext
9436
LIBS=$ac_check_lib_save_LIBS
9438
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9439
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9440
if test $ac_cv_lib_dld_shl_load = yes; then
9441
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9443
{ echo "$as_me:$LINENO: checking for dlopen" >&5
9444
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9445
if test "${ac_cv_func_dlopen+set}" = set; then
9446
echo $ECHO_N "(cached) $ECHO_C" >&6
9448
cat >conftest.$ac_ext <<_ACEOF
9451
cat confdefs.h >>conftest.$ac_ext
9452
cat >>conftest.$ac_ext <<_ACEOF
9453
/* end confdefs.h. */
9454
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9455
For example, HP-UX 11i <limits.h> declares gettimeofday. */
9456
#define dlopen innocuous_dlopen
9458
/* System header to define __stub macros and hopefully few prototypes,
9459
which can conflict with char dlopen (); below.
9460
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9461
<limits.h> exists even on freestanding compilers. */
9464
# include <limits.h>
9466
# include <assert.h>
9471
/* Override any GCC internal prototype to avoid an error.
9472
Use char because int might match the return type of a GCC
9473
builtin and then its argument prototype would still apply. */
9478
/* The GNU C library defines this for functions which it implements
9479
to always fail with ENOSYS. Some functions are actually named
9480
something starting with __ and the normal name is an alias. */
9481
#if defined __stub_dlopen || defined __stub___dlopen
9493
rm -f conftest.$ac_objext conftest$ac_exeext
9494
if { (ac_try="$ac_link"
9496
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9497
*) ac_try_echo=$ac_try;;
9499
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9500
(eval "$ac_link") 2>conftest.er1
9502
grep -v '^ *+' conftest.er1 >conftest.err
9504
cat conftest.err >&5
9505
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9506
(exit $ac_status); } && {
9507
test -z "$ac_c_werror_flag" ||
9508
test ! -s conftest.err
9509
} && test -s conftest$ac_exeext &&
9510
$as_test_x conftest$ac_exeext; then
9511
ac_cv_func_dlopen=yes
9513
echo "$as_me: failed program was:" >&5
9514
sed 's/^/| /' conftest.$ac_ext >&5
9516
ac_cv_func_dlopen=no
9519
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9520
conftest$ac_exeext conftest.$ac_ext
9522
{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9523
echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9524
if test $ac_cv_func_dlopen = yes; then
9525
lt_cv_dlopen="dlopen"
9527
{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9528
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9529
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9530
echo $ECHO_N "(cached) $ECHO_C" >&6
9532
ac_check_lib_save_LIBS=$LIBS
9534
cat >conftest.$ac_ext <<_ACEOF
9537
cat confdefs.h >>conftest.$ac_ext
9538
cat >>conftest.$ac_ext <<_ACEOF
9539
/* end confdefs.h. */
9541
/* Override any GCC internal prototype to avoid an error.
9542
Use char because int might match the return type of a GCC
9543
builtin and then its argument prototype would still apply. */
9556
rm -f conftest.$ac_objext conftest$ac_exeext
9557
if { (ac_try="$ac_link"
9559
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9560
*) ac_try_echo=$ac_try;;
9562
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9563
(eval "$ac_link") 2>conftest.er1
9565
grep -v '^ *+' conftest.er1 >conftest.err
9567
cat conftest.err >&5
9568
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9569
(exit $ac_status); } && {
9570
test -z "$ac_c_werror_flag" ||
9571
test ! -s conftest.err
9572
} && test -s conftest$ac_exeext &&
9573
$as_test_x conftest$ac_exeext; then
9574
ac_cv_lib_dl_dlopen=yes
9576
echo "$as_me: failed program was:" >&5
9577
sed 's/^/| /' conftest.$ac_ext >&5
9579
ac_cv_lib_dl_dlopen=no
9582
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9583
conftest$ac_exeext conftest.$ac_ext
9584
LIBS=$ac_check_lib_save_LIBS
9586
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9587
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9588
if test $ac_cv_lib_dl_dlopen = yes; then
9589
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9591
{ echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9592
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9593
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9594
echo $ECHO_N "(cached) $ECHO_C" >&6
9596
ac_check_lib_save_LIBS=$LIBS
9598
cat >conftest.$ac_ext <<_ACEOF
9601
cat confdefs.h >>conftest.$ac_ext
9602
cat >>conftest.$ac_ext <<_ACEOF
9603
/* end confdefs.h. */
9605
/* Override any GCC internal prototype to avoid an error.
9606
Use char because int might match the return type of a GCC
9607
builtin and then its argument prototype would still apply. */
9620
rm -f conftest.$ac_objext conftest$ac_exeext
9621
if { (ac_try="$ac_link"
9623
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9624
*) ac_try_echo=$ac_try;;
9626
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9627
(eval "$ac_link") 2>conftest.er1
9629
grep -v '^ *+' conftest.er1 >conftest.err
9631
cat conftest.err >&5
9632
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9633
(exit $ac_status); } && {
9634
test -z "$ac_c_werror_flag" ||
9635
test ! -s conftest.err
9636
} && test -s conftest$ac_exeext &&
9637
$as_test_x conftest$ac_exeext; then
9638
ac_cv_lib_svld_dlopen=yes
9640
echo "$as_me: failed program was:" >&5
9641
sed 's/^/| /' conftest.$ac_ext >&5
9643
ac_cv_lib_svld_dlopen=no
9646
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9647
conftest$ac_exeext conftest.$ac_ext
9648
LIBS=$ac_check_lib_save_LIBS
9650
{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9651
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9652
if test $ac_cv_lib_svld_dlopen = yes; then
9653
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9655
{ echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9656
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9657
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9658
echo $ECHO_N "(cached) $ECHO_C" >&6
9660
ac_check_lib_save_LIBS=$LIBS
9662
cat >conftest.$ac_ext <<_ACEOF
9665
cat confdefs.h >>conftest.$ac_ext
9666
cat >>conftest.$ac_ext <<_ACEOF
9667
/* end confdefs.h. */
9669
/* Override any GCC internal prototype to avoid an error.
9670
Use char because int might match the return type of a GCC
9671
builtin and then its argument prototype would still apply. */
9684
rm -f conftest.$ac_objext conftest$ac_exeext
9685
if { (ac_try="$ac_link"
9687
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9688
*) ac_try_echo=$ac_try;;
9690
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9691
(eval "$ac_link") 2>conftest.er1
9693
grep -v '^ *+' conftest.er1 >conftest.err
9695
cat conftest.err >&5
9696
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9697
(exit $ac_status); } && {
9698
test -z "$ac_c_werror_flag" ||
9699
test ! -s conftest.err
9700
} && test -s conftest$ac_exeext &&
9701
$as_test_x conftest$ac_exeext; then
9702
ac_cv_lib_dld_dld_link=yes
9704
echo "$as_me: failed program was:" >&5
9705
sed 's/^/| /' conftest.$ac_ext >&5
9707
ac_cv_lib_dld_dld_link=no
9710
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9711
conftest$ac_exeext conftest.$ac_ext
9712
LIBS=$ac_check_lib_save_LIBS
9714
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9715
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9716
if test $ac_cv_lib_dld_dld_link = yes; then
9717
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9738
if test "x$lt_cv_dlopen" != xno; then
9744
case $lt_cv_dlopen in
9746
save_CPPFLAGS="$CPPFLAGS"
9747
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9749
save_LDFLAGS="$LDFLAGS"
9750
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9753
LIBS="$lt_cv_dlopen_libs $LIBS"
9755
{ echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9756
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9757
if test "${lt_cv_dlopen_self+set}" = set; then
9758
echo $ECHO_N "(cached) $ECHO_C" >&6
9760
if test "$cross_compiling" = yes; then :
9761
lt_cv_dlopen_self=cross
9763
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9764
lt_status=$lt_dlunknown
9765
cat > conftest.$ac_ext <<EOF
9766
#line __oline__ "configure"
9767
#include "confdefs.h"
9776
# define LT_DLGLOBAL RTLD_GLOBAL
9779
# define LT_DLGLOBAL DL_GLOBAL
9781
# define LT_DLGLOBAL 0
9785
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9786
find out it does not work in some platform. */
9787
#ifndef LT_DLLAZY_OR_NOW
9789
# define LT_DLLAZY_OR_NOW RTLD_LAZY
9792
# define LT_DLLAZY_OR_NOW DL_LAZY
9795
# define LT_DLLAZY_OR_NOW RTLD_NOW
9798
# define LT_DLLAZY_OR_NOW DL_NOW
9800
# define LT_DLLAZY_OR_NOW 0
9808
extern "C" void exit (int);
9811
void fnord() { int i=42;}
9814
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9815
int status = $lt_dlunknown;
9819
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9820
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9821
/* dlclose (self); */
9829
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9830
(eval $ac_link) 2>&5
9832
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9833
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9834
(./conftest; exit; ) >&5 2>/dev/null
9837
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9838
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9839
x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9842
# compilation failed
9843
lt_cv_dlopen_self=no
9850
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9851
echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9853
if test "x$lt_cv_dlopen_self" = xyes; then
9854
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9855
{ echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9856
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9857
if test "${lt_cv_dlopen_self_static+set}" = set; then
9858
echo $ECHO_N "(cached) $ECHO_C" >&6
9860
if test "$cross_compiling" = yes; then :
9861
lt_cv_dlopen_self_static=cross
9863
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9864
lt_status=$lt_dlunknown
9865
cat > conftest.$ac_ext <<EOF
9866
#line __oline__ "configure"
9867
#include "confdefs.h"
9876
# define LT_DLGLOBAL RTLD_GLOBAL
9879
# define LT_DLGLOBAL DL_GLOBAL
9881
# define LT_DLGLOBAL 0
9885
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9886
find out it does not work in some platform. */
9887
#ifndef LT_DLLAZY_OR_NOW
9889
# define LT_DLLAZY_OR_NOW RTLD_LAZY
9892
# define LT_DLLAZY_OR_NOW DL_LAZY
9895
# define LT_DLLAZY_OR_NOW RTLD_NOW
9898
# define LT_DLLAZY_OR_NOW DL_NOW
9900
# define LT_DLLAZY_OR_NOW 0
9908
extern "C" void exit (int);
9911
void fnord() { int i=42;}
9914
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9915
int status = $lt_dlunknown;
9919
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9920
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9921
/* dlclose (self); */
9929
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9930
(eval $ac_link) 2>&5
9932
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9933
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9934
(./conftest; exit; ) >&5 2>/dev/null
9937
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9938
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9939
x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9942
# compilation failed
9943
lt_cv_dlopen_self_static=no
9950
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9951
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
9954
CPPFLAGS="$save_CPPFLAGS"
9955
LDFLAGS="$save_LDFLAGS"
9960
case $lt_cv_dlopen_self in
9961
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9962
*) enable_dlopen_self=unknown ;;
9965
case $lt_cv_dlopen_self_static in
9966
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9967
*) enable_dlopen_self_static=unknown ;;
9972
# Report which library types will actually be built
9973
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9974
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
9975
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
9976
echo "${ECHO_T}$can_build_shared" >&6; }
9978
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9979
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
9980
test "$can_build_shared" = "no" && enable_shared=no
9982
# On AIX, shared libraries and static libraries use the same namespace, and
9983
# are all built from PIC.
9986
test "$enable_shared" = yes && enable_static=no
9987
if test -n "$RANLIB"; then
9988
archive_cmds="$archive_cmds~\$RANLIB \$lib"
9989
postinstall_cmds='$RANLIB $lib'
9994
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9995
test "$enable_shared" = yes && enable_static=no
9999
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10000
echo "${ECHO_T}$enable_shared" >&6; }
10002
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10003
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10004
# Make sure either enable_shared or enable_static is yes.
10005
test "$enable_shared" = yes || enable_static=yes
10006
{ echo "$as_me:$LINENO: result: $enable_static" >&5
10007
echo "${ECHO_T}$enable_static" >&6; }
10009
# The else clause should only fire when bootstrapping the
10010
# libtool distribution, otherwise you forgot to ship ltmain.sh
10011
# with your package, and you will get complaints that there are
10012
# no rules to generate ltmain.sh.
10013
if test -f "$ltmain"; then
10014
# See if we are running on zsh, and set the options which allow our commands through
10015
# without removal of \ escapes.
10016
if test -n "${ZSH_VERSION+set}" ; then
10017
setopt NO_GLOB_SUBST
10019
# Now quote all the things that may contain metacharacters while being
10020
# careful not to overquote the AC_SUBSTed values. We take copies of the
10021
# variables and quote the copies for generation of the libtool script.
10022
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10024
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10025
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10026
deplibs_check_method reload_flag reload_cmds need_locks \
10027
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10028
lt_cv_sys_global_symbol_to_c_name_address \
10029
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10030
old_postinstall_cmds old_postuninstall_cmds \
10034
lt_prog_compiler_wl \
10035
lt_prog_compiler_pic \
10036
lt_prog_compiler_static \
10037
lt_prog_compiler_no_builtin_flag \
10038
export_dynamic_flag_spec \
10039
thread_safe_flag_spec \
10040
whole_archive_flag_spec \
10041
enable_shared_with_static_runtimes \
10043
old_archive_from_new_cmds \
10048
compiler_lib_search_path \
10050
archive_expsym_cmds \
10052
postuninstall_cmds \
10053
old_archive_from_expsyms_cmds \
10054
allow_undefined_flag \
10055
no_undefined_flag \
10056
export_symbols_cmds \
10057
hardcode_libdir_flag_spec \
10058
hardcode_libdir_flag_spec_ld \
10059
hardcode_libdir_separator \
10060
hardcode_automatic \
10062
module_expsym_cmds \
10063
lt_cv_prog_compiler_c_o \
10065
include_expsyms; do
10068
old_archive_cmds | \
10069
old_archive_from_new_cmds | \
10071
archive_expsym_cmds | \
10073
module_expsym_cmds | \
10074
old_archive_from_expsyms_cmds | \
10075
export_symbols_cmds | \
10076
extract_expsyms_cmds | reload_cmds | finish_cmds | \
10077
postinstall_cmds | postuninstall_cmds | \
10078
old_postinstall_cmds | old_postuninstall_cmds | \
10079
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10080
# Double-quote double-evaled strings.
10081
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10084
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10090
*'\$0 --fallback-echo"')
10091
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10095
cfgfile="${ofile}T"
10096
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10098
{ echo "$as_me:$LINENO: creating $ofile" >&5
10099
echo "$as_me: creating $ofile" >&6;}
10101
cat <<__EOF__ >> "$cfgfile"
10104
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10105
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10106
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10108
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10109
# Free Software Foundation, Inc.
10111
# This file is part of GNU Libtool:
10112
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10114
# This program is free software; you can redistribute it and/or modify
10115
# it under the terms of the GNU General Public License as published by
10116
# the Free Software Foundation; either version 2 of the License, or
10117
# (at your option) any later version.
10119
# This program is distributed in the hope that it will be useful, but
10120
# WITHOUT ANY WARRANTY; without even the implied warranty of
10121
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10122
# General Public License for more details.
10124
# You should have received a copy of the GNU General Public License
10125
# along with this program; if not, write to the Free Software
10126
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10128
# As a special exception to the GNU General Public License, if you
10129
# distribute this file as part of a program that contains a
10130
# configuration script generated by Autoconf, you may include it under
10131
# the same distribution terms that you use for the rest of that program.
10133
# A sed program that does not truncate output.
10136
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10137
Xsed="$SED -e 1s/^X//"
10139
# The HP-UX ksh and POSIX shell print the target directory to stdout
10140
# if CDPATH is set.
10141
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10143
# The names of the tagged configurations supported by this script.
10146
# ### BEGIN LIBTOOL CONFIG
10148
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10150
# Shell to use when invoking shell scripts.
10153
# Whether or not to build shared libraries.
10154
build_libtool_libs=$enable_shared
10156
# Whether or not to build static libraries.
10157
build_old_libs=$enable_static
10159
# Whether or not to add -lc for building shared libraries.
10160
build_libtool_need_lc=$archive_cmds_need_lc
10162
# Whether or not to disallow shared libs when runtime libs are static
10163
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10165
# Whether or not to optimize for fast installation.
10166
fast_install=$enable_fast_install
10169
host_alias=$host_alias
10173
# The build system.
10174
build_alias=$build_alias
10178
# An echo program that does not interpret backslashes.
10183
AR_FLAGS=$lt_AR_FLAGS
10188
# LTCC compiler flags.
10189
LTCFLAGS=$lt_LTCFLAGS
10191
# A language-specific compiler.
10194
# Is the compiler the GNU C compiler?
10200
# The linker used to build libraries.
10203
# Whether we need hard or soft links.
10206
# A BSD-compatible nm program.
10209
# A symbol stripping program
10212
# Used to examine libraries when file_magic_cmd begins "file"
10213
MAGIC_CMD=$MAGIC_CMD
10215
# Used on cygwin: DLL creation program.
10218
# Used on cygwin: object dumper.
10221
# Used on cygwin: assembler.
10224
# The name of the directory that contains temporary libtool files.
10227
# How to create reloadable object files.
10228
reload_flag=$lt_reload_flag
10229
reload_cmds=$lt_reload_cmds
10231
# How to pass a linker flag through the compiler.
10232
wl=$lt_lt_prog_compiler_wl
10234
# Object file suffix (normally "o").
10235
objext="$ac_objext"
10237
# Old archive suffix (normally "a").
10240
# Shared library suffix (normally ".so").
10241
shrext_cmds='$shrext_cmds'
10243
# Executable file suffix (normally "").
10246
# Additional compiler flags for building library objects.
10247
pic_flag=$lt_lt_prog_compiler_pic
10250
# What is the maximum length of a command?
10251
max_cmd_len=$lt_cv_sys_max_cmd_len
10253
# Does compiler simultaneously support -c and -o options?
10254
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10256
# Must we lock files when doing compilation?
10257
need_locks=$lt_need_locks
10259
# Do we need the lib prefix for modules?
10260
need_lib_prefix=$need_lib_prefix
10262
# Do we need a version for libraries?
10263
need_version=$need_version
10265
# Whether dlopen is supported.
10266
dlopen_support=$enable_dlopen
10268
# Whether dlopen of programs is supported.
10269
dlopen_self=$enable_dlopen_self
10271
# Whether dlopen of statically linked programs is supported.
10272
dlopen_self_static=$enable_dlopen_self_static
10274
# Compiler flag to prevent dynamic linking.
10275
link_static_flag=$lt_lt_prog_compiler_static
10277
# Compiler flag to turn off builtin functions.
10278
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10280
# Compiler flag to allow reflexive dlopens.
10281
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10283
# Compiler flag to generate shared objects directly from archives.
10284
whole_archive_flag_spec=$lt_whole_archive_flag_spec
10286
# Compiler flag to generate thread-safe objects.
10287
thread_safe_flag_spec=$lt_thread_safe_flag_spec
10289
# Library versioning type.
10290
version_type=$version_type
10292
# Format of library name prefix.
10293
libname_spec=$lt_libname_spec
10295
# List of archive names. First name is the real one, the rest are links.
10296
# The last name is the one that the linker finds with -lNAME.
10297
library_names_spec=$lt_library_names_spec
10299
# The coded name of the library, if different from the real name.
10300
soname_spec=$lt_soname_spec
10302
# Commands used to build and install an old-style archive.
10304
old_archive_cmds=$lt_old_archive_cmds
10305
old_postinstall_cmds=$lt_old_postinstall_cmds
10306
old_postuninstall_cmds=$lt_old_postuninstall_cmds
10308
# Create an old-style archive from a shared archive.
10309
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10311
# Create a temporary old-style archive to link instead of a shared archive.
10312
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10314
# Commands used to build and install a shared archive.
10315
archive_cmds=$lt_archive_cmds
10316
archive_expsym_cmds=$lt_archive_expsym_cmds
10317
postinstall_cmds=$lt_postinstall_cmds
10318
postuninstall_cmds=$lt_postuninstall_cmds
10320
# Commands used to build a loadable module (assumed same as above if empty)
10321
module_cmds=$lt_module_cmds
10322
module_expsym_cmds=$lt_module_expsym_cmds
10324
# Commands to strip libraries.
10325
old_striplib=$lt_old_striplib
10326
striplib=$lt_striplib
10328
# Dependencies to place before the objects being linked to create a
10330
predep_objects=$lt_predep_objects
10332
# Dependencies to place after the objects being linked to create a
10334
postdep_objects=$lt_postdep_objects
10336
# Dependencies to place before the objects being linked to create a
10338
predeps=$lt_predeps
10340
# Dependencies to place after the objects being linked to create a
10342
postdeps=$lt_postdeps
10344
# The library search path used internally by the compiler when linking
10345
# a shared library.
10346
compiler_lib_search_path=$lt_compiler_lib_search_path
10348
# Method to check whether dependent libraries are shared objects.
10349
deplibs_check_method=$lt_deplibs_check_method
10351
# Command to use when deplibs_check_method == file_magic.
10352
file_magic_cmd=$lt_file_magic_cmd
10354
# Flag that allows shared libraries with undefined symbols to be built.
10355
allow_undefined_flag=$lt_allow_undefined_flag
10357
# Flag that forces no undefined symbols.
10358
no_undefined_flag=$lt_no_undefined_flag
10360
# Commands used to finish a libtool library installation in a directory.
10361
finish_cmds=$lt_finish_cmds
10363
# Same as above, but a single script fragment to be evaled but not shown.
10364
finish_eval=$lt_finish_eval
10366
# Take the output of nm and produce a listing of raw symbols and C names.
10367
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10369
# Transform the output of nm in a proper C declaration
10370
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10372
# Transform the output of nm in a C name address pair
10373
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10375
# This is the shared library runtime path variable.
10376
runpath_var=$runpath_var
10378
# This is the shared library path variable.
10379
shlibpath_var=$shlibpath_var
10381
# Is shlibpath searched before the hard-coded library search path?
10382
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10384
# How to hardcode a shared library path into an executable.
10385
hardcode_action=$hardcode_action
10387
# Whether we should hardcode library paths into libraries.
10388
hardcode_into_libs=$hardcode_into_libs
10390
# Flag to hardcode \$libdir into a binary during linking.
10391
# This must work even if \$libdir does not exist.
10392
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10394
# If ld is used when linking, flag to hardcode \$libdir into
10395
# a binary during linking. This must work even if \$libdir does
10397
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10399
# Whether we need a single -rpath flag with a separated argument.
10400
hardcode_libdir_separator=$lt_hardcode_libdir_separator
10402
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10403
# resulting binary.
10404
hardcode_direct=$hardcode_direct
10406
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10407
# resulting binary.
10408
hardcode_minus_L=$hardcode_minus_L
10410
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10411
# the resulting binary.
10412
hardcode_shlibpath_var=$hardcode_shlibpath_var
10414
# Set to yes if building a shared library automatically hardcodes DIR into the library
10415
# and all subsequent libraries and executables linked against it.
10416
hardcode_automatic=$hardcode_automatic
10418
# Variables whose values should be saved in libtool wrapper scripts and
10419
# restored at relink time.
10420
variables_saved_for_relink="$variables_saved_for_relink"
10422
# Whether libtool must link a program against all its dependency libraries.
10423
link_all_deplibs=$link_all_deplibs
10425
# Compile-time system search path for libraries
10426
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10428
# Run-time system search path for libraries
10429
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10431
# Fix the shell variable \$srcfile for the compiler.
10432
fix_srcfile_path="$fix_srcfile_path"
10434
# Set to yes if exported symbols are required.
10435
always_export_symbols=$always_export_symbols
10437
# The commands to list exported symbols.
10438
export_symbols_cmds=$lt_export_symbols_cmds
10440
# The commands to extract the exported symbol list from a shared archive.
10441
extract_expsyms_cmds=$lt_extract_expsyms_cmds
10443
# Symbols that should not be listed in the preloaded symbols.
10444
exclude_expsyms=$lt_exclude_expsyms
10446
# Symbols that must always be exported.
10447
include_expsyms=$lt_include_expsyms
10449
# ### END LIBTOOL CONFIG
10456
cat <<\EOF >> "$cfgfile"
10458
# AIX sometimes has problems with the GCC collect2 program. For some
10459
# reason, if we set the COLLECT_NAMES environment variable, the problems
10460
# vanish in a puff of smoke.
10461
if test "X${COLLECT_NAMES+set}" != Xset; then
10463
export COLLECT_NAMES
10469
# We use sed instead of cat because bash on DJGPP gets confused if
10470
# if finds mixed CR/LF and LF-only lines. Since sed operates in
10471
# text mode, it properly converts lines to CR/LF. This bash problem
10472
# is reportedly fixed, but why not run on old versions too?
10473
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10475
mv -f "$cfgfile" "$ofile" || \
10476
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10480
# If there is no Makefile yet, we rely on a make rule to execute
10481
# `config.status --recheck' to rerun these tests and create the
10482
# libtool script then.
10483
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10484
if test -f "$ltmain_in"; then
10485
test -f Makefile && make "$ltmain"
10491
ac_cpp='$CPP $CPPFLAGS'
10492
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10493
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10494
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10499
# Check whether --with-tags was given.
10500
if test "${with_tags+set}" = set; then
10501
withval=$with_tags; tagnames="$withval"
10505
if test -f "$ltmain" && test -n "$tagnames"; then
10506
if test ! -f "${ofile}"; then
10507
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10508
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10511
if test -z "$LTCC"; then
10512
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10513
if test -z "$LTCC"; then
10514
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10515
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10517
{ echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10518
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10521
if test -z "$LTCFLAGS"; then
10522
eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10525
# Extract list of available tagged configurations in $ofile.
10526
# Note that this assumes the entire list is on one line.
10527
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10529
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10530
for tagname in $tagnames; do
10532
# Check whether tagname contains only valid characters
10533
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10535
*) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10536
echo "$as_me: error: invalid tag name: $tagname" >&2;}
10537
{ (exit 1); exit 1; }; }
10541
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10543
{ { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10544
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10545
{ (exit 1); exit 1; }; }
10548
# Update the list of available tags.
10549
if test -n "$tagname"; then
10550
echo appending configuration tag \"$tagname\" to $ofile
10554
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10555
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10556
(test "X$CXX" != "Xg++"))) ; then
10558
ac_cpp='$CXXCPP $CPPFLAGS'
10559
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10560
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10561
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10566
archive_cmds_need_lc_CXX=no
10567
allow_undefined_flag_CXX=
10568
always_export_symbols_CXX=no
10569
archive_expsym_cmds_CXX=
10570
export_dynamic_flag_spec_CXX=
10571
hardcode_direct_CXX=no
10572
hardcode_libdir_flag_spec_CXX=
10573
hardcode_libdir_flag_spec_ld_CXX=
10574
hardcode_libdir_separator_CXX=
10575
hardcode_minus_L_CXX=no
10576
hardcode_shlibpath_var_CXX=unsupported
10577
hardcode_automatic_CXX=no
10579
module_expsym_cmds_CXX=
10580
link_all_deplibs_CXX=unknown
10581
old_archive_cmds_CXX=$old_archive_cmds
10582
no_undefined_flag_CXX=
10583
whole_archive_flag_spec_CXX=
10584
enable_shared_with_static_runtimes_CXX=no
10586
# Dependencies to place before and after the object being linked:
10587
predep_objects_CXX=
10588
postdep_objects_CXX=
10591
compiler_lib_search_path_CXX=
10593
# Source file extension for C++ test sources.
10596
# Object file extension for compiled C++ test sources.
10600
# Code to be used in simple compile tests
10601
lt_simple_compile_test_code="int some_variable = 0;\n"
10603
# Code to be used in simple link tests
10604
lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10606
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10608
# If no C compiler was specified, use CC.
10611
# If no C compiler flags were specified, use CFLAGS.
10612
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10614
# Allow CC to be a program name with arguments.
10618
# save warnings/boilerplate of simple test code
10619
ac_outfile=conftest.$ac_objext
10620
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10621
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10622
_lt_compiler_boilerplate=`cat conftest.err`
10625
ac_outfile=conftest.$ac_objext
10626
printf "$lt_simple_link_test_code" >conftest.$ac_ext
10627
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10628
_lt_linker_boilerplate=`cat conftest.err`
10632
# Allow CC to be a program name with arguments.
10637
lt_save_with_gnu_ld=$with_gnu_ld
10638
lt_save_path_LD=$lt_cv_path_LD
10639
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10640
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10642
$as_unset lt_cv_prog_gnu_ld
10644
if test -n "${lt_cv_path_LDCXX+set}"; then
10645
lt_cv_path_LD=$lt_cv_path_LDCXX
10647
$as_unset lt_cv_path_LD
10649
test -z "${LDCXX+set}" || LD=$LDCXX
10653
for cc_temp in $compiler""; do
10655
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10656
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10661
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10664
# We don't want -fno-exception wen compiling C++ code, so set the
10665
# no_builtin_flag separately
10666
if test "$GXX" = yes; then
10667
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10669
lt_prog_compiler_no_builtin_flag_CXX=
10672
if test "$GXX" = yes; then
10673
# Set up default GNU C++ configuration
10676
# Check whether --with-gnu-ld was given.
10677
if test "${with_gnu_ld+set}" = set; then
10678
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10684
if test "$GCC" = yes; then
10685
# Check if gcc -print-prog-name=ld gives a path.
10686
{ echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10687
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10690
# gcc leaves a trailing carriage return which upsets mingw
10691
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10693
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10696
# Accept absolute paths.
10698
re_direlt='/[^/][^/]*/\.\./'
10699
# Canonicalize the pathname of ld
10700
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10701
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10702
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10704
test -z "$LD" && LD="$ac_prog"
10707
# If it fails, then pretend we aren't using GCC.
10711
# If it is relative, then search for the first ld in PATH.
10712
with_gnu_ld=unknown
10715
elif test "$with_gnu_ld" = yes; then
10716
{ echo "$as_me:$LINENO: checking for GNU ld" >&5
10717
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10719
{ echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10720
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10722
if test "${lt_cv_path_LD+set}" = set; then
10723
echo $ECHO_N "(cached) $ECHO_C" >&6
10725
if test -z "$LD"; then
10726
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10727
for ac_dir in $PATH; do
10729
test -z "$ac_dir" && ac_dir=.
10730
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10731
lt_cv_path_LD="$ac_dir/$ac_prog"
10732
# Check to see if the program is GNU ld. I'd rather use --version,
10733
# but apparently some variants of GNU ld only accept -v.
10734
# Break only if it was the GNU/non-GNU ld that we prefer.
10735
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10736
*GNU* | *'with BFD'*)
10737
test "$with_gnu_ld" != no && break
10740
test "$with_gnu_ld" != yes && break
10747
lt_cv_path_LD="$LD" # Let the user override the test with a path.
10751
LD="$lt_cv_path_LD"
10752
if test -n "$LD"; then
10753
{ echo "$as_me:$LINENO: result: $LD" >&5
10754
echo "${ECHO_T}$LD" >&6; }
10756
{ echo "$as_me:$LINENO: result: no" >&5
10757
echo "${ECHO_T}no" >&6; }
10759
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10760
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10761
{ (exit 1); exit 1; }; }
10762
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10763
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10764
if test "${lt_cv_prog_gnu_ld+set}" = set; then
10765
echo $ECHO_N "(cached) $ECHO_C" >&6
10767
# I'd rather use --version here, but apparently some GNU lds only accept -v.
10768
case `$LD -v 2>&1 </dev/null` in
10769
*GNU* | *'with BFD'*)
10770
lt_cv_prog_gnu_ld=yes
10773
lt_cv_prog_gnu_ld=no
10777
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10778
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10779
with_gnu_ld=$lt_cv_prog_gnu_ld
10783
# Check if GNU C++ uses GNU ld as the underlying linker, since the
10784
# archiving commands below assume that GNU ld is being used.
10785
if test "$with_gnu_ld" = yes; then
10786
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10787
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'
10789
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10790
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10792
# If archive_cmds runs LD, not CC, wlarc should be empty
10793
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10794
# investigate it a little bit more. (MM)
10797
# ancient GNU ld didn't support --whole-archive et. al.
10798
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10799
grep 'no-whole-archive' > /dev/null; then
10800
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10802
whole_archive_flag_spec_CXX=
10808
# A generic and very simple default shared library creation
10809
# command for GNU C++ for the case where it uses the native
10810
# linker, instead of GNU ld. If possible, this setting should
10811
# overridden to take advantage of the native linker features on
10812
# the platform it is being used on.
10813
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10816
# Commands to make compiler produce verbose output that lists
10817
# what "hidden" libraries, object files and flags are used when
10818
# linking a shared library.
10819
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10827
# PORTME: fill in a description of your system's C++ link characteristics
10828
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10829
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10833
# FIXME: insert proper C++ library support
10837
if test "$host_cpu" = ia64; then
10838
# On IA64, the linker does run time linking by default, so we don't
10839
# have to do anything special.
10840
aix_use_runtimelinking=no
10841
exp_sym_flag='-Bexport'
10844
aix_use_runtimelinking=no
10846
# Test if we are trying to use run time linking or normal
10847
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10848
# need to do runtime linking.
10849
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10850
for ld_flag in $LDFLAGS; do
10853
aix_use_runtimelinking=yes
10861
exp_sym_flag='-bexport'
10862
no_entry_flag='-bnoentry'
10865
# When large executables or shared objects are built, AIX ld can
10866
# have problems creating the table of contents. If linking a library
10867
# or program results in "error TOC overflow" add -mminimal-toc to
10868
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10869
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10871
archive_cmds_CXX=''
10872
hardcode_direct_CXX=yes
10873
hardcode_libdir_separator_CXX=':'
10874
link_all_deplibs_CXX=yes
10876
if test "$GXX" = yes; then
10877
case $host_os in aix4.[012]|aix4.[012].*)
10878
# We only want to do this on AIX 4.2 and lower, the check
10879
# below for broken collect2 doesn't work under 4.3+
10880
collect2name=`${CC} -print-prog-name=collect2`
10881
if test -f "$collect2name" && \
10882
strings "$collect2name" | grep resolve_lib_name >/dev/null
10884
# We have reworked collect2
10885
hardcode_direct_CXX=yes
10887
# We have old collect2
10888
hardcode_direct_CXX=unsupported
10889
# It fails to find uninstalled libraries when the uninstalled
10890
# path is not listed in the libpath. Setting hardcode_minus_L
10891
# to unsupported forces relinking
10892
hardcode_minus_L_CXX=yes
10893
hardcode_libdir_flag_spec_CXX='-L$libdir'
10894
hardcode_libdir_separator_CXX=
10898
shared_flag='-shared'
10899
if test "$aix_use_runtimelinking" = yes; then
10900
shared_flag="$shared_flag "'${wl}-G'
10904
if test "$host_cpu" = ia64; then
10905
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10906
# chokes on -Wl,-G. The following line is correct:
10909
if test "$aix_use_runtimelinking" = yes; then
10910
shared_flag='${wl}-G'
10912
shared_flag='${wl}-bM:SRE'
10917
# It seems that -bexpall does not export symbols beginning with
10918
# underscore (_), so it is better to generate a list of symbols to export.
10919
always_export_symbols_CXX=yes
10920
if test "$aix_use_runtimelinking" = yes; then
10921
# Warning - without using the other runtime loading flags (-brtl),
10922
# -berok will link without error, but may produce a broken library.
10923
allow_undefined_flag_CXX='-berok'
10924
# Determine the default libpath from the value encoded in an empty executable.
10925
cat >conftest.$ac_ext <<_ACEOF
10928
cat confdefs.h >>conftest.$ac_ext
10929
cat >>conftest.$ac_ext <<_ACEOF
10930
/* end confdefs.h. */
10940
rm -f conftest.$ac_objext conftest$ac_exeext
10941
if { (ac_try="$ac_link"
10942
case "(($ac_try" in
10943
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10944
*) ac_try_echo=$ac_try;;
10946
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10947
(eval "$ac_link") 2>conftest.er1
10949
grep -v '^ *+' conftest.er1 >conftest.err
10951
cat conftest.err >&5
10952
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10953
(exit $ac_status); } && {
10954
test -z "$ac_cxx_werror_flag" ||
10955
test ! -s conftest.err
10956
} && test -s conftest$ac_exeext &&
10957
$as_test_x conftest$ac_exeext; then
10959
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10961
# Check for a 64-bit object if we didn't find anything.
10962
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; }
10965
echo "$as_me: failed program was:" >&5
10966
sed 's/^/| /' conftest.$ac_ext >&5
10971
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10972
conftest$ac_exeext conftest.$ac_ext
10973
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10975
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10977
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"
10979
if test "$host_cpu" = ia64; then
10980
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10981
allow_undefined_flag_CXX="-z nodefs"
10982
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"
10984
# Determine the default libpath from the value encoded in an empty executable.
10985
cat >conftest.$ac_ext <<_ACEOF
10988
cat confdefs.h >>conftest.$ac_ext
10989
cat >>conftest.$ac_ext <<_ACEOF
10990
/* end confdefs.h. */
11000
rm -f conftest.$ac_objext conftest$ac_exeext
11001
if { (ac_try="$ac_link"
11002
case "(($ac_try" in
11003
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11004
*) ac_try_echo=$ac_try;;
11006
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11007
(eval "$ac_link") 2>conftest.er1
11009
grep -v '^ *+' conftest.er1 >conftest.err
11011
cat conftest.err >&5
11012
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11013
(exit $ac_status); } && {
11014
test -z "$ac_cxx_werror_flag" ||
11015
test ! -s conftest.err
11016
} && test -s conftest$ac_exeext &&
11017
$as_test_x conftest$ac_exeext; then
11019
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11021
# Check for a 64-bit object if we didn't find anything.
11022
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; }
11025
echo "$as_me: failed program was:" >&5
11026
sed 's/^/| /' conftest.$ac_ext >&5
11031
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11032
conftest$ac_exeext conftest.$ac_ext
11033
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11035
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11036
# Warning - without using the other run time loading flags,
11037
# -berok will link without error, but may produce a broken library.
11038
no_undefined_flag_CXX=' ${wl}-bernotok'
11039
allow_undefined_flag_CXX=' ${wl}-berok'
11040
# Exported symbols can be pulled into shared objects from archives
11041
whole_archive_flag_spec_CXX='$convenience'
11042
archive_cmds_need_lc_CXX=yes
11043
# This is similar to how AIX traditionally builds its shared libraries.
11044
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'
11050
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11051
allow_undefined_flag_CXX=unsupported
11052
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11053
# support --undefined. This deserves some investigation. FIXME
11054
archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11061
case $cc_basename in
11063
# FIXME: insert proper C++ library support
11069
cygwin* | mingw* | pw32*)
11070
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11071
# as there is no search path for DLLs.
11072
hardcode_libdir_flag_spec_CXX='-L$libdir'
11073
allow_undefined_flag_CXX=unsupported
11074
always_export_symbols_CXX=no
11075
enable_shared_with_static_runtimes_CXX=yes
11077
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11078
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'
11079
# If the export-symbols file already is a .def file (1st line
11080
# is EXPORTS), use it as is; otherwise, prepend...
11081
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11082
cp $export_symbols $output_objdir/$soname.def;
11084
echo EXPORTS > $output_objdir/$soname.def;
11085
cat $export_symbols >> $output_objdir/$soname.def;
11087
$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'
11092
darwin* | rhapsody*)
11094
rhapsody* | darwin1.[012])
11095
allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11098
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11099
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11101
case ${MACOSX_DEPLOYMENT_TARGET} in
11103
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11106
allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11112
archive_cmds_need_lc_CXX=no
11113
hardcode_direct_CXX=no
11114
hardcode_automatic_CXX=yes
11115
hardcode_shlibpath_var_CXX=unsupported
11116
whole_archive_flag_spec_CXX=''
11117
link_all_deplibs_CXX=yes
11119
if test "$GXX" = yes ; then
11120
lt_int_apple_cc_single_mod=no
11121
output_verbose_link_cmd='echo'
11122
if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11123
lt_int_apple_cc_single_mod=yes
11125
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11126
archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11128
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'
11130
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11131
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11132
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11133
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}'
11135
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}'
11137
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}'
11139
case $cc_basename in
11141
output_verbose_link_cmd='echo'
11142
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'
11143
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11144
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11145
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}'
11146
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}'
11156
case $cc_basename in
11158
# FIXME: insert proper C++ library support
11162
# Green Hills C++ Compiler
11163
# FIXME: insert proper C++ library support
11167
# FIXME: insert proper C++ library support
11173
# C++ shared libraries reported to be fairly broken before switch to ELF
11177
archive_cmds_need_lc_CXX=no
11179
freebsd* | dragonfly*)
11180
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11187
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11188
hardcode_libdir_separator_CXX=:
11189
export_dynamic_flag_spec_CXX='${wl}-E'
11190
hardcode_direct_CXX=yes
11191
hardcode_minus_L_CXX=yes # Not in the search PATH,
11192
# but as the default
11193
# location of the library.
11195
case $cc_basename in
11197
# FIXME: insert proper C++ library support
11201
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'
11202
# Commands to make compiler produce verbose output that lists
11203
# what "hidden" libraries, object files and flags are used when
11204
# linking a shared library.
11206
# There doesn't appear to be a way to prevent this compiler from
11207
# explicitly linking system object files so we need to strip them
11208
# from the output so that they don't get included in the library
11210
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'
11213
if test "$GXX" = yes; then
11214
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'
11216
# FIXME: insert proper C++ library support
11223
if test $with_gnu_ld = no; then
11224
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11225
hardcode_libdir_separator_CXX=:
11229
hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11232
export_dynamic_flag_spec_CXX='${wl}-E'
11238
hardcode_direct_CXX=no
11239
hardcode_shlibpath_var_CXX=no
11242
hardcode_direct_CXX=yes
11243
hardcode_minus_L_CXX=yes # Not in the search PATH,
11244
# but as the default
11245
# location of the library.
11249
case $cc_basename in
11251
# FIXME: insert proper C++ library support
11257
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11260
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11263
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11266
# Commands to make compiler produce verbose output that lists
11267
# what "hidden" libraries, object files and flags are used when
11268
# linking a shared library.
11270
# There doesn't appear to be a way to prevent this compiler from
11271
# explicitly linking system object files so we need to strip them
11272
# from the output so that they don't get included in the library
11274
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'
11277
if test "$GXX" = yes; then
11278
if test $with_gnu_ld = no; then
11281
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11284
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11287
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'
11292
# FIXME: insert proper C++ library support
11299
hardcode_direct_CXX=no
11300
hardcode_shlibpath_var_CXX=no
11301
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11302
export_dynamic_flag_spec_CXX='${wl}-E'
11303
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11304
# Instead, shared libraries are loaded at an image base (0x10000000 by
11305
# default) and relocated if they conflict, which is a slow very memory
11306
# consuming and fragmenting process. To avoid this, we pick a random,
11307
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11308
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
11309
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'
11310
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'
11313
case $cc_basename in
11316
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'
11318
# Archives containing C++ object files must be created using
11319
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
11320
# necessary to make sure instantiated templates are included
11322
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11325
if test "$GXX" = yes; then
11326
if test "$with_gnu_ld" = no; then
11327
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'
11329
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'
11332
link_all_deplibs_CXX=yes
11335
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11336
hardcode_libdir_separator_CXX=:
11338
linux* | k*bsd*-gnu)
11339
case $cc_basename in
11341
# Kuck and Associates, Inc. (KAI) C++ Compiler
11343
# KCC will only create a shared library if the output file
11344
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11345
# to its proper name (with version) after linking.
11346
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'
11347
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'
11348
# Commands to make compiler produce verbose output that lists
11349
# what "hidden" libraries, object files and flags are used when
11350
# linking a shared library.
11352
# There doesn't appear to be a way to prevent this compiler from
11353
# explicitly linking system object files so we need to strip them
11354
# from the output so that they don't get included in the library
11356
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'
11358
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11359
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11361
# Archives containing C++ object files must be created using
11362
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11363
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11368
# version 8.0 and above of icpc choke on multiply defined symbols
11369
# if we add $predep_objects and $postdep_objects, however 7.1 and
11370
# earlier do not add the objects themselves.
11371
case `$CC -V 2>&1` in
11373
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11374
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'
11376
*) # Version 8.0 or newer
11379
ia64*) tmp_idyn=' -i_dynamic';;
11381
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11382
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'
11385
archive_cmds_need_lc_CXX=no
11386
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11387
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11388
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11391
# Portland Group C++ compiler
11392
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11393
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'
11395
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11396
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11397
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'
11401
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11402
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'
11404
runpath_var=LD_RUN_PATH
11405
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11406
hardcode_libdir_separator_CXX=:
11408
# Commands to make compiler produce verbose output that lists
11409
# what "hidden" libraries, object files and flags are used when
11410
# linking a shared library.
11412
# There doesn't appear to be a way to prevent this compiler from
11413
# explicitly linking system object files so we need to strip them
11414
# from the output so that they don't get included in the library
11416
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'
11421
# FIXME: insert proper C++ library support
11425
# FIXME: insert proper C++ library support
11429
case $cc_basename in
11431
# FIXME: insert proper C++ library support
11435
# FIXME: insert proper C++ library support
11440
netbsd* | netbsdelf*-gnu)
11441
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11442
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11444
hardcode_libdir_flag_spec_CXX='-R$libdir'
11445
hardcode_direct_CXX=yes
11446
hardcode_shlibpath_var_CXX=no
11448
# Workaround some broken pre-1.5 toolchains
11449
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11452
# C++ shared libraries are fairly broken
11456
hardcode_direct_CXX=yes
11457
hardcode_shlibpath_var_CXX=no
11458
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11459
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11460
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11461
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11462
export_dynamic_flag_spec_CXX='${wl}-E'
11463
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11465
output_verbose_link_cmd='echo'
11468
case $cc_basename in
11470
# Kuck and Associates, Inc. (KAI) C++ Compiler
11472
# KCC will only create a shared library if the output file
11473
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11474
# to its proper name (with version) after linking.
11475
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'
11477
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11478
hardcode_libdir_separator_CXX=:
11480
# Archives containing C++ object files must be created using
11481
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11482
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11486
# Rational C++ 2.4.1
11487
# FIXME: insert proper C++ library support
11491
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11492
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'
11494
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11495
hardcode_libdir_separator_CXX=:
11497
# Commands to make compiler produce verbose output that lists
11498
# what "hidden" libraries, object files and flags are used when
11499
# linking a shared library.
11501
# There doesn't appear to be a way to prevent this compiler from
11502
# explicitly linking system object files so we need to strip them
11503
# from the output so that they don't get included in the library
11505
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'
11508
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11509
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11510
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'
11512
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11513
hardcode_libdir_separator_CXX=:
11515
# Commands to make compiler produce verbose output that lists
11516
# what "hidden" libraries, object files and flags are used when
11517
# linking a shared library.
11518
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11521
# FIXME: insert proper C++ library support
11528
case $cc_basename in
11530
# Kuck and Associates, Inc. (KAI) C++ Compiler
11532
# KCC will only create a shared library if the output file
11533
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11534
# to its proper name (with version) after linking.
11535
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'
11537
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11538
hardcode_libdir_separator_CXX=:
11540
# Archives containing C++ object files must be created using
11541
# the KAI C++ compiler.
11542
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11545
# Rational C++ 2.4.1
11546
# FIXME: insert proper C++ library support
11550
allow_undefined_flag_CXX=' -expect_unresolved \*'
11551
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'
11552
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11553
echo "-hidden">> $lib.exp~
11554
$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~
11557
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11558
hardcode_libdir_separator_CXX=:
11560
# Commands to make compiler produce verbose output that lists
11561
# what "hidden" libraries, object files and flags are used when
11562
# linking a shared library.
11564
# There doesn't appear to be a way to prevent this compiler from
11565
# explicitly linking system object files so we need to strip them
11566
# from the output so that they don't get included in the library
11568
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'
11571
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11572
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11573
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'
11575
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11576
hardcode_libdir_separator_CXX=:
11578
# Commands to make compiler produce verbose output that lists
11579
# what "hidden" libraries, object files and flags are used when
11580
# linking a shared library.
11581
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11584
# FIXME: insert proper C++ library support
11591
# FIXME: insert proper C++ library support
11595
case $cc_basename in
11598
# FIXME: insert proper C++ library support
11603
# FIXME: insert proper C++ library support
11607
# FIXME: insert proper C++ library support
11613
case $cc_basename in
11615
# Sun C++ 4.2, 5.x and Centerline C++
11616
archive_cmds_need_lc_CXX=yes
11617
no_undefined_flag_CXX=' -zdefs'
11618
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11619
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11620
$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'
11622
hardcode_libdir_flag_spec_CXX='-R$libdir'
11623
hardcode_shlibpath_var_CXX=no
11625
solaris2.[0-5] | solaris2.[0-5].*) ;;
11627
# The C++ compiler is used as linker so we must use $wl
11628
# flag to pass the commands to the underlying system
11629
# linker. We must also pass each convience library through
11630
# to the system linker between allextract/defaultextract.
11631
# The C++ compiler will combine linker options so we
11632
# cannot just pass the convience library names through
11634
# Supported since Solaris 2.6 (maybe 2.5.1?)
11635
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'
11638
link_all_deplibs_CXX=yes
11640
output_verbose_link_cmd='echo'
11642
# Archives containing C++ object files must be created using
11643
# "CC -xar", where "CC" is the Sun C++ compiler. This is
11644
# necessary to make sure instantiated templates are included
11646
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11649
# Green Hills C++ Compiler
11650
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11652
# The C++ compiler must be used to create the archive.
11653
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11656
# GNU C++ compiler with Solaris linker
11657
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11658
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11659
if $CC --version | grep -v '^2\.7' > /dev/null; then
11660
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11661
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11662
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11664
# Commands to make compiler produce verbose output that lists
11665
# what "hidden" libraries, object files and flags are used when
11666
# linking a shared library.
11667
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11669
# g++ 2.7 appears to require `-G' NOT `-shared' on this
11671
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11672
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11673
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11675
# Commands to make compiler produce verbose output that lists
11676
# what "hidden" libraries, object files and flags are used when
11677
# linking a shared library.
11678
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11681
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11686
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11687
no_undefined_flag_CXX='${wl}-z,text'
11688
archive_cmds_need_lc_CXX=no
11689
hardcode_shlibpath_var_CXX=no
11690
runpath_var='LD_RUN_PATH'
11692
case $cc_basename in
11694
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11695
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11698
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11699
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11703
sysv5* | sco3.2v5* | sco5v6*)
11704
# Note: We can NOT use -z defs as we might desire, because we do not
11705
# link with -lc, and that would cause any symbols used from libc to
11706
# always be unresolved, which means just about no library would
11707
# ever link correctly. If we're not using GNU ld we use -z text
11708
# though, which does catch some bad symbols but isn't as heavy-handed
11710
# For security reasons, it is highly recommended that you always
11711
# use absolute paths for naming shared libraries, and exclude the
11712
# DT_RUNPATH tag from executables and libraries. But doing so
11713
# requires that you compile everything twice, which is a pain.
11714
# So that behaviour is only enabled if SCOABSPATH is set to a
11715
# non-empty value in the environment. Most likely only useful for
11716
# creating official distributions of packages.
11717
# This is a hack until libtool officially supports absolute path
11718
# names for shared libraries.
11719
no_undefined_flag_CXX='${wl}-z,text'
11720
allow_undefined_flag_CXX='${wl}-z,nodefs'
11721
archive_cmds_need_lc_CXX=no
11722
hardcode_shlibpath_var_CXX=no
11723
hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11724
hardcode_libdir_separator_CXX=':'
11725
link_all_deplibs_CXX=yes
11726
export_dynamic_flag_spec_CXX='${wl}-Bexport'
11727
runpath_var='LD_RUN_PATH'
11729
case $cc_basename in
11731
archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11732
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11735
archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11736
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11741
case $cc_basename in
11743
# NonStop-UX NCC 3.20
11744
# FIXME: insert proper C++ library support
11748
# FIXME: insert proper C++ library support
11754
# FIXME: insert proper C++ library support
11758
# FIXME: insert proper C++ library support
11762
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11763
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11764
test "$ld_shlibs_CXX" = no && can_build_shared=no
11770
cat > conftest.$ac_ext <<EOF
11774
Foo (void) { a = 0; }
11780
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11781
(eval $ac_compile) 2>&5
11783
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11784
(exit $ac_status); }; then
11785
# Parse the compiler output and extract the necessary
11786
# objects, libraries and library flags.
11788
# Sentinel used to keep track of whether or not we are before
11789
# the conftest object file.
11790
pre_test_object_deps_done=no
11792
# The `*' in the case matches for architectures that use `case' in
11793
# $output_verbose_cmd can trigger glob expansion during the loop
11794
# eval without this substitution.
11795
output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11797
for p in `eval $output_verbose_link_cmd`; do
11801
# Some compilers place space between "-{L,R}" and the path.
11802
# Remove the space.
11803
if test $p = "-L" \
11804
|| test $p = "-R"; then
11811
if test "$pre_test_object_deps_done" = no; then
11814
# Internal compiler library paths should come after those
11815
# provided the user. The postdeps already come after the
11816
# user supplied libs so there is no need to process them.
11817
if test -z "$compiler_lib_search_path_CXX"; then
11818
compiler_lib_search_path_CXX="${prev}${p}"
11820
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11823
# The "-l" case would never come before the object being
11824
# linked, so don't bother handling this case.
11827
if test -z "$postdeps_CXX"; then
11828
postdeps_CXX="${prev}${p}"
11830
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11836
# This assumes that the test object file only shows up
11837
# once in the compiler output.
11838
if test "$p" = "conftest.$objext"; then
11839
pre_test_object_deps_done=yes
11843
if test "$pre_test_object_deps_done" = no; then
11844
if test -z "$predep_objects_CXX"; then
11845
predep_objects_CXX="$p"
11847
predep_objects_CXX="$predep_objects_CXX $p"
11850
if test -z "$postdep_objects_CXX"; then
11851
postdep_objects_CXX="$p"
11853
postdep_objects_CXX="$postdep_objects_CXX $p"
11858
*) ;; # Ignore the rest.
11866
echo "libtool.m4: error: problem compiling CXX test program"
11869
$rm -f confest.$objext
11871
# PORTME: override above test on systems where it is broken
11874
# Interix 3.5 installs completely hosed .la files for C++, so rather than
11875
# hack all around it, let's just trust "g++" to DTRT.
11876
predep_objects_CXX=
11877
postdep_objects_CXX=
11882
case $cc_basename in
11884
# Adding this requires a known-good setup of shared libraries for
11885
# Sun compiler versions before 5.6, else PIC objects from an old
11886
# archive will be linked into the output, leading to subtle bugs.
11887
postdeps_CXX='-lCstd -lCrun'
11894
case " $postdeps_CXX " in
11895
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11898
lt_prog_compiler_wl_CXX=
11899
lt_prog_compiler_pic_CXX=
11900
lt_prog_compiler_static_CXX=
11902
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11903
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11905
# C++ specific cases for pic, static, wl, etc.
11906
if test "$GXX" = yes; then
11907
lt_prog_compiler_wl_CXX='-Wl,'
11908
lt_prog_compiler_static_CXX='-static'
11912
# All AIX code is PIC.
11913
if test "$host_cpu" = ia64; then
11914
# AIX 5 now supports IA64 processor
11915
lt_prog_compiler_static_CXX='-Bstatic'
11919
# FIXME: we need at least 68020 code to build shared libraries, but
11920
# adding the `-m68020' flag to GCC prevents building anything better,
11922
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11924
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11925
# PIC is the default for these OSes.
11927
mingw* | os2* | pw32*)
11928
# This hack is so that the source file can tell whether it is being
11929
# built for inclusion in a dll (and should export symbols for example).
11930
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11932
darwin* | rhapsody*)
11933
# PIC is the default on this platform
11934
# Common symbols not allowed in MH_DYLIB files
11935
lt_prog_compiler_pic_CXX='-fno-common'
11938
# DJGPP does not support shared libraries at all
11939
lt_prog_compiler_pic_CXX=
11942
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
11943
# Instead, we relocate shared libraries at runtime.
11946
if test -d /usr/nec; then
11947
lt_prog_compiler_pic_CXX=-Kconform_pic
11951
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11952
# not for PA HP-UX.
11957
lt_prog_compiler_pic_CXX='-fPIC'
11962
lt_prog_compiler_pic_CXX='-fPIC'
11968
# All AIX code is PIC.
11969
if test "$host_cpu" = ia64; then
11970
# AIX 5 now supports IA64 processor
11971
lt_prog_compiler_static_CXX='-Bstatic'
11973
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11977
case $cc_basename in
11979
# Green Hills C++ Compiler
11980
# _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"
11985
# PIC is the default on this platform
11986
# Common symbols not allowed in MH_DYLIB files
11987
case $cc_basename in
11989
lt_prog_compiler_pic_CXX='-qnocommon'
11990
lt_prog_compiler_wl_CXX='-Wl,'
11995
case $cc_basename in
11997
lt_prog_compiler_pic_CXX='-KPIC'
12000
# Green Hills C++ Compiler
12001
lt_prog_compiler_pic_CXX='-pic'
12007
freebsd* | dragonfly*)
12008
# FreeBSD uses GNU C++
12010
hpux9* | hpux10* | hpux11*)
12011
case $cc_basename in
12013
lt_prog_compiler_wl_CXX='-Wl,'
12014
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12015
if test "$host_cpu" != ia64; then
12016
lt_prog_compiler_pic_CXX='+Z'
12020
lt_prog_compiler_wl_CXX='-Wl,'
12021
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12027
lt_prog_compiler_pic_CXX='+Z'
12036
# This is c89, which is MS Visual C++ (no shared libs)
12037
# Anyone wants to do a port?
12039
irix5* | irix6* | nonstopux*)
12040
case $cc_basename in
12042
lt_prog_compiler_wl_CXX='-Wl,'
12043
lt_prog_compiler_static_CXX='-non_shared'
12044
# CC pic flag -KPIC is the default.
12050
linux* | k*bsd*-gnu)
12051
case $cc_basename in
12054
lt_prog_compiler_wl_CXX='--backend -Wl,'
12055
lt_prog_compiler_pic_CXX='-fPIC'
12059
lt_prog_compiler_wl_CXX='-Wl,'
12060
lt_prog_compiler_pic_CXX='-KPIC'
12061
lt_prog_compiler_static_CXX='-static'
12064
# Portland Group C++ compiler.
12065
lt_prog_compiler_wl_CXX='-Wl,'
12066
lt_prog_compiler_pic_CXX='-fpic'
12067
lt_prog_compiler_static_CXX='-Bstatic'
12071
# Make sure the PIC flag is empty. It appears that all Alpha
12072
# Linux and Compaq Tru64 Unix objects are PIC.
12073
lt_prog_compiler_pic_CXX=
12074
lt_prog_compiler_static_CXX='-non_shared'
12085
case $cc_basename in
12087
lt_prog_compiler_pic_CXX='-W c,exportall'
12093
netbsd* | netbsdelf*-gnu)
12095
osf3* | osf4* | osf5*)
12096
case $cc_basename in
12098
lt_prog_compiler_wl_CXX='--backend -Wl,'
12101
# Rational C++ 2.4.1
12102
lt_prog_compiler_pic_CXX='-pic'
12105
# Digital/Compaq C++
12106
lt_prog_compiler_wl_CXX='-Wl,'
12107
# Make sure the PIC flag is empty. It appears that all Alpha
12108
# Linux and Compaq Tru64 Unix objects are PIC.
12109
lt_prog_compiler_pic_CXX=
12110
lt_prog_compiler_static_CXX='-non_shared'
12119
case $cc_basename in
12121
# Sun C++ 4.2, 5.x and Centerline C++
12122
lt_prog_compiler_pic_CXX='-KPIC'
12123
lt_prog_compiler_static_CXX='-Bstatic'
12124
lt_prog_compiler_wl_CXX='-Qoption ld '
12127
# Green Hills C++ Compiler
12128
lt_prog_compiler_pic_CXX='-PIC'
12135
case $cc_basename in
12138
lt_prog_compiler_pic_CXX='-pic'
12139
lt_prog_compiler_static_CXX='-Bstatic'
12143
lt_prog_compiler_pic_CXX='-pic'
12150
case $cc_basename in
12152
# NonStop-UX NCC 3.20
12153
lt_prog_compiler_pic_CXX='-KPIC'
12159
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12160
case $cc_basename in
12162
lt_prog_compiler_wl_CXX='-Wl,'
12163
lt_prog_compiler_pic_CXX='-KPIC'
12164
lt_prog_compiler_static_CXX='-Bstatic'
12171
lt_prog_compiler_can_build_shared_CXX=no
12176
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12177
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12180
# Check to make sure the PIC flag actually works.
12182
if test -n "$lt_prog_compiler_pic_CXX"; then
12184
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12185
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12186
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12187
echo $ECHO_N "(cached) $ECHO_C" >&6
12189
lt_prog_compiler_pic_works_CXX=no
12190
ac_outfile=conftest.$ac_objext
12191
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12192
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12193
# Insert the option either (1) after the last *FLAGS variable, or
12194
# (2) before a word containing "conftest.", or (3) at the end.
12195
# Note that $ac_compile itself does not contain backslashes and begins
12196
# with a dollar sign (not a hyphen), so the echo should work correctly.
12197
# The option is referenced via a variable to avoid confusing sed.
12198
lt_compile=`echo "$ac_compile" | $SED \
12199
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12200
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12201
-e 's:$: $lt_compiler_flag:'`
12202
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
12203
(eval "$lt_compile" 2>conftest.err)
12205
cat conftest.err >&5
12206
echo "$as_me:__oline__: \$? = $ac_status" >&5
12207
if (exit $ac_status) && test -s "$ac_outfile"; then
12208
# The compiler can only warn and ignore the option if not recognized
12209
# So say no if there are warnings other than the usual output.
12210
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12211
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12212
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12213
lt_prog_compiler_pic_works_CXX=yes
12219
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12220
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12222
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12223
case $lt_prog_compiler_pic_CXX in
12225
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12228
lt_prog_compiler_pic_CXX=
12229
lt_prog_compiler_can_build_shared_CXX=no
12234
# For platforms which do not support PIC, -DPIC is meaningless:
12236
lt_prog_compiler_pic_CXX=
12239
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12244
# Check to make sure the static flag actually works.
12246
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12247
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12248
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12249
if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12250
echo $ECHO_N "(cached) $ECHO_C" >&6
12252
lt_prog_compiler_static_works_CXX=no
12253
save_LDFLAGS="$LDFLAGS"
12254
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12255
printf "$lt_simple_link_test_code" > conftest.$ac_ext
12256
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12257
# The linker can only warn and ignore the option if not recognized
12258
# So say no if there are warnings
12259
if test -s conftest.err; then
12260
# Append any errors to the config.log.
12261
cat conftest.err 1>&5
12262
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12263
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12264
if diff conftest.exp conftest.er2 >/dev/null; then
12265
lt_prog_compiler_static_works_CXX=yes
12268
lt_prog_compiler_static_works_CXX=yes
12272
LDFLAGS="$save_LDFLAGS"
12275
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12276
echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12278
if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12281
lt_prog_compiler_static_CXX=
12285
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12286
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12287
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12288
echo $ECHO_N "(cached) $ECHO_C" >&6
12290
lt_cv_prog_compiler_c_o_CXX=no
12291
$rm -r conftest 2>/dev/null
12295
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12297
lt_compiler_flag="-o out/conftest2.$ac_objext"
12298
# Insert the option either (1) after the last *FLAGS variable, or
12299
# (2) before a word containing "conftest.", or (3) at the end.
12300
# Note that $ac_compile itself does not contain backslashes and begins
12301
# with a dollar sign (not a hyphen), so the echo should work correctly.
12302
lt_compile=`echo "$ac_compile" | $SED \
12303
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12304
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12305
-e 's:$: $lt_compiler_flag:'`
12306
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
12307
(eval "$lt_compile" 2>out/conftest.err)
12309
cat out/conftest.err >&5
12310
echo "$as_me:__oline__: \$? = $ac_status" >&5
12311
if (exit $ac_status) && test -s out/conftest2.$ac_objext
12313
# The compiler can only warn and ignore the option if not recognized
12314
# So say no if there are warnings
12315
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12316
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12317
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12318
lt_cv_prog_compiler_c_o_CXX=yes
12323
# SGI C++ compiler will create directory out/ii_files/ for
12324
# template instantiation
12325
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12326
$rm out/* && rmdir out
12332
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12333
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12336
hard_links="nottested"
12337
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12338
# do not overwrite the value of need_locks provided by the user
12339
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12340
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12343
ln conftest.a conftest.b 2>/dev/null && hard_links=no
12345
ln conftest.a conftest.b 2>&5 || hard_links=no
12346
ln conftest.a conftest.b 2>/dev/null && hard_links=no
12347
{ echo "$as_me:$LINENO: result: $hard_links" >&5
12348
echo "${ECHO_T}$hard_links" >&6; }
12349
if test "$hard_links" = no; then
12350
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12351
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12358
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12359
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12361
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12364
# If we're using GNU nm, then we don't want the "-C" option.
12365
# -C means demangle to AIX nm, but means don't demangle with GNU nm
12366
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12367
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'
12369
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'
12373
export_symbols_cmds_CXX="$ltdll_cmds"
12376
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'
12378
linux* | k*bsd*-gnu)
12379
link_all_deplibs_CXX=no
12382
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12386
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12387
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12388
test "$ld_shlibs_CXX" = no && can_build_shared=no
12391
# Do we need to explicitly link libc?
12393
case "x$archive_cmds_need_lc_CXX" in
12395
# Assume -lc should be added
12396
archive_cmds_need_lc_CXX=yes
12398
if test "$enable_shared" = yes && test "$GCC" = yes; then
12399
case $archive_cmds_CXX in
12401
# FIXME: we may have to deal with multi-command sequences.
12404
# Test whether the compiler implicitly links with -lc since on some
12405
# systems, -lgcc has to come before -lc. If gcc already passes -lc
12406
# to ld, don't add -lc before -lgcc.
12407
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12408
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12410
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12412
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12413
(eval $ac_compile) 2>&5
12415
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12416
(exit $ac_status); } 2>conftest.err; then
12419
libobjs=conftest.$ac_objext
12421
wl=$lt_prog_compiler_wl_CXX
12422
pic_flag=$lt_prog_compiler_pic_CXX
12428
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12429
allow_undefined_flag_CXX=
12430
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12431
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12433
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434
(exit $ac_status); }
12436
archive_cmds_need_lc_CXX=no
12438
archive_cmds_need_lc_CXX=yes
12440
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12442
cat conftest.err 1>&5
12445
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12446
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12453
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12454
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12455
library_names_spec=
12456
libname_spec='lib$name'
12460
postuninstall_cmds=
12464
shlibpath_overrides_runpath=unknown
12466
dynamic_linker="$host_os ld.so"
12467
sys_lib_dlsearch_path_spec="/lib /usr/lib"
12468
if test "$GCC" = yes; then
12469
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12470
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12471
# if the path contains ";" then we assume it to be the separator
12472
# otherwise default to the standard path separator (i.e. ":") - it is
12473
# assumed that no part of a normal pathname contains ";" but that should
12474
# okay in the real world where ";" in dirpaths is itself problematic.
12475
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12477
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12480
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12482
need_lib_prefix=unknown
12483
hardcode_into_libs=no
12485
# when you set need_version to no, make sure it does not cause -set_version
12486
# flags to be left without arguments
12487
need_version=unknown
12492
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12493
shlibpath_var=LIBPATH
12495
# AIX 3 has no versioning support, so we append a major version to the name.
12496
soname_spec='${libname}${release}${shared_ext}$major'
12503
hardcode_into_libs=yes
12504
if test "$host_cpu" = ia64; then
12505
# AIX 5 supports IA64
12506
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12507
shlibpath_var=LD_LIBRARY_PATH
12509
# With GCC up to 2.95.x, collect2 would create an import file
12510
# for dependence libraries. The import file would start with
12511
# the line `#! .'. This would cause the generated library to
12512
# depend on `.', always an invalid library. This was fixed in
12513
# development snapshots of GCC prior to 3.0.
12515
aix4 | aix4.[01] | aix4.[01].*)
12516
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12518
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12521
can_build_shared=no
12525
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12526
# soname into executable. Probably we can add versioning support to
12527
# collect2, so additional links can be useful in future.
12528
if test "$aix_use_runtimelinking" = yes; then
12529
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
12530
# instead of lib<name>.a to let people know that these are not
12531
# typical AIX shared libraries.
12532
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12534
# We preserve .a as extension for shared libraries through AIX4.2
12535
# and later when we are not doing run time linking.
12536
library_names_spec='${libname}${release}.a $libname.a'
12537
soname_spec='${libname}${release}${shared_ext}$major'
12539
shlibpath_var=LIBPATH
12544
library_names_spec='$libname.ixlibrary $libname.a'
12545
# Create ${libname}_ixlibrary.a entries in /sys/libs.
12546
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'
12550
library_names_spec='${libname}${shared_ext}'
12551
dynamic_linker="$host_os ld.so"
12552
shlibpath_var=LIBRARY_PATH
12558
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12559
soname_spec='${libname}${release}${shared_ext}$major'
12560
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12561
shlibpath_var=LD_LIBRARY_PATH
12562
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12563
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12564
# the default ld.so.conf also contains /usr/contrib/lib and
12565
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12566
# libtool to hard-code these into programs
12569
cygwin* | mingw* | pw32*)
12570
version_type=windows
12575
case $GCC,$host_os in
12576
yes,cygwin* | yes,mingw* | yes,pw32*)
12577
library_names_spec='$libname.dll.a'
12578
# DLL is installed to $(libdir)/../bin by postinstall_cmds
12579
postinstall_cmds='base_file=`basename \${file}`~
12580
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12581
dldir=$destdir/`dirname \$dlpath`~
12582
test -d \$dldir || mkdir -p \$dldir~
12583
$install_prog $dir/$dlname \$dldir/$dlname~
12584
chmod a+x \$dldir/$dlname'
12585
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12586
dlpath=$dir/\$dldll~
12588
shlibpath_overrides_runpath=yes
12592
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
12593
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12594
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12597
# MinGW DLLs use traditional 'lib' prefix
12598
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12599
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12600
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12601
# It is most probably a Windows format PATH printed by
12602
# mingw gcc, but we are running on Cygwin. Gcc prints its search
12603
# path with ; separators, and with drive letters. We can handle the
12604
# drive letters (cygwin fileutils understands them), so leave them,
12605
# especially as we might pass files found there to a mingw objdump,
12606
# which wouldn't understand a cygwinified path. Ahh.
12607
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12609
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12613
# pw32 DLLs use 'pw' prefix rather than 'lib'
12614
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12620
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12623
dynamic_linker='Win32 ld.exe'
12624
# FIXME: first we should search . and the directory the executable is in
12628
darwin* | rhapsody*)
12629
dynamic_linker="$host_os dyld"
12630
version_type=darwin
12633
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12634
soname_spec='${libname}${release}${major}$shared_ext'
12635
shlibpath_overrides_runpath=yes
12636
shlibpath_var=DYLD_LIBRARY_PATH
12637
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12638
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12639
if test "$GCC" = yes; then
12640
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"`
12642
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12644
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12651
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12652
soname_spec='${libname}${release}${shared_ext}$major'
12653
shlibpath_var=LD_LIBRARY_PATH
12660
freebsd* | dragonfly*)
12661
# DragonFly does not have aout. When/if they implement a new
12662
# versioning mechanism, adjust this.
12663
if test -x /usr/bin/objformat; then
12664
objformat=`/usr/bin/objformat`
12667
freebsd[123]*) objformat=aout ;;
12668
*) objformat=elf ;;
12671
version_type=freebsd-$objformat
12672
case $version_type in
12674
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12679
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12683
shlibpath_var=LD_LIBRARY_PATH
12686
shlibpath_overrides_runpath=yes
12688
freebsd3.[01]* | freebsdelf3.[01]*)
12689
shlibpath_overrides_runpath=yes
12690
hardcode_into_libs=yes
12692
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12693
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12694
shlibpath_overrides_runpath=no
12695
hardcode_into_libs=yes
12697
freebsd*) # from 4.6 on
12698
shlibpath_overrides_runpath=yes
12699
hardcode_into_libs=yes
12708
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12709
soname_spec='${libname}${release}${shared_ext}$major'
12710
shlibpath_var=LD_LIBRARY_PATH
12711
hardcode_into_libs=yes
12714
hpux9* | hpux10* | hpux11*)
12715
# Give a soname corresponding to the major version so that dld.sl refuses to
12716
# link against other versions.
12723
hardcode_into_libs=yes
12724
dynamic_linker="$host_os dld.so"
12725
shlibpath_var=LD_LIBRARY_PATH
12726
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12727
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12728
soname_spec='${libname}${release}${shared_ext}$major'
12729
if test "X$HPUX_IA64_MODE" = X32; then
12730
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12732
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12734
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12738
hardcode_into_libs=yes
12739
dynamic_linker="$host_os dld.sl"
12740
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12741
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12742
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12743
soname_spec='${libname}${release}${shared_ext}$major'
12744
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12745
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12749
dynamic_linker="$host_os dld.sl"
12750
shlibpath_var=SHLIB_PATH
12751
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12752
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12753
soname_spec='${libname}${release}${shared_ext}$major'
12756
# HP-UX runs *really* slowly unless shared libraries are mode 555.
12757
postinstall_cmds='chmod 555 $lib'
12764
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12765
soname_spec='${libname}${release}${shared_ext}$major'
12766
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12767
shlibpath_var=LD_LIBRARY_PATH
12768
shlibpath_overrides_runpath=no
12769
hardcode_into_libs=yes
12772
irix5* | irix6* | nonstopux*)
12774
nonstopux*) version_type=nonstopux ;;
12776
if test "$lt_cv_prog_gnu_ld" = yes; then
12784
soname_spec='${libname}${release}${shared_ext}$major'
12785
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12787
irix5* | nonstopux*)
12788
libsuff= shlibsuff=
12791
case $LD in # libtool.m4 will add one of these switches to LD
12792
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12793
libsuff= shlibsuff= libmagic=32-bit;;
12794
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12795
libsuff=32 shlibsuff=N32 libmagic=N32;;
12796
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12797
libsuff=64 shlibsuff=64 libmagic=64-bit;;
12798
*) libsuff= shlibsuff= libmagic=never-match;;
12802
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12803
shlibpath_overrides_runpath=no
12804
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12805
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12806
hardcode_into_libs=yes
12809
# No shared lib support for Linux oldld, aout, or coff.
12810
linux*oldld* | linux*aout* | linux*coff*)
12814
# This must be Linux ELF.
12815
linux* | k*bsd*-gnu)
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'
12821
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12822
shlibpath_var=LD_LIBRARY_PATH
12823
shlibpath_overrides_runpath=no
12824
# This implies no fast_install, which is unacceptable.
12825
# Some rework will be needed to allow for fast_install
12826
# before this can be enabled.
12827
hardcode_into_libs=yes
12829
# Append ld.so.conf contents to the search path
12830
if test -f /etc/ld.so.conf; then
12831
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' ' '`
12832
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12835
# We used to test for /lib/ld.so.1 and disable shared libraries on
12836
# powerpc, because MkLinux only supported shared libraries with the
12837
# GNU dynamic linker. Since this was broken with cross compilers,
12838
# most powerpc-linux boxes support dynamic linking these days and
12839
# people can always --disable-shared, the test was removed, and we
12840
# assume the GNU/Linux dynamic linker is in use.
12841
dynamic_linker='GNU/Linux ld.so'
12848
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12849
soname_spec='${libname}${release}${shared_ext}$major'
12850
shlibpath_var=LD_LIBRARY_PATH
12851
shlibpath_overrides_runpath=no
12852
hardcode_into_libs=yes
12853
dynamic_linker='NetBSD ld.elf_so'
12860
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12861
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12862
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12863
dynamic_linker='NetBSD (a.out) ld.so'
12865
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12866
soname_spec='${libname}${release}${shared_ext}$major'
12867
dynamic_linker='NetBSD ld.elf_so'
12869
shlibpath_var=LD_LIBRARY_PATH
12870
shlibpath_overrides_runpath=yes
12871
hardcode_into_libs=yes
12876
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12877
shlibpath_var=LD_LIBRARY_PATH
12878
shlibpath_overrides_runpath=yes
12885
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12886
soname_spec='${libname}${release}${shared_ext}$major'
12887
shlibpath_var=LD_LIBRARY_PATH
12888
shlibpath_overrides_runpath=yes
12893
sys_lib_dlsearch_path_spec="/usr/lib"
12895
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12897
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12898
*) need_version=no ;;
12900
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12901
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12902
shlibpath_var=LD_LIBRARY_PATH
12903
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12905
openbsd2.[89] | openbsd2.[89].*)
12906
shlibpath_overrides_runpath=no
12909
shlibpath_overrides_runpath=yes
12913
shlibpath_overrides_runpath=yes
12918
libname_spec='$name'
12921
library_names_spec='$libname${shared_ext} $libname.a'
12922
dynamic_linker='OS/2 ld.exe'
12923
shlibpath_var=LIBPATH
12926
osf3* | osf4* | osf5*)
12930
soname_spec='${libname}${release}${shared_ext}$major'
12931
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12932
shlibpath_var=LD_LIBRARY_PATH
12933
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12934
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12941
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12942
soname_spec='${libname}${release}${shared_ext}$major'
12943
shlibpath_var=LD_LIBRARY_PATH
12944
shlibpath_overrides_runpath=yes
12945
hardcode_into_libs=yes
12946
# ldd complains unless libraries are executable
12947
postinstall_cmds='chmod +x $lib'
12952
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12953
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12954
shlibpath_var=LD_LIBRARY_PATH
12955
shlibpath_overrides_runpath=yes
12956
if test "$with_gnu_ld" = yes; then
12964
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12965
soname_spec='${libname}${release}${shared_ext}$major'
12966
shlibpath_var=LD_LIBRARY_PATH
12967
case $host_vendor in
12969
shlibpath_overrides_runpath=no
12971
export_dynamic_flag_spec='${wl}-Blargedynsym'
12972
runpath_var=LD_RUN_PATH
12980
shlibpath_overrides_runpath=no
12981
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12987
if test -d /usr/nec ;then
12989
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12990
soname_spec='$libname${shared_ext}.$major'
12991
shlibpath_var=LD_LIBRARY_PATH
12995
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12996
version_type=freebsd-elf
12999
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13000
soname_spec='${libname}${release}${shared_ext}$major'
13001
shlibpath_var=LD_LIBRARY_PATH
13002
hardcode_into_libs=yes
13003
if test "$with_gnu_ld" = yes; then
13004
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13005
shlibpath_overrides_runpath=no
13007
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13008
shlibpath_overrides_runpath=yes
13011
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13015
sys_lib_dlsearch_path_spec='/usr/lib'
13020
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13021
soname_spec='${libname}${release}${shared_ext}$major'
13022
shlibpath_var=LD_LIBRARY_PATH
13029
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13030
echo "${ECHO_T}$dynamic_linker" >&6; }
13031
test "$dynamic_linker" = no && can_build_shared=no
13033
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13034
if test "$GCC" = yes; then
13035
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13038
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13039
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13040
hardcode_action_CXX=
13041
if test -n "$hardcode_libdir_flag_spec_CXX" || \
13042
test -n "$runpath_var_CXX" || \
13043
test "X$hardcode_automatic_CXX" = "Xyes" ; then
13045
# We can hardcode non-existant directories.
13046
if test "$hardcode_direct_CXX" != no &&
13047
# If the only mechanism to avoid hardcoding is shlibpath_var, we
13048
# have to relink, otherwise we might link with an installed library
13049
# when we should be linking with a yet-to-be-installed one
13050
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13051
test "$hardcode_minus_L_CXX" != no; then
13052
# Linking always hardcodes the temporary library directory.
13053
hardcode_action_CXX=relink
13055
# We can link without hardcoding, and we can hardcode nonexisting dirs.
13056
hardcode_action_CXX=immediate
13059
# We cannot hardcode anything, or else we can only hardcode existing
13061
hardcode_action_CXX=unsupported
13063
{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13064
echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13066
if test "$hardcode_action_CXX" = relink; then
13067
# Fast installation is not supported
13068
enable_fast_install=no
13069
elif test "$shlibpath_overrides_runpath" = yes ||
13070
test "$enable_shared" = no; then
13071
# Fast installation is not necessary
13072
enable_fast_install=needless
13076
# The else clause should only fire when bootstrapping the
13077
# libtool distribution, otherwise you forgot to ship ltmain.sh
13078
# with your package, and you will get complaints that there are
13079
# no rules to generate ltmain.sh.
13080
if test -f "$ltmain"; then
13081
# See if we are running on zsh, and set the options which allow our commands through
13082
# without removal of \ escapes.
13083
if test -n "${ZSH_VERSION+set}" ; then
13084
setopt NO_GLOB_SUBST
13086
# Now quote all the things that may contain metacharacters while being
13087
# careful not to overquote the AC_SUBSTed values. We take copies of the
13088
# variables and quote the copies for generation of the libtool script.
13089
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13091
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13092
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13093
deplibs_check_method reload_flag reload_cmds need_locks \
13094
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13095
lt_cv_sys_global_symbol_to_c_name_address \
13096
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13097
old_postinstall_cmds old_postuninstall_cmds \
13101
lt_prog_compiler_wl_CXX \
13102
lt_prog_compiler_pic_CXX \
13103
lt_prog_compiler_static_CXX \
13104
lt_prog_compiler_no_builtin_flag_CXX \
13105
export_dynamic_flag_spec_CXX \
13106
thread_safe_flag_spec_CXX \
13107
whole_archive_flag_spec_CXX \
13108
enable_shared_with_static_runtimes_CXX \
13109
old_archive_cmds_CXX \
13110
old_archive_from_new_cmds_CXX \
13111
predep_objects_CXX \
13112
postdep_objects_CXX \
13115
compiler_lib_search_path_CXX \
13117
archive_expsym_cmds_CXX \
13118
postinstall_cmds_CXX \
13119
postuninstall_cmds_CXX \
13120
old_archive_from_expsyms_cmds_CXX \
13121
allow_undefined_flag_CXX \
13122
no_undefined_flag_CXX \
13123
export_symbols_cmds_CXX \
13124
hardcode_libdir_flag_spec_CXX \
13125
hardcode_libdir_flag_spec_ld_CXX \
13126
hardcode_libdir_separator_CXX \
13127
hardcode_automatic_CXX \
13129
module_expsym_cmds_CXX \
13130
lt_cv_prog_compiler_c_o_CXX \
13131
exclude_expsyms_CXX \
13132
include_expsyms_CXX; do
13135
old_archive_cmds_CXX | \
13136
old_archive_from_new_cmds_CXX | \
13137
archive_cmds_CXX | \
13138
archive_expsym_cmds_CXX | \
13139
module_cmds_CXX | \
13140
module_expsym_cmds_CXX | \
13141
old_archive_from_expsyms_cmds_CXX | \
13142
export_symbols_cmds_CXX | \
13143
extract_expsyms_cmds | reload_cmds | finish_cmds | \
13144
postinstall_cmds | postuninstall_cmds | \
13145
old_postinstall_cmds | old_postuninstall_cmds | \
13146
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13147
# Double-quote double-evaled strings.
13148
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13151
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13157
*'\$0 --fallback-echo"')
13158
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13164
cat <<__EOF__ >> "$cfgfile"
13165
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13167
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13169
# Shell to use when invoking shell scripts.
13172
# Whether or not to build shared libraries.
13173
build_libtool_libs=$enable_shared
13175
# Whether or not to build static libraries.
13176
build_old_libs=$enable_static
13178
# Whether or not to add -lc for building shared libraries.
13179
build_libtool_need_lc=$archive_cmds_need_lc_CXX
13181
# Whether or not to disallow shared libs when runtime libs are static
13182
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13184
# Whether or not to optimize for fast installation.
13185
fast_install=$enable_fast_install
13188
host_alias=$host_alias
13192
# The build system.
13193
build_alias=$build_alias
13197
# An echo program that does not interpret backslashes.
13202
AR_FLAGS=$lt_AR_FLAGS
13207
# LTCC compiler flags.
13208
LTCFLAGS=$lt_LTCFLAGS
13210
# A language-specific compiler.
13211
CC=$lt_compiler_CXX
13213
# Is the compiler the GNU C compiler?
13219
# The linker used to build libraries.
13222
# Whether we need hard or soft links.
13225
# A BSD-compatible nm program.
13228
# A symbol stripping program
13231
# Used to examine libraries when file_magic_cmd begins "file"
13232
MAGIC_CMD=$MAGIC_CMD
13234
# Used on cygwin: DLL creation program.
13237
# Used on cygwin: object dumper.
13240
# Used on cygwin: assembler.
13243
# The name of the directory that contains temporary libtool files.
13246
# How to create reloadable object files.
13247
reload_flag=$lt_reload_flag
13248
reload_cmds=$lt_reload_cmds
13250
# How to pass a linker flag through the compiler.
13251
wl=$lt_lt_prog_compiler_wl_CXX
13253
# Object file suffix (normally "o").
13254
objext="$ac_objext"
13256
# Old archive suffix (normally "a").
13259
# Shared library suffix (normally ".so").
13260
shrext_cmds='$shrext_cmds'
13262
# Executable file suffix (normally "").
13265
# Additional compiler flags for building library objects.
13266
pic_flag=$lt_lt_prog_compiler_pic_CXX
13269
# What is the maximum length of a command?
13270
max_cmd_len=$lt_cv_sys_max_cmd_len
13272
# Does compiler simultaneously support -c and -o options?
13273
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13275
# Must we lock files when doing compilation?
13276
need_locks=$lt_need_locks
13278
# Do we need the lib prefix for modules?
13279
need_lib_prefix=$need_lib_prefix
13281
# Do we need a version for libraries?
13282
need_version=$need_version
13284
# Whether dlopen is supported.
13285
dlopen_support=$enable_dlopen
13287
# Whether dlopen of programs is supported.
13288
dlopen_self=$enable_dlopen_self
13290
# Whether dlopen of statically linked programs is supported.
13291
dlopen_self_static=$enable_dlopen_self_static
13293
# Compiler flag to prevent dynamic linking.
13294
link_static_flag=$lt_lt_prog_compiler_static_CXX
13296
# Compiler flag to turn off builtin functions.
13297
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13299
# Compiler flag to allow reflexive dlopens.
13300
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13302
# Compiler flag to generate shared objects directly from archives.
13303
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13305
# Compiler flag to generate thread-safe objects.
13306
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13308
# Library versioning type.
13309
version_type=$version_type
13311
# Format of library name prefix.
13312
libname_spec=$lt_libname_spec
13314
# List of archive names. First name is the real one, the rest are links.
13315
# The last name is the one that the linker finds with -lNAME.
13316
library_names_spec=$lt_library_names_spec
13318
# The coded name of the library, if different from the real name.
13319
soname_spec=$lt_soname_spec
13321
# Commands used to build and install an old-style archive.
13323
old_archive_cmds=$lt_old_archive_cmds_CXX
13324
old_postinstall_cmds=$lt_old_postinstall_cmds
13325
old_postuninstall_cmds=$lt_old_postuninstall_cmds
13327
# Create an old-style archive from a shared archive.
13328
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13330
# Create a temporary old-style archive to link instead of a shared archive.
13331
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13333
# Commands used to build and install a shared archive.
13334
archive_cmds=$lt_archive_cmds_CXX
13335
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13336
postinstall_cmds=$lt_postinstall_cmds
13337
postuninstall_cmds=$lt_postuninstall_cmds
13339
# Commands used to build a loadable module (assumed same as above if empty)
13340
module_cmds=$lt_module_cmds_CXX
13341
module_expsym_cmds=$lt_module_expsym_cmds_CXX
13343
# Commands to strip libraries.
13344
old_striplib=$lt_old_striplib
13345
striplib=$lt_striplib
13347
# Dependencies to place before the objects being linked to create a
13349
predep_objects=$lt_predep_objects_CXX
13351
# Dependencies to place after the objects being linked to create a
13353
postdep_objects=$lt_postdep_objects_CXX
13355
# Dependencies to place before the objects being linked to create a
13357
predeps=$lt_predeps_CXX
13359
# Dependencies to place after the objects being linked to create a
13361
postdeps=$lt_postdeps_CXX
13363
# The library search path used internally by the compiler when linking
13364
# a shared library.
13365
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13367
# Method to check whether dependent libraries are shared objects.
13368
deplibs_check_method=$lt_deplibs_check_method
13370
# Command to use when deplibs_check_method == file_magic.
13371
file_magic_cmd=$lt_file_magic_cmd
13373
# Flag that allows shared libraries with undefined symbols to be built.
13374
allow_undefined_flag=$lt_allow_undefined_flag_CXX
13376
# Flag that forces no undefined symbols.
13377
no_undefined_flag=$lt_no_undefined_flag_CXX
13379
# Commands used to finish a libtool library installation in a directory.
13380
finish_cmds=$lt_finish_cmds
13382
# Same as above, but a single script fragment to be evaled but not shown.
13383
finish_eval=$lt_finish_eval
13385
# Take the output of nm and produce a listing of raw symbols and C names.
13386
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13388
# Transform the output of nm in a proper C declaration
13389
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13391
# Transform the output of nm in a C name address pair
13392
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13394
# This is the shared library runtime path variable.
13395
runpath_var=$runpath_var
13397
# This is the shared library path variable.
13398
shlibpath_var=$shlibpath_var
13400
# Is shlibpath searched before the hard-coded library search path?
13401
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13403
# How to hardcode a shared library path into an executable.
13404
hardcode_action=$hardcode_action_CXX
13406
# Whether we should hardcode library paths into libraries.
13407
hardcode_into_libs=$hardcode_into_libs
13409
# Flag to hardcode \$libdir into a binary during linking.
13410
# This must work even if \$libdir does not exist.
13411
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13413
# If ld is used when linking, flag to hardcode \$libdir into
13414
# a binary during linking. This must work even if \$libdir does
13416
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13418
# Whether we need a single -rpath flag with a separated argument.
13419
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13421
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13422
# resulting binary.
13423
hardcode_direct=$hardcode_direct_CXX
13425
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13426
# resulting binary.
13427
hardcode_minus_L=$hardcode_minus_L_CXX
13429
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13430
# the resulting binary.
13431
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13433
# Set to yes if building a shared library automatically hardcodes DIR into the library
13434
# and all subsequent libraries and executables linked against it.
13435
hardcode_automatic=$hardcode_automatic_CXX
13437
# Variables whose values should be saved in libtool wrapper scripts and
13438
# restored at relink time.
13439
variables_saved_for_relink="$variables_saved_for_relink"
13441
# Whether libtool must link a program against all its dependency libraries.
13442
link_all_deplibs=$link_all_deplibs_CXX
13444
# Compile-time system search path for libraries
13445
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13447
# Run-time system search path for libraries
13448
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13450
# Fix the shell variable \$srcfile for the compiler.
13451
fix_srcfile_path="$fix_srcfile_path_CXX"
13453
# Set to yes if exported symbols are required.
13454
always_export_symbols=$always_export_symbols_CXX
13456
# The commands to list exported symbols.
13457
export_symbols_cmds=$lt_export_symbols_cmds_CXX
13459
# The commands to extract the exported symbol list from a shared archive.
13460
extract_expsyms_cmds=$lt_extract_expsyms_cmds
13462
# Symbols that should not be listed in the preloaded symbols.
13463
exclude_expsyms=$lt_exclude_expsyms_CXX
13465
# Symbols that must always be exported.
13466
include_expsyms=$lt_include_expsyms_CXX
13468
# ### END LIBTOOL TAG CONFIG: $tagname
13474
# If there is no Makefile yet, we rely on a make rule to execute
13475
# `config.status --recheck' to rerun these tests and create the
13476
# libtool script then.
13477
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13478
if test -f "$ltmain_in"; then
13479
test -f Makefile && make "$ltmain"
13485
ac_cpp='$CPP $CPPFLAGS'
13486
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13487
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13488
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13494
with_gnu_ldcxx=$with_gnu_ld
13495
with_gnu_ld=$lt_save_with_gnu_ld
13496
lt_cv_path_LDCXX=$lt_cv_path_LD
13497
lt_cv_path_LD=$lt_save_path_LD
13498
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13499
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13507
if test -n "$F77" && test "X$F77" != "Xno"; then
13510
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13511
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13512
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13515
archive_cmds_need_lc_F77=no
13516
allow_undefined_flag_F77=
13517
always_export_symbols_F77=no
13518
archive_expsym_cmds_F77=
13519
export_dynamic_flag_spec_F77=
13520
hardcode_direct_F77=no
13521
hardcode_libdir_flag_spec_F77=
13522
hardcode_libdir_flag_spec_ld_F77=
13523
hardcode_libdir_separator_F77=
13524
hardcode_minus_L_F77=no
13525
hardcode_automatic_F77=no
13527
module_expsym_cmds_F77=
13528
link_all_deplibs_F77=unknown
13529
old_archive_cmds_F77=$old_archive_cmds
13530
no_undefined_flag_F77=
13531
whole_archive_flag_spec_F77=
13532
enable_shared_with_static_runtimes_F77=no
13534
# Source file extension for f77 test sources.
13537
# Object file extension for compiled f77 test sources.
13541
# Code to be used in simple compile tests
13542
lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13544
# Code to be used in simple link tests
13545
lt_simple_link_test_code=" program t\n end\n"
13547
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13549
# If no C compiler was specified, use CC.
13552
# If no C compiler flags were specified, use CFLAGS.
13553
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13555
# Allow CC to be a program name with arguments.
13559
# save warnings/boilerplate of simple test code
13560
ac_outfile=conftest.$ac_objext
13561
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13562
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13563
_lt_compiler_boilerplate=`cat conftest.err`
13566
ac_outfile=conftest.$ac_objext
13567
printf "$lt_simple_link_test_code" >conftest.$ac_ext
13568
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13569
_lt_linker_boilerplate=`cat conftest.err`
13573
# Allow CC to be a program name with arguments.
13578
for cc_temp in $compiler""; do
13580
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13581
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13586
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13589
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13590
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13591
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
13592
echo "${ECHO_T}$can_build_shared" >&6; }
13594
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13595
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13596
test "$can_build_shared" = "no" && enable_shared=no
13598
# On AIX, shared libraries and static libraries use the same namespace, and
13599
# are all built from PIC.
13602
test "$enable_shared" = yes && enable_static=no
13603
if test -n "$RANLIB"; then
13604
archive_cmds="$archive_cmds~\$RANLIB \$lib"
13605
postinstall_cmds='$RANLIB $lib'
13609
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13610
test "$enable_shared" = yes && enable_static=no
13614
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
13615
echo "${ECHO_T}$enable_shared" >&6; }
13617
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13618
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13619
# Make sure either enable_shared or enable_static is yes.
13620
test "$enable_shared" = yes || enable_static=yes
13621
{ echo "$as_me:$LINENO: result: $enable_static" >&5
13622
echo "${ECHO_T}$enable_static" >&6; }
13627
lt_prog_compiler_wl_F77=
13628
lt_prog_compiler_pic_F77=
13629
lt_prog_compiler_static_F77=
13631
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13632
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13634
if test "$GCC" = yes; then
13635
lt_prog_compiler_wl_F77='-Wl,'
13636
lt_prog_compiler_static_F77='-static'
13640
# All AIX code is PIC.
13641
if test "$host_cpu" = ia64; then
13642
# AIX 5 now supports IA64 processor
13643
lt_prog_compiler_static_F77='-Bstatic'
13648
# FIXME: we need at least 68020 code to build shared libraries, but
13649
# adding the `-m68020' flag to GCC prevents building anything better,
13651
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13654
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13655
# PIC is the default for these OSes.
13658
mingw* | pw32* | os2*)
13659
# This hack is so that the source file can tell whether it is being
13660
# built for inclusion in a dll (and should export symbols for example).
13661
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13664
darwin* | rhapsody*)
13665
# PIC is the default on this platform
13666
# Common symbols not allowed in MH_DYLIB files
13667
lt_prog_compiler_pic_F77='-fno-common'
13671
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
13672
# Instead, we relocate shared libraries at runtime.
13676
# Just because we use GCC doesn't mean we suddenly get shared libraries
13677
# on systems that don't support them.
13678
lt_prog_compiler_can_build_shared_F77=no
13683
if test -d /usr/nec; then
13684
lt_prog_compiler_pic_F77=-Kconform_pic
13689
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13690
# not for PA HP-UX.
13696
lt_prog_compiler_pic_F77='-fPIC'
13702
lt_prog_compiler_pic_F77='-fPIC'
13706
# PORTME Check for flag to pass linker flags through the system compiler.
13709
lt_prog_compiler_wl_F77='-Wl,'
13710
if test "$host_cpu" = ia64; then
13711
# AIX 5 now supports IA64 processor
13712
lt_prog_compiler_static_F77='-Bstatic'
13714
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13718
# PIC is the default on this platform
13719
# Common symbols not allowed in MH_DYLIB files
13720
case $cc_basename in
13722
lt_prog_compiler_pic_F77='-qnocommon'
13723
lt_prog_compiler_wl_F77='-Wl,'
13728
mingw* | pw32* | os2*)
13729
# This hack is so that the source file can tell whether it is being
13730
# built for inclusion in a dll (and should export symbols for example).
13731
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13734
hpux9* | hpux10* | hpux11*)
13735
lt_prog_compiler_wl_F77='-Wl,'
13736
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13737
# not for PA HP-UX.
13743
lt_prog_compiler_pic_F77='+Z'
13746
# Is there a better lt_prog_compiler_static that works with the bundled CC?
13747
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13750
irix5* | irix6* | nonstopux*)
13751
lt_prog_compiler_wl_F77='-Wl,'
13752
# PIC (with -KPIC) is the default.
13753
lt_prog_compiler_static_F77='-non_shared'
13757
lt_prog_compiler_pic_F77='-KPIC'
13758
lt_prog_compiler_static_F77='-Bstatic'
13761
linux* | k*bsd*-gnu)
13762
case $cc_basename in
13764
lt_prog_compiler_wl_F77='-Wl,'
13765
lt_prog_compiler_pic_F77='-KPIC'
13766
lt_prog_compiler_static_F77='-static'
13768
pgcc* | pgf77* | pgf90* | pgf95*)
13769
# Portland Group compilers (*not* the Pentium gcc compiler,
13770
# which looks to be a dead project)
13771
lt_prog_compiler_wl_F77='-Wl,'
13772
lt_prog_compiler_pic_F77='-fpic'
13773
lt_prog_compiler_static_F77='-Bstatic'
13776
lt_prog_compiler_wl_F77='-Wl,'
13777
# All Alpha code is PIC.
13778
lt_prog_compiler_static_F77='-non_shared'
13783
osf3* | osf4* | osf5*)
13784
lt_prog_compiler_wl_F77='-Wl,'
13785
# All OSF/1 code is PIC.
13786
lt_prog_compiler_static_F77='-non_shared'
13790
lt_prog_compiler_pic_F77='-KPIC'
13791
lt_prog_compiler_static_F77='-Bstatic'
13792
case $cc_basename in
13793
f77* | f90* | f95*)
13794
lt_prog_compiler_wl_F77='-Qoption ld ';;
13796
lt_prog_compiler_wl_F77='-Wl,';;
13801
lt_prog_compiler_wl_F77='-Qoption ld '
13802
lt_prog_compiler_pic_F77='-PIC'
13803
lt_prog_compiler_static_F77='-Bstatic'
13806
sysv4 | sysv4.2uw2* | sysv4.3*)
13807
lt_prog_compiler_wl_F77='-Wl,'
13808
lt_prog_compiler_pic_F77='-KPIC'
13809
lt_prog_compiler_static_F77='-Bstatic'
13813
if test -d /usr/nec ;then
13814
lt_prog_compiler_pic_F77='-Kconform_pic'
13815
lt_prog_compiler_static_F77='-Bstatic'
13819
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13820
lt_prog_compiler_wl_F77='-Wl,'
13821
lt_prog_compiler_pic_F77='-KPIC'
13822
lt_prog_compiler_static_F77='-Bstatic'
13826
lt_prog_compiler_wl_F77='-Wl,'
13827
lt_prog_compiler_can_build_shared_F77=no
13831
lt_prog_compiler_pic_F77='-pic'
13832
lt_prog_compiler_static_F77='-Bstatic'
13836
lt_prog_compiler_can_build_shared_F77=no
13841
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13842
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13845
# Check to make sure the PIC flag actually works.
13847
if test -n "$lt_prog_compiler_pic_F77"; then
13849
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13850
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13851
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13852
echo $ECHO_N "(cached) $ECHO_C" >&6
13854
lt_prog_compiler_pic_works_F77=no
13855
ac_outfile=conftest.$ac_objext
13856
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13857
lt_compiler_flag="$lt_prog_compiler_pic_F77"
13858
# Insert the option either (1) after the last *FLAGS variable, or
13859
# (2) before a word containing "conftest.", or (3) at the end.
13860
# Note that $ac_compile itself does not contain backslashes and begins
13861
# with a dollar sign (not a hyphen), so the echo should work correctly.
13862
# The option is referenced via a variable to avoid confusing sed.
13863
lt_compile=`echo "$ac_compile" | $SED \
13864
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13865
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13866
-e 's:$: $lt_compiler_flag:'`
13867
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
13868
(eval "$lt_compile" 2>conftest.err)
13870
cat conftest.err >&5
13871
echo "$as_me:__oline__: \$? = $ac_status" >&5
13872
if (exit $ac_status) && test -s "$ac_outfile"; then
13873
# The compiler can only warn and ignore the option if not recognized
13874
# So say no if there are warnings other than the usual output.
13875
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13876
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13877
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13878
lt_prog_compiler_pic_works_F77=yes
13884
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13885
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
13887
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13888
case $lt_prog_compiler_pic_F77 in
13890
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13893
lt_prog_compiler_pic_F77=
13894
lt_prog_compiler_can_build_shared_F77=no
13899
# For platforms which do not support PIC, -DPIC is meaningless:
13901
lt_prog_compiler_pic_F77=
13904
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13909
# Check to make sure the static flag actually works.
13911
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13912
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13913
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13914
if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13915
echo $ECHO_N "(cached) $ECHO_C" >&6
13917
lt_prog_compiler_static_works_F77=no
13918
save_LDFLAGS="$LDFLAGS"
13919
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13920
printf "$lt_simple_link_test_code" > conftest.$ac_ext
13921
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13922
# The linker can only warn and ignore the option if not recognized
13923
# So say no if there are warnings
13924
if test -s conftest.err; then
13925
# Append any errors to the config.log.
13926
cat conftest.err 1>&5
13927
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13928
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13929
if diff conftest.exp conftest.er2 >/dev/null; then
13930
lt_prog_compiler_static_works_F77=yes
13933
lt_prog_compiler_static_works_F77=yes
13937
LDFLAGS="$save_LDFLAGS"
13940
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13941
echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
13943
if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13946
lt_prog_compiler_static_F77=
13950
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13951
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13952
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13953
echo $ECHO_N "(cached) $ECHO_C" >&6
13955
lt_cv_prog_compiler_c_o_F77=no
13956
$rm -r conftest 2>/dev/null
13960
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13962
lt_compiler_flag="-o out/conftest2.$ac_objext"
13963
# Insert the option either (1) after the last *FLAGS variable, or
13964
# (2) before a word containing "conftest.", or (3) at the end.
13965
# Note that $ac_compile itself does not contain backslashes and begins
13966
# with a dollar sign (not a hyphen), so the echo should work correctly.
13967
lt_compile=`echo "$ac_compile" | $SED \
13968
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13969
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13970
-e 's:$: $lt_compiler_flag:'`
13971
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
13972
(eval "$lt_compile" 2>out/conftest.err)
13974
cat out/conftest.err >&5
13975
echo "$as_me:__oline__: \$? = $ac_status" >&5
13976
if (exit $ac_status) && test -s out/conftest2.$ac_objext
13978
# The compiler can only warn and ignore the option if not recognized
13979
# So say no if there are warnings
13980
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13981
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13982
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13983
lt_cv_prog_compiler_c_o_F77=yes
13988
# SGI C++ compiler will create directory out/ii_files/ for
13989
# template instantiation
13990
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13991
$rm out/* && rmdir out
13997
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13998
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14001
hard_links="nottested"
14002
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14003
# do not overwrite the value of need_locks provided by the user
14004
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14005
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14008
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14010
ln conftest.a conftest.b 2>&5 || hard_links=no
14011
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14012
{ echo "$as_me:$LINENO: result: $hard_links" >&5
14013
echo "${ECHO_T}$hard_links" >&6; }
14014
if test "$hard_links" = no; then
14015
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14016
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14023
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14024
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14027
allow_undefined_flag_F77=
14028
enable_shared_with_static_runtimes_F77=no
14030
archive_expsym_cmds_F77=
14031
old_archive_From_new_cmds_F77=
14032
old_archive_from_expsyms_cmds_F77=
14033
export_dynamic_flag_spec_F77=
14034
whole_archive_flag_spec_F77=
14035
thread_safe_flag_spec_F77=
14036
hardcode_libdir_flag_spec_F77=
14037
hardcode_libdir_flag_spec_ld_F77=
14038
hardcode_libdir_separator_F77=
14039
hardcode_direct_F77=no
14040
hardcode_minus_L_F77=no
14041
hardcode_shlibpath_var_F77=unsupported
14042
link_all_deplibs_F77=unknown
14043
hardcode_automatic_F77=no
14045
module_expsym_cmds_F77=
14046
always_export_symbols_F77=no
14047
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14048
# include_expsyms should be a list of space-separated symbols to be *always*
14049
# included in the symbol list
14050
include_expsyms_F77=
14051
# exclude_expsyms can be an extended regexp of symbols to exclude
14052
# it will be wrapped by ` (' and `)$', so one must not match beginning or
14053
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14054
# as well as any symbol that contains `d'.
14055
exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14056
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14057
# platforms (ab)use it in PIC code, but their linkers get confused if
14058
# the symbol is explicitly referenced. Since portable code cannot
14059
# rely on this symbol name, it's probably fine to never include it in
14060
# preloaded symbol tables.
14061
extract_expsyms_cmds=
14062
# Just being paranoid about ensuring that cc_basename is set.
14063
for cc_temp in $compiler""; do
14065
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14066
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14071
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14074
cygwin* | mingw* | pw32*)
14075
# FIXME: the MSVC++ port hasn't been tested in a loooong time
14076
# When not using gcc, we currently assume that we are using
14077
# Microsoft Visual C++.
14078
if test "$GCC" != yes; then
14083
# we just hope/assume this is gcc and not c89 (= MSVC++)
14092
if test "$with_gnu_ld" = yes; then
14093
# If archive_cmds runs LD, not CC, wlarc should be empty
14096
# Set some defaults for GNU ld with shared library support. These
14097
# are reset later if shared libraries are not supported. Putting them
14098
# here allows them to be overridden if necessary.
14099
runpath_var=LD_RUN_PATH
14100
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14101
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14102
# ancient GNU ld didn't support --whole-archive et. al.
14103
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14104
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14106
whole_archive_flag_spec_F77=
14108
supports_anon_versioning=no
14109
case `$LD -v 2>/dev/null` in
14110
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14111
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14112
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14113
*\ 2.11.*) ;; # other 2.11 versions
14114
*) supports_anon_versioning=yes ;;
14117
# See if GNU ld supports shared libraries.
14119
aix3* | aix4* | aix5*)
14120
# On AIX/PPC, the GNU linker is very broken
14121
if test "$host_cpu" != ia64; then
14125
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14126
*** to be unable to reliably create shared libraries on AIX.
14127
*** Therefore, libtool is disabling shared libraries support. If you
14128
*** really care for shared libraries, you may want to modify your PATH
14129
*** so that a non-GNU linker is found, and then restart.
14136
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)'
14137
hardcode_libdir_flag_spec_F77='-L$libdir'
14138
hardcode_minus_L_F77=yes
14140
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14141
# that the semantics of dynamic libraries on AmigaOS, at least up
14142
# to version 4, is to share data among multiple programs linked
14143
# with the same dynamic library. Since this doesn't match the
14144
# behavior of shared libraries on other platforms, we can't use
14150
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14151
allow_undefined_flag_F77=unsupported
14152
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14153
# support --undefined. This deserves some investigation. FIXME
14154
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14160
cygwin* | mingw* | pw32*)
14161
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14162
# as there is no search path for DLLs.
14163
hardcode_libdir_flag_spec_F77='-L$libdir'
14164
allow_undefined_flag_F77=unsupported
14165
always_export_symbols_F77=no
14166
enable_shared_with_static_runtimes_F77=yes
14167
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14169
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14170
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14171
# If the export-symbols file already is a .def file (1st line
14172
# is EXPORTS), use it as is; otherwise, prepend...
14173
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14174
cp $export_symbols $output_objdir/$soname.def;
14176
echo EXPORTS > $output_objdir/$soname.def;
14177
cat $export_symbols >> $output_objdir/$soname.def;
14179
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14186
hardcode_direct_F77=no
14187
hardcode_shlibpath_var_F77=no
14188
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14189
export_dynamic_flag_spec_F77='${wl}-E'
14190
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14191
# Instead, shared libraries are loaded at an image base (0x10000000 by
14192
# default) and relocated if they conflict, which is a slow very memory
14193
# consuming and fragmenting process. To avoid this, we pick a random,
14194
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14195
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
14196
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'
14197
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'
14200
linux* | k*bsd*-gnu)
14201
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14203
case $cc_basename,$host_cpu in
14204
pgcc*) # Portland Group C compiler
14205
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'
14206
tmp_addflag=' $pic_flag'
14208
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14209
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'
14210
tmp_addflag=' $pic_flag -Mnomain' ;;
14211
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14212
tmp_addflag=' -i_dynamic' ;;
14213
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14214
tmp_addflag=' -i_dynamic -nofor_main' ;;
14215
ifc* | ifort*) # Intel Fortran compiler
14216
tmp_addflag=' -nofor_main' ;;
14218
archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14220
if test $supports_anon_versioning = yes; then
14221
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14222
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14223
$echo "local: *; };" >> $output_objdir/$libname.ver~
14224
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14226
link_all_deplibs_F77=no
14232
netbsd* | netbsdelf*-gnu)
14233
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14234
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14237
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14238
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14243
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14247
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14248
*** create shared libraries on Solaris systems. Therefore, libtool
14249
*** is disabling shared libraries support. We urge you to upgrade GNU
14250
*** binutils to release 2.9.1 or newer. Another option is to modify
14251
*** your PATH or compiler configuration so that the native linker is
14252
*** used, and then restart.
14255
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14256
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14257
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14263
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14264
case `$LD -v 2>&1` in
14265
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14269
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14270
*** reliably create shared libraries on SCO systems. Therefore, libtool
14271
*** is disabling shared libraries support. We urge you to upgrade GNU
14272
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14273
*** your PATH or compiler configuration so that the native linker is
14274
*** used, and then restart.
14279
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14280
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14281
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14282
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14291
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14293
hardcode_direct_F77=yes
14294
hardcode_shlibpath_var_F77=no
14298
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14299
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14300
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14307
if test "$ld_shlibs_F77" = no; then
14309
hardcode_libdir_flag_spec_F77=
14310
export_dynamic_flag_spec_F77=
14311
whole_archive_flag_spec_F77=
14314
# PORTME fill in a description of your system's linker (not GNU ld)
14317
allow_undefined_flag_F77=unsupported
14318
always_export_symbols_F77=yes
14319
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'
14320
# Note: this linker hardcodes the directories in LIBPATH if there
14321
# are no directories specified by -L.
14322
hardcode_minus_L_F77=yes
14323
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14324
# Neither direct hardcoding nor static linking is supported with a
14326
hardcode_direct_F77=unsupported
14331
if test "$host_cpu" = ia64; then
14332
# On IA64, the linker does run time linking by default, so we don't
14333
# have to do anything special.
14334
aix_use_runtimelinking=no
14335
exp_sym_flag='-Bexport'
14338
# If we're using GNU nm, then we don't want the "-C" option.
14339
# -C means demangle to AIX nm, but means don't demangle with GNU nm
14340
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14341
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'
14343
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'
14345
aix_use_runtimelinking=no
14347
# Test if we are trying to use run time linking or normal
14348
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14349
# need to do runtime linking.
14350
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14351
for ld_flag in $LDFLAGS; do
14352
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14353
aix_use_runtimelinking=yes
14360
exp_sym_flag='-bexport'
14361
no_entry_flag='-bnoentry'
14364
# When large executables or shared objects are built, AIX ld can
14365
# have problems creating the table of contents. If linking a library
14366
# or program results in "error TOC overflow" add -mminimal-toc to
14367
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14368
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14370
archive_cmds_F77=''
14371
hardcode_direct_F77=yes
14372
hardcode_libdir_separator_F77=':'
14373
link_all_deplibs_F77=yes
14375
if test "$GCC" = yes; then
14376
case $host_os in aix4.[012]|aix4.[012].*)
14377
# We only want to do this on AIX 4.2 and lower, the check
14378
# below for broken collect2 doesn't work under 4.3+
14379
collect2name=`${CC} -print-prog-name=collect2`
14380
if test -f "$collect2name" && \
14381
strings "$collect2name" | grep resolve_lib_name >/dev/null
14383
# We have reworked collect2
14384
hardcode_direct_F77=yes
14386
# We have old collect2
14387
hardcode_direct_F77=unsupported
14388
# It fails to find uninstalled libraries when the uninstalled
14389
# path is not listed in the libpath. Setting hardcode_minus_L
14390
# to unsupported forces relinking
14391
hardcode_minus_L_F77=yes
14392
hardcode_libdir_flag_spec_F77='-L$libdir'
14393
hardcode_libdir_separator_F77=
14397
shared_flag='-shared'
14398
if test "$aix_use_runtimelinking" = yes; then
14399
shared_flag="$shared_flag "'${wl}-G'
14403
if test "$host_cpu" = ia64; then
14404
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14405
# chokes on -Wl,-G. The following line is correct:
14408
if test "$aix_use_runtimelinking" = yes; then
14409
shared_flag='${wl}-G'
14411
shared_flag='${wl}-bM:SRE'
14416
# It seems that -bexpall does not export symbols beginning with
14417
# underscore (_), so it is better to generate a list of symbols to export.
14418
always_export_symbols_F77=yes
14419
if test "$aix_use_runtimelinking" = yes; then
14420
# Warning - without using the other runtime loading flags (-brtl),
14421
# -berok will link without error, but may produce a broken library.
14422
allow_undefined_flag_F77='-berok'
14423
# Determine the default libpath from the value encoded in an empty executable.
14424
cat >conftest.$ac_ext <<_ACEOF
14429
rm -f conftest.$ac_objext conftest$ac_exeext
14430
if { (ac_try="$ac_link"
14431
case "(($ac_try" in
14432
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14433
*) ac_try_echo=$ac_try;;
14435
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14436
(eval "$ac_link") 2>conftest.er1
14438
grep -v '^ *+' conftest.er1 >conftest.err
14440
cat conftest.err >&5
14441
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14442
(exit $ac_status); } && {
14443
test -z "$ac_f77_werror_flag" ||
14444
test ! -s conftest.err
14445
} && test -s conftest$ac_exeext &&
14446
$as_test_x conftest$ac_exeext; then
14448
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14450
# Check for a 64-bit object if we didn't find anything.
14451
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; }
14454
echo "$as_me: failed program was:" >&5
14455
sed 's/^/| /' conftest.$ac_ext >&5
14460
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14461
conftest$ac_exeext conftest.$ac_ext
14462
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14464
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14465
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"
14467
if test "$host_cpu" = ia64; then
14468
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14469
allow_undefined_flag_F77="-z nodefs"
14470
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"
14472
# Determine the default libpath from the value encoded in an empty executable.
14473
cat >conftest.$ac_ext <<_ACEOF
14478
rm -f conftest.$ac_objext conftest$ac_exeext
14479
if { (ac_try="$ac_link"
14480
case "(($ac_try" in
14481
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14482
*) ac_try_echo=$ac_try;;
14484
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14485
(eval "$ac_link") 2>conftest.er1
14487
grep -v '^ *+' conftest.er1 >conftest.err
14489
cat conftest.err >&5
14490
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14491
(exit $ac_status); } && {
14492
test -z "$ac_f77_werror_flag" ||
14493
test ! -s conftest.err
14494
} && test -s conftest$ac_exeext &&
14495
$as_test_x conftest$ac_exeext; then
14497
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14499
# Check for a 64-bit object if we didn't find anything.
14500
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; }
14503
echo "$as_me: failed program was:" >&5
14504
sed 's/^/| /' conftest.$ac_ext >&5
14509
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14510
conftest$ac_exeext conftest.$ac_ext
14511
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14513
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14514
# Warning - without using the other run time loading flags,
14515
# -berok will link without error, but may produce a broken library.
14516
no_undefined_flag_F77=' ${wl}-bernotok'
14517
allow_undefined_flag_F77=' ${wl}-berok'
14518
# Exported symbols can be pulled into shared objects from archives
14519
whole_archive_flag_spec_F77='$convenience'
14520
archive_cmds_need_lc_F77=yes
14521
# This is similar to how AIX traditionally builds its shared libraries.
14522
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'
14528
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)'
14529
hardcode_libdir_flag_spec_F77='-L$libdir'
14530
hardcode_minus_L_F77=yes
14531
# see comment about different semantics on the GNU ld section
14536
export_dynamic_flag_spec_F77=-rdynamic
14539
cygwin* | mingw* | pw32*)
14540
# When not using gcc, we currently assume that we are using
14541
# Microsoft Visual C++.
14542
# hardcode_libdir_flag_spec is actually meaningless, as there is
14543
# no search path for DLLs.
14544
hardcode_libdir_flag_spec_F77=' '
14545
allow_undefined_flag_F77=unsupported
14546
# Tell ltmain to make .lib files, not .a files.
14548
# Tell ltmain to make .dll files, not .so files.
14550
# FIXME: Setting linknames here is a bad hack.
14551
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14552
# The linker will automatically build a .lib file if we build a DLL.
14553
old_archive_From_new_cmds_F77='true'
14554
# FIXME: Should let the user specify the lib program.
14555
old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14556
fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14557
enable_shared_with_static_runtimes_F77=yes
14560
darwin* | rhapsody*)
14562
rhapsody* | darwin1.[012])
14563
allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14566
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14567
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14569
case ${MACOSX_DEPLOYMENT_TARGET} in
14571
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14574
allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14580
archive_cmds_need_lc_F77=no
14581
hardcode_direct_F77=no
14582
hardcode_automatic_F77=yes
14583
hardcode_shlibpath_var_F77=unsupported
14584
whole_archive_flag_spec_F77=''
14585
link_all_deplibs_F77=yes
14586
if test "$GCC" = yes ; then
14587
output_verbose_link_cmd='echo'
14588
archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14589
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14590
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14591
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}'
14592
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}'
14594
case $cc_basename in
14596
output_verbose_link_cmd='echo'
14597
archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14598
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14599
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14600
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}'
14601
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}'
14611
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14612
hardcode_libdir_flag_spec_F77='-L$libdir'
14613
hardcode_shlibpath_var_F77=no
14620
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14621
# support. Future versions do this automatically, but an explicit c++rt0.o
14622
# does not break anything, and helps significantly (at the cost of a little
14625
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14626
hardcode_libdir_flag_spec_F77='-R$libdir'
14627
hardcode_direct_F77=yes
14628
hardcode_shlibpath_var_F77=no
14631
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
14633
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14634
hardcode_direct_F77=yes
14635
hardcode_minus_L_F77=yes
14636
hardcode_shlibpath_var_F77=no
14639
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14640
freebsd* | dragonfly*)
14641
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14642
hardcode_libdir_flag_spec_F77='-R$libdir'
14643
hardcode_direct_F77=yes
14644
hardcode_shlibpath_var_F77=no
14648
if test "$GCC" = yes; then
14649
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'
14651
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'
14653
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14654
hardcode_libdir_separator_F77=:
14655
hardcode_direct_F77=yes
14657
# hardcode_minus_L: Not really in the search PATH,
14658
# but as the default location of the library.
14659
hardcode_minus_L_F77=yes
14660
export_dynamic_flag_spec_F77='${wl}-E'
14664
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14665
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14667
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14669
if test "$with_gnu_ld" = no; then
14670
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14671
hardcode_libdir_separator_F77=:
14673
hardcode_direct_F77=yes
14674
export_dynamic_flag_spec_F77='${wl}-E'
14676
# hardcode_minus_L: Not really in the search PATH,
14677
# but as the default location of the library.
14678
hardcode_minus_L_F77=yes
14683
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14686
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14689
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14692
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14698
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14701
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14704
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14708
if test "$with_gnu_ld" = no; then
14709
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14710
hardcode_libdir_separator_F77=:
14714
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14715
hardcode_direct_F77=no
14716
hardcode_shlibpath_var_F77=no
14719
hardcode_direct_F77=yes
14720
export_dynamic_flag_spec_F77='${wl}-E'
14722
# hardcode_minus_L: Not really in the search PATH,
14723
# but as the default location of the library.
14724
hardcode_minus_L_F77=yes
14730
irix5* | irix6* | nonstopux*)
14731
if test "$GCC" = yes; then
14732
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'
14734
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'
14735
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14737
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14738
hardcode_libdir_separator_F77=:
14739
link_all_deplibs_F77=yes
14742
netbsd* | netbsdelf*-gnu)
14743
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14744
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14746
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14748
hardcode_libdir_flag_spec_F77='-R$libdir'
14749
hardcode_direct_F77=yes
14750
hardcode_shlibpath_var_F77=no
14754
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14755
hardcode_direct_F77=yes
14756
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14757
hardcode_libdir_separator_F77=:
14758
hardcode_shlibpath_var_F77=no
14762
hardcode_direct_F77=yes
14763
hardcode_shlibpath_var_F77=no
14764
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14765
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14766
archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14767
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14768
export_dynamic_flag_spec_F77='${wl}-E'
14771
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14772
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14773
hardcode_libdir_flag_spec_F77='-R$libdir'
14776
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14777
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14784
hardcode_libdir_flag_spec_F77='-L$libdir'
14785
hardcode_minus_L_F77=yes
14786
allow_undefined_flag_F77=unsupported
14787
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'
14788
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14792
if test "$GCC" = yes; then
14793
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14794
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'
14796
allow_undefined_flag_F77=' -expect_unresolved \*'
14797
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'
14799
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14800
hardcode_libdir_separator_F77=:
14803
osf4* | osf5*) # as osf3* with the addition of -msym flag
14804
if test "$GCC" = yes; then
14805
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14806
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'
14807
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14809
allow_undefined_flag_F77=' -expect_unresolved \*'
14810
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'
14811
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~
14812
$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'
14814
# Both c and cxx compiler support -rpath directly
14815
hardcode_libdir_flag_spec_F77='-rpath $libdir'
14817
hardcode_libdir_separator_F77=:
14821
no_undefined_flag_F77=' -z text'
14822
if test "$GCC" = yes; then
14824
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14825
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14826
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14829
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14830
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14831
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14833
hardcode_libdir_flag_spec_F77='-R$libdir'
14834
hardcode_shlibpath_var_F77=no
14836
solaris2.[0-5] | solaris2.[0-5].*) ;;
14838
# The compiler driver will combine linker options so we
14839
# cannot just pass the convience library names through
14840
# without $wl, iff we do not link with $LD.
14841
# Luckily, gcc supports the same syntax we need for Sun Studio.
14842
# Supported since Solaris 2.6 (maybe 2.5.1?)
14845
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14847
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' ;;
14850
link_all_deplibs_F77=yes
14854
if test "x$host_vendor" = xsequent; then
14855
# Use $CC to link under sequent, because it throws in some extra .o
14856
# files that make .init and .fini sections work.
14857
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14859
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14861
hardcode_libdir_flag_spec_F77='-L$libdir'
14862
hardcode_direct_F77=yes
14863
hardcode_minus_L_F77=yes
14864
hardcode_shlibpath_var_F77=no
14868
case $host_vendor in
14870
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14871
hardcode_direct_F77=yes # is this really true???
14874
## LD is ld it makes a PLAMLIB
14875
## CC just makes a GrossModule.
14876
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14877
reload_cmds_F77='$CC -r -o $output$reload_objs'
14878
hardcode_direct_F77=no
14881
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14882
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14885
runpath_var='LD_RUN_PATH'
14886
hardcode_shlibpath_var_F77=no
14890
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14891
hardcode_shlibpath_var_F77=no
14892
export_dynamic_flag_spec_F77='-Bexport'
14896
if test -d /usr/nec; then
14897
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14898
hardcode_shlibpath_var_F77=no
14899
runpath_var=LD_RUN_PATH
14900
hardcode_runpath_var=yes
14905
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14906
no_undefined_flag_F77='${wl}-z,text'
14907
archive_cmds_need_lc_F77=no
14908
hardcode_shlibpath_var_F77=no
14909
runpath_var='LD_RUN_PATH'
14911
if test "$GCC" = yes; then
14912
archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14913
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14915
archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14916
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14920
sysv5* | sco3.2v5* | sco5v6*)
14921
# Note: We can NOT use -z defs as we might desire, because we do not
14922
# link with -lc, and that would cause any symbols used from libc to
14923
# always be unresolved, which means just about no library would
14924
# ever link correctly. If we're not using GNU ld we use -z text
14925
# though, which does catch some bad symbols but isn't as heavy-handed
14927
no_undefined_flag_F77='${wl}-z,text'
14928
allow_undefined_flag_F77='${wl}-z,nodefs'
14929
archive_cmds_need_lc_F77=no
14930
hardcode_shlibpath_var_F77=no
14931
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14932
hardcode_libdir_separator_F77=':'
14933
link_all_deplibs_F77=yes
14934
export_dynamic_flag_spec_F77='${wl}-Bexport'
14935
runpath_var='LD_RUN_PATH'
14937
if test "$GCC" = yes; then
14938
archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14939
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14941
archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14942
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14947
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14948
hardcode_libdir_flag_spec_F77='-L$libdir'
14949
hardcode_shlibpath_var_F77=no
14958
{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14959
echo "${ECHO_T}$ld_shlibs_F77" >&6; }
14960
test "$ld_shlibs_F77" = no && can_build_shared=no
14963
# Do we need to explicitly link libc?
14965
case "x$archive_cmds_need_lc_F77" in
14967
# Assume -lc should be added
14968
archive_cmds_need_lc_F77=yes
14970
if test "$enable_shared" = yes && test "$GCC" = yes; then
14971
case $archive_cmds_F77 in
14973
# FIXME: we may have to deal with multi-command sequences.
14976
# Test whether the compiler implicitly links with -lc since on some
14977
# systems, -lgcc has to come before -lc. If gcc already passes -lc
14978
# to ld, don't add -lc before -lgcc.
14979
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14980
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14982
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14984
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14985
(eval $ac_compile) 2>&5
14987
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14988
(exit $ac_status); } 2>conftest.err; then
14991
libobjs=conftest.$ac_objext
14993
wl=$lt_prog_compiler_wl_F77
14994
pic_flag=$lt_prog_compiler_pic_F77
15000
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15001
allow_undefined_flag_F77=
15002
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15003
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15005
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15006
(exit $ac_status); }
15008
archive_cmds_need_lc_F77=no
15010
archive_cmds_need_lc_F77=yes
15012
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15014
cat conftest.err 1>&5
15017
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15018
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15025
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15026
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15027
library_names_spec=
15028
libname_spec='lib$name'
15032
postuninstall_cmds=
15036
shlibpath_overrides_runpath=unknown
15038
dynamic_linker="$host_os ld.so"
15039
sys_lib_dlsearch_path_spec="/lib /usr/lib"
15040
if test "$GCC" = yes; then
15041
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15042
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15043
# if the path contains ";" then we assume it to be the separator
15044
# otherwise default to the standard path separator (i.e. ":") - it is
15045
# assumed that no part of a normal pathname contains ";" but that should
15046
# okay in the real world where ";" in dirpaths is itself problematic.
15047
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15049
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15052
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15054
need_lib_prefix=unknown
15055
hardcode_into_libs=no
15057
# when you set need_version to no, make sure it does not cause -set_version
15058
# flags to be left without arguments
15059
need_version=unknown
15064
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15065
shlibpath_var=LIBPATH
15067
# AIX 3 has no versioning support, so we append a major version to the name.
15068
soname_spec='${libname}${release}${shared_ext}$major'
15075
hardcode_into_libs=yes
15076
if test "$host_cpu" = ia64; then
15077
# AIX 5 supports IA64
15078
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15079
shlibpath_var=LD_LIBRARY_PATH
15081
# With GCC up to 2.95.x, collect2 would create an import file
15082
# for dependence libraries. The import file would start with
15083
# the line `#! .'. This would cause the generated library to
15084
# depend on `.', always an invalid library. This was fixed in
15085
# development snapshots of GCC prior to 3.0.
15087
aix4 | aix4.[01] | aix4.[01].*)
15088
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15090
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15093
can_build_shared=no
15097
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15098
# soname into executable. Probably we can add versioning support to
15099
# collect2, so additional links can be useful in future.
15100
if test "$aix_use_runtimelinking" = yes; then
15101
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
15102
# instead of lib<name>.a to let people know that these are not
15103
# typical AIX shared libraries.
15104
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15106
# We preserve .a as extension for shared libraries through AIX4.2
15107
# and later when we are not doing run time linking.
15108
library_names_spec='${libname}${release}.a $libname.a'
15109
soname_spec='${libname}${release}${shared_ext}$major'
15111
shlibpath_var=LIBPATH
15116
library_names_spec='$libname.ixlibrary $libname.a'
15117
# Create ${libname}_ixlibrary.a entries in /sys/libs.
15118
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'
15122
library_names_spec='${libname}${shared_ext}'
15123
dynamic_linker="$host_os ld.so"
15124
shlibpath_var=LIBRARY_PATH
15130
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15131
soname_spec='${libname}${release}${shared_ext}$major'
15132
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15133
shlibpath_var=LD_LIBRARY_PATH
15134
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15135
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15136
# the default ld.so.conf also contains /usr/contrib/lib and
15137
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15138
# libtool to hard-code these into programs
15141
cygwin* | mingw* | pw32*)
15142
version_type=windows
15147
case $GCC,$host_os in
15148
yes,cygwin* | yes,mingw* | yes,pw32*)
15149
library_names_spec='$libname.dll.a'
15150
# DLL is installed to $(libdir)/../bin by postinstall_cmds
15151
postinstall_cmds='base_file=`basename \${file}`~
15152
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15153
dldir=$destdir/`dirname \$dlpath`~
15154
test -d \$dldir || mkdir -p \$dldir~
15155
$install_prog $dir/$dlname \$dldir/$dlname~
15156
chmod a+x \$dldir/$dlname'
15157
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15158
dlpath=$dir/\$dldll~
15160
shlibpath_overrides_runpath=yes
15164
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
15165
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15166
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15169
# MinGW DLLs use traditional 'lib' prefix
15170
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15171
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15172
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15173
# It is most probably a Windows format PATH printed by
15174
# mingw gcc, but we are running on Cygwin. Gcc prints its search
15175
# path with ; separators, and with drive letters. We can handle the
15176
# drive letters (cygwin fileutils understands them), so leave them,
15177
# especially as we might pass files found there to a mingw objdump,
15178
# which wouldn't understand a cygwinified path. Ahh.
15179
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15181
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15185
# pw32 DLLs use 'pw' prefix rather than 'lib'
15186
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15192
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15195
dynamic_linker='Win32 ld.exe'
15196
# FIXME: first we should search . and the directory the executable is in
15200
darwin* | rhapsody*)
15201
dynamic_linker="$host_os dyld"
15202
version_type=darwin
15205
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15206
soname_spec='${libname}${release}${major}$shared_ext'
15207
shlibpath_overrides_runpath=yes
15208
shlibpath_var=DYLD_LIBRARY_PATH
15209
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15210
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15211
if test "$GCC" = yes; then
15212
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"`
15214
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15216
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15223
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15224
soname_spec='${libname}${release}${shared_ext}$major'
15225
shlibpath_var=LD_LIBRARY_PATH
15232
freebsd* | dragonfly*)
15233
# DragonFly does not have aout. When/if they implement a new
15234
# versioning mechanism, adjust this.
15235
if test -x /usr/bin/objformat; then
15236
objformat=`/usr/bin/objformat`
15239
freebsd[123]*) objformat=aout ;;
15240
*) objformat=elf ;;
15243
version_type=freebsd-$objformat
15244
case $version_type in
15246
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15251
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15255
shlibpath_var=LD_LIBRARY_PATH
15258
shlibpath_overrides_runpath=yes
15260
freebsd3.[01]* | freebsdelf3.[01]*)
15261
shlibpath_overrides_runpath=yes
15262
hardcode_into_libs=yes
15264
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15265
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15266
shlibpath_overrides_runpath=no
15267
hardcode_into_libs=yes
15269
freebsd*) # from 4.6 on
15270
shlibpath_overrides_runpath=yes
15271
hardcode_into_libs=yes
15280
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15281
soname_spec='${libname}${release}${shared_ext}$major'
15282
shlibpath_var=LD_LIBRARY_PATH
15283
hardcode_into_libs=yes
15286
hpux9* | hpux10* | hpux11*)
15287
# Give a soname corresponding to the major version so that dld.sl refuses to
15288
# link against other versions.
15295
hardcode_into_libs=yes
15296
dynamic_linker="$host_os dld.so"
15297
shlibpath_var=LD_LIBRARY_PATH
15298
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15299
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15300
soname_spec='${libname}${release}${shared_ext}$major'
15301
if test "X$HPUX_IA64_MODE" = X32; then
15302
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15304
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15306
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15310
hardcode_into_libs=yes
15311
dynamic_linker="$host_os dld.sl"
15312
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15313
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15314
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15315
soname_spec='${libname}${release}${shared_ext}$major'
15316
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15317
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15321
dynamic_linker="$host_os dld.sl"
15322
shlibpath_var=SHLIB_PATH
15323
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15324
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15325
soname_spec='${libname}${release}${shared_ext}$major'
15328
# HP-UX runs *really* slowly unless shared libraries are mode 555.
15329
postinstall_cmds='chmod 555 $lib'
15336
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15337
soname_spec='${libname}${release}${shared_ext}$major'
15338
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15339
shlibpath_var=LD_LIBRARY_PATH
15340
shlibpath_overrides_runpath=no
15341
hardcode_into_libs=yes
15344
irix5* | irix6* | nonstopux*)
15346
nonstopux*) version_type=nonstopux ;;
15348
if test "$lt_cv_prog_gnu_ld" = yes; then
15356
soname_spec='${libname}${release}${shared_ext}$major'
15357
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15359
irix5* | nonstopux*)
15360
libsuff= shlibsuff=
15363
case $LD in # libtool.m4 will add one of these switches to LD
15364
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15365
libsuff= shlibsuff= libmagic=32-bit;;
15366
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15367
libsuff=32 shlibsuff=N32 libmagic=N32;;
15368
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15369
libsuff=64 shlibsuff=64 libmagic=64-bit;;
15370
*) libsuff= shlibsuff= libmagic=never-match;;
15374
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15375
shlibpath_overrides_runpath=no
15376
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15377
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15378
hardcode_into_libs=yes
15381
# No shared lib support for Linux oldld, aout, or coff.
15382
linux*oldld* | linux*aout* | linux*coff*)
15386
# This must be Linux ELF.
15387
linux* | k*bsd*-gnu)
15391
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15392
soname_spec='${libname}${release}${shared_ext}$major'
15393
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15394
shlibpath_var=LD_LIBRARY_PATH
15395
shlibpath_overrides_runpath=no
15396
# This implies no fast_install, which is unacceptable.
15397
# Some rework will be needed to allow for fast_install
15398
# before this can be enabled.
15399
hardcode_into_libs=yes
15401
# Append ld.so.conf contents to the search path
15402
if test -f /etc/ld.so.conf; then
15403
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' ' '`
15404
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15407
# We used to test for /lib/ld.so.1 and disable shared libraries on
15408
# powerpc, because MkLinux only supported shared libraries with the
15409
# GNU dynamic linker. Since this was broken with cross compilers,
15410
# most powerpc-linux boxes support dynamic linking these days and
15411
# people can always --disable-shared, the test was removed, and we
15412
# assume the GNU/Linux dynamic linker is in use.
15413
dynamic_linker='GNU/Linux ld.so'
15420
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15421
soname_spec='${libname}${release}${shared_ext}$major'
15422
shlibpath_var=LD_LIBRARY_PATH
15423
shlibpath_overrides_runpath=no
15424
hardcode_into_libs=yes
15425
dynamic_linker='NetBSD ld.elf_so'
15432
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15433
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15434
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15435
dynamic_linker='NetBSD (a.out) ld.so'
15437
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15438
soname_spec='${libname}${release}${shared_ext}$major'
15439
dynamic_linker='NetBSD ld.elf_so'
15441
shlibpath_var=LD_LIBRARY_PATH
15442
shlibpath_overrides_runpath=yes
15443
hardcode_into_libs=yes
15448
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15449
shlibpath_var=LD_LIBRARY_PATH
15450
shlibpath_overrides_runpath=yes
15457
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15458
soname_spec='${libname}${release}${shared_ext}$major'
15459
shlibpath_var=LD_LIBRARY_PATH
15460
shlibpath_overrides_runpath=yes
15465
sys_lib_dlsearch_path_spec="/usr/lib"
15467
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15469
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15470
*) need_version=no ;;
15472
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15473
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15474
shlibpath_var=LD_LIBRARY_PATH
15475
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15477
openbsd2.[89] | openbsd2.[89].*)
15478
shlibpath_overrides_runpath=no
15481
shlibpath_overrides_runpath=yes
15485
shlibpath_overrides_runpath=yes
15490
libname_spec='$name'
15493
library_names_spec='$libname${shared_ext} $libname.a'
15494
dynamic_linker='OS/2 ld.exe'
15495
shlibpath_var=LIBPATH
15498
osf3* | osf4* | osf5*)
15502
soname_spec='${libname}${release}${shared_ext}$major'
15503
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15504
shlibpath_var=LD_LIBRARY_PATH
15505
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15506
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15513
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15514
soname_spec='${libname}${release}${shared_ext}$major'
15515
shlibpath_var=LD_LIBRARY_PATH
15516
shlibpath_overrides_runpath=yes
15517
hardcode_into_libs=yes
15518
# ldd complains unless libraries are executable
15519
postinstall_cmds='chmod +x $lib'
15524
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15525
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15526
shlibpath_var=LD_LIBRARY_PATH
15527
shlibpath_overrides_runpath=yes
15528
if test "$with_gnu_ld" = yes; then
15536
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15537
soname_spec='${libname}${release}${shared_ext}$major'
15538
shlibpath_var=LD_LIBRARY_PATH
15539
case $host_vendor in
15541
shlibpath_overrides_runpath=no
15543
export_dynamic_flag_spec='${wl}-Blargedynsym'
15544
runpath_var=LD_RUN_PATH
15552
shlibpath_overrides_runpath=no
15553
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15559
if test -d /usr/nec ;then
15561
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15562
soname_spec='$libname${shared_ext}.$major'
15563
shlibpath_var=LD_LIBRARY_PATH
15567
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15568
version_type=freebsd-elf
15571
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15572
soname_spec='${libname}${release}${shared_ext}$major'
15573
shlibpath_var=LD_LIBRARY_PATH
15574
hardcode_into_libs=yes
15575
if test "$with_gnu_ld" = yes; then
15576
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15577
shlibpath_overrides_runpath=no
15579
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15580
shlibpath_overrides_runpath=yes
15583
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15587
sys_lib_dlsearch_path_spec='/usr/lib'
15592
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15593
soname_spec='${libname}${release}${shared_ext}$major'
15594
shlibpath_var=LD_LIBRARY_PATH
15601
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15602
echo "${ECHO_T}$dynamic_linker" >&6; }
15603
test "$dynamic_linker" = no && can_build_shared=no
15605
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15606
if test "$GCC" = yes; then
15607
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15610
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15611
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15612
hardcode_action_F77=
15613
if test -n "$hardcode_libdir_flag_spec_F77" || \
15614
test -n "$runpath_var_F77" || \
15615
test "X$hardcode_automatic_F77" = "Xyes" ; then
15617
# We can hardcode non-existant directories.
15618
if test "$hardcode_direct_F77" != no &&
15619
# If the only mechanism to avoid hardcoding is shlibpath_var, we
15620
# have to relink, otherwise we might link with an installed library
15621
# when we should be linking with a yet-to-be-installed one
15622
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15623
test "$hardcode_minus_L_F77" != no; then
15624
# Linking always hardcodes the temporary library directory.
15625
hardcode_action_F77=relink
15627
# We can link without hardcoding, and we can hardcode nonexisting dirs.
15628
hardcode_action_F77=immediate
15631
# We cannot hardcode anything, or else we can only hardcode existing
15633
hardcode_action_F77=unsupported
15635
{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15636
echo "${ECHO_T}$hardcode_action_F77" >&6; }
15638
if test "$hardcode_action_F77" = relink; then
15639
# Fast installation is not supported
15640
enable_fast_install=no
15641
elif test "$shlibpath_overrides_runpath" = yes ||
15642
test "$enable_shared" = no; then
15643
# Fast installation is not necessary
15644
enable_fast_install=needless
15648
# The else clause should only fire when bootstrapping the
15649
# libtool distribution, otherwise you forgot to ship ltmain.sh
15650
# with your package, and you will get complaints that there are
15651
# no rules to generate ltmain.sh.
15652
if test -f "$ltmain"; then
15653
# See if we are running on zsh, and set the options which allow our commands through
15654
# without removal of \ escapes.
15655
if test -n "${ZSH_VERSION+set}" ; then
15656
setopt NO_GLOB_SUBST
15658
# Now quote all the things that may contain metacharacters while being
15659
# careful not to overquote the AC_SUBSTed values. We take copies of the
15660
# variables and quote the copies for generation of the libtool script.
15661
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15663
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15664
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15665
deplibs_check_method reload_flag reload_cmds need_locks \
15666
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15667
lt_cv_sys_global_symbol_to_c_name_address \
15668
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15669
old_postinstall_cmds old_postuninstall_cmds \
15673
lt_prog_compiler_wl_F77 \
15674
lt_prog_compiler_pic_F77 \
15675
lt_prog_compiler_static_F77 \
15676
lt_prog_compiler_no_builtin_flag_F77 \
15677
export_dynamic_flag_spec_F77 \
15678
thread_safe_flag_spec_F77 \
15679
whole_archive_flag_spec_F77 \
15680
enable_shared_with_static_runtimes_F77 \
15681
old_archive_cmds_F77 \
15682
old_archive_from_new_cmds_F77 \
15683
predep_objects_F77 \
15684
postdep_objects_F77 \
15687
compiler_lib_search_path_F77 \
15689
archive_expsym_cmds_F77 \
15690
postinstall_cmds_F77 \
15691
postuninstall_cmds_F77 \
15692
old_archive_from_expsyms_cmds_F77 \
15693
allow_undefined_flag_F77 \
15694
no_undefined_flag_F77 \
15695
export_symbols_cmds_F77 \
15696
hardcode_libdir_flag_spec_F77 \
15697
hardcode_libdir_flag_spec_ld_F77 \
15698
hardcode_libdir_separator_F77 \
15699
hardcode_automatic_F77 \
15701
module_expsym_cmds_F77 \
15702
lt_cv_prog_compiler_c_o_F77 \
15703
exclude_expsyms_F77 \
15704
include_expsyms_F77; do
15707
old_archive_cmds_F77 | \
15708
old_archive_from_new_cmds_F77 | \
15709
archive_cmds_F77 | \
15710
archive_expsym_cmds_F77 | \
15711
module_cmds_F77 | \
15712
module_expsym_cmds_F77 | \
15713
old_archive_from_expsyms_cmds_F77 | \
15714
export_symbols_cmds_F77 | \
15715
extract_expsyms_cmds | reload_cmds | finish_cmds | \
15716
postinstall_cmds | postuninstall_cmds | \
15717
old_postinstall_cmds | old_postuninstall_cmds | \
15718
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15719
# Double-quote double-evaled strings.
15720
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15723
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15729
*'\$0 --fallback-echo"')
15730
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15736
cat <<__EOF__ >> "$cfgfile"
15737
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15739
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15741
# Shell to use when invoking shell scripts.
15744
# Whether or not to build shared libraries.
15745
build_libtool_libs=$enable_shared
15747
# Whether or not to build static libraries.
15748
build_old_libs=$enable_static
15750
# Whether or not to add -lc for building shared libraries.
15751
build_libtool_need_lc=$archive_cmds_need_lc_F77
15753
# Whether or not to disallow shared libs when runtime libs are static
15754
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15756
# Whether or not to optimize for fast installation.
15757
fast_install=$enable_fast_install
15760
host_alias=$host_alias
15764
# The build system.
15765
build_alias=$build_alias
15769
# An echo program that does not interpret backslashes.
15774
AR_FLAGS=$lt_AR_FLAGS
15779
# LTCC compiler flags.
15780
LTCFLAGS=$lt_LTCFLAGS
15782
# A language-specific compiler.
15783
CC=$lt_compiler_F77
15785
# Is the compiler the GNU C compiler?
15791
# The linker used to build libraries.
15794
# Whether we need hard or soft links.
15797
# A BSD-compatible nm program.
15800
# A symbol stripping program
15803
# Used to examine libraries when file_magic_cmd begins "file"
15804
MAGIC_CMD=$MAGIC_CMD
15806
# Used on cygwin: DLL creation program.
15809
# Used on cygwin: object dumper.
15812
# Used on cygwin: assembler.
15815
# The name of the directory that contains temporary libtool files.
15818
# How to create reloadable object files.
15819
reload_flag=$lt_reload_flag
15820
reload_cmds=$lt_reload_cmds
15822
# How to pass a linker flag through the compiler.
15823
wl=$lt_lt_prog_compiler_wl_F77
15825
# Object file suffix (normally "o").
15826
objext="$ac_objext"
15828
# Old archive suffix (normally "a").
15831
# Shared library suffix (normally ".so").
15832
shrext_cmds='$shrext_cmds'
15834
# Executable file suffix (normally "").
15837
# Additional compiler flags for building library objects.
15838
pic_flag=$lt_lt_prog_compiler_pic_F77
15841
# What is the maximum length of a command?
15842
max_cmd_len=$lt_cv_sys_max_cmd_len
15844
# Does compiler simultaneously support -c and -o options?
15845
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15847
# Must we lock files when doing compilation?
15848
need_locks=$lt_need_locks
15850
# Do we need the lib prefix for modules?
15851
need_lib_prefix=$need_lib_prefix
15853
# Do we need a version for libraries?
15854
need_version=$need_version
15856
# Whether dlopen is supported.
15857
dlopen_support=$enable_dlopen
15859
# Whether dlopen of programs is supported.
15860
dlopen_self=$enable_dlopen_self
15862
# Whether dlopen of statically linked programs is supported.
15863
dlopen_self_static=$enable_dlopen_self_static
15865
# Compiler flag to prevent dynamic linking.
15866
link_static_flag=$lt_lt_prog_compiler_static_F77
15868
# Compiler flag to turn off builtin functions.
15869
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15871
# Compiler flag to allow reflexive dlopens.
15872
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15874
# Compiler flag to generate shared objects directly from archives.
15875
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15877
# Compiler flag to generate thread-safe objects.
15878
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15880
# Library versioning type.
15881
version_type=$version_type
15883
# Format of library name prefix.
15884
libname_spec=$lt_libname_spec
15886
# List of archive names. First name is the real one, the rest are links.
15887
# The last name is the one that the linker finds with -lNAME.
15888
library_names_spec=$lt_library_names_spec
15890
# The coded name of the library, if different from the real name.
15891
soname_spec=$lt_soname_spec
15893
# Commands used to build and install an old-style archive.
15895
old_archive_cmds=$lt_old_archive_cmds_F77
15896
old_postinstall_cmds=$lt_old_postinstall_cmds
15897
old_postuninstall_cmds=$lt_old_postuninstall_cmds
15899
# Create an old-style archive from a shared archive.
15900
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15902
# Create a temporary old-style archive to link instead of a shared archive.
15903
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15905
# Commands used to build and install a shared archive.
15906
archive_cmds=$lt_archive_cmds_F77
15907
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15908
postinstall_cmds=$lt_postinstall_cmds
15909
postuninstall_cmds=$lt_postuninstall_cmds
15911
# Commands used to build a loadable module (assumed same as above if empty)
15912
module_cmds=$lt_module_cmds_F77
15913
module_expsym_cmds=$lt_module_expsym_cmds_F77
15915
# Commands to strip libraries.
15916
old_striplib=$lt_old_striplib
15917
striplib=$lt_striplib
15919
# Dependencies to place before the objects being linked to create a
15921
predep_objects=$lt_predep_objects_F77
15923
# Dependencies to place after the objects being linked to create a
15925
postdep_objects=$lt_postdep_objects_F77
15927
# Dependencies to place before the objects being linked to create a
15929
predeps=$lt_predeps_F77
15931
# Dependencies to place after the objects being linked to create a
15933
postdeps=$lt_postdeps_F77
15935
# The library search path used internally by the compiler when linking
15936
# a shared library.
15937
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15939
# Method to check whether dependent libraries are shared objects.
15940
deplibs_check_method=$lt_deplibs_check_method
15942
# Command to use when deplibs_check_method == file_magic.
15943
file_magic_cmd=$lt_file_magic_cmd
15945
# Flag that allows shared libraries with undefined symbols to be built.
15946
allow_undefined_flag=$lt_allow_undefined_flag_F77
15948
# Flag that forces no undefined symbols.
15949
no_undefined_flag=$lt_no_undefined_flag_F77
15951
# Commands used to finish a libtool library installation in a directory.
15952
finish_cmds=$lt_finish_cmds
15954
# Same as above, but a single script fragment to be evaled but not shown.
15955
finish_eval=$lt_finish_eval
15957
# Take the output of nm and produce a listing of raw symbols and C names.
15958
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15960
# Transform the output of nm in a proper C declaration
15961
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15963
# Transform the output of nm in a C name address pair
15964
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15966
# This is the shared library runtime path variable.
15967
runpath_var=$runpath_var
15969
# This is the shared library path variable.
15970
shlibpath_var=$shlibpath_var
15972
# Is shlibpath searched before the hard-coded library search path?
15973
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15975
# How to hardcode a shared library path into an executable.
15976
hardcode_action=$hardcode_action_F77
15978
# Whether we should hardcode library paths into libraries.
15979
hardcode_into_libs=$hardcode_into_libs
15981
# Flag to hardcode \$libdir into a binary during linking.
15982
# This must work even if \$libdir does not exist.
15983
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15985
# If ld is used when linking, flag to hardcode \$libdir into
15986
# a binary during linking. This must work even if \$libdir does
15988
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15990
# Whether we need a single -rpath flag with a separated argument.
15991
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15993
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15994
# resulting binary.
15995
hardcode_direct=$hardcode_direct_F77
15997
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15998
# resulting binary.
15999
hardcode_minus_L=$hardcode_minus_L_F77
16001
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16002
# the resulting binary.
16003
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16005
# Set to yes if building a shared library automatically hardcodes DIR into the library
16006
# and all subsequent libraries and executables linked against it.
16007
hardcode_automatic=$hardcode_automatic_F77
16009
# Variables whose values should be saved in libtool wrapper scripts and
16010
# restored at relink time.
16011
variables_saved_for_relink="$variables_saved_for_relink"
16013
# Whether libtool must link a program against all its dependency libraries.
16014
link_all_deplibs=$link_all_deplibs_F77
16016
# Compile-time system search path for libraries
16017
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16019
# Run-time system search path for libraries
16020
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16022
# Fix the shell variable \$srcfile for the compiler.
16023
fix_srcfile_path="$fix_srcfile_path_F77"
16025
# Set to yes if exported symbols are required.
16026
always_export_symbols=$always_export_symbols_F77
16028
# The commands to list exported symbols.
16029
export_symbols_cmds=$lt_export_symbols_cmds_F77
16031
# The commands to extract the exported symbol list from a shared archive.
16032
extract_expsyms_cmds=$lt_extract_expsyms_cmds
16034
# Symbols that should not be listed in the preloaded symbols.
16035
exclude_expsyms=$lt_exclude_expsyms_F77
16037
# Symbols that must always be exported.
16038
include_expsyms=$lt_include_expsyms_F77
16040
# ### END LIBTOOL TAG CONFIG: $tagname
16046
# If there is no Makefile yet, we rely on a make rule to execute
16047
# `config.status --recheck' to rerun these tests and create the
16048
# libtool script then.
16049
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16050
if test -f "$ltmain_in"; then
16051
test -f Makefile && make "$ltmain"
16057
ac_cpp='$CPP $CPPFLAGS'
16058
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16059
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16060
ac_compiler_gnu=$ac_cv_c_compiler_gnu
16070
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16073
# Source file extension for Java test sources.
16076
# Object file extension for compiled Java test sources.
16080
# Code to be used in simple compile tests
16081
lt_simple_compile_test_code="class foo {}\n"
16083
# Code to be used in simple link tests
16084
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16086
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16088
# If no C compiler was specified, use CC.
16091
# If no C compiler flags were specified, use CFLAGS.
16092
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16094
# Allow CC to be a program name with arguments.
16098
# save warnings/boilerplate of simple test code
16099
ac_outfile=conftest.$ac_objext
16100
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16101
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16102
_lt_compiler_boilerplate=`cat conftest.err`
16105
ac_outfile=conftest.$ac_objext
16106
printf "$lt_simple_link_test_code" >conftest.$ac_ext
16107
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16108
_lt_linker_boilerplate=`cat conftest.err`
16112
# Allow CC to be a program name with arguments.
16117
for cc_temp in $compiler""; do
16119
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16120
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16125
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16128
# GCJ did not exist at the time GCC didn't implicitly link libc in.
16129
archive_cmds_need_lc_GCJ=no
16131
old_archive_cmds_GCJ=$old_archive_cmds
16134
lt_prog_compiler_no_builtin_flag_GCJ=
16136
if test "$GCC" = yes; then
16137
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16140
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16141
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16142
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16143
echo $ECHO_N "(cached) $ECHO_C" >&6
16145
lt_cv_prog_compiler_rtti_exceptions=no
16146
ac_outfile=conftest.$ac_objext
16147
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16148
lt_compiler_flag="-fno-rtti -fno-exceptions"
16149
# Insert the option either (1) after the last *FLAGS variable, or
16150
# (2) before a word containing "conftest.", or (3) at the end.
16151
# Note that $ac_compile itself does not contain backslashes and begins
16152
# with a dollar sign (not a hyphen), so the echo should work correctly.
16153
# The option is referenced via a variable to avoid confusing sed.
16154
lt_compile=`echo "$ac_compile" | $SED \
16155
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16156
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16157
-e 's:$: $lt_compiler_flag:'`
16158
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
16159
(eval "$lt_compile" 2>conftest.err)
16161
cat conftest.err >&5
16162
echo "$as_me:__oline__: \$? = $ac_status" >&5
16163
if (exit $ac_status) && test -s "$ac_outfile"; then
16164
# The compiler can only warn and ignore the option if not recognized
16165
# So say no if there are warnings other than the usual output.
16166
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16167
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16168
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16169
lt_cv_prog_compiler_rtti_exceptions=yes
16175
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16176
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16178
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16179
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16186
lt_prog_compiler_wl_GCJ=
16187
lt_prog_compiler_pic_GCJ=
16188
lt_prog_compiler_static_GCJ=
16190
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16191
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16193
if test "$GCC" = yes; then
16194
lt_prog_compiler_wl_GCJ='-Wl,'
16195
lt_prog_compiler_static_GCJ='-static'
16199
# All AIX code is PIC.
16200
if test "$host_cpu" = ia64; then
16201
# AIX 5 now supports IA64 processor
16202
lt_prog_compiler_static_GCJ='-Bstatic'
16207
# FIXME: we need at least 68020 code to build shared libraries, but
16208
# adding the `-m68020' flag to GCC prevents building anything better,
16210
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16213
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16214
# PIC is the default for these OSes.
16217
mingw* | pw32* | os2*)
16218
# This hack is so that the source file can tell whether it is being
16219
# built for inclusion in a dll (and should export symbols for example).
16220
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16223
darwin* | rhapsody*)
16224
# PIC is the default on this platform
16225
# Common symbols not allowed in MH_DYLIB files
16226
lt_prog_compiler_pic_GCJ='-fno-common'
16230
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
16231
# Instead, we relocate shared libraries at runtime.
16235
# Just because we use GCC doesn't mean we suddenly get shared libraries
16236
# on systems that don't support them.
16237
lt_prog_compiler_can_build_shared_GCJ=no
16242
if test -d /usr/nec; then
16243
lt_prog_compiler_pic_GCJ=-Kconform_pic
16248
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16249
# not for PA HP-UX.
16255
lt_prog_compiler_pic_GCJ='-fPIC'
16261
lt_prog_compiler_pic_GCJ='-fPIC'
16265
# PORTME Check for flag to pass linker flags through the system compiler.
16268
lt_prog_compiler_wl_GCJ='-Wl,'
16269
if test "$host_cpu" = ia64; then
16270
# AIX 5 now supports IA64 processor
16271
lt_prog_compiler_static_GCJ='-Bstatic'
16273
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16277
# PIC is the default on this platform
16278
# Common symbols not allowed in MH_DYLIB files
16279
case $cc_basename in
16281
lt_prog_compiler_pic_GCJ='-qnocommon'
16282
lt_prog_compiler_wl_GCJ='-Wl,'
16287
mingw* | pw32* | os2*)
16288
# This hack is so that the source file can tell whether it is being
16289
# built for inclusion in a dll (and should export symbols for example).
16290
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16293
hpux9* | hpux10* | hpux11*)
16294
lt_prog_compiler_wl_GCJ='-Wl,'
16295
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16296
# not for PA HP-UX.
16302
lt_prog_compiler_pic_GCJ='+Z'
16305
# Is there a better lt_prog_compiler_static that works with the bundled CC?
16306
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16309
irix5* | irix6* | nonstopux*)
16310
lt_prog_compiler_wl_GCJ='-Wl,'
16311
# PIC (with -KPIC) is the default.
16312
lt_prog_compiler_static_GCJ='-non_shared'
16316
lt_prog_compiler_pic_GCJ='-KPIC'
16317
lt_prog_compiler_static_GCJ='-Bstatic'
16320
linux* | k*bsd*-gnu)
16321
case $cc_basename in
16323
lt_prog_compiler_wl_GCJ='-Wl,'
16324
lt_prog_compiler_pic_GCJ='-KPIC'
16325
lt_prog_compiler_static_GCJ='-static'
16327
pgcc* | pgf77* | pgf90* | pgf95*)
16328
# Portland Group compilers (*not* the Pentium gcc compiler,
16329
# which looks to be a dead project)
16330
lt_prog_compiler_wl_GCJ='-Wl,'
16331
lt_prog_compiler_pic_GCJ='-fpic'
16332
lt_prog_compiler_static_GCJ='-Bstatic'
16335
lt_prog_compiler_wl_GCJ='-Wl,'
16336
# All Alpha code is PIC.
16337
lt_prog_compiler_static_GCJ='-non_shared'
16342
osf3* | osf4* | osf5*)
16343
lt_prog_compiler_wl_GCJ='-Wl,'
16344
# All OSF/1 code is PIC.
16345
lt_prog_compiler_static_GCJ='-non_shared'
16349
lt_prog_compiler_pic_GCJ='-KPIC'
16350
lt_prog_compiler_static_GCJ='-Bstatic'
16351
case $cc_basename in
16352
f77* | f90* | f95*)
16353
lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16355
lt_prog_compiler_wl_GCJ='-Wl,';;
16360
lt_prog_compiler_wl_GCJ='-Qoption ld '
16361
lt_prog_compiler_pic_GCJ='-PIC'
16362
lt_prog_compiler_static_GCJ='-Bstatic'
16365
sysv4 | sysv4.2uw2* | sysv4.3*)
16366
lt_prog_compiler_wl_GCJ='-Wl,'
16367
lt_prog_compiler_pic_GCJ='-KPIC'
16368
lt_prog_compiler_static_GCJ='-Bstatic'
16372
if test -d /usr/nec ;then
16373
lt_prog_compiler_pic_GCJ='-Kconform_pic'
16374
lt_prog_compiler_static_GCJ='-Bstatic'
16378
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16379
lt_prog_compiler_wl_GCJ='-Wl,'
16380
lt_prog_compiler_pic_GCJ='-KPIC'
16381
lt_prog_compiler_static_GCJ='-Bstatic'
16385
lt_prog_compiler_wl_GCJ='-Wl,'
16386
lt_prog_compiler_can_build_shared_GCJ=no
16390
lt_prog_compiler_pic_GCJ='-pic'
16391
lt_prog_compiler_static_GCJ='-Bstatic'
16395
lt_prog_compiler_can_build_shared_GCJ=no
16400
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16401
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16404
# Check to make sure the PIC flag actually works.
16406
if test -n "$lt_prog_compiler_pic_GCJ"; then
16408
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16409
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16410
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16411
echo $ECHO_N "(cached) $ECHO_C" >&6
16413
lt_prog_compiler_pic_works_GCJ=no
16414
ac_outfile=conftest.$ac_objext
16415
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16416
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16417
# Insert the option either (1) after the last *FLAGS variable, or
16418
# (2) before a word containing "conftest.", or (3) at the end.
16419
# Note that $ac_compile itself does not contain backslashes and begins
16420
# with a dollar sign (not a hyphen), so the echo should work correctly.
16421
# The option is referenced via a variable to avoid confusing sed.
16422
lt_compile=`echo "$ac_compile" | $SED \
16423
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16424
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16425
-e 's:$: $lt_compiler_flag:'`
16426
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
16427
(eval "$lt_compile" 2>conftest.err)
16429
cat conftest.err >&5
16430
echo "$as_me:__oline__: \$? = $ac_status" >&5
16431
if (exit $ac_status) && test -s "$ac_outfile"; then
16432
# The compiler can only warn and ignore the option if not recognized
16433
# So say no if there are warnings other than the usual output.
16434
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16435
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16436
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16437
lt_prog_compiler_pic_works_GCJ=yes
16443
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16444
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16446
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16447
case $lt_prog_compiler_pic_GCJ in
16449
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16452
lt_prog_compiler_pic_GCJ=
16453
lt_prog_compiler_can_build_shared_GCJ=no
16458
# For platforms which do not support PIC, -DPIC is meaningless:
16460
lt_prog_compiler_pic_GCJ=
16463
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16468
# Check to make sure the static flag actually works.
16470
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16471
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16472
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16473
if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16474
echo $ECHO_N "(cached) $ECHO_C" >&6
16476
lt_prog_compiler_static_works_GCJ=no
16477
save_LDFLAGS="$LDFLAGS"
16478
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16479
printf "$lt_simple_link_test_code" > conftest.$ac_ext
16480
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16481
# The linker can only warn and ignore the option if not recognized
16482
# So say no if there are warnings
16483
if test -s conftest.err; then
16484
# Append any errors to the config.log.
16485
cat conftest.err 1>&5
16486
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16487
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16488
if diff conftest.exp conftest.er2 >/dev/null; then
16489
lt_prog_compiler_static_works_GCJ=yes
16492
lt_prog_compiler_static_works_GCJ=yes
16496
LDFLAGS="$save_LDFLAGS"
16499
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16500
echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16502
if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16505
lt_prog_compiler_static_GCJ=
16509
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16510
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16511
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16512
echo $ECHO_N "(cached) $ECHO_C" >&6
16514
lt_cv_prog_compiler_c_o_GCJ=no
16515
$rm -r conftest 2>/dev/null
16519
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16521
lt_compiler_flag="-o out/conftest2.$ac_objext"
16522
# Insert the option either (1) after the last *FLAGS variable, or
16523
# (2) before a word containing "conftest.", or (3) at the end.
16524
# Note that $ac_compile itself does not contain backslashes and begins
16525
# with a dollar sign (not a hyphen), so the echo should work correctly.
16526
lt_compile=`echo "$ac_compile" | $SED \
16527
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16528
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16529
-e 's:$: $lt_compiler_flag:'`
16530
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
16531
(eval "$lt_compile" 2>out/conftest.err)
16533
cat out/conftest.err >&5
16534
echo "$as_me:__oline__: \$? = $ac_status" >&5
16535
if (exit $ac_status) && test -s out/conftest2.$ac_objext
16537
# The compiler can only warn and ignore the option if not recognized
16538
# So say no if there are warnings
16539
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16540
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16541
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16542
lt_cv_prog_compiler_c_o_GCJ=yes
16547
# SGI C++ compiler will create directory out/ii_files/ for
16548
# template instantiation
16549
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16550
$rm out/* && rmdir out
16556
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16557
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16560
hard_links="nottested"
16561
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16562
# do not overwrite the value of need_locks provided by the user
16563
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16564
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16567
ln conftest.a conftest.b 2>/dev/null && hard_links=no
16569
ln conftest.a conftest.b 2>&5 || hard_links=no
16570
ln conftest.a conftest.b 2>/dev/null && hard_links=no
16571
{ echo "$as_me:$LINENO: result: $hard_links" >&5
16572
echo "${ECHO_T}$hard_links" >&6; }
16573
if test "$hard_links" = no; then
16574
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16575
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16582
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16583
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16586
allow_undefined_flag_GCJ=
16587
enable_shared_with_static_runtimes_GCJ=no
16589
archive_expsym_cmds_GCJ=
16590
old_archive_From_new_cmds_GCJ=
16591
old_archive_from_expsyms_cmds_GCJ=
16592
export_dynamic_flag_spec_GCJ=
16593
whole_archive_flag_spec_GCJ=
16594
thread_safe_flag_spec_GCJ=
16595
hardcode_libdir_flag_spec_GCJ=
16596
hardcode_libdir_flag_spec_ld_GCJ=
16597
hardcode_libdir_separator_GCJ=
16598
hardcode_direct_GCJ=no
16599
hardcode_minus_L_GCJ=no
16600
hardcode_shlibpath_var_GCJ=unsupported
16601
link_all_deplibs_GCJ=unknown
16602
hardcode_automatic_GCJ=no
16604
module_expsym_cmds_GCJ=
16605
always_export_symbols_GCJ=no
16606
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16607
# include_expsyms should be a list of space-separated symbols to be *always*
16608
# included in the symbol list
16609
include_expsyms_GCJ=
16610
# exclude_expsyms can be an extended regexp of symbols to exclude
16611
# it will be wrapped by ` (' and `)$', so one must not match beginning or
16612
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16613
# as well as any symbol that contains `d'.
16614
exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16615
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16616
# platforms (ab)use it in PIC code, but their linkers get confused if
16617
# the symbol is explicitly referenced. Since portable code cannot
16618
# rely on this symbol name, it's probably fine to never include it in
16619
# preloaded symbol tables.
16620
extract_expsyms_cmds=
16621
# Just being paranoid about ensuring that cc_basename is set.
16622
for cc_temp in $compiler""; do
16624
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16625
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16630
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16633
cygwin* | mingw* | pw32*)
16634
# FIXME: the MSVC++ port hasn't been tested in a loooong time
16635
# When not using gcc, we currently assume that we are using
16636
# Microsoft Visual C++.
16637
if test "$GCC" != yes; then
16642
# we just hope/assume this is gcc and not c89 (= MSVC++)
16651
if test "$with_gnu_ld" = yes; then
16652
# If archive_cmds runs LD, not CC, wlarc should be empty
16655
# Set some defaults for GNU ld with shared library support. These
16656
# are reset later if shared libraries are not supported. Putting them
16657
# here allows them to be overridden if necessary.
16658
runpath_var=LD_RUN_PATH
16659
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16660
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16661
# ancient GNU ld didn't support --whole-archive et. al.
16662
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16663
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16665
whole_archive_flag_spec_GCJ=
16667
supports_anon_versioning=no
16668
case `$LD -v 2>/dev/null` in
16669
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16670
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16671
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16672
*\ 2.11.*) ;; # other 2.11 versions
16673
*) supports_anon_versioning=yes ;;
16676
# See if GNU ld supports shared libraries.
16678
aix3* | aix4* | aix5*)
16679
# On AIX/PPC, the GNU linker is very broken
16680
if test "$host_cpu" != ia64; then
16684
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16685
*** to be unable to reliably create shared libraries on AIX.
16686
*** Therefore, libtool is disabling shared libraries support. If you
16687
*** really care for shared libraries, you may want to modify your PATH
16688
*** so that a non-GNU linker is found, and then restart.
16695
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)'
16696
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16697
hardcode_minus_L_GCJ=yes
16699
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16700
# that the semantics of dynamic libraries on AmigaOS, at least up
16701
# to version 4, is to share data among multiple programs linked
16702
# with the same dynamic library. Since this doesn't match the
16703
# behavior of shared libraries on other platforms, we can't use
16709
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16710
allow_undefined_flag_GCJ=unsupported
16711
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16712
# support --undefined. This deserves some investigation. FIXME
16713
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16719
cygwin* | mingw* | pw32*)
16720
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16721
# as there is no search path for DLLs.
16722
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16723
allow_undefined_flag_GCJ=unsupported
16724
always_export_symbols_GCJ=no
16725
enable_shared_with_static_runtimes_GCJ=yes
16726
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16728
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16729
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16730
# If the export-symbols file already is a .def file (1st line
16731
# is EXPORTS), use it as is; otherwise, prepend...
16732
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16733
cp $export_symbols $output_objdir/$soname.def;
16735
echo EXPORTS > $output_objdir/$soname.def;
16736
cat $export_symbols >> $output_objdir/$soname.def;
16738
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16745
hardcode_direct_GCJ=no
16746
hardcode_shlibpath_var_GCJ=no
16747
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16748
export_dynamic_flag_spec_GCJ='${wl}-E'
16749
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16750
# Instead, shared libraries are loaded at an image base (0x10000000 by
16751
# default) and relocated if they conflict, which is a slow very memory
16752
# consuming and fragmenting process. To avoid this, we pick a random,
16753
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16754
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
16755
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'
16756
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'
16759
linux* | k*bsd*-gnu)
16760
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16762
case $cc_basename,$host_cpu in
16763
pgcc*) # Portland Group C compiler
16764
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'
16765
tmp_addflag=' $pic_flag'
16767
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16768
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'
16769
tmp_addflag=' $pic_flag -Mnomain' ;;
16770
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16771
tmp_addflag=' -i_dynamic' ;;
16772
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16773
tmp_addflag=' -i_dynamic -nofor_main' ;;
16774
ifc* | ifort*) # Intel Fortran compiler
16775
tmp_addflag=' -nofor_main' ;;
16777
archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16779
if test $supports_anon_versioning = yes; then
16780
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16781
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16782
$echo "local: *; };" >> $output_objdir/$libname.ver~
16783
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16785
link_all_deplibs_GCJ=no
16791
netbsd* | netbsdelf*-gnu)
16792
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16793
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16796
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16797
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16802
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16806
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16807
*** create shared libraries on Solaris systems. Therefore, libtool
16808
*** is disabling shared libraries support. We urge you to upgrade GNU
16809
*** binutils to release 2.9.1 or newer. Another option is to modify
16810
*** your PATH or compiler configuration so that the native linker is
16811
*** used, and then restart.
16814
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16815
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16816
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16822
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16823
case `$LD -v 2>&1` in
16824
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16828
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16829
*** reliably create shared libraries on SCO systems. Therefore, libtool
16830
*** is disabling shared libraries support. We urge you to upgrade GNU
16831
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16832
*** your PATH or compiler configuration so that the native linker is
16833
*** used, and then restart.
16838
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16839
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16840
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16841
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16850
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16852
hardcode_direct_GCJ=yes
16853
hardcode_shlibpath_var_GCJ=no
16857
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16858
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16859
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16866
if test "$ld_shlibs_GCJ" = no; then
16868
hardcode_libdir_flag_spec_GCJ=
16869
export_dynamic_flag_spec_GCJ=
16870
whole_archive_flag_spec_GCJ=
16873
# PORTME fill in a description of your system's linker (not GNU ld)
16876
allow_undefined_flag_GCJ=unsupported
16877
always_export_symbols_GCJ=yes
16878
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'
16879
# Note: this linker hardcodes the directories in LIBPATH if there
16880
# are no directories specified by -L.
16881
hardcode_minus_L_GCJ=yes
16882
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16883
# Neither direct hardcoding nor static linking is supported with a
16885
hardcode_direct_GCJ=unsupported
16890
if test "$host_cpu" = ia64; then
16891
# On IA64, the linker does run time linking by default, so we don't
16892
# have to do anything special.
16893
aix_use_runtimelinking=no
16894
exp_sym_flag='-Bexport'
16897
# If we're using GNU nm, then we don't want the "-C" option.
16898
# -C means demangle to AIX nm, but means don't demangle with GNU nm
16899
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16900
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'
16902
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'
16904
aix_use_runtimelinking=no
16906
# Test if we are trying to use run time linking or normal
16907
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16908
# need to do runtime linking.
16909
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16910
for ld_flag in $LDFLAGS; do
16911
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16912
aix_use_runtimelinking=yes
16919
exp_sym_flag='-bexport'
16920
no_entry_flag='-bnoentry'
16923
# When large executables or shared objects are built, AIX ld can
16924
# have problems creating the table of contents. If linking a library
16925
# or program results in "error TOC overflow" add -mminimal-toc to
16926
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16927
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16929
archive_cmds_GCJ=''
16930
hardcode_direct_GCJ=yes
16931
hardcode_libdir_separator_GCJ=':'
16932
link_all_deplibs_GCJ=yes
16934
if test "$GCC" = yes; then
16935
case $host_os in aix4.[012]|aix4.[012].*)
16936
# We only want to do this on AIX 4.2 and lower, the check
16937
# below for broken collect2 doesn't work under 4.3+
16938
collect2name=`${CC} -print-prog-name=collect2`
16939
if test -f "$collect2name" && \
16940
strings "$collect2name" | grep resolve_lib_name >/dev/null
16942
# We have reworked collect2
16943
hardcode_direct_GCJ=yes
16945
# We have old collect2
16946
hardcode_direct_GCJ=unsupported
16947
# It fails to find uninstalled libraries when the uninstalled
16948
# path is not listed in the libpath. Setting hardcode_minus_L
16949
# to unsupported forces relinking
16950
hardcode_minus_L_GCJ=yes
16951
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16952
hardcode_libdir_separator_GCJ=
16956
shared_flag='-shared'
16957
if test "$aix_use_runtimelinking" = yes; then
16958
shared_flag="$shared_flag "'${wl}-G'
16962
if test "$host_cpu" = ia64; then
16963
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16964
# chokes on -Wl,-G. The following line is correct:
16967
if test "$aix_use_runtimelinking" = yes; then
16968
shared_flag='${wl}-G'
16970
shared_flag='${wl}-bM:SRE'
16975
# It seems that -bexpall does not export symbols beginning with
16976
# underscore (_), so it is better to generate a list of symbols to export.
16977
always_export_symbols_GCJ=yes
16978
if test "$aix_use_runtimelinking" = yes; then
16979
# Warning - without using the other runtime loading flags (-brtl),
16980
# -berok will link without error, but may produce a broken library.
16981
allow_undefined_flag_GCJ='-berok'
16982
# Determine the default libpath from the value encoded in an empty executable.
16983
cat >conftest.$ac_ext <<_ACEOF
16986
cat confdefs.h >>conftest.$ac_ext
16987
cat >>conftest.$ac_ext <<_ACEOF
16988
/* end confdefs.h. */
16998
rm -f conftest.$ac_objext conftest$ac_exeext
16999
if { (ac_try="$ac_link"
17000
case "(($ac_try" in
17001
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17002
*) ac_try_echo=$ac_try;;
17004
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17005
(eval "$ac_link") 2>conftest.er1
17007
grep -v '^ *+' conftest.er1 >conftest.err
17009
cat conftest.err >&5
17010
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17011
(exit $ac_status); } && {
17012
test -z "$ac_c_werror_flag" ||
17013
test ! -s conftest.err
17014
} && test -s conftest$ac_exeext &&
17015
$as_test_x conftest$ac_exeext; then
17017
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17019
# Check for a 64-bit object if we didn't find anything.
17020
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; }
17023
echo "$as_me: failed program was:" >&5
17024
sed 's/^/| /' conftest.$ac_ext >&5
17029
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17030
conftest$ac_exeext conftest.$ac_ext
17031
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17033
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17034
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"
17036
if test "$host_cpu" = ia64; then
17037
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17038
allow_undefined_flag_GCJ="-z nodefs"
17039
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"
17041
# Determine the default libpath from the value encoded in an empty executable.
17042
cat >conftest.$ac_ext <<_ACEOF
17045
cat confdefs.h >>conftest.$ac_ext
17046
cat >>conftest.$ac_ext <<_ACEOF
17047
/* end confdefs.h. */
17057
rm -f conftest.$ac_objext conftest$ac_exeext
17058
if { (ac_try="$ac_link"
17059
case "(($ac_try" in
17060
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17061
*) ac_try_echo=$ac_try;;
17063
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17064
(eval "$ac_link") 2>conftest.er1
17066
grep -v '^ *+' conftest.er1 >conftest.err
17068
cat conftest.err >&5
17069
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17070
(exit $ac_status); } && {
17071
test -z "$ac_c_werror_flag" ||
17072
test ! -s conftest.err
17073
} && test -s conftest$ac_exeext &&
17074
$as_test_x conftest$ac_exeext; then
17076
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17078
# Check for a 64-bit object if we didn't find anything.
17079
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; }
17082
echo "$as_me: failed program was:" >&5
17083
sed 's/^/| /' conftest.$ac_ext >&5
17088
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17089
conftest$ac_exeext conftest.$ac_ext
17090
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17092
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17093
# Warning - without using the other run time loading flags,
17094
# -berok will link without error, but may produce a broken library.
17095
no_undefined_flag_GCJ=' ${wl}-bernotok'
17096
allow_undefined_flag_GCJ=' ${wl}-berok'
17097
# Exported symbols can be pulled into shared objects from archives
17098
whole_archive_flag_spec_GCJ='$convenience'
17099
archive_cmds_need_lc_GCJ=yes
17100
# This is similar to how AIX traditionally builds its shared libraries.
17101
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'
17107
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)'
17108
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17109
hardcode_minus_L_GCJ=yes
17110
# see comment about different semantics on the GNU ld section
17115
export_dynamic_flag_spec_GCJ=-rdynamic
17118
cygwin* | mingw* | pw32*)
17119
# When not using gcc, we currently assume that we are using
17120
# Microsoft Visual C++.
17121
# hardcode_libdir_flag_spec is actually meaningless, as there is
17122
# no search path for DLLs.
17123
hardcode_libdir_flag_spec_GCJ=' '
17124
allow_undefined_flag_GCJ=unsupported
17125
# Tell ltmain to make .lib files, not .a files.
17127
# Tell ltmain to make .dll files, not .so files.
17129
# FIXME: Setting linknames here is a bad hack.
17130
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17131
# The linker will automatically build a .lib file if we build a DLL.
17132
old_archive_From_new_cmds_GCJ='true'
17133
# FIXME: Should let the user specify the lib program.
17134
old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17135
fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17136
enable_shared_with_static_runtimes_GCJ=yes
17139
darwin* | rhapsody*)
17141
rhapsody* | darwin1.[012])
17142
allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17145
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17146
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17148
case ${MACOSX_DEPLOYMENT_TARGET} in
17150
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17153
allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17159
archive_cmds_need_lc_GCJ=no
17160
hardcode_direct_GCJ=no
17161
hardcode_automatic_GCJ=yes
17162
hardcode_shlibpath_var_GCJ=unsupported
17163
whole_archive_flag_spec_GCJ=''
17164
link_all_deplibs_GCJ=yes
17165
if test "$GCC" = yes ; then
17166
output_verbose_link_cmd='echo'
17167
archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17168
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17169
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17170
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}'
17171
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}'
17173
case $cc_basename in
17175
output_verbose_link_cmd='echo'
17176
archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17177
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17178
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17179
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}'
17180
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}'
17190
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17191
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17192
hardcode_shlibpath_var_GCJ=no
17199
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17200
# support. Future versions do this automatically, but an explicit c++rt0.o
17201
# does not break anything, and helps significantly (at the cost of a little
17204
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17205
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17206
hardcode_direct_GCJ=yes
17207
hardcode_shlibpath_var_GCJ=no
17210
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
17212
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17213
hardcode_direct_GCJ=yes
17214
hardcode_minus_L_GCJ=yes
17215
hardcode_shlibpath_var_GCJ=no
17218
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17219
freebsd* | dragonfly*)
17220
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17221
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17222
hardcode_direct_GCJ=yes
17223
hardcode_shlibpath_var_GCJ=no
17227
if test "$GCC" = yes; then
17228
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'
17230
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'
17232
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17233
hardcode_libdir_separator_GCJ=:
17234
hardcode_direct_GCJ=yes
17236
# hardcode_minus_L: Not really in the search PATH,
17237
# but as the default location of the library.
17238
hardcode_minus_L_GCJ=yes
17239
export_dynamic_flag_spec_GCJ='${wl}-E'
17243
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17244
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17246
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17248
if test "$with_gnu_ld" = no; then
17249
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17250
hardcode_libdir_separator_GCJ=:
17252
hardcode_direct_GCJ=yes
17253
export_dynamic_flag_spec_GCJ='${wl}-E'
17255
# hardcode_minus_L: Not really in the search PATH,
17256
# but as the default location of the library.
17257
hardcode_minus_L_GCJ=yes
17262
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17265
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17268
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17271
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17277
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17280
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17283
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17287
if test "$with_gnu_ld" = no; then
17288
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17289
hardcode_libdir_separator_GCJ=:
17293
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17294
hardcode_direct_GCJ=no
17295
hardcode_shlibpath_var_GCJ=no
17298
hardcode_direct_GCJ=yes
17299
export_dynamic_flag_spec_GCJ='${wl}-E'
17301
# hardcode_minus_L: Not really in the search PATH,
17302
# but as the default location of the library.
17303
hardcode_minus_L_GCJ=yes
17309
irix5* | irix6* | nonstopux*)
17310
if test "$GCC" = yes; then
17311
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'
17313
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'
17314
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17316
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17317
hardcode_libdir_separator_GCJ=:
17318
link_all_deplibs_GCJ=yes
17321
netbsd* | netbsdelf*-gnu)
17322
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17323
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17325
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17327
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17328
hardcode_direct_GCJ=yes
17329
hardcode_shlibpath_var_GCJ=no
17333
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17334
hardcode_direct_GCJ=yes
17335
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17336
hardcode_libdir_separator_GCJ=:
17337
hardcode_shlibpath_var_GCJ=no
17341
hardcode_direct_GCJ=yes
17342
hardcode_shlibpath_var_GCJ=no
17343
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17344
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17345
archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17346
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17347
export_dynamic_flag_spec_GCJ='${wl}-E'
17350
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17351
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17352
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17355
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17356
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17363
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17364
hardcode_minus_L_GCJ=yes
17365
allow_undefined_flag_GCJ=unsupported
17366
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'
17367
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17371
if test "$GCC" = yes; then
17372
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17373
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'
17375
allow_undefined_flag_GCJ=' -expect_unresolved \*'
17376
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'
17378
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17379
hardcode_libdir_separator_GCJ=:
17382
osf4* | osf5*) # as osf3* with the addition of -msym flag
17383
if test "$GCC" = yes; then
17384
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17385
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'
17386
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17388
allow_undefined_flag_GCJ=' -expect_unresolved \*'
17389
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'
17390
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~
17391
$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'
17393
# Both c and cxx compiler support -rpath directly
17394
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17396
hardcode_libdir_separator_GCJ=:
17400
no_undefined_flag_GCJ=' -z text'
17401
if test "$GCC" = yes; then
17403
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17404
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17405
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17408
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17409
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17410
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17412
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17413
hardcode_shlibpath_var_GCJ=no
17415
solaris2.[0-5] | solaris2.[0-5].*) ;;
17417
# The compiler driver will combine linker options so we
17418
# cannot just pass the convience library names through
17419
# without $wl, iff we do not link with $LD.
17420
# Luckily, gcc supports the same syntax we need for Sun Studio.
17421
# Supported since Solaris 2.6 (maybe 2.5.1?)
17424
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17426
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' ;;
17429
link_all_deplibs_GCJ=yes
17433
if test "x$host_vendor" = xsequent; then
17434
# Use $CC to link under sequent, because it throws in some extra .o
17435
# files that make .init and .fini sections work.
17436
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17438
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17440
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17441
hardcode_direct_GCJ=yes
17442
hardcode_minus_L_GCJ=yes
17443
hardcode_shlibpath_var_GCJ=no
17447
case $host_vendor in
17449
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17450
hardcode_direct_GCJ=yes # is this really true???
17453
## LD is ld it makes a PLAMLIB
17454
## CC just makes a GrossModule.
17455
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17456
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17457
hardcode_direct_GCJ=no
17460
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17461
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17464
runpath_var='LD_RUN_PATH'
17465
hardcode_shlibpath_var_GCJ=no
17469
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17470
hardcode_shlibpath_var_GCJ=no
17471
export_dynamic_flag_spec_GCJ='-Bexport'
17475
if test -d /usr/nec; then
17476
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17477
hardcode_shlibpath_var_GCJ=no
17478
runpath_var=LD_RUN_PATH
17479
hardcode_runpath_var=yes
17484
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17485
no_undefined_flag_GCJ='${wl}-z,text'
17486
archive_cmds_need_lc_GCJ=no
17487
hardcode_shlibpath_var_GCJ=no
17488
runpath_var='LD_RUN_PATH'
17490
if test "$GCC" = yes; then
17491
archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17492
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17494
archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17495
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17499
sysv5* | sco3.2v5* | sco5v6*)
17500
# Note: We can NOT use -z defs as we might desire, because we do not
17501
# link with -lc, and that would cause any symbols used from libc to
17502
# always be unresolved, which means just about no library would
17503
# ever link correctly. If we're not using GNU ld we use -z text
17504
# though, which does catch some bad symbols but isn't as heavy-handed
17506
no_undefined_flag_GCJ='${wl}-z,text'
17507
allow_undefined_flag_GCJ='${wl}-z,nodefs'
17508
archive_cmds_need_lc_GCJ=no
17509
hardcode_shlibpath_var_GCJ=no
17510
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17511
hardcode_libdir_separator_GCJ=':'
17512
link_all_deplibs_GCJ=yes
17513
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17514
runpath_var='LD_RUN_PATH'
17516
if test "$GCC" = yes; then
17517
archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17518
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17520
archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17521
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17526
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17527
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17528
hardcode_shlibpath_var_GCJ=no
17537
{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17538
echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17539
test "$ld_shlibs_GCJ" = no && can_build_shared=no
17542
# Do we need to explicitly link libc?
17544
case "x$archive_cmds_need_lc_GCJ" in
17546
# Assume -lc should be added
17547
archive_cmds_need_lc_GCJ=yes
17549
if test "$enable_shared" = yes && test "$GCC" = yes; then
17550
case $archive_cmds_GCJ in
17552
# FIXME: we may have to deal with multi-command sequences.
17555
# Test whether the compiler implicitly links with -lc since on some
17556
# systems, -lgcc has to come before -lc. If gcc already passes -lc
17557
# to ld, don't add -lc before -lgcc.
17558
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17559
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17561
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17563
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17564
(eval $ac_compile) 2>&5
17566
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17567
(exit $ac_status); } 2>conftest.err; then
17570
libobjs=conftest.$ac_objext
17572
wl=$lt_prog_compiler_wl_GCJ
17573
pic_flag=$lt_prog_compiler_pic_GCJ
17579
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17580
allow_undefined_flag_GCJ=
17581
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17582
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17584
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17585
(exit $ac_status); }
17587
archive_cmds_need_lc_GCJ=no
17589
archive_cmds_need_lc_GCJ=yes
17591
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17593
cat conftest.err 1>&5
17596
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17597
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17604
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17605
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17606
library_names_spec=
17607
libname_spec='lib$name'
17611
postuninstall_cmds=
17615
shlibpath_overrides_runpath=unknown
17617
dynamic_linker="$host_os ld.so"
17618
sys_lib_dlsearch_path_spec="/lib /usr/lib"
17619
if test "$GCC" = yes; then
17620
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17621
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17622
# if the path contains ";" then we assume it to be the separator
17623
# otherwise default to the standard path separator (i.e. ":") - it is
17624
# assumed that no part of a normal pathname contains ";" but that should
17625
# okay in the real world where ";" in dirpaths is itself problematic.
17626
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17628
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17631
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17633
need_lib_prefix=unknown
17634
hardcode_into_libs=no
17636
# when you set need_version to no, make sure it does not cause -set_version
17637
# flags to be left without arguments
17638
need_version=unknown
17643
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17644
shlibpath_var=LIBPATH
17646
# AIX 3 has no versioning support, so we append a major version to the name.
17647
soname_spec='${libname}${release}${shared_ext}$major'
17654
hardcode_into_libs=yes
17655
if test "$host_cpu" = ia64; then
17656
# AIX 5 supports IA64
17657
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17658
shlibpath_var=LD_LIBRARY_PATH
17660
# With GCC up to 2.95.x, collect2 would create an import file
17661
# for dependence libraries. The import file would start with
17662
# the line `#! .'. This would cause the generated library to
17663
# depend on `.', always an invalid library. This was fixed in
17664
# development snapshots of GCC prior to 3.0.
17666
aix4 | aix4.[01] | aix4.[01].*)
17667
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17669
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17672
can_build_shared=no
17676
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17677
# soname into executable. Probably we can add versioning support to
17678
# collect2, so additional links can be useful in future.
17679
if test "$aix_use_runtimelinking" = yes; then
17680
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
17681
# instead of lib<name>.a to let people know that these are not
17682
# typical AIX shared libraries.
17683
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17685
# We preserve .a as extension for shared libraries through AIX4.2
17686
# and later when we are not doing run time linking.
17687
library_names_spec='${libname}${release}.a $libname.a'
17688
soname_spec='${libname}${release}${shared_ext}$major'
17690
shlibpath_var=LIBPATH
17695
library_names_spec='$libname.ixlibrary $libname.a'
17696
# Create ${libname}_ixlibrary.a entries in /sys/libs.
17697
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'
17701
library_names_spec='${libname}${shared_ext}'
17702
dynamic_linker="$host_os ld.so"
17703
shlibpath_var=LIBRARY_PATH
17709
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17710
soname_spec='${libname}${release}${shared_ext}$major'
17711
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17712
shlibpath_var=LD_LIBRARY_PATH
17713
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17714
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17715
# the default ld.so.conf also contains /usr/contrib/lib and
17716
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17717
# libtool to hard-code these into programs
17720
cygwin* | mingw* | pw32*)
17721
version_type=windows
17726
case $GCC,$host_os in
17727
yes,cygwin* | yes,mingw* | yes,pw32*)
17728
library_names_spec='$libname.dll.a'
17729
# DLL is installed to $(libdir)/../bin by postinstall_cmds
17730
postinstall_cmds='base_file=`basename \${file}`~
17731
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17732
dldir=$destdir/`dirname \$dlpath`~
17733
test -d \$dldir || mkdir -p \$dldir~
17734
$install_prog $dir/$dlname \$dldir/$dlname~
17735
chmod a+x \$dldir/$dlname'
17736
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17737
dlpath=$dir/\$dldll~
17739
shlibpath_overrides_runpath=yes
17743
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
17744
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17745
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17748
# MinGW DLLs use traditional 'lib' prefix
17749
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17750
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17751
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17752
# It is most probably a Windows format PATH printed by
17753
# mingw gcc, but we are running on Cygwin. Gcc prints its search
17754
# path with ; separators, and with drive letters. We can handle the
17755
# drive letters (cygwin fileutils understands them), so leave them,
17756
# especially as we might pass files found there to a mingw objdump,
17757
# which wouldn't understand a cygwinified path. Ahh.
17758
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17760
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17764
# pw32 DLLs use 'pw' prefix rather than 'lib'
17765
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17771
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17774
dynamic_linker='Win32 ld.exe'
17775
# FIXME: first we should search . and the directory the executable is in
17779
darwin* | rhapsody*)
17780
dynamic_linker="$host_os dyld"
17781
version_type=darwin
17784
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17785
soname_spec='${libname}${release}${major}$shared_ext'
17786
shlibpath_overrides_runpath=yes
17787
shlibpath_var=DYLD_LIBRARY_PATH
17788
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17789
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17790
if test "$GCC" = yes; then
17791
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"`
17793
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17795
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17802
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17803
soname_spec='${libname}${release}${shared_ext}$major'
17804
shlibpath_var=LD_LIBRARY_PATH
17811
freebsd* | dragonfly*)
17812
# DragonFly does not have aout. When/if they implement a new
17813
# versioning mechanism, adjust this.
17814
if test -x /usr/bin/objformat; then
17815
objformat=`/usr/bin/objformat`
17818
freebsd[123]*) objformat=aout ;;
17819
*) objformat=elf ;;
17822
version_type=freebsd-$objformat
17823
case $version_type in
17825
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17830
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17834
shlibpath_var=LD_LIBRARY_PATH
17837
shlibpath_overrides_runpath=yes
17839
freebsd3.[01]* | freebsdelf3.[01]*)
17840
shlibpath_overrides_runpath=yes
17841
hardcode_into_libs=yes
17843
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17844
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17845
shlibpath_overrides_runpath=no
17846
hardcode_into_libs=yes
17848
freebsd*) # from 4.6 on
17849
shlibpath_overrides_runpath=yes
17850
hardcode_into_libs=yes
17859
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17860
soname_spec='${libname}${release}${shared_ext}$major'
17861
shlibpath_var=LD_LIBRARY_PATH
17862
hardcode_into_libs=yes
17865
hpux9* | hpux10* | hpux11*)
17866
# Give a soname corresponding to the major version so that dld.sl refuses to
17867
# link against other versions.
17874
hardcode_into_libs=yes
17875
dynamic_linker="$host_os dld.so"
17876
shlibpath_var=LD_LIBRARY_PATH
17877
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17878
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17879
soname_spec='${libname}${release}${shared_ext}$major'
17880
if test "X$HPUX_IA64_MODE" = X32; then
17881
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17883
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17885
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17889
hardcode_into_libs=yes
17890
dynamic_linker="$host_os dld.sl"
17891
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17892
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17893
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17894
soname_spec='${libname}${release}${shared_ext}$major'
17895
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17896
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17900
dynamic_linker="$host_os dld.sl"
17901
shlibpath_var=SHLIB_PATH
17902
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17903
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17904
soname_spec='${libname}${release}${shared_ext}$major'
17907
# HP-UX runs *really* slowly unless shared libraries are mode 555.
17908
postinstall_cmds='chmod 555 $lib'
17915
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17916
soname_spec='${libname}${release}${shared_ext}$major'
17917
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17918
shlibpath_var=LD_LIBRARY_PATH
17919
shlibpath_overrides_runpath=no
17920
hardcode_into_libs=yes
17923
irix5* | irix6* | nonstopux*)
17925
nonstopux*) version_type=nonstopux ;;
17927
if test "$lt_cv_prog_gnu_ld" = yes; then
17935
soname_spec='${libname}${release}${shared_ext}$major'
17936
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17938
irix5* | nonstopux*)
17939
libsuff= shlibsuff=
17942
case $LD in # libtool.m4 will add one of these switches to LD
17943
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17944
libsuff= shlibsuff= libmagic=32-bit;;
17945
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17946
libsuff=32 shlibsuff=N32 libmagic=N32;;
17947
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17948
libsuff=64 shlibsuff=64 libmagic=64-bit;;
17949
*) libsuff= shlibsuff= libmagic=never-match;;
17953
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17954
shlibpath_overrides_runpath=no
17955
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17956
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17957
hardcode_into_libs=yes
17960
# No shared lib support for Linux oldld, aout, or coff.
17961
linux*oldld* | linux*aout* | linux*coff*)
17965
# This must be Linux ELF.
17966
linux* | k*bsd*-gnu)
17970
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17971
soname_spec='${libname}${release}${shared_ext}$major'
17972
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17973
shlibpath_var=LD_LIBRARY_PATH
17974
shlibpath_overrides_runpath=no
17975
# This implies no fast_install, which is unacceptable.
17976
# Some rework will be needed to allow for fast_install
17977
# before this can be enabled.
17978
hardcode_into_libs=yes
17980
# Append ld.so.conf contents to the search path
17981
if test -f /etc/ld.so.conf; then
17982
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' ' '`
17983
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17986
# We used to test for /lib/ld.so.1 and disable shared libraries on
17987
# powerpc, because MkLinux only supported shared libraries with the
17988
# GNU dynamic linker. Since this was broken with cross compilers,
17989
# most powerpc-linux boxes support dynamic linking these days and
17990
# people can always --disable-shared, the test was removed, and we
17991
# assume the GNU/Linux dynamic linker is in use.
17992
dynamic_linker='GNU/Linux ld.so'
17999
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18000
soname_spec='${libname}${release}${shared_ext}$major'
18001
shlibpath_var=LD_LIBRARY_PATH
18002
shlibpath_overrides_runpath=no
18003
hardcode_into_libs=yes
18004
dynamic_linker='NetBSD ld.elf_so'
18011
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18012
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18013
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18014
dynamic_linker='NetBSD (a.out) ld.so'
18016
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18017
soname_spec='${libname}${release}${shared_ext}$major'
18018
dynamic_linker='NetBSD ld.elf_so'
18020
shlibpath_var=LD_LIBRARY_PATH
18021
shlibpath_overrides_runpath=yes
18022
hardcode_into_libs=yes
18027
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18028
shlibpath_var=LD_LIBRARY_PATH
18029
shlibpath_overrides_runpath=yes
18036
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18037
soname_spec='${libname}${release}${shared_ext}$major'
18038
shlibpath_var=LD_LIBRARY_PATH
18039
shlibpath_overrides_runpath=yes
18044
sys_lib_dlsearch_path_spec="/usr/lib"
18046
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18048
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18049
*) need_version=no ;;
18051
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18052
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18053
shlibpath_var=LD_LIBRARY_PATH
18054
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18056
openbsd2.[89] | openbsd2.[89].*)
18057
shlibpath_overrides_runpath=no
18060
shlibpath_overrides_runpath=yes
18064
shlibpath_overrides_runpath=yes
18069
libname_spec='$name'
18072
library_names_spec='$libname${shared_ext} $libname.a'
18073
dynamic_linker='OS/2 ld.exe'
18074
shlibpath_var=LIBPATH
18077
osf3* | osf4* | osf5*)
18081
soname_spec='${libname}${release}${shared_ext}$major'
18082
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18083
shlibpath_var=LD_LIBRARY_PATH
18084
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18085
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18092
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18093
soname_spec='${libname}${release}${shared_ext}$major'
18094
shlibpath_var=LD_LIBRARY_PATH
18095
shlibpath_overrides_runpath=yes
18096
hardcode_into_libs=yes
18097
# ldd complains unless libraries are executable
18098
postinstall_cmds='chmod +x $lib'
18103
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18104
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18105
shlibpath_var=LD_LIBRARY_PATH
18106
shlibpath_overrides_runpath=yes
18107
if test "$with_gnu_ld" = yes; then
18115
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18116
soname_spec='${libname}${release}${shared_ext}$major'
18117
shlibpath_var=LD_LIBRARY_PATH
18118
case $host_vendor in
18120
shlibpath_overrides_runpath=no
18122
export_dynamic_flag_spec='${wl}-Blargedynsym'
18123
runpath_var=LD_RUN_PATH
18131
shlibpath_overrides_runpath=no
18132
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18138
if test -d /usr/nec ;then
18140
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18141
soname_spec='$libname${shared_ext}.$major'
18142
shlibpath_var=LD_LIBRARY_PATH
18146
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18147
version_type=freebsd-elf
18150
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18151
soname_spec='${libname}${release}${shared_ext}$major'
18152
shlibpath_var=LD_LIBRARY_PATH
18153
hardcode_into_libs=yes
18154
if test "$with_gnu_ld" = yes; then
18155
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18156
shlibpath_overrides_runpath=no
18158
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18159
shlibpath_overrides_runpath=yes
18162
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18166
sys_lib_dlsearch_path_spec='/usr/lib'
18171
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18172
soname_spec='${libname}${release}${shared_ext}$major'
18173
shlibpath_var=LD_LIBRARY_PATH
18180
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18181
echo "${ECHO_T}$dynamic_linker" >&6; }
18182
test "$dynamic_linker" = no && can_build_shared=no
18184
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18185
if test "$GCC" = yes; then
18186
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18189
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18190
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18191
hardcode_action_GCJ=
18192
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18193
test -n "$runpath_var_GCJ" || \
18194
test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18196
# We can hardcode non-existant directories.
18197
if test "$hardcode_direct_GCJ" != no &&
18198
# If the only mechanism to avoid hardcoding is shlibpath_var, we
18199
# have to relink, otherwise we might link with an installed library
18200
# when we should be linking with a yet-to-be-installed one
18201
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18202
test "$hardcode_minus_L_GCJ" != no; then
18203
# Linking always hardcodes the temporary library directory.
18204
hardcode_action_GCJ=relink
18206
# We can link without hardcoding, and we can hardcode nonexisting dirs.
18207
hardcode_action_GCJ=immediate
18210
# We cannot hardcode anything, or else we can only hardcode existing
18212
hardcode_action_GCJ=unsupported
18214
{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18215
echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18217
if test "$hardcode_action_GCJ" = relink; then
18218
# Fast installation is not supported
18219
enable_fast_install=no
18220
elif test "$shlibpath_overrides_runpath" = yes ||
18221
test "$enable_shared" = no; then
18222
# Fast installation is not necessary
18223
enable_fast_install=needless
18227
# The else clause should only fire when bootstrapping the
18228
# libtool distribution, otherwise you forgot to ship ltmain.sh
18229
# with your package, and you will get complaints that there are
18230
# no rules to generate ltmain.sh.
18231
if test -f "$ltmain"; then
18232
# See if we are running on zsh, and set the options which allow our commands through
18233
# without removal of \ escapes.
18234
if test -n "${ZSH_VERSION+set}" ; then
18235
setopt NO_GLOB_SUBST
18237
# Now quote all the things that may contain metacharacters while being
18238
# careful not to overquote the AC_SUBSTed values. We take copies of the
18239
# variables and quote the copies for generation of the libtool script.
18240
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18242
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18243
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18244
deplibs_check_method reload_flag reload_cmds need_locks \
18245
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18246
lt_cv_sys_global_symbol_to_c_name_address \
18247
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18248
old_postinstall_cmds old_postuninstall_cmds \
18252
lt_prog_compiler_wl_GCJ \
18253
lt_prog_compiler_pic_GCJ \
18254
lt_prog_compiler_static_GCJ \
18255
lt_prog_compiler_no_builtin_flag_GCJ \
18256
export_dynamic_flag_spec_GCJ \
18257
thread_safe_flag_spec_GCJ \
18258
whole_archive_flag_spec_GCJ \
18259
enable_shared_with_static_runtimes_GCJ \
18260
old_archive_cmds_GCJ \
18261
old_archive_from_new_cmds_GCJ \
18262
predep_objects_GCJ \
18263
postdep_objects_GCJ \
18266
compiler_lib_search_path_GCJ \
18268
archive_expsym_cmds_GCJ \
18269
postinstall_cmds_GCJ \
18270
postuninstall_cmds_GCJ \
18271
old_archive_from_expsyms_cmds_GCJ \
18272
allow_undefined_flag_GCJ \
18273
no_undefined_flag_GCJ \
18274
export_symbols_cmds_GCJ \
18275
hardcode_libdir_flag_spec_GCJ \
18276
hardcode_libdir_flag_spec_ld_GCJ \
18277
hardcode_libdir_separator_GCJ \
18278
hardcode_automatic_GCJ \
18280
module_expsym_cmds_GCJ \
18281
lt_cv_prog_compiler_c_o_GCJ \
18282
exclude_expsyms_GCJ \
18283
include_expsyms_GCJ; do
18286
old_archive_cmds_GCJ | \
18287
old_archive_from_new_cmds_GCJ | \
18288
archive_cmds_GCJ | \
18289
archive_expsym_cmds_GCJ | \
18290
module_cmds_GCJ | \
18291
module_expsym_cmds_GCJ | \
18292
old_archive_from_expsyms_cmds_GCJ | \
18293
export_symbols_cmds_GCJ | \
18294
extract_expsyms_cmds | reload_cmds | finish_cmds | \
18295
postinstall_cmds | postuninstall_cmds | \
18296
old_postinstall_cmds | old_postuninstall_cmds | \
18297
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18298
# Double-quote double-evaled strings.
18299
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18302
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18308
*'\$0 --fallback-echo"')
18309
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18315
cat <<__EOF__ >> "$cfgfile"
18316
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18318
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18320
# Shell to use when invoking shell scripts.
18323
# Whether or not to build shared libraries.
18324
build_libtool_libs=$enable_shared
18326
# Whether or not to build static libraries.
18327
build_old_libs=$enable_static
18329
# Whether or not to add -lc for building shared libraries.
18330
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18332
# Whether or not to disallow shared libs when runtime libs are static
18333
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18335
# Whether or not to optimize for fast installation.
18336
fast_install=$enable_fast_install
18339
host_alias=$host_alias
18343
# The build system.
18344
build_alias=$build_alias
18348
# An echo program that does not interpret backslashes.
18353
AR_FLAGS=$lt_AR_FLAGS
18358
# LTCC compiler flags.
18359
LTCFLAGS=$lt_LTCFLAGS
18361
# A language-specific compiler.
18362
CC=$lt_compiler_GCJ
18364
# Is the compiler the GNU C compiler?
18370
# The linker used to build libraries.
18373
# Whether we need hard or soft links.
18376
# A BSD-compatible nm program.
18379
# A symbol stripping program
18382
# Used to examine libraries when file_magic_cmd begins "file"
18383
MAGIC_CMD=$MAGIC_CMD
18385
# Used on cygwin: DLL creation program.
18388
# Used on cygwin: object dumper.
18391
# Used on cygwin: assembler.
18394
# The name of the directory that contains temporary libtool files.
18397
# How to create reloadable object files.
18398
reload_flag=$lt_reload_flag
18399
reload_cmds=$lt_reload_cmds
18401
# How to pass a linker flag through the compiler.
18402
wl=$lt_lt_prog_compiler_wl_GCJ
18404
# Object file suffix (normally "o").
18405
objext="$ac_objext"
18407
# Old archive suffix (normally "a").
18410
# Shared library suffix (normally ".so").
18411
shrext_cmds='$shrext_cmds'
18413
# Executable file suffix (normally "").
18416
# Additional compiler flags for building library objects.
18417
pic_flag=$lt_lt_prog_compiler_pic_GCJ
18420
# What is the maximum length of a command?
18421
max_cmd_len=$lt_cv_sys_max_cmd_len
18423
# Does compiler simultaneously support -c and -o options?
18424
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18426
# Must we lock files when doing compilation?
18427
need_locks=$lt_need_locks
18429
# Do we need the lib prefix for modules?
18430
need_lib_prefix=$need_lib_prefix
18432
# Do we need a version for libraries?
18433
need_version=$need_version
18435
# Whether dlopen is supported.
18436
dlopen_support=$enable_dlopen
18438
# Whether dlopen of programs is supported.
18439
dlopen_self=$enable_dlopen_self
18441
# Whether dlopen of statically linked programs is supported.
18442
dlopen_self_static=$enable_dlopen_self_static
18444
# Compiler flag to prevent dynamic linking.
18445
link_static_flag=$lt_lt_prog_compiler_static_GCJ
18447
# Compiler flag to turn off builtin functions.
18448
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18450
# Compiler flag to allow reflexive dlopens.
18451
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18453
# Compiler flag to generate shared objects directly from archives.
18454
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18456
# Compiler flag to generate thread-safe objects.
18457
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18459
# Library versioning type.
18460
version_type=$version_type
18462
# Format of library name prefix.
18463
libname_spec=$lt_libname_spec
18465
# List of archive names. First name is the real one, the rest are links.
18466
# The last name is the one that the linker finds with -lNAME.
18467
library_names_spec=$lt_library_names_spec
18469
# The coded name of the library, if different from the real name.
18470
soname_spec=$lt_soname_spec
18472
# Commands used to build and install an old-style archive.
18474
old_archive_cmds=$lt_old_archive_cmds_GCJ
18475
old_postinstall_cmds=$lt_old_postinstall_cmds
18476
old_postuninstall_cmds=$lt_old_postuninstall_cmds
18478
# Create an old-style archive from a shared archive.
18479
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18481
# Create a temporary old-style archive to link instead of a shared archive.
18482
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18484
# Commands used to build and install a shared archive.
18485
archive_cmds=$lt_archive_cmds_GCJ
18486
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18487
postinstall_cmds=$lt_postinstall_cmds
18488
postuninstall_cmds=$lt_postuninstall_cmds
18490
# Commands used to build a loadable module (assumed same as above if empty)
18491
module_cmds=$lt_module_cmds_GCJ
18492
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18494
# Commands to strip libraries.
18495
old_striplib=$lt_old_striplib
18496
striplib=$lt_striplib
18498
# Dependencies to place before the objects being linked to create a
18500
predep_objects=$lt_predep_objects_GCJ
18502
# Dependencies to place after the objects being linked to create a
18504
postdep_objects=$lt_postdep_objects_GCJ
18506
# Dependencies to place before the objects being linked to create a
18508
predeps=$lt_predeps_GCJ
18510
# Dependencies to place after the objects being linked to create a
18512
postdeps=$lt_postdeps_GCJ
18514
# The library search path used internally by the compiler when linking
18515
# a shared library.
18516
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18518
# Method to check whether dependent libraries are shared objects.
18519
deplibs_check_method=$lt_deplibs_check_method
18521
# Command to use when deplibs_check_method == file_magic.
18522
file_magic_cmd=$lt_file_magic_cmd
18524
# Flag that allows shared libraries with undefined symbols to be built.
18525
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18527
# Flag that forces no undefined symbols.
18528
no_undefined_flag=$lt_no_undefined_flag_GCJ
18530
# Commands used to finish a libtool library installation in a directory.
18531
finish_cmds=$lt_finish_cmds
18533
# Same as above, but a single script fragment to be evaled but not shown.
18534
finish_eval=$lt_finish_eval
18536
# Take the output of nm and produce a listing of raw symbols and C names.
18537
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18539
# Transform the output of nm in a proper C declaration
18540
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18542
# Transform the output of nm in a C name address pair
18543
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18545
# This is the shared library runtime path variable.
18546
runpath_var=$runpath_var
18548
# This is the shared library path variable.
18549
shlibpath_var=$shlibpath_var
18551
# Is shlibpath searched before the hard-coded library search path?
18552
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18554
# How to hardcode a shared library path into an executable.
18555
hardcode_action=$hardcode_action_GCJ
18557
# Whether we should hardcode library paths into libraries.
18558
hardcode_into_libs=$hardcode_into_libs
18560
# Flag to hardcode \$libdir into a binary during linking.
18561
# This must work even if \$libdir does not exist.
18562
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18564
# If ld is used when linking, flag to hardcode \$libdir into
18565
# a binary during linking. This must work even if \$libdir does
18567
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18569
# Whether we need a single -rpath flag with a separated argument.
18570
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18572
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18573
# resulting binary.
18574
hardcode_direct=$hardcode_direct_GCJ
18576
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18577
# resulting binary.
18578
hardcode_minus_L=$hardcode_minus_L_GCJ
18580
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18581
# the resulting binary.
18582
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18584
# Set to yes if building a shared library automatically hardcodes DIR into the library
18585
# and all subsequent libraries and executables linked against it.
18586
hardcode_automatic=$hardcode_automatic_GCJ
18588
# Variables whose values should be saved in libtool wrapper scripts and
18589
# restored at relink time.
18590
variables_saved_for_relink="$variables_saved_for_relink"
18592
# Whether libtool must link a program against all its dependency libraries.
18593
link_all_deplibs=$link_all_deplibs_GCJ
18595
# Compile-time system search path for libraries
18596
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18598
# Run-time system search path for libraries
18599
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18601
# Fix the shell variable \$srcfile for the compiler.
18602
fix_srcfile_path="$fix_srcfile_path_GCJ"
18604
# Set to yes if exported symbols are required.
18605
always_export_symbols=$always_export_symbols_GCJ
18607
# The commands to list exported symbols.
18608
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18610
# The commands to extract the exported symbol list from a shared archive.
18611
extract_expsyms_cmds=$lt_extract_expsyms_cmds
18613
# Symbols that should not be listed in the preloaded symbols.
18614
exclude_expsyms=$lt_exclude_expsyms_GCJ
18616
# Symbols that must always be exported.
18617
include_expsyms=$lt_include_expsyms_GCJ
18619
# ### END LIBTOOL TAG CONFIG: $tagname
18625
# If there is no Makefile yet, we rely on a make rule to execute
18626
# `config.status --recheck' to rerun these tests and create the
18627
# libtool script then.
18628
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18629
if test -f "$ltmain_in"; then
18630
test -f Makefile && make "$ltmain"
18636
ac_cpp='$CPP $CPPFLAGS'
18637
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18638
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18639
ac_compiler_gnu=$ac_cv_c_compiler_gnu
18651
# Source file extension for RC test sources.
18654
# Object file extension for compiled RC test sources.
18658
# Code to be used in simple compile tests
18659
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18661
# Code to be used in simple link tests
18662
lt_simple_link_test_code="$lt_simple_compile_test_code"
18664
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18666
# If no C compiler was specified, use CC.
18669
# If no C compiler flags were specified, use CFLAGS.
18670
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18672
# Allow CC to be a program name with arguments.
18676
# save warnings/boilerplate of simple test code
18677
ac_outfile=conftest.$ac_objext
18678
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18679
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18680
_lt_compiler_boilerplate=`cat conftest.err`
18683
ac_outfile=conftest.$ac_objext
18684
printf "$lt_simple_link_test_code" >conftest.$ac_ext
18685
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18686
_lt_linker_boilerplate=`cat conftest.err`
18690
# Allow CC to be a program name with arguments.
18695
for cc_temp in $compiler""; do
18697
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18698
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18703
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18705
lt_cv_prog_compiler_c_o_RC=yes
18707
# The else clause should only fire when bootstrapping the
18708
# libtool distribution, otherwise you forgot to ship ltmain.sh
18709
# with your package, and you will get complaints that there are
18710
# no rules to generate ltmain.sh.
18711
if test -f "$ltmain"; then
18712
# See if we are running on zsh, and set the options which allow our commands through
18713
# without removal of \ escapes.
18714
if test -n "${ZSH_VERSION+set}" ; then
18715
setopt NO_GLOB_SUBST
18717
# Now quote all the things that may contain metacharacters while being
18718
# careful not to overquote the AC_SUBSTed values. We take copies of the
18719
# variables and quote the copies for generation of the libtool script.
18720
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18722
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18723
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18724
deplibs_check_method reload_flag reload_cmds need_locks \
18725
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18726
lt_cv_sys_global_symbol_to_c_name_address \
18727
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18728
old_postinstall_cmds old_postuninstall_cmds \
18732
lt_prog_compiler_wl_RC \
18733
lt_prog_compiler_pic_RC \
18734
lt_prog_compiler_static_RC \
18735
lt_prog_compiler_no_builtin_flag_RC \
18736
export_dynamic_flag_spec_RC \
18737
thread_safe_flag_spec_RC \
18738
whole_archive_flag_spec_RC \
18739
enable_shared_with_static_runtimes_RC \
18740
old_archive_cmds_RC \
18741
old_archive_from_new_cmds_RC \
18742
predep_objects_RC \
18743
postdep_objects_RC \
18746
compiler_lib_search_path_RC \
18748
archive_expsym_cmds_RC \
18749
postinstall_cmds_RC \
18750
postuninstall_cmds_RC \
18751
old_archive_from_expsyms_cmds_RC \
18752
allow_undefined_flag_RC \
18753
no_undefined_flag_RC \
18754
export_symbols_cmds_RC \
18755
hardcode_libdir_flag_spec_RC \
18756
hardcode_libdir_flag_spec_ld_RC \
18757
hardcode_libdir_separator_RC \
18758
hardcode_automatic_RC \
18760
module_expsym_cmds_RC \
18761
lt_cv_prog_compiler_c_o_RC \
18762
exclude_expsyms_RC \
18763
include_expsyms_RC; do
18766
old_archive_cmds_RC | \
18767
old_archive_from_new_cmds_RC | \
18768
archive_cmds_RC | \
18769
archive_expsym_cmds_RC | \
18771
module_expsym_cmds_RC | \
18772
old_archive_from_expsyms_cmds_RC | \
18773
export_symbols_cmds_RC | \
18774
extract_expsyms_cmds | reload_cmds | finish_cmds | \
18775
postinstall_cmds | postuninstall_cmds | \
18776
old_postinstall_cmds | old_postuninstall_cmds | \
18777
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18778
# Double-quote double-evaled strings.
18779
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18782
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18788
*'\$0 --fallback-echo"')
18789
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18795
cat <<__EOF__ >> "$cfgfile"
18796
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18798
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18800
# Shell to use when invoking shell scripts.
18803
# Whether or not to build shared libraries.
18804
build_libtool_libs=$enable_shared
18806
# Whether or not to build static libraries.
18807
build_old_libs=$enable_static
18809
# Whether or not to add -lc for building shared libraries.
18810
build_libtool_need_lc=$archive_cmds_need_lc_RC
18812
# Whether or not to disallow shared libs when runtime libs are static
18813
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18815
# Whether or not to optimize for fast installation.
18816
fast_install=$enable_fast_install
18819
host_alias=$host_alias
18823
# The build system.
18824
build_alias=$build_alias
18828
# An echo program that does not interpret backslashes.
18833
AR_FLAGS=$lt_AR_FLAGS
18838
# LTCC compiler flags.
18839
LTCFLAGS=$lt_LTCFLAGS
18841
# A language-specific compiler.
18844
# Is the compiler the GNU C compiler?
18850
# The linker used to build libraries.
18853
# Whether we need hard or soft links.
18856
# A BSD-compatible nm program.
18859
# A symbol stripping program
18862
# Used to examine libraries when file_magic_cmd begins "file"
18863
MAGIC_CMD=$MAGIC_CMD
18865
# Used on cygwin: DLL creation program.
18868
# Used on cygwin: object dumper.
18871
# Used on cygwin: assembler.
18874
# The name of the directory that contains temporary libtool files.
18877
# How to create reloadable object files.
18878
reload_flag=$lt_reload_flag
18879
reload_cmds=$lt_reload_cmds
18881
# How to pass a linker flag through the compiler.
18882
wl=$lt_lt_prog_compiler_wl_RC
18884
# Object file suffix (normally "o").
18885
objext="$ac_objext"
18887
# Old archive suffix (normally "a").
18890
# Shared library suffix (normally ".so").
18891
shrext_cmds='$shrext_cmds'
18893
# Executable file suffix (normally "").
18896
# Additional compiler flags for building library objects.
18897
pic_flag=$lt_lt_prog_compiler_pic_RC
18900
# What is the maximum length of a command?
18901
max_cmd_len=$lt_cv_sys_max_cmd_len
18903
# Does compiler simultaneously support -c and -o options?
18904
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18906
# Must we lock files when doing compilation?
18907
need_locks=$lt_need_locks
18909
# Do we need the lib prefix for modules?
18910
need_lib_prefix=$need_lib_prefix
18912
# Do we need a version for libraries?
18913
need_version=$need_version
18915
# Whether dlopen is supported.
18916
dlopen_support=$enable_dlopen
18918
# Whether dlopen of programs is supported.
18919
dlopen_self=$enable_dlopen_self
18921
# Whether dlopen of statically linked programs is supported.
18922
dlopen_self_static=$enable_dlopen_self_static
18924
# Compiler flag to prevent dynamic linking.
18925
link_static_flag=$lt_lt_prog_compiler_static_RC
18927
# Compiler flag to turn off builtin functions.
18928
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18930
# Compiler flag to allow reflexive dlopens.
18931
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18933
# Compiler flag to generate shared objects directly from archives.
18934
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18936
# Compiler flag to generate thread-safe objects.
18937
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18939
# Library versioning type.
18940
version_type=$version_type
18942
# Format of library name prefix.
18943
libname_spec=$lt_libname_spec
18945
# List of archive names. First name is the real one, the rest are links.
18946
# The last name is the one that the linker finds with -lNAME.
18947
library_names_spec=$lt_library_names_spec
18949
# The coded name of the library, if different from the real name.
18950
soname_spec=$lt_soname_spec
18952
# Commands used to build and install an old-style archive.
18954
old_archive_cmds=$lt_old_archive_cmds_RC
18955
old_postinstall_cmds=$lt_old_postinstall_cmds
18956
old_postuninstall_cmds=$lt_old_postuninstall_cmds
18958
# Create an old-style archive from a shared archive.
18959
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18961
# Create a temporary old-style archive to link instead of a shared archive.
18962
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18964
# Commands used to build and install a shared archive.
18965
archive_cmds=$lt_archive_cmds_RC
18966
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18967
postinstall_cmds=$lt_postinstall_cmds
18968
postuninstall_cmds=$lt_postuninstall_cmds
18970
# Commands used to build a loadable module (assumed same as above if empty)
18971
module_cmds=$lt_module_cmds_RC
18972
module_expsym_cmds=$lt_module_expsym_cmds_RC
18974
# Commands to strip libraries.
18975
old_striplib=$lt_old_striplib
18976
striplib=$lt_striplib
18978
# Dependencies to place before the objects being linked to create a
18980
predep_objects=$lt_predep_objects_RC
18982
# Dependencies to place after the objects being linked to create a
18984
postdep_objects=$lt_postdep_objects_RC
18986
# Dependencies to place before the objects being linked to create a
18988
predeps=$lt_predeps_RC
18990
# Dependencies to place after the objects being linked to create a
18992
postdeps=$lt_postdeps_RC
18994
# The library search path used internally by the compiler when linking
18995
# a shared library.
18996
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18998
# Method to check whether dependent libraries are shared objects.
18999
deplibs_check_method=$lt_deplibs_check_method
19001
# Command to use when deplibs_check_method == file_magic.
19002
file_magic_cmd=$lt_file_magic_cmd
19004
# Flag that allows shared libraries with undefined symbols to be built.
19005
allow_undefined_flag=$lt_allow_undefined_flag_RC
19007
# Flag that forces no undefined symbols.
19008
no_undefined_flag=$lt_no_undefined_flag_RC
19010
# Commands used to finish a libtool library installation in a directory.
19011
finish_cmds=$lt_finish_cmds
19013
# Same as above, but a single script fragment to be evaled but not shown.
19014
finish_eval=$lt_finish_eval
19016
# Take the output of nm and produce a listing of raw symbols and C names.
19017
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19019
# Transform the output of nm in a proper C declaration
19020
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19022
# Transform the output of nm in a C name address pair
19023
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19025
# This is the shared library runtime path variable.
19026
runpath_var=$runpath_var
19028
# This is the shared library path variable.
19029
shlibpath_var=$shlibpath_var
19031
# Is shlibpath searched before the hard-coded library search path?
19032
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19034
# How to hardcode a shared library path into an executable.
19035
hardcode_action=$hardcode_action_RC
19037
# Whether we should hardcode library paths into libraries.
19038
hardcode_into_libs=$hardcode_into_libs
19040
# Flag to hardcode \$libdir into a binary during linking.
19041
# This must work even if \$libdir does not exist.
19042
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19044
# If ld is used when linking, flag to hardcode \$libdir into
19045
# a binary during linking. This must work even if \$libdir does
19047
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19049
# Whether we need a single -rpath flag with a separated argument.
19050
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19052
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19053
# resulting binary.
19054
hardcode_direct=$hardcode_direct_RC
19056
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19057
# resulting binary.
19058
hardcode_minus_L=$hardcode_minus_L_RC
19060
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19061
# the resulting binary.
19062
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19064
# Set to yes if building a shared library automatically hardcodes DIR into the library
19065
# and all subsequent libraries and executables linked against it.
19066
hardcode_automatic=$hardcode_automatic_RC
19068
# Variables whose values should be saved in libtool wrapper scripts and
19069
# restored at relink time.
19070
variables_saved_for_relink="$variables_saved_for_relink"
19072
# Whether libtool must link a program against all its dependency libraries.
19073
link_all_deplibs=$link_all_deplibs_RC
19075
# Compile-time system search path for libraries
19076
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19078
# Run-time system search path for libraries
19079
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19081
# Fix the shell variable \$srcfile for the compiler.
19082
fix_srcfile_path="$fix_srcfile_path_RC"
19084
# Set to yes if exported symbols are required.
19085
always_export_symbols=$always_export_symbols_RC
19087
# The commands to list exported symbols.
19088
export_symbols_cmds=$lt_export_symbols_cmds_RC
19090
# The commands to extract the exported symbol list from a shared archive.
19091
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19093
# Symbols that should not be listed in the preloaded symbols.
19094
exclude_expsyms=$lt_exclude_expsyms_RC
19096
# Symbols that must always be exported.
19097
include_expsyms=$lt_include_expsyms_RC
19099
# ### END LIBTOOL TAG CONFIG: $tagname
19105
# If there is no Makefile yet, we rely on a make rule to execute
19106
# `config.status --recheck' to rerun these tests and create the
19107
# libtool script then.
19108
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19109
if test -f "$ltmain_in"; then
19110
test -f Makefile && make "$ltmain"
19116
ac_cpp='$CPP $CPPFLAGS'
19117
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19118
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19119
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19126
{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19127
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19128
{ (exit 1); exit 1; }; }
19132
# Append the new tag name to the list of available tags.
19133
if test -n "$tagname" ; then
19134
available_tags="$available_tags $tagname"
19140
# Now substitute the updated list of available tags.
19141
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19142
mv "${ofile}T" "$ofile"
19146
{ { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19147
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19148
{ (exit 1); exit 1; }; }
19154
# This can be used to rebuild libtool when needed
19155
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19157
# Always use our own libtool.
19158
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19160
# Prevent multiple expansion
19185
ac_cpp='$CPP $CPPFLAGS'
19186
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19187
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19188
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19189
if test -n "$ac_tool_prefix"; then
19190
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19191
set dummy ${ac_tool_prefix}gcc; ac_word=$2
19192
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19193
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19194
if test "${ac_cv_prog_CC+set}" = set; then
19195
echo $ECHO_N "(cached) $ECHO_C" >&6
19197
if test -n "$CC"; then
19198
ac_cv_prog_CC="$CC" # Let the user override the test.
19200
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19201
for as_dir in $PATH
19204
test -z "$as_dir" && as_dir=.
19205
for ac_exec_ext in '' $ac_executable_extensions; do
19206
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19207
ac_cv_prog_CC="${ac_tool_prefix}gcc"
19208
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19218
if test -n "$CC"; then
19219
{ echo "$as_me:$LINENO: result: $CC" >&5
19220
echo "${ECHO_T}$CC" >&6; }
19222
{ echo "$as_me:$LINENO: result: no" >&5
19223
echo "${ECHO_T}no" >&6; }
19228
if test -z "$ac_cv_prog_CC"; then
19230
# Extract the first word of "gcc", so it can be a program name with args.
19231
set dummy gcc; ac_word=$2
19232
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19233
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19234
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19235
echo $ECHO_N "(cached) $ECHO_C" >&6
19237
if test -n "$ac_ct_CC"; then
19238
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19240
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19241
for as_dir in $PATH
19244
test -z "$as_dir" && as_dir=.
19245
for ac_exec_ext in '' $ac_executable_extensions; do
19246
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19247
ac_cv_prog_ac_ct_CC="gcc"
19248
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19257
ac_ct_CC=$ac_cv_prog_ac_ct_CC
19258
if test -n "$ac_ct_CC"; then
19259
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19260
echo "${ECHO_T}$ac_ct_CC" >&6; }
19262
{ echo "$as_me:$LINENO: result: no" >&5
19263
echo "${ECHO_T}no" >&6; }
19266
if test "x$ac_ct_CC" = x; then
19269
case $cross_compiling:$ac_tool_warned in
19271
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19272
whose name does not start with the host triplet. If you think this
19273
configuration is useful to you, please write to autoconf@gnu.org." >&5
19274
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19275
whose name does not start with the host triplet. If you think this
19276
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19277
ac_tool_warned=yes ;;
19282
CC="$ac_cv_prog_CC"
19285
if test -z "$CC"; then
19286
if test -n "$ac_tool_prefix"; then
19287
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
19288
set dummy ${ac_tool_prefix}cc; ac_word=$2
19289
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19290
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19291
if test "${ac_cv_prog_CC+set}" = set; then
19292
echo $ECHO_N "(cached) $ECHO_C" >&6
19294
if test -n "$CC"; then
19295
ac_cv_prog_CC="$CC" # Let the user override the test.
19297
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19298
for as_dir in $PATH
19301
test -z "$as_dir" && as_dir=.
19302
for ac_exec_ext in '' $ac_executable_extensions; do
19303
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19304
ac_cv_prog_CC="${ac_tool_prefix}cc"
19305
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19315
if test -n "$CC"; then
19316
{ echo "$as_me:$LINENO: result: $CC" >&5
19317
echo "${ECHO_T}$CC" >&6; }
19319
{ echo "$as_me:$LINENO: result: no" >&5
19320
echo "${ECHO_T}no" >&6; }
19326
if test -z "$CC"; then
19327
# Extract the first word of "cc", so it can be a program name with args.
19328
set dummy cc; ac_word=$2
19329
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19330
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19331
if test "${ac_cv_prog_CC+set}" = set; then
19332
echo $ECHO_N "(cached) $ECHO_C" >&6
19334
if test -n "$CC"; then
19335
ac_cv_prog_CC="$CC" # Let the user override the test.
19337
ac_prog_rejected=no
19338
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19339
for as_dir in $PATH
19342
test -z "$as_dir" && as_dir=.
19343
for ac_exec_ext in '' $ac_executable_extensions; do
19344
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19345
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
19346
ac_prog_rejected=yes
19350
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19357
if test $ac_prog_rejected = yes; then
19358
# We found a bogon in the path, so make sure we never use it.
19359
set dummy $ac_cv_prog_CC
19361
if test $@%:@ != 0; then
19362
# We chose a different compiler from the bogus one.
19363
# However, it has the same basename, so the bogon will be chosen
19364
# first if we set CC to just the basename; use the full file name.
19366
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
19372
if test -n "$CC"; then
19373
{ echo "$as_me:$LINENO: result: $CC" >&5
19374
echo "${ECHO_T}$CC" >&6; }
19376
{ echo "$as_me:$LINENO: result: no" >&5
19377
echo "${ECHO_T}no" >&6; }
19382
if test -z "$CC"; then
19383
if test -n "$ac_tool_prefix"; then
19384
for ac_prog in cl.exe
19386
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19387
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19388
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19389
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19390
if test "${ac_cv_prog_CC+set}" = set; then
19391
echo $ECHO_N "(cached) $ECHO_C" >&6
19393
if test -n "$CC"; then
19394
ac_cv_prog_CC="$CC" # Let the user override the test.
19396
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19397
for as_dir in $PATH
19400
test -z "$as_dir" && as_dir=.
19401
for ac_exec_ext in '' $ac_executable_extensions; do
19402
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19403
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19404
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19414
if test -n "$CC"; then
19415
{ echo "$as_me:$LINENO: result: $CC" >&5
19416
echo "${ECHO_T}$CC" >&6; }
19418
{ echo "$as_me:$LINENO: result: no" >&5
19419
echo "${ECHO_T}no" >&6; }
19423
test -n "$CC" && break
19426
if test -z "$CC"; then
19428
for ac_prog in cl.exe
19430
# Extract the first word of "$ac_prog", so it can be a program name with args.
19431
set dummy $ac_prog; ac_word=$2
19432
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19433
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19434
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19435
echo $ECHO_N "(cached) $ECHO_C" >&6
19437
if test -n "$ac_ct_CC"; then
19438
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19440
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19441
for as_dir in $PATH
19444
test -z "$as_dir" && as_dir=.
19445
for ac_exec_ext in '' $ac_executable_extensions; do
19446
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19447
ac_cv_prog_ac_ct_CC="$ac_prog"
19448
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19457
ac_ct_CC=$ac_cv_prog_ac_ct_CC
19458
if test -n "$ac_ct_CC"; then
19459
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19460
echo "${ECHO_T}$ac_ct_CC" >&6; }
19462
{ echo "$as_me:$LINENO: result: no" >&5
19463
echo "${ECHO_T}no" >&6; }
19467
test -n "$ac_ct_CC" && break
19470
if test "x$ac_ct_CC" = x; then
19473
case $cross_compiling:$ac_tool_warned in
19475
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19476
whose name does not start with the host triplet. If you think this
19477
configuration is useful to you, please write to autoconf@gnu.org." >&5
19478
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19479
whose name does not start with the host triplet. If you think this
19480
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19481
ac_tool_warned=yes ;;
19490
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19491
See \`config.log' for more details." >&5
19492
echo "$as_me: error: no acceptable C compiler found in \$PATH
19493
See \`config.log' for more details." >&2;}
19494
{ (exit 1); exit 1; }; }
19496
# Provide some information about the compiler.
19497
echo "$as_me:$LINENO: checking for C compiler version" >&5
19498
ac_compiler=`set X $ac_compile; echo $2`
19499
{ (ac_try="$ac_compiler --version >&5"
19500
case "(($ac_try" in
19501
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19502
*) ac_try_echo=$ac_try;;
19504
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19505
(eval "$ac_compiler --version >&5") 2>&5
19507
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19508
(exit $ac_status); }
19509
{ (ac_try="$ac_compiler -v >&5"
19510
case "(($ac_try" in
19511
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19512
*) ac_try_echo=$ac_try;;
19514
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19515
(eval "$ac_compiler -v >&5") 2>&5
19517
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19518
(exit $ac_status); }
19519
{ (ac_try="$ac_compiler -V >&5"
19520
case "(($ac_try" in
19521
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19522
*) ac_try_echo=$ac_try;;
19524
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19525
(eval "$ac_compiler -V >&5") 2>&5
19527
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19528
(exit $ac_status); }
19530
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19531
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
19532
if test "${ac_cv_c_compiler_gnu+set}" = set; then
19533
echo $ECHO_N "(cached) $ECHO_C" >&6
19535
cat >conftest.$ac_ext <<_ACEOF
19538
cat confdefs.h >>conftest.$ac_ext
19539
cat >>conftest.$ac_ext <<_ACEOF
19540
/* end confdefs.h. */
19553
rm -f conftest.$ac_objext
19554
if { (ac_try="$ac_compile"
19555
case "(($ac_try" in
19556
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19557
*) ac_try_echo=$ac_try;;
19559
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19560
(eval "$ac_compile") 2>conftest.er1
19562
grep -v '^ *+' conftest.er1 >conftest.err
19564
cat conftest.err >&5
19565
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19566
(exit $ac_status); } && {
19567
test -z "$ac_c_werror_flag" ||
19568
test ! -s conftest.err
19569
} && test -s conftest.$ac_objext; then
19570
ac_compiler_gnu=yes
19572
echo "$as_me: failed program was:" >&5
19573
sed 's/^/| /' conftest.$ac_ext >&5
19578
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19579
ac_cv_c_compiler_gnu=$ac_compiler_gnu
19582
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19583
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
19584
GCC=`test $ac_compiler_gnu = yes && echo yes`
19585
ac_test_CFLAGS=${CFLAGS+set}
19586
ac_save_CFLAGS=$CFLAGS
19587
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19588
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
19589
if test "${ac_cv_prog_cc_g+set}" = set; then
19590
echo $ECHO_N "(cached) $ECHO_C" >&6
19592
ac_save_c_werror_flag=$ac_c_werror_flag
19593
ac_c_werror_flag=yes
19596
cat >conftest.$ac_ext <<_ACEOF
19599
cat confdefs.h >>conftest.$ac_ext
19600
cat >>conftest.$ac_ext <<_ACEOF
19601
/* end confdefs.h. */
19611
rm -f conftest.$ac_objext
19612
if { (ac_try="$ac_compile"
19613
case "(($ac_try" in
19614
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19615
*) ac_try_echo=$ac_try;;
19617
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19618
(eval "$ac_compile") 2>conftest.er1
19620
grep -v '^ *+' conftest.er1 >conftest.err
19622
cat conftest.err >&5
19623
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19624
(exit $ac_status); } && {
19625
test -z "$ac_c_werror_flag" ||
19626
test ! -s conftest.err
19627
} && test -s conftest.$ac_objext; then
19628
ac_cv_prog_cc_g=yes
19630
echo "$as_me: failed program was:" >&5
19631
sed 's/^/| /' conftest.$ac_ext >&5
19634
cat >conftest.$ac_ext <<_ACEOF
19637
cat confdefs.h >>conftest.$ac_ext
19638
cat >>conftest.$ac_ext <<_ACEOF
19639
/* end confdefs.h. */
19649
rm -f conftest.$ac_objext
19650
if { (ac_try="$ac_compile"
19651
case "(($ac_try" in
19652
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19653
*) ac_try_echo=$ac_try;;
19655
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19656
(eval "$ac_compile") 2>conftest.er1
19658
grep -v '^ *+' conftest.er1 >conftest.err
19660
cat conftest.err >&5
19661
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19662
(exit $ac_status); } && {
19663
test -z "$ac_c_werror_flag" ||
19664
test ! -s conftest.err
19665
} && test -s conftest.$ac_objext; then
19668
echo "$as_me: failed program was:" >&5
19669
sed 's/^/| /' conftest.$ac_ext >&5
19671
ac_c_werror_flag=$ac_save_c_werror_flag
19673
cat >conftest.$ac_ext <<_ACEOF
19676
cat confdefs.h >>conftest.$ac_ext
19677
cat >>conftest.$ac_ext <<_ACEOF
19678
/* end confdefs.h. */
19688
rm -f conftest.$ac_objext
19689
if { (ac_try="$ac_compile"
19690
case "(($ac_try" in
19691
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19692
*) ac_try_echo=$ac_try;;
19694
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19695
(eval "$ac_compile") 2>conftest.er1
19697
grep -v '^ *+' conftest.er1 >conftest.err
19699
cat conftest.err >&5
19700
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19701
(exit $ac_status); } && {
19702
test -z "$ac_c_werror_flag" ||
19703
test ! -s conftest.err
19704
} && test -s conftest.$ac_objext; then
19705
ac_cv_prog_cc_g=yes
19707
echo "$as_me: failed program was:" >&5
19708
sed 's/^/| /' conftest.$ac_ext >&5
19713
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19716
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19719
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19720
ac_c_werror_flag=$ac_save_c_werror_flag
19722
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19723
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
19724
if test "$ac_test_CFLAGS" = set; then
19725
CFLAGS=$ac_save_CFLAGS
19726
elif test $ac_cv_prog_cc_g = yes; then
19727
if test "$GCC" = yes; then
19733
if test "$GCC" = yes; then
19739
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
19740
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
19741
if test "${ac_cv_prog_cc_c89+set}" = set; then
19742
echo $ECHO_N "(cached) $ECHO_C" >&6
19744
ac_cv_prog_cc_c89=no
19746
cat >conftest.$ac_ext <<_ACEOF
19749
cat confdefs.h >>conftest.$ac_ext
19750
cat >>conftest.$ac_ext <<_ACEOF
19751
/* end confdefs.h. */
19752
#include <stdarg.h>
19754
#include <sys/types.h>
19755
#include <sys/stat.h>
19756
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
19757
struct buf { int x; };
19758
FILE * (*rcsopen) (struct buf *, struct stat *, int);
19759
static char *e (p, i)
19765
static char *f (char * (*g) (char **, int), char **p, ...)
19770
s = g (p, va_arg (v,int));
19775
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
19776
function prototypes and stuff, but not '\xHH' hex character constants.
19777
These don't provoke an error unfortunately, instead are silently treated
19778
as 'x'. The following induces an error, until -std is added to get
19779
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
19780
array size at least. It's necessary to write '\x00'==0 to get something
19781
that's true only with -std. */
19782
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19784
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
19785
inside strings and character constants. */
19787
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
19789
int test (int i, double x);
19790
struct s1 {int (*f) (int a);};
19791
struct s2 {int (*f) (double a);};
19792
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19798
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
19803
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
19804
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19806
CC="$ac_save_CC $ac_arg"
19807
rm -f conftest.$ac_objext
19808
if { (ac_try="$ac_compile"
19809
case "(($ac_try" in
19810
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19811
*) ac_try_echo=$ac_try;;
19813
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19814
(eval "$ac_compile") 2>conftest.er1
19816
grep -v '^ *+' conftest.er1 >conftest.err
19818
cat conftest.err >&5
19819
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19820
(exit $ac_status); } && {
19821
test -z "$ac_c_werror_flag" ||
19822
test ! -s conftest.err
19823
} && test -s conftest.$ac_objext; then
19824
ac_cv_prog_cc_c89=$ac_arg
19826
echo "$as_me: failed program was:" >&5
19827
sed 's/^/| /' conftest.$ac_ext >&5
19832
rm -f core conftest.err conftest.$ac_objext
19833
test "x$ac_cv_prog_cc_c89" != "xno" && break
19835
rm -f conftest.$ac_ext
19840
case "x$ac_cv_prog_cc_c89" in
19842
{ echo "$as_me:$LINENO: result: none needed" >&5
19843
echo "${ECHO_T}none needed" >&6; } ;;
19845
{ echo "$as_me:$LINENO: result: unsupported" >&5
19846
echo "${ECHO_T}unsupported" >&6; } ;;
19848
CC="$CC $ac_cv_prog_cc_c89"
19849
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
19850
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
19855
ac_cpp='$CPP $CPPFLAGS'
19856
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19857
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19858
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19860
depcc="$CC" am_compiler_list=
19862
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19863
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
19864
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
19865
echo $ECHO_N "(cached) $ECHO_C" >&6
19867
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19868
# We make a subdir and do the tests there. Otherwise we can end up
19869
# making bogus files that we don't know about and never remove. For
19870
# instance it was reported that on HP-UX the gcc test will end up
19871
# making a dummy file named `D' -- because `-MD' means `put the output
19874
# Copy depcomp to subdir because otherwise we won't find it if we're
19875
# using a relative directory.
19876
cp "$am_depcomp" conftest.dir
19878
# We will build objects and dependencies in a subdirectory because
19879
# it helps to detect inapplicable dependency modes. For instance
19880
# both Tru64's cc and ICC support -MD to output dependencies as a
19881
# side effect of compilation, but ICC will put the dependencies in
19882
# the current directory while Tru64 will put them in the object
19886
am_cv_CC_dependencies_compiler_type=none
19887
if test "$am_compiler_list" = ""; then
19888
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19890
for depmode in $am_compiler_list; do
19891
# Setup a source with many dependencies, because some compilers
19892
# like to wrap large dependency lists on column 80 (with \), and
19893
# we should not choose a depcomp mode which is confused by this.
19895
# We need to recreate these files for each test, as the compiler may
19896
# overwrite some of them when testing with obscure command lines.
19897
# This happens at least with the AIX C compiler.
19899
for i in 1 2 3 4 5 6; do
19900
echo '#include "conftst'$i'.h"' >> sub/conftest.c
19901
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19902
# Solaris 8's {/usr,}/bin/sh.
19903
touch sub/conftst$i.h
19905
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19909
# after this tag, mechanisms are not by side-effect, so they'll
19910
# only be used when explicitly requested
19911
if test "x$enable_dependency_tracking" = xyes; then
19919
# We check with `-c' and `-o' for the sake of the "dashmstdout"
19920
# mode. It turns out that the SunPro C++ compiler does not properly
19921
# handle `-M -o', and we need to detect this.
19922
if depmode=$depmode \
19923
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19924
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19925
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19926
>/dev/null 2>conftest.err &&
19927
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
19928
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19929
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19930
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19931
# icc doesn't choke on unknown options, it will just issue warnings
19932
# or remarks (even with -Werror). So we grep stderr for any message
19933
# that says an option was ignored or not supported.
19934
# When given -MP, icc 7.0 and 7.1 complain thusly:
19935
# icc: Command line warning: ignoring option '-M'; no argument required
19936
# The diagnosis changed in icc 8.0:
19937
# icc: Command line remark: option '-MP' not supported
19938
if (grep 'ignoring option' conftest.err ||
19939
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19940
am_cv_CC_dependencies_compiler_type=$depmode
19947
rm -rf conftest.dir
19949
am_cv_CC_dependencies_compiler_type=none
19953
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
19954
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
19955
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
19958
test "x$enable_dependency_tracking" != xno \
19959
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
19960
am__fastdepCC_TRUE=
19961
am__fastdepCC_FALSE='#'
19963
am__fastdepCC_TRUE='#'
19964
am__fastdepCC_FALSE=
19969
ac_cpp='$CPP $CPPFLAGS'
19970
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19971
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19972
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19973
if test -n "$ac_tool_prefix"; then
19974
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19975
set dummy ${ac_tool_prefix}gcc; ac_word=$2
19976
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19977
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19978
if test "${ac_cv_prog_CC+set}" = set; then
19979
echo $ECHO_N "(cached) $ECHO_C" >&6
19981
if test -n "$CC"; then
19982
ac_cv_prog_CC="$CC" # Let the user override the test.
19984
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19985
for as_dir in $PATH
19988
test -z "$as_dir" && as_dir=.
19989
for ac_exec_ext in '' $ac_executable_extensions; do
19990
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19991
ac_cv_prog_CC="${ac_tool_prefix}gcc"
19992
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20002
if test -n "$CC"; then
20003
{ echo "$as_me:$LINENO: result: $CC" >&5
20004
echo "${ECHO_T}$CC" >&6; }
20006
{ echo "$as_me:$LINENO: result: no" >&5
20007
echo "${ECHO_T}no" >&6; }
20012
if test -z "$ac_cv_prog_CC"; then
20014
# Extract the first word of "gcc", so it can be a program name with args.
20015
set dummy gcc; ac_word=$2
20016
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20017
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20018
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
20019
echo $ECHO_N "(cached) $ECHO_C" >&6
20021
if test -n "$ac_ct_CC"; then
20022
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
20024
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20025
for as_dir in $PATH
20028
test -z "$as_dir" && as_dir=.
20029
for ac_exec_ext in '' $ac_executable_extensions; do
20030
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20031
ac_cv_prog_ac_ct_CC="gcc"
20032
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20041
ac_ct_CC=$ac_cv_prog_ac_ct_CC
20042
if test -n "$ac_ct_CC"; then
20043
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
20044
echo "${ECHO_T}$ac_ct_CC" >&6; }
20046
{ echo "$as_me:$LINENO: result: no" >&5
20047
echo "${ECHO_T}no" >&6; }
20050
if test "x$ac_ct_CC" = x; then
20053
case $cross_compiling:$ac_tool_warned in
20055
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20056
whose name does not start with the host triplet. If you think this
20057
configuration is useful to you, please write to autoconf@gnu.org." >&5
20058
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20059
whose name does not start with the host triplet. If you think this
20060
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20061
ac_tool_warned=yes ;;
20066
CC="$ac_cv_prog_CC"
20069
if test -z "$CC"; then
20070
if test -n "$ac_tool_prefix"; then
20071
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
20072
set dummy ${ac_tool_prefix}cc; ac_word=$2
20073
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20074
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20075
if test "${ac_cv_prog_CC+set}" = set; then
20076
echo $ECHO_N "(cached) $ECHO_C" >&6
20078
if test -n "$CC"; then
20079
ac_cv_prog_CC="$CC" # Let the user override the test.
20081
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20082
for as_dir in $PATH
20085
test -z "$as_dir" && as_dir=.
20086
for ac_exec_ext in '' $ac_executable_extensions; do
20087
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20088
ac_cv_prog_CC="${ac_tool_prefix}cc"
20089
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20099
if test -n "$CC"; then
20100
{ echo "$as_me:$LINENO: result: $CC" >&5
20101
echo "${ECHO_T}$CC" >&6; }
20103
{ echo "$as_me:$LINENO: result: no" >&5
20104
echo "${ECHO_T}no" >&6; }
20110
if test -z "$CC"; then
20111
# Extract the first word of "cc", so it can be a program name with args.
20112
set dummy cc; ac_word=$2
20113
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20114
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20115
if test "${ac_cv_prog_CC+set}" = set; then
20116
echo $ECHO_N "(cached) $ECHO_C" >&6
20118
if test -n "$CC"; then
20119
ac_cv_prog_CC="$CC" # Let the user override the test.
20121
ac_prog_rejected=no
20122
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20123
for as_dir in $PATH
20126
test -z "$as_dir" && as_dir=.
20127
for ac_exec_ext in '' $ac_executable_extensions; do
20128
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20129
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
20130
ac_prog_rejected=yes
20134
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20141
if test $ac_prog_rejected = yes; then
20142
# We found a bogon in the path, so make sure we never use it.
20143
set dummy $ac_cv_prog_CC
20145
if test $@%:@ != 0; then
20146
# We chose a different compiler from the bogus one.
20147
# However, it has the same basename, so the bogon will be chosen
20148
# first if we set CC to just the basename; use the full file name.
20150
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
20156
if test -n "$CC"; then
20157
{ echo "$as_me:$LINENO: result: $CC" >&5
20158
echo "${ECHO_T}$CC" >&6; }
20160
{ echo "$as_me:$LINENO: result: no" >&5
20161
echo "${ECHO_T}no" >&6; }
20166
if test -z "$CC"; then
20167
if test -n "$ac_tool_prefix"; then
20168
for ac_prog in cl.exe
20170
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20171
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20172
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20173
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20174
if test "${ac_cv_prog_CC+set}" = set; then
20175
echo $ECHO_N "(cached) $ECHO_C" >&6
20177
if test -n "$CC"; then
20178
ac_cv_prog_CC="$CC" # Let the user override the test.
20180
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20181
for as_dir in $PATH
20184
test -z "$as_dir" && as_dir=.
20185
for ac_exec_ext in '' $ac_executable_extensions; do
20186
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20187
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
20188
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20198
if test -n "$CC"; then
20199
{ echo "$as_me:$LINENO: result: $CC" >&5
20200
echo "${ECHO_T}$CC" >&6; }
20202
{ echo "$as_me:$LINENO: result: no" >&5
20203
echo "${ECHO_T}no" >&6; }
20207
test -n "$CC" && break
20210
if test -z "$CC"; then
20212
for ac_prog in cl.exe
20214
# Extract the first word of "$ac_prog", so it can be a program name with args.
20215
set dummy $ac_prog; ac_word=$2
20216
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20217
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20218
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
20219
echo $ECHO_N "(cached) $ECHO_C" >&6
20221
if test -n "$ac_ct_CC"; then
20222
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
20224
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20225
for as_dir in $PATH
20228
test -z "$as_dir" && as_dir=.
20229
for ac_exec_ext in '' $ac_executable_extensions; do
20230
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20231
ac_cv_prog_ac_ct_CC="$ac_prog"
20232
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20241
ac_ct_CC=$ac_cv_prog_ac_ct_CC
20242
if test -n "$ac_ct_CC"; then
20243
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
20244
echo "${ECHO_T}$ac_ct_CC" >&6; }
20246
{ echo "$as_me:$LINENO: result: no" >&5
20247
echo "${ECHO_T}no" >&6; }
20251
test -n "$ac_ct_CC" && break
20254
if test "x$ac_ct_CC" = x; then
20257
case $cross_compiling:$ac_tool_warned in
20259
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20260
whose name does not start with the host triplet. If you think this
20261
configuration is useful to you, please write to autoconf@gnu.org." >&5
20262
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20263
whose name does not start with the host triplet. If you think this
20264
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20265
ac_tool_warned=yes ;;
20274
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
20275
See \`config.log' for more details." >&5
20276
echo "$as_me: error: no acceptable C compiler found in \$PATH
20277
See \`config.log' for more details." >&2;}
20278
{ (exit 1); exit 1; }; }
20280
# Provide some information about the compiler.
20281
echo "$as_me:$LINENO: checking for C compiler version" >&5
20282
ac_compiler=`set X $ac_compile; echo $2`
20283
{ (ac_try="$ac_compiler --version >&5"
20284
case "(($ac_try" in
20285
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20286
*) ac_try_echo=$ac_try;;
20288
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20289
(eval "$ac_compiler --version >&5") 2>&5
20291
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20292
(exit $ac_status); }
20293
{ (ac_try="$ac_compiler -v >&5"
20294
case "(($ac_try" in
20295
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20296
*) ac_try_echo=$ac_try;;
20298
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20299
(eval "$ac_compiler -v >&5") 2>&5
20301
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20302
(exit $ac_status); }
20303
{ (ac_try="$ac_compiler -V >&5"
20304
case "(($ac_try" in
20305
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20306
*) ac_try_echo=$ac_try;;
20308
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20309
(eval "$ac_compiler -V >&5") 2>&5
20311
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20312
(exit $ac_status); }
20314
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
20315
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
20316
if test "${ac_cv_c_compiler_gnu+set}" = set; then
20317
echo $ECHO_N "(cached) $ECHO_C" >&6
20319
cat >conftest.$ac_ext <<_ACEOF
20322
cat confdefs.h >>conftest.$ac_ext
20323
cat >>conftest.$ac_ext <<_ACEOF
20324
/* end confdefs.h. */
20337
rm -f conftest.$ac_objext
20338
if { (ac_try="$ac_compile"
20339
case "(($ac_try" in
20340
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20341
*) ac_try_echo=$ac_try;;
20343
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20344
(eval "$ac_compile") 2>conftest.er1
20346
grep -v '^ *+' conftest.er1 >conftest.err
20348
cat conftest.err >&5
20349
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20350
(exit $ac_status); } && {
20351
test -z "$ac_c_werror_flag" ||
20352
test ! -s conftest.err
20353
} && test -s conftest.$ac_objext; then
20354
ac_compiler_gnu=yes
20356
echo "$as_me: failed program was:" >&5
20357
sed 's/^/| /' conftest.$ac_ext >&5
20362
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20363
ac_cv_c_compiler_gnu=$ac_compiler_gnu
20366
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
20367
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
20368
GCC=`test $ac_compiler_gnu = yes && echo yes`
20369
ac_test_CFLAGS=${CFLAGS+set}
20370
ac_save_CFLAGS=$CFLAGS
20371
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
20372
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
20373
if test "${ac_cv_prog_cc_g+set}" = set; then
20374
echo $ECHO_N "(cached) $ECHO_C" >&6
20376
ac_save_c_werror_flag=$ac_c_werror_flag
20377
ac_c_werror_flag=yes
20380
cat >conftest.$ac_ext <<_ACEOF
20383
cat confdefs.h >>conftest.$ac_ext
20384
cat >>conftest.$ac_ext <<_ACEOF
20385
/* end confdefs.h. */
20395
rm -f conftest.$ac_objext
20396
if { (ac_try="$ac_compile"
20397
case "(($ac_try" in
20398
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20399
*) ac_try_echo=$ac_try;;
20401
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20402
(eval "$ac_compile") 2>conftest.er1
20404
grep -v '^ *+' conftest.er1 >conftest.err
20406
cat conftest.err >&5
20407
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20408
(exit $ac_status); } && {
20409
test -z "$ac_c_werror_flag" ||
20410
test ! -s conftest.err
20411
} && test -s conftest.$ac_objext; then
20412
ac_cv_prog_cc_g=yes
20414
echo "$as_me: failed program was:" >&5
20415
sed 's/^/| /' conftest.$ac_ext >&5
20418
cat >conftest.$ac_ext <<_ACEOF
20421
cat confdefs.h >>conftest.$ac_ext
20422
cat >>conftest.$ac_ext <<_ACEOF
20423
/* end confdefs.h. */
20433
rm -f conftest.$ac_objext
20434
if { (ac_try="$ac_compile"
20435
case "(($ac_try" in
20436
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20437
*) ac_try_echo=$ac_try;;
20439
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20440
(eval "$ac_compile") 2>conftest.er1
20442
grep -v '^ *+' conftest.er1 >conftest.err
20444
cat conftest.err >&5
20445
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20446
(exit $ac_status); } && {
20447
test -z "$ac_c_werror_flag" ||
20448
test ! -s conftest.err
20449
} && test -s conftest.$ac_objext; then
20452
echo "$as_me: failed program was:" >&5
20453
sed 's/^/| /' conftest.$ac_ext >&5
20455
ac_c_werror_flag=$ac_save_c_werror_flag
20457
cat >conftest.$ac_ext <<_ACEOF
20460
cat confdefs.h >>conftest.$ac_ext
20461
cat >>conftest.$ac_ext <<_ACEOF
20462
/* end confdefs.h. */
20472
rm -f conftest.$ac_objext
20473
if { (ac_try="$ac_compile"
20474
case "(($ac_try" in
20475
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20476
*) ac_try_echo=$ac_try;;
20478
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20479
(eval "$ac_compile") 2>conftest.er1
20481
grep -v '^ *+' conftest.er1 >conftest.err
20483
cat conftest.err >&5
20484
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20485
(exit $ac_status); } && {
20486
test -z "$ac_c_werror_flag" ||
20487
test ! -s conftest.err
20488
} && test -s conftest.$ac_objext; then
20489
ac_cv_prog_cc_g=yes
20491
echo "$as_me: failed program was:" >&5
20492
sed 's/^/| /' conftest.$ac_ext >&5
20497
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20500
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20503
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20504
ac_c_werror_flag=$ac_save_c_werror_flag
20506
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
20507
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
20508
if test "$ac_test_CFLAGS" = set; then
20509
CFLAGS=$ac_save_CFLAGS
20510
elif test $ac_cv_prog_cc_g = yes; then
20511
if test "$GCC" = yes; then
20517
if test "$GCC" = yes; then
20523
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
20524
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
20525
if test "${ac_cv_prog_cc_c89+set}" = set; then
20526
echo $ECHO_N "(cached) $ECHO_C" >&6
20528
ac_cv_prog_cc_c89=no
20530
cat >conftest.$ac_ext <<_ACEOF
20533
cat confdefs.h >>conftest.$ac_ext
20534
cat >>conftest.$ac_ext <<_ACEOF
20535
/* end confdefs.h. */
20536
#include <stdarg.h>
20538
#include <sys/types.h>
20539
#include <sys/stat.h>
20540
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
20541
struct buf { int x; };
20542
FILE * (*rcsopen) (struct buf *, struct stat *, int);
20543
static char *e (p, i)
20549
static char *f (char * (*g) (char **, int), char **p, ...)
20554
s = g (p, va_arg (v,int));
20559
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
20560
function prototypes and stuff, but not '\xHH' hex character constants.
20561
These don't provoke an error unfortunately, instead are silently treated
20562
as 'x'. The following induces an error, until -std is added to get
20563
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
20564
array size at least. It's necessary to write '\x00'==0 to get something
20565
that's true only with -std. */
20566
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
20568
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
20569
inside strings and character constants. */
20571
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
20573
int test (int i, double x);
20574
struct s1 {int (*f) (int a);};
20575
struct s2 {int (*f) (double a);};
20576
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
20582
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
20587
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
20588
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
20590
CC="$ac_save_CC $ac_arg"
20591
rm -f conftest.$ac_objext
20592
if { (ac_try="$ac_compile"
20593
case "(($ac_try" in
20594
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20595
*) ac_try_echo=$ac_try;;
20597
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20598
(eval "$ac_compile") 2>conftest.er1
20600
grep -v '^ *+' conftest.er1 >conftest.err
20602
cat conftest.err >&5
20603
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20604
(exit $ac_status); } && {
20605
test -z "$ac_c_werror_flag" ||
20606
test ! -s conftest.err
20607
} && test -s conftest.$ac_objext; then
20608
ac_cv_prog_cc_c89=$ac_arg
20610
echo "$as_me: failed program was:" >&5
20611
sed 's/^/| /' conftest.$ac_ext >&5
20616
rm -f core conftest.err conftest.$ac_objext
20617
test "x$ac_cv_prog_cc_c89" != "xno" && break
20619
rm -f conftest.$ac_ext
20624
case "x$ac_cv_prog_cc_c89" in
20626
{ echo "$as_me:$LINENO: result: none needed" >&5
20627
echo "${ECHO_T}none needed" >&6; } ;;
20629
{ echo "$as_me:$LINENO: result: unsupported" >&5
20630
echo "${ECHO_T}unsupported" >&6; } ;;
20632
CC="$CC $ac_cv_prog_cc_c89"
20633
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
20634
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
20639
ac_cpp='$CPP $CPPFLAGS'
20640
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20641
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20642
ac_compiler_gnu=$ac_cv_c_compiler_gnu
20644
depcc="$CC" am_compiler_list=
20646
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
20647
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
20648
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
20649
echo $ECHO_N "(cached) $ECHO_C" >&6
20651
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20652
# We make a subdir and do the tests there. Otherwise we can end up
20653
# making bogus files that we don't know about and never remove. For
20654
# instance it was reported that on HP-UX the gcc test will end up
20655
# making a dummy file named `D' -- because `-MD' means `put the output
20658
# Copy depcomp to subdir because otherwise we won't find it if we're
20659
# using a relative directory.
20660
cp "$am_depcomp" conftest.dir
20662
# We will build objects and dependencies in a subdirectory because
20663
# it helps to detect inapplicable dependency modes. For instance
20664
# both Tru64's cc and ICC support -MD to output dependencies as a
20665
# side effect of compilation, but ICC will put the dependencies in
20666
# the current directory while Tru64 will put them in the object
20670
am_cv_CC_dependencies_compiler_type=none
20671
if test "$am_compiler_list" = ""; then
20672
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20674
for depmode in $am_compiler_list; do
20675
# Setup a source with many dependencies, because some compilers
20676
# like to wrap large dependency lists on column 80 (with \), and
20677
# we should not choose a depcomp mode which is confused by this.
20679
# We need to recreate these files for each test, as the compiler may
20680
# overwrite some of them when testing with obscure command lines.
20681
# This happens at least with the AIX C compiler.
20683
for i in 1 2 3 4 5 6; do
20684
echo '#include "conftst'$i'.h"' >> sub/conftest.c
20685
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
20686
# Solaris 8's {/usr,}/bin/sh.
20687
touch sub/conftst$i.h
20689
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20693
# after this tag, mechanisms are not by side-effect, so they'll
20694
# only be used when explicitly requested
20695
if test "x$enable_dependency_tracking" = xyes; then
20703
# We check with `-c' and `-o' for the sake of the "dashmstdout"
20704
# mode. It turns out that the SunPro C++ compiler does not properly
20705
# handle `-M -o', and we need to detect this.
20706
if depmode=$depmode \
20707
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
20708
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20709
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
20710
>/dev/null 2>conftest.err &&
20711
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
20712
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20713
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
20714
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20715
# icc doesn't choke on unknown options, it will just issue warnings
20716
# or remarks (even with -Werror). So we grep stderr for any message
20717
# that says an option was ignored or not supported.
20718
# When given -MP, icc 7.0 and 7.1 complain thusly:
20719
# icc: Command line warning: ignoring option '-M'; no argument required
20720
# The diagnosis changed in icc 8.0:
20721
# icc: Command line remark: option '-MP' not supported
20722
if (grep 'ignoring option' conftest.err ||
20723
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20724
am_cv_CC_dependencies_compiler_type=$depmode
20731
rm -rf conftest.dir
20733
am_cv_CC_dependencies_compiler_type=none
20737
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
20738
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
20739
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20742
test "x$enable_dependency_tracking" != xno \
20743
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20744
am__fastdepCC_TRUE=
20745
am__fastdepCC_FALSE='#'
20747
am__fastdepCC_TRUE='#'
20748
am__fastdepCC_FALSE=
20753
am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
20757
{ echo "$as_me:$LINENO: checking for library containing strerror" >&5
20758
echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
20759
if test "${ac_cv_search_strerror+set}" = set; then
20760
echo $ECHO_N "(cached) $ECHO_C" >&6
20762
ac_func_search_save_LIBS=$LIBS
20763
cat >conftest.$ac_ext <<_ACEOF
20766
cat confdefs.h >>conftest.$ac_ext
20767
cat >>conftest.$ac_ext <<_ACEOF
20768
/* end confdefs.h. */
20770
/* Override any GCC internal prototype to avoid an error.
20771
Use char because int might match the return type of a GCC
20772
builtin and then its argument prototype would still apply. */
20780
return strerror ();
20785
for ac_lib in '' cposix; do
20786
if test -z "$ac_lib"; then
20787
ac_res="none required"
20790
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20792
rm -f conftest.$ac_objext conftest$ac_exeext
20793
if { (ac_try="$ac_link"
20794
case "(($ac_try" in
20795
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20796
*) ac_try_echo=$ac_try;;
20798
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20799
(eval "$ac_link") 2>conftest.er1
20801
grep -v '^ *+' conftest.er1 >conftest.err
20803
cat conftest.err >&5
20804
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20805
(exit $ac_status); } && {
20806
test -z "$ac_c_werror_flag" ||
20807
test ! -s conftest.err
20808
} && test -s conftest$ac_exeext &&
20809
$as_test_x conftest$ac_exeext; then
20810
ac_cv_search_strerror=$ac_res
20812
echo "$as_me: failed program was:" >&5
20813
sed 's/^/| /' conftest.$ac_ext >&5
20818
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20820
if test "${ac_cv_search_strerror+set}" = set; then
20824
if test "${ac_cv_search_strerror+set}" = set; then
20827
ac_cv_search_strerror=no
20829
rm conftest.$ac_ext
20830
LIBS=$ac_func_search_save_LIBS
20832
{ echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
20833
echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
20834
ac_res=$ac_cv_search_strerror
20835
if test "$ac_res" != no; then
20836
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20840
# Find a good install program. We prefer a C program (faster),
20841
# so one script is as good as another. But avoid the broken or
20842
# incompatible versions:
20843
# SysV /etc/install, /usr/sbin/install
20844
# SunOS /usr/etc/install
20845
# IRIX /sbin/install
20847
# AmigaOS /C/install, which installs bootblocks on floppy discs
20848
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
20849
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
20850
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
20851
# OS/2's system install, which has a completely different semantic
20852
# ./install, which can be erroneously created by make from ./install.sh.
20853
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
20854
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
20855
if test -z "$INSTALL"; then
20856
if test "${ac_cv_path_install+set}" = set; then
20857
echo $ECHO_N "(cached) $ECHO_C" >&6
20859
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20860
for as_dir in $PATH
20863
test -z "$as_dir" && as_dir=.
20864
# Account for people who put trailing slashes in PATH elements.
20866
./ | .// | /cC/* | \
20867
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
20868
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
20871
# OSF1 and SCO ODT 3.0 have their own names for install.
20872
# Don't use installbsd from OSF since it installs stuff as root
20874
for ac_prog in ginstall scoinst install; do
20875
for ac_exec_ext in '' $ac_executable_extensions; do
20876
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
20877
if test $ac_prog = install &&
20878
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
20879
# AIX install. It has an incompatible calling convention.
20881
elif test $ac_prog = install &&
20882
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
20883
# program-specific install script used by HP pwplus--don't use.
20886
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
20899
if test "${ac_cv_path_install+set}" = set; then
20900
INSTALL=$ac_cv_path_install
20902
# As a last resort, use the slow shell script. Don't cache a
20903
# value for INSTALL within a source directory, because that will
20904
# break other packages using the cache if that directory is
20905
# removed, or if the value is a relative name.
20906
INSTALL=$ac_install_sh
20909
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
20910
echo "${ECHO_T}$INSTALL" >&6; }
20912
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
20913
# It thinks the first close brace ends the variable substitution.
20914
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
20916
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
20918
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
20921
# Extract the first word of "db2ps", so it can be a program name with args.
20922
set dummy db2ps; ac_word=$2
20923
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20924
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20925
if test "${ac_cv_path_DB2PS+set}" = set; then
20926
echo $ECHO_N "(cached) $ECHO_C" >&6
20930
ac_cv_path_DB2PS="$DB2PS" # Let the user override the test with a path.
20933
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20934
for as_dir in $PATH
20937
test -z "$as_dir" && as_dir=.
20938
for ac_exec_ext in '' $ac_executable_extensions; do
20939
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20940
ac_cv_path_DB2PS="$as_dir/$ac_word$ac_exec_ext"
20941
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20951
DB2PS=$ac_cv_path_DB2PS
20952
if test -n "$DB2PS"; then
20953
{ echo "$as_me:$LINENO: result: $DB2PS" >&5
20954
echo "${ECHO_T}$DB2PS" >&6; }
20956
{ echo "$as_me:$LINENO: result: no" >&5
20957
echo "${ECHO_T}no" >&6; }
20961
if test x${DB2PS} = x ; then
20962
{ echo "$as_me:$LINENO: WARNING: PostScript documentation cannot be generated!" >&5
20963
echo "$as_me: WARNING: PostScript documentation cannot be generated!" >&2;}
20966
# Extract the first word of "ps2pdf", so it can be a program name with args.
20967
set dummy ps2pdf; ac_word=$2
20968
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20969
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20970
if test "${ac_cv_path_PS2PDF+set}" = set; then
20971
echo $ECHO_N "(cached) $ECHO_C" >&6
20975
ac_cv_path_PS2PDF="$PS2PDF" # Let the user override the test with a path.
20978
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20979
for as_dir in $PATH
20982
test -z "$as_dir" && as_dir=.
20983
for ac_exec_ext in '' $ac_executable_extensions; do
20984
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20985
ac_cv_path_PS2PDF="$as_dir/$ac_word$ac_exec_ext"
20986
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20996
PS2PDF=$ac_cv_path_PS2PDF
20997
if test -n "$PS2PDF"; then
20998
{ echo "$as_me:$LINENO: result: $PS2PDF" >&5
20999
echo "${ECHO_T}$PS2PDF" >&6; }
21001
{ echo "$as_me:$LINENO: result: no" >&5
21002
echo "${ECHO_T}no" >&6; }
21006
if test x${PS2PDF} = x ; then
21007
{ echo "$as_me:$LINENO: WARNING: PDF documentation cannot be generated!" >&5
21008
echo "$as_me: WARNING: PDF documentation cannot be generated!" >&2;}
21015
cygwin | mingw32 | pw32 | interix3 | interix | uwin) libijs_sysdeps="windows";;
21016
*) libijs_sysdeps="unix";;
21018
if test x$libijs_sysdeps = xwindows; then
21019
SYSDEPS_WINDOWS_TRUE=
21020
SYSDEPS_WINDOWS_FALSE='#'
21022
SYSDEPS_WINDOWS_TRUE='#'
21023
SYSDEPS_WINDOWS_FALSE=
21033
ijs_libs="${IJS_LIBS} ${IJS_DEPLIBS}"
21036
LIBIJS_LIBS="${LIBIJS_LIBS} ${IJS_DEPLIBS}"
21040
ac_config_files="$ac_config_files Makefile"
21042
ac_config_files="$ac_config_files ijs-config"
21044
ac_config_files="$ac_config_files ijs.pc"
21046
cat >confcache <<\_ACEOF
21047
# This file is a shell script that caches the results of configure
21048
# tests run on this system so they can be shared between configure
21049
# scripts and configure runs, see configure's option --config-cache.
21050
# It is not useful on other systems. If it contains results you don't
21051
# want to keep, you may remove or edit it.
21053
# config.status only pays attention to the cache file if you give it
21054
# the --recheck option to rerun configure.
21056
# `ac_cv_env_foo' variables (set or unset) will be overridden when
21057
# loading this file, other *unset* `ac_cv_foo' will be assigned the
21058
# following values.
21062
# The following way of writing the cache mishandles newlines in values,
21063
# but we know of no workaround that is simple, portable, and efficient.
21064
# So, we kill variables containing newlines.
21065
# Ultrix sh set writes to stderr and can't be redirected directly,
21066
# and sets the high bit in the cache file unless we assign to the vars.
21068
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21069
eval ac_val=\$$ac_var
21073
*_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21074
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21077
_ | IFS | as_nl) ;; #(
21078
*) $as_unset $ac_var ;;
21084
case $as_nl`(ac_space=' '; set) 2>&1` in #(
21085
*${as_nl}ac_space=\ *)
21086
# `set' does not quote correctly, so add quotes (double-quote
21087
# substitution turns \\\\ into \\, and sed turns \\ into \).
21090
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21093
# `set' quotes correctly as required by POSIX, so do not add quotes.
21094
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21103
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21105
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21107
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21108
if test -w "$cache_file"; then
21109
test "x$cache_file" != "x/dev/null" &&
21110
{ echo "$as_me:$LINENO: updating cache $cache_file" >&5
21111
echo "$as_me: updating cache $cache_file" >&6;}
21112
cat confcache >$cache_file
21114
{ echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21115
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21120
test "x$prefix" = xNONE && prefix=$ac_default_prefix
21121
# Let make expand exec_prefix.
21122
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21124
# Transform confdefs.h into DEFS.
21125
# Protect against shell expansion while executing Makefile rules.
21126
# Protect against Makefile macro expansion.
21128
# If the first sed substitution is executed (which looks for macros that
21129
# take arguments), then branch to the quote section. Otherwise,
21130
# look for a macro that doesn't take arguments.
21134
s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
21136
s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
21140
s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
21153
DEFS=`sed -n "$ac_script" confdefs.h`
21158
for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
21159
# 1. Remove the extension, and $U if already installed.
21160
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21161
ac_i=`echo "$ac_i" | sed "$ac_script"`
21162
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21163
# will be set to the directory where LIBOBJS objects are built.
21164
ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21165
ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21167
LIB@&t@OBJS=$ac_libobjs
21169
LTLIBOBJS=$ac_ltlibobjs
21172
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21173
{ { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21174
Usually this means the macro was only invoked conditionally." >&5
21175
echo "$as_me: error: conditional \"AMDEP\" was never defined.
21176
Usually this means the macro was only invoked conditionally." >&2;}
21177
{ (exit 1); exit 1; }; }
21179
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21180
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21181
Usually this means the macro was only invoked conditionally." >&5
21182
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21183
Usually this means the macro was only invoked conditionally." >&2;}
21184
{ (exit 1); exit 1; }; }
21186
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21187
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21188
Usually this means the macro was only invoked conditionally." >&5
21189
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21190
Usually this means the macro was only invoked conditionally." >&2;}
21191
{ (exit 1); exit 1; }; }
21193
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21194
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21195
Usually this means the macro was only invoked conditionally." >&5
21196
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21197
Usually this means the macro was only invoked conditionally." >&2;}
21198
{ (exit 1); exit 1; }; }
21200
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21201
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21202
Usually this means the macro was only invoked conditionally." >&5
21203
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21204
Usually this means the macro was only invoked conditionally." >&2;}
21205
{ (exit 1); exit 1; }; }
21207
if test -z "${SYSDEPS_WINDOWS_TRUE}" && test -z "${SYSDEPS_WINDOWS_FALSE}"; then
21208
{ { echo "$as_me:$LINENO: error: conditional \"SYSDEPS_WINDOWS\" was never defined.
21209
Usually this means the macro was only invoked conditionally." >&5
21210
echo "$as_me: error: conditional \"SYSDEPS_WINDOWS\" was never defined.
21211
Usually this means the macro was only invoked conditionally." >&2;}
21212
{ (exit 1); exit 1; }; }
21215
: ${CONFIG_STATUS=./config.status}
21216
ac_clean_files_save=$ac_clean_files
21217
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21218
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21219
echo "$as_me: creating $CONFIG_STATUS" >&6;}
21220
cat >$CONFIG_STATUS <<_ACEOF
21222
# Generated by $as_me.
21223
# Run this file to recreate the current configuration.
21224
# Compiler output produced by configure, useful for debugging
21225
# configure, is in config.log if it exists.
21228
ac_cs_recheck=false
21230
SHELL=\${CONFIG_SHELL-$SHELL}
21233
cat >>$CONFIG_STATUS <<\_ACEOF
21234
## --------------------- ##
21235
## M4sh Initialization. ##
21236
## --------------------- ##
21238
# Be more Bourne compatible
21239
DUALCASE=1; export DUALCASE # for MKS sh
21240
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21243
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21244
# is contrary to our usage. Disable this feature.
21245
alias -g '${1+"$@"}'='"$@"'
21246
setopt NO_GLOB_SUBST
21248
case `(set -o) 2>/dev/null` in
21249
*posix*) set -o posix ;;
21258
# Avoid depending upon Character Ranges.
21259
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21260
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21261
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21262
as_cr_digits='0123456789'
21263
as_cr_alnum=$as_cr_Letters$as_cr_digits
21265
# The user is always right.
21266
if test "${PATH_SEPARATOR+set}" != set; then
21267
echo "#! /bin/sh" >conf$$.sh
21268
echo "exit 0" >>conf$$.sh
21270
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21278
# Support unset when possible.
21279
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21287
# We need space, tab and new line, in precisely that order. Quoting is
21288
# there to prevent editors from complaining about space-tab.
21289
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21290
# splitting by setting IFS to empty value.)
21295
# Find who we are. Look in the path if we contain no directory separator.
21297
*[\\/]* ) as_myself=$0 ;;
21298
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21299
for as_dir in $PATH
21302
test -z "$as_dir" && as_dir=.
21303
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21309
# We did not find ourselves, most probably we were run as `sh COMMAND'
21310
# in which case we are not to be found in the path.
21311
if test "x$as_myself" = x; then
21314
if test ! -f "$as_myself"; then
21315
echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21316
{ (exit 1); exit 1; }
21319
# Work around bugs in pre-3.0 UWIN ksh.
21320
for as_var in ENV MAIL MAILPATH
21321
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21329
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21330
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21331
LC_TELEPHONE LC_TIME
21333
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21334
eval $as_var=C; export $as_var
21336
($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21340
# Required to use basename.
21341
if expr a : '\(a\)' >/dev/null 2>&1 &&
21342
test "X`expr 00001 : '.*\(...\)'`" = X001; then
21348
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21349
as_basename=basename
21355
# Name of the executable.
21356
as_me=`$as_basename -- "$0" ||
21357
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21358
X"$0" : 'X\(//\)$' \| \
21359
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21361
sed '/^.*\/\([^/][^/]*\)\/*$/{
21380
as_lineno_1=$LINENO
21381
as_lineno_2=$LINENO
21382
test "x$as_lineno_1" != "x$as_lineno_2" &&
21383
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21385
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21386
# uniformly replaced by the line number. The first 'sed' inserts a
21387
# line-number line after each line using $LINENO; the second 'sed'
21388
# does the real work. The second script uses 'N' to pair each
21389
# line-number line with the line containing $LINENO, and appends
21390
# trailing '-' during substitution so that $LINENO is not a special
21391
# case at line end.
21392
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21393
# scripts with optimization help from Paolo Bonzini. Blame Lee
21394
# E. McMahon (1931-1989) for sed's syntax. :-)
21406
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21409
' >$as_me.lineno &&
21410
chmod +x "$as_me.lineno" ||
21411
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21412
{ (exit 1); exit 1; }; }
21414
# Don't try to exec as it changes $[0], causing all sort of problems
21415
# (the dirname of $[0] is not the place where we might find the
21416
# original and so on. Autoconf is especially sensitive to this).
21417
. "./$as_me.lineno"
21418
# Exit status is that of the last command.
21423
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21429
ECHO_C= ECHO_N= ECHO_T=
21430
case `echo -n x` in
21432
case `echo 'x\c'` in
21433
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
21440
if expr a : '\(a\)' >/dev/null 2>&1 &&
21441
test "X`expr 00001 : '.*\(...\)'`" = X001; then
21447
rm -f conf$$ conf$$.exe conf$$.file
21448
if test -d conf$$.dir; then
21449
rm -f conf$$.dir/conf$$.file
21455
if ln -s conf$$.file conf$$ 2>/dev/null; then
21457
# ... but there are two gotchas:
21458
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21459
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21460
# In both cases, we have to default to `cp -p'.
21461
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21463
elif ln conf$$.file conf$$ 2>/dev/null; then
21468
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21469
rmdir conf$$.dir 2>/dev/null
21471
if mkdir -p . 2>/dev/null; then
21474
test -d ./-p && rmdir ./-p
21478
if test -x / >/dev/null 2>&1; then
21479
as_test_x='test -x'
21481
if ls -dL / >/dev/null 2>&1; then
21488
if test -d "$1"; then
21494
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21495
???[sx]*):;;*)false;;esac;fi
21499
as_executable_p=$as_test_x
21501
# Sed expression to map a string onto a valid CPP name.
21502
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21504
# Sed expression to map a string onto a valid variable name.
21505
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21510
# Save the log message, to keep $[0] and so on meaningful, and to
21511
# report actual input values of CONFIG_FILES etc. instead of their
21512
# values after options handling.
21514
This file was extended by ijs $as_me 0.35, which was
21515
generated by GNU Autoconf 2.61. Invocation command line was
21517
CONFIG_FILES = $CONFIG_FILES
21518
CONFIG_HEADERS = $CONFIG_HEADERS
21519
CONFIG_LINKS = $CONFIG_LINKS
21520
CONFIG_COMMANDS = $CONFIG_COMMANDS
21523
on `(hostname || uname -n) 2>/dev/null | sed 1q`
21528
cat >>$CONFIG_STATUS <<_ACEOF
21529
# Files that config.status was made for.
21530
config_files="$ac_config_files"
21531
config_commands="$ac_config_commands"
21535
cat >>$CONFIG_STATUS <<\_ACEOF
21537
\`$as_me' instantiates files from templates according to the
21538
current configuration.
21540
Usage: $0 [OPTIONS] [FILE]...
21542
-h, --help print this help, then exit
21543
-V, --version print version number and configuration settings, then exit
21544
-q, --quiet do not print progress messages
21545
-d, --debug don't remove temporary files
21546
--recheck update $as_me by reconfiguring in the same conditions
21547
--file=FILE[:TEMPLATE]
21548
instantiate the configuration file FILE
21550
Configuration files:
21553
Configuration commands:
21556
Report bugs to <bug-autoconf@gnu.org>."
21559
cat >>$CONFIG_STATUS <<_ACEOF
21561
ijs config.status 0.35
21562
configured by $0, generated by GNU Autoconf 2.61,
21563
with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21565
Copyright (C) 2006 Free Software Foundation, Inc.
21566
This config.status script is free software; the Free Software Foundation
21567
gives unlimited permission to copy, distribute and modify it."
21575
cat >>$CONFIG_STATUS <<\_ACEOF
21576
# If no file are specified by the user, then we need to provide default
21577
# value. By we need to know if files were specified by the user.
21583
ac_option=`expr "X$1" : 'X\([^=]*\)='`
21584
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21595
# Handling of the options.
21596
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21598
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21599
echo "$ac_cs_version"; exit ;;
21600
--debug | --debu | --deb | --de | --d | -d )
21602
--file | --fil | --fi | --f )
21604
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21605
ac_need_defaults=false;;
21606
--he | --h | --help | --hel | -h )
21607
echo "$ac_cs_usage"; exit ;;
21608
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
21609
| -silent | --silent | --silen | --sile | --sil | --si | --s)
21612
# This is an error.
21613
-*) { echo "$as_me: error: unrecognized option: $1
21614
Try \`$0 --help' for more information." >&2
21615
{ (exit 1); exit 1; }; } ;;
21617
*) ac_config_targets="$ac_config_targets $1"
21618
ac_need_defaults=false ;;
21624
ac_configure_extra_args=
21626
if $ac_cs_silent; then
21628
ac_configure_extra_args="$ac_configure_extra_args --silent"
21632
cat >>$CONFIG_STATUS <<_ACEOF
21633
if \$ac_cs_recheck; then
21634
echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21635
CONFIG_SHELL=$SHELL
21636
export CONFIG_SHELL
21637
exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21641
cat >>$CONFIG_STATUS <<\_ACEOF
21645
sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
21646
@%:@@%:@ Running $as_me. @%:@@%:@
21652
cat >>$CONFIG_STATUS <<_ACEOF
21656
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21660
cat >>$CONFIG_STATUS <<\_ACEOF
21662
# Handling of arguments.
21663
for ac_config_target in $ac_config_targets
21665
case $ac_config_target in
21666
"depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21667
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21668
"ijs-config") CONFIG_FILES="$CONFIG_FILES ijs-config" ;;
21669
"ijs.pc") CONFIG_FILES="$CONFIG_FILES ijs.pc" ;;
21671
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21672
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21673
{ (exit 1); exit 1; }; };;
21678
# If the user did not use the arguments to specify the items to instantiate,
21679
# then the envvar interface is used. Set only those that are not.
21680
# We use the long form for the default assignment because of an extremely
21681
# bizarre bug on SunOS 4.1.3.
21682
if $ac_need_defaults; then
21683
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21684
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21687
# Have a temporary directory for convenience. Make it in the build tree
21688
# simply because there is no reason against having it here, and in addition,
21689
# creating and moving files from /tmp can sometimes cause problems.
21690
# Hook for its removal unless debugging.
21691
# Note that there is a small window in which the directory will not be cleaned:
21692
# after its creation but before its name has been assigned to `$tmp'.
21696
trap 'exit_status=$?
21697
{ test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21699
trap '{ (exit 1); exit 1; }' 1 2 13 15
21701
# Create a (secure) tmp directory for tmp files.
21704
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21705
test -n "$tmp" && test -d "$tmp"
21708
tmp=./conf$$-$RANDOM
21709
(umask 077 && mkdir "$tmp")
21712
echo "$me: cannot create a temporary directory in ." >&2
21713
{ (exit 1); exit 1; }
21717
# Set up the sed scripts for CONFIG_FILES section.
21720
# No need to generate the scripts if there are no CONFIG_FILES.
21721
# This happens for instance when ./config.status config.h
21722
if test -n "$CONFIG_FILES"; then
21729
for ac_last_try in false false false false false :; do
21730
cat >conf$$subs.sed <<_ACEOF
21731
SHELL!$SHELL$ac_delim
21732
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21733
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21734
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21735
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21736
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21737
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21738
exec_prefix!$exec_prefix$ac_delim
21739
prefix!$prefix$ac_delim
21740
program_transform_name!$program_transform_name$ac_delim
21741
bindir!$bindir$ac_delim
21742
sbindir!$sbindir$ac_delim
21743
libexecdir!$libexecdir$ac_delim
21744
datarootdir!$datarootdir$ac_delim
21745
datadir!$datadir$ac_delim
21746
sysconfdir!$sysconfdir$ac_delim
21747
sharedstatedir!$sharedstatedir$ac_delim
21748
localstatedir!$localstatedir$ac_delim
21749
includedir!$includedir$ac_delim
21750
oldincludedir!$oldincludedir$ac_delim
21751
docdir!$docdir$ac_delim
21752
infodir!$infodir$ac_delim
21753
htmldir!$htmldir$ac_delim
21754
dvidir!$dvidir$ac_delim
21755
pdfdir!$pdfdir$ac_delim
21756
psdir!$psdir$ac_delim
21757
libdir!$libdir$ac_delim
21758
localedir!$localedir$ac_delim
21759
mandir!$mandir$ac_delim
21760
DEFS!$DEFS$ac_delim
21761
ECHO_C!$ECHO_C$ac_delim
21762
ECHO_N!$ECHO_N$ac_delim
21763
ECHO_T!$ECHO_T$ac_delim
21764
LIBS!$LIBS$ac_delim
21765
build_alias!$build_alias$ac_delim
21766
host_alias!$host_alias$ac_delim
21767
target_alias!$target_alias$ac_delim
21768
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21769
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21770
INSTALL_DATA!$INSTALL_DATA$ac_delim
21771
am__isrc!$am__isrc$ac_delim
21772
CYGPATH_W!$CYGPATH_W$ac_delim
21773
PACKAGE!$PACKAGE$ac_delim
21774
VERSION!$VERSION$ac_delim
21775
ACLOCAL!$ACLOCAL$ac_delim
21776
AUTOCONF!$AUTOCONF$ac_delim
21777
AUTOMAKE!$AUTOMAKE$ac_delim
21778
AUTOHEADER!$AUTOHEADER$ac_delim
21779
MAKEINFO!$MAKEINFO$ac_delim
21780
install_sh!$install_sh$ac_delim
21781
STRIP!$STRIP$ac_delim
21782
INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
21783
mkdir_p!$mkdir_p$ac_delim
21785
SET_MAKE!$SET_MAKE$ac_delim
21786
am__leading_dot!$am__leading_dot$ac_delim
21787
AMTAR!$AMTAR$ac_delim
21788
am__tar!$am__tar$ac_delim
21789
am__untar!$am__untar$ac_delim
21790
IJS_MAJOR_VERSION!$IJS_MAJOR_VERSION$ac_delim
21791
IJS_MINOR_VERSION!$IJS_MINOR_VERSION$ac_delim
21792
IJS_CURRENT_INTERFACE!$IJS_CURRENT_INTERFACE$ac_delim
21793
IJS_INTERFACE_AGE!$IJS_INTERFACE_AGE$ac_delim
21794
IJS_BINARY_AGE!$IJS_BINARY_AGE$ac_delim
21795
IJS_VERSION!$IJS_VERSION$ac_delim
21796
LT_RELEASE!$LT_RELEASE$ac_delim
21797
LT_CURRENT!$LT_CURRENT$ac_delim
21798
LT_REVISION!$LT_REVISION$ac_delim
21799
LT_AGE!$LT_AGE$ac_delim
21800
build!$build$ac_delim
21801
build_cpu!$build_cpu$ac_delim
21802
build_vendor!$build_vendor$ac_delim
21803
build_os!$build_os$ac_delim
21804
host!$host$ac_delim
21805
host_cpu!$host_cpu$ac_delim
21806
host_vendor!$host_vendor$ac_delim
21807
host_os!$host_os$ac_delim
21809
CFLAGS!$CFLAGS$ac_delim
21810
LDFLAGS!$LDFLAGS$ac_delim
21811
CPPFLAGS!$CPPFLAGS$ac_delim
21812
ac_ct_CC!$ac_ct_CC$ac_delim
21813
EXEEXT!$EXEEXT$ac_delim
21814
OBJEXT!$OBJEXT$ac_delim
21815
DEPDIR!$DEPDIR$ac_delim
21816
am__include!$am__include$ac_delim
21817
am__quote!$am__quote$ac_delim
21818
AMDEP_TRUE!$AMDEP_TRUE$ac_delim
21819
AMDEP_FALSE!$AMDEP_FALSE$ac_delim
21820
AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
21821
CCDEPMODE!$CCDEPMODE$ac_delim
21822
am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
21823
am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
21824
GREP!$GREP$ac_delim
21825
EGREP!$EGREP$ac_delim
21826
LN_S!$LN_S$ac_delim
21827
ECHO!$ECHO$ac_delim
21830
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21832
elif $ac_last_try; then
21833
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21834
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21835
{ (exit 1); exit 1; }; }
21837
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21841
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21842
if test -n "$ac_eof"; then
21843
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21844
ac_eof=`expr $ac_eof + 1`
21847
cat >>$CONFIG_STATUS <<_ACEOF
21848
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21849
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21852
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21853
s/^/s,@/; s/!/@,|#_!!_#|/
21856
s/'"$ac_delim"'$/,g/; t
21858
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21859
' >>$CONFIG_STATUS <conf$$subs.sed
21860
rm -f conf$$subs.sed
21861
cat >>$CONFIG_STATUS <<_ACEOF
21867
for ac_last_try in false false false false false :; do
21868
cat >conf$$subs.sed <<_ACEOF
21870
RANLIB!$RANLIB$ac_delim
21873
CXXFLAGS!$CXXFLAGS$ac_delim
21874
ac_ct_CXX!$ac_ct_CXX$ac_delim
21875
CXXDEPMODE!$CXXDEPMODE$ac_delim
21876
am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
21877
am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
21878
CXXCPP!$CXXCPP$ac_delim
21880
FFLAGS!$FFLAGS$ac_delim
21881
ac_ct_F77!$ac_ct_F77$ac_delim
21882
LIBTOOL!$LIBTOOL$ac_delim
21883
LIBTOOL_DEPS!$LIBTOOL_DEPS$ac_delim
21884
DB2PS!$DB2PS$ac_delim
21885
PS2PDF!$PS2PDF$ac_delim
21886
SYSDEPS_WINDOWS_TRUE!$SYSDEPS_WINDOWS_TRUE$ac_delim
21887
SYSDEPS_WINDOWS_FALSE!$SYSDEPS_WINDOWS_FALSE$ac_delim
21888
IJS_CFLAGS!$IJS_CFLAGS$ac_delim
21889
IJS_LIBS!$IJS_LIBS$ac_delim
21890
IJS_DEPLIBS!$IJS_DEPLIBS$ac_delim
21891
ijs_cflags!$ijs_cflags$ac_delim
21892
ijs_libs!$ijs_libs$ac_delim
21893
INCLUDES!$INCLUDES$ac_delim
21894
LIBIJS_LIBS!$LIBIJS_LIBS$ac_delim
21895
LIB@&t@OBJS!$LIB@&t@OBJS$ac_delim
21896
LTLIBOBJS!$LTLIBOBJS$ac_delim
21899
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 28; then
21901
elif $ac_last_try; then
21902
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21903
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21904
{ (exit 1); exit 1; }; }
21906
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21910
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21911
if test -n "$ac_eof"; then
21912
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21913
ac_eof=`expr $ac_eof + 1`
21916
cat >>$CONFIG_STATUS <<_ACEOF
21917
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21918
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21921
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21922
s/^/s,@/; s/!/@,|#_!!_#|/
21925
s/'"$ac_delim"'$/,g/; t
21927
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21928
' >>$CONFIG_STATUS <conf$$subs.sed
21929
rm -f conf$$subs.sed
21930
cat >>$CONFIG_STATUS <<_ACEOF
21937
# VPATH may cause trouble with some makes, so we remove $(srcdir),
21938
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21939
# trailing colons and then remove the whole line if VPATH becomes empty
21940
# (actually we leave an empty line to preserve line numbers).
21941
if test "x$srcdir" = x.; then
21942
ac_vpsub='/^[ ]*VPATH[ ]*=/{
21943
s/:*\$(srcdir):*/:/
21944
s/:*\${srcdir}:*/:/
21946
s/^\([^=]*=[ ]*\):*/\1/
21952
cat >>$CONFIG_STATUS <<\_ACEOF
21953
fi # test -n "$CONFIG_FILES"
21956
for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
21959
:[FHLC]) ac_mode=$ac_tag; continue;;
21961
case $ac_mode$ac_tag in
21963
:L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21964
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21965
{ (exit 1); exit 1; }; };;
21966
:[FH]-) ac_tag=-:-;;
21967
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21984
-) ac_f="$tmp/stdin";;
21985
*) # Look for the file first in the build tree, then in the source tree
21986
# (if the path is not absolute). The absolute path cannot be DOS-style,
21987
# because $ac_f cannot contain `:'.
21991
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21993
{ { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21994
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21995
{ (exit 1); exit 1; }; };;
21997
ac_file_inputs="$ac_file_inputs $ac_f"
22000
# Let's still pretend it is `configure' which instantiates (i.e., don't
22001
# use $as_me), people would be surprised to read:
22002
# /* config.h. Generated by config.status. */
22003
configure_input="Generated from "`IFS=:
22004
echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22005
if test x"$ac_file" != x-; then
22006
configure_input="$ac_file. $configure_input"
22007
{ echo "$as_me:$LINENO: creating $ac_file" >&5
22008
echo "$as_me: creating $ac_file" >&6;}
22012
*:-:* | *:-) cat >"$tmp/stdin";;
22017
ac_dir=`$as_dirname -- "$ac_file" ||
22018
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22019
X"$ac_file" : 'X\(//\)[^/]' \| \
22020
X"$ac_file" : 'X\(//\)$' \| \
22021
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22023
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22027
/^X\(\/\/\)[^/].*/{
22042
-*) as_dir=./$as_dir;;
22044
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22048
*\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22049
*) as_qdir=$as_dir;;
22051
as_dirs="'$as_qdir' $as_dirs"
22052
as_dir=`$as_dirname -- "$as_dir" ||
22053
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22054
X"$as_dir" : 'X\(//\)[^/]' \| \
22055
X"$as_dir" : 'X\(//\)$' \| \
22056
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22058
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22062
/^X\(\/\/\)[^/].*/{
22075
test -d "$as_dir" && break
22077
test -z "$as_dirs" || eval "mkdir $as_dirs"
22078
} || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22079
echo "$as_me: error: cannot create directory $as_dir" >&2;}
22080
{ (exit 1); exit 1; }; }; }
22084
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22086
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22087
# A ".." for each directory in $ac_dir_suffix.
22088
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22089
case $ac_top_builddir_sub in
22090
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22091
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22094
ac_abs_top_builddir=$ac_pwd
22095
ac_abs_builddir=$ac_pwd$ac_dir_suffix
22096
# for backward compatibility:
22097
ac_top_builddir=$ac_top_build_prefix
22100
.) # We are building in place.
22102
ac_top_srcdir=$ac_top_builddir_sub
22103
ac_abs_top_srcdir=$ac_pwd ;;
22104
[\\/]* | ?:[\\/]* ) # Absolute name.
22105
ac_srcdir=$srcdir$ac_dir_suffix;
22106
ac_top_srcdir=$srcdir
22107
ac_abs_top_srcdir=$srcdir ;;
22108
*) # Relative name.
22109
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22110
ac_top_srcdir=$ac_top_build_prefix$srcdir
22111
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22113
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22123
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22124
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22126
ac_MKDIR_P=$MKDIR_P
22128
[\\/$]* | ?:[\\/]* ) ;;
22129
*/*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22133
cat >>$CONFIG_STATUS <<\_ACEOF
22134
# If the template does not know about datarootdir, expand it.
22135
# FIXME: This hack should be removed a few years after 2.60.
22136
ac_datarootdir_hack=; ac_datarootdir_seen=
22138
case `sed -n '/datarootdir/ {
22147
' $ac_file_inputs` in
22148
*datarootdir*) ac_datarootdir_seen=yes;;
22149
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22150
{ echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22151
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22153
cat >>$CONFIG_STATUS <<_ACEOF
22154
ac_datarootdir_hack='
22155
s&@datadir@&$datadir&g
22156
s&@docdir@&$docdir&g
22157
s&@infodir@&$infodir&g
22158
s&@localedir@&$localedir&g
22159
s&@mandir@&$mandir&g
22160
s&\\\${datarootdir}&$datarootdir&g' ;;
22164
# Neutralize VPATH when `$srcdir' = `.'.
22165
# Shell code in configure.ac might set extrasub.
22166
# FIXME: do we really want to maintain this feature?
22167
cat >>$CONFIG_STATUS <<_ACEOF
22171
cat >>$CONFIG_STATUS <<\_ACEOF
22173
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22174
s&@configure_input@&$configure_input&;t t
22175
s&@top_builddir@&$ac_top_builddir_sub&;t t
22176
s&@srcdir@&$ac_srcdir&;t t
22177
s&@abs_srcdir@&$ac_abs_srcdir&;t t
22178
s&@top_srcdir@&$ac_top_srcdir&;t t
22179
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22180
s&@builddir@&$ac_builddir&;t t
22181
s&@abs_builddir@&$ac_abs_builddir&;t t
22182
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22183
s&@INSTALL@&$ac_INSTALL&;t t
22184
s&@MKDIR_P@&$ac_MKDIR_P&;t t
22185
$ac_datarootdir_hack
22186
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22188
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22189
{ ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22190
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22191
{ echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22192
which seems to be undefined. Please make sure it is defined." >&5
22193
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22194
which seems to be undefined. Please make sure it is defined." >&2;}
22198
-) cat "$tmp/out"; rm -f "$tmp/out";;
22199
*) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22204
:C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22205
echo "$as_me: executing $ac_file commands" >&6;}
22210
case $ac_file$ac_mode in
22211
"depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22212
# Strip MF so we end up with the name of the file.
22213
mf=`echo "$mf" | sed -e 's/:.*$//'`
22214
# Check whether this is an Automake generated Makefile or not.
22215
# We used to match only the files named `Makefile.in', but
22216
# some people rename them; so instead we look at the file content.
22217
# Grep'ing the first line is not enough: some people post-process
22218
# each Makefile.in and add a new line on top of each file to say so.
22219
# Grep'ing the whole file is not good either: AIX grep has a line
22220
# limit of 2048, but all sed's we know have understand at least 4000.
22221
if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
22222
dirpart=`$as_dirname -- "$mf" ||
22223
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22224
X"$mf" : 'X\(//\)[^/]' \| \
22225
X"$mf" : 'X\(//\)$' \| \
22226
X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22228
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22232
/^X\(\/\/\)[^/].*/{
22248
# Extract the definition of DEPDIR, am__include, and am__quote
22249
# from the Makefile without running `make'.
22250
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22251
test -z "$DEPDIR" && continue
22252
am__include=`sed -n 's/^am__include = //p' < "$mf"`
22253
test -z "am__include" && continue
22254
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22255
# When using ansi2knr, U may be empty or an underscore; expand it
22256
U=`sed -n 's/^U = //p' < "$mf"`
22257
# Find all dependency output files, they are included files with
22258
# $(DEPDIR) in their names. We invoke sed twice because it is the
22259
# simplest approach to changing $(DEPDIR) to its actual value in the
22261
for file in `sed -n "
22262
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22263
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22264
# Make sure the directory exists.
22265
test -f "$dirpart/$file" && continue
22266
fdir=`$as_dirname -- "$file" ||
22267
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22268
X"$file" : 'X\(//\)[^/]' \| \
22269
X"$file" : 'X\(//\)$' \| \
22270
X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22272
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22276
/^X\(\/\/\)[^/].*/{
22289
{ as_dir=$dirpart/$fdir
22291
-*) as_dir=./$as_dir;;
22293
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22297
*\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22298
*) as_qdir=$as_dir;;
22300
as_dirs="'$as_qdir' $as_dirs"
22301
as_dir=`$as_dirname -- "$as_dir" ||
22302
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22303
X"$as_dir" : 'X\(//\)[^/]' \| \
22304
X"$as_dir" : 'X\(//\)$' \| \
22305
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22307
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22311
/^X\(\/\/\)[^/].*/{
22324
test -d "$as_dir" && break
22326
test -z "$as_dirs" || eval "mkdir $as_dirs"
22327
} || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22328
echo "$as_me: error: cannot create directory $as_dir" >&2;}
22329
{ (exit 1); exit 1; }; }; }
22330
# echo "creating $dirpart/$file"
22331
echo '# dummy' > "$dirpart/$file"
22335
"ijs-config":F) chmod +x ijs-config ;;
22341
{ (exit 0); exit 0; }
22343
chmod +x $CONFIG_STATUS
22344
ac_clean_files=$ac_clean_files_save
22347
# configure is writing to config.log, and then calls config.status.
22348
# config.status does its own redirection, appending to config.log.
22349
# Unfortunately, on DOS this fails, as config.log is still kept open
22350
# by configure, so config.status won't be able to write to it; its
22351
# output is simply discarded. So we exec the FD to /dev/null,
22352
# effectively closing config.log, so it can be properly (re)opened and
22353
# appended to by config.status. When coming back to configure, we
22354
# need to make the FD available again.
22355
if test "$no_create" != yes; then
22357
ac_config_status_args=
22358
test "$silent" = yes &&
22359
ac_config_status_args="$ac_config_status_args --quiet"
22361
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22363
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
22364
# would make configure fail if this is the last instruction.
22365
$ac_cs_success || { (exit 1); exit 1; }