2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.61.
5
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6
# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7
# This configure script is free software; the Free Software Foundation
8
# gives unlimited permission to copy, distribute and modify it.
9
## --------------------- ##
10
## M4sh Initialization. ##
11
## --------------------- ##
13
# Be more Bourne compatible
14
DUALCASE=1; export DUALCASE # for MKS sh
15
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19
# is contrary to our usage. Disable this feature.
20
alias -g '${1+"$@"}'='"$@"'
23
case `(set -o) 2>/dev/null` in
24
*posix*) set -o posix ;;
33
# Avoid depending upon Character Ranges.
34
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37
as_cr_digits='0123456789'
38
as_cr_alnum=$as_cr_Letters$as_cr_digits
40
# The user is always right.
41
if test "${PATH_SEPARATOR+set}" != set; then
42
echo "#! /bin/sh" >conf$$.sh
43
echo "exit 0" >>conf$$.sh
45
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53
# Support unset when possible.
54
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62
# We need space, tab and new line, in precisely that order. Quoting is
63
# there to prevent editors from complaining about space-tab.
64
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65
# splitting by setting IFS to empty value.)
70
# Find who we are. Look in the path if we contain no directory separator.
72
*[\\/]* ) as_myself=$0 ;;
73
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77
test -z "$as_dir" && as_dir=.
78
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84
# We did not find ourselves, most probably we were run as `sh COMMAND'
85
# in which case we are not to be found in the path.
86
if test "x$as_myself" = x; then
89
if test ! -f "$as_myself"; then
90
echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94
# Work around bugs in pre-3.0 UWIN ksh.
95
for as_var in ENV MAIL MAILPATH
96
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109
eval $as_var=C; export $as_var
111
($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115
# Required to use basename.
116
if expr a : '\(a\)' >/dev/null 2>&1 &&
117
test "X`expr 00001 : '.*\(...\)'`" = X001; then
123
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130
# Name of the executable.
131
as_me=`$as_basename -- "$0" ||
132
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133
X"$0" : 'X\(//\)$' \| \
134
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136
sed '/^.*\/\([^/][^/]*\)\/*$/{
154
if test "x$CONFIG_SHELL" = x; then
155
if (eval ":") 2>/dev/null; then
161
if test $as_have_required = yes && (eval ":
171
as_func_ret_success () {
174
as_func_ret_failure () {
179
if as_func_success; then
183
echo as_func_success failed.
186
if as_func_failure; then
188
echo as_func_failure succeeded.
191
if as_func_ret_success; then
195
echo as_func_ret_success failed.
198
if as_func_ret_failure; then
200
echo as_func_ret_failure succeeded.
203
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207
echo positional parameters were not saved.
210
test \$exitcode = 0) || { (exit 1); exit 1; }
215
test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216
test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217
") 2> /dev/null; then
221
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225
test -z "$as_dir" && as_dir=.
228
for as_base in sh bash ksh sh5; do
229
as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236
for as_shell in $as_candidate_shells $SHELL; do
237
# Try only shells that exist, to save several forks.
238
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239
{ ("$as_shell") 2> /dev/null <<\_ASEOF
240
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244
# is contrary to our usage. Disable this feature.
245
alias -g '${1+"$@"}'='"$@"'
248
case `(set -o) 2>/dev/null` in
249
*posix*) set -o posix ;;
258
CONFIG_SHELL=$as_shell
260
if { "$as_shell" 2> /dev/null <<\_ASEOF
261
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265
# is contrary to our usage. Disable this feature.
266
alias -g '${1+"$@"}'='"$@"'
269
case `(set -o) 2>/dev/null` in
270
*posix*) set -o posix ;;
286
as_func_ret_success () {
289
as_func_ret_failure () {
294
if as_func_success; then
298
echo as_func_success failed.
301
if as_func_failure; then
303
echo as_func_failure succeeded.
306
if as_func_ret_success; then
310
echo as_func_ret_success failed.
313
if as_func_ret_failure; then
315
echo as_func_ret_failure succeeded.
318
if ( set x; as_func_ret_success y && test x = "$1" ); then
322
echo positional parameters were not saved.
325
test $exitcode = 0) || { (exit 1); exit 1; }
330
test "x$as_lineno_1" != "x$as_lineno_2" &&
331
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
342
if test "x$CONFIG_SHELL" != x; then
343
for as_var in BASH_ENV ENV
344
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347
exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351
if test $as_have_required = no; then
352
echo This script requires a shell more modern than all the
353
echo shells that I found on your system. Please install a
354
echo modern shell, or manually run the script under such a
355
echo shell if you do have one.
356
{ (exit 1); exit 1; }
366
(eval "as_func_return () {
375
as_func_ret_success () {
378
as_func_ret_failure () {
383
if as_func_success; then
387
echo as_func_success failed.
390
if as_func_failure; then
392
echo as_func_failure succeeded.
395
if as_func_ret_success; then
399
echo as_func_ret_success failed.
402
if as_func_ret_failure; then
404
echo as_func_ret_failure succeeded.
407
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411
echo positional parameters were not saved.
414
test \$exitcode = 0") || {
415
echo No shell found that supports shell functions.
416
echo Please tell autoconf@gnu.org about your system,
417
echo including any error possibly output before this
425
test "x$as_lineno_1" != "x$as_lineno_2" &&
426
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429
# uniformly replaced by the line number. The first 'sed' inserts a
430
# line-number line after each line using $LINENO; the second 'sed'
431
# does the real work. The second script uses 'N' to pair each
432
# line-number line with the line containing $LINENO, and appends
433
# trailing '-' during substitution so that $LINENO is not a special
435
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436
# scripts with optimization help from Paolo Bonzini. Blame Lee
437
# E. McMahon (1931-1989) for sed's syntax. :-)
449
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453
chmod +x "$as_me.lineno" ||
454
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455
{ (exit 1); exit 1; }; }
457
# Don't try to exec as it changes $[0], causing all sort of problems
458
# (the dirname of $[0] is not the place where we might find the
459
# original and so on. Autoconf is especially sensitive to this).
461
# Exit status is that of the last command.
466
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
472
ECHO_C= ECHO_N= ECHO_T=
476
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
483
if expr a : '\(a\)' >/dev/null 2>&1 &&
484
test "X`expr 00001 : '.*\(...\)'`" = X001; then
490
rm -f conf$$ conf$$.exe conf$$.file
491
if test -d conf$$.dir; then
492
rm -f conf$$.dir/conf$$.file
498
if ln -s conf$$.file conf$$ 2>/dev/null; then
500
# ... but there are two gotchas:
501
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503
# In both cases, we have to default to `cp -p'.
504
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506
elif ln conf$$.file conf$$ 2>/dev/null; then
511
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512
rmdir conf$$.dir 2>/dev/null
514
if mkdir -p . 2>/dev/null; then
517
test -d ./-p && rmdir ./-p
521
if test -x / >/dev/null 2>&1; then
524
if ls -dL / >/dev/null 2>&1; then
531
if test -d "$1"; then
537
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538
???[sx]*):;;*)false;;esac;fi
542
as_executable_p=$as_test_x
544
# Sed expression to map a string onto a valid CPP name.
545
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547
# Sed expression to map a string onto a valid variable name.
548
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
553
# Check that we are running under the correct shell.
554
SHELL=${CONFIG_SHELL-/bin/sh}
558
# Remove one level of quotation (which was required for Make).
559
ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
564
if test "X$1" = X--no-reexec; then
565
# Discard the --no-reexec flag, and continue.
567
elif test "X$1" = X--fallback-echo; then
568
# Avoid inline document here, it may be left over
570
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
571
# Yippee, $echo works!
574
# Restart under the correct shell.
575
exec $SHELL "$0" --no-reexec ${1+"$@"}
578
if test "X$1" = X--fallback-echo; then
579
# used as fallback echo
587
# The HP-UX ksh and POSIX shell print the target directory to stdout
589
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
591
if test -z "$ECHO"; then
592
if test "X${echo_test_string+set}" != Xset; then
593
# find a string as large as possible, as long as the shell can cope with it
594
for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596
if (echo_test_string=`eval $cmd`) 2>/dev/null &&
597
echo_test_string=`eval $cmd` &&
598
(test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
605
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
606
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
607
test "X$echo_testing_string" = "X$echo_test_string"; then
610
# The Solaris, AIX, and Digital Unix default echo programs unquote
611
# backslashes. This makes it impossible to quote backslashes using
612
# echo "$something" | sed 's/\\/\\\\/g'
614
# So, first we look for a working echo in the user's PATH.
616
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
617
for dir in $PATH /usr/ucb; do
619
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
620
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
621
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
622
test "X$echo_testing_string" = "X$echo_test_string"; then
629
if test "X$echo" = Xecho; then
630
# We didn't find a better echo, so look for alternatives.
631
if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
632
echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
633
test "X$echo_testing_string" = "X$echo_test_string"; then
634
# This shell has a builtin print -r that does the trick.
636
elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
637
test "X$CONFIG_SHELL" != X/bin/ksh; then
638
# If we have ksh, try running configure again with it.
639
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
640
export ORIGINAL_CONFIG_SHELL
641
CONFIG_SHELL=/bin/ksh
643
exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
647
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
648
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
649
test "X$echo_testing_string" = "X$echo_test_string"; then
652
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
653
test "X$echo_testing_string" = 'X\t' &&
654
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
655
test "X$echo_testing_string" = "X$echo_test_string"; then
656
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
658
SHELL="$CONFIG_SHELL"
660
echo="$CONFIG_SHELL $0 --fallback-echo"
661
elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
662
test "X$echo_testing_string" = 'X\t' &&
663
echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
664
test "X$echo_testing_string" = "X$echo_test_string"; then
665
echo="$CONFIG_SHELL $0 --fallback-echo"
667
# maybe with a smaller string...
670
for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
671
if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
678
if test "$prev" != 'sed 50q "$0"'; then
679
echo_test_string=`eval $prev`
680
export echo_test_string
681
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
683
# Oops. We lost completely, so just stick with echo.
692
# Copy echo and quote the copy suitably for passing to libtool from
693
# the Makefile, instead of quoting the original, which is used later.
695
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
696
ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
702
tagnames=${tagnames+${tagnames},}CXX
704
tagnames=${tagnames+${tagnames},}F77
706
exec 7<&0 </dev/null 6>&1
709
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
710
# so uname gets run too.
711
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
716
ac_default_prefix=/usr/local
718
ac_config_libobj_dir=.
724
SHELL=${CONFIG_SHELL-/bin/sh}
726
# Identity of this package.
733
ac_unique_file="include/portaudio.h"
734
# Factoring default headers for most tests.
735
ac_includes_default="\
737
#ifdef HAVE_SYS_TYPES_H
738
# include <sys/types.h>
740
#ifdef HAVE_SYS_STAT_H
741
# include <sys/stat.h>
747
# ifdef HAVE_STDLIB_H
752
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
757
#ifdef HAVE_STRINGS_H
758
# include <strings.h>
760
#ifdef HAVE_INTTYPES_H
761
# include <inttypes.h>
779
program_transform_name
863
ac_precious_vars='build_alias
881
ac_subdirs_all='bindings/cpp'
883
# Initialize some variables set by options.
885
ac_init_version=false
886
# The variables have the same names as the options, with
887
# dashes changed to underlines.
895
program_transform_name=s,x,x,
903
# Installation directory options.
904
# These are left unexpanded so users can "make install exec_prefix=/foo"
905
# and all the variables that are supposed to be based on exec_prefix
906
# by default will actually change.
907
# Use braces instead of parens because sh, perl, etc. also accept them.
908
# (The list follows the same order as the GNU Coding Standards.)
909
bindir='${exec_prefix}/bin'
910
sbindir='${exec_prefix}/sbin'
911
libexecdir='${exec_prefix}/libexec'
912
datarootdir='${prefix}/share'
913
datadir='${datarootdir}'
914
sysconfdir='${prefix}/etc'
915
sharedstatedir='${prefix}/com'
916
localstatedir='${prefix}/var'
917
includedir='${prefix}/include'
918
oldincludedir='/usr/include'
919
docdir='${datarootdir}/doc/${PACKAGE}'
920
infodir='${datarootdir}/info'
925
libdir='${exec_prefix}/lib'
926
localedir='${datarootdir}/locale'
927
mandir='${datarootdir}/man'
933
# If the previous option needs an argument, assign it.
934
if test -n "$ac_prev"; then
935
eval $ac_prev=\$ac_option
941
*=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
945
# Accept the important Cygnus configure options, so we can diagnose typos.
947
case $ac_dashdash$ac_option in
951
-bindir | --bindir | --bindi | --bind | --bin | --bi)
953
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
956
-build | --build | --buil | --bui | --bu)
957
ac_prev=build_alias ;;
958
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
959
build_alias=$ac_optarg ;;
961
-cache-file | --cache-file | --cache-fil | --cache-fi \
962
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
963
ac_prev=cache_file ;;
964
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
965
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
966
cache_file=$ac_optarg ;;
969
cache_file=config.cache ;;
971
-datadir | --datadir | --datadi | --datad)
973
-datadir=* | --datadir=* | --datadi=* | --datad=*)
974
datadir=$ac_optarg ;;
976
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
977
| --dataroo | --dataro | --datar)
978
ac_prev=datarootdir ;;
979
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
980
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
981
datarootdir=$ac_optarg ;;
983
-disable-* | --disable-*)
984
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
985
# Reject names that are not valid shell variable names.
986
expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
987
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
988
{ (exit 1); exit 1; }; }
989
ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
990
eval enable_$ac_feature=no ;;
992
-docdir | --docdir | --docdi | --doc | --do)
994
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
997
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
999
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1000
dvidir=$ac_optarg ;;
1002
-enable-* | --enable-*)
1003
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1004
# Reject names that are not valid shell variable names.
1005
expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1006
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
1007
{ (exit 1); exit 1; }; }
1008
ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1009
eval enable_$ac_feature=\$ac_optarg ;;
1011
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1012
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1013
| --exec | --exe | --ex)
1014
ac_prev=exec_prefix ;;
1015
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1016
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1017
| --exec=* | --exe=* | --ex=*)
1018
exec_prefix=$ac_optarg ;;
1020
-gas | --gas | --ga | --g)
1021
# Obsolete; use --with-gas.
1024
-help | --help | --hel | --he | -h)
1025
ac_init_help=long ;;
1026
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1027
ac_init_help=recursive ;;
1028
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1029
ac_init_help=short ;;
1031
-host | --host | --hos | --ho)
1032
ac_prev=host_alias ;;
1033
-host=* | --host=* | --hos=* | --ho=*)
1034
host_alias=$ac_optarg ;;
1036
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1038
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1040
htmldir=$ac_optarg ;;
1042
-includedir | --includedir | --includedi | --included | --include \
1043
| --includ | --inclu | --incl | --inc)
1044
ac_prev=includedir ;;
1045
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1046
| --includ=* | --inclu=* | --incl=* | --inc=*)
1047
includedir=$ac_optarg ;;
1049
-infodir | --infodir | --infodi | --infod | --info | --inf)
1051
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1052
infodir=$ac_optarg ;;
1054
-libdir | --libdir | --libdi | --libd)
1056
-libdir=* | --libdir=* | --libdi=* | --libd=*)
1057
libdir=$ac_optarg ;;
1059
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1060
| --libexe | --libex | --libe)
1061
ac_prev=libexecdir ;;
1062
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1063
| --libexe=* | --libex=* | --libe=*)
1064
libexecdir=$ac_optarg ;;
1066
-localedir | --localedir | --localedi | --localed | --locale)
1067
ac_prev=localedir ;;
1068
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1069
localedir=$ac_optarg ;;
1071
-localstatedir | --localstatedir | --localstatedi | --localstated \
1072
| --localstate | --localstat | --localsta | --localst | --locals)
1073
ac_prev=localstatedir ;;
1074
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1075
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1076
localstatedir=$ac_optarg ;;
1078
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1080
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1081
mandir=$ac_optarg ;;
1083
-nfp | --nfp | --nf)
1084
# Obsolete; use --without-fp.
1087
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
1088
| --no-cr | --no-c | -n)
1091
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
1092
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1095
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1096
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1097
| --oldin | --oldi | --old | --ol | --o)
1098
ac_prev=oldincludedir ;;
1099
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1100
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1101
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1102
oldincludedir=$ac_optarg ;;
1104
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1106
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1107
prefix=$ac_optarg ;;
1109
-program-prefix | --program-prefix | --program-prefi | --program-pref \
1110
| --program-pre | --program-pr | --program-p)
1111
ac_prev=program_prefix ;;
1112
-program-prefix=* | --program-prefix=* | --program-prefi=* \
1113
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1114
program_prefix=$ac_optarg ;;
1116
-program-suffix | --program-suffix | --program-suffi | --program-suff \
1117
| --program-suf | --program-su | --program-s)
1118
ac_prev=program_suffix ;;
1119
-program-suffix=* | --program-suffix=* | --program-suffi=* \
1120
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1121
program_suffix=$ac_optarg ;;
1123
-program-transform-name | --program-transform-name \
1124
| --program-transform-nam | --program-transform-na \
1125
| --program-transform-n | --program-transform- \
1126
| --program-transform | --program-transfor \
1127
| --program-transfo | --program-transf \
1128
| --program-trans | --program-tran \
1129
| --progr-tra | --program-tr | --program-t)
1130
ac_prev=program_transform_name ;;
1131
-program-transform-name=* | --program-transform-name=* \
1132
| --program-transform-nam=* | --program-transform-na=* \
1133
| --program-transform-n=* | --program-transform-=* \
1134
| --program-transform=* | --program-transfor=* \
1135
| --program-transfo=* | --program-transf=* \
1136
| --program-trans=* | --program-tran=* \
1137
| --progr-tra=* | --program-tr=* | --program-t=*)
1138
program_transform_name=$ac_optarg ;;
1140
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1142
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1143
pdfdir=$ac_optarg ;;
1145
-psdir | --psdir | --psdi | --psd | --ps)
1147
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1150
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1151
| -silent | --silent | --silen | --sile | --sil)
1154
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1156
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1158
sbindir=$ac_optarg ;;
1160
-sharedstatedir | --sharedstatedir | --sharedstatedi \
1161
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1162
| --sharedst | --shareds | --shared | --share | --shar \
1164
ac_prev=sharedstatedir ;;
1165
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1166
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1167
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1169
sharedstatedir=$ac_optarg ;;
1171
-site | --site | --sit)
1173
-site=* | --site=* | --sit=*)
1176
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1178
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1179
srcdir=$ac_optarg ;;
1181
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1182
| --syscon | --sysco | --sysc | --sys | --sy)
1183
ac_prev=sysconfdir ;;
1184
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1185
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1186
sysconfdir=$ac_optarg ;;
1188
-target | --target | --targe | --targ | --tar | --ta | --t)
1189
ac_prev=target_alias ;;
1190
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1191
target_alias=$ac_optarg ;;
1193
-v | -verbose | --verbose | --verbos | --verbo | --verb)
1196
-version | --version | --versio | --versi | --vers | -V)
1197
ac_init_version=: ;;
1200
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1201
# Reject names that are not valid shell variable names.
1202
expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1203
{ echo "$as_me: error: invalid package name: $ac_package" >&2
1204
{ (exit 1); exit 1; }; }
1205
ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1206
eval with_$ac_package=\$ac_optarg ;;
1208
-without-* | --without-*)
1209
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1210
# Reject names that are not valid shell variable names.
1211
expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1212
{ echo "$as_me: error: invalid package name: $ac_package" >&2
1213
{ (exit 1); exit 1; }; }
1214
ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1215
eval with_$ac_package=no ;;
1218
# Obsolete; use --with-x.
1221
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1222
| --x-incl | --x-inc | --x-in | --x-i)
1223
ac_prev=x_includes ;;
1224
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1225
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1226
x_includes=$ac_optarg ;;
1228
-x-libraries | --x-libraries | --x-librarie | --x-librari \
1229
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1230
ac_prev=x_libraries ;;
1231
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1232
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1233
x_libraries=$ac_optarg ;;
1235
-*) { echo "$as_me: error: unrecognized option: $ac_option
1236
Try \`$0 --help' for more information." >&2
1237
{ (exit 1); exit 1; }; }
1241
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1242
# Reject names that are not valid shell variable names.
1243
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1244
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1245
{ (exit 1); exit 1; }; }
1246
eval $ac_envvar=\$ac_optarg
1247
export $ac_envvar ;;
1250
# FIXME: should be removed in autoconf 3.0.
1251
echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1252
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1253
echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1254
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1260
if test -n "$ac_prev"; then
1261
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1262
{ echo "$as_me: error: missing argument to $ac_option" >&2
1263
{ (exit 1); exit 1; }; }
1266
# Be sure to have absolute directory names.
1267
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1268
datadir sysconfdir sharedstatedir localstatedir includedir \
1269
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1270
libdir localedir mandir
1272
eval ac_val=\$$ac_var
1274
[\\/$]* | ?:[\\/]* ) continue;;
1275
NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1277
{ echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1278
{ (exit 1); exit 1; }; }
1281
# There might be people who depend on the old broken behavior: `$host'
1282
# used to hold the argument of --host etc.
1283
# FIXME: To remove some day.
1286
target=$target_alias
1288
# FIXME: To remove some day.
1289
if test "x$host_alias" != x; then
1290
if test "x$build_alias" = x; then
1291
cross_compiling=maybe
1292
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1293
If a cross compiler is detected then cross compile mode will be used." >&2
1294
elif test "x$build_alias" != "x$host_alias"; then
1300
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1302
test "$silent" = yes && exec 6>/dev/null
1305
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1306
ac_ls_di=`ls -di .` &&
1307
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1308
{ echo "$as_me: error: Working directory cannot be determined" >&2
1309
{ (exit 1); exit 1; }; }
1310
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1311
{ echo "$as_me: error: pwd does not report name of working directory" >&2
1312
{ (exit 1); exit 1; }; }
1315
# Find the source files, if location was not specified.
1316
if test -z "$srcdir"; then
1317
ac_srcdir_defaulted=yes
1318
# Try the directory containing this script, then the parent directory.
1319
ac_confdir=`$as_dirname -- "$0" ||
1320
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1321
X"$0" : 'X\(//\)[^/]' \| \
1322
X"$0" : 'X\(//\)$' \| \
1323
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1325
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1343
if test ! -r "$srcdir/$ac_unique_file"; then
1347
ac_srcdir_defaulted=no
1349
if test ! -r "$srcdir/$ac_unique_file"; then
1350
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1351
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1352
{ (exit 1); exit 1; }; }
1354
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1356
cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1357
{ (exit 1); exit 1; }; }
1359
# When building in place, set srcdir=.
1360
if test "$ac_abs_confdir" = "$ac_pwd"; then
1363
# Remove unnecessary trailing slashes from srcdir.
1364
# Double slashes in file names in object file debugging info
1365
# mess up M-x gdb in Emacs.
1367
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1369
for ac_var in $ac_precious_vars; do
1370
eval ac_env_${ac_var}_set=\${${ac_var}+set}
1371
eval ac_env_${ac_var}_value=\$${ac_var}
1372
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1373
eval ac_cv_env_${ac_var}_value=\$${ac_var}
1377
# Report the --help message.
1379
if test "$ac_init_help" = "long"; then
1380
# Omit some internal or obsolete options to make the list less imposing.
1381
# This message is too long to be a string in the A/UX 3.1 sh.
1383
\`configure' configures this package to adapt to many kinds of systems.
1385
Usage: $0 [OPTION]... [VAR=VALUE]...
1387
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1388
VAR=VALUE. See below for descriptions of some of the useful variables.
1390
Defaults for the options are specified in brackets.
1393
-h, --help display this help and exit
1394
--help=short display options specific to this package
1395
--help=recursive display the short help of all the included packages
1396
-V, --version display version information and exit
1397
-q, --quiet, --silent do not print \`checking...' messages
1398
--cache-file=FILE cache test results in FILE [disabled]
1399
-C, --config-cache alias for \`--cache-file=config.cache'
1400
-n, --no-create do not create output files
1401
--srcdir=DIR find the sources in DIR [configure dir or \`..']
1403
Installation directories:
1404
--prefix=PREFIX install architecture-independent files in PREFIX
1405
[$ac_default_prefix]
1406
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1409
By default, \`make install' will install all the files in
1410
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1411
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1412
for instance \`--prefix=\$HOME'.
1414
For better control, use the options below.
1416
Fine tuning of the installation directories:
1417
--bindir=DIR user executables [EPREFIX/bin]
1418
--sbindir=DIR system admin executables [EPREFIX/sbin]
1419
--libexecdir=DIR program executables [EPREFIX/libexec]
1420
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1421
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1422
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1423
--libdir=DIR object code libraries [EPREFIX/lib]
1424
--includedir=DIR C header files [PREFIX/include]
1425
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1426
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1427
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1428
--infodir=DIR info documentation [DATAROOTDIR/info]
1429
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1430
--mandir=DIR man documentation [DATAROOTDIR/man]
1431
--docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1432
--htmldir=DIR html documentation [DOCDIR]
1433
--dvidir=DIR dvi documentation [DOCDIR]
1434
--pdfdir=DIR pdf documentation [DOCDIR]
1435
--psdir=DIR ps documentation [DOCDIR]
1441
--build=BUILD configure for building on BUILD [guessed]
1442
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1446
if test -n "$ac_init_help"; then
1451
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1452
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1453
--enable-debug-output
1454
--enable-cxx (default=no)
1455
--enable-mac-debug (default=no)
1456
--enable-mac-universal (default=yes)
1457
--enable-shared[=PKGS] build shared libraries [default=yes]
1458
--enable-static[=PKGS] build static libraries [default=yes]
1459
--enable-fast-install[=PKGS]
1460
optimize for fast installation [default=yes]
1461
--disable-libtool-lock avoid locking (might break parallel builds)
1464
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1465
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1466
--with-alsa (default=yes)
1467
--with-jack (default=yes)
1468
--with-oss (default=yes)
1469
--with-asihpi (default=auto)
1470
--with-host_os (no default)
1471
--with-winapi ((wmme/directx/asio) default=wmme)
1472
--with-macapi ((asio/core/sm) default=core)
1473
--with-asiodir (default=/usr/local/asiosdk2)
1474
--with-dxdir (default=/usr/local/dx7sdk)
1475
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
1476
--with-pic try to use only PIC/non-PIC objects [default=use
1478
--with-tags[=TAGS] include additional configurations [automatic]
1480
Some influential environment variables:
1481
CC C compiler command
1482
CFLAGS C compiler flags
1483
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1484
nonstandard directory <lib dir>
1485
LIBS libraries to pass to the linker, e.g. -l<library>
1486
CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1487
you have headers in a nonstandard directory <include dir>
1489
CXX C++ compiler command
1490
CXXFLAGS C++ compiler flags
1491
CXXCPP C++ preprocessor
1492
F77 Fortran 77 compiler command
1493
FFLAGS Fortran 77 compiler flags
1494
PKG_CONFIG path to pkg-config utility
1495
JACK_CFLAGS C compiler flags for JACK, overriding pkg-config
1496
JACK_LIBS linker flags for JACK, overriding pkg-config
1498
Use these variables to override the choices made by `configure' or to help
1499
it to find libraries and programs with nonstandard names/locations.
1505
if test "$ac_init_help" = "recursive"; then
1506
# If there are subdirs, report their specific --help.
1507
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1508
test -d "$ac_dir" || continue
1512
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1514
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1515
# A ".." for each directory in $ac_dir_suffix.
1516
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1517
case $ac_top_builddir_sub in
1518
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1519
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1522
ac_abs_top_builddir=$ac_pwd
1523
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1524
# for backward compatibility:
1525
ac_top_builddir=$ac_top_build_prefix
1528
.) # We are building in place.
1530
ac_top_srcdir=$ac_top_builddir_sub
1531
ac_abs_top_srcdir=$ac_pwd ;;
1532
[\\/]* | ?:[\\/]* ) # Absolute name.
1533
ac_srcdir=$srcdir$ac_dir_suffix;
1534
ac_top_srcdir=$srcdir
1535
ac_abs_top_srcdir=$srcdir ;;
1537
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1538
ac_top_srcdir=$ac_top_build_prefix$srcdir
1539
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1541
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1543
cd "$ac_dir" || { ac_status=$?; continue; }
1544
# Check for guested configure.
1545
if test -f "$ac_srcdir/configure.gnu"; then
1547
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
1548
elif test -f "$ac_srcdir/configure"; then
1550
$SHELL "$ac_srcdir/configure" --help=recursive
1552
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1554
cd "$ac_pwd" || { ac_status=$?; break; }
1558
test -n "$ac_init_help" && exit $ac_status
1559
if $ac_init_version; then
1562
generated by GNU Autoconf 2.61
1564
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1565
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1566
This configure script is free software; the Free Software Foundation
1567
gives unlimited permission to copy, distribute and modify it.
1571
cat >config.log <<_ACEOF
1572
This file contains any messages produced by compilers while
1573
running configure, to aid debugging if configure makes a mistake.
1575
It was created by $as_me, which was
1576
generated by GNU Autoconf 2.61. Invocation command line was
1588
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1589
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1590
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1591
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1592
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1594
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1595
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1597
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1598
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1599
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1600
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1601
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1602
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1603
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1607
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1611
test -z "$as_dir" && as_dir=.
1612
echo "PATH: $as_dir"
1628
# Keep a trace of the command line.
1629
# Strip out --no-create and --no-recursion so they do not pile up.
1630
# Strip out --silent because we don't want to record it for future runs.
1631
# Also quote any args containing shell meta-characters.
1632
# Make two passes to allow for proper duplicate-argument suppression.
1636
ac_must_keep_next=false
1642
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1643
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1644
| -silent | --silent | --silen | --sile | --sil)
1647
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1650
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1652
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1653
if test $ac_must_keep_next = true; then
1654
ac_must_keep_next=false # Got value, back to normal.
1657
*=* | --config-cache | -C | -disable-* | --disable-* \
1658
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1659
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1660
| -with-* | --with-* | -without-* | --without-* | --x)
1661
case "$ac_configure_args0 " in
1662
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1665
-* ) ac_must_keep_next=true ;;
1668
ac_configure_args="$ac_configure_args '$ac_arg'"
1673
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1674
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1676
# When interrupted or exit'd, cleanup temporary files, and complete
1677
# config.log. We remove comments because anyway the quotes in there
1678
# would cause problems or look ugly.
1679
# WARNING: Use '\'' to represent an apostrophe within the trap.
1680
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1681
trap 'exit_status=$?
1682
# Save into config.log some information that might help in debugging.
1687
## ---------------- ##
1688
## Cache variables. ##
1689
## ---------------- ##
1692
# The following way of writing the cache mishandles newlines in values,
1694
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1695
eval ac_val=\$$ac_var
1699
*_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1700
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1703
_ | IFS | as_nl) ;; #(
1704
*) $as_unset $ac_var ;;
1709
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1710
*${as_nl}ac_space=\ *)
1712
"s/'\''/'\''\\\\'\'''\''/g;
1713
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1716
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1724
## ----------------- ##
1725
## Output variables. ##
1726
## ----------------- ##
1729
for ac_var in $ac_subst_vars
1731
eval ac_val=\$$ac_var
1733
*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1735
echo "$ac_var='\''$ac_val'\''"
1739
if test -n "$ac_subst_files"; then
1741
## ------------------- ##
1742
## File substitutions. ##
1743
## ------------------- ##
1746
for ac_var in $ac_subst_files
1748
eval ac_val=\$$ac_var
1750
*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1752
echo "$ac_var='\''$ac_val'\''"
1757
if test -s confdefs.h; then
1767
test "$ac_signal" != 0 &&
1768
echo "$as_me: caught signal $ac_signal"
1769
echo "$as_me: exit $exit_status"
1771
rm -f core *.core core.conftest.* &&
1772
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1775
for ac_signal in 1 2 13 15; do
1776
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1780
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1781
rm -f -r conftest* confdefs.h
1783
# Predefined preprocessor variables.
1785
cat >>confdefs.h <<_ACEOF
1786
#define PACKAGE_NAME "$PACKAGE_NAME"
1790
cat >>confdefs.h <<_ACEOF
1791
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1795
cat >>confdefs.h <<_ACEOF
1796
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1800
cat >>confdefs.h <<_ACEOF
1801
#define PACKAGE_STRING "$PACKAGE_STRING"
1805
cat >>confdefs.h <<_ACEOF
1806
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1810
# Let the site file select an alternate cache file if it wants to.
1811
# Prefer explicitly selected file to automatically selected ones.
1812
if test -n "$CONFIG_SITE"; then
1813
set x "$CONFIG_SITE"
1814
elif test "x$prefix" != xNONE; then
1815
set x "$prefix/share/config.site" "$prefix/etc/config.site"
1817
set x "$ac_default_prefix/share/config.site" \
1818
"$ac_default_prefix/etc/config.site"
1823
if test -r "$ac_site_file"; then
1824
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1825
echo "$as_me: loading site script $ac_site_file" >&6;}
1826
sed 's/^/| /' "$ac_site_file" >&5
1831
if test -r "$cache_file"; then
1832
# Some versions of bash will fail to source /dev/null (special
1833
# files actually), so we avoid doing that.
1834
if test -f "$cache_file"; then
1835
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
1836
echo "$as_me: loading cache $cache_file" >&6;}
1838
[\\/]* | ?:[\\/]* ) . "$cache_file";;
1839
*) . "./$cache_file";;
1843
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
1844
echo "$as_me: creating cache $cache_file" >&6;}
1848
# Check that the precious variables saved in the cache have kept the same
1850
ac_cache_corrupted=false
1851
for ac_var in $ac_precious_vars; do
1852
eval ac_old_set=\$ac_cv_env_${ac_var}_set
1853
eval ac_new_set=\$ac_env_${ac_var}_set
1854
eval ac_old_val=\$ac_cv_env_${ac_var}_value
1855
eval ac_new_val=\$ac_env_${ac_var}_value
1856
case $ac_old_set,$ac_new_set in
1858
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1859
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1860
ac_cache_corrupted=: ;;
1862
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1863
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1864
ac_cache_corrupted=: ;;
1867
if test "x$ac_old_val" != "x$ac_new_val"; then
1868
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1869
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1870
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1871
echo "$as_me: former value: $ac_old_val" >&2;}
1872
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1873
echo "$as_me: current value: $ac_new_val" >&2;}
1874
ac_cache_corrupted=:
1877
# Pass precious variables to config.status.
1878
if test "$ac_new_set" = set; then
1880
*\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1881
*) ac_arg=$ac_var=$ac_new_val ;;
1883
case " $ac_configure_args " in
1884
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1885
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1889
if $ac_cache_corrupted; then
1890
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1891
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1892
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1893
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1894
{ (exit 1); exit 1; }; }
1914
ac_cpp='$CPP $CPPFLAGS'
1915
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1916
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1917
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1923
# Check whether --with-alsa was given.
1924
if test "${with_alsa+set}" = set; then
1925
withval=$with_alsa; with_alsa=$withval
1932
# Check whether --with-jack was given.
1933
if test "${with_jack+set}" = set; then
1934
withval=$with_jack; with_jack=$withval
1941
# Check whether --with-oss was given.
1942
if test "${with_oss+set}" = set; then
1943
withval=$with_oss; with_oss=$withval
1950
# Check whether --with-asihpi was given.
1951
if test "${with_asihpi+set}" = set; then
1952
withval=$with_asihpi; with_asihpi=$withval
1959
# Check whether --with-host_os was given.
1960
if test "${with_host_os+set}" = set; then
1961
withval=$with_host_os; host_os=$withval
1966
# Check whether --with-winapi was given.
1967
if test "${with_winapi+set}" = set; then
1968
withval=$with_winapi; with_winapi=$withval
1975
# Check whether --with-macapi was given.
1976
if test "${with_macapi+set}" = set; then
1977
withval=$with_macapi; with_macapi=$withval
1984
# Check whether --with-asiodir was given.
1985
if test "${with_asiodir+set}" = set; then
1986
withval=$with_asiodir; with_asiodir=$withval
1988
with_asiodir="/usr/local/asiosdk2"
1993
# Check whether --with-dxdir was given.
1994
if test "${with_dxdir+set}" = set; then
1995
withval=$with_dxdir; with_dxdir=$withval
1997
with_dxdir="/usr/local/dx7sdk"
2001
# Check whether --enable-debug-output was given.
2002
if test "${enable_debug_output+set}" = set; then
2003
enableval=$enable_debug_output; if test x$enableval != xno ; then
2005
cat >>confdefs.h <<\_ACEOF
2006
#define PA_ENABLE_DEBUG_OUTPUT
2014
# Check whether --enable-cxx was given.
2015
if test "${enable_cxx+set}" = set; then
2016
enableval=$enable_cxx; enable_cxx=$enableval
2022
# Check whether --enable-mac-debug was given.
2023
if test "${enable_mac_debug+set}" = set; then
2024
enableval=$enable_mac_debug; enable_mac_debug=$enableval
2026
enable_mac_debug="no"
2030
# Check whether --enable-mac-universal was given.
2031
if test "${enable_mac_universal+set}" = set; then
2032
enableval=$enable_mac_universal; enable_mac_universal=$enableval
2034
enable_mac_universal="yes"
2040
ac_cpp='$CPP $CPPFLAGS'
2041
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2042
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2043
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2044
if test -n "$ac_tool_prefix"; then
2045
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2046
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2047
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2048
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2049
if test "${ac_cv_prog_CC+set}" = set; then
2050
echo $ECHO_N "(cached) $ECHO_C" >&6
2052
if test -n "$CC"; then
2053
ac_cv_prog_CC="$CC" # Let the user override the test.
2055
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2059
test -z "$as_dir" && as_dir=.
2060
for ac_exec_ext in '' $ac_executable_extensions; do
2061
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2062
ac_cv_prog_CC="${ac_tool_prefix}gcc"
2063
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2073
if test -n "$CC"; then
2074
{ echo "$as_me:$LINENO: result: $CC" >&5
2075
echo "${ECHO_T}$CC" >&6; }
2077
{ echo "$as_me:$LINENO: result: no" >&5
2078
echo "${ECHO_T}no" >&6; }
2083
if test -z "$ac_cv_prog_CC"; then
2085
# Extract the first word of "gcc", so it can be a program name with args.
2086
set dummy gcc; ac_word=$2
2087
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2088
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2089
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2090
echo $ECHO_N "(cached) $ECHO_C" >&6
2092
if test -n "$ac_ct_CC"; then
2093
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2095
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2099
test -z "$as_dir" && as_dir=.
2100
for ac_exec_ext in '' $ac_executable_extensions; do
2101
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2102
ac_cv_prog_ac_ct_CC="gcc"
2103
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2112
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2113
if test -n "$ac_ct_CC"; then
2114
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2115
echo "${ECHO_T}$ac_ct_CC" >&6; }
2117
{ echo "$as_me:$LINENO: result: no" >&5
2118
echo "${ECHO_T}no" >&6; }
2121
if test "x$ac_ct_CC" = x; then
2124
case $cross_compiling:$ac_tool_warned in
2126
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2127
whose name does not start with the host triplet. If you think this
2128
configuration is useful to you, please write to autoconf@gnu.org." >&5
2129
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2130
whose name does not start with the host triplet. If you think this
2131
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2132
ac_tool_warned=yes ;;
2140
if test -z "$CC"; then
2141
if test -n "$ac_tool_prefix"; then
2142
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2143
set dummy ${ac_tool_prefix}cc; ac_word=$2
2144
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2145
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2146
if test "${ac_cv_prog_CC+set}" = set; then
2147
echo $ECHO_N "(cached) $ECHO_C" >&6
2149
if test -n "$CC"; then
2150
ac_cv_prog_CC="$CC" # Let the user override the test.
2152
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2156
test -z "$as_dir" && as_dir=.
2157
for ac_exec_ext in '' $ac_executable_extensions; do
2158
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2159
ac_cv_prog_CC="${ac_tool_prefix}cc"
2160
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2170
if test -n "$CC"; then
2171
{ echo "$as_me:$LINENO: result: $CC" >&5
2172
echo "${ECHO_T}$CC" >&6; }
2174
{ echo "$as_me:$LINENO: result: no" >&5
2175
echo "${ECHO_T}no" >&6; }
2181
if test -z "$CC"; then
2182
# Extract the first word of "cc", so it can be a program name with args.
2183
set dummy cc; ac_word=$2
2184
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2185
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2186
if test "${ac_cv_prog_CC+set}" = set; then
2187
echo $ECHO_N "(cached) $ECHO_C" >&6
2189
if test -n "$CC"; then
2190
ac_cv_prog_CC="$CC" # Let the user override the test.
2193
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2197
test -z "$as_dir" && as_dir=.
2198
for ac_exec_ext in '' $ac_executable_extensions; do
2199
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2200
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2201
ac_prog_rejected=yes
2205
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2212
if test $ac_prog_rejected = yes; then
2213
# We found a bogon in the path, so make sure we never use it.
2214
set dummy $ac_cv_prog_CC
2216
if test $# != 0; then
2217
# We chose a different compiler from the bogus one.
2218
# However, it has the same basename, so the bogon will be chosen
2219
# first if we set CC to just the basename; use the full file name.
2221
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2227
if test -n "$CC"; then
2228
{ echo "$as_me:$LINENO: result: $CC" >&5
2229
echo "${ECHO_T}$CC" >&6; }
2231
{ echo "$as_me:$LINENO: result: no" >&5
2232
echo "${ECHO_T}no" >&6; }
2237
if test -z "$CC"; then
2238
if test -n "$ac_tool_prefix"; then
2239
for ac_prog in cl.exe
2241
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2242
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2243
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2244
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2245
if test "${ac_cv_prog_CC+set}" = set; then
2246
echo $ECHO_N "(cached) $ECHO_C" >&6
2248
if test -n "$CC"; then
2249
ac_cv_prog_CC="$CC" # Let the user override the test.
2251
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2255
test -z "$as_dir" && as_dir=.
2256
for ac_exec_ext in '' $ac_executable_extensions; do
2257
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2258
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2259
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2269
if test -n "$CC"; then
2270
{ echo "$as_me:$LINENO: result: $CC" >&5
2271
echo "${ECHO_T}$CC" >&6; }
2273
{ echo "$as_me:$LINENO: result: no" >&5
2274
echo "${ECHO_T}no" >&6; }
2278
test -n "$CC" && break
2281
if test -z "$CC"; then
2283
for ac_prog in cl.exe
2285
# Extract the first word of "$ac_prog", so it can be a program name with args.
2286
set dummy $ac_prog; ac_word=$2
2287
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2288
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2289
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2290
echo $ECHO_N "(cached) $ECHO_C" >&6
2292
if test -n "$ac_ct_CC"; then
2293
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2295
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2299
test -z "$as_dir" && as_dir=.
2300
for ac_exec_ext in '' $ac_executable_extensions; do
2301
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2302
ac_cv_prog_ac_ct_CC="$ac_prog"
2303
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2312
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2313
if test -n "$ac_ct_CC"; then
2314
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2315
echo "${ECHO_T}$ac_ct_CC" >&6; }
2317
{ echo "$as_me:$LINENO: result: no" >&5
2318
echo "${ECHO_T}no" >&6; }
2322
test -n "$ac_ct_CC" && break
2325
if test "x$ac_ct_CC" = x; then
2328
case $cross_compiling:$ac_tool_warned in
2330
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2331
whose name does not start with the host triplet. If you think this
2332
configuration is useful to you, please write to autoconf@gnu.org." >&5
2333
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2334
whose name does not start with the host triplet. If you think this
2335
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2336
ac_tool_warned=yes ;;
2345
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2346
See \`config.log' for more details." >&5
2347
echo "$as_me: error: no acceptable C compiler found in \$PATH
2348
See \`config.log' for more details." >&2;}
2349
{ (exit 1); exit 1; }; }
2351
# Provide some information about the compiler.
2352
echo "$as_me:$LINENO: checking for C compiler version" >&5
2353
ac_compiler=`set X $ac_compile; echo $2`
2354
{ (ac_try="$ac_compiler --version >&5"
2356
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2357
*) ac_try_echo=$ac_try;;
2359
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2360
(eval "$ac_compiler --version >&5") 2>&5
2362
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363
(exit $ac_status); }
2364
{ (ac_try="$ac_compiler -v >&5"
2366
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2367
*) ac_try_echo=$ac_try;;
2369
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2370
(eval "$ac_compiler -v >&5") 2>&5
2372
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2373
(exit $ac_status); }
2374
{ (ac_try="$ac_compiler -V >&5"
2376
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2377
*) ac_try_echo=$ac_try;;
2379
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2380
(eval "$ac_compiler -V >&5") 2>&5
2382
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2383
(exit $ac_status); }
2385
cat >conftest.$ac_ext <<_ACEOF
2388
cat confdefs.h >>conftest.$ac_ext
2389
cat >>conftest.$ac_ext <<_ACEOF
2390
/* end confdefs.h. */
2400
ac_clean_files_save=$ac_clean_files
2401
ac_clean_files="$ac_clean_files a.out a.exe b.out"
2402
# Try to create an executable without -o first, disregard a.out.
2403
# It will help us diagnose broken compilers, and finding out an intuition
2405
{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2406
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2407
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2409
# List of possible output files, starting from the most likely.
2410
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2411
# only as a last resort. b.out is created by i960 compilers.
2412
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2414
# The IRIX 6 linker writes into existing files which may not be
2415
# executable, retaining their permissions. Remove them first so a
2416
# subsequent execution test works.
2418
for ac_file in $ac_files
2421
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2422
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
2427
if { (ac_try="$ac_link_default"
2429
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2430
*) ac_try_echo=$ac_try;;
2432
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2433
(eval "$ac_link_default") 2>&5
2435
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436
(exit $ac_status); }; then
2437
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2438
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2439
# in a Makefile. We should not override ac_cv_exeext if it was cached,
2440
# so that the user can short-circuit this test for compilers unknown to
2442
for ac_file in $ac_files ''
2444
test -f "$ac_file" || continue
2446
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2449
# We found the default executable, but exeext='' is most
2453
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2455
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2457
# We set ac_cv_exeext here because the later test for it is not
2458
# safe: cross compilers may not add the suffix if given an `-o'
2459
# argument, so we may need to know it at that point already.
2460
# Even if this section looks crufty: it has the advantage of
2467
test "$ac_cv_exeext" = no && ac_cv_exeext=
2473
{ echo "$as_me:$LINENO: result: $ac_file" >&5
2474
echo "${ECHO_T}$ac_file" >&6; }
2475
if test -z "$ac_file"; then
2476
echo "$as_me: failed program was:" >&5
2477
sed 's/^/| /' conftest.$ac_ext >&5
2479
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2480
See \`config.log' for more details." >&5
2481
echo "$as_me: error: C compiler cannot create executables
2482
See \`config.log' for more details." >&2;}
2483
{ (exit 77); exit 77; }; }
2486
ac_exeext=$ac_cv_exeext
2488
# Check that the compiler produces executables we can run. If not, either
2489
# the compiler is broken, or we cross compile.
2490
{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2491
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2492
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2493
# If not cross compiling, check that we can run a simple program.
2494
if test "$cross_compiling" != yes; then
2495
if { ac_try='./$ac_file'
2496
{ (case "(($ac_try" in
2497
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2498
*) ac_try_echo=$ac_try;;
2500
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2501
(eval "$ac_try") 2>&5
2503
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2504
(exit $ac_status); }; }; then
2507
if test "$cross_compiling" = maybe; then
2510
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2511
If you meant to cross compile, use \`--host'.
2512
See \`config.log' for more details." >&5
2513
echo "$as_me: error: cannot run C compiled programs.
2514
If you meant to cross compile, use \`--host'.
2515
See \`config.log' for more details." >&2;}
2516
{ (exit 1); exit 1; }; }
2520
{ echo "$as_me:$LINENO: result: yes" >&5
2521
echo "${ECHO_T}yes" >&6; }
2523
rm -f a.out a.exe conftest$ac_cv_exeext b.out
2524
ac_clean_files=$ac_clean_files_save
2525
# Check that the compiler produces executables we can run. If not, either
2526
# the compiler is broken, or we cross compile.
2527
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2528
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2529
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2530
echo "${ECHO_T}$cross_compiling" >&6; }
2532
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2533
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2534
if { (ac_try="$ac_link"
2536
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2537
*) ac_try_echo=$ac_try;;
2539
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2540
(eval "$ac_link") 2>&5
2542
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2543
(exit $ac_status); }; then
2544
# If both `conftest.exe' and `conftest' are `present' (well, observable)
2545
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2546
# work properly (i.e., refer to `conftest.exe'), while it won't with
2548
for ac_file in conftest.exe conftest conftest.*; do
2549
test -f "$ac_file" || continue
2551
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2552
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2558
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2559
See \`config.log' for more details." >&5
2560
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2561
See \`config.log' for more details." >&2;}
2562
{ (exit 1); exit 1; }; }
2565
rm -f conftest$ac_cv_exeext
2566
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2567
echo "${ECHO_T}$ac_cv_exeext" >&6; }
2569
rm -f conftest.$ac_ext
2570
EXEEXT=$ac_cv_exeext
2572
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2573
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2574
if test "${ac_cv_objext+set}" = set; then
2575
echo $ECHO_N "(cached) $ECHO_C" >&6
2577
cat >conftest.$ac_ext <<_ACEOF
2580
cat confdefs.h >>conftest.$ac_ext
2581
cat >>conftest.$ac_ext <<_ACEOF
2582
/* end confdefs.h. */
2592
rm -f conftest.o conftest.obj
2593
if { (ac_try="$ac_compile"
2595
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2596
*) ac_try_echo=$ac_try;;
2598
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2599
(eval "$ac_compile") 2>&5
2601
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602
(exit $ac_status); }; then
2603
for ac_file in conftest.o conftest.obj conftest.*; do
2604
test -f "$ac_file" || continue;
2606
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2607
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2612
echo "$as_me: failed program was:" >&5
2613
sed 's/^/| /' conftest.$ac_ext >&5
2615
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2616
See \`config.log' for more details." >&5
2617
echo "$as_me: error: cannot compute suffix of object files: cannot compile
2618
See \`config.log' for more details." >&2;}
2619
{ (exit 1); exit 1; }; }
2622
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2624
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2625
echo "${ECHO_T}$ac_cv_objext" >&6; }
2626
OBJEXT=$ac_cv_objext
2628
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2629
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2630
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2631
echo $ECHO_N "(cached) $ECHO_C" >&6
2633
cat >conftest.$ac_ext <<_ACEOF
2636
cat confdefs.h >>conftest.$ac_ext
2637
cat >>conftest.$ac_ext <<_ACEOF
2638
/* end confdefs.h. */
2651
rm -f conftest.$ac_objext
2652
if { (ac_try="$ac_compile"
2654
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2655
*) ac_try_echo=$ac_try;;
2657
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2658
(eval "$ac_compile") 2>conftest.er1
2660
grep -v '^ *+' conftest.er1 >conftest.err
2662
cat conftest.err >&5
2663
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664
(exit $ac_status); } && {
2665
test -z "$ac_c_werror_flag" ||
2666
test ! -s conftest.err
2667
} && test -s conftest.$ac_objext; then
2670
echo "$as_me: failed program was:" >&5
2671
sed 's/^/| /' conftest.$ac_ext >&5
2676
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2677
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2680
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2681
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2682
GCC=`test $ac_compiler_gnu = yes && echo yes`
2683
ac_test_CFLAGS=${CFLAGS+set}
2684
ac_save_CFLAGS=$CFLAGS
2685
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2686
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2687
if test "${ac_cv_prog_cc_g+set}" = set; then
2688
echo $ECHO_N "(cached) $ECHO_C" >&6
2690
ac_save_c_werror_flag=$ac_c_werror_flag
2691
ac_c_werror_flag=yes
2694
cat >conftest.$ac_ext <<_ACEOF
2697
cat confdefs.h >>conftest.$ac_ext
2698
cat >>conftest.$ac_ext <<_ACEOF
2699
/* end confdefs.h. */
2709
rm -f conftest.$ac_objext
2710
if { (ac_try="$ac_compile"
2712
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2713
*) ac_try_echo=$ac_try;;
2715
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2716
(eval "$ac_compile") 2>conftest.er1
2718
grep -v '^ *+' conftest.er1 >conftest.err
2720
cat conftest.err >&5
2721
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2722
(exit $ac_status); } && {
2723
test -z "$ac_c_werror_flag" ||
2724
test ! -s conftest.err
2725
} && test -s conftest.$ac_objext; then
2728
echo "$as_me: failed program was:" >&5
2729
sed 's/^/| /' conftest.$ac_ext >&5
2732
cat >conftest.$ac_ext <<_ACEOF
2735
cat confdefs.h >>conftest.$ac_ext
2736
cat >>conftest.$ac_ext <<_ACEOF
2737
/* end confdefs.h. */
2747
rm -f conftest.$ac_objext
2748
if { (ac_try="$ac_compile"
2750
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2751
*) ac_try_echo=$ac_try;;
2753
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2754
(eval "$ac_compile") 2>conftest.er1
2756
grep -v '^ *+' conftest.er1 >conftest.err
2758
cat conftest.err >&5
2759
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760
(exit $ac_status); } && {
2761
test -z "$ac_c_werror_flag" ||
2762
test ! -s conftest.err
2763
} && test -s conftest.$ac_objext; then
2766
echo "$as_me: failed program was:" >&5
2767
sed 's/^/| /' conftest.$ac_ext >&5
2769
ac_c_werror_flag=$ac_save_c_werror_flag
2771
cat >conftest.$ac_ext <<_ACEOF
2774
cat confdefs.h >>conftest.$ac_ext
2775
cat >>conftest.$ac_ext <<_ACEOF
2776
/* end confdefs.h. */
2786
rm -f conftest.$ac_objext
2787
if { (ac_try="$ac_compile"
2789
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2790
*) ac_try_echo=$ac_try;;
2792
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2793
(eval "$ac_compile") 2>conftest.er1
2795
grep -v '^ *+' conftest.er1 >conftest.err
2797
cat conftest.err >&5
2798
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2799
(exit $ac_status); } && {
2800
test -z "$ac_c_werror_flag" ||
2801
test ! -s conftest.err
2802
} && test -s conftest.$ac_objext; then
2805
echo "$as_me: failed program was:" >&5
2806
sed 's/^/| /' conftest.$ac_ext >&5
2811
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2814
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2817
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2818
ac_c_werror_flag=$ac_save_c_werror_flag
2820
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2821
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2822
if test "$ac_test_CFLAGS" = set; then
2823
CFLAGS=$ac_save_CFLAGS
2824
elif test $ac_cv_prog_cc_g = yes; then
2825
if test "$GCC" = yes; then
2831
if test "$GCC" = yes; then
2837
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2838
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2839
if test "${ac_cv_prog_cc_c89+set}" = set; then
2840
echo $ECHO_N "(cached) $ECHO_C" >&6
2842
ac_cv_prog_cc_c89=no
2844
cat >conftest.$ac_ext <<_ACEOF
2847
cat confdefs.h >>conftest.$ac_ext
2848
cat >>conftest.$ac_ext <<_ACEOF
2849
/* end confdefs.h. */
2852
#include <sys/types.h>
2853
#include <sys/stat.h>
2854
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2855
struct buf { int x; };
2856
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2857
static char *e (p, i)
2863
static char *f (char * (*g) (char **, int), char **p, ...)
2868
s = g (p, va_arg (v,int));
2873
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2874
function prototypes and stuff, but not '\xHH' hex character constants.
2875
These don't provoke an error unfortunately, instead are silently treated
2876
as 'x'. The following induces an error, until -std is added to get
2877
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2878
array size at least. It's necessary to write '\x00'==0 to get something
2879
that's true only with -std. */
2880
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2882
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2883
inside strings and character constants. */
2885
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2887
int test (int i, double x);
2888
struct s1 {int (*f) (int a);};
2889
struct s2 {int (*f) (double a);};
2890
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2896
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2901
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2902
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2904
CC="$ac_save_CC $ac_arg"
2905
rm -f conftest.$ac_objext
2906
if { (ac_try="$ac_compile"
2908
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2909
*) ac_try_echo=$ac_try;;
2911
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2912
(eval "$ac_compile") 2>conftest.er1
2914
grep -v '^ *+' conftest.er1 >conftest.err
2916
cat conftest.err >&5
2917
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918
(exit $ac_status); } && {
2919
test -z "$ac_c_werror_flag" ||
2920
test ! -s conftest.err
2921
} && test -s conftest.$ac_objext; then
2922
ac_cv_prog_cc_c89=$ac_arg
2924
echo "$as_me: failed program was:" >&5
2925
sed 's/^/| /' conftest.$ac_ext >&5
2930
rm -f core conftest.err conftest.$ac_objext
2931
test "x$ac_cv_prog_cc_c89" != "xno" && break
2933
rm -f conftest.$ac_ext
2938
case "x$ac_cv_prog_cc_c89" in
2940
{ echo "$as_me:$LINENO: result: none needed" >&5
2941
echo "${ECHO_T}none needed" >&6; } ;;
2943
{ echo "$as_me:$LINENO: result: unsupported" >&5
2944
echo "${ECHO_T}unsupported" >&6; } ;;
2946
CC="$CC $ac_cv_prog_cc_c89"
2947
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2948
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2953
ac_cpp='$CPP $CPPFLAGS'
2954
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2955
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2956
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2960
# Check whether --enable-shared was given.
2961
if test "${enable_shared+set}" = set; then
2962
enableval=$enable_shared; p=${PACKAGE-default}
2964
yes) enable_shared=yes ;;
2965
no) enable_shared=no ;;
2968
# Look at the argument we got. We use all the common list separators.
2969
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2970
for pkg in $enableval; do
2972
if test "X$pkg" = "X$p"; then
2984
# Check whether --enable-static was given.
2985
if test "${enable_static+set}" = set; then
2986
enableval=$enable_static; p=${PACKAGE-default}
2988
yes) enable_static=yes ;;
2989
no) enable_static=no ;;
2992
# Look at the argument we got. We use all the common list separators.
2993
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2994
for pkg in $enableval; do
2996
if test "X$pkg" = "X$p"; then
3008
# Check whether --enable-fast-install was given.
3009
if test "${enable_fast_install+set}" = set; then
3010
enableval=$enable_fast_install; p=${PACKAGE-default}
3012
yes) enable_fast_install=yes ;;
3013
no) enable_fast_install=no ;;
3015
enable_fast_install=no
3016
# Look at the argument we got. We use all the common list separators.
3017
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3018
for pkg in $enableval; do
3020
if test "X$pkg" = "X$p"; then
3021
enable_fast_install=yes
3028
enable_fast_install=yes
3033
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3034
if test -f "$ac_dir/install-sh"; then
3036
ac_install_sh="$ac_aux_dir/install-sh -c"
3038
elif test -f "$ac_dir/install.sh"; then
3040
ac_install_sh="$ac_aux_dir/install.sh -c"
3042
elif test -f "$ac_dir/shtool"; then
3044
ac_install_sh="$ac_aux_dir/shtool install -c"
3048
if test -z "$ac_aux_dir"; then
3049
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
3050
echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
3051
{ (exit 1); exit 1; }; }
3054
# These three variables are undocumented and unsupported,
3055
# and are intended to be withdrawn in a future Autoconf release.
3056
# They can cause serious problems if a builder's source tree is in a directory
3057
# whose full name contains unusual characters.
3058
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3059
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3060
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3063
# Make sure we can run config.sub.
3064
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3065
{ { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3066
echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3067
{ (exit 1); exit 1; }; }
3069
{ echo "$as_me:$LINENO: checking build system type" >&5
3070
echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3071
if test "${ac_cv_build+set}" = set; then
3072
echo $ECHO_N "(cached) $ECHO_C" >&6
3074
ac_build_alias=$build_alias
3075
test "x$ac_build_alias" = x &&
3076
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3077
test "x$ac_build_alias" = x &&
3078
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3079
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3080
{ (exit 1); exit 1; }; }
3081
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3082
{ { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3083
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3084
{ (exit 1); exit 1; }; }
3087
{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3088
echo "${ECHO_T}$ac_cv_build" >&6; }
3089
case $ac_cv_build in
3091
*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3092
echo "$as_me: error: invalid value of canonical build" >&2;}
3093
{ (exit 1); exit 1; }; };;
3096
ac_save_IFS=$IFS; IFS='-'
3102
# Remember, the first character of IFS is used to create $*,
3103
# except with old shells:
3106
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3109
{ echo "$as_me:$LINENO: checking host system type" >&5
3110
echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3111
if test "${ac_cv_host+set}" = set; then
3112
echo $ECHO_N "(cached) $ECHO_C" >&6
3114
if test "x$host_alias" = x; then
3115
ac_cv_host=$ac_cv_build
3117
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3118
{ { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3119
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3120
{ (exit 1); exit 1; }; }
3124
{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3125
echo "${ECHO_T}$ac_cv_host" >&6; }
3128
*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3129
echo "$as_me: error: invalid value of canonical host" >&2;}
3130
{ (exit 1); exit 1; }; };;
3133
ac_save_IFS=$IFS; IFS='-'
3139
# Remember, the first character of IFS is used to create $*,
3140
# except with old shells:
3143
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3146
{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3147
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3148
if test "${lt_cv_path_SED+set}" = set; then
3149
echo $ECHO_N "(cached) $ECHO_C" >&6
3151
# Loop through the user's path and test for sed and gsed.
3152
# Then use that list of sed's as ones to test for truncation.
3153
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3157
test -z "$as_dir" && as_dir=.
3158
for lt_ac_prog in sed gsed; do
3159
for ac_exec_ext in '' $ac_executable_extensions; do
3160
if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3161
lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3168
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3169
# along with /bin/sed that truncates output.
3170
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3171
test ! -f $lt_ac_sed && continue
3172
cat /dev/null > conftest.in
3174
echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3175
# Check for GNU sed and select it if it is found.
3176
if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3177
lt_cv_path_SED=$lt_ac_sed
3181
cat conftest.in conftest.in >conftest.tmp
3182
mv conftest.tmp conftest.in
3183
cp conftest.in conftest.nl
3185
$lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3186
cmp -s conftest.out conftest.nl || break
3187
# 10000 chars as input seems more than enough
3188
test $lt_ac_count -gt 10 && break
3189
lt_ac_count=`expr $lt_ac_count + 1`
3190
if test $lt_ac_count -gt $lt_ac_max; then
3191
lt_ac_max=$lt_ac_count
3192
lt_cv_path_SED=$lt_ac_sed
3200
{ echo "$as_me:$LINENO: result: $SED" >&5
3201
echo "${ECHO_T}$SED" >&6; }
3203
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3204
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3205
if test "${ac_cv_path_GREP+set}" = set; then
3206
echo $ECHO_N "(cached) $ECHO_C" >&6
3208
# Extract the first word of "grep ggrep" to use in msg output
3209
if test -z "$GREP"; then
3210
set dummy grep ggrep; ac_prog_name=$2
3211
if test "${ac_cv_path_GREP+set}" = set; then
3212
echo $ECHO_N "(cached) $ECHO_C" >&6
3214
ac_path_GREP_found=false
3215
# Loop through the user's path and test for each of PROGNAME-LIST
3216
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3217
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3220
test -z "$as_dir" && as_dir=.
3221
for ac_prog in grep ggrep; do
3222
for ac_exec_ext in '' $ac_executable_extensions; do
3223
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3224
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3225
# Check for GNU ac_path_GREP and select it if it is found.
3226
# Check for GNU $ac_path_GREP
3227
case `"$ac_path_GREP" --version 2>&1` in
3229
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3232
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3235
cat "conftest.in" "conftest.in" >"conftest.tmp"
3236
mv "conftest.tmp" "conftest.in"
3237
cp "conftest.in" "conftest.nl"
3238
echo 'GREP' >> "conftest.nl"
3239
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3240
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3241
ac_count=`expr $ac_count + 1`
3242
if test $ac_count -gt ${ac_path_GREP_max-0}; then
3243
# Best one so far, save it but keep looking for a better one
3244
ac_cv_path_GREP="$ac_path_GREP"
3245
ac_path_GREP_max=$ac_count
3247
# 10*(2^10) chars as input seems more than enough
3248
test $ac_count -gt 10 && break
3250
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3254
$ac_path_GREP_found && break 3
3264
GREP="$ac_cv_path_GREP"
3265
if test -z "$GREP"; then
3266
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3267
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3268
{ (exit 1); exit 1; }; }
3272
ac_cv_path_GREP=$GREP
3277
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3278
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3279
GREP="$ac_cv_path_GREP"
3282
{ echo "$as_me:$LINENO: checking for egrep" >&5
3283
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3284
if test "${ac_cv_path_EGREP+set}" = set; then
3285
echo $ECHO_N "(cached) $ECHO_C" >&6
3287
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3288
then ac_cv_path_EGREP="$GREP -E"
3290
# Extract the first word of "egrep" to use in msg output
3291
if test -z "$EGREP"; then
3292
set dummy egrep; ac_prog_name=$2
3293
if test "${ac_cv_path_EGREP+set}" = set; then
3294
echo $ECHO_N "(cached) $ECHO_C" >&6
3296
ac_path_EGREP_found=false
3297
# Loop through the user's path and test for each of PROGNAME-LIST
3298
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3299
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3302
test -z "$as_dir" && as_dir=.
3303
for ac_prog in egrep; do
3304
for ac_exec_ext in '' $ac_executable_extensions; do
3305
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3306
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3307
# Check for GNU ac_path_EGREP and select it if it is found.
3308
# Check for GNU $ac_path_EGREP
3309
case `"$ac_path_EGREP" --version 2>&1` in
3311
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3314
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3317
cat "conftest.in" "conftest.in" >"conftest.tmp"
3318
mv "conftest.tmp" "conftest.in"
3319
cp "conftest.in" "conftest.nl"
3320
echo 'EGREP' >> "conftest.nl"
3321
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3322
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3323
ac_count=`expr $ac_count + 1`
3324
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3325
# Best one so far, save it but keep looking for a better one
3326
ac_cv_path_EGREP="$ac_path_EGREP"
3327
ac_path_EGREP_max=$ac_count
3329
# 10*(2^10) chars as input seems more than enough
3330
test $ac_count -gt 10 && break
3332
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3336
$ac_path_EGREP_found && break 3
3346
EGREP="$ac_cv_path_EGREP"
3347
if test -z "$EGREP"; then
3348
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3349
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3350
{ (exit 1); exit 1; }; }
3354
ac_cv_path_EGREP=$EGREP
3360
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3361
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3362
EGREP="$ac_cv_path_EGREP"
3366
# Check whether --with-gnu-ld was given.
3367
if test "${with_gnu_ld+set}" = set; then
3368
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3374
if test "$GCC" = yes; then
3375
# Check if gcc -print-prog-name=ld gives a path.
3376
{ echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3377
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3380
# gcc leaves a trailing carriage return which upsets mingw
3381
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3383
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3386
# Accept absolute paths.
3388
re_direlt='/[^/][^/]*/\.\./'
3389
# Canonicalize the pathname of ld
3390
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3391
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3392
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3394
test -z "$LD" && LD="$ac_prog"
3397
# If it fails, then pretend we aren't using GCC.
3401
# If it is relative, then search for the first ld in PATH.
3405
elif test "$with_gnu_ld" = yes; then
3406
{ echo "$as_me:$LINENO: checking for GNU ld" >&5
3407
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3409
{ echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3410
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
3412
if test "${lt_cv_path_LD+set}" = set; then
3413
echo $ECHO_N "(cached) $ECHO_C" >&6
3415
if test -z "$LD"; then
3416
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3417
for ac_dir in $PATH; do
3419
test -z "$ac_dir" && ac_dir=.
3420
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3421
lt_cv_path_LD="$ac_dir/$ac_prog"
3422
# Check to see if the program is GNU ld. I'd rather use --version,
3423
# but apparently some variants of GNU ld only accept -v.
3424
# Break only if it was the GNU/non-GNU ld that we prefer.
3425
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3426
*GNU* | *'with BFD'*)
3427
test "$with_gnu_ld" != no && break
3430
test "$with_gnu_ld" != yes && break
3437
lt_cv_path_LD="$LD" # Let the user override the test with a path.
3442
if test -n "$LD"; then
3443
{ echo "$as_me:$LINENO: result: $LD" >&5
3444
echo "${ECHO_T}$LD" >&6; }
3446
{ echo "$as_me:$LINENO: result: no" >&5
3447
echo "${ECHO_T}no" >&6; }
3449
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3450
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3451
{ (exit 1); exit 1; }; }
3452
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3453
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
3454
if test "${lt_cv_prog_gnu_ld+set}" = set; then
3455
echo $ECHO_N "(cached) $ECHO_C" >&6
3457
# I'd rather use --version here, but apparently some GNU lds only accept -v.
3458
case `$LD -v 2>&1 </dev/null` in
3459
*GNU* | *'with BFD'*)
3460
lt_cv_prog_gnu_ld=yes
3463
lt_cv_prog_gnu_ld=no
3467
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3468
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
3469
with_gnu_ld=$lt_cv_prog_gnu_ld
3472
{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3473
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
3474
if test "${lt_cv_ld_reload_flag+set}" = set; then
3475
echo $ECHO_N "(cached) $ECHO_C" >&6
3477
lt_cv_ld_reload_flag='-r'
3479
{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3480
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
3481
reload_flag=$lt_cv_ld_reload_flag
3482
case $reload_flag in
3484
*) reload_flag=" $reload_flag" ;;
3486
reload_cmds='$LD$reload_flag -o $output$reload_objs'
3489
if test "$GCC" = yes; then
3490
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3492
reload_cmds='$LD$reload_flag -o $output$reload_objs'
3497
{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3498
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
3499
if test "${lt_cv_path_NM+set}" = set; then
3500
echo $ECHO_N "(cached) $ECHO_C" >&6
3502
if test -n "$NM"; then
3503
# Let the user override the test.
3506
lt_nm_to_check="${ac_tool_prefix}nm"
3507
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3508
lt_nm_to_check="$lt_nm_to_check nm"
3510
for lt_tmp_nm in $lt_nm_to_check; do
3511
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3512
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3514
test -z "$ac_dir" && ac_dir=.
3515
tmp_nm="$ac_dir/$lt_tmp_nm"
3516
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3517
# Check to see if the nm accepts a BSD-compat flag.
3518
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
3519
# nm: unknown option "B" ignored
3520
# Tru64's nm complains that /dev/null is an invalid object file
3521
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3522
*/dev/null* | *'Invalid file or object type'*)
3523
lt_cv_path_NM="$tmp_nm -B"
3527
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3529
lt_cv_path_NM="$tmp_nm -p"
3533
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3534
continue # so that we can try to find one that supports BSD flags
3543
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3546
{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3547
echo "${ECHO_T}$lt_cv_path_NM" >&6; }
3550
{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
3551
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3553
if test "$LN_S" = "ln -s"; then
3554
{ echo "$as_me:$LINENO: result: yes" >&5
3555
echo "${ECHO_T}yes" >&6; }
3557
{ echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3558
echo "${ECHO_T}no, using $LN_S" >&6; }
3561
{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3562
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
3563
if test "${lt_cv_deplibs_check_method+set}" = set; then
3564
echo $ECHO_N "(cached) $ECHO_C" >&6
3566
lt_cv_file_magic_cmd='$MAGIC_CMD'
3567
lt_cv_file_magic_test_file=
3568
lt_cv_deplibs_check_method='unknown'
3569
# Need to set the preceding variable on all platforms that support
3570
# interlibrary dependencies.
3571
# 'none' -- dependencies not supported.
3572
# `unknown' -- same as none, but documents that we really don't know.
3573
# 'pass_all' -- all dependencies passed with no checks.
3574
# 'test_compile' -- check by making test program.
3575
# 'file_magic [[regex]]' -- check by looking for files in library path
3576
# which responds to the $file_magic_cmd with a given extended regex.
3577
# If you have `file' or equivalent on your system and you're not sure
3578
# whether `pass_all' will *always* work, you probably want this one.
3582
lt_cv_deplibs_check_method=pass_all
3586
lt_cv_deplibs_check_method=pass_all
3590
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3591
lt_cv_file_magic_cmd='/usr/bin/file -L'
3592
lt_cv_file_magic_test_file=/shlib/libc.so
3596
# func_win32_libid is a shell function defined in ltmain.sh
3597
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3598
lt_cv_file_magic_cmd='func_win32_libid'
3602
# Base MSYS/MinGW do not provide the 'file' command needed by
3603
# func_win32_libid shell function, so use a weaker test based on 'objdump'.
3604
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3605
lt_cv_file_magic_cmd='$OBJDUMP -f'
3608
darwin* | rhapsody*)
3609
lt_cv_deplibs_check_method=pass_all
3612
freebsd* | kfreebsd*-gnu | dragonfly*)
3613
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3616
# Not sure whether the presence of OpenBSD here was a mistake.
3617
# Let's accept both of them until this is cleared up.
3618
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3619
lt_cv_file_magic_cmd=/usr/bin/file
3620
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3624
lt_cv_deplibs_check_method=pass_all
3629
lt_cv_deplibs_check_method=pass_all
3632
hpux10.20* | hpux11*)
3633
lt_cv_file_magic_cmd=/usr/bin/file
3636
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3637
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3640
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]'
3641
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3644
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3645
lt_cv_file_magic_test_file=/usr/lib/libc.sl
3651
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3652
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3655
irix5* | irix6* | nonstopux*)
3657
*-32|*"-32 ") libmagic=32-bit;;
3658
*-n32|*"-n32 ") libmagic=N32;;
3659
*-64|*"-64 ") libmagic=64-bit;;
3660
*) libmagic=never-match;;
3662
lt_cv_deplibs_check_method=pass_all
3665
# This must be Linux ELF.
3667
lt_cv_deplibs_check_method=pass_all
3671
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3672
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3674
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3679
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3680
lt_cv_file_magic_cmd=/usr/bin/file
3681
lt_cv_file_magic_test_file=/usr/lib/libnls.so
3685
lt_cv_deplibs_check_method=unknown
3689
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3690
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3692
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3696
osf3* | osf4* | osf5*)
3697
lt_cv_deplibs_check_method=pass_all
3701
lt_cv_deplibs_check_method=pass_all
3705
case $host_vendor in
3707
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]'
3708
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3711
lt_cv_deplibs_check_method=pass_all
3714
lt_cv_file_magic_cmd='/bin/file'
3715
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3718
lt_cv_file_magic_cmd='/bin/file'
3719
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3720
lt_cv_file_magic_test_file=/lib/libc.so
3723
lt_cv_deplibs_check_method=pass_all
3726
lt_cv_deplibs_check_method=pass_all
3731
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3732
lt_cv_deplibs_check_method=pass_all
3737
{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3738
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
3739
file_magic_cmd=$lt_cv_file_magic_cmd
3740
deplibs_check_method=$lt_cv_deplibs_check_method
3741
test -z "$deplibs_check_method" && deplibs_check_method=unknown
3746
# If no C compiler was specified, use CC.
3749
# If no C compiler flags were specified, use CFLAGS.
3750
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3752
# Allow CC to be a program name with arguments.
3756
# Check whether --enable-libtool-lock was given.
3757
if test "${enable_libtool_lock+set}" = set; then
3758
enableval=$enable_libtool_lock;
3761
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3763
# Some flags need to be propagated to the compiler or linker for good
3767
# Find out which ABI we are using.
3768
echo 'int i;' > conftest.$ac_ext
3769
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3770
(eval $ac_compile) 2>&5
3772
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3773
(exit $ac_status); }; then
3774
case `/usr/bin/file conftest.$ac_objext` in
3786
# Find out which ABI we are using.
3787
echo '#line 3787 "configure"' > conftest.$ac_ext
3788
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3789
(eval $ac_compile) 2>&5
3791
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792
(exit $ac_status); }; then
3793
if test "$lt_cv_prog_gnu_ld" = yes; then
3794
case `/usr/bin/file conftest.$ac_objext` in
3796
LD="${LD-ld} -melf32bsmip"
3799
LD="${LD-ld} -melf32bmipn32"
3802
LD="${LD-ld} -melf64bmip"
3806
case `/usr/bin/file conftest.$ac_objext` in
3822
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3823
# Find out which ABI we are using.
3824
echo 'int i;' > conftest.$ac_ext
3825
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3826
(eval $ac_compile) 2>&5
3828
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3829
(exit $ac_status); }; then
3830
case `/usr/bin/file conftest.o` in
3834
LD="${LD-ld} -m elf_i386"
3836
ppc64-*linux*|powerpc64-*linux*)
3837
LD="${LD-ld} -m elf32ppclinux"
3840
LD="${LD-ld} -m elf_s390"
3843
LD="${LD-ld} -m elf32_sparc"
3850
LD="${LD-ld} -m elf_x86_64"
3852
ppc*-*linux*|powerpc*-*linux*)
3853
LD="${LD-ld} -m elf64ppc"
3856
LD="${LD-ld} -m elf64_s390"
3859
LD="${LD-ld} -m elf64_sparc"
3869
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
3870
SAVE_CFLAGS="$CFLAGS"
3871
CFLAGS="$CFLAGS -belf"
3872
{ echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3873
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
3874
if test "${lt_cv_cc_needs_belf+set}" = set; then
3875
echo $ECHO_N "(cached) $ECHO_C" >&6
3878
ac_cpp='$CPP $CPPFLAGS'
3879
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3880
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3881
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3883
cat >conftest.$ac_ext <<_ACEOF
3886
cat confdefs.h >>conftest.$ac_ext
3887
cat >>conftest.$ac_ext <<_ACEOF
3888
/* end confdefs.h. */
3898
rm -f conftest.$ac_objext conftest$ac_exeext
3899
if { (ac_try="$ac_link"
3901
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3902
*) ac_try_echo=$ac_try;;
3904
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3905
(eval "$ac_link") 2>conftest.er1
3907
grep -v '^ *+' conftest.er1 >conftest.err
3909
cat conftest.err >&5
3910
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3911
(exit $ac_status); } && {
3912
test -z "$ac_c_werror_flag" ||
3913
test ! -s conftest.err
3914
} && test -s conftest$ac_exeext &&
3915
$as_test_x conftest$ac_exeext; then
3916
lt_cv_cc_needs_belf=yes
3918
echo "$as_me: failed program was:" >&5
3919
sed 's/^/| /' conftest.$ac_ext >&5
3921
lt_cv_cc_needs_belf=no
3924
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3925
conftest$ac_exeext conftest.$ac_ext
3927
ac_cpp='$CPP $CPPFLAGS'
3928
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3929
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3930
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3933
{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3934
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
3935
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3936
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3937
CFLAGS="$SAVE_CFLAGS"
3941
# Find out which ABI we are using.
3942
echo 'int i;' > conftest.$ac_ext
3943
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3944
(eval $ac_compile) 2>&5
3946
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3947
(exit $ac_status); }; then
3948
case `/usr/bin/file conftest.o` in
3950
case $lt_cv_prog_gnu_ld in
3951
yes*) LD="${LD-ld} -m elf64_sparc" ;;
3952
*) LD="${LD-ld} -64" ;;
3960
*-*-cygwin* | *-*-mingw* | *-*-pw32*)
3961
if test -n "$ac_tool_prefix"; then
3962
# Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3963
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3964
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3965
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3966
if test "${ac_cv_prog_DLLTOOL+set}" = set; then
3967
echo $ECHO_N "(cached) $ECHO_C" >&6
3969
if test -n "$DLLTOOL"; then
3970
ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3972
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3976
test -z "$as_dir" && as_dir=.
3977
for ac_exec_ext in '' $ac_executable_extensions; do
3978
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3979
ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3980
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3989
DLLTOOL=$ac_cv_prog_DLLTOOL
3990
if test -n "$DLLTOOL"; then
3991
{ echo "$as_me:$LINENO: result: $DLLTOOL" >&5
3992
echo "${ECHO_T}$DLLTOOL" >&6; }
3994
{ echo "$as_me:$LINENO: result: no" >&5
3995
echo "${ECHO_T}no" >&6; }
4000
if test -z "$ac_cv_prog_DLLTOOL"; then
4001
ac_ct_DLLTOOL=$DLLTOOL
4002
# Extract the first word of "dlltool", so it can be a program name with args.
4003
set dummy dlltool; ac_word=$2
4004
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4005
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4006
if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4007
echo $ECHO_N "(cached) $ECHO_C" >&6
4009
if test -n "$ac_ct_DLLTOOL"; then
4010
ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4012
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4016
test -z "$as_dir" && as_dir=.
4017
for ac_exec_ext in '' $ac_executable_extensions; do
4018
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4019
ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4020
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4029
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4030
if test -n "$ac_ct_DLLTOOL"; then
4031
{ echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4032
echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
4034
{ echo "$as_me:$LINENO: result: no" >&5
4035
echo "${ECHO_T}no" >&6; }
4038
if test "x$ac_ct_DLLTOOL" = x; then
4041
case $cross_compiling:$ac_tool_warned in
4043
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4044
whose name does not start with the host triplet. If you think this
4045
configuration is useful to you, please write to autoconf@gnu.org." >&5
4046
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4047
whose name does not start with the host triplet. If you think this
4048
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4049
ac_tool_warned=yes ;;
4051
DLLTOOL=$ac_ct_DLLTOOL
4054
DLLTOOL="$ac_cv_prog_DLLTOOL"
4057
if test -n "$ac_tool_prefix"; then
4058
# Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4059
set dummy ${ac_tool_prefix}as; ac_word=$2
4060
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4061
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4062
if test "${ac_cv_prog_AS+set}" = set; then
4063
echo $ECHO_N "(cached) $ECHO_C" >&6
4065
if test -n "$AS"; then
4066
ac_cv_prog_AS="$AS" # Let the user override the test.
4068
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4072
test -z "$as_dir" && as_dir=.
4073
for ac_exec_ext in '' $ac_executable_extensions; do
4074
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4075
ac_cv_prog_AS="${ac_tool_prefix}as"
4076
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4086
if test -n "$AS"; then
4087
{ echo "$as_me:$LINENO: result: $AS" >&5
4088
echo "${ECHO_T}$AS" >&6; }
4090
{ echo "$as_me:$LINENO: result: no" >&5
4091
echo "${ECHO_T}no" >&6; }
4096
if test -z "$ac_cv_prog_AS"; then
4098
# Extract the first word of "as", so it can be a program name with args.
4099
set dummy as; ac_word=$2
4100
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4101
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4102
if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4103
echo $ECHO_N "(cached) $ECHO_C" >&6
4105
if test -n "$ac_ct_AS"; then
4106
ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4108
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4112
test -z "$as_dir" && as_dir=.
4113
for ac_exec_ext in '' $ac_executable_extensions; do
4114
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4115
ac_cv_prog_ac_ct_AS="as"
4116
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4125
ac_ct_AS=$ac_cv_prog_ac_ct_AS
4126
if test -n "$ac_ct_AS"; then
4127
{ echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4128
echo "${ECHO_T}$ac_ct_AS" >&6; }
4130
{ echo "$as_me:$LINENO: result: no" >&5
4131
echo "${ECHO_T}no" >&6; }
4134
if test "x$ac_ct_AS" = x; then
4137
case $cross_compiling:$ac_tool_warned in
4139
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4140
whose name does not start with the host triplet. If you think this
4141
configuration is useful to you, please write to autoconf@gnu.org." >&5
4142
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4143
whose name does not start with the host triplet. If you think this
4144
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4145
ac_tool_warned=yes ;;
4153
if test -n "$ac_tool_prefix"; then
4154
# Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4155
set dummy ${ac_tool_prefix}objdump; ac_word=$2
4156
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4157
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4158
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4159
echo $ECHO_N "(cached) $ECHO_C" >&6
4161
if test -n "$OBJDUMP"; then
4162
ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4164
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4168
test -z "$as_dir" && as_dir=.
4169
for ac_exec_ext in '' $ac_executable_extensions; do
4170
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4171
ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4172
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4181
OBJDUMP=$ac_cv_prog_OBJDUMP
4182
if test -n "$OBJDUMP"; then
4183
{ echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4184
echo "${ECHO_T}$OBJDUMP" >&6; }
4186
{ echo "$as_me:$LINENO: result: no" >&5
4187
echo "${ECHO_T}no" >&6; }
4192
if test -z "$ac_cv_prog_OBJDUMP"; then
4193
ac_ct_OBJDUMP=$OBJDUMP
4194
# Extract the first word of "objdump", so it can be a program name with args.
4195
set dummy objdump; ac_word=$2
4196
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4197
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4198
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4199
echo $ECHO_N "(cached) $ECHO_C" >&6
4201
if test -n "$ac_ct_OBJDUMP"; then
4202
ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4204
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4208
test -z "$as_dir" && as_dir=.
4209
for ac_exec_ext in '' $ac_executable_extensions; do
4210
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4211
ac_cv_prog_ac_ct_OBJDUMP="objdump"
4212
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4221
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4222
if test -n "$ac_ct_OBJDUMP"; then
4223
{ echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4224
echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
4226
{ echo "$as_me:$LINENO: result: no" >&5
4227
echo "${ECHO_T}no" >&6; }
4230
if test "x$ac_ct_OBJDUMP" = x; then
4233
case $cross_compiling:$ac_tool_warned in
4235
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4236
whose name does not start with the host triplet. If you think this
4237
configuration is useful to you, please write to autoconf@gnu.org." >&5
4238
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4239
whose name does not start with the host triplet. If you think this
4240
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4241
ac_tool_warned=yes ;;
4243
OBJDUMP=$ac_ct_OBJDUMP
4246
OBJDUMP="$ac_cv_prog_OBJDUMP"
4253
need_locks="$enable_libtool_lock"
4257
ac_cpp='$CPP $CPPFLAGS'
4258
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4259
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4260
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4261
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4262
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4263
# On Suns, sometimes $CPP names a directory.
4264
if test -n "$CPP" && test -d "$CPP"; then
4267
if test -z "$CPP"; then
4268
if test "${ac_cv_prog_CPP+set}" = set; then
4269
echo $ECHO_N "(cached) $ECHO_C" >&6
4271
# Double quotes because CPP needs to be expanded
4272
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4275
for ac_c_preproc_warn_flag in '' yes
4277
# Use a header file that comes with gcc, so configuring glibc
4278
# with a fresh cross-compiler works.
4279
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4280
# <limits.h> exists even on freestanding compilers.
4281
# On the NeXT, cc -E runs the code through the compiler's parser,
4282
# not just through cpp. "Syntax error" is here to catch this case.
4283
cat >conftest.$ac_ext <<_ACEOF
4286
cat confdefs.h >>conftest.$ac_ext
4287
cat >>conftest.$ac_ext <<_ACEOF
4288
/* end confdefs.h. */
4290
# include <limits.h>
4292
# include <assert.h>
4296
if { (ac_try="$ac_cpp conftest.$ac_ext"
4298
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4299
*) ac_try_echo=$ac_try;;
4301
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4302
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4304
grep -v '^ *+' conftest.er1 >conftest.err
4306
cat conftest.err >&5
4307
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4308
(exit $ac_status); } >/dev/null && {
4309
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4310
test ! -s conftest.err
4314
echo "$as_me: failed program was:" >&5
4315
sed 's/^/| /' conftest.$ac_ext >&5
4317
# Broken: fails on valid input.
4321
rm -f conftest.err conftest.$ac_ext
4323
# OK, works on sane cases. Now check whether nonexistent headers
4324
# can be detected and how.
4325
cat >conftest.$ac_ext <<_ACEOF
4328
cat confdefs.h >>conftest.$ac_ext
4329
cat >>conftest.$ac_ext <<_ACEOF
4330
/* end confdefs.h. */
4331
#include <ac_nonexistent.h>
4333
if { (ac_try="$ac_cpp conftest.$ac_ext"
4335
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4336
*) ac_try_echo=$ac_try;;
4338
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4339
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4341
grep -v '^ *+' conftest.er1 >conftest.err
4343
cat conftest.err >&5
4344
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4345
(exit $ac_status); } >/dev/null && {
4346
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4347
test ! -s conftest.err
4349
# Broken: success on invalid input.
4352
echo "$as_me: failed program was:" >&5
4353
sed 's/^/| /' conftest.$ac_ext >&5
4355
# Passes both tests.
4360
rm -f conftest.err conftest.$ac_ext
4363
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4364
rm -f conftest.err conftest.$ac_ext
4365
if $ac_preproc_ok; then
4377
{ echo "$as_me:$LINENO: result: $CPP" >&5
4378
echo "${ECHO_T}$CPP" >&6; }
4380
for ac_c_preproc_warn_flag in '' yes
4382
# Use a header file that comes with gcc, so configuring glibc
4383
# with a fresh cross-compiler works.
4384
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4385
# <limits.h> exists even on freestanding compilers.
4386
# On the NeXT, cc -E runs the code through the compiler's parser,
4387
# not just through cpp. "Syntax error" is here to catch this case.
4388
cat >conftest.$ac_ext <<_ACEOF
4391
cat confdefs.h >>conftest.$ac_ext
4392
cat >>conftest.$ac_ext <<_ACEOF
4393
/* end confdefs.h. */
4395
# include <limits.h>
4397
# include <assert.h>
4401
if { (ac_try="$ac_cpp conftest.$ac_ext"
4403
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4404
*) ac_try_echo=$ac_try;;
4406
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4407
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4409
grep -v '^ *+' conftest.er1 >conftest.err
4411
cat conftest.err >&5
4412
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413
(exit $ac_status); } >/dev/null && {
4414
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4415
test ! -s conftest.err
4419
echo "$as_me: failed program was:" >&5
4420
sed 's/^/| /' conftest.$ac_ext >&5
4422
# Broken: fails on valid input.
4426
rm -f conftest.err conftest.$ac_ext
4428
# OK, works on sane cases. Now check whether nonexistent headers
4429
# can be detected and how.
4430
cat >conftest.$ac_ext <<_ACEOF
4433
cat confdefs.h >>conftest.$ac_ext
4434
cat >>conftest.$ac_ext <<_ACEOF
4435
/* end confdefs.h. */
4436
#include <ac_nonexistent.h>
4438
if { (ac_try="$ac_cpp conftest.$ac_ext"
4440
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4441
*) ac_try_echo=$ac_try;;
4443
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4444
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4446
grep -v '^ *+' conftest.er1 >conftest.err
4448
cat conftest.err >&5
4449
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4450
(exit $ac_status); } >/dev/null && {
4451
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4452
test ! -s conftest.err
4454
# Broken: success on invalid input.
4457
echo "$as_me: failed program was:" >&5
4458
sed 's/^/| /' conftest.$ac_ext >&5
4460
# Passes both tests.
4465
rm -f conftest.err conftest.$ac_ext
4468
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4469
rm -f conftest.err conftest.$ac_ext
4470
if $ac_preproc_ok; then
4473
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4474
See \`config.log' for more details." >&5
4475
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4476
See \`config.log' for more details." >&2;}
4477
{ (exit 1); exit 1; }; }
4481
ac_cpp='$CPP $CPPFLAGS'
4482
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4483
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4484
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4487
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4488
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4489
if test "${ac_cv_header_stdc+set}" = set; then
4490
echo $ECHO_N "(cached) $ECHO_C" >&6
4492
cat >conftest.$ac_ext <<_ACEOF
4495
cat confdefs.h >>conftest.$ac_ext
4496
cat >>conftest.$ac_ext <<_ACEOF
4497
/* end confdefs.h. */
4511
rm -f conftest.$ac_objext
4512
if { (ac_try="$ac_compile"
4514
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4515
*) ac_try_echo=$ac_try;;
4517
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4518
(eval "$ac_compile") 2>conftest.er1
4520
grep -v '^ *+' conftest.er1 >conftest.err
4522
cat conftest.err >&5
4523
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4524
(exit $ac_status); } && {
4525
test -z "$ac_c_werror_flag" ||
4526
test ! -s conftest.err
4527
} && test -s conftest.$ac_objext; then
4528
ac_cv_header_stdc=yes
4530
echo "$as_me: failed program was:" >&5
4531
sed 's/^/| /' conftest.$ac_ext >&5
4533
ac_cv_header_stdc=no
4536
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4538
if test $ac_cv_header_stdc = yes; then
4539
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4540
cat >conftest.$ac_ext <<_ACEOF
4543
cat confdefs.h >>conftest.$ac_ext
4544
cat >>conftest.$ac_ext <<_ACEOF
4545
/* end confdefs.h. */
4549
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4550
$EGREP "memchr" >/dev/null 2>&1; then
4553
ac_cv_header_stdc=no
4559
if test $ac_cv_header_stdc = yes; then
4560
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4561
cat >conftest.$ac_ext <<_ACEOF
4564
cat confdefs.h >>conftest.$ac_ext
4565
cat >>conftest.$ac_ext <<_ACEOF
4566
/* end confdefs.h. */
4570
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4571
$EGREP "free" >/dev/null 2>&1; then
4574
ac_cv_header_stdc=no
4580
if test $ac_cv_header_stdc = yes; then
4581
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4582
if test "$cross_compiling" = yes; then
4585
cat >conftest.$ac_ext <<_ACEOF
4588
cat confdefs.h >>conftest.$ac_ext
4589
cat >>conftest.$ac_ext <<_ACEOF
4590
/* end confdefs.h. */
4593
#if ((' ' & 0x0FF) == 0x020)
4594
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4595
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4597
# define ISLOWER(c) \
4598
(('a' <= (c) && (c) <= 'i') \
4599
|| ('j' <= (c) && (c) <= 'r') \
4600
|| ('s' <= (c) && (c) <= 'z'))
4601
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4604
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4609
for (i = 0; i < 256; i++)
4610
if (XOR (islower (i), ISLOWER (i))
4611
|| toupper (i) != TOUPPER (i))
4616
rm -f conftest$ac_exeext
4617
if { (ac_try="$ac_link"
4619
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4620
*) ac_try_echo=$ac_try;;
4622
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4623
(eval "$ac_link") 2>&5
4625
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4626
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4627
{ (case "(($ac_try" in
4628
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4629
*) ac_try_echo=$ac_try;;
4631
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4632
(eval "$ac_try") 2>&5
4634
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4635
(exit $ac_status); }; }; then
4638
echo "$as_me: program exited with status $ac_status" >&5
4639
echo "$as_me: failed program was:" >&5
4640
sed 's/^/| /' conftest.$ac_ext >&5
4643
ac_cv_header_stdc=no
4645
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4651
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4652
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4653
if test $ac_cv_header_stdc = yes; then
4655
cat >>confdefs.h <<\_ACEOF
4656
#define STDC_HEADERS 1
4661
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4671
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4672
inttypes.h stdint.h unistd.h
4674
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4675
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4676
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4677
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4678
echo $ECHO_N "(cached) $ECHO_C" >&6
4680
cat >conftest.$ac_ext <<_ACEOF
4683
cat confdefs.h >>conftest.$ac_ext
4684
cat >>conftest.$ac_ext <<_ACEOF
4685
/* end confdefs.h. */
4686
$ac_includes_default
4688
#include <$ac_header>
4690
rm -f conftest.$ac_objext
4691
if { (ac_try="$ac_compile"
4693
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4694
*) ac_try_echo=$ac_try;;
4696
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4697
(eval "$ac_compile") 2>conftest.er1
4699
grep -v '^ *+' conftest.er1 >conftest.err
4701
cat conftest.err >&5
4702
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703
(exit $ac_status); } && {
4704
test -z "$ac_c_werror_flag" ||
4705
test ! -s conftest.err
4706
} && test -s conftest.$ac_objext; then
4707
eval "$as_ac_Header=yes"
4709
echo "$as_me: failed program was:" >&5
4710
sed 's/^/| /' conftest.$ac_ext >&5
4712
eval "$as_ac_Header=no"
4715
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4717
ac_res=`eval echo '${'$as_ac_Header'}'`
4718
{ echo "$as_me:$LINENO: result: $ac_res" >&5
4719
echo "${ECHO_T}$ac_res" >&6; }
4720
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4721
cat >>confdefs.h <<_ACEOF
4722
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4731
for ac_header in dlfcn.h
4733
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4734
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4735
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4736
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4737
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4738
echo $ECHO_N "(cached) $ECHO_C" >&6
4740
ac_res=`eval echo '${'$as_ac_Header'}'`
4741
{ echo "$as_me:$LINENO: result: $ac_res" >&5
4742
echo "${ECHO_T}$ac_res" >&6; }
4744
# Is the header compilable?
4745
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4746
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4747
cat >conftest.$ac_ext <<_ACEOF
4750
cat confdefs.h >>conftest.$ac_ext
4751
cat >>conftest.$ac_ext <<_ACEOF
4752
/* end confdefs.h. */
4753
$ac_includes_default
4754
#include <$ac_header>
4756
rm -f conftest.$ac_objext
4757
if { (ac_try="$ac_compile"
4759
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4760
*) ac_try_echo=$ac_try;;
4762
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4763
(eval "$ac_compile") 2>conftest.er1
4765
grep -v '^ *+' conftest.er1 >conftest.err
4767
cat conftest.err >&5
4768
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4769
(exit $ac_status); } && {
4770
test -z "$ac_c_werror_flag" ||
4771
test ! -s conftest.err
4772
} && test -s conftest.$ac_objext; then
4773
ac_header_compiler=yes
4775
echo "$as_me: failed program was:" >&5
4776
sed 's/^/| /' conftest.$ac_ext >&5
4778
ac_header_compiler=no
4781
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4782
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4783
echo "${ECHO_T}$ac_header_compiler" >&6; }
4785
# Is the header present?
4786
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4787
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4788
cat >conftest.$ac_ext <<_ACEOF
4791
cat confdefs.h >>conftest.$ac_ext
4792
cat >>conftest.$ac_ext <<_ACEOF
4793
/* end confdefs.h. */
4794
#include <$ac_header>
4796
if { (ac_try="$ac_cpp conftest.$ac_ext"
4798
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4799
*) ac_try_echo=$ac_try;;
4801
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4802
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4804
grep -v '^ *+' conftest.er1 >conftest.err
4806
cat conftest.err >&5
4807
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808
(exit $ac_status); } >/dev/null && {
4809
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4810
test ! -s conftest.err
4812
ac_header_preproc=yes
4814
echo "$as_me: failed program was:" >&5
4815
sed 's/^/| /' conftest.$ac_ext >&5
4817
ac_header_preproc=no
4820
rm -f conftest.err conftest.$ac_ext
4821
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4822
echo "${ECHO_T}$ac_header_preproc" >&6; }
4824
# So? What about this header?
4825
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4827
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4828
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4829
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4830
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4831
ac_header_preproc=yes
4834
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4835
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4836
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4837
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4838
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4839
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4840
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4841
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4842
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4843
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4844
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4845
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4849
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4850
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4851
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4852
echo $ECHO_N "(cached) $ECHO_C" >&6
4854
eval "$as_ac_Header=\$ac_header_preproc"
4856
ac_res=`eval echo '${'$as_ac_Header'}'`
4857
{ echo "$as_me:$LINENO: result: $ac_res" >&5
4858
echo "${ECHO_T}$ac_res" >&6; }
4861
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4862
cat >>confdefs.h <<_ACEOF
4863
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4871
ac_cpp='$CXXCPP $CPPFLAGS'
4872
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4873
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4874
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4875
if test -z "$CXX"; then
4876
if test -n "$CCC"; then
4879
if test -n "$ac_tool_prefix"; then
4880
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4882
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4883
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4884
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4885
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4886
if test "${ac_cv_prog_CXX+set}" = set; then
4887
echo $ECHO_N "(cached) $ECHO_C" >&6
4889
if test -n "$CXX"; then
4890
ac_cv_prog_CXX="$CXX" # Let the user override the test.
4892
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4896
test -z "$as_dir" && as_dir=.
4897
for ac_exec_ext in '' $ac_executable_extensions; do
4898
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4899
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4900
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4910
if test -n "$CXX"; then
4911
{ echo "$as_me:$LINENO: result: $CXX" >&5
4912
echo "${ECHO_T}$CXX" >&6; }
4914
{ echo "$as_me:$LINENO: result: no" >&5
4915
echo "${ECHO_T}no" >&6; }
4919
test -n "$CXX" && break
4922
if test -z "$CXX"; then
4924
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4926
# Extract the first word of "$ac_prog", so it can be a program name with args.
4927
set dummy $ac_prog; ac_word=$2
4928
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4929
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4930
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4931
echo $ECHO_N "(cached) $ECHO_C" >&6
4933
if test -n "$ac_ct_CXX"; then
4934
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4936
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4940
test -z "$as_dir" && as_dir=.
4941
for ac_exec_ext in '' $ac_executable_extensions; do
4942
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4943
ac_cv_prog_ac_ct_CXX="$ac_prog"
4944
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4953
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4954
if test -n "$ac_ct_CXX"; then
4955
{ echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4956
echo "${ECHO_T}$ac_ct_CXX" >&6; }
4958
{ echo "$as_me:$LINENO: result: no" >&5
4959
echo "${ECHO_T}no" >&6; }
4963
test -n "$ac_ct_CXX" && break
4966
if test "x$ac_ct_CXX" = x; then
4969
case $cross_compiling:$ac_tool_warned in
4971
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4972
whose name does not start with the host triplet. If you think this
4973
configuration is useful to you, please write to autoconf@gnu.org." >&5
4974
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4975
whose name does not start with the host triplet. If you think this
4976
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4977
ac_tool_warned=yes ;;
4985
# Provide some information about the compiler.
4986
echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4987
ac_compiler=`set X $ac_compile; echo $2`
4988
{ (ac_try="$ac_compiler --version >&5"
4990
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4991
*) ac_try_echo=$ac_try;;
4993
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4994
(eval "$ac_compiler --version >&5") 2>&5
4996
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4997
(exit $ac_status); }
4998
{ (ac_try="$ac_compiler -v >&5"
5000
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5001
*) ac_try_echo=$ac_try;;
5003
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5004
(eval "$ac_compiler -v >&5") 2>&5
5006
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5007
(exit $ac_status); }
5008
{ (ac_try="$ac_compiler -V >&5"
5010
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5011
*) ac_try_echo=$ac_try;;
5013
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5014
(eval "$ac_compiler -V >&5") 2>&5
5016
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017
(exit $ac_status); }
5019
{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5020
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5021
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5022
echo $ECHO_N "(cached) $ECHO_C" >&6
5024
cat >conftest.$ac_ext <<_ACEOF
5027
cat confdefs.h >>conftest.$ac_ext
5028
cat >>conftest.$ac_ext <<_ACEOF
5029
/* end confdefs.h. */
5042
rm -f conftest.$ac_objext
5043
if { (ac_try="$ac_compile"
5045
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5046
*) ac_try_echo=$ac_try;;
5048
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5049
(eval "$ac_compile") 2>conftest.er1
5051
grep -v '^ *+' conftest.er1 >conftest.err
5053
cat conftest.err >&5
5054
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055
(exit $ac_status); } && {
5056
test -z "$ac_cxx_werror_flag" ||
5057
test ! -s conftest.err
5058
} && test -s conftest.$ac_objext; then
5061
echo "$as_me: failed program was:" >&5
5062
sed 's/^/| /' conftest.$ac_ext >&5
5067
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5068
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5071
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5072
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5073
GXX=`test $ac_compiler_gnu = yes && echo yes`
5074
ac_test_CXXFLAGS=${CXXFLAGS+set}
5075
ac_save_CXXFLAGS=$CXXFLAGS
5076
{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5077
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5078
if test "${ac_cv_prog_cxx_g+set}" = set; then
5079
echo $ECHO_N "(cached) $ECHO_C" >&6
5081
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5082
ac_cxx_werror_flag=yes
5085
cat >conftest.$ac_ext <<_ACEOF
5088
cat confdefs.h >>conftest.$ac_ext
5089
cat >>conftest.$ac_ext <<_ACEOF
5090
/* end confdefs.h. */
5100
rm -f conftest.$ac_objext
5101
if { (ac_try="$ac_compile"
5103
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5104
*) ac_try_echo=$ac_try;;
5106
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5107
(eval "$ac_compile") 2>conftest.er1
5109
grep -v '^ *+' conftest.er1 >conftest.err
5111
cat conftest.err >&5
5112
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5113
(exit $ac_status); } && {
5114
test -z "$ac_cxx_werror_flag" ||
5115
test ! -s conftest.err
5116
} && test -s conftest.$ac_objext; then
5117
ac_cv_prog_cxx_g=yes
5119
echo "$as_me: failed program was:" >&5
5120
sed 's/^/| /' conftest.$ac_ext >&5
5123
cat >conftest.$ac_ext <<_ACEOF
5126
cat confdefs.h >>conftest.$ac_ext
5127
cat >>conftest.$ac_ext <<_ACEOF
5128
/* end confdefs.h. */
5138
rm -f conftest.$ac_objext
5139
if { (ac_try="$ac_compile"
5141
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5142
*) ac_try_echo=$ac_try;;
5144
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5145
(eval "$ac_compile") 2>conftest.er1
5147
grep -v '^ *+' conftest.er1 >conftest.err
5149
cat conftest.err >&5
5150
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5151
(exit $ac_status); } && {
5152
test -z "$ac_cxx_werror_flag" ||
5153
test ! -s conftest.err
5154
} && test -s conftest.$ac_objext; then
5157
echo "$as_me: failed program was:" >&5
5158
sed 's/^/| /' conftest.$ac_ext >&5
5160
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5162
cat >conftest.$ac_ext <<_ACEOF
5165
cat confdefs.h >>conftest.$ac_ext
5166
cat >>conftest.$ac_ext <<_ACEOF
5167
/* end confdefs.h. */
5177
rm -f conftest.$ac_objext
5178
if { (ac_try="$ac_compile"
5180
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5181
*) ac_try_echo=$ac_try;;
5183
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5184
(eval "$ac_compile") 2>conftest.er1
5186
grep -v '^ *+' conftest.er1 >conftest.err
5188
cat conftest.err >&5
5189
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5190
(exit $ac_status); } && {
5191
test -z "$ac_cxx_werror_flag" ||
5192
test ! -s conftest.err
5193
} && test -s conftest.$ac_objext; then
5194
ac_cv_prog_cxx_g=yes
5196
echo "$as_me: failed program was:" >&5
5197
sed 's/^/| /' conftest.$ac_ext >&5
5202
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5205
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5208
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5209
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5211
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5212
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5213
if test "$ac_test_CXXFLAGS" = set; then
5214
CXXFLAGS=$ac_save_CXXFLAGS
5215
elif test $ac_cv_prog_cxx_g = yes; then
5216
if test "$GXX" = yes; then
5222
if test "$GXX" = yes; then
5229
ac_cpp='$CXXCPP $CPPFLAGS'
5230
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5231
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5232
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5236
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5237
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5238
(test "X$CXX" != "Xg++"))) ; then
5240
ac_cpp='$CXXCPP $CPPFLAGS'
5241
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5242
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5243
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5244
{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5245
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5246
if test -z "$CXXCPP"; then
5247
if test "${ac_cv_prog_CXXCPP+set}" = set; then
5248
echo $ECHO_N "(cached) $ECHO_C" >&6
5250
# Double quotes because CXXCPP needs to be expanded
5251
for CXXCPP in "$CXX -E" "/lib/cpp"
5254
for ac_cxx_preproc_warn_flag in '' yes
5256
# Use a header file that comes with gcc, so configuring glibc
5257
# with a fresh cross-compiler works.
5258
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5259
# <limits.h> exists even on freestanding compilers.
5260
# On the NeXT, cc -E runs the code through the compiler's parser,
5261
# not just through cpp. "Syntax error" is here to catch this case.
5262
cat >conftest.$ac_ext <<_ACEOF
5265
cat confdefs.h >>conftest.$ac_ext
5266
cat >>conftest.$ac_ext <<_ACEOF
5267
/* end confdefs.h. */
5269
# include <limits.h>
5271
# include <assert.h>
5275
if { (ac_try="$ac_cpp conftest.$ac_ext"
5277
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5278
*) ac_try_echo=$ac_try;;
5280
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5281
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5283
grep -v '^ *+' conftest.er1 >conftest.err
5285
cat conftest.err >&5
5286
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5287
(exit $ac_status); } >/dev/null && {
5288
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5289
test ! -s conftest.err
5293
echo "$as_me: failed program was:" >&5
5294
sed 's/^/| /' conftest.$ac_ext >&5
5296
# Broken: fails on valid input.
5300
rm -f conftest.err conftest.$ac_ext
5302
# OK, works on sane cases. Now check whether nonexistent headers
5303
# can be detected and how.
5304
cat >conftest.$ac_ext <<_ACEOF
5307
cat confdefs.h >>conftest.$ac_ext
5308
cat >>conftest.$ac_ext <<_ACEOF
5309
/* end confdefs.h. */
5310
#include <ac_nonexistent.h>
5312
if { (ac_try="$ac_cpp conftest.$ac_ext"
5314
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5315
*) ac_try_echo=$ac_try;;
5317
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5318
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5320
grep -v '^ *+' conftest.er1 >conftest.err
5322
cat conftest.err >&5
5323
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5324
(exit $ac_status); } >/dev/null && {
5325
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5326
test ! -s conftest.err
5328
# Broken: success on invalid input.
5331
echo "$as_me: failed program was:" >&5
5332
sed 's/^/| /' conftest.$ac_ext >&5
5334
# Passes both tests.
5339
rm -f conftest.err conftest.$ac_ext
5342
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5343
rm -f conftest.err conftest.$ac_ext
5344
if $ac_preproc_ok; then
5349
ac_cv_prog_CXXCPP=$CXXCPP
5352
CXXCPP=$ac_cv_prog_CXXCPP
5354
ac_cv_prog_CXXCPP=$CXXCPP
5356
{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
5357
echo "${ECHO_T}$CXXCPP" >&6; }
5359
for ac_cxx_preproc_warn_flag in '' yes
5361
# Use a header file that comes with gcc, so configuring glibc
5362
# with a fresh cross-compiler works.
5363
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5364
# <limits.h> exists even on freestanding compilers.
5365
# On the NeXT, cc -E runs the code through the compiler's parser,
5366
# not just through cpp. "Syntax error" is here to catch this case.
5367
cat >conftest.$ac_ext <<_ACEOF
5370
cat confdefs.h >>conftest.$ac_ext
5371
cat >>conftest.$ac_ext <<_ACEOF
5372
/* end confdefs.h. */
5374
# include <limits.h>
5376
# include <assert.h>
5380
if { (ac_try="$ac_cpp conftest.$ac_ext"
5382
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5383
*) ac_try_echo=$ac_try;;
5385
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5386
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5388
grep -v '^ *+' conftest.er1 >conftest.err
5390
cat conftest.err >&5
5391
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5392
(exit $ac_status); } >/dev/null && {
5393
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5394
test ! -s conftest.err
5398
echo "$as_me: failed program was:" >&5
5399
sed 's/^/| /' conftest.$ac_ext >&5
5401
# Broken: fails on valid input.
5405
rm -f conftest.err conftest.$ac_ext
5407
# OK, works on sane cases. Now check whether nonexistent headers
5408
# can be detected and how.
5409
cat >conftest.$ac_ext <<_ACEOF
5412
cat confdefs.h >>conftest.$ac_ext
5413
cat >>conftest.$ac_ext <<_ACEOF
5414
/* end confdefs.h. */
5415
#include <ac_nonexistent.h>
5417
if { (ac_try="$ac_cpp conftest.$ac_ext"
5419
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5420
*) ac_try_echo=$ac_try;;
5422
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5423
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5425
grep -v '^ *+' conftest.er1 >conftest.err
5427
cat conftest.err >&5
5428
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5429
(exit $ac_status); } >/dev/null && {
5430
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5431
test ! -s conftest.err
5433
# Broken: success on invalid input.
5436
echo "$as_me: failed program was:" >&5
5437
sed 's/^/| /' conftest.$ac_ext >&5
5439
# Passes both tests.
5444
rm -f conftest.err conftest.$ac_ext
5447
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5448
rm -f conftest.err conftest.$ac_ext
5449
if $ac_preproc_ok; then
5452
{ { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5453
See \`config.log' for more details." >&5
5454
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5455
See \`config.log' for more details." >&2;}
5456
{ (exit 1); exit 1; }; }
5460
ac_cpp='$CXXCPP $CPPFLAGS'
5461
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5462
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5463
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5469
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5470
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5471
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5472
if test -n "$ac_tool_prefix"; then
5473
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
5475
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5476
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5477
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5478
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5479
if test "${ac_cv_prog_F77+set}" = set; then
5480
echo $ECHO_N "(cached) $ECHO_C" >&6
5482
if test -n "$F77"; then
5483
ac_cv_prog_F77="$F77" # Let the user override the test.
5485
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5489
test -z "$as_dir" && as_dir=.
5490
for ac_exec_ext in '' $ac_executable_extensions; do
5491
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5492
ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5493
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5503
if test -n "$F77"; then
5504
{ echo "$as_me:$LINENO: result: $F77" >&5
5505
echo "${ECHO_T}$F77" >&6; }
5507
{ echo "$as_me:$LINENO: result: no" >&5
5508
echo "${ECHO_T}no" >&6; }
5512
test -n "$F77" && break
5515
if test -z "$F77"; then
5517
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
5519
# Extract the first word of "$ac_prog", so it can be a program name with args.
5520
set dummy $ac_prog; ac_word=$2
5521
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5522
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5523
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5524
echo $ECHO_N "(cached) $ECHO_C" >&6
5526
if test -n "$ac_ct_F77"; then
5527
ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5529
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5533
test -z "$as_dir" && as_dir=.
5534
for ac_exec_ext in '' $ac_executable_extensions; do
5535
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5536
ac_cv_prog_ac_ct_F77="$ac_prog"
5537
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5546
ac_ct_F77=$ac_cv_prog_ac_ct_F77
5547
if test -n "$ac_ct_F77"; then
5548
{ echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5549
echo "${ECHO_T}$ac_ct_F77" >&6; }
5551
{ echo "$as_me:$LINENO: result: no" >&5
5552
echo "${ECHO_T}no" >&6; }
5556
test -n "$ac_ct_F77" && break
5559
if test "x$ac_ct_F77" = x; then
5562
case $cross_compiling:$ac_tool_warned in
5564
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5565
whose name does not start with the host triplet. If you think this
5566
configuration is useful to you, please write to autoconf@gnu.org." >&5
5567
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5568
whose name does not start with the host triplet. If you think this
5569
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5570
ac_tool_warned=yes ;;
5577
# Provide some information about the compiler.
5578
echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5579
ac_compiler=`set X $ac_compile; echo $2`
5580
{ (ac_try="$ac_compiler --version >&5"
5582
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5583
*) ac_try_echo=$ac_try;;
5585
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5586
(eval "$ac_compiler --version >&5") 2>&5
5588
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5589
(exit $ac_status); }
5590
{ (ac_try="$ac_compiler -v >&5"
5592
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5593
*) ac_try_echo=$ac_try;;
5595
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5596
(eval "$ac_compiler -v >&5") 2>&5
5598
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599
(exit $ac_status); }
5600
{ (ac_try="$ac_compiler -V >&5"
5602
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5603
*) ac_try_echo=$ac_try;;
5605
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5606
(eval "$ac_compiler -V >&5") 2>&5
5608
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5609
(exit $ac_status); }
5612
# If we don't use `.F' as extension, the preprocessor is not run on the
5613
# input file. (Note that this only needs to work for GNU compilers.)
5616
{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5617
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
5618
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5619
echo $ECHO_N "(cached) $ECHO_C" >&6
5621
cat >conftest.$ac_ext <<_ACEOF
5629
rm -f conftest.$ac_objext
5630
if { (ac_try="$ac_compile"
5632
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5633
*) ac_try_echo=$ac_try;;
5635
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5636
(eval "$ac_compile") 2>conftest.er1
5638
grep -v '^ *+' conftest.er1 >conftest.err
5640
cat conftest.err >&5
5641
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5642
(exit $ac_status); } && {
5643
test -z "$ac_f77_werror_flag" ||
5644
test ! -s conftest.err
5645
} && test -s conftest.$ac_objext; then
5648
echo "$as_me: failed program was:" >&5
5649
sed 's/^/| /' conftest.$ac_ext >&5
5654
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5655
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5658
{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5659
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
5661
ac_test_FFLAGS=${FFLAGS+set}
5662
ac_save_FFLAGS=$FFLAGS
5664
{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5665
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
5666
if test "${ac_cv_prog_f77_g+set}" = set; then
5667
echo $ECHO_N "(cached) $ECHO_C" >&6
5670
cat >conftest.$ac_ext <<_ACEOF
5675
rm -f conftest.$ac_objext
5676
if { (ac_try="$ac_compile"
5678
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5679
*) ac_try_echo=$ac_try;;
5681
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5682
(eval "$ac_compile") 2>conftest.er1
5684
grep -v '^ *+' conftest.er1 >conftest.err
5686
cat conftest.err >&5
5687
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5688
(exit $ac_status); } && {
5689
test -z "$ac_f77_werror_flag" ||
5690
test ! -s conftest.err
5691
} && test -s conftest.$ac_objext; then
5692
ac_cv_prog_f77_g=yes
5694
echo "$as_me: failed program was:" >&5
5695
sed 's/^/| /' conftest.$ac_ext >&5
5700
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5703
{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5704
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
5705
if test "$ac_test_FFLAGS" = set; then
5706
FFLAGS=$ac_save_FFLAGS
5707
elif test $ac_cv_prog_f77_g = yes; then
5708
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5714
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5721
G77=`test $ac_compiler_gnu = yes && echo yes`
5723
ac_cpp='$CPP $CPPFLAGS'
5724
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5725
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5726
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5730
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5732
# find the maximum length of command line arguments
5733
{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5734
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
5735
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5736
echo $ECHO_N "(cached) $ECHO_C" >&6
5743
# On DJGPP, this test can blow up pretty badly due to problems in libc
5744
# (any single argument exceeding 2000 bytes causes a buffer overrun
5745
# during glob expansion). Even if it were fixed, the result of this
5746
# check would be larger than it should be.
5747
lt_cv_sys_max_cmd_len=12288; # 12K is about right
5751
# Under GNU Hurd, this test is not required because there is
5752
# no limit to the length of command line arguments.
5753
# Libtool will interpret -1 as no limit whatsoever
5754
lt_cv_sys_max_cmd_len=-1;
5758
# On Win9x/ME, this test blows up -- it succeeds, but takes
5759
# about 5 minutes as the teststring grows exponentially.
5760
# Worse, since 9x/ME are not pre-emptively multitasking,
5761
# you end up with a "frozen" computer, even though with patience
5762
# the test eventually succeeds (with a max line length of 256k).
5763
# Instead, let's just punt: use the minimum linelength reported by
5764
# all of the supported platforms: 8192 (on NT/2K/XP).
5765
lt_cv_sys_max_cmd_len=8192;
5769
# On AmigaOS with pdksh, this test takes hours, literally.
5770
# So we just punt and use a minimum line length of 8192.
5771
lt_cv_sys_max_cmd_len=8192;
5774
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5775
# This has been around since 386BSD, at least. Likely further.
5776
if test -x /sbin/sysctl; then
5777
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5778
elif test -x /usr/sbin/sysctl; then
5779
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5781
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5783
# And add a safety zone
5784
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5785
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5789
# We know the value 262144 and hardcode it with a safety zone (like BSD)
5790
lt_cv_sys_max_cmd_len=196608
5794
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5795
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5796
# nice to cause kernel panics so lets avoid the loop below.
5797
# First set a reasonable default.
5798
lt_cv_sys_max_cmd_len=16384
5800
if test -x /sbin/sysconfig; then
5801
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5802
*1*) lt_cv_sys_max_cmd_len=-1 ;;
5807
lt_cv_sys_max_cmd_len=102400
5809
sysv5* | sco5v6* | sysv4.2uw2*)
5810
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5811
if test -n "$kargmax"; then
5812
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5814
lt_cv_sys_max_cmd_len=32768
5818
# If test is not a shell built-in, we'll probably end up computing a
5819
# maximum length that is only half of the actual maximum length, but
5821
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5822
while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5823
= "XX$teststring") >/dev/null 2>&1 &&
5824
new_result=`expr "X$teststring" : ".*" 2>&1` &&
5825
lt_cv_sys_max_cmd_len=$new_result &&
5826
test $i != 17 # 1/2 MB should be enough
5829
teststring=$teststring$teststring
5832
# Add a significant safety factor because C++ compilers can tack on massive
5833
# amounts of additional arguments before passing them to the linker.
5834
# It appears as though 1/2 is a usable value.
5835
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5841
if test -n $lt_cv_sys_max_cmd_len ; then
5842
{ echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5843
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
5845
{ echo "$as_me:$LINENO: result: none" >&5
5846
echo "${ECHO_T}none" >&6; }
5852
# Check for command to grab the raw symbol name followed by C symbol from nm.
5853
{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5854
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
5855
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5856
echo $ECHO_N "(cached) $ECHO_C" >&6
5859
# These are sane defaults that work on at least a few old systems.
5860
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5862
# Character class describing NM global symbol codes.
5863
symcode='[BCDEGRST]'
5865
# Regexp to match symbols that can be accessed directly from C.
5866
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5868
# Transform an extracted symbol line into a proper C declaration
5869
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5871
# Transform an extracted symbol line into symbol name and symbol address
5872
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'"
5874
# Define system-specific variables.
5879
cygwin* | mingw* | pw32*)
5880
symcode='[ABCDGISTW]'
5882
hpux*) # Its linker distinguishes data from code symbols
5883
if test "$host_cpu" = ia64; then
5884
symcode='[ABCDEGRST]'
5886
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5887
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'"
5890
if test "$host_cpu" = ia64; then
5891
symcode='[ABCDGIRSTW]'
5892
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5893
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'"
5897
symcode='[BCDEGRST]'
5900
symcode='[BCDEGQRST]'
5911
sysv5* | sco5v6* | unixware* | OpenUNIX*)
5919
# Handle CRLF in mingw tool chain
5923
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5927
# If we're using GNU nm, then use its standard symbol codes.
5928
case `$NM -V 2>&1` in
5929
*GNU* | *'with BFD'*)
5930
symcode='[ABCDGIRSTW]' ;;
5933
# Try without a prefix undercore, then with it.
5934
for ac_symprfx in "" "_"; do
5936
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5937
symxfrm="\\1 $ac_symprfx\\2 \\2"
5939
# Write the raw and C identifiers.
5940
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5942
# Check to see that the pipe works correctly.
5946
cat > conftest.$ac_ext <<EOF
5951
void nm_test_func(){}
5955
int main(){nm_test_var='a';nm_test_func();return(0);}
5958
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5959
(eval $ac_compile) 2>&5
5961
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5962
(exit $ac_status); }; then
5963
# Now try to grab the symbols.
5965
if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5966
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5968
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5969
(exit $ac_status); } && test -s "$nlist"; then
5970
# Try sorting and uniquifying the output.
5971
if sort "$nlist" | uniq > "$nlist"T; then
5972
mv -f "$nlist"T "$nlist"
5977
# Make sure that we snagged all the symbols we need.
5978
if grep ' nm_test_var$' "$nlist" >/dev/null; then
5979
if grep ' nm_test_func$' "$nlist" >/dev/null; then
5980
cat <<EOF > conftest.$ac_ext
5986
# Now generate the symbol file.
5987
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5989
cat <<EOF >> conftest.$ac_ext
5990
#if defined (__STDC__) && __STDC__
5991
# define lt_ptr_t void *
5993
# define lt_ptr_t char *
5997
/* The mapping between symbol names and symbols. */
6002
lt_preloaded_symbols[] =
6005
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6006
cat <<\EOF >> conftest.$ac_ext
6014
# Now try linking the two files.
6015
mv conftest.$ac_objext conftstm.$ac_objext
6016
lt_save_LIBS="$LIBS"
6017
lt_save_CFLAGS="$CFLAGS"
6018
LIBS="conftstm.$ac_objext"
6019
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6020
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6021
(eval $ac_link) 2>&5
6023
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6024
(exit $ac_status); } && test -s conftest${ac_exeext}; then
6027
LIBS="$lt_save_LIBS"
6028
CFLAGS="$lt_save_CFLAGS"
6030
echo "cannot find nm_test_func in $nlist" >&5
6033
echo "cannot find nm_test_var in $nlist" >&5
6036
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6039
echo "$progname: failed program was:" >&5
6040
cat conftest.$ac_ext >&5
6042
rm -f conftest* conftst*
6044
# Do not use the global_symbol_pipe unless it works.
6045
if test "$pipe_works" = yes; then
6048
lt_cv_sys_global_symbol_pipe=
6054
if test -z "$lt_cv_sys_global_symbol_pipe"; then
6055
lt_cv_sys_global_symbol_to_cdecl=
6057
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6058
{ echo "$as_me:$LINENO: result: failed" >&5
6059
echo "${ECHO_T}failed" >&6; }
6061
{ echo "$as_me:$LINENO: result: ok" >&5
6062
echo "${ECHO_T}ok" >&6; }
6065
{ echo "$as_me:$LINENO: checking for objdir" >&5
6066
echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6067
if test "${lt_cv_objdir+set}" = set; then
6068
echo $ECHO_N "(cached) $ECHO_C" >&6
6070
rm -f .libs 2>/dev/null
6071
mkdir .libs 2>/dev/null
6072
if test -d .libs; then
6075
# MS-DOS does not allow filenames that begin with a dot.
6078
rmdir .libs 2>/dev/null
6080
{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6081
echo "${ECHO_T}$lt_cv_objdir" >&6; }
6082
objdir=$lt_cv_objdir
6090
# AIX sometimes has problems with the GCC collect2 program. For some
6091
# reason, if we set the COLLECT_NAMES environment variable, the problems
6092
# vanish in a puff of smoke.
6093
if test "X${COLLECT_NAMES+set}" != Xset; then
6095
export COLLECT_NAMES
6100
# Sed substitution that helps us do robust quoting. It backslashifies
6101
# metacharacters that are still active within double-quoted strings.
6102
Xsed='sed -e 1s/^X//'
6103
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6105
# Same as above, but do not quote variable references.
6106
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6108
# Sed substitution to delay expansion of an escaped shell variable in a
6109
# double_quote_subst'ed string.
6110
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6112
# Sed substitution to avoid accidental globbing in evaled expressions
6113
no_glob_subst='s/\*/\\\*/g'
6119
default_ofile=libtool
6120
can_build_shared=yes
6122
# All known linkers require a `.a' archive for static linking (except MSVC,
6123
# which needs '.lib').
6125
ltmain="$ac_aux_dir/ltmain.sh"
6126
ofile="$default_ofile"
6127
with_gnu_ld="$lt_cv_prog_gnu_ld"
6129
if test -n "$ac_tool_prefix"; then
6130
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6131
set dummy ${ac_tool_prefix}ar; ac_word=$2
6132
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6133
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6134
if test "${ac_cv_prog_AR+set}" = set; then
6135
echo $ECHO_N "(cached) $ECHO_C" >&6
6137
if test -n "$AR"; then
6138
ac_cv_prog_AR="$AR" # Let the user override the test.
6140
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6144
test -z "$as_dir" && as_dir=.
6145
for ac_exec_ext in '' $ac_executable_extensions; do
6146
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6147
ac_cv_prog_AR="${ac_tool_prefix}ar"
6148
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6158
if test -n "$AR"; then
6159
{ echo "$as_me:$LINENO: result: $AR" >&5
6160
echo "${ECHO_T}$AR" >&6; }
6162
{ echo "$as_me:$LINENO: result: no" >&5
6163
echo "${ECHO_T}no" >&6; }
6168
if test -z "$ac_cv_prog_AR"; then
6170
# Extract the first word of "ar", so it can be a program name with args.
6171
set dummy ar; ac_word=$2
6172
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6173
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6174
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6175
echo $ECHO_N "(cached) $ECHO_C" >&6
6177
if test -n "$ac_ct_AR"; then
6178
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6180
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6184
test -z "$as_dir" && as_dir=.
6185
for ac_exec_ext in '' $ac_executable_extensions; do
6186
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6187
ac_cv_prog_ac_ct_AR="ar"
6188
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6197
ac_ct_AR=$ac_cv_prog_ac_ct_AR
6198
if test -n "$ac_ct_AR"; then
6199
{ echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6200
echo "${ECHO_T}$ac_ct_AR" >&6; }
6202
{ echo "$as_me:$LINENO: result: no" >&5
6203
echo "${ECHO_T}no" >&6; }
6206
if test "x$ac_ct_AR" = x; then
6209
case $cross_compiling:$ac_tool_warned in
6211
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6212
whose name does not start with the host triplet. If you think this
6213
configuration is useful to you, please write to autoconf@gnu.org." >&5
6214
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6215
whose name does not start with the host triplet. If you think this
6216
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6217
ac_tool_warned=yes ;;
6225
if test -n "$ac_tool_prefix"; then
6226
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6227
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6228
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6229
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6230
if test "${ac_cv_prog_RANLIB+set}" = set; then
6231
echo $ECHO_N "(cached) $ECHO_C" >&6
6233
if test -n "$RANLIB"; then
6234
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6236
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6240
test -z "$as_dir" && as_dir=.
6241
for ac_exec_ext in '' $ac_executable_extensions; do
6242
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6243
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6244
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6253
RANLIB=$ac_cv_prog_RANLIB
6254
if test -n "$RANLIB"; then
6255
{ echo "$as_me:$LINENO: result: $RANLIB" >&5
6256
echo "${ECHO_T}$RANLIB" >&6; }
6258
{ echo "$as_me:$LINENO: result: no" >&5
6259
echo "${ECHO_T}no" >&6; }
6264
if test -z "$ac_cv_prog_RANLIB"; then
6265
ac_ct_RANLIB=$RANLIB
6266
# Extract the first word of "ranlib", so it can be a program name with args.
6267
set dummy ranlib; ac_word=$2
6268
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6269
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6270
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6271
echo $ECHO_N "(cached) $ECHO_C" >&6
6273
if test -n "$ac_ct_RANLIB"; then
6274
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6276
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6280
test -z "$as_dir" && as_dir=.
6281
for ac_exec_ext in '' $ac_executable_extensions; do
6282
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6283
ac_cv_prog_ac_ct_RANLIB="ranlib"
6284
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6293
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6294
if test -n "$ac_ct_RANLIB"; then
6295
{ echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6296
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6298
{ echo "$as_me:$LINENO: result: no" >&5
6299
echo "${ECHO_T}no" >&6; }
6302
if test "x$ac_ct_RANLIB" = x; then
6305
case $cross_compiling:$ac_tool_warned in
6307
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6308
whose name does not start with the host triplet. If you think this
6309
configuration is useful to you, please write to autoconf@gnu.org." >&5
6310
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6311
whose name does not start with the host triplet. If you think this
6312
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6313
ac_tool_warned=yes ;;
6315
RANLIB=$ac_ct_RANLIB
6318
RANLIB="$ac_cv_prog_RANLIB"
6321
if test -n "$ac_tool_prefix"; then
6322
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6323
set dummy ${ac_tool_prefix}strip; ac_word=$2
6324
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6325
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6326
if test "${ac_cv_prog_STRIP+set}" = set; then
6327
echo $ECHO_N "(cached) $ECHO_C" >&6
6329
if test -n "$STRIP"; then
6330
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6332
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6336
test -z "$as_dir" && as_dir=.
6337
for ac_exec_ext in '' $ac_executable_extensions; do
6338
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6339
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6340
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6349
STRIP=$ac_cv_prog_STRIP
6350
if test -n "$STRIP"; then
6351
{ echo "$as_me:$LINENO: result: $STRIP" >&5
6352
echo "${ECHO_T}$STRIP" >&6; }
6354
{ echo "$as_me:$LINENO: result: no" >&5
6355
echo "${ECHO_T}no" >&6; }
6360
if test -z "$ac_cv_prog_STRIP"; then
6362
# Extract the first word of "strip", so it can be a program name with args.
6363
set dummy strip; ac_word=$2
6364
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6365
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6366
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6367
echo $ECHO_N "(cached) $ECHO_C" >&6
6369
if test -n "$ac_ct_STRIP"; then
6370
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6372
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6376
test -z "$as_dir" && as_dir=.
6377
for ac_exec_ext in '' $ac_executable_extensions; do
6378
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6379
ac_cv_prog_ac_ct_STRIP="strip"
6380
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6389
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6390
if test -n "$ac_ct_STRIP"; then
6391
{ echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6392
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6394
{ echo "$as_me:$LINENO: result: no" >&5
6395
echo "${ECHO_T}no" >&6; }
6398
if test "x$ac_ct_STRIP" = x; then
6401
case $cross_compiling:$ac_tool_warned in
6403
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6404
whose name does not start with the host triplet. If you think this
6405
configuration is useful to you, please write to autoconf@gnu.org." >&5
6406
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6407
whose name does not start with the host triplet. If you think this
6408
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6409
ac_tool_warned=yes ;;
6414
STRIP="$ac_cv_prog_STRIP"
6419
old_CFLAGS="$CFLAGS"
6421
# Set sane defaults for various variables
6422
test -z "$AR" && AR=ar
6423
test -z "$AR_FLAGS" && AR_FLAGS=cru
6424
test -z "$AS" && AS=as
6425
test -z "$CC" && CC=cc
6426
test -z "$LTCC" && LTCC=$CC
6427
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6428
test -z "$DLLTOOL" && DLLTOOL=dlltool
6429
test -z "$LD" && LD=ld
6430
test -z "$LN_S" && LN_S="ln -s"
6431
test -z "$MAGIC_CMD" && MAGIC_CMD=file
6432
test -z "$NM" && NM=nm
6433
test -z "$SED" && SED=sed
6434
test -z "$OBJDUMP" && OBJDUMP=objdump
6435
test -z "$RANLIB" && RANLIB=:
6436
test -z "$STRIP" && STRIP=:
6437
test -z "$ac_objext" && ac_objext=o
6439
# Determine commands to create old-style static archives.
6440
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6441
old_postinstall_cmds='chmod 644 $oldlib'
6442
old_postuninstall_cmds=
6444
if test -n "$RANLIB"; then
6447
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6450
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6453
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6456
for cc_temp in $compiler""; do
6458
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6459
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6464
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6467
# Only perform the check for file, if the check method requires it
6468
case $deplibs_check_method in
6470
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6471
{ echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6472
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6473
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6474
echo $ECHO_N "(cached) $ECHO_C" >&6
6478
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6481
lt_save_MAGIC_CMD="$MAGIC_CMD"
6482
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6483
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6484
for ac_dir in $ac_dummy; do
6486
test -z "$ac_dir" && ac_dir=.
6487
if test -f $ac_dir/${ac_tool_prefix}file; then
6488
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6489
if test -n "$file_magic_test_file"; then
6490
case $deplibs_check_method in
6492
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6493
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6494
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6495
$EGREP "$file_magic_regex" > /dev/null; then
6500
*** Warning: the command libtool uses to detect shared libraries,
6501
*** $file_magic_cmd, produces output that libtool cannot recognize.
6502
*** The result is that libtool may fail to recognize shared libraries
6503
*** as such. This will affect the creation of libtool libraries that
6504
*** depend on shared libraries, but programs linked with such libtool
6505
*** libraries will work regardless of this problem. Nevertheless, you
6506
*** may want to report the problem to your system manager and/or to
6507
*** bug-libtool@gnu.org
6517
MAGIC_CMD="$lt_save_MAGIC_CMD"
6522
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6523
if test -n "$MAGIC_CMD"; then
6524
{ echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6525
echo "${ECHO_T}$MAGIC_CMD" >&6; }
6527
{ echo "$as_me:$LINENO: result: no" >&5
6528
echo "${ECHO_T}no" >&6; }
6531
if test -z "$lt_cv_path_MAGIC_CMD"; then
6532
if test -n "$ac_tool_prefix"; then
6533
{ echo "$as_me:$LINENO: checking for file" >&5
6534
echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6535
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6536
echo $ECHO_N "(cached) $ECHO_C" >&6
6540
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6543
lt_save_MAGIC_CMD="$MAGIC_CMD"
6544
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6545
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6546
for ac_dir in $ac_dummy; do
6548
test -z "$ac_dir" && ac_dir=.
6549
if test -f $ac_dir/file; then
6550
lt_cv_path_MAGIC_CMD="$ac_dir/file"
6551
if test -n "$file_magic_test_file"; then
6552
case $deplibs_check_method in
6554
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6555
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6556
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6557
$EGREP "$file_magic_regex" > /dev/null; then
6562
*** Warning: the command libtool uses to detect shared libraries,
6563
*** $file_magic_cmd, produces output that libtool cannot recognize.
6564
*** The result is that libtool may fail to recognize shared libraries
6565
*** as such. This will affect the creation of libtool libraries that
6566
*** depend on shared libraries, but programs linked with such libtool
6567
*** libraries will work regardless of this problem. Nevertheless, you
6568
*** may want to report the problem to your system manager and/or to
6569
*** bug-libtool@gnu.org
6579
MAGIC_CMD="$lt_save_MAGIC_CMD"
6584
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6585
if test -n "$MAGIC_CMD"; then
6586
{ echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6587
echo "${ECHO_T}$MAGIC_CMD" >&6; }
6589
{ echo "$as_me:$LINENO: result: no" >&5
6590
echo "${ECHO_T}no" >&6; }
6603
enable_win32_dll=yes
6605
# Check whether --enable-libtool-lock was given.
6606
if test "${enable_libtool_lock+set}" = set; then
6607
enableval=$enable_libtool_lock;
6610
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6613
# Check whether --with-pic was given.
6614
if test "${with_pic+set}" = set; then
6615
withval=$with_pic; pic_mode="$withval"
6620
test -z "$pic_mode" && pic_mode=default
6622
# Check if we have a version mismatch between libtool.m4 and ltmain.sh.
6624
# Note: This should be in AC_LIBTOOL_SETUP, _after_ $ltmain have been defined.
6625
# We also should do it _before_ AC_LIBTOOL_LANG_C_CONFIG that actually
6626
# calls AC_LIBTOOL_CONFIG and creates libtool.
6628
{ echo "$as_me:$LINENO: checking for correct ltmain.sh version" >&5
6629
echo $ECHO_N "checking for correct ltmain.sh version... $ECHO_C" >&6; }
6630
if test "x$ltmain" = "x" ; then
6631
{ echo "$as_me:$LINENO: result: no" >&5
6632
echo "${ECHO_T}no" >&6; }
6633
{ { echo "$as_me:$LINENO: error:
6635
*** [Gentoo] sanity check failed! ***
6636
*** \$ltmain is not defined, please check the patch for consistency! ***
6638
echo "$as_me: error:
6640
*** [Gentoo] sanity check failed! ***
6641
*** \$ltmain is not defined, please check the patch for consistency! ***
6643
{ (exit 1); exit 1; }; }
6645
gentoo_lt_version="1.5.22"
6646
gentoo_ltmain_version=`sed -n '/^[ ]*VERSION=/{s/^[ ]*VERSION=//;p;q;}' "$ltmain"`
6647
if test "x$gentoo_lt_version" != "x$gentoo_ltmain_version" ; then
6648
{ echo "$as_me:$LINENO: result: no" >&5
6649
echo "${ECHO_T}no" >&6; }
6650
{ { echo "$as_me:$LINENO: error:
6652
*** [Gentoo] sanity check failed! ***
6653
*** libtool.m4 and ltmain.sh have a version mismatch! ***
6654
*** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***
6658
libtoolize --copy --force
6660
if appropriate, please contact the maintainer of this
6661
package (or your distribution) for help.
6663
echo "$as_me: error:
6665
*** [Gentoo] sanity check failed! ***
6666
*** libtool.m4 and ltmain.sh have a version mismatch! ***
6667
*** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***
6671
libtoolize --copy --force
6673
if appropriate, please contact the maintainer of this
6674
package (or your distribution) for help.
6676
{ (exit 1); exit 1; }; }
6678
{ echo "$as_me:$LINENO: result: yes" >&5
6679
echo "${ECHO_T}yes" >&6; }
6683
# Use C for the default configuration in the libtool script
6687
ac_cpp='$CPP $CPPFLAGS'
6688
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6689
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6690
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6693
# Source file extension for C test sources.
6696
# Object file extension for compiled C test sources.
6700
# Code to be used in simple compile tests
6701
lt_simple_compile_test_code="int some_variable = 0;\n"
6703
# Code to be used in simple link tests
6704
lt_simple_link_test_code='int main(){return(0);}\n'
6707
# If no C compiler was specified, use CC.
6710
# If no C compiler flags were specified, use CFLAGS.
6711
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6713
# Allow CC to be a program name with arguments.
6717
# save warnings/boilerplate of simple test code
6718
ac_outfile=conftest.$ac_objext
6719
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6720
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6721
_lt_compiler_boilerplate=`cat conftest.err`
6724
ac_outfile=conftest.$ac_objext
6725
printf "$lt_simple_link_test_code" >conftest.$ac_ext
6726
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6727
_lt_linker_boilerplate=`cat conftest.err`
6732
lt_prog_compiler_no_builtin_flag=
6734
if test "$GCC" = yes; then
6735
lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6738
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6739
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
6740
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6741
echo $ECHO_N "(cached) $ECHO_C" >&6
6743
lt_cv_prog_compiler_rtti_exceptions=no
6744
ac_outfile=conftest.$ac_objext
6745
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6746
lt_compiler_flag="-fno-rtti -fno-exceptions"
6747
# Insert the option either (1) after the last *FLAGS variable, or
6748
# (2) before a word containing "conftest.", or (3) at the end.
6749
# Note that $ac_compile itself does not contain backslashes and begins
6750
# with a dollar sign (not a hyphen), so the echo should work correctly.
6751
# The option is referenced via a variable to avoid confusing sed.
6752
lt_compile=`echo "$ac_compile" | $SED \
6753
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6754
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6755
-e 's:$: $lt_compiler_flag:'`
6756
(eval echo "\"\$as_me:6756: $lt_compile\"" >&5)
6757
(eval "$lt_compile" 2>conftest.err)
6759
cat conftest.err >&5
6760
echo "$as_me:6760: \$? = $ac_status" >&5
6761
if (exit $ac_status) && test -s "$ac_outfile"; then
6762
# The compiler can only warn and ignore the option if not recognized
6763
# So say no if there are warnings other than the usual output.
6764
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6765
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6766
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6767
lt_cv_prog_compiler_rtti_exceptions=yes
6773
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6774
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6776
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6777
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6784
lt_prog_compiler_wl=
6785
lt_prog_compiler_pic=
6786
lt_prog_compiler_static=
6788
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6789
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
6791
if test "$GCC" = yes; then
6792
lt_prog_compiler_wl='-Wl,'
6793
lt_prog_compiler_static='-static'
6797
# All AIX code is PIC.
6798
if test "$host_cpu" = ia64; then
6799
# AIX 5 now supports IA64 processor
6800
lt_prog_compiler_static='-Bstatic'
6805
# FIXME: we need at least 68020 code to build shared libraries, but
6806
# adding the `-m68020' flag to GCC prevents building anything better,
6808
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6811
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6812
# PIC is the default for these OSes.
6815
mingw* | pw32* | os2*)
6816
# This hack is so that the source file can tell whether it is being
6817
# built for inclusion in a dll (and should export symbols for example).
6818
lt_prog_compiler_pic='-DDLL_EXPORT'
6821
darwin* | rhapsody*)
6822
# PIC is the default on this platform
6823
# Common symbols not allowed in MH_DYLIB files
6824
lt_prog_compiler_pic='-fno-common'
6828
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
6829
# Instead, we relocate shared libraries at runtime.
6833
# Just because we use GCC doesn't mean we suddenly get shared libraries
6834
# on systems that don't support them.
6835
lt_prog_compiler_can_build_shared=no
6840
if test -d /usr/nec; then
6841
lt_prog_compiler_pic=-Kconform_pic
6846
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6853
lt_prog_compiler_pic='-fPIC'
6859
lt_prog_compiler_pic='-fPIC'
6863
# PORTME Check for flag to pass linker flags through the system compiler.
6866
lt_prog_compiler_wl='-Wl,'
6867
if test "$host_cpu" = ia64; then
6868
# AIX 5 now supports IA64 processor
6869
lt_prog_compiler_static='-Bstatic'
6871
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6875
# PIC is the default on this platform
6876
# Common symbols not allowed in MH_DYLIB files
6877
case $cc_basename in
6879
lt_prog_compiler_pic='-qnocommon'
6880
lt_prog_compiler_wl='-Wl,'
6885
mingw* | pw32* | os2*)
6886
# This hack is so that the source file can tell whether it is being
6887
# built for inclusion in a dll (and should export symbols for example).
6888
lt_prog_compiler_pic='-DDLL_EXPORT'
6891
hpux9* | hpux10* | hpux11*)
6892
lt_prog_compiler_wl='-Wl,'
6893
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6900
lt_prog_compiler_pic='+Z'
6903
# Is there a better lt_prog_compiler_static that works with the bundled CC?
6904
lt_prog_compiler_static='${wl}-a ${wl}archive'
6907
irix5* | irix6* | nonstopux*)
6908
lt_prog_compiler_wl='-Wl,'
6909
# PIC (with -KPIC) is the default.
6910
lt_prog_compiler_static='-non_shared'
6914
lt_prog_compiler_pic='-KPIC'
6915
lt_prog_compiler_static='-Bstatic'
6919
case $cc_basename in
6921
lt_prog_compiler_wl='-Wl,'
6922
lt_prog_compiler_pic='-KPIC'
6923
lt_prog_compiler_static='-static'
6925
pgcc* | pgf77* | pgf90* | pgf95*)
6926
# Portland Group compilers (*not* the Pentium gcc compiler,
6927
# which looks to be a dead project)
6928
lt_prog_compiler_wl='-Wl,'
6929
lt_prog_compiler_pic='-fpic'
6930
lt_prog_compiler_static='-Bstatic'
6933
lt_prog_compiler_wl='-Wl,'
6934
# All Alpha code is PIC.
6935
lt_prog_compiler_static='-non_shared'
6940
osf3* | osf4* | osf5*)
6941
lt_prog_compiler_wl='-Wl,'
6942
# All OSF/1 code is PIC.
6943
lt_prog_compiler_static='-non_shared'
6947
lt_prog_compiler_pic='-KPIC'
6948
lt_prog_compiler_static='-Bstatic'
6949
case $cc_basename in
6951
lt_prog_compiler_wl='-Qoption ld ';;
6953
lt_prog_compiler_wl='-Wl,';;
6958
lt_prog_compiler_wl='-Qoption ld '
6959
lt_prog_compiler_pic='-PIC'
6960
lt_prog_compiler_static='-Bstatic'
6963
sysv4 | sysv4.2uw2* | sysv4.3*)
6964
lt_prog_compiler_wl='-Wl,'
6965
lt_prog_compiler_pic='-KPIC'
6966
lt_prog_compiler_static='-Bstatic'
6970
if test -d /usr/nec ;then
6971
lt_prog_compiler_pic='-Kconform_pic'
6972
lt_prog_compiler_static='-Bstatic'
6976
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6977
lt_prog_compiler_wl='-Wl,'
6978
lt_prog_compiler_pic='-KPIC'
6979
lt_prog_compiler_static='-Bstatic'
6983
lt_prog_compiler_wl='-Wl,'
6984
lt_prog_compiler_can_build_shared=no
6988
lt_prog_compiler_pic='-pic'
6989
lt_prog_compiler_static='-Bstatic'
6993
lt_prog_compiler_can_build_shared=no
6998
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6999
echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7002
# Check to make sure the PIC flag actually works.
7004
if test -n "$lt_prog_compiler_pic"; then
7006
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7007
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7008
if test "${lt_prog_compiler_pic_works+set}" = set; then
7009
echo $ECHO_N "(cached) $ECHO_C" >&6
7011
lt_prog_compiler_pic_works=no
7012
ac_outfile=conftest.$ac_objext
7013
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7014
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7015
# Insert the option either (1) after the last *FLAGS variable, or
7016
# (2) before a word containing "conftest.", or (3) at the end.
7017
# Note that $ac_compile itself does not contain backslashes and begins
7018
# with a dollar sign (not a hyphen), so the echo should work correctly.
7019
# The option is referenced via a variable to avoid confusing sed.
7020
lt_compile=`echo "$ac_compile" | $SED \
7021
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7022
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7023
-e 's:$: $lt_compiler_flag:'`
7024
(eval echo "\"\$as_me:7024: $lt_compile\"" >&5)
7025
(eval "$lt_compile" 2>conftest.err)
7027
cat conftest.err >&5
7028
echo "$as_me:7028: \$? = $ac_status" >&5
7029
if (exit $ac_status) && test -s "$ac_outfile"; then
7030
# The compiler can only warn and ignore the option if not recognized
7031
# So say no if there are warnings other than the usual output.
7032
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7033
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7034
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7035
lt_prog_compiler_pic_works=yes
7041
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7042
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7044
if test x"$lt_prog_compiler_pic_works" = xyes; then
7045
case $lt_prog_compiler_pic in
7047
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7050
lt_prog_compiler_pic=
7051
lt_prog_compiler_can_build_shared=no
7056
# For platforms which do not support PIC, -DPIC is meaningless:
7058
lt_prog_compiler_pic=
7061
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7066
# Check to make sure the static flag actually works.
7068
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7069
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7070
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7071
if test "${lt_prog_compiler_static_works+set}" = set; then
7072
echo $ECHO_N "(cached) $ECHO_C" >&6
7074
lt_prog_compiler_static_works=no
7075
save_LDFLAGS="$LDFLAGS"
7076
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7077
printf "$lt_simple_link_test_code" > conftest.$ac_ext
7078
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7079
# The linker can only warn and ignore the option if not recognized
7080
# So say no if there are warnings
7081
if test -s conftest.err; then
7082
# Append any errors to the config.log.
7083
cat conftest.err 1>&5
7084
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7085
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7086
if diff conftest.exp conftest.er2 >/dev/null; then
7087
lt_prog_compiler_static_works=yes
7090
lt_prog_compiler_static_works=yes
7094
LDFLAGS="$save_LDFLAGS"
7097
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7098
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7100
if test x"$lt_prog_compiler_static_works" = xyes; then
7103
lt_prog_compiler_static=
7107
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7108
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7109
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7110
echo $ECHO_N "(cached) $ECHO_C" >&6
7112
lt_cv_prog_compiler_c_o=no
7113
$rm -r conftest 2>/dev/null
7117
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7119
lt_compiler_flag="-o out/conftest2.$ac_objext"
7120
# Insert the option either (1) after the last *FLAGS variable, or
7121
# (2) before a word containing "conftest.", or (3) at the end.
7122
# Note that $ac_compile itself does not contain backslashes and begins
7123
# with a dollar sign (not a hyphen), so the echo should work correctly.
7124
lt_compile=`echo "$ac_compile" | $SED \
7125
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7126
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7127
-e 's:$: $lt_compiler_flag:'`
7128
(eval echo "\"\$as_me:7128: $lt_compile\"" >&5)
7129
(eval "$lt_compile" 2>out/conftest.err)
7131
cat out/conftest.err >&5
7132
echo "$as_me:7132: \$? = $ac_status" >&5
7133
if (exit $ac_status) && test -s out/conftest2.$ac_objext
7135
# The compiler can only warn and ignore the option if not recognized
7136
# So say no if there are warnings
7137
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7138
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7139
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7140
lt_cv_prog_compiler_c_o=yes
7145
# SGI C++ compiler will create directory out/ii_files/ for
7146
# template instantiation
7147
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7148
$rm out/* && rmdir out
7154
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7155
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7158
hard_links="nottested"
7159
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7160
# do not overwrite the value of need_locks provided by the user
7161
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7162
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7165
ln conftest.a conftest.b 2>/dev/null && hard_links=no
7167
ln conftest.a conftest.b 2>&5 || hard_links=no
7168
ln conftest.a conftest.b 2>/dev/null && hard_links=no
7169
{ echo "$as_me:$LINENO: result: $hard_links" >&5
7170
echo "${ECHO_T}$hard_links" >&6; }
7171
if test "$hard_links" = no; then
7172
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7173
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7180
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7181
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7184
allow_undefined_flag=
7185
enable_shared_with_static_runtimes=no
7187
archive_expsym_cmds=
7188
old_archive_From_new_cmds=
7189
old_archive_from_expsyms_cmds=
7190
export_dynamic_flag_spec=
7191
whole_archive_flag_spec=
7192
thread_safe_flag_spec=
7193
hardcode_libdir_flag_spec=
7194
hardcode_libdir_flag_spec_ld=
7195
hardcode_libdir_separator=
7198
hardcode_shlibpath_var=unsupported
7199
link_all_deplibs=unknown
7200
hardcode_automatic=no
7203
always_export_symbols=no
7204
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7205
# include_expsyms should be a list of space-separated symbols to be *always*
7206
# included in the symbol list
7208
# exclude_expsyms can be an extended regexp of symbols to exclude
7209
# it will be wrapped by ` (' and `)$', so one must not match beginning or
7210
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7211
# as well as any symbol that contains `d'.
7212
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7213
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7214
# platforms (ab)use it in PIC code, but their linkers get confused if
7215
# the symbol is explicitly referenced. Since portable code cannot
7216
# rely on this symbol name, it's probably fine to never include it in
7217
# preloaded symbol tables.
7218
extract_expsyms_cmds=
7219
# Just being paranoid about ensuring that cc_basename is set.
7220
for cc_temp in $compiler""; do
7222
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7223
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7228
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7231
cygwin* | mingw* | pw32*)
7232
# FIXME: the MSVC++ port hasn't been tested in a loooong time
7233
# When not using gcc, we currently assume that we are using
7234
# Microsoft Visual C++.
7235
if test "$GCC" != yes; then
7240
# we just hope/assume this is gcc and not c89 (= MSVC++)
7249
if test "$with_gnu_ld" = yes; then
7250
# If archive_cmds runs LD, not CC, wlarc should be empty
7253
# Set some defaults for GNU ld with shared library support. These
7254
# are reset later if shared libraries are not supported. Putting them
7255
# here allows them to be overridden if necessary.
7256
runpath_var=LD_RUN_PATH
7257
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7258
export_dynamic_flag_spec='${wl}--export-dynamic'
7259
# ancient GNU ld didn't support --whole-archive et. al.
7260
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7261
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7263
whole_archive_flag_spec=
7265
supports_anon_versioning=no
7266
case `$LD -v 2>/dev/null` in
7267
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7268
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7269
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7270
*\ 2.11.*) ;; # other 2.11 versions
7271
*) supports_anon_versioning=yes ;;
7274
# See if GNU ld supports shared libraries.
7276
aix3* | aix4* | aix5*)
7277
# On AIX/PPC, the GNU linker is very broken
7278
if test "$host_cpu" != ia64; then
7282
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7283
*** to be unable to reliably create shared libraries on AIX.
7284
*** Therefore, libtool is disabling shared libraries support. If you
7285
*** really care for shared libraries, you may want to modify your PATH
7286
*** so that a non-GNU linker is found, and then restart.
7293
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)'
7294
hardcode_libdir_flag_spec='-L$libdir'
7295
hardcode_minus_L=yes
7297
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7298
# that the semantics of dynamic libraries on AmigaOS, at least up
7299
# to version 4, is to share data among multiple programs linked
7300
# with the same dynamic library. Since this doesn't match the
7301
# behavior of shared libraries on other platforms, we can't use
7307
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7308
allow_undefined_flag=unsupported
7309
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7310
# support --undefined. This deserves some investigation. FIXME
7311
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7317
cygwin* | mingw* | pw32*)
7318
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7319
# as there is no search path for DLLs.
7320
hardcode_libdir_flag_spec='-L$libdir'
7321
allow_undefined_flag=unsupported
7322
always_export_symbols=no
7323
enable_shared_with_static_runtimes=yes
7324
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7326
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7327
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7328
# If the export-symbols file already is a .def file (1st line
7329
# is EXPORTS), use it as is; otherwise, prepend...
7330
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7331
cp $export_symbols $output_objdir/$soname.def;
7333
echo EXPORTS > $output_objdir/$soname.def;
7334
cat $export_symbols >> $output_objdir/$soname.def;
7336
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7344
hardcode_shlibpath_var=no
7345
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7346
export_dynamic_flag_spec='${wl}-E'
7347
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7348
# Instead, shared libraries are loaded at an image base (0x10000000 by
7349
# default) and relocated if they conflict, which is a slow very memory
7350
# consuming and fragmenting process. To avoid this, we pick a random,
7351
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7352
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
7353
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7354
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'
7358
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7360
case $cc_basename,$host_cpu in
7361
pgcc*) # Portland Group C compiler
7362
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'
7363
tmp_addflag=' $pic_flag'
7365
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7366
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'
7367
tmp_addflag=' $pic_flag -Mnomain' ;;
7368
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7369
tmp_addflag=' -i_dynamic' ;;
7370
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7371
tmp_addflag=' -i_dynamic -nofor_main' ;;
7372
ifc* | ifort*) # Intel Fortran compiler
7373
tmp_addflag=' -nofor_main' ;;
7375
archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7377
if test $supports_anon_versioning = yes; then
7378
archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7379
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7380
$echo "local: *; };" >> $output_objdir/$libname.ver~
7381
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7389
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7390
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7393
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7394
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7399
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7403
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7404
*** create shared libraries on Solaris systems. Therefore, libtool
7405
*** is disabling shared libraries support. We urge you to upgrade GNU
7406
*** binutils to release 2.9.1 or newer. Another option is to modify
7407
*** your PATH or compiler configuration so that the native linker is
7408
*** used, and then restart.
7411
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7412
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7413
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7419
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7420
case `$LD -v 2>&1` in
7421
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7425
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7426
*** reliably create shared libraries on SCO systems. Therefore, libtool
7427
*** is disabling shared libraries support. We urge you to upgrade GNU
7428
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7429
*** your PATH or compiler configuration so that the native linker is
7430
*** used, and then restart.
7435
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7436
hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7437
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7438
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7447
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7450
hardcode_shlibpath_var=no
7454
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7455
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7456
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7463
if test "$ld_shlibs" = no; then
7465
hardcode_libdir_flag_spec=
7466
export_dynamic_flag_spec=
7467
whole_archive_flag_spec=
7470
# PORTME fill in a description of your system's linker (not GNU ld)
7473
allow_undefined_flag=unsupported
7474
always_export_symbols=yes
7475
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'
7476
# Note: this linker hardcodes the directories in LIBPATH if there
7477
# are no directories specified by -L.
7478
hardcode_minus_L=yes
7479
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7480
# Neither direct hardcoding nor static linking is supported with a
7482
hardcode_direct=unsupported
7487
if test "$host_cpu" = ia64; then
7488
# On IA64, the linker does run time linking by default, so we don't
7489
# have to do anything special.
7490
aix_use_runtimelinking=no
7491
exp_sym_flag='-Bexport'
7494
# If we're using GNU nm, then we don't want the "-C" option.
7495
# -C means demangle to AIX nm, but means don't demangle with GNU nm
7496
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7497
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'
7499
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'
7501
aix_use_runtimelinking=no
7503
# Test if we are trying to use run time linking or normal
7504
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
7505
# need to do runtime linking.
7506
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7507
for ld_flag in $LDFLAGS; do
7508
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7509
aix_use_runtimelinking=yes
7516
exp_sym_flag='-bexport'
7517
no_entry_flag='-bnoentry'
7520
# When large executables or shared objects are built, AIX ld can
7521
# have problems creating the table of contents. If linking a library
7522
# or program results in "error TOC overflow" add -mminimal-toc to
7523
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7524
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7528
hardcode_libdir_separator=':'
7529
link_all_deplibs=yes
7531
if test "$GCC" = yes; then
7532
case $host_os in aix4.[012]|aix4.[012].*)
7533
# We only want to do this on AIX 4.2 and lower, the check
7534
# below for broken collect2 doesn't work under 4.3+
7535
collect2name=`${CC} -print-prog-name=collect2`
7536
if test -f "$collect2name" && \
7537
strings "$collect2name" | grep resolve_lib_name >/dev/null
7539
# We have reworked collect2
7542
# We have old collect2
7543
hardcode_direct=unsupported
7544
# It fails to find uninstalled libraries when the uninstalled
7545
# path is not listed in the libpath. Setting hardcode_minus_L
7546
# to unsupported forces relinking
7547
hardcode_minus_L=yes
7548
hardcode_libdir_flag_spec='-L$libdir'
7549
hardcode_libdir_separator=
7553
shared_flag='-shared'
7554
if test "$aix_use_runtimelinking" = yes; then
7555
shared_flag="$shared_flag "'${wl}-G'
7559
if test "$host_cpu" = ia64; then
7560
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7561
# chokes on -Wl,-G. The following line is correct:
7564
if test "$aix_use_runtimelinking" = yes; then
7565
shared_flag='${wl}-G'
7567
shared_flag='${wl}-bM:SRE'
7572
# It seems that -bexpall does not export symbols beginning with
7573
# underscore (_), so it is better to generate a list of symbols to export.
7574
always_export_symbols=yes
7575
if test "$aix_use_runtimelinking" = yes; then
7576
# Warning - without using the other runtime loading flags (-brtl),
7577
# -berok will link without error, but may produce a broken library.
7578
allow_undefined_flag='-berok'
7579
# Determine the default libpath from the value encoded in an empty executable.
7580
cat >conftest.$ac_ext <<_ACEOF
7583
cat confdefs.h >>conftest.$ac_ext
7584
cat >>conftest.$ac_ext <<_ACEOF
7585
/* end confdefs.h. */
7595
rm -f conftest.$ac_objext conftest$ac_exeext
7596
if { (ac_try="$ac_link"
7598
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7599
*) ac_try_echo=$ac_try;;
7601
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7602
(eval "$ac_link") 2>conftest.er1
7604
grep -v '^ *+' conftest.er1 >conftest.err
7606
cat conftest.err >&5
7607
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7608
(exit $ac_status); } && {
7609
test -z "$ac_c_werror_flag" ||
7610
test ! -s conftest.err
7611
} && test -s conftest$ac_exeext &&
7612
$as_test_x conftest$ac_exeext; then
7614
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7616
# Check for a 64-bit object if we didn't find anything.
7617
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; }
7620
echo "$as_me: failed program was:" >&5
7621
sed 's/^/| /' conftest.$ac_ext >&5
7626
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7627
conftest$ac_exeext conftest.$ac_ext
7628
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7630
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7631
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"
7633
if test "$host_cpu" = ia64; then
7634
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7635
allow_undefined_flag="-z nodefs"
7636
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"
7638
# Determine the default libpath from the value encoded in an empty executable.
7639
cat >conftest.$ac_ext <<_ACEOF
7642
cat confdefs.h >>conftest.$ac_ext
7643
cat >>conftest.$ac_ext <<_ACEOF
7644
/* end confdefs.h. */
7654
rm -f conftest.$ac_objext conftest$ac_exeext
7655
if { (ac_try="$ac_link"
7657
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7658
*) ac_try_echo=$ac_try;;
7660
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7661
(eval "$ac_link") 2>conftest.er1
7663
grep -v '^ *+' conftest.er1 >conftest.err
7665
cat conftest.err >&5
7666
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7667
(exit $ac_status); } && {
7668
test -z "$ac_c_werror_flag" ||
7669
test ! -s conftest.err
7670
} && test -s conftest$ac_exeext &&
7671
$as_test_x conftest$ac_exeext; then
7673
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7675
# Check for a 64-bit object if we didn't find anything.
7676
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; }
7679
echo "$as_me: failed program was:" >&5
7680
sed 's/^/| /' conftest.$ac_ext >&5
7685
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7686
conftest$ac_exeext conftest.$ac_ext
7687
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7689
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7690
# Warning - without using the other run time loading flags,
7691
# -berok will link without error, but may produce a broken library.
7692
no_undefined_flag=' ${wl}-bernotok'
7693
allow_undefined_flag=' ${wl}-berok'
7694
# Exported symbols can be pulled into shared objects from archives
7695
whole_archive_flag_spec='$convenience'
7696
archive_cmds_need_lc=yes
7697
# This is similar to how AIX traditionally builds its shared libraries.
7698
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'
7704
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)'
7705
hardcode_libdir_flag_spec='-L$libdir'
7706
hardcode_minus_L=yes
7707
# see comment about different semantics on the GNU ld section
7712
export_dynamic_flag_spec=-rdynamic
7715
cygwin* | mingw* | pw32*)
7716
# When not using gcc, we currently assume that we are using
7717
# Microsoft Visual C++.
7718
# hardcode_libdir_flag_spec is actually meaningless, as there is
7719
# no search path for DLLs.
7720
hardcode_libdir_flag_spec=' '
7721
allow_undefined_flag=unsupported
7722
# Tell ltmain to make .lib files, not .a files.
7724
# Tell ltmain to make .dll files, not .so files.
7726
# FIXME: Setting linknames here is a bad hack.
7727
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7728
# The linker will automatically build a .lib file if we build a DLL.
7729
old_archive_From_new_cmds='true'
7730
# FIXME: Should let the user specify the lib program.
7731
old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7732
fix_srcfile_path='`cygpath -w "$srcfile"`'
7733
enable_shared_with_static_runtimes=yes
7736
darwin* | rhapsody*)
7738
rhapsody* | darwin1.[012])
7739
allow_undefined_flag='${wl}-undefined ${wl}suppress'
7742
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7743
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7745
case ${MACOSX_DEPLOYMENT_TARGET} in
7747
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7750
allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7756
archive_cmds_need_lc=no
7758
hardcode_automatic=yes
7759
hardcode_shlibpath_var=unsupported
7760
whole_archive_flag_spec=''
7761
link_all_deplibs=yes
7762
if test "$GCC" = yes ; then
7763
output_verbose_link_cmd='echo'
7764
archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7765
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7766
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7767
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}'
7768
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}'
7770
case $cc_basename in
7772
output_verbose_link_cmd='echo'
7773
archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7774
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7775
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7776
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}'
7777
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}'
7787
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7788
hardcode_libdir_flag_spec='-L$libdir'
7789
hardcode_shlibpath_var=no
7796
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7797
# support. Future versions do this automatically, but an explicit c++rt0.o
7798
# does not break anything, and helps significantly (at the cost of a little
7801
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7802
hardcode_libdir_flag_spec='-R$libdir'
7804
hardcode_shlibpath_var=no
7807
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
7809
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7811
hardcode_minus_L=yes
7812
hardcode_shlibpath_var=no
7815
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7816
freebsd* | kfreebsd*-gnu | dragonfly*)
7817
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7818
hardcode_libdir_flag_spec='-R$libdir'
7820
hardcode_shlibpath_var=no
7824
if test "$GCC" = yes; then
7825
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'
7827
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'
7829
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7830
hardcode_libdir_separator=:
7833
# hardcode_minus_L: Not really in the search PATH,
7834
# but as the default location of the library.
7835
hardcode_minus_L=yes
7836
export_dynamic_flag_spec='${wl}-E'
7840
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7841
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7843
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7845
if test "$with_gnu_ld" = no; then
7846
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7847
hardcode_libdir_separator=:
7850
export_dynamic_flag_spec='${wl}-E'
7852
# hardcode_minus_L: Not really in the search PATH,
7853
# but as the default location of the library.
7854
hardcode_minus_L=yes
7859
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7862
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7865
archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7868
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7874
archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7877
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7880
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7884
if test "$with_gnu_ld" = no; then
7885
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7886
hardcode_libdir_separator=:
7890
hardcode_libdir_flag_spec_ld='+b $libdir'
7892
hardcode_shlibpath_var=no
7896
export_dynamic_flag_spec='${wl}-E'
7898
# hardcode_minus_L: Not really in the search PATH,
7899
# but as the default location of the library.
7900
hardcode_minus_L=yes
7906
irix5* | irix6* | nonstopux*)
7907
if test "$GCC" = yes; then
7908
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'
7910
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'
7911
hardcode_libdir_flag_spec_ld='-rpath $libdir'
7913
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7914
hardcode_libdir_separator=:
7915
link_all_deplibs=yes
7919
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7920
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7922
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7924
hardcode_libdir_flag_spec='-R$libdir'
7926
hardcode_shlibpath_var=no
7930
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7932
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7933
hardcode_libdir_separator=:
7934
hardcode_shlibpath_var=no
7939
hardcode_shlibpath_var=no
7940
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7941
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7942
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7943
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7944
export_dynamic_flag_spec='${wl}-E'
7947
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7948
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7949
hardcode_libdir_flag_spec='-R$libdir'
7952
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7953
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7960
hardcode_libdir_flag_spec='-L$libdir'
7961
hardcode_minus_L=yes
7962
allow_undefined_flag=unsupported
7963
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'
7964
old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7968
if test "$GCC" = yes; then
7969
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7970
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'
7972
allow_undefined_flag=' -expect_unresolved \*'
7973
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'
7975
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7976
hardcode_libdir_separator=:
7979
osf4* | osf5*) # as osf3* with the addition of -msym flag
7980
if test "$GCC" = yes; then
7981
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7982
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'
7983
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7985
allow_undefined_flag=' -expect_unresolved \*'
7986
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'
7987
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7988
$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'
7990
# Both c and cxx compiler support -rpath directly
7991
hardcode_libdir_flag_spec='-rpath $libdir'
7993
hardcode_libdir_separator=:
7997
no_undefined_flag=' -z text'
7998
if test "$GCC" = yes; then
8000
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8001
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8002
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8005
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8006
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8007
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8009
hardcode_libdir_flag_spec='-R$libdir'
8010
hardcode_shlibpath_var=no
8012
solaris2.[0-5] | solaris2.[0-5].*) ;;
8014
# The compiler driver will combine linker options so we
8015
# cannot just pass the convience library names through
8016
# without $wl, iff we do not link with $LD.
8017
# Luckily, gcc supports the same syntax we need for Sun Studio.
8018
# Supported since Solaris 2.6 (maybe 2.5.1?)
8021
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8023
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' ;;
8026
link_all_deplibs=yes
8030
if test "x$host_vendor" = xsequent; then
8031
# Use $CC to link under sequent, because it throws in some extra .o
8032
# files that make .init and .fini sections work.
8033
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8035
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8037
hardcode_libdir_flag_spec='-L$libdir'
8039
hardcode_minus_L=yes
8040
hardcode_shlibpath_var=no
8044
case $host_vendor in
8046
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8047
hardcode_direct=yes # is this really true???
8050
## LD is ld it makes a PLAMLIB
8051
## CC just makes a GrossModule.
8052
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8053
reload_cmds='$CC -r -o $output$reload_objs'
8057
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8058
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8061
runpath_var='LD_RUN_PATH'
8062
hardcode_shlibpath_var=no
8066
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8067
hardcode_shlibpath_var=no
8068
export_dynamic_flag_spec='-Bexport'
8072
if test -d /usr/nec; then
8073
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8074
hardcode_shlibpath_var=no
8075
runpath_var=LD_RUN_PATH
8076
hardcode_runpath_var=yes
8081
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8082
no_undefined_flag='${wl}-z,text'
8083
archive_cmds_need_lc=no
8084
hardcode_shlibpath_var=no
8085
runpath_var='LD_RUN_PATH'
8087
if test "$GCC" = yes; then
8088
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8089
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8091
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8092
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8096
sysv5* | sco3.2v5* | sco5v6*)
8097
# Note: We can NOT use -z defs as we might desire, because we do not
8098
# link with -lc, and that would cause any symbols used from libc to
8099
# always be unresolved, which means just about no library would
8100
# ever link correctly. If we're not using GNU ld we use -z text
8101
# though, which does catch some bad symbols but isn't as heavy-handed
8103
no_undefined_flag='${wl}-z,text'
8104
allow_undefined_flag='${wl}-z,nodefs'
8105
archive_cmds_need_lc=no
8106
hardcode_shlibpath_var=no
8107
hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8108
hardcode_libdir_separator=':'
8109
link_all_deplibs=yes
8110
export_dynamic_flag_spec='${wl}-Bexport'
8111
runpath_var='LD_RUN_PATH'
8113
if test "$GCC" = yes; then
8114
archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8115
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8117
archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8118
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8123
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8124
hardcode_libdir_flag_spec='-L$libdir'
8125
hardcode_shlibpath_var=no
8134
{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8135
echo "${ECHO_T}$ld_shlibs" >&6; }
8136
test "$ld_shlibs" = no && can_build_shared=no
8139
# Do we need to explicitly link libc?
8141
case "x$archive_cmds_need_lc" in
8143
# Assume -lc should be added
8144
archive_cmds_need_lc=yes
8146
if test "$enable_shared" = yes && test "$GCC" = yes; then
8147
case $archive_cmds in
8149
# FIXME: we may have to deal with multi-command sequences.
8152
# Test whether the compiler implicitly links with -lc since on some
8153
# systems, -lgcc has to come before -lc. If gcc already passes -lc
8154
# to ld, don't add -lc before -lgcc.
8155
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8156
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8158
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8160
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8161
(eval $ac_compile) 2>&5
8163
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8164
(exit $ac_status); } 2>conftest.err; then
8167
libobjs=conftest.$ac_objext
8169
wl=$lt_prog_compiler_wl
8170
pic_flag=$lt_prog_compiler_pic
8176
lt_save_allow_undefined_flag=$allow_undefined_flag
8177
allow_undefined_flag=
8178
if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8179
(eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8181
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8182
(exit $ac_status); }
8184
archive_cmds_need_lc=no
8186
archive_cmds_need_lc=yes
8188
allow_undefined_flag=$lt_save_allow_undefined_flag
8190
cat conftest.err 1>&5
8193
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8194
echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8201
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8202
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8204
libname_spec='lib$name'
8212
shlibpath_overrides_runpath=unknown
8214
dynamic_linker="$host_os ld.so"
8215
sys_lib_dlsearch_path_spec="/lib /usr/lib"
8216
if test "$GCC" = yes; then
8217
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8218
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8219
# if the path contains ";" then we assume it to be the separator
8220
# otherwise default to the standard path separator (i.e. ":") - it is
8221
# assumed that no part of a normal pathname contains ";" but that should
8222
# okay in the real world where ";" in dirpaths is itself problematic.
8223
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8225
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8228
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8230
need_lib_prefix=unknown
8231
hardcode_into_libs=no
8233
# when you set need_version to no, make sure it does not cause -set_version
8234
# flags to be left without arguments
8235
need_version=unknown
8240
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8241
shlibpath_var=LIBPATH
8243
# AIX 3 has no versioning support, so we append a major version to the name.
8244
soname_spec='${libname}${release}${shared_ext}$major'
8251
hardcode_into_libs=yes
8252
if test "$host_cpu" = ia64; then
8253
# AIX 5 supports IA64
8254
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8255
shlibpath_var=LD_LIBRARY_PATH
8257
# With GCC up to 2.95.x, collect2 would create an import file
8258
# for dependence libraries. The import file would start with
8259
# the line `#! .'. This would cause the generated library to
8260
# depend on `.', always an invalid library. This was fixed in
8261
# development snapshots of GCC prior to 3.0.
8263
aix4 | aix4.[01] | aix4.[01].*)
8264
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8266
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8273
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8274
# soname into executable. Probably we can add versioning support to
8275
# collect2, so additional links can be useful in future.
8276
if test "$aix_use_runtimelinking" = yes; then
8277
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
8278
# instead of lib<name>.a to let people know that these are not
8279
# typical AIX shared libraries.
8280
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8282
# We preserve .a as extension for shared libraries through AIX4.2
8283
# and later when we are not doing run time linking.
8284
library_names_spec='${libname}${release}.a $libname.a'
8285
soname_spec='${libname}${release}${shared_ext}$major'
8287
shlibpath_var=LIBPATH
8292
library_names_spec='$libname.ixlibrary $libname.a'
8293
# Create ${libname}_ixlibrary.a entries in /sys/libs.
8294
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'
8298
library_names_spec='${libname}${shared_ext}'
8299
dynamic_linker="$host_os ld.so"
8300
shlibpath_var=LIBRARY_PATH
8306
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8307
soname_spec='${libname}${release}${shared_ext}$major'
8308
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8309
shlibpath_var=LD_LIBRARY_PATH
8310
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8311
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8312
# the default ld.so.conf also contains /usr/contrib/lib and
8313
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8314
# libtool to hard-code these into programs
8317
cygwin* | mingw* | pw32*)
8318
version_type=windows
8323
case $GCC,$host_os in
8324
yes,cygwin* | yes,mingw* | yes,pw32*)
8325
library_names_spec='$libname.dll.a'
8326
# DLL is installed to $(libdir)/../bin by postinstall_cmds
8327
postinstall_cmds='base_file=`basename \${file}`~
8328
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8329
dldir=$destdir/`dirname \$dlpath`~
8330
test -d \$dldir || mkdir -p \$dldir~
8331
$install_prog $dir/$dlname \$dldir/$dlname~
8332
chmod a+x \$dldir/$dlname'
8333
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8334
dlpath=$dir/\$dldll~
8336
shlibpath_overrides_runpath=yes
8340
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
8341
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8342
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8345
# MinGW DLLs use traditional 'lib' prefix
8346
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8347
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8348
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8349
# It is most probably a Windows format PATH printed by
8350
# mingw gcc, but we are running on Cygwin. Gcc prints its search
8351
# path with ; separators, and with drive letters. We can handle the
8352
# drive letters (cygwin fileutils understands them), so leave them,
8353
# especially as we might pass files found there to a mingw objdump,
8354
# which wouldn't understand a cygwinified path. Ahh.
8355
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8357
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8361
# pw32 DLLs use 'pw' prefix rather than 'lib'
8362
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8368
if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
8369
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8370
supports_anon_versioning=no
8371
case `$LD -v 2>/dev/null` in
8372
*\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8373
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8374
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8375
*\ 2.11.*) ;; # other 2.11 versions
8376
*) supports_anon_versioning=yes ;;
8378
if test $supports_anon_versioning = yes; then
8379
archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8380
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8381
$echo "local: *; };" >> $output_objdir/$libname.ver~
8382
$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8384
$archive_expsym_cmds="$archive_cmds"
8392
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8395
dynamic_linker='Win32 ld.exe'
8396
# FIXME: first we should search . and the directory the executable is in
8400
darwin* | rhapsody*)
8401
dynamic_linker="$host_os dyld"
8405
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8406
soname_spec='${libname}${release}${major}$shared_ext'
8407
shlibpath_overrides_runpath=yes
8408
shlibpath_var=DYLD_LIBRARY_PATH
8409
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8410
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8411
if test "$GCC" = yes; then
8412
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"`
8414
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8416
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8423
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8424
soname_spec='${libname}${release}${shared_ext}$major'
8425
shlibpath_var=LD_LIBRARY_PATH
8436
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8437
soname_spec='${libname}${release}${shared_ext}$major'
8438
shlibpath_var=LD_LIBRARY_PATH
8439
shlibpath_overrides_runpath=no
8440
hardcode_into_libs=yes
8441
dynamic_linker='GNU ld.so'
8444
freebsd* | dragonfly*)
8445
# DragonFly does not have aout. When/if they implement a new
8446
# versioning mechanism, adjust this.
8447
if test -x /usr/bin/objformat; then
8448
objformat=`/usr/bin/objformat`
8451
freebsd[123]*) objformat=aout ;;
8455
# Handle Gentoo/FreeBSD as it was Linux
8456
case $host_vendor in
8458
version_type=linux ;;
8460
version_type=freebsd-$objformat ;;
8463
case $version_type in
8465
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8470
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8474
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8475
soname_spec='${libname}${release}${shared_ext}$major'
8480
shlibpath_var=LD_LIBRARY_PATH
8483
shlibpath_overrides_runpath=yes
8485
freebsd3.[01]* | freebsdelf3.[01]*)
8486
shlibpath_overrides_runpath=yes
8487
hardcode_into_libs=yes
8489
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8490
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8491
shlibpath_overrides_runpath=no
8492
hardcode_into_libs=yes
8494
freebsd*) # from 4.6 on
8495
shlibpath_overrides_runpath=yes
8496
hardcode_into_libs=yes
8505
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8506
soname_spec='${libname}${release}${shared_ext}$major'
8507
shlibpath_var=LD_LIBRARY_PATH
8508
hardcode_into_libs=yes
8511
hpux9* | hpux10* | hpux11*)
8512
# Give a soname corresponding to the major version so that dld.sl refuses to
8513
# link against other versions.
8520
hardcode_into_libs=yes
8521
dynamic_linker="$host_os dld.so"
8522
shlibpath_var=LD_LIBRARY_PATH
8523
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8524
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8525
soname_spec='${libname}${release}${shared_ext}$major'
8526
if test "X$HPUX_IA64_MODE" = X32; then
8527
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8529
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8531
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8535
hardcode_into_libs=yes
8536
dynamic_linker="$host_os dld.sl"
8537
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8538
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8539
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8540
soname_spec='${libname}${release}${shared_ext}$major'
8541
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8542
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8546
dynamic_linker="$host_os dld.sl"
8547
shlibpath_var=SHLIB_PATH
8548
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8549
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8550
soname_spec='${libname}${release}${shared_ext}$major'
8553
# HP-UX runs *really* slowly unless shared libraries are mode 555.
8554
postinstall_cmds='chmod 555 $lib'
8561
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8562
soname_spec='${libname}${release}${shared_ext}$major'
8563
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8564
shlibpath_var=LD_LIBRARY_PATH
8565
shlibpath_overrides_runpath=no
8566
hardcode_into_libs=yes
8569
irix5* | irix6* | nonstopux*)
8571
nonstopux*) version_type=nonstopux ;;
8573
if test "$lt_cv_prog_gnu_ld" = yes; then
8581
soname_spec='${libname}${release}${shared_ext}$major'
8582
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8584
irix5* | nonstopux*)
8588
case $LD in # libtool.m4 will add one of these switches to LD
8589
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8590
libsuff= shlibsuff= libmagic=32-bit;;
8591
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8592
libsuff=32 shlibsuff=N32 libmagic=N32;;
8593
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8594
libsuff=64 shlibsuff=64 libmagic=64-bit;;
8595
*) libsuff= shlibsuff= libmagic=never-match;;
8599
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8600
shlibpath_overrides_runpath=no
8601
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8602
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8603
hardcode_into_libs=yes
8606
# No shared lib support for Linux oldld, aout, or coff.
8607
linux*oldld* | linux*aout* | linux*coff*)
8611
# This must be Linux ELF.
8616
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8617
soname_spec='${libname}${release}${shared_ext}$major'
8618
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8619
shlibpath_var=LD_LIBRARY_PATH
8620
shlibpath_overrides_runpath=no
8621
# This implies no fast_install, which is unacceptable.
8622
# Some rework will be needed to allow for fast_install
8623
# before this can be enabled.
8624
hardcode_into_libs=yes
8626
# Append ld.so.conf contents to the search path
8627
if test -f /etc/ld.so.conf; then
8628
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' ' '`
8629
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8632
# We used to test for /lib/ld.so.1 and disable shared libraries on
8633
# powerpc, because MkLinux only supported shared libraries with the
8634
# GNU dynamic linker. Since this was broken with cross compilers,
8635
# most powerpc-linux boxes support dynamic linking these days and
8636
# people can always --disable-shared, the test was removed, and we
8637
# assume the GNU/Linux dynamic linker is in use.
8638
dynamic_linker='GNU/Linux ld.so'
8645
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8646
soname_spec='${libname}${release}${shared_ext}$major'
8647
shlibpath_var=LD_LIBRARY_PATH
8648
shlibpath_overrides_runpath=no
8649
hardcode_into_libs=yes
8650
dynamic_linker='GNU ld.so'
8657
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8658
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8659
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8660
dynamic_linker='NetBSD (a.out) ld.so'
8662
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8663
soname_spec='${libname}${release}${shared_ext}$major'
8664
dynamic_linker='NetBSD ld.elf_so'
8666
shlibpath_var=LD_LIBRARY_PATH
8667
shlibpath_overrides_runpath=yes
8668
hardcode_into_libs=yes
8673
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8674
shlibpath_var=LD_LIBRARY_PATH
8675
shlibpath_overrides_runpath=yes
8682
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8683
soname_spec='${libname}${release}${shared_ext}$major'
8684
shlibpath_var=LD_LIBRARY_PATH
8685
shlibpath_overrides_runpath=yes
8690
sys_lib_dlsearch_path_spec="/usr/lib"
8692
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8694
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8695
*) need_version=no ;;
8697
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8698
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8699
shlibpath_var=LD_LIBRARY_PATH
8700
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8702
openbsd2.[89] | openbsd2.[89].*)
8703
shlibpath_overrides_runpath=no
8706
shlibpath_overrides_runpath=yes
8710
shlibpath_overrides_runpath=yes
8715
libname_spec='$name'
8718
library_names_spec='$libname${shared_ext} $libname.a'
8719
dynamic_linker='OS/2 ld.exe'
8720
shlibpath_var=LIBPATH
8723
osf3* | osf4* | osf5*)
8727
soname_spec='${libname}${release}${shared_ext}$major'
8728
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8729
shlibpath_var=LD_LIBRARY_PATH
8730
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8731
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8738
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8739
soname_spec='${libname}${release}${shared_ext}$major'
8740
shlibpath_var=LD_LIBRARY_PATH
8741
shlibpath_overrides_runpath=yes
8742
hardcode_into_libs=yes
8743
# ldd complains unless libraries are executable
8744
postinstall_cmds='chmod +x $lib'
8749
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8750
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8751
shlibpath_var=LD_LIBRARY_PATH
8752
shlibpath_overrides_runpath=yes
8753
if test "$with_gnu_ld" = yes; then
8761
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8762
soname_spec='${libname}${release}${shared_ext}$major'
8763
shlibpath_var=LD_LIBRARY_PATH
8764
case $host_vendor in
8766
shlibpath_overrides_runpath=no
8768
export_dynamic_flag_spec='${wl}-Blargedynsym'
8769
runpath_var=LD_RUN_PATH
8777
shlibpath_overrides_runpath=no
8778
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8784
if test -d /usr/nec ;then
8786
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8787
soname_spec='$libname${shared_ext}.$major'
8788
shlibpath_var=LD_LIBRARY_PATH
8792
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8793
version_type=freebsd-elf
8796
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8797
soname_spec='${libname}${release}${shared_ext}$major'
8798
shlibpath_var=LD_LIBRARY_PATH
8799
hardcode_into_libs=yes
8800
if test "$with_gnu_ld" = yes; then
8801
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8802
shlibpath_overrides_runpath=no
8804
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8805
shlibpath_overrides_runpath=yes
8808
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8812
sys_lib_dlsearch_path_spec='/usr/lib'
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
shlibpath_var=LD_LIBRARY_PATH
8826
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8827
echo "${ECHO_T}$dynamic_linker" >&6; }
8828
test "$dynamic_linker" = no && can_build_shared=no
8830
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8831
if test "$GCC" = yes; then
8832
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8835
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8836
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
8838
if test -n "$hardcode_libdir_flag_spec" || \
8839
test -n "$runpath_var" || \
8840
test "X$hardcode_automatic" = "Xyes" ; then
8842
# We can hardcode non-existant directories.
8843
if test "$hardcode_direct" != no &&
8844
# If the only mechanism to avoid hardcoding is shlibpath_var, we
8845
# have to relink, otherwise we might link with an installed library
8846
# when we should be linking with a yet-to-be-installed one
8847
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8848
test "$hardcode_minus_L" != no; then
8849
# Linking always hardcodes the temporary library directory.
8850
hardcode_action=relink
8852
# We can link without hardcoding, and we can hardcode nonexisting dirs.
8853
hardcode_action=immediate
8856
# We cannot hardcode anything, or else we can only hardcode existing
8858
hardcode_action=unsupported
8860
{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
8861
echo "${ECHO_T}$hardcode_action" >&6; }
8863
if test "$hardcode_action" = relink; then
8864
# Fast installation is not supported
8865
enable_fast_install=no
8866
elif test "$shlibpath_overrides_runpath" = yes ||
8867
test "$enable_shared" = no; then
8868
# Fast installation is not necessary
8869
enable_fast_install=needless
8874
{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8875
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
8876
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8877
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8878
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8879
{ echo "$as_me:$LINENO: result: yes" >&5
8880
echo "${ECHO_T}yes" >&6; }
8882
# FIXME - insert some real tests, host_os isn't really good enough
8885
if test -n "$STRIP" ; then
8886
striplib="$STRIP -x"
8887
{ echo "$as_me:$LINENO: result: yes" >&5
8888
echo "${ECHO_T}yes" >&6; }
8890
{ echo "$as_me:$LINENO: result: no" >&5
8891
echo "${ECHO_T}no" >&6; }
8895
{ echo "$as_me:$LINENO: result: no" >&5
8896
echo "${ECHO_T}no" >&6; }
8901
if test "x$enable_dlopen" != xyes; then
8902
enable_dlopen=unknown
8903
enable_dlopen_self=unknown
8904
enable_dlopen_self_static=unknown
8911
lt_cv_dlopen="load_add_on"
8913
lt_cv_dlopen_self=yes
8917
lt_cv_dlopen="LoadLibrary"
8922
lt_cv_dlopen="dlopen"
8927
# if libdl is installed we need to link against it
8928
{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8929
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
8930
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8931
echo $ECHO_N "(cached) $ECHO_C" >&6
8933
ac_check_lib_save_LIBS=$LIBS
8935
cat >conftest.$ac_ext <<_ACEOF
8938
cat confdefs.h >>conftest.$ac_ext
8939
cat >>conftest.$ac_ext <<_ACEOF
8940
/* end confdefs.h. */
8942
/* Override any GCC internal prototype to avoid an error.
8943
Use char because int might match the return type of a GCC
8944
builtin and then its argument prototype would still apply. */
8957
rm -f conftest.$ac_objext conftest$ac_exeext
8958
if { (ac_try="$ac_link"
8960
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8961
*) ac_try_echo=$ac_try;;
8963
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8964
(eval "$ac_link") 2>conftest.er1
8966
grep -v '^ *+' conftest.er1 >conftest.err
8968
cat conftest.err >&5
8969
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8970
(exit $ac_status); } && {
8971
test -z "$ac_c_werror_flag" ||
8972
test ! -s conftest.err
8973
} && test -s conftest$ac_exeext &&
8974
$as_test_x conftest$ac_exeext; then
8975
ac_cv_lib_dl_dlopen=yes
8977
echo "$as_me: failed program was:" >&5
8978
sed 's/^/| /' conftest.$ac_ext >&5
8980
ac_cv_lib_dl_dlopen=no
8983
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8984
conftest$ac_exeext conftest.$ac_ext
8985
LIBS=$ac_check_lib_save_LIBS
8987
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8988
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
8989
if test $ac_cv_lib_dl_dlopen = yes; then
8990
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8995
lt_cv_dlopen_self=yes
9002
{ echo "$as_me:$LINENO: checking for shl_load" >&5
9003
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9004
if test "${ac_cv_func_shl_load+set}" = set; then
9005
echo $ECHO_N "(cached) $ECHO_C" >&6
9007
cat >conftest.$ac_ext <<_ACEOF
9010
cat confdefs.h >>conftest.$ac_ext
9011
cat >>conftest.$ac_ext <<_ACEOF
9012
/* end confdefs.h. */
9013
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9014
For example, HP-UX 11i <limits.h> declares gettimeofday. */
9015
#define shl_load innocuous_shl_load
9017
/* System header to define __stub macros and hopefully few prototypes,
9018
which can conflict with char shl_load (); below.
9019
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9020
<limits.h> exists even on freestanding compilers. */
9023
# include <limits.h>
9025
# include <assert.h>
9030
/* Override any GCC internal prototype to avoid an error.
9031
Use char because int might match the return type of a GCC
9032
builtin and then its argument prototype would still apply. */
9037
/* The GNU C library defines this for functions which it implements
9038
to always fail with ENOSYS. Some functions are actually named
9039
something starting with __ and the normal name is an alias. */
9040
#if defined __stub_shl_load || defined __stub___shl_load
9052
rm -f conftest.$ac_objext conftest$ac_exeext
9053
if { (ac_try="$ac_link"
9055
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9056
*) ac_try_echo=$ac_try;;
9058
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9059
(eval "$ac_link") 2>conftest.er1
9061
grep -v '^ *+' conftest.er1 >conftest.err
9063
cat conftest.err >&5
9064
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9065
(exit $ac_status); } && {
9066
test -z "$ac_c_werror_flag" ||
9067
test ! -s conftest.err
9068
} && test -s conftest$ac_exeext &&
9069
$as_test_x conftest$ac_exeext; then
9070
ac_cv_func_shl_load=yes
9072
echo "$as_me: failed program was:" >&5
9073
sed 's/^/| /' conftest.$ac_ext >&5
9075
ac_cv_func_shl_load=no
9078
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9079
conftest$ac_exeext conftest.$ac_ext
9081
{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9082
echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9083
if test $ac_cv_func_shl_load = yes; then
9084
lt_cv_dlopen="shl_load"
9086
{ echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9087
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9088
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9089
echo $ECHO_N "(cached) $ECHO_C" >&6
9091
ac_check_lib_save_LIBS=$LIBS
9093
cat >conftest.$ac_ext <<_ACEOF
9096
cat confdefs.h >>conftest.$ac_ext
9097
cat >>conftest.$ac_ext <<_ACEOF
9098
/* end confdefs.h. */
9100
/* Override any GCC internal prototype to avoid an error.
9101
Use char because int might match the return type of a GCC
9102
builtin and then its argument prototype would still apply. */
9115
rm -f conftest.$ac_objext conftest$ac_exeext
9116
if { (ac_try="$ac_link"
9118
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9119
*) ac_try_echo=$ac_try;;
9121
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9122
(eval "$ac_link") 2>conftest.er1
9124
grep -v '^ *+' conftest.er1 >conftest.err
9126
cat conftest.err >&5
9127
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9128
(exit $ac_status); } && {
9129
test -z "$ac_c_werror_flag" ||
9130
test ! -s conftest.err
9131
} && test -s conftest$ac_exeext &&
9132
$as_test_x conftest$ac_exeext; then
9133
ac_cv_lib_dld_shl_load=yes
9135
echo "$as_me: failed program was:" >&5
9136
sed 's/^/| /' conftest.$ac_ext >&5
9138
ac_cv_lib_dld_shl_load=no
9141
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9142
conftest$ac_exeext conftest.$ac_ext
9143
LIBS=$ac_check_lib_save_LIBS
9145
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9146
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9147
if test $ac_cv_lib_dld_shl_load = yes; then
9148
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9150
{ echo "$as_me:$LINENO: checking for dlopen" >&5
9151
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9152
if test "${ac_cv_func_dlopen+set}" = set; then
9153
echo $ECHO_N "(cached) $ECHO_C" >&6
9155
cat >conftest.$ac_ext <<_ACEOF
9158
cat confdefs.h >>conftest.$ac_ext
9159
cat >>conftest.$ac_ext <<_ACEOF
9160
/* end confdefs.h. */
9161
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9162
For example, HP-UX 11i <limits.h> declares gettimeofday. */
9163
#define dlopen innocuous_dlopen
9165
/* System header to define __stub macros and hopefully few prototypes,
9166
which can conflict with char dlopen (); below.
9167
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9168
<limits.h> exists even on freestanding compilers. */
9171
# include <limits.h>
9173
# include <assert.h>
9178
/* Override any GCC internal prototype to avoid an error.
9179
Use char because int might match the return type of a GCC
9180
builtin and then its argument prototype would still apply. */
9185
/* The GNU C library defines this for functions which it implements
9186
to always fail with ENOSYS. Some functions are actually named
9187
something starting with __ and the normal name is an alias. */
9188
#if defined __stub_dlopen || defined __stub___dlopen
9200
rm -f conftest.$ac_objext conftest$ac_exeext
9201
if { (ac_try="$ac_link"
9203
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9204
*) ac_try_echo=$ac_try;;
9206
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9207
(eval "$ac_link") 2>conftest.er1
9209
grep -v '^ *+' conftest.er1 >conftest.err
9211
cat conftest.err >&5
9212
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9213
(exit $ac_status); } && {
9214
test -z "$ac_c_werror_flag" ||
9215
test ! -s conftest.err
9216
} && test -s conftest$ac_exeext &&
9217
$as_test_x conftest$ac_exeext; then
9218
ac_cv_func_dlopen=yes
9220
echo "$as_me: failed program was:" >&5
9221
sed 's/^/| /' conftest.$ac_ext >&5
9223
ac_cv_func_dlopen=no
9226
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9227
conftest$ac_exeext conftest.$ac_ext
9229
{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9230
echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9231
if test $ac_cv_func_dlopen = yes; then
9232
lt_cv_dlopen="dlopen"
9234
{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9235
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9236
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9237
echo $ECHO_N "(cached) $ECHO_C" >&6
9239
ac_check_lib_save_LIBS=$LIBS
9241
cat >conftest.$ac_ext <<_ACEOF
9244
cat confdefs.h >>conftest.$ac_ext
9245
cat >>conftest.$ac_ext <<_ACEOF
9246
/* end confdefs.h. */
9248
/* Override any GCC internal prototype to avoid an error.
9249
Use char because int might match the return type of a GCC
9250
builtin and then its argument prototype would still apply. */
9263
rm -f conftest.$ac_objext conftest$ac_exeext
9264
if { (ac_try="$ac_link"
9266
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9267
*) ac_try_echo=$ac_try;;
9269
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9270
(eval "$ac_link") 2>conftest.er1
9272
grep -v '^ *+' conftest.er1 >conftest.err
9274
cat conftest.err >&5
9275
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9276
(exit $ac_status); } && {
9277
test -z "$ac_c_werror_flag" ||
9278
test ! -s conftest.err
9279
} && test -s conftest$ac_exeext &&
9280
$as_test_x conftest$ac_exeext; then
9281
ac_cv_lib_dl_dlopen=yes
9283
echo "$as_me: failed program was:" >&5
9284
sed 's/^/| /' conftest.$ac_ext >&5
9286
ac_cv_lib_dl_dlopen=no
9289
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9290
conftest$ac_exeext conftest.$ac_ext
9291
LIBS=$ac_check_lib_save_LIBS
9293
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9294
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9295
if test $ac_cv_lib_dl_dlopen = yes; then
9296
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9298
{ echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9299
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9300
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9301
echo $ECHO_N "(cached) $ECHO_C" >&6
9303
ac_check_lib_save_LIBS=$LIBS
9305
cat >conftest.$ac_ext <<_ACEOF
9308
cat confdefs.h >>conftest.$ac_ext
9309
cat >>conftest.$ac_ext <<_ACEOF
9310
/* end confdefs.h. */
9312
/* Override any GCC internal prototype to avoid an error.
9313
Use char because int might match the return type of a GCC
9314
builtin and then its argument prototype would still apply. */
9327
rm -f conftest.$ac_objext conftest$ac_exeext
9328
if { (ac_try="$ac_link"
9330
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9331
*) ac_try_echo=$ac_try;;
9333
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9334
(eval "$ac_link") 2>conftest.er1
9336
grep -v '^ *+' conftest.er1 >conftest.err
9338
cat conftest.err >&5
9339
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9340
(exit $ac_status); } && {
9341
test -z "$ac_c_werror_flag" ||
9342
test ! -s conftest.err
9343
} && test -s conftest$ac_exeext &&
9344
$as_test_x conftest$ac_exeext; then
9345
ac_cv_lib_svld_dlopen=yes
9347
echo "$as_me: failed program was:" >&5
9348
sed 's/^/| /' conftest.$ac_ext >&5
9350
ac_cv_lib_svld_dlopen=no
9353
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9354
conftest$ac_exeext conftest.$ac_ext
9355
LIBS=$ac_check_lib_save_LIBS
9357
{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9358
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9359
if test $ac_cv_lib_svld_dlopen = yes; then
9360
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9362
{ echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9363
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9364
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9365
echo $ECHO_N "(cached) $ECHO_C" >&6
9367
ac_check_lib_save_LIBS=$LIBS
9369
cat >conftest.$ac_ext <<_ACEOF
9372
cat confdefs.h >>conftest.$ac_ext
9373
cat >>conftest.$ac_ext <<_ACEOF
9374
/* end confdefs.h. */
9376
/* Override any GCC internal prototype to avoid an error.
9377
Use char because int might match the return type of a GCC
9378
builtin and then its argument prototype would still apply. */
9391
rm -f conftest.$ac_objext conftest$ac_exeext
9392
if { (ac_try="$ac_link"
9394
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9395
*) ac_try_echo=$ac_try;;
9397
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9398
(eval "$ac_link") 2>conftest.er1
9400
grep -v '^ *+' conftest.er1 >conftest.err
9402
cat conftest.err >&5
9403
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9404
(exit $ac_status); } && {
9405
test -z "$ac_c_werror_flag" ||
9406
test ! -s conftest.err
9407
} && test -s conftest$ac_exeext &&
9408
$as_test_x conftest$ac_exeext; then
9409
ac_cv_lib_dld_dld_link=yes
9411
echo "$as_me: failed program was:" >&5
9412
sed 's/^/| /' conftest.$ac_ext >&5
9414
ac_cv_lib_dld_dld_link=no
9417
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9418
conftest$ac_exeext conftest.$ac_ext
9419
LIBS=$ac_check_lib_save_LIBS
9421
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9422
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9423
if test $ac_cv_lib_dld_dld_link = yes; then
9424
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9445
if test "x$lt_cv_dlopen" != xno; then
9451
case $lt_cv_dlopen in
9453
save_CPPFLAGS="$CPPFLAGS"
9454
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9456
save_LDFLAGS="$LDFLAGS"
9457
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9460
LIBS="$lt_cv_dlopen_libs $LIBS"
9462
{ echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9463
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9464
if test "${lt_cv_dlopen_self+set}" = set; then
9465
echo $ECHO_N "(cached) $ECHO_C" >&6
9467
if test "$cross_compiling" = yes; then :
9468
lt_cv_dlopen_self=cross
9470
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9471
lt_status=$lt_dlunknown
9472
cat > conftest.$ac_ext <<EOF
9473
#line 9473 "configure"
9474
#include "confdefs.h"
9483
# define LT_DLGLOBAL RTLD_GLOBAL
9486
# define LT_DLGLOBAL DL_GLOBAL
9488
# define LT_DLGLOBAL 0
9492
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9493
find out it does not work in some platform. */
9494
#ifndef LT_DLLAZY_OR_NOW
9496
# define LT_DLLAZY_OR_NOW RTLD_LAZY
9499
# define LT_DLLAZY_OR_NOW DL_LAZY
9502
# define LT_DLLAZY_OR_NOW RTLD_NOW
9505
# define LT_DLLAZY_OR_NOW DL_NOW
9507
# define LT_DLLAZY_OR_NOW 0
9515
extern "C" void exit (int);
9518
void fnord() { int i=42;}
9521
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9522
int status = $lt_dlunknown;
9526
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9527
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9528
/* dlclose (self); */
9536
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9537
(eval $ac_link) 2>&5
9539
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9540
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9541
(./conftest; exit; ) >&5 2>/dev/null
9544
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9545
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9546
x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9549
# compilation failed
9550
lt_cv_dlopen_self=no
9557
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9558
echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9560
if test "x$lt_cv_dlopen_self" = xyes; then
9561
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9562
{ echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9563
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9564
if test "${lt_cv_dlopen_self_static+set}" = set; then
9565
echo $ECHO_N "(cached) $ECHO_C" >&6
9567
if test "$cross_compiling" = yes; then :
9568
lt_cv_dlopen_self_static=cross
9570
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9571
lt_status=$lt_dlunknown
9572
cat > conftest.$ac_ext <<EOF
9573
#line 9573 "configure"
9574
#include "confdefs.h"
9583
# define LT_DLGLOBAL RTLD_GLOBAL
9586
# define LT_DLGLOBAL DL_GLOBAL
9588
# define LT_DLGLOBAL 0
9592
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9593
find out it does not work in some platform. */
9594
#ifndef LT_DLLAZY_OR_NOW
9596
# define LT_DLLAZY_OR_NOW RTLD_LAZY
9599
# define LT_DLLAZY_OR_NOW DL_LAZY
9602
# define LT_DLLAZY_OR_NOW RTLD_NOW
9605
# define LT_DLLAZY_OR_NOW DL_NOW
9607
# define LT_DLLAZY_OR_NOW 0
9615
extern "C" void exit (int);
9618
void fnord() { int i=42;}
9621
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9622
int status = $lt_dlunknown;
9626
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9627
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9628
/* dlclose (self); */
9636
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9637
(eval $ac_link) 2>&5
9639
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9640
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9641
(./conftest; exit; ) >&5 2>/dev/null
9644
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9645
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9646
x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9649
# compilation failed
9650
lt_cv_dlopen_self_static=no
9657
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9658
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
9661
CPPFLAGS="$save_CPPFLAGS"
9662
LDFLAGS="$save_LDFLAGS"
9667
case $lt_cv_dlopen_self in
9668
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9669
*) enable_dlopen_self=unknown ;;
9672
case $lt_cv_dlopen_self_static in
9673
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9674
*) enable_dlopen_self_static=unknown ;;
9679
# Report which library types will actually be built
9680
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9681
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
9682
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
9683
echo "${ECHO_T}$can_build_shared" >&6; }
9685
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9686
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
9687
test "$can_build_shared" = "no" && enable_shared=no
9689
# On AIX, shared libraries and static libraries use the same namespace, and
9690
# are all built from PIC.
9693
test "$enable_shared" = yes && enable_static=no
9694
if test -n "$RANLIB"; then
9695
archive_cmds="$archive_cmds~\$RANLIB \$lib"
9696
postinstall_cmds='$RANLIB $lib'
9701
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9702
test "$enable_shared" = yes && enable_static=no
9706
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
9707
echo "${ECHO_T}$enable_shared" >&6; }
9709
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9710
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
9711
# Make sure either enable_shared or enable_static is yes.
9712
test "$enable_shared" = yes || enable_static=yes
9713
{ echo "$as_me:$LINENO: result: $enable_static" >&5
9714
echo "${ECHO_T}$enable_static" >&6; }
9716
# The else clause should only fire when bootstrapping the
9717
# libtool distribution, otherwise you forgot to ship ltmain.sh
9718
# with your package, and you will get complaints that there are
9719
# no rules to generate ltmain.sh.
9720
if test -f "$ltmain"; then
9721
# See if we are running on zsh, and set the options which allow our commands through
9722
# without removal of \ escapes.
9723
if test -n "${ZSH_VERSION+set}" ; then
9724
setopt NO_GLOB_SUBST
9726
# Now quote all the things that may contain metacharacters while being
9727
# careful not to overquote the AC_SUBSTed values. We take copies of the
9728
# variables and quote the copies for generation of the libtool script.
9729
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9731
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9732
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9733
deplibs_check_method reload_flag reload_cmds need_locks \
9734
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9735
lt_cv_sys_global_symbol_to_c_name_address \
9736
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9737
old_postinstall_cmds old_postuninstall_cmds \
9741
lt_prog_compiler_wl \
9742
lt_prog_compiler_pic \
9743
lt_prog_compiler_static \
9744
lt_prog_compiler_no_builtin_flag \
9745
export_dynamic_flag_spec \
9746
thread_safe_flag_spec \
9747
whole_archive_flag_spec \
9748
enable_shared_with_static_runtimes \
9750
old_archive_from_new_cmds \
9755
compiler_lib_search_path \
9757
archive_expsym_cmds \
9759
postuninstall_cmds \
9760
old_archive_from_expsyms_cmds \
9761
allow_undefined_flag \
9763
export_symbols_cmds \
9764
hardcode_libdir_flag_spec \
9765
hardcode_libdir_flag_spec_ld \
9766
hardcode_libdir_separator \
9767
hardcode_automatic \
9769
module_expsym_cmds \
9770
lt_cv_prog_compiler_c_o \
9775
old_archive_cmds | \
9776
old_archive_from_new_cmds | \
9778
archive_expsym_cmds | \
9780
module_expsym_cmds | \
9781
old_archive_from_expsyms_cmds | \
9782
export_symbols_cmds | \
9783
extract_expsyms_cmds | reload_cmds | finish_cmds | \
9784
postinstall_cmds | postuninstall_cmds | \
9785
old_postinstall_cmds | old_postuninstall_cmds | \
9786
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9787
# Double-quote double-evaled strings.
9788
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9791
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9797
*'\$0 --fallback-echo"')
9798
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9803
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9805
{ echo "$as_me:$LINENO: creating $ofile" >&5
9806
echo "$as_me: creating $ofile" >&6;}
9808
cat <<__EOF__ >> "$cfgfile"
9811
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9812
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9813
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9815
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9816
# Free Software Foundation, Inc.
9818
# This file is part of GNU Libtool:
9819
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9821
# This program is free software; you can redistribute it and/or modify
9822
# it under the terms of the GNU General Public License as published by
9823
# the Free Software Foundation; either version 2 of the License, or
9824
# (at your option) any later version.
9826
# This program is distributed in the hope that it will be useful, but
9827
# WITHOUT ANY WARRANTY; without even the implied warranty of
9828
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9829
# General Public License for more details.
9831
# You should have received a copy of the GNU General Public License
9832
# along with this program; if not, write to the Free Software
9833
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9835
# As a special exception to the GNU General Public License, if you
9836
# distribute this file as part of a program that contains a
9837
# configuration script generated by Autoconf, you may include it under
9838
# the same distribution terms that you use for the rest of that program.
9840
# A sed program that does not truncate output.
9843
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9844
Xsed="$SED -e 1s/^X//"
9846
# The HP-UX ksh and POSIX shell print the target directory to stdout
9848
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9850
# The names of the tagged configurations supported by this script.
9853
# ### BEGIN LIBTOOL CONFIG
9855
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9857
# Shell to use when invoking shell scripts.
9860
# Whether or not to build shared libraries.
9861
build_libtool_libs=$enable_shared
9863
# Whether or not to build static libraries.
9864
build_old_libs=$enable_static
9866
# Whether or not to add -lc for building shared libraries.
9867
build_libtool_need_lc=$archive_cmds_need_lc
9869
# Whether or not to disallow shared libs when runtime libs are static
9870
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9872
# Whether or not to optimize for fast installation.
9873
fast_install=$enable_fast_install
9876
host_alias=$host_alias
9881
build_alias=$build_alias
9885
# An echo program that does not interpret backslashes.
9890
AR_FLAGS=$lt_AR_FLAGS
9895
# LTCC compiler flags.
9896
LTCFLAGS=$lt_LTCFLAGS
9898
# A language-specific compiler.
9901
# Is the compiler the GNU C compiler?
9907
# The linker used to build libraries.
9910
# Whether we need hard or soft links.
9913
# A BSD-compatible nm program.
9916
# A symbol stripping program
9919
# Used to examine libraries when file_magic_cmd begins "file"
9920
MAGIC_CMD=$MAGIC_CMD
9922
# Used on cygwin: DLL creation program.
9925
# Used on cygwin: object dumper.
9928
# Used on cygwin: assembler.
9931
# The name of the directory that contains temporary libtool files.
9934
# How to create reloadable object files.
9935
reload_flag=$lt_reload_flag
9936
reload_cmds=$lt_reload_cmds
9938
# How to pass a linker flag through the compiler.
9939
wl=$lt_lt_prog_compiler_wl
9941
# Object file suffix (normally "o").
9944
# Old archive suffix (normally "a").
9947
# Shared library suffix (normally ".so").
9948
shrext_cmds='$shrext_cmds'
9950
# Executable file suffix (normally "").
9953
# Additional compiler flags for building library objects.
9954
pic_flag=$lt_lt_prog_compiler_pic
9957
# What is the maximum length of a command?
9958
max_cmd_len=$lt_cv_sys_max_cmd_len
9960
# Does compiler simultaneously support -c and -o options?
9961
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9963
# Must we lock files when doing compilation?
9964
need_locks=$lt_need_locks
9966
# Do we need the lib prefix for modules?
9967
need_lib_prefix=$need_lib_prefix
9969
# Do we need a version for libraries?
9970
need_version=$need_version
9972
# Whether dlopen is supported.
9973
dlopen_support=$enable_dlopen
9975
# Whether dlopen of programs is supported.
9976
dlopen_self=$enable_dlopen_self
9978
# Whether dlopen of statically linked programs is supported.
9979
dlopen_self_static=$enable_dlopen_self_static
9981
# Compiler flag to prevent dynamic linking.
9982
link_static_flag=$lt_lt_prog_compiler_static
9984
# Compiler flag to turn off builtin functions.
9985
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9987
# Compiler flag to allow reflexive dlopens.
9988
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9990
# Compiler flag to generate shared objects directly from archives.
9991
whole_archive_flag_spec=$lt_whole_archive_flag_spec
9993
# Compiler flag to generate thread-safe objects.
9994
thread_safe_flag_spec=$lt_thread_safe_flag_spec
9996
# Library versioning type.
9997
version_type=$version_type
9999
# Format of library name prefix.
10000
libname_spec=$lt_libname_spec
10002
# List of archive names. First name is the real one, the rest are links.
10003
# The last name is the one that the linker finds with -lNAME.
10004
library_names_spec=$lt_library_names_spec
10006
# The coded name of the library, if different from the real name.
10007
soname_spec=$lt_soname_spec
10009
# Commands used to build and install an old-style archive.
10011
old_archive_cmds=$lt_old_archive_cmds
10012
old_postinstall_cmds=$lt_old_postinstall_cmds
10013
old_postuninstall_cmds=$lt_old_postuninstall_cmds
10015
# Create an old-style archive from a shared archive.
10016
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10018
# Create a temporary old-style archive to link instead of a shared archive.
10019
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10021
# Commands used to build and install a shared archive.
10022
archive_cmds=$lt_archive_cmds
10023
archive_expsym_cmds=$lt_archive_expsym_cmds
10024
postinstall_cmds=$lt_postinstall_cmds
10025
postuninstall_cmds=$lt_postuninstall_cmds
10027
# Commands used to build a loadable module (assumed same as above if empty)
10028
module_cmds=$lt_module_cmds
10029
module_expsym_cmds=$lt_module_expsym_cmds
10031
# Commands to strip libraries.
10032
old_striplib=$lt_old_striplib
10033
striplib=$lt_striplib
10035
# Dependencies to place before the objects being linked to create a
10037
predep_objects=$lt_predep_objects
10039
# Dependencies to place after the objects being linked to create a
10041
postdep_objects=$lt_postdep_objects
10043
# Dependencies to place before the objects being linked to create a
10045
predeps=$lt_predeps
10047
# Dependencies to place after the objects being linked to create a
10049
postdeps=$lt_postdeps
10051
# The library search path used internally by the compiler when linking
10052
# a shared library.
10053
compiler_lib_search_path=$lt_compiler_lib_search_path
10055
# Method to check whether dependent libraries are shared objects.
10056
deplibs_check_method=$lt_deplibs_check_method
10058
# Command to use when deplibs_check_method == file_magic.
10059
file_magic_cmd=$lt_file_magic_cmd
10061
# Flag that allows shared libraries with undefined symbols to be built.
10062
allow_undefined_flag=$lt_allow_undefined_flag
10064
# Flag that forces no undefined symbols.
10065
no_undefined_flag=$lt_no_undefined_flag
10067
# Commands used to finish a libtool library installation in a directory.
10068
finish_cmds=$lt_finish_cmds
10070
# Same as above, but a single script fragment to be evaled but not shown.
10071
finish_eval=$lt_finish_eval
10073
# Take the output of nm and produce a listing of raw symbols and C names.
10074
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10076
# Transform the output of nm in a proper C declaration
10077
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10079
# Transform the output of nm in a C name address pair
10080
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10082
# This is the shared library runtime path variable.
10083
runpath_var=$runpath_var
10085
# This is the shared library path variable.
10086
shlibpath_var=$shlibpath_var
10088
# Is shlibpath searched before the hard-coded library search path?
10089
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10091
# How to hardcode a shared library path into an executable.
10092
hardcode_action=$hardcode_action
10094
# Whether we should hardcode library paths into libraries.
10095
hardcode_into_libs=$hardcode_into_libs
10097
# Flag to hardcode \$libdir into a binary during linking.
10098
# This must work even if \$libdir does not exist.
10099
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10101
# If ld is used when linking, flag to hardcode \$libdir into
10102
# a binary during linking. This must work even if \$libdir does
10104
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10106
# Whether we need a single -rpath flag with a separated argument.
10107
hardcode_libdir_separator=$lt_hardcode_libdir_separator
10109
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10110
# resulting binary.
10111
hardcode_direct=$hardcode_direct
10113
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10114
# resulting binary.
10115
hardcode_minus_L=$hardcode_minus_L
10117
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10118
# the resulting binary.
10119
hardcode_shlibpath_var=$hardcode_shlibpath_var
10121
# Set to yes if building a shared library automatically hardcodes DIR into the library
10122
# and all subsequent libraries and executables linked against it.
10123
hardcode_automatic=$hardcode_automatic
10125
# Variables whose values should be saved in libtool wrapper scripts and
10126
# restored at relink time.
10127
variables_saved_for_relink="$variables_saved_for_relink"
10129
# Whether libtool must link a program against all its dependency libraries.
10130
link_all_deplibs=$link_all_deplibs
10132
# Compile-time system search path for libraries
10133
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10135
# Run-time system search path for libraries
10136
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10138
# Fix the shell variable \$srcfile for the compiler.
10139
fix_srcfile_path="$fix_srcfile_path"
10141
# Set to yes if exported symbols are required.
10142
always_export_symbols=$always_export_symbols
10144
# The commands to list exported symbols.
10145
export_symbols_cmds=$lt_export_symbols_cmds
10147
# The commands to extract the exported symbol list from a shared archive.
10148
extract_expsyms_cmds=$lt_extract_expsyms_cmds
10150
# Symbols that should not be listed in the preloaded symbols.
10151
exclude_expsyms=$lt_exclude_expsyms
10153
# Symbols that must always be exported.
10154
include_expsyms=$lt_include_expsyms
10156
# ### END LIBTOOL CONFIG
10163
cat <<\EOF >> "$cfgfile"
10165
# AIX sometimes has problems with the GCC collect2 program. For some
10166
# reason, if we set the COLLECT_NAMES environment variable, the problems
10167
# vanish in a puff of smoke.
10168
if test "X${COLLECT_NAMES+set}" != Xset; then
10170
export COLLECT_NAMES
10176
# We use sed instead of cat because bash on DJGPP gets confused if
10177
# if finds mixed CR/LF and LF-only lines. Since sed operates in
10178
# text mode, it properly converts lines to CR/LF. This bash problem
10179
# is reportedly fixed, but why not run on old versions too?
10180
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10182
mv -f "$cfgfile" "$ofile" || \
10183
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10187
# If there is no Makefile yet, we rely on a make rule to execute
10188
# `config.status --recheck' to rerun these tests and create the
10189
# libtool script then.
10190
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10191
if test -f "$ltmain_in"; then
10192
test -f Makefile && make "$ltmain"
10198
ac_cpp='$CPP $CPPFLAGS'
10199
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10200
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10201
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10206
# Check whether --with-tags was given.
10207
if test "${with_tags+set}" = set; then
10208
withval=$with_tags; tagnames="$withval"
10212
if test -f "$ltmain" && test -n "$tagnames"; then
10213
if test ! -f "${ofile}"; then
10214
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10215
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10218
if test -z "$LTCC"; then
10219
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10220
if test -z "$LTCC"; then
10221
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10222
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10224
{ echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10225
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10228
if test -z "$LTCFLAGS"; then
10229
eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10232
# Extract list of available tagged configurations in $ofile.
10233
# Note that this assumes the entire list is on one line.
10234
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10236
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10237
for tagname in $tagnames; do
10239
# Check whether tagname contains only valid characters
10240
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10242
*) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10243
echo "$as_me: error: invalid tag name: $tagname" >&2;}
10244
{ (exit 1); exit 1; }; }
10248
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10250
{ { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10251
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10252
{ (exit 1); exit 1; }; }
10255
# Update the list of available tags.
10256
if test -n "$tagname"; then
10257
echo appending configuration tag \"$tagname\" to $ofile
10261
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10262
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10263
(test "X$CXX" != "Xg++"))) ; then
10265
ac_cpp='$CXXCPP $CPPFLAGS'
10266
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10267
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10268
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10273
archive_cmds_need_lc_CXX=no
10274
allow_undefined_flag_CXX=
10275
always_export_symbols_CXX=no
10276
archive_expsym_cmds_CXX=
10277
export_dynamic_flag_spec_CXX=
10278
hardcode_direct_CXX=no
10279
hardcode_libdir_flag_spec_CXX=
10280
hardcode_libdir_flag_spec_ld_CXX=
10281
hardcode_libdir_separator_CXX=
10282
hardcode_minus_L_CXX=no
10283
hardcode_shlibpath_var_CXX=unsupported
10284
hardcode_automatic_CXX=no
10286
module_expsym_cmds_CXX=
10287
link_all_deplibs_CXX=unknown
10288
old_archive_cmds_CXX=$old_archive_cmds
10289
no_undefined_flag_CXX=
10290
whole_archive_flag_spec_CXX=
10291
enable_shared_with_static_runtimes_CXX=no
10293
# Dependencies to place before and after the object being linked:
10294
predep_objects_CXX=
10295
postdep_objects_CXX=
10298
compiler_lib_search_path_CXX=
10300
# Source file extension for C++ test sources.
10303
# Object file extension for compiled C++ test sources.
10307
# Code to be used in simple compile tests
10308
lt_simple_compile_test_code="int some_variable = 0;\n"
10310
# Code to be used in simple link tests
10311
lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10313
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10315
# If no C compiler was specified, use CC.
10318
# If no C compiler flags were specified, use CFLAGS.
10319
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10321
# Allow CC to be a program name with arguments.
10325
# save warnings/boilerplate of simple test code
10326
ac_outfile=conftest.$ac_objext
10327
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10328
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10329
_lt_compiler_boilerplate=`cat conftest.err`
10332
ac_outfile=conftest.$ac_objext
10333
printf "$lt_simple_link_test_code" >conftest.$ac_ext
10334
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10335
_lt_linker_boilerplate=`cat conftest.err`
10339
# Allow CC to be a program name with arguments.
10344
lt_save_with_gnu_ld=$with_gnu_ld
10345
lt_save_path_LD=$lt_cv_path_LD
10346
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10347
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10349
$as_unset lt_cv_prog_gnu_ld
10351
if test -n "${lt_cv_path_LDCXX+set}"; then
10352
lt_cv_path_LD=$lt_cv_path_LDCXX
10354
$as_unset lt_cv_path_LD
10356
test -z "${LDCXX+set}" || LD=$LDCXX
10360
for cc_temp in $compiler""; do
10362
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10363
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10368
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10371
# We don't want -fno-exception wen compiling C++ code, so set the
10372
# no_builtin_flag separately
10373
if test "$GXX" = yes; then
10374
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10376
lt_prog_compiler_no_builtin_flag_CXX=
10379
if test "$GXX" = yes; then
10380
# Set up default GNU C++ configuration
10383
# Check whether --with-gnu-ld was given.
10384
if test "${with_gnu_ld+set}" = set; then
10385
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10391
if test "$GCC" = yes; then
10392
# Check if gcc -print-prog-name=ld gives a path.
10393
{ echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10394
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10397
# gcc leaves a trailing carriage return which upsets mingw
10398
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10400
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10403
# Accept absolute paths.
10405
re_direlt='/[^/][^/]*/\.\./'
10406
# Canonicalize the pathname of ld
10407
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10408
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10409
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10411
test -z "$LD" && LD="$ac_prog"
10414
# If it fails, then pretend we aren't using GCC.
10418
# If it is relative, then search for the first ld in PATH.
10419
with_gnu_ld=unknown
10422
elif test "$with_gnu_ld" = yes; then
10423
{ echo "$as_me:$LINENO: checking for GNU ld" >&5
10424
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10426
{ echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10427
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10429
if test "${lt_cv_path_LD+set}" = set; then
10430
echo $ECHO_N "(cached) $ECHO_C" >&6
10432
if test -z "$LD"; then
10433
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10434
for ac_dir in $PATH; do
10436
test -z "$ac_dir" && ac_dir=.
10437
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10438
lt_cv_path_LD="$ac_dir/$ac_prog"
10439
# Check to see if the program is GNU ld. I'd rather use --version,
10440
# but apparently some variants of GNU ld only accept -v.
10441
# Break only if it was the GNU/non-GNU ld that we prefer.
10442
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10443
*GNU* | *'with BFD'*)
10444
test "$with_gnu_ld" != no && break
10447
test "$with_gnu_ld" != yes && break
10454
lt_cv_path_LD="$LD" # Let the user override the test with a path.
10458
LD="$lt_cv_path_LD"
10459
if test -n "$LD"; then
10460
{ echo "$as_me:$LINENO: result: $LD" >&5
10461
echo "${ECHO_T}$LD" >&6; }
10463
{ echo "$as_me:$LINENO: result: no" >&5
10464
echo "${ECHO_T}no" >&6; }
10466
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10467
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10468
{ (exit 1); exit 1; }; }
10469
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10470
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10471
if test "${lt_cv_prog_gnu_ld+set}" = set; then
10472
echo $ECHO_N "(cached) $ECHO_C" >&6
10474
# I'd rather use --version here, but apparently some GNU lds only accept -v.
10475
case `$LD -v 2>&1 </dev/null` in
10476
*GNU* | *'with BFD'*)
10477
lt_cv_prog_gnu_ld=yes
10480
lt_cv_prog_gnu_ld=no
10484
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10485
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10486
with_gnu_ld=$lt_cv_prog_gnu_ld
10490
# Check if GNU C++ uses GNU ld as the underlying linker, since the
10491
# archiving commands below assume that GNU ld is being used.
10492
if test "$with_gnu_ld" = yes; then
10493
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10494
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'
10496
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10497
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10499
# If archive_cmds runs LD, not CC, wlarc should be empty
10500
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10501
# investigate it a little bit more. (MM)
10504
# ancient GNU ld didn't support --whole-archive et. al.
10505
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10506
grep 'no-whole-archive' > /dev/null; then
10507
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10509
whole_archive_flag_spec_CXX=
10515
# A generic and very simple default shared library creation
10516
# command for GNU C++ for the case where it uses the native
10517
# linker, instead of GNU ld. If possible, this setting should
10518
# overridden to take advantage of the native linker features on
10519
# the platform it is being used on.
10520
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10523
# Commands to make compiler produce verbose output that lists
10524
# what "hidden" libraries, object files and flags are used when
10525
# linking a shared library.
10526
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10534
# PORTME: fill in a description of your system's C++ link characteristics
10535
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10536
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10540
# FIXME: insert proper C++ library support
10544
if test "$host_cpu" = ia64; then
10545
# On IA64, the linker does run time linking by default, so we don't
10546
# have to do anything special.
10547
aix_use_runtimelinking=no
10548
exp_sym_flag='-Bexport'
10551
aix_use_runtimelinking=no
10553
# Test if we are trying to use run time linking or normal
10554
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10555
# need to do runtime linking.
10556
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10557
for ld_flag in $LDFLAGS; do
10560
aix_use_runtimelinking=yes
10568
exp_sym_flag='-bexport'
10569
no_entry_flag='-bnoentry'
10572
# When large executables or shared objects are built, AIX ld can
10573
# have problems creating the table of contents. If linking a library
10574
# or program results in "error TOC overflow" add -mminimal-toc to
10575
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10576
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10578
archive_cmds_CXX=''
10579
hardcode_direct_CXX=yes
10580
hardcode_libdir_separator_CXX=':'
10581
link_all_deplibs_CXX=yes
10583
if test "$GXX" = yes; then
10584
case $host_os in aix4.[012]|aix4.[012].*)
10585
# We only want to do this on AIX 4.2 and lower, the check
10586
# below for broken collect2 doesn't work under 4.3+
10587
collect2name=`${CC} -print-prog-name=collect2`
10588
if test -f "$collect2name" && \
10589
strings "$collect2name" | grep resolve_lib_name >/dev/null
10591
# We have reworked collect2
10592
hardcode_direct_CXX=yes
10594
# We have old collect2
10595
hardcode_direct_CXX=unsupported
10596
# It fails to find uninstalled libraries when the uninstalled
10597
# path is not listed in the libpath. Setting hardcode_minus_L
10598
# to unsupported forces relinking
10599
hardcode_minus_L_CXX=yes
10600
hardcode_libdir_flag_spec_CXX='-L$libdir'
10601
hardcode_libdir_separator_CXX=
10605
shared_flag='-shared'
10606
if test "$aix_use_runtimelinking" = yes; then
10607
shared_flag="$shared_flag "'${wl}-G'
10611
if test "$host_cpu" = ia64; then
10612
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10613
# chokes on -Wl,-G. The following line is correct:
10616
if test "$aix_use_runtimelinking" = yes; then
10617
shared_flag='${wl}-G'
10619
shared_flag='${wl}-bM:SRE'
10624
# It seems that -bexpall does not export symbols beginning with
10625
# underscore (_), so it is better to generate a list of symbols to export.
10626
always_export_symbols_CXX=yes
10627
if test "$aix_use_runtimelinking" = yes; then
10628
# Warning - without using the other runtime loading flags (-brtl),
10629
# -berok will link without error, but may produce a broken library.
10630
allow_undefined_flag_CXX='-berok'
10631
# Determine the default libpath from the value encoded in an empty executable.
10632
cat >conftest.$ac_ext <<_ACEOF
10635
cat confdefs.h >>conftest.$ac_ext
10636
cat >>conftest.$ac_ext <<_ACEOF
10637
/* end confdefs.h. */
10647
rm -f conftest.$ac_objext conftest$ac_exeext
10648
if { (ac_try="$ac_link"
10649
case "(($ac_try" in
10650
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10651
*) ac_try_echo=$ac_try;;
10653
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10654
(eval "$ac_link") 2>conftest.er1
10656
grep -v '^ *+' conftest.er1 >conftest.err
10658
cat conftest.err >&5
10659
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10660
(exit $ac_status); } && {
10661
test -z "$ac_cxx_werror_flag" ||
10662
test ! -s conftest.err
10663
} && test -s conftest$ac_exeext &&
10664
$as_test_x conftest$ac_exeext; then
10666
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10668
# Check for a 64-bit object if we didn't find anything.
10669
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; }
10672
echo "$as_me: failed program was:" >&5
10673
sed 's/^/| /' conftest.$ac_ext >&5
10678
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10679
conftest$ac_exeext conftest.$ac_ext
10680
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10682
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10684
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"
10686
if test "$host_cpu" = ia64; then
10687
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10688
allow_undefined_flag_CXX="-z nodefs"
10689
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"
10691
# Determine the default libpath from the value encoded in an empty executable.
10692
cat >conftest.$ac_ext <<_ACEOF
10695
cat confdefs.h >>conftest.$ac_ext
10696
cat >>conftest.$ac_ext <<_ACEOF
10697
/* end confdefs.h. */
10707
rm -f conftest.$ac_objext conftest$ac_exeext
10708
if { (ac_try="$ac_link"
10709
case "(($ac_try" in
10710
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10711
*) ac_try_echo=$ac_try;;
10713
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10714
(eval "$ac_link") 2>conftest.er1
10716
grep -v '^ *+' conftest.er1 >conftest.err
10718
cat conftest.err >&5
10719
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10720
(exit $ac_status); } && {
10721
test -z "$ac_cxx_werror_flag" ||
10722
test ! -s conftest.err
10723
} && test -s conftest$ac_exeext &&
10724
$as_test_x conftest$ac_exeext; then
10726
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10728
# Check for a 64-bit object if we didn't find anything.
10729
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; }
10732
echo "$as_me: failed program was:" >&5
10733
sed 's/^/| /' conftest.$ac_ext >&5
10738
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10739
conftest$ac_exeext conftest.$ac_ext
10740
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10742
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10743
# Warning - without using the other run time loading flags,
10744
# -berok will link without error, but may produce a broken library.
10745
no_undefined_flag_CXX=' ${wl}-bernotok'
10746
allow_undefined_flag_CXX=' ${wl}-berok'
10747
# Exported symbols can be pulled into shared objects from archives
10748
whole_archive_flag_spec_CXX='$convenience'
10749
archive_cmds_need_lc_CXX=yes
10750
# This is similar to how AIX traditionally builds its shared libraries.
10751
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'
10757
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10758
allow_undefined_flag_CXX=unsupported
10759
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10760
# support --undefined. This deserves some investigation. FIXME
10761
archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10768
case $cc_basename in
10770
# FIXME: insert proper C++ library support
10776
cygwin* | mingw* | pw32*)
10777
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10778
# as there is no search path for DLLs.
10779
hardcode_libdir_flag_spec_CXX='-L$libdir'
10780
allow_undefined_flag_CXX=unsupported
10781
always_export_symbols_CXX=no
10782
enable_shared_with_static_runtimes_CXX=yes
10784
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10785
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'
10786
# If the export-symbols file already is a .def file (1st line
10787
# is EXPORTS), use it as is; otherwise, prepend...
10788
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10789
cp $export_symbols $output_objdir/$soname.def;
10791
echo EXPORTS > $output_objdir/$soname.def;
10792
cat $export_symbols >> $output_objdir/$soname.def;
10794
$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'
10799
darwin* | rhapsody*)
10801
rhapsody* | darwin1.[012])
10802
allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10805
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10806
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10808
case ${MACOSX_DEPLOYMENT_TARGET} in
10810
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10813
allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10819
archive_cmds_need_lc_CXX=no
10820
hardcode_direct_CXX=no
10821
hardcode_automatic_CXX=yes
10822
hardcode_shlibpath_var_CXX=unsupported
10823
whole_archive_flag_spec_CXX=''
10824
link_all_deplibs_CXX=yes
10826
if test "$GXX" = yes ; then
10827
lt_int_apple_cc_single_mod=no
10828
output_verbose_link_cmd='echo'
10829
if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10830
lt_int_apple_cc_single_mod=yes
10832
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10833
archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10835
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'
10837
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10838
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10839
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10840
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}'
10842
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}'
10844
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}'
10846
case $cc_basename in
10848
output_verbose_link_cmd='echo'
10849
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'
10850
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10851
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10852
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}'
10853
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}'
10863
case $cc_basename in
10865
# FIXME: insert proper C++ library support
10869
# Green Hills C++ Compiler
10870
# FIXME: insert proper C++ library support
10874
# FIXME: insert proper C++ library support
10880
# C++ shared libraries reported to be fairly broken before switch to ELF
10884
archive_cmds_need_lc_CXX=no
10886
freebsd* | kfreebsd*-gnu | dragonfly*)
10887
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10894
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10895
hardcode_libdir_separator_CXX=:
10896
export_dynamic_flag_spec_CXX='${wl}-E'
10897
hardcode_direct_CXX=yes
10898
hardcode_minus_L_CXX=yes # Not in the search PATH,
10899
# but as the default
10900
# location of the library.
10902
case $cc_basename in
10904
# FIXME: insert proper C++ library support
10908
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'
10909
# Commands to make compiler produce verbose output that lists
10910
# what "hidden" libraries, object files and flags are used when
10911
# linking a shared library.
10913
# There doesn't appear to be a way to prevent this compiler from
10914
# explicitly linking system object files so we need to strip them
10915
# from the output so that they don't get included in the library
10917
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'
10920
if test "$GXX" = yes; then
10921
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'
10923
# FIXME: insert proper C++ library support
10930
if test $with_gnu_ld = no; then
10931
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10932
hardcode_libdir_separator_CXX=:
10936
hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10939
export_dynamic_flag_spec_CXX='${wl}-E'
10945
hardcode_direct_CXX=no
10946
hardcode_shlibpath_var_CXX=no
10949
hardcode_direct_CXX=yes
10950
hardcode_minus_L_CXX=yes # Not in the search PATH,
10951
# but as the default
10952
# location of the library.
10956
case $cc_basename in
10958
# FIXME: insert proper C++ library support
10964
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10967
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10970
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10973
# Commands to make compiler produce verbose output that lists
10974
# what "hidden" libraries, object files and flags are used when
10975
# linking a shared library.
10977
# There doesn't appear to be a way to prevent this compiler from
10978
# explicitly linking system object files so we need to strip them
10979
# from the output so that they don't get included in the library
10981
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'
10984
if test "$GXX" = yes; then
10985
if test $with_gnu_ld = no; then
10988
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10991
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10994
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'
10999
# FIXME: insert proper C++ library support
11006
hardcode_direct_CXX=no
11007
hardcode_shlibpath_var_CXX=no
11008
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11009
export_dynamic_flag_spec_CXX='${wl}-E'
11010
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11011
# Instead, shared libraries are loaded at an image base (0x10000000 by
11012
# default) and relocated if they conflict, which is a slow very memory
11013
# consuming and fragmenting process. To avoid this, we pick a random,
11014
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11015
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
11016
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'
11017
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'
11020
case $cc_basename in
11023
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'
11025
# Archives containing C++ object files must be created using
11026
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
11027
# necessary to make sure instantiated templates are included
11029
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11032
if test "$GXX" = yes; then
11033
if test "$with_gnu_ld" = no; then
11034
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'
11036
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'
11039
link_all_deplibs_CXX=yes
11042
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11043
hardcode_libdir_separator_CXX=:
11046
case $cc_basename in
11048
# Kuck and Associates, Inc. (KAI) C++ Compiler
11050
# KCC will only create a shared library if the output file
11051
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11052
# to its proper name (with version) after linking.
11053
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'
11054
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'
11055
# Commands to make compiler produce verbose output that lists
11056
# what "hidden" libraries, object files and flags are used when
11057
# linking a shared library.
11059
# There doesn't appear to be a way to prevent this compiler from
11060
# explicitly linking system object files so we need to strip them
11061
# from the output so that they don't get included in the library
11063
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'
11065
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11066
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11068
# Archives containing C++ object files must be created using
11069
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11070
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11075
# version 8.0 and above of icpc choke on multiply defined symbols
11076
# if we add $predep_objects and $postdep_objects, however 7.1 and
11077
# earlier do not add the objects themselves.
11078
case `$CC -V 2>&1` in
11080
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11081
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'
11083
*) # Version 8.0 or newer
11086
ia64*) tmp_idyn=' -i_dynamic';;
11088
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11089
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'
11092
archive_cmds_need_lc_CXX=no
11093
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11094
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11095
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11098
# Portland Group C++ compiler
11099
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11100
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'
11102
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11103
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11104
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'
11108
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11109
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'
11111
runpath_var=LD_RUN_PATH
11112
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11113
hardcode_libdir_separator_CXX=:
11115
# Commands to make compiler produce verbose output that lists
11116
# what "hidden" libraries, object files and flags are used when
11117
# linking a shared library.
11119
# There doesn't appear to be a way to prevent this compiler from
11120
# explicitly linking system object files so we need to strip them
11121
# from the output so that they don't get included in the library
11123
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'
11128
# FIXME: insert proper C++ library support
11132
# FIXME: insert proper C++ library support
11136
case $cc_basename in
11138
# FIXME: insert proper C++ library support
11142
# FIXME: insert proper C++ library support
11148
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11149
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11151
hardcode_libdir_flag_spec_CXX='-R$libdir'
11152
hardcode_direct_CXX=yes
11153
hardcode_shlibpath_var_CXX=no
11155
# Workaround some broken pre-1.5 toolchains
11156
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11159
# C++ shared libraries are fairly broken
11163
hardcode_direct_CXX=yes
11164
hardcode_shlibpath_var_CXX=no
11165
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11166
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11167
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11168
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11169
export_dynamic_flag_spec_CXX='${wl}-E'
11170
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11172
output_verbose_link_cmd='echo'
11175
case $cc_basename in
11177
# Kuck and Associates, Inc. (KAI) C++ Compiler
11179
# KCC will only create a shared library if the output file
11180
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11181
# to its proper name (with version) after linking.
11182
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'
11184
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11185
hardcode_libdir_separator_CXX=:
11187
# Archives containing C++ object files must be created using
11188
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11189
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11193
# Rational C++ 2.4.1
11194
# FIXME: insert proper C++ library support
11198
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11199
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'
11201
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11202
hardcode_libdir_separator_CXX=:
11204
# Commands to make compiler produce verbose output that lists
11205
# what "hidden" libraries, object files and flags are used when
11206
# linking a shared library.
11208
# There doesn't appear to be a way to prevent this compiler from
11209
# explicitly linking system object files so we need to strip them
11210
# from the output so that they don't get included in the library
11212
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'
11215
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11216
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11217
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'
11219
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11220
hardcode_libdir_separator_CXX=:
11222
# Commands to make compiler produce verbose output that lists
11223
# what "hidden" libraries, object files and flags are used when
11224
# linking a shared library.
11225
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11228
# FIXME: insert proper C++ library support
11235
case $cc_basename in
11237
# Kuck and Associates, Inc. (KAI) C++ Compiler
11239
# KCC will only create a shared library if the output file
11240
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11241
# to its proper name (with version) after linking.
11242
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'
11244
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11245
hardcode_libdir_separator_CXX=:
11247
# Archives containing C++ object files must be created using
11248
# the KAI C++ compiler.
11249
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11252
# Rational C++ 2.4.1
11253
# FIXME: insert proper C++ library support
11257
allow_undefined_flag_CXX=' -expect_unresolved \*'
11258
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'
11259
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11260
echo "-hidden">> $lib.exp~
11261
$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~
11264
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11265
hardcode_libdir_separator_CXX=:
11267
# Commands to make compiler produce verbose output that lists
11268
# what "hidden" libraries, object files and flags are used when
11269
# linking a shared library.
11271
# There doesn't appear to be a way to prevent this compiler from
11272
# explicitly linking system object files so we need to strip them
11273
# from the output so that they don't get included in the library
11275
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'
11278
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11279
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11280
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'
11282
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11283
hardcode_libdir_separator_CXX=:
11285
# Commands to make compiler produce verbose output that lists
11286
# what "hidden" libraries, object files and flags are used when
11287
# linking a shared library.
11288
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11291
# FIXME: insert proper C++ library support
11298
# FIXME: insert proper C++ library support
11302
case $cc_basename in
11305
# FIXME: insert proper C++ library support
11310
# FIXME: insert proper C++ library support
11314
# FIXME: insert proper C++ library support
11320
case $cc_basename in
11322
# Sun C++ 4.2, 5.x and Centerline C++
11323
archive_cmds_need_lc_CXX=yes
11324
no_undefined_flag_CXX=' -zdefs'
11325
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11326
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11327
$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'
11329
hardcode_libdir_flag_spec_CXX='-R$libdir'
11330
hardcode_shlibpath_var_CXX=no
11332
solaris2.[0-5] | solaris2.[0-5].*) ;;
11334
# The C++ compiler is used as linker so we must use $wl
11335
# flag to pass the commands to the underlying system
11336
# linker. We must also pass each convience library through
11337
# to the system linker between allextract/defaultextract.
11338
# The C++ compiler will combine linker options so we
11339
# cannot just pass the convience library names through
11341
# Supported since Solaris 2.6 (maybe 2.5.1?)
11342
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'
11345
link_all_deplibs_CXX=yes
11347
output_verbose_link_cmd='echo'
11349
# Archives containing C++ object files must be created using
11350
# "CC -xar", where "CC" is the Sun C++ compiler. This is
11351
# necessary to make sure instantiated templates are included
11353
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11356
# Green Hills C++ Compiler
11357
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11359
# The C++ compiler must be used to create the archive.
11360
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11363
# GNU C++ compiler with Solaris linker
11364
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11365
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11366
if $CC --version | grep -v '^2\.7' > /dev/null; then
11367
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11368
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11369
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11371
# Commands to make compiler produce verbose output that lists
11372
# what "hidden" libraries, object files and flags are used when
11373
# linking a shared library.
11374
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11376
# g++ 2.7 appears to require `-G' NOT `-shared' on this
11378
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11379
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11380
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11382
# Commands to make compiler produce verbose output that lists
11383
# what "hidden" libraries, object files and flags are used when
11384
# linking a shared library.
11385
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11388
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11393
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11394
no_undefined_flag_CXX='${wl}-z,text'
11395
archive_cmds_need_lc_CXX=no
11396
hardcode_shlibpath_var_CXX=no
11397
runpath_var='LD_RUN_PATH'
11399
case $cc_basename in
11401
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11402
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11405
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11406
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11410
sysv5* | sco3.2v5* | sco5v6*)
11411
# Note: We can NOT use -z defs as we might desire, because we do not
11412
# link with -lc, and that would cause any symbols used from libc to
11413
# always be unresolved, which means just about no library would
11414
# ever link correctly. If we're not using GNU ld we use -z text
11415
# though, which does catch some bad symbols but isn't as heavy-handed
11417
# For security reasons, it is highly recommended that you always
11418
# use absolute paths for naming shared libraries, and exclude the
11419
# DT_RUNPATH tag from executables and libraries. But doing so
11420
# requires that you compile everything twice, which is a pain.
11421
# So that behaviour is only enabled if SCOABSPATH is set to a
11422
# non-empty value in the environment. Most likely only useful for
11423
# creating official distributions of packages.
11424
# This is a hack until libtool officially supports absolute path
11425
# names for shared libraries.
11426
no_undefined_flag_CXX='${wl}-z,text'
11427
allow_undefined_flag_CXX='${wl}-z,nodefs'
11428
archive_cmds_need_lc_CXX=no
11429
hardcode_shlibpath_var_CXX=no
11430
hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11431
hardcode_libdir_separator_CXX=':'
11432
link_all_deplibs_CXX=yes
11433
export_dynamic_flag_spec_CXX='${wl}-Bexport'
11434
runpath_var='LD_RUN_PATH'
11436
case $cc_basename in
11438
archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11439
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11442
archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11443
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11448
case $cc_basename in
11450
# NonStop-UX NCC 3.20
11451
# FIXME: insert proper C++ library support
11455
# FIXME: insert proper C++ library support
11461
# FIXME: insert proper C++ library support
11465
# FIXME: insert proper C++ library support
11469
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11470
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11471
test "$ld_shlibs_CXX" = no && can_build_shared=no
11477
cat > conftest.$ac_ext <<EOF
11481
Foo (void) { a = 0; }
11487
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11488
(eval $ac_compile) 2>&5
11490
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11491
(exit $ac_status); }; then
11492
# Parse the compiler output and extract the necessary
11493
# objects, libraries and library flags.
11495
# Sentinel used to keep track of whether or not we are before
11496
# the conftest object file.
11497
pre_test_object_deps_done=no
11499
# The `*' in the case matches for architectures that use `case' in
11500
# $output_verbose_cmd can trigger glob expansion during the loop
11501
# eval without this substitution.
11502
output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11504
for p in `eval $output_verbose_link_cmd`; do
11508
# Some compilers place space between "-{L,R}" and the path.
11509
# Remove the space.
11510
if test $p = "-L" \
11511
|| test $p = "-R"; then
11518
if test "$pre_test_object_deps_done" = no; then
11521
# Internal compiler library paths should come after those
11522
# provided the user. The postdeps already come after the
11523
# user supplied libs so there is no need to process them.
11524
if test -z "$compiler_lib_search_path_CXX"; then
11525
compiler_lib_search_path_CXX="${prev}${p}"
11527
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11530
# The "-l" case would never come before the object being
11531
# linked, so don't bother handling this case.
11534
if test -z "$postdeps_CXX"; then
11535
postdeps_CXX="${prev}${p}"
11537
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11543
# This assumes that the test object file only shows up
11544
# once in the compiler output.
11545
if test "$p" = "conftest.$objext"; then
11546
pre_test_object_deps_done=yes
11550
if test "$pre_test_object_deps_done" = no; then
11551
if test -z "$predep_objects_CXX"; then
11552
predep_objects_CXX="$p"
11554
predep_objects_CXX="$predep_objects_CXX $p"
11557
if test -z "$postdep_objects_CXX"; then
11558
postdep_objects_CXX="$p"
11560
postdep_objects_CXX="$postdep_objects_CXX $p"
11565
*) ;; # Ignore the rest.
11573
echo "libtool.m4: error: problem compiling CXX test program"
11576
$rm -f confest.$objext
11578
# PORTME: override above test on systems where it is broken
11581
# Interix 3.5 installs completely hosed .la files for C++, so rather than
11582
# hack all around it, let's just trust "g++" to DTRT.
11583
predep_objects_CXX=
11584
postdep_objects_CXX=
11589
case $cc_basename in
11591
# Adding this requires a known-good setup of shared libraries for
11592
# Sun compiler versions before 5.6, else PIC objects from an old
11593
# archive will be linked into the output, leading to subtle bugs.
11594
postdeps_CXX='-lCstd -lCrun'
11601
case " $postdeps_CXX " in
11602
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11605
lt_prog_compiler_wl_CXX=
11606
lt_prog_compiler_pic_CXX=
11607
lt_prog_compiler_static_CXX=
11609
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11610
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11612
# C++ specific cases for pic, static, wl, etc.
11613
if test "$GXX" = yes; then
11614
lt_prog_compiler_wl_CXX='-Wl,'
11615
lt_prog_compiler_static_CXX='-static'
11619
# All AIX code is PIC.
11620
if test "$host_cpu" = ia64; then
11621
# AIX 5 now supports IA64 processor
11622
lt_prog_compiler_static_CXX='-Bstatic'
11626
# FIXME: we need at least 68020 code to build shared libraries, but
11627
# adding the `-m68020' flag to GCC prevents building anything better,
11629
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11631
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11632
# PIC is the default for these OSes.
11634
mingw* | os2* | pw32*)
11635
# This hack is so that the source file can tell whether it is being
11636
# built for inclusion in a dll (and should export symbols for example).
11637
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11639
darwin* | rhapsody*)
11640
# PIC is the default on this platform
11641
# Common symbols not allowed in MH_DYLIB files
11642
lt_prog_compiler_pic_CXX='-fno-common'
11645
# DJGPP does not support shared libraries at all
11646
lt_prog_compiler_pic_CXX=
11649
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
11650
# Instead, we relocate shared libraries at runtime.
11653
if test -d /usr/nec; then
11654
lt_prog_compiler_pic_CXX=-Kconform_pic
11658
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11659
# not for PA HP-UX.
11664
lt_prog_compiler_pic_CXX='-fPIC'
11669
lt_prog_compiler_pic_CXX='-fPIC'
11675
# All AIX code is PIC.
11676
if test "$host_cpu" = ia64; then
11677
# AIX 5 now supports IA64 processor
11678
lt_prog_compiler_static_CXX='-Bstatic'
11680
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11684
case $cc_basename in
11686
# Green Hills C++ Compiler
11687
# _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"
11692
# PIC is the default on this platform
11693
# Common symbols not allowed in MH_DYLIB files
11694
case $cc_basename in
11696
lt_prog_compiler_pic_CXX='-qnocommon'
11697
lt_prog_compiler_wl_CXX='-Wl,'
11702
case $cc_basename in
11704
lt_prog_compiler_pic_CXX='-KPIC'
11707
# Green Hills C++ Compiler
11708
lt_prog_compiler_pic_CXX='-pic'
11714
freebsd* | kfreebsd*-gnu | dragonfly*)
11715
# FreeBSD uses GNU C++
11717
hpux9* | hpux10* | hpux11*)
11718
case $cc_basename in
11720
lt_prog_compiler_wl_CXX='-Wl,'
11721
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11722
if test "$host_cpu" != ia64; then
11723
lt_prog_compiler_pic_CXX='+Z'
11727
lt_prog_compiler_wl_CXX='-Wl,'
11728
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11734
lt_prog_compiler_pic_CXX='+Z'
11743
# This is c89, which is MS Visual C++ (no shared libs)
11744
# Anyone wants to do a port?
11746
irix5* | irix6* | nonstopux*)
11747
case $cc_basename in
11749
lt_prog_compiler_wl_CXX='-Wl,'
11750
lt_prog_compiler_static_CXX='-non_shared'
11751
# CC pic flag -KPIC is the default.
11758
case $cc_basename in
11761
lt_prog_compiler_wl_CXX='--backend -Wl,'
11762
lt_prog_compiler_pic_CXX='-fPIC'
11766
lt_prog_compiler_wl_CXX='-Wl,'
11767
lt_prog_compiler_pic_CXX='-KPIC'
11768
lt_prog_compiler_static_CXX='-static'
11771
# Portland Group C++ compiler.
11772
lt_prog_compiler_wl_CXX='-Wl,'
11773
lt_prog_compiler_pic_CXX='-fpic'
11774
lt_prog_compiler_static_CXX='-Bstatic'
11778
# Make sure the PIC flag is empty. It appears that all Alpha
11779
# Linux and Compaq Tru64 Unix objects are PIC.
11780
lt_prog_compiler_pic_CXX=
11781
lt_prog_compiler_static_CXX='-non_shared'
11792
case $cc_basename in
11794
lt_prog_compiler_pic_CXX='-W c,exportall'
11802
osf3* | osf4* | osf5*)
11803
case $cc_basename in
11805
lt_prog_compiler_wl_CXX='--backend -Wl,'
11808
# Rational C++ 2.4.1
11809
lt_prog_compiler_pic_CXX='-pic'
11812
# Digital/Compaq C++
11813
lt_prog_compiler_wl_CXX='-Wl,'
11814
# Make sure the PIC flag is empty. It appears that all Alpha
11815
# Linux and Compaq Tru64 Unix objects are PIC.
11816
lt_prog_compiler_pic_CXX=
11817
lt_prog_compiler_static_CXX='-non_shared'
11826
case $cc_basename in
11828
# Sun C++ 4.2, 5.x and Centerline C++
11829
lt_prog_compiler_pic_CXX='-KPIC'
11830
lt_prog_compiler_static_CXX='-Bstatic'
11831
lt_prog_compiler_wl_CXX='-Qoption ld '
11834
# Green Hills C++ Compiler
11835
lt_prog_compiler_pic_CXX='-PIC'
11842
case $cc_basename in
11845
lt_prog_compiler_pic_CXX='-pic'
11846
lt_prog_compiler_static_CXX='-Bstatic'
11850
lt_prog_compiler_pic_CXX='-pic'
11857
case $cc_basename in
11859
# NonStop-UX NCC 3.20
11860
lt_prog_compiler_pic_CXX='-KPIC'
11866
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11867
case $cc_basename in
11869
lt_prog_compiler_wl_CXX='-Wl,'
11870
lt_prog_compiler_pic_CXX='-KPIC'
11871
lt_prog_compiler_static_CXX='-Bstatic'
11878
lt_prog_compiler_can_build_shared_CXX=no
11883
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11884
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
11887
# Check to make sure the PIC flag actually works.
11889
if test -n "$lt_prog_compiler_pic_CXX"; then
11891
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11892
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
11893
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11894
echo $ECHO_N "(cached) $ECHO_C" >&6
11896
lt_prog_compiler_pic_works_CXX=no
11897
ac_outfile=conftest.$ac_objext
11898
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11899
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11900
# Insert the option either (1) after the last *FLAGS variable, or
11901
# (2) before a word containing "conftest.", or (3) at the end.
11902
# Note that $ac_compile itself does not contain backslashes and begins
11903
# with a dollar sign (not a hyphen), so the echo should work correctly.
11904
# The option is referenced via a variable to avoid confusing sed.
11905
lt_compile=`echo "$ac_compile" | $SED \
11906
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11907
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11908
-e 's:$: $lt_compiler_flag:'`
11909
(eval echo "\"\$as_me:11909: $lt_compile\"" >&5)
11910
(eval "$lt_compile" 2>conftest.err)
11912
cat conftest.err >&5
11913
echo "$as_me:11913: \$? = $ac_status" >&5
11914
if (exit $ac_status) && test -s "$ac_outfile"; then
11915
# The compiler can only warn and ignore the option if not recognized
11916
# So say no if there are warnings other than the usual output.
11917
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11918
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11919
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11920
lt_prog_compiler_pic_works_CXX=yes
11926
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11927
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
11929
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11930
case $lt_prog_compiler_pic_CXX in
11932
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11935
lt_prog_compiler_pic_CXX=
11936
lt_prog_compiler_can_build_shared_CXX=no
11941
# For platforms which do not support PIC, -DPIC is meaningless:
11943
lt_prog_compiler_pic_CXX=
11946
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11951
# Check to make sure the static flag actually works.
11953
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11954
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11955
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
11956
if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11957
echo $ECHO_N "(cached) $ECHO_C" >&6
11959
lt_prog_compiler_static_works_CXX=no
11960
save_LDFLAGS="$LDFLAGS"
11961
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11962
printf "$lt_simple_link_test_code" > conftest.$ac_ext
11963
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11964
# The linker can only warn and ignore the option if not recognized
11965
# So say no if there are warnings
11966
if test -s conftest.err; then
11967
# Append any errors to the config.log.
11968
cat conftest.err 1>&5
11969
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11970
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11971
if diff conftest.exp conftest.er2 >/dev/null; then
11972
lt_prog_compiler_static_works_CXX=yes
11975
lt_prog_compiler_static_works_CXX=yes
11979
LDFLAGS="$save_LDFLAGS"
11982
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11983
echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
11985
if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11988
lt_prog_compiler_static_CXX=
11992
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11993
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
11994
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11995
echo $ECHO_N "(cached) $ECHO_C" >&6
11997
lt_cv_prog_compiler_c_o_CXX=no
11998
$rm -r conftest 2>/dev/null
12002
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12004
lt_compiler_flag="-o out/conftest2.$ac_objext"
12005
# Insert the option either (1) after the last *FLAGS variable, or
12006
# (2) before a word containing "conftest.", or (3) at the end.
12007
# Note that $ac_compile itself does not contain backslashes and begins
12008
# with a dollar sign (not a hyphen), so the echo should work correctly.
12009
lt_compile=`echo "$ac_compile" | $SED \
12010
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12011
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12012
-e 's:$: $lt_compiler_flag:'`
12013
(eval echo "\"\$as_me:12013: $lt_compile\"" >&5)
12014
(eval "$lt_compile" 2>out/conftest.err)
12016
cat out/conftest.err >&5
12017
echo "$as_me:12017: \$? = $ac_status" >&5
12018
if (exit $ac_status) && test -s out/conftest2.$ac_objext
12020
# The compiler can only warn and ignore the option if not recognized
12021
# So say no if there are warnings
12022
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12023
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12024
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12025
lt_cv_prog_compiler_c_o_CXX=yes
12030
# SGI C++ compiler will create directory out/ii_files/ for
12031
# template instantiation
12032
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12033
$rm out/* && rmdir out
12039
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12040
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12043
hard_links="nottested"
12044
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12045
# do not overwrite the value of need_locks provided by the user
12046
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12047
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12050
ln conftest.a conftest.b 2>/dev/null && hard_links=no
12052
ln conftest.a conftest.b 2>&5 || hard_links=no
12053
ln conftest.a conftest.b 2>/dev/null && hard_links=no
12054
{ echo "$as_me:$LINENO: result: $hard_links" >&5
12055
echo "${ECHO_T}$hard_links" >&6; }
12056
if test "$hard_links" = no; then
12057
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12058
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12065
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12066
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12068
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12071
# If we're using GNU nm, then we don't want the "-C" option.
12072
# -C means demangle to AIX nm, but means don't demangle with GNU nm
12073
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12074
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'
12076
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'
12080
export_symbols_cmds_CXX="$ltdll_cmds"
12083
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'
12086
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12090
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12091
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12092
test "$ld_shlibs_CXX" = no && can_build_shared=no
12095
# Do we need to explicitly link libc?
12097
case "x$archive_cmds_need_lc_CXX" in
12099
# Assume -lc should be added
12100
archive_cmds_need_lc_CXX=yes
12102
if test "$enable_shared" = yes && test "$GCC" = yes; then
12103
case $archive_cmds_CXX in
12105
# FIXME: we may have to deal with multi-command sequences.
12108
# Test whether the compiler implicitly links with -lc since on some
12109
# systems, -lgcc has to come before -lc. If gcc already passes -lc
12110
# to ld, don't add -lc before -lgcc.
12111
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12112
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12114
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12116
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12117
(eval $ac_compile) 2>&5
12119
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12120
(exit $ac_status); } 2>conftest.err; then
12123
libobjs=conftest.$ac_objext
12125
wl=$lt_prog_compiler_wl_CXX
12126
pic_flag=$lt_prog_compiler_pic_CXX
12132
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12133
allow_undefined_flag_CXX=
12134
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12135
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12137
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12138
(exit $ac_status); }
12140
archive_cmds_need_lc_CXX=no
12142
archive_cmds_need_lc_CXX=yes
12144
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12146
cat conftest.err 1>&5
12149
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12150
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12157
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12158
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12159
library_names_spec=
12160
libname_spec='lib$name'
12164
postuninstall_cmds=
12168
shlibpath_overrides_runpath=unknown
12170
dynamic_linker="$host_os ld.so"
12171
sys_lib_dlsearch_path_spec="/lib /usr/lib"
12172
if test "$GCC" = yes; then
12173
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12174
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12175
# if the path contains ";" then we assume it to be the separator
12176
# otherwise default to the standard path separator (i.e. ":") - it is
12177
# assumed that no part of a normal pathname contains ";" but that should
12178
# okay in the real world where ";" in dirpaths is itself problematic.
12179
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12181
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12184
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12186
need_lib_prefix=unknown
12187
hardcode_into_libs=no
12189
# when you set need_version to no, make sure it does not cause -set_version
12190
# flags to be left without arguments
12191
need_version=unknown
12196
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12197
shlibpath_var=LIBPATH
12199
# AIX 3 has no versioning support, so we append a major version to the name.
12200
soname_spec='${libname}${release}${shared_ext}$major'
12207
hardcode_into_libs=yes
12208
if test "$host_cpu" = ia64; then
12209
# AIX 5 supports IA64
12210
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12211
shlibpath_var=LD_LIBRARY_PATH
12213
# With GCC up to 2.95.x, collect2 would create an import file
12214
# for dependence libraries. The import file would start with
12215
# the line `#! .'. This would cause the generated library to
12216
# depend on `.', always an invalid library. This was fixed in
12217
# development snapshots of GCC prior to 3.0.
12219
aix4 | aix4.[01] | aix4.[01].*)
12220
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12222
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12225
can_build_shared=no
12229
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12230
# soname into executable. Probably we can add versioning support to
12231
# collect2, so additional links can be useful in future.
12232
if test "$aix_use_runtimelinking" = yes; then
12233
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
12234
# instead of lib<name>.a to let people know that these are not
12235
# typical AIX shared libraries.
12236
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12238
# We preserve .a as extension for shared libraries through AIX4.2
12239
# and later when we are not doing run time linking.
12240
library_names_spec='${libname}${release}.a $libname.a'
12241
soname_spec='${libname}${release}${shared_ext}$major'
12243
shlibpath_var=LIBPATH
12248
library_names_spec='$libname.ixlibrary $libname.a'
12249
# Create ${libname}_ixlibrary.a entries in /sys/libs.
12250
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'
12254
library_names_spec='${libname}${shared_ext}'
12255
dynamic_linker="$host_os ld.so"
12256
shlibpath_var=LIBRARY_PATH
12262
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12263
soname_spec='${libname}${release}${shared_ext}$major'
12264
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12265
shlibpath_var=LD_LIBRARY_PATH
12266
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12267
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12268
# the default ld.so.conf also contains /usr/contrib/lib and
12269
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12270
# libtool to hard-code these into programs
12273
cygwin* | mingw* | pw32*)
12274
version_type=windows
12279
case $GCC,$host_os in
12280
yes,cygwin* | yes,mingw* | yes,pw32*)
12281
library_names_spec='$libname.dll.a'
12282
# DLL is installed to $(libdir)/../bin by postinstall_cmds
12283
postinstall_cmds='base_file=`basename \${file}`~
12284
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12285
dldir=$destdir/`dirname \$dlpath`~
12286
test -d \$dldir || mkdir -p \$dldir~
12287
$install_prog $dir/$dlname \$dldir/$dlname~
12288
chmod a+x \$dldir/$dlname'
12289
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12290
dlpath=$dir/\$dldll~
12292
shlibpath_overrides_runpath=yes
12296
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
12297
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12298
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12301
# MinGW DLLs use traditional 'lib' prefix
12302
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12303
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12304
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12305
# It is most probably a Windows format PATH printed by
12306
# mingw gcc, but we are running on Cygwin. Gcc prints its search
12307
# path with ; separators, and with drive letters. We can handle the
12308
# drive letters (cygwin fileutils understands them), so leave them,
12309
# especially as we might pass files found there to a mingw objdump,
12310
# which wouldn't understand a cygwinified path. Ahh.
12311
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12313
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12317
# pw32 DLLs use 'pw' prefix rather than 'lib'
12318
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12324
if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
12325
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12326
supports_anon_versioning=no
12327
case `$LD -v 2>/dev/null` in
12328
*\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12329
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12330
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12331
*\ 2.11.*) ;; # other 2.11 versions
12332
*) supports_anon_versioning=yes ;;
12334
if test $supports_anon_versioning = yes; then
12335
archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12336
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12337
$echo "local: *; };" >> $output_objdir/$libname.ver~
12338
$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12340
$archive_expsym_cmds="$archive_cmds"
12348
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12351
dynamic_linker='Win32 ld.exe'
12352
# FIXME: first we should search . and the directory the executable is in
12356
darwin* | rhapsody*)
12357
dynamic_linker="$host_os dyld"
12358
version_type=darwin
12361
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12362
soname_spec='${libname}${release}${major}$shared_ext'
12363
shlibpath_overrides_runpath=yes
12364
shlibpath_var=DYLD_LIBRARY_PATH
12365
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12366
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12367
if test "$GCC" = yes; then
12368
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"`
12370
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12372
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12379
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12380
soname_spec='${libname}${release}${shared_ext}$major'
12381
shlibpath_var=LD_LIBRARY_PATH
12392
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12393
soname_spec='${libname}${release}${shared_ext}$major'
12394
shlibpath_var=LD_LIBRARY_PATH
12395
shlibpath_overrides_runpath=no
12396
hardcode_into_libs=yes
12397
dynamic_linker='GNU ld.so'
12400
freebsd* | dragonfly*)
12401
# DragonFly does not have aout. When/if they implement a new
12402
# versioning mechanism, adjust this.
12403
if test -x /usr/bin/objformat; then
12404
objformat=`/usr/bin/objformat`
12407
freebsd[123]*) objformat=aout ;;
12408
*) objformat=elf ;;
12411
# Handle Gentoo/FreeBSD as it was Linux
12412
case $host_vendor in
12414
version_type=linux ;;
12416
version_type=freebsd-$objformat ;;
12419
case $version_type in
12421
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12426
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12430
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12431
soname_spec='${libname}${release}${shared_ext}$major'
12436
shlibpath_var=LD_LIBRARY_PATH
12439
shlibpath_overrides_runpath=yes
12441
freebsd3.[01]* | freebsdelf3.[01]*)
12442
shlibpath_overrides_runpath=yes
12443
hardcode_into_libs=yes
12445
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12446
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12447
shlibpath_overrides_runpath=no
12448
hardcode_into_libs=yes
12450
freebsd*) # from 4.6 on
12451
shlibpath_overrides_runpath=yes
12452
hardcode_into_libs=yes
12461
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12462
soname_spec='${libname}${release}${shared_ext}$major'
12463
shlibpath_var=LD_LIBRARY_PATH
12464
hardcode_into_libs=yes
12467
hpux9* | hpux10* | hpux11*)
12468
# Give a soname corresponding to the major version so that dld.sl refuses to
12469
# link against other versions.
12476
hardcode_into_libs=yes
12477
dynamic_linker="$host_os dld.so"
12478
shlibpath_var=LD_LIBRARY_PATH
12479
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12480
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12481
soname_spec='${libname}${release}${shared_ext}$major'
12482
if test "X$HPUX_IA64_MODE" = X32; then
12483
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12485
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12487
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12491
hardcode_into_libs=yes
12492
dynamic_linker="$host_os dld.sl"
12493
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12494
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12495
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12496
soname_spec='${libname}${release}${shared_ext}$major'
12497
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12498
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12502
dynamic_linker="$host_os dld.sl"
12503
shlibpath_var=SHLIB_PATH
12504
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12505
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12506
soname_spec='${libname}${release}${shared_ext}$major'
12509
# HP-UX runs *really* slowly unless shared libraries are mode 555.
12510
postinstall_cmds='chmod 555 $lib'
12517
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12518
soname_spec='${libname}${release}${shared_ext}$major'
12519
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12520
shlibpath_var=LD_LIBRARY_PATH
12521
shlibpath_overrides_runpath=no
12522
hardcode_into_libs=yes
12525
irix5* | irix6* | nonstopux*)
12527
nonstopux*) version_type=nonstopux ;;
12529
if test "$lt_cv_prog_gnu_ld" = yes; then
12537
soname_spec='${libname}${release}${shared_ext}$major'
12538
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12540
irix5* | nonstopux*)
12541
libsuff= shlibsuff=
12544
case $LD in # libtool.m4 will add one of these switches to LD
12545
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12546
libsuff= shlibsuff= libmagic=32-bit;;
12547
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12548
libsuff=32 shlibsuff=N32 libmagic=N32;;
12549
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12550
libsuff=64 shlibsuff=64 libmagic=64-bit;;
12551
*) libsuff= shlibsuff= libmagic=never-match;;
12555
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12556
shlibpath_overrides_runpath=no
12557
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12558
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12559
hardcode_into_libs=yes
12562
# No shared lib support for Linux oldld, aout, or coff.
12563
linux*oldld* | linux*aout* | linux*coff*)
12567
# This must be Linux ELF.
12572
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12573
soname_spec='${libname}${release}${shared_ext}$major'
12574
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12575
shlibpath_var=LD_LIBRARY_PATH
12576
shlibpath_overrides_runpath=no
12577
# This implies no fast_install, which is unacceptable.
12578
# Some rework will be needed to allow for fast_install
12579
# before this can be enabled.
12580
hardcode_into_libs=yes
12582
# Append ld.so.conf contents to the search path
12583
if test -f /etc/ld.so.conf; then
12584
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' ' '`
12585
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12588
# We used to test for /lib/ld.so.1 and disable shared libraries on
12589
# powerpc, because MkLinux only supported shared libraries with the
12590
# GNU dynamic linker. Since this was broken with cross compilers,
12591
# most powerpc-linux boxes support dynamic linking these days and
12592
# people can always --disable-shared, the test was removed, and we
12593
# assume the GNU/Linux dynamic linker is in use.
12594
dynamic_linker='GNU/Linux ld.so'
12601
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12602
soname_spec='${libname}${release}${shared_ext}$major'
12603
shlibpath_var=LD_LIBRARY_PATH
12604
shlibpath_overrides_runpath=no
12605
hardcode_into_libs=yes
12606
dynamic_linker='GNU ld.so'
12613
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12614
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12615
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12616
dynamic_linker='NetBSD (a.out) ld.so'
12618
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12619
soname_spec='${libname}${release}${shared_ext}$major'
12620
dynamic_linker='NetBSD ld.elf_so'
12622
shlibpath_var=LD_LIBRARY_PATH
12623
shlibpath_overrides_runpath=yes
12624
hardcode_into_libs=yes
12629
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12630
shlibpath_var=LD_LIBRARY_PATH
12631
shlibpath_overrides_runpath=yes
12638
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12639
soname_spec='${libname}${release}${shared_ext}$major'
12640
shlibpath_var=LD_LIBRARY_PATH
12641
shlibpath_overrides_runpath=yes
12646
sys_lib_dlsearch_path_spec="/usr/lib"
12648
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12650
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12651
*) need_version=no ;;
12653
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12654
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12655
shlibpath_var=LD_LIBRARY_PATH
12656
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12658
openbsd2.[89] | openbsd2.[89].*)
12659
shlibpath_overrides_runpath=no
12662
shlibpath_overrides_runpath=yes
12666
shlibpath_overrides_runpath=yes
12671
libname_spec='$name'
12674
library_names_spec='$libname${shared_ext} $libname.a'
12675
dynamic_linker='OS/2 ld.exe'
12676
shlibpath_var=LIBPATH
12679
osf3* | osf4* | osf5*)
12683
soname_spec='${libname}${release}${shared_ext}$major'
12684
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12685
shlibpath_var=LD_LIBRARY_PATH
12686
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12687
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12694
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12695
soname_spec='${libname}${release}${shared_ext}$major'
12696
shlibpath_var=LD_LIBRARY_PATH
12697
shlibpath_overrides_runpath=yes
12698
hardcode_into_libs=yes
12699
# ldd complains unless libraries are executable
12700
postinstall_cmds='chmod +x $lib'
12705
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12706
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12707
shlibpath_var=LD_LIBRARY_PATH
12708
shlibpath_overrides_runpath=yes
12709
if test "$with_gnu_ld" = yes; then
12717
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12718
soname_spec='${libname}${release}${shared_ext}$major'
12719
shlibpath_var=LD_LIBRARY_PATH
12720
case $host_vendor in
12722
shlibpath_overrides_runpath=no
12724
export_dynamic_flag_spec='${wl}-Blargedynsym'
12725
runpath_var=LD_RUN_PATH
12733
shlibpath_overrides_runpath=no
12734
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12740
if test -d /usr/nec ;then
12742
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12743
soname_spec='$libname${shared_ext}.$major'
12744
shlibpath_var=LD_LIBRARY_PATH
12748
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12749
version_type=freebsd-elf
12752
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12753
soname_spec='${libname}${release}${shared_ext}$major'
12754
shlibpath_var=LD_LIBRARY_PATH
12755
hardcode_into_libs=yes
12756
if test "$with_gnu_ld" = yes; then
12757
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12758
shlibpath_overrides_runpath=no
12760
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12761
shlibpath_overrides_runpath=yes
12764
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12768
sys_lib_dlsearch_path_spec='/usr/lib'
12773
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12774
soname_spec='${libname}${release}${shared_ext}$major'
12775
shlibpath_var=LD_LIBRARY_PATH
12782
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12783
echo "${ECHO_T}$dynamic_linker" >&6; }
12784
test "$dynamic_linker" = no && can_build_shared=no
12786
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12787
if test "$GCC" = yes; then
12788
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12791
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12792
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12793
hardcode_action_CXX=
12794
if test -n "$hardcode_libdir_flag_spec_CXX" || \
12795
test -n "$runpath_var_CXX" || \
12796
test "X$hardcode_automatic_CXX" = "Xyes" ; then
12798
# We can hardcode non-existant directories.
12799
if test "$hardcode_direct_CXX" != no &&
12800
# If the only mechanism to avoid hardcoding is shlibpath_var, we
12801
# have to relink, otherwise we might link with an installed library
12802
# when we should be linking with a yet-to-be-installed one
12803
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12804
test "$hardcode_minus_L_CXX" != no; then
12805
# Linking always hardcodes the temporary library directory.
12806
hardcode_action_CXX=relink
12808
# We can link without hardcoding, and we can hardcode nonexisting dirs.
12809
hardcode_action_CXX=immediate
12812
# We cannot hardcode anything, or else we can only hardcode existing
12814
hardcode_action_CXX=unsupported
12816
{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12817
echo "${ECHO_T}$hardcode_action_CXX" >&6; }
12819
if test "$hardcode_action_CXX" = relink; then
12820
# Fast installation is not supported
12821
enable_fast_install=no
12822
elif test "$shlibpath_overrides_runpath" = yes ||
12823
test "$enable_shared" = no; then
12824
# Fast installation is not necessary
12825
enable_fast_install=needless
12829
# The else clause should only fire when bootstrapping the
12830
# libtool distribution, otherwise you forgot to ship ltmain.sh
12831
# with your package, and you will get complaints that there are
12832
# no rules to generate ltmain.sh.
12833
if test -f "$ltmain"; then
12834
# See if we are running on zsh, and set the options which allow our commands through
12835
# without removal of \ escapes.
12836
if test -n "${ZSH_VERSION+set}" ; then
12837
setopt NO_GLOB_SUBST
12839
# Now quote all the things that may contain metacharacters while being
12840
# careful not to overquote the AC_SUBSTed values. We take copies of the
12841
# variables and quote the copies for generation of the libtool script.
12842
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12844
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12845
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12846
deplibs_check_method reload_flag reload_cmds need_locks \
12847
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12848
lt_cv_sys_global_symbol_to_c_name_address \
12849
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12850
old_postinstall_cmds old_postuninstall_cmds \
12854
lt_prog_compiler_wl_CXX \
12855
lt_prog_compiler_pic_CXX \
12856
lt_prog_compiler_static_CXX \
12857
lt_prog_compiler_no_builtin_flag_CXX \
12858
export_dynamic_flag_spec_CXX \
12859
thread_safe_flag_spec_CXX \
12860
whole_archive_flag_spec_CXX \
12861
enable_shared_with_static_runtimes_CXX \
12862
old_archive_cmds_CXX \
12863
old_archive_from_new_cmds_CXX \
12864
predep_objects_CXX \
12865
postdep_objects_CXX \
12868
compiler_lib_search_path_CXX \
12870
archive_expsym_cmds_CXX \
12871
postinstall_cmds_CXX \
12872
postuninstall_cmds_CXX \
12873
old_archive_from_expsyms_cmds_CXX \
12874
allow_undefined_flag_CXX \
12875
no_undefined_flag_CXX \
12876
export_symbols_cmds_CXX \
12877
hardcode_libdir_flag_spec_CXX \
12878
hardcode_libdir_flag_spec_ld_CXX \
12879
hardcode_libdir_separator_CXX \
12880
hardcode_automatic_CXX \
12882
module_expsym_cmds_CXX \
12883
lt_cv_prog_compiler_c_o_CXX \
12884
exclude_expsyms_CXX \
12885
include_expsyms_CXX; do
12888
old_archive_cmds_CXX | \
12889
old_archive_from_new_cmds_CXX | \
12890
archive_cmds_CXX | \
12891
archive_expsym_cmds_CXX | \
12892
module_cmds_CXX | \
12893
module_expsym_cmds_CXX | \
12894
old_archive_from_expsyms_cmds_CXX | \
12895
export_symbols_cmds_CXX | \
12896
extract_expsyms_cmds | reload_cmds | finish_cmds | \
12897
postinstall_cmds | postuninstall_cmds | \
12898
old_postinstall_cmds | old_postuninstall_cmds | \
12899
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12900
# Double-quote double-evaled strings.
12901
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12904
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12910
*'\$0 --fallback-echo"')
12911
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12917
cat <<__EOF__ >> "$cfgfile"
12918
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12920
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12922
# Shell to use when invoking shell scripts.
12925
# Whether or not to build shared libraries.
12926
build_libtool_libs=$enable_shared
12928
# Whether or not to build static libraries.
12929
build_old_libs=$enable_static
12931
# Whether or not to add -lc for building shared libraries.
12932
build_libtool_need_lc=$archive_cmds_need_lc_CXX
12934
# Whether or not to disallow shared libs when runtime libs are static
12935
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12937
# Whether or not to optimize for fast installation.
12938
fast_install=$enable_fast_install
12941
host_alias=$host_alias
12945
# The build system.
12946
build_alias=$build_alias
12950
# An echo program that does not interpret backslashes.
12955
AR_FLAGS=$lt_AR_FLAGS
12960
# LTCC compiler flags.
12961
LTCFLAGS=$lt_LTCFLAGS
12963
# A language-specific compiler.
12964
CC=$lt_compiler_CXX
12966
# Is the compiler the GNU C compiler?
12972
# The linker used to build libraries.
12975
# Whether we need hard or soft links.
12978
# A BSD-compatible nm program.
12981
# A symbol stripping program
12984
# Used to examine libraries when file_magic_cmd begins "file"
12985
MAGIC_CMD=$MAGIC_CMD
12987
# Used on cygwin: DLL creation program.
12990
# Used on cygwin: object dumper.
12993
# Used on cygwin: assembler.
12996
# The name of the directory that contains temporary libtool files.
12999
# How to create reloadable object files.
13000
reload_flag=$lt_reload_flag
13001
reload_cmds=$lt_reload_cmds
13003
# How to pass a linker flag through the compiler.
13004
wl=$lt_lt_prog_compiler_wl_CXX
13006
# Object file suffix (normally "o").
13007
objext="$ac_objext"
13009
# Old archive suffix (normally "a").
13012
# Shared library suffix (normally ".so").
13013
shrext_cmds='$shrext_cmds'
13015
# Executable file suffix (normally "").
13018
# Additional compiler flags for building library objects.
13019
pic_flag=$lt_lt_prog_compiler_pic_CXX
13022
# What is the maximum length of a command?
13023
max_cmd_len=$lt_cv_sys_max_cmd_len
13025
# Does compiler simultaneously support -c and -o options?
13026
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13028
# Must we lock files when doing compilation?
13029
need_locks=$lt_need_locks
13031
# Do we need the lib prefix for modules?
13032
need_lib_prefix=$need_lib_prefix
13034
# Do we need a version for libraries?
13035
need_version=$need_version
13037
# Whether dlopen is supported.
13038
dlopen_support=$enable_dlopen
13040
# Whether dlopen of programs is supported.
13041
dlopen_self=$enable_dlopen_self
13043
# Whether dlopen of statically linked programs is supported.
13044
dlopen_self_static=$enable_dlopen_self_static
13046
# Compiler flag to prevent dynamic linking.
13047
link_static_flag=$lt_lt_prog_compiler_static_CXX
13049
# Compiler flag to turn off builtin functions.
13050
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13052
# Compiler flag to allow reflexive dlopens.
13053
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13055
# Compiler flag to generate shared objects directly from archives.
13056
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13058
# Compiler flag to generate thread-safe objects.
13059
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13061
# Library versioning type.
13062
version_type=$version_type
13064
# Format of library name prefix.
13065
libname_spec=$lt_libname_spec
13067
# List of archive names. First name is the real one, the rest are links.
13068
# The last name is the one that the linker finds with -lNAME.
13069
library_names_spec=$lt_library_names_spec
13071
# The coded name of the library, if different from the real name.
13072
soname_spec=$lt_soname_spec
13074
# Commands used to build and install an old-style archive.
13076
old_archive_cmds=$lt_old_archive_cmds_CXX
13077
old_postinstall_cmds=$lt_old_postinstall_cmds
13078
old_postuninstall_cmds=$lt_old_postuninstall_cmds
13080
# Create an old-style archive from a shared archive.
13081
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13083
# Create a temporary old-style archive to link instead of a shared archive.
13084
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13086
# Commands used to build and install a shared archive.
13087
archive_cmds=$lt_archive_cmds_CXX
13088
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13089
postinstall_cmds=$lt_postinstall_cmds
13090
postuninstall_cmds=$lt_postuninstall_cmds
13092
# Commands used to build a loadable module (assumed same as above if empty)
13093
module_cmds=$lt_module_cmds_CXX
13094
module_expsym_cmds=$lt_module_expsym_cmds_CXX
13096
# Commands to strip libraries.
13097
old_striplib=$lt_old_striplib
13098
striplib=$lt_striplib
13100
# Dependencies to place before the objects being linked to create a
13102
predep_objects=$lt_predep_objects_CXX
13104
# Dependencies to place after the objects being linked to create a
13106
postdep_objects=$lt_postdep_objects_CXX
13108
# Dependencies to place before the objects being linked to create a
13110
predeps=$lt_predeps_CXX
13112
# Dependencies to place after the objects being linked to create a
13114
postdeps=$lt_postdeps_CXX
13116
# The library search path used internally by the compiler when linking
13117
# a shared library.
13118
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13120
# Method to check whether dependent libraries are shared objects.
13121
deplibs_check_method=$lt_deplibs_check_method
13123
# Command to use when deplibs_check_method == file_magic.
13124
file_magic_cmd=$lt_file_magic_cmd
13126
# Flag that allows shared libraries with undefined symbols to be built.
13127
allow_undefined_flag=$lt_allow_undefined_flag_CXX
13129
# Flag that forces no undefined symbols.
13130
no_undefined_flag=$lt_no_undefined_flag_CXX
13132
# Commands used to finish a libtool library installation in a directory.
13133
finish_cmds=$lt_finish_cmds
13135
# Same as above, but a single script fragment to be evaled but not shown.
13136
finish_eval=$lt_finish_eval
13138
# Take the output of nm and produce a listing of raw symbols and C names.
13139
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13141
# Transform the output of nm in a proper C declaration
13142
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13144
# Transform the output of nm in a C name address pair
13145
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13147
# This is the shared library runtime path variable.
13148
runpath_var=$runpath_var
13150
# This is the shared library path variable.
13151
shlibpath_var=$shlibpath_var
13153
# Is shlibpath searched before the hard-coded library search path?
13154
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13156
# How to hardcode a shared library path into an executable.
13157
hardcode_action=$hardcode_action_CXX
13159
# Whether we should hardcode library paths into libraries.
13160
hardcode_into_libs=$hardcode_into_libs
13162
# Flag to hardcode \$libdir into a binary during linking.
13163
# This must work even if \$libdir does not exist.
13164
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13166
# If ld is used when linking, flag to hardcode \$libdir into
13167
# a binary during linking. This must work even if \$libdir does
13169
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13171
# Whether we need a single -rpath flag with a separated argument.
13172
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13174
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13175
# resulting binary.
13176
hardcode_direct=$hardcode_direct_CXX
13178
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13179
# resulting binary.
13180
hardcode_minus_L=$hardcode_minus_L_CXX
13182
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13183
# the resulting binary.
13184
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13186
# Set to yes if building a shared library automatically hardcodes DIR into the library
13187
# and all subsequent libraries and executables linked against it.
13188
hardcode_automatic=$hardcode_automatic_CXX
13190
# Variables whose values should be saved in libtool wrapper scripts and
13191
# restored at relink time.
13192
variables_saved_for_relink="$variables_saved_for_relink"
13194
# Whether libtool must link a program against all its dependency libraries.
13195
link_all_deplibs=$link_all_deplibs_CXX
13197
# Compile-time system search path for libraries
13198
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13200
# Run-time system search path for libraries
13201
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13203
# Fix the shell variable \$srcfile for the compiler.
13204
fix_srcfile_path="$fix_srcfile_path_CXX"
13206
# Set to yes if exported symbols are required.
13207
always_export_symbols=$always_export_symbols_CXX
13209
# The commands to list exported symbols.
13210
export_symbols_cmds=$lt_export_symbols_cmds_CXX
13212
# The commands to extract the exported symbol list from a shared archive.
13213
extract_expsyms_cmds=$lt_extract_expsyms_cmds
13215
# Symbols that should not be listed in the preloaded symbols.
13216
exclude_expsyms=$lt_exclude_expsyms_CXX
13218
# Symbols that must always be exported.
13219
include_expsyms=$lt_include_expsyms_CXX
13221
# ### END LIBTOOL TAG CONFIG: $tagname
13227
# If there is no Makefile yet, we rely on a make rule to execute
13228
# `config.status --recheck' to rerun these tests and create the
13229
# libtool script then.
13230
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13231
if test -f "$ltmain_in"; then
13232
test -f Makefile && make "$ltmain"
13238
ac_cpp='$CPP $CPPFLAGS'
13239
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13240
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13241
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13247
with_gnu_ldcxx=$with_gnu_ld
13248
with_gnu_ld=$lt_save_with_gnu_ld
13249
lt_cv_path_LDCXX=$lt_cv_path_LD
13250
lt_cv_path_LD=$lt_save_path_LD
13251
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13252
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13260
if test -n "$F77" && test "X$F77" != "Xno"; then
13263
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13264
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13265
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13268
archive_cmds_need_lc_F77=no
13269
allow_undefined_flag_F77=
13270
always_export_symbols_F77=no
13271
archive_expsym_cmds_F77=
13272
export_dynamic_flag_spec_F77=
13273
hardcode_direct_F77=no
13274
hardcode_libdir_flag_spec_F77=
13275
hardcode_libdir_flag_spec_ld_F77=
13276
hardcode_libdir_separator_F77=
13277
hardcode_minus_L_F77=no
13278
hardcode_automatic_F77=no
13280
module_expsym_cmds_F77=
13281
link_all_deplibs_F77=unknown
13282
old_archive_cmds_F77=$old_archive_cmds
13283
no_undefined_flag_F77=
13284
whole_archive_flag_spec_F77=
13285
enable_shared_with_static_runtimes_F77=no
13287
# Source file extension for f77 test sources.
13290
# Object file extension for compiled f77 test sources.
13294
# Code to be used in simple compile tests
13295
lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13297
# Code to be used in simple link tests
13298
lt_simple_link_test_code=" program t\n end\n"
13300
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13302
# If no C compiler was specified, use CC.
13305
# If no C compiler flags were specified, use CFLAGS.
13306
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13308
# Allow CC to be a program name with arguments.
13312
# save warnings/boilerplate of simple test code
13313
ac_outfile=conftest.$ac_objext
13314
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13315
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13316
_lt_compiler_boilerplate=`cat conftest.err`
13319
ac_outfile=conftest.$ac_objext
13320
printf "$lt_simple_link_test_code" >conftest.$ac_ext
13321
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13322
_lt_linker_boilerplate=`cat conftest.err`
13326
# Allow CC to be a program name with arguments.
13331
for cc_temp in $compiler""; do
13333
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13334
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13339
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13342
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13343
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13344
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
13345
echo "${ECHO_T}$can_build_shared" >&6; }
13347
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13348
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13349
test "$can_build_shared" = "no" && enable_shared=no
13351
# On AIX, shared libraries and static libraries use the same namespace, and
13352
# are all built from PIC.
13355
test "$enable_shared" = yes && enable_static=no
13356
if test -n "$RANLIB"; then
13357
archive_cmds="$archive_cmds~\$RANLIB \$lib"
13358
postinstall_cmds='$RANLIB $lib'
13362
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13363
test "$enable_shared" = yes && enable_static=no
13367
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
13368
echo "${ECHO_T}$enable_shared" >&6; }
13370
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13371
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13372
# Make sure either enable_shared or enable_static is yes.
13373
test "$enable_shared" = yes || enable_static=yes
13374
{ echo "$as_me:$LINENO: result: $enable_static" >&5
13375
echo "${ECHO_T}$enable_static" >&6; }
13380
lt_prog_compiler_wl_F77=
13381
lt_prog_compiler_pic_F77=
13382
lt_prog_compiler_static_F77=
13384
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13385
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13387
if test "$GCC" = yes; then
13388
lt_prog_compiler_wl_F77='-Wl,'
13389
lt_prog_compiler_static_F77='-static'
13393
# All AIX code is PIC.
13394
if test "$host_cpu" = ia64; then
13395
# AIX 5 now supports IA64 processor
13396
lt_prog_compiler_static_F77='-Bstatic'
13401
# FIXME: we need at least 68020 code to build shared libraries, but
13402
# adding the `-m68020' flag to GCC prevents building anything better,
13404
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13407
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13408
# PIC is the default for these OSes.
13411
mingw* | pw32* | os2*)
13412
# This hack is so that the source file can tell whether it is being
13413
# built for inclusion in a dll (and should export symbols for example).
13414
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13417
darwin* | rhapsody*)
13418
# PIC is the default on this platform
13419
# Common symbols not allowed in MH_DYLIB files
13420
lt_prog_compiler_pic_F77='-fno-common'
13424
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
13425
# Instead, we relocate shared libraries at runtime.
13429
# Just because we use GCC doesn't mean we suddenly get shared libraries
13430
# on systems that don't support them.
13431
lt_prog_compiler_can_build_shared_F77=no
13436
if test -d /usr/nec; then
13437
lt_prog_compiler_pic_F77=-Kconform_pic
13442
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13443
# not for PA HP-UX.
13449
lt_prog_compiler_pic_F77='-fPIC'
13455
lt_prog_compiler_pic_F77='-fPIC'
13459
# PORTME Check for flag to pass linker flags through the system compiler.
13462
lt_prog_compiler_wl_F77='-Wl,'
13463
if test "$host_cpu" = ia64; then
13464
# AIX 5 now supports IA64 processor
13465
lt_prog_compiler_static_F77='-Bstatic'
13467
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13471
# PIC is the default on this platform
13472
# Common symbols not allowed in MH_DYLIB files
13473
case $cc_basename in
13475
lt_prog_compiler_pic_F77='-qnocommon'
13476
lt_prog_compiler_wl_F77='-Wl,'
13481
mingw* | pw32* | os2*)
13482
# This hack is so that the source file can tell whether it is being
13483
# built for inclusion in a dll (and should export symbols for example).
13484
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13487
hpux9* | hpux10* | hpux11*)
13488
lt_prog_compiler_wl_F77='-Wl,'
13489
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13490
# not for PA HP-UX.
13496
lt_prog_compiler_pic_F77='+Z'
13499
# Is there a better lt_prog_compiler_static that works with the bundled CC?
13500
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13503
irix5* | irix6* | nonstopux*)
13504
lt_prog_compiler_wl_F77='-Wl,'
13505
# PIC (with -KPIC) is the default.
13506
lt_prog_compiler_static_F77='-non_shared'
13510
lt_prog_compiler_pic_F77='-KPIC'
13511
lt_prog_compiler_static_F77='-Bstatic'
13515
case $cc_basename in
13517
lt_prog_compiler_wl_F77='-Wl,'
13518
lt_prog_compiler_pic_F77='-KPIC'
13519
lt_prog_compiler_static_F77='-static'
13521
pgcc* | pgf77* | pgf90* | pgf95*)
13522
# Portland Group compilers (*not* the Pentium gcc compiler,
13523
# which looks to be a dead project)
13524
lt_prog_compiler_wl_F77='-Wl,'
13525
lt_prog_compiler_pic_F77='-fpic'
13526
lt_prog_compiler_static_F77='-Bstatic'
13529
lt_prog_compiler_wl_F77='-Wl,'
13530
# All Alpha code is PIC.
13531
lt_prog_compiler_static_F77='-non_shared'
13536
osf3* | osf4* | osf5*)
13537
lt_prog_compiler_wl_F77='-Wl,'
13538
# All OSF/1 code is PIC.
13539
lt_prog_compiler_static_F77='-non_shared'
13543
lt_prog_compiler_pic_F77='-KPIC'
13544
lt_prog_compiler_static_F77='-Bstatic'
13545
case $cc_basename in
13546
f77* | f90* | f95*)
13547
lt_prog_compiler_wl_F77='-Qoption ld ';;
13549
lt_prog_compiler_wl_F77='-Wl,';;
13554
lt_prog_compiler_wl_F77='-Qoption ld '
13555
lt_prog_compiler_pic_F77='-PIC'
13556
lt_prog_compiler_static_F77='-Bstatic'
13559
sysv4 | sysv4.2uw2* | sysv4.3*)
13560
lt_prog_compiler_wl_F77='-Wl,'
13561
lt_prog_compiler_pic_F77='-KPIC'
13562
lt_prog_compiler_static_F77='-Bstatic'
13566
if test -d /usr/nec ;then
13567
lt_prog_compiler_pic_F77='-Kconform_pic'
13568
lt_prog_compiler_static_F77='-Bstatic'
13572
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13573
lt_prog_compiler_wl_F77='-Wl,'
13574
lt_prog_compiler_pic_F77='-KPIC'
13575
lt_prog_compiler_static_F77='-Bstatic'
13579
lt_prog_compiler_wl_F77='-Wl,'
13580
lt_prog_compiler_can_build_shared_F77=no
13584
lt_prog_compiler_pic_F77='-pic'
13585
lt_prog_compiler_static_F77='-Bstatic'
13589
lt_prog_compiler_can_build_shared_F77=no
13594
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13595
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13598
# Check to make sure the PIC flag actually works.
13600
if test -n "$lt_prog_compiler_pic_F77"; then
13602
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13603
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13604
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13605
echo $ECHO_N "(cached) $ECHO_C" >&6
13607
lt_prog_compiler_pic_works_F77=no
13608
ac_outfile=conftest.$ac_objext
13609
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13610
lt_compiler_flag="$lt_prog_compiler_pic_F77"
13611
# Insert the option either (1) after the last *FLAGS variable, or
13612
# (2) before a word containing "conftest.", or (3) at the end.
13613
# Note that $ac_compile itself does not contain backslashes and begins
13614
# with a dollar sign (not a hyphen), so the echo should work correctly.
13615
# The option is referenced via a variable to avoid confusing sed.
13616
lt_compile=`echo "$ac_compile" | $SED \
13617
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13618
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13619
-e 's:$: $lt_compiler_flag:'`
13620
(eval echo "\"\$as_me:13620: $lt_compile\"" >&5)
13621
(eval "$lt_compile" 2>conftest.err)
13623
cat conftest.err >&5
13624
echo "$as_me:13624: \$? = $ac_status" >&5
13625
if (exit $ac_status) && test -s "$ac_outfile"; then
13626
# The compiler can only warn and ignore the option if not recognized
13627
# So say no if there are warnings other than the usual output.
13628
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13629
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13630
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13631
lt_prog_compiler_pic_works_F77=yes
13637
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13638
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
13640
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13641
case $lt_prog_compiler_pic_F77 in
13643
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13646
lt_prog_compiler_pic_F77=
13647
lt_prog_compiler_can_build_shared_F77=no
13652
# For platforms which do not support PIC, -DPIC is meaningless:
13654
lt_prog_compiler_pic_F77=
13657
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13662
# Check to make sure the static flag actually works.
13664
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13665
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13666
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13667
if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13668
echo $ECHO_N "(cached) $ECHO_C" >&6
13670
lt_prog_compiler_static_works_F77=no
13671
save_LDFLAGS="$LDFLAGS"
13672
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13673
printf "$lt_simple_link_test_code" > conftest.$ac_ext
13674
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13675
# The linker can only warn and ignore the option if not recognized
13676
# So say no if there are warnings
13677
if test -s conftest.err; then
13678
# Append any errors to the config.log.
13679
cat conftest.err 1>&5
13680
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13681
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13682
if diff conftest.exp conftest.er2 >/dev/null; then
13683
lt_prog_compiler_static_works_F77=yes
13686
lt_prog_compiler_static_works_F77=yes
13690
LDFLAGS="$save_LDFLAGS"
13693
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13694
echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
13696
if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13699
lt_prog_compiler_static_F77=
13703
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13704
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13705
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13706
echo $ECHO_N "(cached) $ECHO_C" >&6
13708
lt_cv_prog_compiler_c_o_F77=no
13709
$rm -r conftest 2>/dev/null
13713
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13715
lt_compiler_flag="-o out/conftest2.$ac_objext"
13716
# Insert the option either (1) after the last *FLAGS variable, or
13717
# (2) before a word containing "conftest.", or (3) at the end.
13718
# Note that $ac_compile itself does not contain backslashes and begins
13719
# with a dollar sign (not a hyphen), so the echo should work correctly.
13720
lt_compile=`echo "$ac_compile" | $SED \
13721
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13722
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13723
-e 's:$: $lt_compiler_flag:'`
13724
(eval echo "\"\$as_me:13724: $lt_compile\"" >&5)
13725
(eval "$lt_compile" 2>out/conftest.err)
13727
cat out/conftest.err >&5
13728
echo "$as_me:13728: \$? = $ac_status" >&5
13729
if (exit $ac_status) && test -s out/conftest2.$ac_objext
13731
# The compiler can only warn and ignore the option if not recognized
13732
# So say no if there are warnings
13733
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13734
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13735
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13736
lt_cv_prog_compiler_c_o_F77=yes
13741
# SGI C++ compiler will create directory out/ii_files/ for
13742
# template instantiation
13743
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13744
$rm out/* && rmdir out
13750
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13751
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
13754
hard_links="nottested"
13755
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13756
# do not overwrite the value of need_locks provided by the user
13757
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13758
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13761
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13763
ln conftest.a conftest.b 2>&5 || hard_links=no
13764
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13765
{ echo "$as_me:$LINENO: result: $hard_links" >&5
13766
echo "${ECHO_T}$hard_links" >&6; }
13767
if test "$hard_links" = no; then
13768
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13769
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13776
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13777
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13780
allow_undefined_flag_F77=
13781
enable_shared_with_static_runtimes_F77=no
13783
archive_expsym_cmds_F77=
13784
old_archive_From_new_cmds_F77=
13785
old_archive_from_expsyms_cmds_F77=
13786
export_dynamic_flag_spec_F77=
13787
whole_archive_flag_spec_F77=
13788
thread_safe_flag_spec_F77=
13789
hardcode_libdir_flag_spec_F77=
13790
hardcode_libdir_flag_spec_ld_F77=
13791
hardcode_libdir_separator_F77=
13792
hardcode_direct_F77=no
13793
hardcode_minus_L_F77=no
13794
hardcode_shlibpath_var_F77=unsupported
13795
link_all_deplibs_F77=unknown
13796
hardcode_automatic_F77=no
13798
module_expsym_cmds_F77=
13799
always_export_symbols_F77=no
13800
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13801
# include_expsyms should be a list of space-separated symbols to be *always*
13802
# included in the symbol list
13803
include_expsyms_F77=
13804
# exclude_expsyms can be an extended regexp of symbols to exclude
13805
# it will be wrapped by ` (' and `)$', so one must not match beginning or
13806
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13807
# as well as any symbol that contains `d'.
13808
exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13809
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13810
# platforms (ab)use it in PIC code, but their linkers get confused if
13811
# the symbol is explicitly referenced. Since portable code cannot
13812
# rely on this symbol name, it's probably fine to never include it in
13813
# preloaded symbol tables.
13814
extract_expsyms_cmds=
13815
# Just being paranoid about ensuring that cc_basename is set.
13816
for cc_temp in $compiler""; do
13818
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13819
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13824
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13827
cygwin* | mingw* | pw32*)
13828
# FIXME: the MSVC++ port hasn't been tested in a loooong time
13829
# When not using gcc, we currently assume that we are using
13830
# Microsoft Visual C++.
13831
if test "$GCC" != yes; then
13836
# we just hope/assume this is gcc and not c89 (= MSVC++)
13845
if test "$with_gnu_ld" = yes; then
13846
# If archive_cmds runs LD, not CC, wlarc should be empty
13849
# Set some defaults for GNU ld with shared library support. These
13850
# are reset later if shared libraries are not supported. Putting them
13851
# here allows them to be overridden if necessary.
13852
runpath_var=LD_RUN_PATH
13853
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13854
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13855
# ancient GNU ld didn't support --whole-archive et. al.
13856
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13857
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13859
whole_archive_flag_spec_F77=
13861
supports_anon_versioning=no
13862
case `$LD -v 2>/dev/null` in
13863
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13864
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13865
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13866
*\ 2.11.*) ;; # other 2.11 versions
13867
*) supports_anon_versioning=yes ;;
13870
# See if GNU ld supports shared libraries.
13872
aix3* | aix4* | aix5*)
13873
# On AIX/PPC, the GNU linker is very broken
13874
if test "$host_cpu" != ia64; then
13878
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13879
*** to be unable to reliably create shared libraries on AIX.
13880
*** Therefore, libtool is disabling shared libraries support. If you
13881
*** really care for shared libraries, you may want to modify your PATH
13882
*** so that a non-GNU linker is found, and then restart.
13889
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)'
13890
hardcode_libdir_flag_spec_F77='-L$libdir'
13891
hardcode_minus_L_F77=yes
13893
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13894
# that the semantics of dynamic libraries on AmigaOS, at least up
13895
# to version 4, is to share data among multiple programs linked
13896
# with the same dynamic library. Since this doesn't match the
13897
# behavior of shared libraries on other platforms, we can't use
13903
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13904
allow_undefined_flag_F77=unsupported
13905
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13906
# support --undefined. This deserves some investigation. FIXME
13907
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13913
cygwin* | mingw* | pw32*)
13914
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13915
# as there is no search path for DLLs.
13916
hardcode_libdir_flag_spec_F77='-L$libdir'
13917
allow_undefined_flag_F77=unsupported
13918
always_export_symbols_F77=no
13919
enable_shared_with_static_runtimes_F77=yes
13920
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13922
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13923
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13924
# If the export-symbols file already is a .def file (1st line
13925
# is EXPORTS), use it as is; otherwise, prepend...
13926
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13927
cp $export_symbols $output_objdir/$soname.def;
13929
echo EXPORTS > $output_objdir/$soname.def;
13930
cat $export_symbols >> $output_objdir/$soname.def;
13932
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13939
hardcode_direct_F77=no
13940
hardcode_shlibpath_var_F77=no
13941
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13942
export_dynamic_flag_spec_F77='${wl}-E'
13943
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13944
# Instead, shared libraries are loaded at an image base (0x10000000 by
13945
# default) and relocated if they conflict, which is a slow very memory
13946
# consuming and fragmenting process. To avoid this, we pick a random,
13947
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13948
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
13949
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'
13950
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'
13954
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13956
case $cc_basename,$host_cpu in
13957
pgcc*) # Portland Group C compiler
13958
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'
13959
tmp_addflag=' $pic_flag'
13961
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13962
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'
13963
tmp_addflag=' $pic_flag -Mnomain' ;;
13964
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13965
tmp_addflag=' -i_dynamic' ;;
13966
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13967
tmp_addflag=' -i_dynamic -nofor_main' ;;
13968
ifc* | ifort*) # Intel Fortran compiler
13969
tmp_addflag=' -nofor_main' ;;
13971
archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13973
if test $supports_anon_versioning = yes; then
13974
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13975
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13976
$echo "local: *; };" >> $output_objdir/$libname.ver~
13977
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13985
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13986
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13989
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13990
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13995
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13999
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14000
*** create shared libraries on Solaris systems. Therefore, libtool
14001
*** is disabling shared libraries support. We urge you to upgrade GNU
14002
*** binutils to release 2.9.1 or newer. Another option is to modify
14003
*** your PATH or compiler configuration so that the native linker is
14004
*** used, and then restart.
14007
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14008
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14009
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14015
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14016
case `$LD -v 2>&1` in
14017
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14021
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14022
*** reliably create shared libraries on SCO systems. Therefore, libtool
14023
*** is disabling shared libraries support. We urge you to upgrade GNU
14024
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14025
*** your PATH or compiler configuration so that the native linker is
14026
*** used, and then restart.
14031
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14032
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14033
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14034
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14043
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14045
hardcode_direct_F77=yes
14046
hardcode_shlibpath_var_F77=no
14050
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14051
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14052
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14059
if test "$ld_shlibs_F77" = no; then
14061
hardcode_libdir_flag_spec_F77=
14062
export_dynamic_flag_spec_F77=
14063
whole_archive_flag_spec_F77=
14066
# PORTME fill in a description of your system's linker (not GNU ld)
14069
allow_undefined_flag_F77=unsupported
14070
always_export_symbols_F77=yes
14071
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'
14072
# Note: this linker hardcodes the directories in LIBPATH if there
14073
# are no directories specified by -L.
14074
hardcode_minus_L_F77=yes
14075
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14076
# Neither direct hardcoding nor static linking is supported with a
14078
hardcode_direct_F77=unsupported
14083
if test "$host_cpu" = ia64; then
14084
# On IA64, the linker does run time linking by default, so we don't
14085
# have to do anything special.
14086
aix_use_runtimelinking=no
14087
exp_sym_flag='-Bexport'
14090
# If we're using GNU nm, then we don't want the "-C" option.
14091
# -C means demangle to AIX nm, but means don't demangle with GNU nm
14092
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14093
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'
14095
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'
14097
aix_use_runtimelinking=no
14099
# Test if we are trying to use run time linking or normal
14100
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14101
# need to do runtime linking.
14102
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14103
for ld_flag in $LDFLAGS; do
14104
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14105
aix_use_runtimelinking=yes
14112
exp_sym_flag='-bexport'
14113
no_entry_flag='-bnoentry'
14116
# When large executables or shared objects are built, AIX ld can
14117
# have problems creating the table of contents. If linking a library
14118
# or program results in "error TOC overflow" add -mminimal-toc to
14119
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14120
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14122
archive_cmds_F77=''
14123
hardcode_direct_F77=yes
14124
hardcode_libdir_separator_F77=':'
14125
link_all_deplibs_F77=yes
14127
if test "$GCC" = yes; then
14128
case $host_os in aix4.[012]|aix4.[012].*)
14129
# We only want to do this on AIX 4.2 and lower, the check
14130
# below for broken collect2 doesn't work under 4.3+
14131
collect2name=`${CC} -print-prog-name=collect2`
14132
if test -f "$collect2name" && \
14133
strings "$collect2name" | grep resolve_lib_name >/dev/null
14135
# We have reworked collect2
14136
hardcode_direct_F77=yes
14138
# We have old collect2
14139
hardcode_direct_F77=unsupported
14140
# It fails to find uninstalled libraries when the uninstalled
14141
# path is not listed in the libpath. Setting hardcode_minus_L
14142
# to unsupported forces relinking
14143
hardcode_minus_L_F77=yes
14144
hardcode_libdir_flag_spec_F77='-L$libdir'
14145
hardcode_libdir_separator_F77=
14149
shared_flag='-shared'
14150
if test "$aix_use_runtimelinking" = yes; then
14151
shared_flag="$shared_flag "'${wl}-G'
14155
if test "$host_cpu" = ia64; then
14156
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14157
# chokes on -Wl,-G. The following line is correct:
14160
if test "$aix_use_runtimelinking" = yes; then
14161
shared_flag='${wl}-G'
14163
shared_flag='${wl}-bM:SRE'
14168
# It seems that -bexpall does not export symbols beginning with
14169
# underscore (_), so it is better to generate a list of symbols to export.
14170
always_export_symbols_F77=yes
14171
if test "$aix_use_runtimelinking" = yes; then
14172
# Warning - without using the other runtime loading flags (-brtl),
14173
# -berok will link without error, but may produce a broken library.
14174
allow_undefined_flag_F77='-berok'
14175
# Determine the default libpath from the value encoded in an empty executable.
14176
cat >conftest.$ac_ext <<_ACEOF
14181
rm -f conftest.$ac_objext conftest$ac_exeext
14182
if { (ac_try="$ac_link"
14183
case "(($ac_try" in
14184
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14185
*) ac_try_echo=$ac_try;;
14187
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14188
(eval "$ac_link") 2>conftest.er1
14190
grep -v '^ *+' conftest.er1 >conftest.err
14192
cat conftest.err >&5
14193
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14194
(exit $ac_status); } && {
14195
test -z "$ac_f77_werror_flag" ||
14196
test ! -s conftest.err
14197
} && test -s conftest$ac_exeext &&
14198
$as_test_x conftest$ac_exeext; then
14200
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14202
# Check for a 64-bit object if we didn't find anything.
14203
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; }
14206
echo "$as_me: failed program was:" >&5
14207
sed 's/^/| /' conftest.$ac_ext >&5
14212
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14213
conftest$ac_exeext conftest.$ac_ext
14214
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14216
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14217
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"
14219
if test "$host_cpu" = ia64; then
14220
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14221
allow_undefined_flag_F77="-z nodefs"
14222
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"
14224
# Determine the default libpath from the value encoded in an empty executable.
14225
cat >conftest.$ac_ext <<_ACEOF
14230
rm -f conftest.$ac_objext conftest$ac_exeext
14231
if { (ac_try="$ac_link"
14232
case "(($ac_try" in
14233
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14234
*) ac_try_echo=$ac_try;;
14236
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14237
(eval "$ac_link") 2>conftest.er1
14239
grep -v '^ *+' conftest.er1 >conftest.err
14241
cat conftest.err >&5
14242
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14243
(exit $ac_status); } && {
14244
test -z "$ac_f77_werror_flag" ||
14245
test ! -s conftest.err
14246
} && test -s conftest$ac_exeext &&
14247
$as_test_x conftest$ac_exeext; then
14249
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14251
# Check for a 64-bit object if we didn't find anything.
14252
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; }
14255
echo "$as_me: failed program was:" >&5
14256
sed 's/^/| /' conftest.$ac_ext >&5
14261
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14262
conftest$ac_exeext conftest.$ac_ext
14263
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14265
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14266
# Warning - without using the other run time loading flags,
14267
# -berok will link without error, but may produce a broken library.
14268
no_undefined_flag_F77=' ${wl}-bernotok'
14269
allow_undefined_flag_F77=' ${wl}-berok'
14270
# Exported symbols can be pulled into shared objects from archives
14271
whole_archive_flag_spec_F77='$convenience'
14272
archive_cmds_need_lc_F77=yes
14273
# This is similar to how AIX traditionally builds its shared libraries.
14274
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'
14280
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)'
14281
hardcode_libdir_flag_spec_F77='-L$libdir'
14282
hardcode_minus_L_F77=yes
14283
# see comment about different semantics on the GNU ld section
14288
export_dynamic_flag_spec_F77=-rdynamic
14291
cygwin* | mingw* | pw32*)
14292
# When not using gcc, we currently assume that we are using
14293
# Microsoft Visual C++.
14294
# hardcode_libdir_flag_spec is actually meaningless, as there is
14295
# no search path for DLLs.
14296
hardcode_libdir_flag_spec_F77=' '
14297
allow_undefined_flag_F77=unsupported
14298
# Tell ltmain to make .lib files, not .a files.
14300
# Tell ltmain to make .dll files, not .so files.
14302
# FIXME: Setting linknames here is a bad hack.
14303
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14304
# The linker will automatically build a .lib file if we build a DLL.
14305
old_archive_From_new_cmds_F77='true'
14306
# FIXME: Should let the user specify the lib program.
14307
old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14308
fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14309
enable_shared_with_static_runtimes_F77=yes
14312
darwin* | rhapsody*)
14314
rhapsody* | darwin1.[012])
14315
allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14318
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14319
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14321
case ${MACOSX_DEPLOYMENT_TARGET} in
14323
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14326
allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14332
archive_cmds_need_lc_F77=no
14333
hardcode_direct_F77=no
14334
hardcode_automatic_F77=yes
14335
hardcode_shlibpath_var_F77=unsupported
14336
whole_archive_flag_spec_F77=''
14337
link_all_deplibs_F77=yes
14338
if test "$GCC" = yes ; then
14339
output_verbose_link_cmd='echo'
14340
archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14341
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14342
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14343
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}'
14344
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}'
14346
case $cc_basename in
14348
output_verbose_link_cmd='echo'
14349
archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14350
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14351
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14352
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}'
14353
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}'
14363
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14364
hardcode_libdir_flag_spec_F77='-L$libdir'
14365
hardcode_shlibpath_var_F77=no
14372
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14373
# support. Future versions do this automatically, but an explicit c++rt0.o
14374
# does not break anything, and helps significantly (at the cost of a little
14377
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14378
hardcode_libdir_flag_spec_F77='-R$libdir'
14379
hardcode_direct_F77=yes
14380
hardcode_shlibpath_var_F77=no
14383
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
14385
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14386
hardcode_direct_F77=yes
14387
hardcode_minus_L_F77=yes
14388
hardcode_shlibpath_var_F77=no
14391
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14392
freebsd* | kfreebsd*-gnu | dragonfly*)
14393
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14394
hardcode_libdir_flag_spec_F77='-R$libdir'
14395
hardcode_direct_F77=yes
14396
hardcode_shlibpath_var_F77=no
14400
if test "$GCC" = yes; then
14401
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'
14403
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'
14405
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14406
hardcode_libdir_separator_F77=:
14407
hardcode_direct_F77=yes
14409
# hardcode_minus_L: Not really in the search PATH,
14410
# but as the default location of the library.
14411
hardcode_minus_L_F77=yes
14412
export_dynamic_flag_spec_F77='${wl}-E'
14416
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14417
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14419
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14421
if test "$with_gnu_ld" = no; then
14422
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14423
hardcode_libdir_separator_F77=:
14425
hardcode_direct_F77=yes
14426
export_dynamic_flag_spec_F77='${wl}-E'
14428
# hardcode_minus_L: Not really in the search PATH,
14429
# but as the default location of the library.
14430
hardcode_minus_L_F77=yes
14435
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14438
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14441
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14444
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14450
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14453
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14456
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14460
if test "$with_gnu_ld" = no; then
14461
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14462
hardcode_libdir_separator_F77=:
14466
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14467
hardcode_direct_F77=no
14468
hardcode_shlibpath_var_F77=no
14471
hardcode_direct_F77=yes
14472
export_dynamic_flag_spec_F77='${wl}-E'
14474
# hardcode_minus_L: Not really in the search PATH,
14475
# but as the default location of the library.
14476
hardcode_minus_L_F77=yes
14482
irix5* | irix6* | nonstopux*)
14483
if test "$GCC" = yes; then
14484
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'
14486
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'
14487
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14489
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14490
hardcode_libdir_separator_F77=:
14491
link_all_deplibs_F77=yes
14495
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14496
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14498
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14500
hardcode_libdir_flag_spec_F77='-R$libdir'
14501
hardcode_direct_F77=yes
14502
hardcode_shlibpath_var_F77=no
14506
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14507
hardcode_direct_F77=yes
14508
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14509
hardcode_libdir_separator_F77=:
14510
hardcode_shlibpath_var_F77=no
14514
hardcode_direct_F77=yes
14515
hardcode_shlibpath_var_F77=no
14516
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14517
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14518
archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14519
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14520
export_dynamic_flag_spec_F77='${wl}-E'
14523
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14524
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14525
hardcode_libdir_flag_spec_F77='-R$libdir'
14528
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14529
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14536
hardcode_libdir_flag_spec_F77='-L$libdir'
14537
hardcode_minus_L_F77=yes
14538
allow_undefined_flag_F77=unsupported
14539
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'
14540
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14544
if test "$GCC" = yes; then
14545
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14546
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'
14548
allow_undefined_flag_F77=' -expect_unresolved \*'
14549
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'
14551
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14552
hardcode_libdir_separator_F77=:
14555
osf4* | osf5*) # as osf3* with the addition of -msym flag
14556
if test "$GCC" = yes; then
14557
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14558
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'
14559
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14561
allow_undefined_flag_F77=' -expect_unresolved \*'
14562
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'
14563
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~
14564
$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'
14566
# Both c and cxx compiler support -rpath directly
14567
hardcode_libdir_flag_spec_F77='-rpath $libdir'
14569
hardcode_libdir_separator_F77=:
14573
no_undefined_flag_F77=' -z text'
14574
if test "$GCC" = yes; then
14576
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14577
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14578
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14581
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14582
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14583
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14585
hardcode_libdir_flag_spec_F77='-R$libdir'
14586
hardcode_shlibpath_var_F77=no
14588
solaris2.[0-5] | solaris2.[0-5].*) ;;
14590
# The compiler driver will combine linker options so we
14591
# cannot just pass the convience library names through
14592
# without $wl, iff we do not link with $LD.
14593
# Luckily, gcc supports the same syntax we need for Sun Studio.
14594
# Supported since Solaris 2.6 (maybe 2.5.1?)
14597
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14599
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' ;;
14602
link_all_deplibs_F77=yes
14606
if test "x$host_vendor" = xsequent; then
14607
# Use $CC to link under sequent, because it throws in some extra .o
14608
# files that make .init and .fini sections work.
14609
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14611
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14613
hardcode_libdir_flag_spec_F77='-L$libdir'
14614
hardcode_direct_F77=yes
14615
hardcode_minus_L_F77=yes
14616
hardcode_shlibpath_var_F77=no
14620
case $host_vendor in
14622
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14623
hardcode_direct_F77=yes # is this really true???
14626
## LD is ld it makes a PLAMLIB
14627
## CC just makes a GrossModule.
14628
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14629
reload_cmds_F77='$CC -r -o $output$reload_objs'
14630
hardcode_direct_F77=no
14633
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14634
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14637
runpath_var='LD_RUN_PATH'
14638
hardcode_shlibpath_var_F77=no
14642
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14643
hardcode_shlibpath_var_F77=no
14644
export_dynamic_flag_spec_F77='-Bexport'
14648
if test -d /usr/nec; then
14649
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14650
hardcode_shlibpath_var_F77=no
14651
runpath_var=LD_RUN_PATH
14652
hardcode_runpath_var=yes
14657
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14658
no_undefined_flag_F77='${wl}-z,text'
14659
archive_cmds_need_lc_F77=no
14660
hardcode_shlibpath_var_F77=no
14661
runpath_var='LD_RUN_PATH'
14663
if test "$GCC" = yes; then
14664
archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14665
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14667
archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14668
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14672
sysv5* | sco3.2v5* | sco5v6*)
14673
# Note: We can NOT use -z defs as we might desire, because we do not
14674
# link with -lc, and that would cause any symbols used from libc to
14675
# always be unresolved, which means just about no library would
14676
# ever link correctly. If we're not using GNU ld we use -z text
14677
# though, which does catch some bad symbols but isn't as heavy-handed
14679
no_undefined_flag_F77='${wl}-z,text'
14680
allow_undefined_flag_F77='${wl}-z,nodefs'
14681
archive_cmds_need_lc_F77=no
14682
hardcode_shlibpath_var_F77=no
14683
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14684
hardcode_libdir_separator_F77=':'
14685
link_all_deplibs_F77=yes
14686
export_dynamic_flag_spec_F77='${wl}-Bexport'
14687
runpath_var='LD_RUN_PATH'
14689
if test "$GCC" = yes; then
14690
archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14691
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14693
archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14694
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14699
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14700
hardcode_libdir_flag_spec_F77='-L$libdir'
14701
hardcode_shlibpath_var_F77=no
14710
{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14711
echo "${ECHO_T}$ld_shlibs_F77" >&6; }
14712
test "$ld_shlibs_F77" = no && can_build_shared=no
14715
# Do we need to explicitly link libc?
14717
case "x$archive_cmds_need_lc_F77" in
14719
# Assume -lc should be added
14720
archive_cmds_need_lc_F77=yes
14722
if test "$enable_shared" = yes && test "$GCC" = yes; then
14723
case $archive_cmds_F77 in
14725
# FIXME: we may have to deal with multi-command sequences.
14728
# Test whether the compiler implicitly links with -lc since on some
14729
# systems, -lgcc has to come before -lc. If gcc already passes -lc
14730
# to ld, don't add -lc before -lgcc.
14731
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14732
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14734
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14736
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14737
(eval $ac_compile) 2>&5
14739
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14740
(exit $ac_status); } 2>conftest.err; then
14743
libobjs=conftest.$ac_objext
14745
wl=$lt_prog_compiler_wl_F77
14746
pic_flag=$lt_prog_compiler_pic_F77
14752
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14753
allow_undefined_flag_F77=
14754
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14755
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14757
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14758
(exit $ac_status); }
14760
archive_cmds_need_lc_F77=no
14762
archive_cmds_need_lc_F77=yes
14764
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14766
cat conftest.err 1>&5
14769
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14770
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
14777
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14778
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14779
library_names_spec=
14780
libname_spec='lib$name'
14784
postuninstall_cmds=
14788
shlibpath_overrides_runpath=unknown
14790
dynamic_linker="$host_os ld.so"
14791
sys_lib_dlsearch_path_spec="/lib /usr/lib"
14792
if test "$GCC" = yes; then
14793
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14794
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14795
# if the path contains ";" then we assume it to be the separator
14796
# otherwise default to the standard path separator (i.e. ":") - it is
14797
# assumed that no part of a normal pathname contains ";" but that should
14798
# okay in the real world where ";" in dirpaths is itself problematic.
14799
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14801
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14804
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14806
need_lib_prefix=unknown
14807
hardcode_into_libs=no
14809
# when you set need_version to no, make sure it does not cause -set_version
14810
# flags to be left without arguments
14811
need_version=unknown
14816
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14817
shlibpath_var=LIBPATH
14819
# AIX 3 has no versioning support, so we append a major version to the name.
14820
soname_spec='${libname}${release}${shared_ext}$major'
14827
hardcode_into_libs=yes
14828
if test "$host_cpu" = ia64; then
14829
# AIX 5 supports IA64
14830
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14831
shlibpath_var=LD_LIBRARY_PATH
14833
# With GCC up to 2.95.x, collect2 would create an import file
14834
# for dependence libraries. The import file would start with
14835
# the line `#! .'. This would cause the generated library to
14836
# depend on `.', always an invalid library. This was fixed in
14837
# development snapshots of GCC prior to 3.0.
14839
aix4 | aix4.[01] | aix4.[01].*)
14840
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14842
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14845
can_build_shared=no
14849
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14850
# soname into executable. Probably we can add versioning support to
14851
# collect2, so additional links can be useful in future.
14852
if test "$aix_use_runtimelinking" = yes; then
14853
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
14854
# instead of lib<name>.a to let people know that these are not
14855
# typical AIX shared libraries.
14856
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14858
# We preserve .a as extension for shared libraries through AIX4.2
14859
# and later when we are not doing run time linking.
14860
library_names_spec='${libname}${release}.a $libname.a'
14861
soname_spec='${libname}${release}${shared_ext}$major'
14863
shlibpath_var=LIBPATH
14868
library_names_spec='$libname.ixlibrary $libname.a'
14869
# Create ${libname}_ixlibrary.a entries in /sys/libs.
14870
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'
14874
library_names_spec='${libname}${shared_ext}'
14875
dynamic_linker="$host_os ld.so"
14876
shlibpath_var=LIBRARY_PATH
14882
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14883
soname_spec='${libname}${release}${shared_ext}$major'
14884
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14885
shlibpath_var=LD_LIBRARY_PATH
14886
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14887
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14888
# the default ld.so.conf also contains /usr/contrib/lib and
14889
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14890
# libtool to hard-code these into programs
14893
cygwin* | mingw* | pw32*)
14894
version_type=windows
14899
case $GCC,$host_os in
14900
yes,cygwin* | yes,mingw* | yes,pw32*)
14901
library_names_spec='$libname.dll.a'
14902
# DLL is installed to $(libdir)/../bin by postinstall_cmds
14903
postinstall_cmds='base_file=`basename \${file}`~
14904
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14905
dldir=$destdir/`dirname \$dlpath`~
14906
test -d \$dldir || mkdir -p \$dldir~
14907
$install_prog $dir/$dlname \$dldir/$dlname~
14908
chmod a+x \$dldir/$dlname'
14909
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14910
dlpath=$dir/\$dldll~
14912
shlibpath_overrides_runpath=yes
14916
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
14917
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14918
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14921
# MinGW DLLs use traditional 'lib' prefix
14922
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14923
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14924
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14925
# It is most probably a Windows format PATH printed by
14926
# mingw gcc, but we are running on Cygwin. Gcc prints its search
14927
# path with ; separators, and with drive letters. We can handle the
14928
# drive letters (cygwin fileutils understands them), so leave them,
14929
# especially as we might pass files found there to a mingw objdump,
14930
# which wouldn't understand a cygwinified path. Ahh.
14931
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14933
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14937
# pw32 DLLs use 'pw' prefix rather than 'lib'
14938
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14944
if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
14945
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14946
supports_anon_versioning=no
14947
case `$LD -v 2>/dev/null` in
14948
*\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14949
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14950
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14951
*\ 2.11.*) ;; # other 2.11 versions
14952
*) supports_anon_versioning=yes ;;
14954
if test $supports_anon_versioning = yes; then
14955
archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
14956
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14957
$echo "local: *; };" >> $output_objdir/$libname.ver~
14958
$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14960
$archive_expsym_cmds="$archive_cmds"
14968
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14971
dynamic_linker='Win32 ld.exe'
14972
# FIXME: first we should search . and the directory the executable is in
14976
darwin* | rhapsody*)
14977
dynamic_linker="$host_os dyld"
14978
version_type=darwin
14981
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14982
soname_spec='${libname}${release}${major}$shared_ext'
14983
shlibpath_overrides_runpath=yes
14984
shlibpath_var=DYLD_LIBRARY_PATH
14985
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14986
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14987
if test "$GCC" = yes; then
14988
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"`
14990
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14992
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14999
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15000
soname_spec='${libname}${release}${shared_ext}$major'
15001
shlibpath_var=LD_LIBRARY_PATH
15012
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15013
soname_spec='${libname}${release}${shared_ext}$major'
15014
shlibpath_var=LD_LIBRARY_PATH
15015
shlibpath_overrides_runpath=no
15016
hardcode_into_libs=yes
15017
dynamic_linker='GNU ld.so'
15020
freebsd* | dragonfly*)
15021
# DragonFly does not have aout. When/if they implement a new
15022
# versioning mechanism, adjust this.
15023
if test -x /usr/bin/objformat; then
15024
objformat=`/usr/bin/objformat`
15027
freebsd[123]*) objformat=aout ;;
15028
*) objformat=elf ;;
15031
# Handle Gentoo/FreeBSD as it was Linux
15032
case $host_vendor in
15034
version_type=linux ;;
15036
version_type=freebsd-$objformat ;;
15039
case $version_type in
15041
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15046
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15050
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15051
soname_spec='${libname}${release}${shared_ext}$major'
15056
shlibpath_var=LD_LIBRARY_PATH
15059
shlibpath_overrides_runpath=yes
15061
freebsd3.[01]* | freebsdelf3.[01]*)
15062
shlibpath_overrides_runpath=yes
15063
hardcode_into_libs=yes
15065
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15066
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15067
shlibpath_overrides_runpath=no
15068
hardcode_into_libs=yes
15070
freebsd*) # from 4.6 on
15071
shlibpath_overrides_runpath=yes
15072
hardcode_into_libs=yes
15081
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15082
soname_spec='${libname}${release}${shared_ext}$major'
15083
shlibpath_var=LD_LIBRARY_PATH
15084
hardcode_into_libs=yes
15087
hpux9* | hpux10* | hpux11*)
15088
# Give a soname corresponding to the major version so that dld.sl refuses to
15089
# link against other versions.
15096
hardcode_into_libs=yes
15097
dynamic_linker="$host_os dld.so"
15098
shlibpath_var=LD_LIBRARY_PATH
15099
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15100
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15101
soname_spec='${libname}${release}${shared_ext}$major'
15102
if test "X$HPUX_IA64_MODE" = X32; then
15103
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15105
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15107
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15111
hardcode_into_libs=yes
15112
dynamic_linker="$host_os dld.sl"
15113
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15114
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15115
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15116
soname_spec='${libname}${release}${shared_ext}$major'
15117
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15118
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15122
dynamic_linker="$host_os dld.sl"
15123
shlibpath_var=SHLIB_PATH
15124
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15125
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15126
soname_spec='${libname}${release}${shared_ext}$major'
15129
# HP-UX runs *really* slowly unless shared libraries are mode 555.
15130
postinstall_cmds='chmod 555 $lib'
15137
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15138
soname_spec='${libname}${release}${shared_ext}$major'
15139
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15140
shlibpath_var=LD_LIBRARY_PATH
15141
shlibpath_overrides_runpath=no
15142
hardcode_into_libs=yes
15145
irix5* | irix6* | nonstopux*)
15147
nonstopux*) version_type=nonstopux ;;
15149
if test "$lt_cv_prog_gnu_ld" = yes; then
15157
soname_spec='${libname}${release}${shared_ext}$major'
15158
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15160
irix5* | nonstopux*)
15161
libsuff= shlibsuff=
15164
case $LD in # libtool.m4 will add one of these switches to LD
15165
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15166
libsuff= shlibsuff= libmagic=32-bit;;
15167
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15168
libsuff=32 shlibsuff=N32 libmagic=N32;;
15169
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15170
libsuff=64 shlibsuff=64 libmagic=64-bit;;
15171
*) libsuff= shlibsuff= libmagic=never-match;;
15175
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15176
shlibpath_overrides_runpath=no
15177
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15178
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15179
hardcode_into_libs=yes
15182
# No shared lib support for Linux oldld, aout, or coff.
15183
linux*oldld* | linux*aout* | linux*coff*)
15187
# This must be Linux ELF.
15192
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15193
soname_spec='${libname}${release}${shared_ext}$major'
15194
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15195
shlibpath_var=LD_LIBRARY_PATH
15196
shlibpath_overrides_runpath=no
15197
# This implies no fast_install, which is unacceptable.
15198
# Some rework will be needed to allow for fast_install
15199
# before this can be enabled.
15200
hardcode_into_libs=yes
15202
# Append ld.so.conf contents to the search path
15203
if test -f /etc/ld.so.conf; then
15204
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' ' '`
15205
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15208
# We used to test for /lib/ld.so.1 and disable shared libraries on
15209
# powerpc, because MkLinux only supported shared libraries with the
15210
# GNU dynamic linker. Since this was broken with cross compilers,
15211
# most powerpc-linux boxes support dynamic linking these days and
15212
# people can always --disable-shared, the test was removed, and we
15213
# assume the GNU/Linux dynamic linker is in use.
15214
dynamic_linker='GNU/Linux ld.so'
15221
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15222
soname_spec='${libname}${release}${shared_ext}$major'
15223
shlibpath_var=LD_LIBRARY_PATH
15224
shlibpath_overrides_runpath=no
15225
hardcode_into_libs=yes
15226
dynamic_linker='GNU ld.so'
15233
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15234
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15235
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15236
dynamic_linker='NetBSD (a.out) ld.so'
15238
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15239
soname_spec='${libname}${release}${shared_ext}$major'
15240
dynamic_linker='NetBSD ld.elf_so'
15242
shlibpath_var=LD_LIBRARY_PATH
15243
shlibpath_overrides_runpath=yes
15244
hardcode_into_libs=yes
15249
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15250
shlibpath_var=LD_LIBRARY_PATH
15251
shlibpath_overrides_runpath=yes
15258
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15259
soname_spec='${libname}${release}${shared_ext}$major'
15260
shlibpath_var=LD_LIBRARY_PATH
15261
shlibpath_overrides_runpath=yes
15266
sys_lib_dlsearch_path_spec="/usr/lib"
15268
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15270
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15271
*) need_version=no ;;
15273
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15274
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15275
shlibpath_var=LD_LIBRARY_PATH
15276
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15278
openbsd2.[89] | openbsd2.[89].*)
15279
shlibpath_overrides_runpath=no
15282
shlibpath_overrides_runpath=yes
15286
shlibpath_overrides_runpath=yes
15291
libname_spec='$name'
15294
library_names_spec='$libname${shared_ext} $libname.a'
15295
dynamic_linker='OS/2 ld.exe'
15296
shlibpath_var=LIBPATH
15299
osf3* | osf4* | osf5*)
15303
soname_spec='${libname}${release}${shared_ext}$major'
15304
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15305
shlibpath_var=LD_LIBRARY_PATH
15306
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15307
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
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
shlibpath_var=LD_LIBRARY_PATH
15317
shlibpath_overrides_runpath=yes
15318
hardcode_into_libs=yes
15319
# ldd complains unless libraries are executable
15320
postinstall_cmds='chmod +x $lib'
15325
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15326
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15327
shlibpath_var=LD_LIBRARY_PATH
15328
shlibpath_overrides_runpath=yes
15329
if test "$with_gnu_ld" = yes; then
15337
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15338
soname_spec='${libname}${release}${shared_ext}$major'
15339
shlibpath_var=LD_LIBRARY_PATH
15340
case $host_vendor in
15342
shlibpath_overrides_runpath=no
15344
export_dynamic_flag_spec='${wl}-Blargedynsym'
15345
runpath_var=LD_RUN_PATH
15353
shlibpath_overrides_runpath=no
15354
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15360
if test -d /usr/nec ;then
15362
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15363
soname_spec='$libname${shared_ext}.$major'
15364
shlibpath_var=LD_LIBRARY_PATH
15368
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15369
version_type=freebsd-elf
15372
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15373
soname_spec='${libname}${release}${shared_ext}$major'
15374
shlibpath_var=LD_LIBRARY_PATH
15375
hardcode_into_libs=yes
15376
if test "$with_gnu_ld" = yes; then
15377
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15378
shlibpath_overrides_runpath=no
15380
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15381
shlibpath_overrides_runpath=yes
15384
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15388
sys_lib_dlsearch_path_spec='/usr/lib'
15393
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15394
soname_spec='${libname}${release}${shared_ext}$major'
15395
shlibpath_var=LD_LIBRARY_PATH
15402
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15403
echo "${ECHO_T}$dynamic_linker" >&6; }
15404
test "$dynamic_linker" = no && can_build_shared=no
15406
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15407
if test "$GCC" = yes; then
15408
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15411
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15412
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15413
hardcode_action_F77=
15414
if test -n "$hardcode_libdir_flag_spec_F77" || \
15415
test -n "$runpath_var_F77" || \
15416
test "X$hardcode_automatic_F77" = "Xyes" ; then
15418
# We can hardcode non-existant directories.
15419
if test "$hardcode_direct_F77" != no &&
15420
# If the only mechanism to avoid hardcoding is shlibpath_var, we
15421
# have to relink, otherwise we might link with an installed library
15422
# when we should be linking with a yet-to-be-installed one
15423
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15424
test "$hardcode_minus_L_F77" != no; then
15425
# Linking always hardcodes the temporary library directory.
15426
hardcode_action_F77=relink
15428
# We can link without hardcoding, and we can hardcode nonexisting dirs.
15429
hardcode_action_F77=immediate
15432
# We cannot hardcode anything, or else we can only hardcode existing
15434
hardcode_action_F77=unsupported
15436
{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15437
echo "${ECHO_T}$hardcode_action_F77" >&6; }
15439
if test "$hardcode_action_F77" = relink; then
15440
# Fast installation is not supported
15441
enable_fast_install=no
15442
elif test "$shlibpath_overrides_runpath" = yes ||
15443
test "$enable_shared" = no; then
15444
# Fast installation is not necessary
15445
enable_fast_install=needless
15449
# The else clause should only fire when bootstrapping the
15450
# libtool distribution, otherwise you forgot to ship ltmain.sh
15451
# with your package, and you will get complaints that there are
15452
# no rules to generate ltmain.sh.
15453
if test -f "$ltmain"; then
15454
# See if we are running on zsh, and set the options which allow our commands through
15455
# without removal of \ escapes.
15456
if test -n "${ZSH_VERSION+set}" ; then
15457
setopt NO_GLOB_SUBST
15459
# Now quote all the things that may contain metacharacters while being
15460
# careful not to overquote the AC_SUBSTed values. We take copies of the
15461
# variables and quote the copies for generation of the libtool script.
15462
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15464
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15465
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15466
deplibs_check_method reload_flag reload_cmds need_locks \
15467
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15468
lt_cv_sys_global_symbol_to_c_name_address \
15469
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15470
old_postinstall_cmds old_postuninstall_cmds \
15474
lt_prog_compiler_wl_F77 \
15475
lt_prog_compiler_pic_F77 \
15476
lt_prog_compiler_static_F77 \
15477
lt_prog_compiler_no_builtin_flag_F77 \
15478
export_dynamic_flag_spec_F77 \
15479
thread_safe_flag_spec_F77 \
15480
whole_archive_flag_spec_F77 \
15481
enable_shared_with_static_runtimes_F77 \
15482
old_archive_cmds_F77 \
15483
old_archive_from_new_cmds_F77 \
15484
predep_objects_F77 \
15485
postdep_objects_F77 \
15488
compiler_lib_search_path_F77 \
15490
archive_expsym_cmds_F77 \
15491
postinstall_cmds_F77 \
15492
postuninstall_cmds_F77 \
15493
old_archive_from_expsyms_cmds_F77 \
15494
allow_undefined_flag_F77 \
15495
no_undefined_flag_F77 \
15496
export_symbols_cmds_F77 \
15497
hardcode_libdir_flag_spec_F77 \
15498
hardcode_libdir_flag_spec_ld_F77 \
15499
hardcode_libdir_separator_F77 \
15500
hardcode_automatic_F77 \
15502
module_expsym_cmds_F77 \
15503
lt_cv_prog_compiler_c_o_F77 \
15504
exclude_expsyms_F77 \
15505
include_expsyms_F77; do
15508
old_archive_cmds_F77 | \
15509
old_archive_from_new_cmds_F77 | \
15510
archive_cmds_F77 | \
15511
archive_expsym_cmds_F77 | \
15512
module_cmds_F77 | \
15513
module_expsym_cmds_F77 | \
15514
old_archive_from_expsyms_cmds_F77 | \
15515
export_symbols_cmds_F77 | \
15516
extract_expsyms_cmds | reload_cmds | finish_cmds | \
15517
postinstall_cmds | postuninstall_cmds | \
15518
old_postinstall_cmds | old_postuninstall_cmds | \
15519
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15520
# Double-quote double-evaled strings.
15521
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15524
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15530
*'\$0 --fallback-echo"')
15531
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15537
cat <<__EOF__ >> "$cfgfile"
15538
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15540
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15542
# Shell to use when invoking shell scripts.
15545
# Whether or not to build shared libraries.
15546
build_libtool_libs=$enable_shared
15548
# Whether or not to build static libraries.
15549
build_old_libs=$enable_static
15551
# Whether or not to add -lc for building shared libraries.
15552
build_libtool_need_lc=$archive_cmds_need_lc_F77
15554
# Whether or not to disallow shared libs when runtime libs are static
15555
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15557
# Whether or not to optimize for fast installation.
15558
fast_install=$enable_fast_install
15561
host_alias=$host_alias
15565
# The build system.
15566
build_alias=$build_alias
15570
# An echo program that does not interpret backslashes.
15575
AR_FLAGS=$lt_AR_FLAGS
15580
# LTCC compiler flags.
15581
LTCFLAGS=$lt_LTCFLAGS
15583
# A language-specific compiler.
15584
CC=$lt_compiler_F77
15586
# Is the compiler the GNU C compiler?
15592
# The linker used to build libraries.
15595
# Whether we need hard or soft links.
15598
# A BSD-compatible nm program.
15601
# A symbol stripping program
15604
# Used to examine libraries when file_magic_cmd begins "file"
15605
MAGIC_CMD=$MAGIC_CMD
15607
# Used on cygwin: DLL creation program.
15610
# Used on cygwin: object dumper.
15613
# Used on cygwin: assembler.
15616
# The name of the directory that contains temporary libtool files.
15619
# How to create reloadable object files.
15620
reload_flag=$lt_reload_flag
15621
reload_cmds=$lt_reload_cmds
15623
# How to pass a linker flag through the compiler.
15624
wl=$lt_lt_prog_compiler_wl_F77
15626
# Object file suffix (normally "o").
15627
objext="$ac_objext"
15629
# Old archive suffix (normally "a").
15632
# Shared library suffix (normally ".so").
15633
shrext_cmds='$shrext_cmds'
15635
# Executable file suffix (normally "").
15638
# Additional compiler flags for building library objects.
15639
pic_flag=$lt_lt_prog_compiler_pic_F77
15642
# What is the maximum length of a command?
15643
max_cmd_len=$lt_cv_sys_max_cmd_len
15645
# Does compiler simultaneously support -c and -o options?
15646
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15648
# Must we lock files when doing compilation?
15649
need_locks=$lt_need_locks
15651
# Do we need the lib prefix for modules?
15652
need_lib_prefix=$need_lib_prefix
15654
# Do we need a version for libraries?
15655
need_version=$need_version
15657
# Whether dlopen is supported.
15658
dlopen_support=$enable_dlopen
15660
# Whether dlopen of programs is supported.
15661
dlopen_self=$enable_dlopen_self
15663
# Whether dlopen of statically linked programs is supported.
15664
dlopen_self_static=$enable_dlopen_self_static
15666
# Compiler flag to prevent dynamic linking.
15667
link_static_flag=$lt_lt_prog_compiler_static_F77
15669
# Compiler flag to turn off builtin functions.
15670
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15672
# Compiler flag to allow reflexive dlopens.
15673
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15675
# Compiler flag to generate shared objects directly from archives.
15676
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15678
# Compiler flag to generate thread-safe objects.
15679
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15681
# Library versioning type.
15682
version_type=$version_type
15684
# Format of library name prefix.
15685
libname_spec=$lt_libname_spec
15687
# List of archive names. First name is the real one, the rest are links.
15688
# The last name is the one that the linker finds with -lNAME.
15689
library_names_spec=$lt_library_names_spec
15691
# The coded name of the library, if different from the real name.
15692
soname_spec=$lt_soname_spec
15694
# Commands used to build and install an old-style archive.
15696
old_archive_cmds=$lt_old_archive_cmds_F77
15697
old_postinstall_cmds=$lt_old_postinstall_cmds
15698
old_postuninstall_cmds=$lt_old_postuninstall_cmds
15700
# Create an old-style archive from a shared archive.
15701
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15703
# Create a temporary old-style archive to link instead of a shared archive.
15704
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15706
# Commands used to build and install a shared archive.
15707
archive_cmds=$lt_archive_cmds_F77
15708
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15709
postinstall_cmds=$lt_postinstall_cmds
15710
postuninstall_cmds=$lt_postuninstall_cmds
15712
# Commands used to build a loadable module (assumed same as above if empty)
15713
module_cmds=$lt_module_cmds_F77
15714
module_expsym_cmds=$lt_module_expsym_cmds_F77
15716
# Commands to strip libraries.
15717
old_striplib=$lt_old_striplib
15718
striplib=$lt_striplib
15720
# Dependencies to place before the objects being linked to create a
15722
predep_objects=$lt_predep_objects_F77
15724
# Dependencies to place after the objects being linked to create a
15726
postdep_objects=$lt_postdep_objects_F77
15728
# Dependencies to place before the objects being linked to create a
15730
predeps=$lt_predeps_F77
15732
# Dependencies to place after the objects being linked to create a
15734
postdeps=$lt_postdeps_F77
15736
# The library search path used internally by the compiler when linking
15737
# a shared library.
15738
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15740
# Method to check whether dependent libraries are shared objects.
15741
deplibs_check_method=$lt_deplibs_check_method
15743
# Command to use when deplibs_check_method == file_magic.
15744
file_magic_cmd=$lt_file_magic_cmd
15746
# Flag that allows shared libraries with undefined symbols to be built.
15747
allow_undefined_flag=$lt_allow_undefined_flag_F77
15749
# Flag that forces no undefined symbols.
15750
no_undefined_flag=$lt_no_undefined_flag_F77
15752
# Commands used to finish a libtool library installation in a directory.
15753
finish_cmds=$lt_finish_cmds
15755
# Same as above, but a single script fragment to be evaled but not shown.
15756
finish_eval=$lt_finish_eval
15758
# Take the output of nm and produce a listing of raw symbols and C names.
15759
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15761
# Transform the output of nm in a proper C declaration
15762
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15764
# Transform the output of nm in a C name address pair
15765
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15767
# This is the shared library runtime path variable.
15768
runpath_var=$runpath_var
15770
# This is the shared library path variable.
15771
shlibpath_var=$shlibpath_var
15773
# Is shlibpath searched before the hard-coded library search path?
15774
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15776
# How to hardcode a shared library path into an executable.
15777
hardcode_action=$hardcode_action_F77
15779
# Whether we should hardcode library paths into libraries.
15780
hardcode_into_libs=$hardcode_into_libs
15782
# Flag to hardcode \$libdir into a binary during linking.
15783
# This must work even if \$libdir does not exist.
15784
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15786
# If ld is used when linking, flag to hardcode \$libdir into
15787
# a binary during linking. This must work even if \$libdir does
15789
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15791
# Whether we need a single -rpath flag with a separated argument.
15792
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15794
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15795
# resulting binary.
15796
hardcode_direct=$hardcode_direct_F77
15798
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15799
# resulting binary.
15800
hardcode_minus_L=$hardcode_minus_L_F77
15802
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15803
# the resulting binary.
15804
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15806
# Set to yes if building a shared library automatically hardcodes DIR into the library
15807
# and all subsequent libraries and executables linked against it.
15808
hardcode_automatic=$hardcode_automatic_F77
15810
# Variables whose values should be saved in libtool wrapper scripts and
15811
# restored at relink time.
15812
variables_saved_for_relink="$variables_saved_for_relink"
15814
# Whether libtool must link a program against all its dependency libraries.
15815
link_all_deplibs=$link_all_deplibs_F77
15817
# Compile-time system search path for libraries
15818
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15820
# Run-time system search path for libraries
15821
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15823
# Fix the shell variable \$srcfile for the compiler.
15824
fix_srcfile_path="$fix_srcfile_path_F77"
15826
# Set to yes if exported symbols are required.
15827
always_export_symbols=$always_export_symbols_F77
15829
# The commands to list exported symbols.
15830
export_symbols_cmds=$lt_export_symbols_cmds_F77
15832
# The commands to extract the exported symbol list from a shared archive.
15833
extract_expsyms_cmds=$lt_extract_expsyms_cmds
15835
# Symbols that should not be listed in the preloaded symbols.
15836
exclude_expsyms=$lt_exclude_expsyms_F77
15838
# Symbols that must always be exported.
15839
include_expsyms=$lt_include_expsyms_F77
15841
# ### END LIBTOOL TAG CONFIG: $tagname
15847
# If there is no Makefile yet, we rely on a make rule to execute
15848
# `config.status --recheck' to rerun these tests and create the
15849
# libtool script then.
15850
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15851
if test -f "$ltmain_in"; then
15852
test -f Makefile && make "$ltmain"
15858
ac_cpp='$CPP $CPPFLAGS'
15859
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15860
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15861
ac_compiler_gnu=$ac_cv_c_compiler_gnu
15871
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15874
# Source file extension for Java test sources.
15877
# Object file extension for compiled Java test sources.
15881
# Code to be used in simple compile tests
15882
lt_simple_compile_test_code="class foo {}\n"
15884
# Code to be used in simple link tests
15885
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15887
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15889
# If no C compiler was specified, use CC.
15892
# If no C compiler flags were specified, use CFLAGS.
15893
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15895
# Allow CC to be a program name with arguments.
15899
# save warnings/boilerplate of simple test code
15900
ac_outfile=conftest.$ac_objext
15901
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15902
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15903
_lt_compiler_boilerplate=`cat conftest.err`
15906
ac_outfile=conftest.$ac_objext
15907
printf "$lt_simple_link_test_code" >conftest.$ac_ext
15908
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15909
_lt_linker_boilerplate=`cat conftest.err`
15913
# Allow CC to be a program name with arguments.
15918
for cc_temp in $compiler""; do
15920
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15921
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15926
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15929
# GCJ did not exist at the time GCC didn't implicitly link libc in.
15930
archive_cmds_need_lc_GCJ=no
15932
old_archive_cmds_GCJ=$old_archive_cmds
15935
lt_prog_compiler_no_builtin_flag_GCJ=
15937
if test "$GCC" = yes; then
15938
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15941
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15942
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
15943
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15944
echo $ECHO_N "(cached) $ECHO_C" >&6
15946
lt_cv_prog_compiler_rtti_exceptions=no
15947
ac_outfile=conftest.$ac_objext
15948
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15949
lt_compiler_flag="-fno-rtti -fno-exceptions"
15950
# Insert the option either (1) after the last *FLAGS variable, or
15951
# (2) before a word containing "conftest.", or (3) at the end.
15952
# Note that $ac_compile itself does not contain backslashes and begins
15953
# with a dollar sign (not a hyphen), so the echo should work correctly.
15954
# The option is referenced via a variable to avoid confusing sed.
15955
lt_compile=`echo "$ac_compile" | $SED \
15956
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15957
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15958
-e 's:$: $lt_compiler_flag:'`
15959
(eval echo "\"\$as_me:15959: $lt_compile\"" >&5)
15960
(eval "$lt_compile" 2>conftest.err)
15962
cat conftest.err >&5
15963
echo "$as_me:15963: \$? = $ac_status" >&5
15964
if (exit $ac_status) && test -s "$ac_outfile"; then
15965
# The compiler can only warn and ignore the option if not recognized
15966
# So say no if there are warnings other than the usual output.
15967
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15968
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15969
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15970
lt_cv_prog_compiler_rtti_exceptions=yes
15976
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15977
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15979
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15980
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15987
lt_prog_compiler_wl_GCJ=
15988
lt_prog_compiler_pic_GCJ=
15989
lt_prog_compiler_static_GCJ=
15991
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15992
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15994
if test "$GCC" = yes; then
15995
lt_prog_compiler_wl_GCJ='-Wl,'
15996
lt_prog_compiler_static_GCJ='-static'
16000
# All AIX code is PIC.
16001
if test "$host_cpu" = ia64; then
16002
# AIX 5 now supports IA64 processor
16003
lt_prog_compiler_static_GCJ='-Bstatic'
16008
# FIXME: we need at least 68020 code to build shared libraries, but
16009
# adding the `-m68020' flag to GCC prevents building anything better,
16011
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16014
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16015
# PIC is the default for these OSes.
16018
mingw* | pw32* | os2*)
16019
# This hack is so that the source file can tell whether it is being
16020
# built for inclusion in a dll (and should export symbols for example).
16021
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16024
darwin* | rhapsody*)
16025
# PIC is the default on this platform
16026
# Common symbols not allowed in MH_DYLIB files
16027
lt_prog_compiler_pic_GCJ='-fno-common'
16031
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
16032
# Instead, we relocate shared libraries at runtime.
16036
# Just because we use GCC doesn't mean we suddenly get shared libraries
16037
# on systems that don't support them.
16038
lt_prog_compiler_can_build_shared_GCJ=no
16043
if test -d /usr/nec; then
16044
lt_prog_compiler_pic_GCJ=-Kconform_pic
16049
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16050
# not for PA HP-UX.
16056
lt_prog_compiler_pic_GCJ='-fPIC'
16062
lt_prog_compiler_pic_GCJ='-fPIC'
16066
# PORTME Check for flag to pass linker flags through the system compiler.
16069
lt_prog_compiler_wl_GCJ='-Wl,'
16070
if test "$host_cpu" = ia64; then
16071
# AIX 5 now supports IA64 processor
16072
lt_prog_compiler_static_GCJ='-Bstatic'
16074
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16078
# PIC is the default on this platform
16079
# Common symbols not allowed in MH_DYLIB files
16080
case $cc_basename in
16082
lt_prog_compiler_pic_GCJ='-qnocommon'
16083
lt_prog_compiler_wl_GCJ='-Wl,'
16088
mingw* | pw32* | os2*)
16089
# This hack is so that the source file can tell whether it is being
16090
# built for inclusion in a dll (and should export symbols for example).
16091
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16094
hpux9* | hpux10* | hpux11*)
16095
lt_prog_compiler_wl_GCJ='-Wl,'
16096
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16097
# not for PA HP-UX.
16103
lt_prog_compiler_pic_GCJ='+Z'
16106
# Is there a better lt_prog_compiler_static that works with the bundled CC?
16107
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16110
irix5* | irix6* | nonstopux*)
16111
lt_prog_compiler_wl_GCJ='-Wl,'
16112
# PIC (with -KPIC) is the default.
16113
lt_prog_compiler_static_GCJ='-non_shared'
16117
lt_prog_compiler_pic_GCJ='-KPIC'
16118
lt_prog_compiler_static_GCJ='-Bstatic'
16122
case $cc_basename in
16124
lt_prog_compiler_wl_GCJ='-Wl,'
16125
lt_prog_compiler_pic_GCJ='-KPIC'
16126
lt_prog_compiler_static_GCJ='-static'
16128
pgcc* | pgf77* | pgf90* | pgf95*)
16129
# Portland Group compilers (*not* the Pentium gcc compiler,
16130
# which looks to be a dead project)
16131
lt_prog_compiler_wl_GCJ='-Wl,'
16132
lt_prog_compiler_pic_GCJ='-fpic'
16133
lt_prog_compiler_static_GCJ='-Bstatic'
16136
lt_prog_compiler_wl_GCJ='-Wl,'
16137
# All Alpha code is PIC.
16138
lt_prog_compiler_static_GCJ='-non_shared'
16143
osf3* | osf4* | osf5*)
16144
lt_prog_compiler_wl_GCJ='-Wl,'
16145
# All OSF/1 code is PIC.
16146
lt_prog_compiler_static_GCJ='-non_shared'
16150
lt_prog_compiler_pic_GCJ='-KPIC'
16151
lt_prog_compiler_static_GCJ='-Bstatic'
16152
case $cc_basename in
16153
f77* | f90* | f95*)
16154
lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16156
lt_prog_compiler_wl_GCJ='-Wl,';;
16161
lt_prog_compiler_wl_GCJ='-Qoption ld '
16162
lt_prog_compiler_pic_GCJ='-PIC'
16163
lt_prog_compiler_static_GCJ='-Bstatic'
16166
sysv4 | sysv4.2uw2* | sysv4.3*)
16167
lt_prog_compiler_wl_GCJ='-Wl,'
16168
lt_prog_compiler_pic_GCJ='-KPIC'
16169
lt_prog_compiler_static_GCJ='-Bstatic'
16173
if test -d /usr/nec ;then
16174
lt_prog_compiler_pic_GCJ='-Kconform_pic'
16175
lt_prog_compiler_static_GCJ='-Bstatic'
16179
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16180
lt_prog_compiler_wl_GCJ='-Wl,'
16181
lt_prog_compiler_pic_GCJ='-KPIC'
16182
lt_prog_compiler_static_GCJ='-Bstatic'
16186
lt_prog_compiler_wl_GCJ='-Wl,'
16187
lt_prog_compiler_can_build_shared_GCJ=no
16191
lt_prog_compiler_pic_GCJ='-pic'
16192
lt_prog_compiler_static_GCJ='-Bstatic'
16196
lt_prog_compiler_can_build_shared_GCJ=no
16201
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16202
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16205
# Check to make sure the PIC flag actually works.
16207
if test -n "$lt_prog_compiler_pic_GCJ"; then
16209
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16210
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16211
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16212
echo $ECHO_N "(cached) $ECHO_C" >&6
16214
lt_prog_compiler_pic_works_GCJ=no
16215
ac_outfile=conftest.$ac_objext
16216
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16217
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16218
# Insert the option either (1) after the last *FLAGS variable, or
16219
# (2) before a word containing "conftest.", or (3) at the end.
16220
# Note that $ac_compile itself does not contain backslashes and begins
16221
# with a dollar sign (not a hyphen), so the echo should work correctly.
16222
# The option is referenced via a variable to avoid confusing sed.
16223
lt_compile=`echo "$ac_compile" | $SED \
16224
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16225
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16226
-e 's:$: $lt_compiler_flag:'`
16227
(eval echo "\"\$as_me:16227: $lt_compile\"" >&5)
16228
(eval "$lt_compile" 2>conftest.err)
16230
cat conftest.err >&5
16231
echo "$as_me:16231: \$? = $ac_status" >&5
16232
if (exit $ac_status) && test -s "$ac_outfile"; then
16233
# The compiler can only warn and ignore the option if not recognized
16234
# So say no if there are warnings other than the usual output.
16235
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16236
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16237
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16238
lt_prog_compiler_pic_works_GCJ=yes
16244
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16245
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16247
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16248
case $lt_prog_compiler_pic_GCJ in
16250
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16253
lt_prog_compiler_pic_GCJ=
16254
lt_prog_compiler_can_build_shared_GCJ=no
16259
# For platforms which do not support PIC, -DPIC is meaningless:
16261
lt_prog_compiler_pic_GCJ=
16264
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16269
# Check to make sure the static flag actually works.
16271
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16272
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16273
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16274
if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16275
echo $ECHO_N "(cached) $ECHO_C" >&6
16277
lt_prog_compiler_static_works_GCJ=no
16278
save_LDFLAGS="$LDFLAGS"
16279
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16280
printf "$lt_simple_link_test_code" > conftest.$ac_ext
16281
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16282
# The linker can only warn and ignore the option if not recognized
16283
# So say no if there are warnings
16284
if test -s conftest.err; then
16285
# Append any errors to the config.log.
16286
cat conftest.err 1>&5
16287
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16288
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16289
if diff conftest.exp conftest.er2 >/dev/null; then
16290
lt_prog_compiler_static_works_GCJ=yes
16293
lt_prog_compiler_static_works_GCJ=yes
16297
LDFLAGS="$save_LDFLAGS"
16300
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16301
echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16303
if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16306
lt_prog_compiler_static_GCJ=
16310
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16311
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16312
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16313
echo $ECHO_N "(cached) $ECHO_C" >&6
16315
lt_cv_prog_compiler_c_o_GCJ=no
16316
$rm -r conftest 2>/dev/null
16320
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16322
lt_compiler_flag="-o out/conftest2.$ac_objext"
16323
# Insert the option either (1) after the last *FLAGS variable, or
16324
# (2) before a word containing "conftest.", or (3) at the end.
16325
# Note that $ac_compile itself does not contain backslashes and begins
16326
# with a dollar sign (not a hyphen), so the echo should work correctly.
16327
lt_compile=`echo "$ac_compile" | $SED \
16328
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16329
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16330
-e 's:$: $lt_compiler_flag:'`
16331
(eval echo "\"\$as_me:16331: $lt_compile\"" >&5)
16332
(eval "$lt_compile" 2>out/conftest.err)
16334
cat out/conftest.err >&5
16335
echo "$as_me:16335: \$? = $ac_status" >&5
16336
if (exit $ac_status) && test -s out/conftest2.$ac_objext
16338
# The compiler can only warn and ignore the option if not recognized
16339
# So say no if there are warnings
16340
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16341
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16342
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16343
lt_cv_prog_compiler_c_o_GCJ=yes
16348
# SGI C++ compiler will create directory out/ii_files/ for
16349
# template instantiation
16350
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16351
$rm out/* && rmdir out
16357
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16358
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16361
hard_links="nottested"
16362
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16363
# do not overwrite the value of need_locks provided by the user
16364
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16365
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16368
ln conftest.a conftest.b 2>/dev/null && hard_links=no
16370
ln conftest.a conftest.b 2>&5 || hard_links=no
16371
ln conftest.a conftest.b 2>/dev/null && hard_links=no
16372
{ echo "$as_me:$LINENO: result: $hard_links" >&5
16373
echo "${ECHO_T}$hard_links" >&6; }
16374
if test "$hard_links" = no; then
16375
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16376
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16383
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16384
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16387
allow_undefined_flag_GCJ=
16388
enable_shared_with_static_runtimes_GCJ=no
16390
archive_expsym_cmds_GCJ=
16391
old_archive_From_new_cmds_GCJ=
16392
old_archive_from_expsyms_cmds_GCJ=
16393
export_dynamic_flag_spec_GCJ=
16394
whole_archive_flag_spec_GCJ=
16395
thread_safe_flag_spec_GCJ=
16396
hardcode_libdir_flag_spec_GCJ=
16397
hardcode_libdir_flag_spec_ld_GCJ=
16398
hardcode_libdir_separator_GCJ=
16399
hardcode_direct_GCJ=no
16400
hardcode_minus_L_GCJ=no
16401
hardcode_shlibpath_var_GCJ=unsupported
16402
link_all_deplibs_GCJ=unknown
16403
hardcode_automatic_GCJ=no
16405
module_expsym_cmds_GCJ=
16406
always_export_symbols_GCJ=no
16407
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16408
# include_expsyms should be a list of space-separated symbols to be *always*
16409
# included in the symbol list
16410
include_expsyms_GCJ=
16411
# exclude_expsyms can be an extended regexp of symbols to exclude
16412
# it will be wrapped by ` (' and `)$', so one must not match beginning or
16413
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16414
# as well as any symbol that contains `d'.
16415
exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16416
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16417
# platforms (ab)use it in PIC code, but their linkers get confused if
16418
# the symbol is explicitly referenced. Since portable code cannot
16419
# rely on this symbol name, it's probably fine to never include it in
16420
# preloaded symbol tables.
16421
extract_expsyms_cmds=
16422
# Just being paranoid about ensuring that cc_basename is set.
16423
for cc_temp in $compiler""; do
16425
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16426
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16431
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16434
cygwin* | mingw* | pw32*)
16435
# FIXME: the MSVC++ port hasn't been tested in a loooong time
16436
# When not using gcc, we currently assume that we are using
16437
# Microsoft Visual C++.
16438
if test "$GCC" != yes; then
16443
# we just hope/assume this is gcc and not c89 (= MSVC++)
16452
if test "$with_gnu_ld" = yes; then
16453
# If archive_cmds runs LD, not CC, wlarc should be empty
16456
# Set some defaults for GNU ld with shared library support. These
16457
# are reset later if shared libraries are not supported. Putting them
16458
# here allows them to be overridden if necessary.
16459
runpath_var=LD_RUN_PATH
16460
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16461
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16462
# ancient GNU ld didn't support --whole-archive et. al.
16463
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16464
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16466
whole_archive_flag_spec_GCJ=
16468
supports_anon_versioning=no
16469
case `$LD -v 2>/dev/null` in
16470
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16471
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16472
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16473
*\ 2.11.*) ;; # other 2.11 versions
16474
*) supports_anon_versioning=yes ;;
16477
# See if GNU ld supports shared libraries.
16479
aix3* | aix4* | aix5*)
16480
# On AIX/PPC, the GNU linker is very broken
16481
if test "$host_cpu" != ia64; then
16485
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16486
*** to be unable to reliably create shared libraries on AIX.
16487
*** Therefore, libtool is disabling shared libraries support. If you
16488
*** really care for shared libraries, you may want to modify your PATH
16489
*** so that a non-GNU linker is found, and then restart.
16496
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)'
16497
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16498
hardcode_minus_L_GCJ=yes
16500
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16501
# that the semantics of dynamic libraries on AmigaOS, at least up
16502
# to version 4, is to share data among multiple programs linked
16503
# with the same dynamic library. Since this doesn't match the
16504
# behavior of shared libraries on other platforms, we can't use
16510
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16511
allow_undefined_flag_GCJ=unsupported
16512
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16513
# support --undefined. This deserves some investigation. FIXME
16514
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16520
cygwin* | mingw* | pw32*)
16521
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16522
# as there is no search path for DLLs.
16523
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16524
allow_undefined_flag_GCJ=unsupported
16525
always_export_symbols_GCJ=no
16526
enable_shared_with_static_runtimes_GCJ=yes
16527
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16529
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16530
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16531
# If the export-symbols file already is a .def file (1st line
16532
# is EXPORTS), use it as is; otherwise, prepend...
16533
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16534
cp $export_symbols $output_objdir/$soname.def;
16536
echo EXPORTS > $output_objdir/$soname.def;
16537
cat $export_symbols >> $output_objdir/$soname.def;
16539
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16546
hardcode_direct_GCJ=no
16547
hardcode_shlibpath_var_GCJ=no
16548
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16549
export_dynamic_flag_spec_GCJ='${wl}-E'
16550
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16551
# Instead, shared libraries are loaded at an image base (0x10000000 by
16552
# default) and relocated if they conflict, which is a slow very memory
16553
# consuming and fragmenting process. To avoid this, we pick a random,
16554
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16555
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
16556
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'
16557
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'
16561
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16563
case $cc_basename,$host_cpu in
16564
pgcc*) # Portland Group C compiler
16565
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'
16566
tmp_addflag=' $pic_flag'
16568
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16569
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'
16570
tmp_addflag=' $pic_flag -Mnomain' ;;
16571
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16572
tmp_addflag=' -i_dynamic' ;;
16573
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16574
tmp_addflag=' -i_dynamic -nofor_main' ;;
16575
ifc* | ifort*) # Intel Fortran compiler
16576
tmp_addflag=' -nofor_main' ;;
16578
archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16580
if test $supports_anon_versioning = yes; then
16581
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16582
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16583
$echo "local: *; };" >> $output_objdir/$libname.ver~
16584
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16592
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16593
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16596
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16597
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16602
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16606
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16607
*** create shared libraries on Solaris systems. Therefore, libtool
16608
*** is disabling shared libraries support. We urge you to upgrade GNU
16609
*** binutils to release 2.9.1 or newer. Another option is to modify
16610
*** your PATH or compiler configuration so that the native linker is
16611
*** used, and then restart.
16614
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16615
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16616
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16622
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16623
case `$LD -v 2>&1` in
16624
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16628
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16629
*** reliably create shared libraries on SCO systems. Therefore, libtool
16630
*** is disabling shared libraries support. We urge you to upgrade GNU
16631
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16632
*** your PATH or compiler configuration so that the native linker is
16633
*** used, and then restart.
16638
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16639
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16640
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16641
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16650
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16652
hardcode_direct_GCJ=yes
16653
hardcode_shlibpath_var_GCJ=no
16657
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16658
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16659
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16666
if test "$ld_shlibs_GCJ" = no; then
16668
hardcode_libdir_flag_spec_GCJ=
16669
export_dynamic_flag_spec_GCJ=
16670
whole_archive_flag_spec_GCJ=
16673
# PORTME fill in a description of your system's linker (not GNU ld)
16676
allow_undefined_flag_GCJ=unsupported
16677
always_export_symbols_GCJ=yes
16678
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'
16679
# Note: this linker hardcodes the directories in LIBPATH if there
16680
# are no directories specified by -L.
16681
hardcode_minus_L_GCJ=yes
16682
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16683
# Neither direct hardcoding nor static linking is supported with a
16685
hardcode_direct_GCJ=unsupported
16690
if test "$host_cpu" = ia64; then
16691
# On IA64, the linker does run time linking by default, so we don't
16692
# have to do anything special.
16693
aix_use_runtimelinking=no
16694
exp_sym_flag='-Bexport'
16697
# If we're using GNU nm, then we don't want the "-C" option.
16698
# -C means demangle to AIX nm, but means don't demangle with GNU nm
16699
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16700
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'
16702
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'
16704
aix_use_runtimelinking=no
16706
# Test if we are trying to use run time linking or normal
16707
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16708
# need to do runtime linking.
16709
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16710
for ld_flag in $LDFLAGS; do
16711
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16712
aix_use_runtimelinking=yes
16719
exp_sym_flag='-bexport'
16720
no_entry_flag='-bnoentry'
16723
# When large executables or shared objects are built, AIX ld can
16724
# have problems creating the table of contents. If linking a library
16725
# or program results in "error TOC overflow" add -mminimal-toc to
16726
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16727
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16729
archive_cmds_GCJ=''
16730
hardcode_direct_GCJ=yes
16731
hardcode_libdir_separator_GCJ=':'
16732
link_all_deplibs_GCJ=yes
16734
if test "$GCC" = yes; then
16735
case $host_os in aix4.[012]|aix4.[012].*)
16736
# We only want to do this on AIX 4.2 and lower, the check
16737
# below for broken collect2 doesn't work under 4.3+
16738
collect2name=`${CC} -print-prog-name=collect2`
16739
if test -f "$collect2name" && \
16740
strings "$collect2name" | grep resolve_lib_name >/dev/null
16742
# We have reworked collect2
16743
hardcode_direct_GCJ=yes
16745
# We have old collect2
16746
hardcode_direct_GCJ=unsupported
16747
# It fails to find uninstalled libraries when the uninstalled
16748
# path is not listed in the libpath. Setting hardcode_minus_L
16749
# to unsupported forces relinking
16750
hardcode_minus_L_GCJ=yes
16751
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16752
hardcode_libdir_separator_GCJ=
16756
shared_flag='-shared'
16757
if test "$aix_use_runtimelinking" = yes; then
16758
shared_flag="$shared_flag "'${wl}-G'
16762
if test "$host_cpu" = ia64; then
16763
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16764
# chokes on -Wl,-G. The following line is correct:
16767
if test "$aix_use_runtimelinking" = yes; then
16768
shared_flag='${wl}-G'
16770
shared_flag='${wl}-bM:SRE'
16775
# It seems that -bexpall does not export symbols beginning with
16776
# underscore (_), so it is better to generate a list of symbols to export.
16777
always_export_symbols_GCJ=yes
16778
if test "$aix_use_runtimelinking" = yes; then
16779
# Warning - without using the other runtime loading flags (-brtl),
16780
# -berok will link without error, but may produce a broken library.
16781
allow_undefined_flag_GCJ='-berok'
16782
# Determine the default libpath from the value encoded in an empty executable.
16783
cat >conftest.$ac_ext <<_ACEOF
16786
cat confdefs.h >>conftest.$ac_ext
16787
cat >>conftest.$ac_ext <<_ACEOF
16788
/* end confdefs.h. */
16798
rm -f conftest.$ac_objext conftest$ac_exeext
16799
if { (ac_try="$ac_link"
16800
case "(($ac_try" in
16801
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16802
*) ac_try_echo=$ac_try;;
16804
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16805
(eval "$ac_link") 2>conftest.er1
16807
grep -v '^ *+' conftest.er1 >conftest.err
16809
cat conftest.err >&5
16810
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16811
(exit $ac_status); } && {
16812
test -z "$ac_c_werror_flag" ||
16813
test ! -s conftest.err
16814
} && test -s conftest$ac_exeext &&
16815
$as_test_x conftest$ac_exeext; then
16817
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16819
# Check for a 64-bit object if we didn't find anything.
16820
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; }
16823
echo "$as_me: failed program was:" >&5
16824
sed 's/^/| /' conftest.$ac_ext >&5
16829
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16830
conftest$ac_exeext conftest.$ac_ext
16831
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16833
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16834
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"
16836
if test "$host_cpu" = ia64; then
16837
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16838
allow_undefined_flag_GCJ="-z nodefs"
16839
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"
16841
# Determine the default libpath from the value encoded in an empty executable.
16842
cat >conftest.$ac_ext <<_ACEOF
16845
cat confdefs.h >>conftest.$ac_ext
16846
cat >>conftest.$ac_ext <<_ACEOF
16847
/* end confdefs.h. */
16857
rm -f conftest.$ac_objext conftest$ac_exeext
16858
if { (ac_try="$ac_link"
16859
case "(($ac_try" in
16860
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16861
*) ac_try_echo=$ac_try;;
16863
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16864
(eval "$ac_link") 2>conftest.er1
16866
grep -v '^ *+' conftest.er1 >conftest.err
16868
cat conftest.err >&5
16869
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16870
(exit $ac_status); } && {
16871
test -z "$ac_c_werror_flag" ||
16872
test ! -s conftest.err
16873
} && test -s conftest$ac_exeext &&
16874
$as_test_x conftest$ac_exeext; then
16876
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16878
# Check for a 64-bit object if we didn't find anything.
16879
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; }
16882
echo "$as_me: failed program was:" >&5
16883
sed 's/^/| /' conftest.$ac_ext >&5
16888
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16889
conftest$ac_exeext conftest.$ac_ext
16890
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16892
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16893
# Warning - without using the other run time loading flags,
16894
# -berok will link without error, but may produce a broken library.
16895
no_undefined_flag_GCJ=' ${wl}-bernotok'
16896
allow_undefined_flag_GCJ=' ${wl}-berok'
16897
# Exported symbols can be pulled into shared objects from archives
16898
whole_archive_flag_spec_GCJ='$convenience'
16899
archive_cmds_need_lc_GCJ=yes
16900
# This is similar to how AIX traditionally builds its shared libraries.
16901
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'
16907
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)'
16908
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16909
hardcode_minus_L_GCJ=yes
16910
# see comment about different semantics on the GNU ld section
16915
export_dynamic_flag_spec_GCJ=-rdynamic
16918
cygwin* | mingw* | pw32*)
16919
# When not using gcc, we currently assume that we are using
16920
# Microsoft Visual C++.
16921
# hardcode_libdir_flag_spec is actually meaningless, as there is
16922
# no search path for DLLs.
16923
hardcode_libdir_flag_spec_GCJ=' '
16924
allow_undefined_flag_GCJ=unsupported
16925
# Tell ltmain to make .lib files, not .a files.
16927
# Tell ltmain to make .dll files, not .so files.
16929
# FIXME: Setting linknames here is a bad hack.
16930
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16931
# The linker will automatically build a .lib file if we build a DLL.
16932
old_archive_From_new_cmds_GCJ='true'
16933
# FIXME: Should let the user specify the lib program.
16934
old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16935
fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16936
enable_shared_with_static_runtimes_GCJ=yes
16939
darwin* | rhapsody*)
16941
rhapsody* | darwin1.[012])
16942
allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16945
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16946
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16948
case ${MACOSX_DEPLOYMENT_TARGET} in
16950
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16953
allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16959
archive_cmds_need_lc_GCJ=no
16960
hardcode_direct_GCJ=no
16961
hardcode_automatic_GCJ=yes
16962
hardcode_shlibpath_var_GCJ=unsupported
16963
whole_archive_flag_spec_GCJ=''
16964
link_all_deplibs_GCJ=yes
16965
if test "$GCC" = yes ; then
16966
output_verbose_link_cmd='echo'
16967
archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16968
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16969
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16970
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}'
16971
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}'
16973
case $cc_basename in
16975
output_verbose_link_cmd='echo'
16976
archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16977
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16978
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16979
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}'
16980
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}'
16990
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16991
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16992
hardcode_shlibpath_var_GCJ=no
16999
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17000
# support. Future versions do this automatically, but an explicit c++rt0.o
17001
# does not break anything, and helps significantly (at the cost of a little
17004
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17005
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17006
hardcode_direct_GCJ=yes
17007
hardcode_shlibpath_var_GCJ=no
17010
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
17012
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17013
hardcode_direct_GCJ=yes
17014
hardcode_minus_L_GCJ=yes
17015
hardcode_shlibpath_var_GCJ=no
17018
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17019
freebsd* | kfreebsd*-gnu | dragonfly*)
17020
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17021
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17022
hardcode_direct_GCJ=yes
17023
hardcode_shlibpath_var_GCJ=no
17027
if test "$GCC" = yes; then
17028
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'
17030
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'
17032
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17033
hardcode_libdir_separator_GCJ=:
17034
hardcode_direct_GCJ=yes
17036
# hardcode_minus_L: Not really in the search PATH,
17037
# but as the default location of the library.
17038
hardcode_minus_L_GCJ=yes
17039
export_dynamic_flag_spec_GCJ='${wl}-E'
17043
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17044
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17046
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17048
if test "$with_gnu_ld" = no; then
17049
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17050
hardcode_libdir_separator_GCJ=:
17052
hardcode_direct_GCJ=yes
17053
export_dynamic_flag_spec_GCJ='${wl}-E'
17055
# hardcode_minus_L: Not really in the search PATH,
17056
# but as the default location of the library.
17057
hardcode_minus_L_GCJ=yes
17062
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17065
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17068
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17071
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17077
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17080
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17083
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17087
if test "$with_gnu_ld" = no; then
17088
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17089
hardcode_libdir_separator_GCJ=:
17093
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17094
hardcode_direct_GCJ=no
17095
hardcode_shlibpath_var_GCJ=no
17098
hardcode_direct_GCJ=yes
17099
export_dynamic_flag_spec_GCJ='${wl}-E'
17101
# hardcode_minus_L: Not really in the search PATH,
17102
# but as the default location of the library.
17103
hardcode_minus_L_GCJ=yes
17109
irix5* | irix6* | nonstopux*)
17110
if test "$GCC" = yes; then
17111
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'
17113
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'
17114
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17116
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17117
hardcode_libdir_separator_GCJ=:
17118
link_all_deplibs_GCJ=yes
17122
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17123
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17125
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17127
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17128
hardcode_direct_GCJ=yes
17129
hardcode_shlibpath_var_GCJ=no
17133
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17134
hardcode_direct_GCJ=yes
17135
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17136
hardcode_libdir_separator_GCJ=:
17137
hardcode_shlibpath_var_GCJ=no
17141
hardcode_direct_GCJ=yes
17142
hardcode_shlibpath_var_GCJ=no
17143
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17144
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17145
archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17146
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17147
export_dynamic_flag_spec_GCJ='${wl}-E'
17150
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17151
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17152
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17155
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17156
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17163
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17164
hardcode_minus_L_GCJ=yes
17165
allow_undefined_flag_GCJ=unsupported
17166
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'
17167
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17171
if test "$GCC" = yes; then
17172
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17173
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'
17175
allow_undefined_flag_GCJ=' -expect_unresolved \*'
17176
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'
17178
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17179
hardcode_libdir_separator_GCJ=:
17182
osf4* | osf5*) # as osf3* with the addition of -msym flag
17183
if test "$GCC" = yes; then
17184
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17185
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'
17186
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17188
allow_undefined_flag_GCJ=' -expect_unresolved \*'
17189
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'
17190
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~
17191
$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'
17193
# Both c and cxx compiler support -rpath directly
17194
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17196
hardcode_libdir_separator_GCJ=:
17200
no_undefined_flag_GCJ=' -z text'
17201
if test "$GCC" = yes; then
17203
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17204
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17205
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17208
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17209
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17210
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17212
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17213
hardcode_shlibpath_var_GCJ=no
17215
solaris2.[0-5] | solaris2.[0-5].*) ;;
17217
# The compiler driver will combine linker options so we
17218
# cannot just pass the convience library names through
17219
# without $wl, iff we do not link with $LD.
17220
# Luckily, gcc supports the same syntax we need for Sun Studio.
17221
# Supported since Solaris 2.6 (maybe 2.5.1?)
17224
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17226
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' ;;
17229
link_all_deplibs_GCJ=yes
17233
if test "x$host_vendor" = xsequent; then
17234
# Use $CC to link under sequent, because it throws in some extra .o
17235
# files that make .init and .fini sections work.
17236
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17238
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17240
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17241
hardcode_direct_GCJ=yes
17242
hardcode_minus_L_GCJ=yes
17243
hardcode_shlibpath_var_GCJ=no
17247
case $host_vendor in
17249
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17250
hardcode_direct_GCJ=yes # is this really true???
17253
## LD is ld it makes a PLAMLIB
17254
## CC just makes a GrossModule.
17255
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17256
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17257
hardcode_direct_GCJ=no
17260
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17261
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17264
runpath_var='LD_RUN_PATH'
17265
hardcode_shlibpath_var_GCJ=no
17269
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17270
hardcode_shlibpath_var_GCJ=no
17271
export_dynamic_flag_spec_GCJ='-Bexport'
17275
if test -d /usr/nec; then
17276
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17277
hardcode_shlibpath_var_GCJ=no
17278
runpath_var=LD_RUN_PATH
17279
hardcode_runpath_var=yes
17284
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17285
no_undefined_flag_GCJ='${wl}-z,text'
17286
archive_cmds_need_lc_GCJ=no
17287
hardcode_shlibpath_var_GCJ=no
17288
runpath_var='LD_RUN_PATH'
17290
if test "$GCC" = yes; then
17291
archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17292
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17294
archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17295
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17299
sysv5* | sco3.2v5* | sco5v6*)
17300
# Note: We can NOT use -z defs as we might desire, because we do not
17301
# link with -lc, and that would cause any symbols used from libc to
17302
# always be unresolved, which means just about no library would
17303
# ever link correctly. If we're not using GNU ld we use -z text
17304
# though, which does catch some bad symbols but isn't as heavy-handed
17306
no_undefined_flag_GCJ='${wl}-z,text'
17307
allow_undefined_flag_GCJ='${wl}-z,nodefs'
17308
archive_cmds_need_lc_GCJ=no
17309
hardcode_shlibpath_var_GCJ=no
17310
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17311
hardcode_libdir_separator_GCJ=':'
17312
link_all_deplibs_GCJ=yes
17313
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17314
runpath_var='LD_RUN_PATH'
17316
if test "$GCC" = yes; then
17317
archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17318
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17320
archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17321
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17326
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17327
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17328
hardcode_shlibpath_var_GCJ=no
17337
{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17338
echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17339
test "$ld_shlibs_GCJ" = no && can_build_shared=no
17342
# Do we need to explicitly link libc?
17344
case "x$archive_cmds_need_lc_GCJ" in
17346
# Assume -lc should be added
17347
archive_cmds_need_lc_GCJ=yes
17349
if test "$enable_shared" = yes && test "$GCC" = yes; then
17350
case $archive_cmds_GCJ in
17352
# FIXME: we may have to deal with multi-command sequences.
17355
# Test whether the compiler implicitly links with -lc since on some
17356
# systems, -lgcc has to come before -lc. If gcc already passes -lc
17357
# to ld, don't add -lc before -lgcc.
17358
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17359
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17361
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17363
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17364
(eval $ac_compile) 2>&5
17366
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17367
(exit $ac_status); } 2>conftest.err; then
17370
libobjs=conftest.$ac_objext
17372
wl=$lt_prog_compiler_wl_GCJ
17373
pic_flag=$lt_prog_compiler_pic_GCJ
17379
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17380
allow_undefined_flag_GCJ=
17381
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17382
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17384
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17385
(exit $ac_status); }
17387
archive_cmds_need_lc_GCJ=no
17389
archive_cmds_need_lc_GCJ=yes
17391
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17393
cat conftest.err 1>&5
17396
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17397
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17404
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17405
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17406
library_names_spec=
17407
libname_spec='lib$name'
17411
postuninstall_cmds=
17415
shlibpath_overrides_runpath=unknown
17417
dynamic_linker="$host_os ld.so"
17418
sys_lib_dlsearch_path_spec="/lib /usr/lib"
17419
if test "$GCC" = yes; then
17420
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17421
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17422
# if the path contains ";" then we assume it to be the separator
17423
# otherwise default to the standard path separator (i.e. ":") - it is
17424
# assumed that no part of a normal pathname contains ";" but that should
17425
# okay in the real world where ";" in dirpaths is itself problematic.
17426
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17428
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17431
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17433
need_lib_prefix=unknown
17434
hardcode_into_libs=no
17436
# when you set need_version to no, make sure it does not cause -set_version
17437
# flags to be left without arguments
17438
need_version=unknown
17443
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17444
shlibpath_var=LIBPATH
17446
# AIX 3 has no versioning support, so we append a major version to the name.
17447
soname_spec='${libname}${release}${shared_ext}$major'
17454
hardcode_into_libs=yes
17455
if test "$host_cpu" = ia64; then
17456
# AIX 5 supports IA64
17457
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17458
shlibpath_var=LD_LIBRARY_PATH
17460
# With GCC up to 2.95.x, collect2 would create an import file
17461
# for dependence libraries. The import file would start with
17462
# the line `#! .'. This would cause the generated library to
17463
# depend on `.', always an invalid library. This was fixed in
17464
# development snapshots of GCC prior to 3.0.
17466
aix4 | aix4.[01] | aix4.[01].*)
17467
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17469
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17472
can_build_shared=no
17476
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17477
# soname into executable. Probably we can add versioning support to
17478
# collect2, so additional links can be useful in future.
17479
if test "$aix_use_runtimelinking" = yes; then
17480
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
17481
# instead of lib<name>.a to let people know that these are not
17482
# typical AIX shared libraries.
17483
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17485
# We preserve .a as extension for shared libraries through AIX4.2
17486
# and later when we are not doing run time linking.
17487
library_names_spec='${libname}${release}.a $libname.a'
17488
soname_spec='${libname}${release}${shared_ext}$major'
17490
shlibpath_var=LIBPATH
17495
library_names_spec='$libname.ixlibrary $libname.a'
17496
# Create ${libname}_ixlibrary.a entries in /sys/libs.
17497
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'
17501
library_names_spec='${libname}${shared_ext}'
17502
dynamic_linker="$host_os ld.so"
17503
shlibpath_var=LIBRARY_PATH
17509
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17510
soname_spec='${libname}${release}${shared_ext}$major'
17511
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17512
shlibpath_var=LD_LIBRARY_PATH
17513
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17514
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17515
# the default ld.so.conf also contains /usr/contrib/lib and
17516
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17517
# libtool to hard-code these into programs
17520
cygwin* | mingw* | pw32*)
17521
version_type=windows
17526
case $GCC,$host_os in
17527
yes,cygwin* | yes,mingw* | yes,pw32*)
17528
library_names_spec='$libname.dll.a'
17529
# DLL is installed to $(libdir)/../bin by postinstall_cmds
17530
postinstall_cmds='base_file=`basename \${file}`~
17531
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17532
dldir=$destdir/`dirname \$dlpath`~
17533
test -d \$dldir || mkdir -p \$dldir~
17534
$install_prog $dir/$dlname \$dldir/$dlname~
17535
chmod a+x \$dldir/$dlname'
17536
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17537
dlpath=$dir/\$dldll~
17539
shlibpath_overrides_runpath=yes
17543
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
17544
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17545
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17548
# MinGW DLLs use traditional 'lib' prefix
17549
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17550
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17551
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17552
# It is most probably a Windows format PATH printed by
17553
# mingw gcc, but we are running on Cygwin. Gcc prints its search
17554
# path with ; separators, and with drive letters. We can handle the
17555
# drive letters (cygwin fileutils understands them), so leave them,
17556
# especially as we might pass files found there to a mingw objdump,
17557
# which wouldn't understand a cygwinified path. Ahh.
17558
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17560
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17564
# pw32 DLLs use 'pw' prefix rather than 'lib'
17565
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17571
if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
17572
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17573
supports_anon_versioning=no
17574
case `$LD -v 2>/dev/null` in
17575
*\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17576
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17577
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17578
*\ 2.11.*) ;; # other 2.11 versions
17579
*) supports_anon_versioning=yes ;;
17581
if test $supports_anon_versioning = yes; then
17582
archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
17583
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17584
$echo "local: *; };" >> $output_objdir/$libname.ver~
17585
$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17587
$archive_expsym_cmds="$archive_cmds"
17595
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17598
dynamic_linker='Win32 ld.exe'
17599
# FIXME: first we should search . and the directory the executable is in
17603
darwin* | rhapsody*)
17604
dynamic_linker="$host_os dyld"
17605
version_type=darwin
17608
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17609
soname_spec='${libname}${release}${major}$shared_ext'
17610
shlibpath_overrides_runpath=yes
17611
shlibpath_var=DYLD_LIBRARY_PATH
17612
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17613
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17614
if test "$GCC" = yes; then
17615
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"`
17617
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17619
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17626
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17627
soname_spec='${libname}${release}${shared_ext}$major'
17628
shlibpath_var=LD_LIBRARY_PATH
17639
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17640
soname_spec='${libname}${release}${shared_ext}$major'
17641
shlibpath_var=LD_LIBRARY_PATH
17642
shlibpath_overrides_runpath=no
17643
hardcode_into_libs=yes
17644
dynamic_linker='GNU ld.so'
17647
freebsd* | dragonfly*)
17648
# DragonFly does not have aout. When/if they implement a new
17649
# versioning mechanism, adjust this.
17650
if test -x /usr/bin/objformat; then
17651
objformat=`/usr/bin/objformat`
17654
freebsd[123]*) objformat=aout ;;
17655
*) objformat=elf ;;
17658
# Handle Gentoo/FreeBSD as it was Linux
17659
case $host_vendor in
17661
version_type=linux ;;
17663
version_type=freebsd-$objformat ;;
17666
case $version_type in
17668
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17673
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17677
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17678
soname_spec='${libname}${release}${shared_ext}$major'
17683
shlibpath_var=LD_LIBRARY_PATH
17686
shlibpath_overrides_runpath=yes
17688
freebsd3.[01]* | freebsdelf3.[01]*)
17689
shlibpath_overrides_runpath=yes
17690
hardcode_into_libs=yes
17692
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17693
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17694
shlibpath_overrides_runpath=no
17695
hardcode_into_libs=yes
17697
freebsd*) # from 4.6 on
17698
shlibpath_overrides_runpath=yes
17699
hardcode_into_libs=yes
17708
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17709
soname_spec='${libname}${release}${shared_ext}$major'
17710
shlibpath_var=LD_LIBRARY_PATH
17711
hardcode_into_libs=yes
17714
hpux9* | hpux10* | hpux11*)
17715
# Give a soname corresponding to the major version so that dld.sl refuses to
17716
# link against other versions.
17723
hardcode_into_libs=yes
17724
dynamic_linker="$host_os dld.so"
17725
shlibpath_var=LD_LIBRARY_PATH
17726
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17727
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17728
soname_spec='${libname}${release}${shared_ext}$major'
17729
if test "X$HPUX_IA64_MODE" = X32; then
17730
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17732
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17734
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17738
hardcode_into_libs=yes
17739
dynamic_linker="$host_os dld.sl"
17740
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17741
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17742
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17743
soname_spec='${libname}${release}${shared_ext}$major'
17744
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17745
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17749
dynamic_linker="$host_os dld.sl"
17750
shlibpath_var=SHLIB_PATH
17751
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17752
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17753
soname_spec='${libname}${release}${shared_ext}$major'
17756
# HP-UX runs *really* slowly unless shared libraries are mode 555.
17757
postinstall_cmds='chmod 555 $lib'
17764
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17765
soname_spec='${libname}${release}${shared_ext}$major'
17766
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17767
shlibpath_var=LD_LIBRARY_PATH
17768
shlibpath_overrides_runpath=no
17769
hardcode_into_libs=yes
17772
irix5* | irix6* | nonstopux*)
17774
nonstopux*) version_type=nonstopux ;;
17776
if test "$lt_cv_prog_gnu_ld" = yes; then
17784
soname_spec='${libname}${release}${shared_ext}$major'
17785
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17787
irix5* | nonstopux*)
17788
libsuff= shlibsuff=
17791
case $LD in # libtool.m4 will add one of these switches to LD
17792
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17793
libsuff= shlibsuff= libmagic=32-bit;;
17794
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17795
libsuff=32 shlibsuff=N32 libmagic=N32;;
17796
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17797
libsuff=64 shlibsuff=64 libmagic=64-bit;;
17798
*) libsuff= shlibsuff= libmagic=never-match;;
17802
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17803
shlibpath_overrides_runpath=no
17804
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17805
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17806
hardcode_into_libs=yes
17809
# No shared lib support for Linux oldld, aout, or coff.
17810
linux*oldld* | linux*aout* | linux*coff*)
17814
# This must be Linux ELF.
17819
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17820
soname_spec='${libname}${release}${shared_ext}$major'
17821
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17822
shlibpath_var=LD_LIBRARY_PATH
17823
shlibpath_overrides_runpath=no
17824
# This implies no fast_install, which is unacceptable.
17825
# Some rework will be needed to allow for fast_install
17826
# before this can be enabled.
17827
hardcode_into_libs=yes
17829
# Append ld.so.conf contents to the search path
17830
if test -f /etc/ld.so.conf; then
17831
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' ' '`
17832
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17835
# We used to test for /lib/ld.so.1 and disable shared libraries on
17836
# powerpc, because MkLinux only supported shared libraries with the
17837
# GNU dynamic linker. Since this was broken with cross compilers,
17838
# most powerpc-linux boxes support dynamic linking these days and
17839
# people can always --disable-shared, the test was removed, and we
17840
# assume the GNU/Linux dynamic linker is in use.
17841
dynamic_linker='GNU/Linux ld.so'
17848
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17849
soname_spec='${libname}${release}${shared_ext}$major'
17850
shlibpath_var=LD_LIBRARY_PATH
17851
shlibpath_overrides_runpath=no
17852
hardcode_into_libs=yes
17853
dynamic_linker='GNU ld.so'
17860
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17861
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17862
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17863
dynamic_linker='NetBSD (a.out) ld.so'
17865
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17866
soname_spec='${libname}${release}${shared_ext}$major'
17867
dynamic_linker='NetBSD ld.elf_so'
17869
shlibpath_var=LD_LIBRARY_PATH
17870
shlibpath_overrides_runpath=yes
17871
hardcode_into_libs=yes
17876
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17877
shlibpath_var=LD_LIBRARY_PATH
17878
shlibpath_overrides_runpath=yes
17885
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17886
soname_spec='${libname}${release}${shared_ext}$major'
17887
shlibpath_var=LD_LIBRARY_PATH
17888
shlibpath_overrides_runpath=yes
17893
sys_lib_dlsearch_path_spec="/usr/lib"
17895
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17897
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17898
*) need_version=no ;;
17900
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17901
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17902
shlibpath_var=LD_LIBRARY_PATH
17903
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17905
openbsd2.[89] | openbsd2.[89].*)
17906
shlibpath_overrides_runpath=no
17909
shlibpath_overrides_runpath=yes
17913
shlibpath_overrides_runpath=yes
17918
libname_spec='$name'
17921
library_names_spec='$libname${shared_ext} $libname.a'
17922
dynamic_linker='OS/2 ld.exe'
17923
shlibpath_var=LIBPATH
17926
osf3* | osf4* | osf5*)
17930
soname_spec='${libname}${release}${shared_ext}$major'
17931
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17932
shlibpath_var=LD_LIBRARY_PATH
17933
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17934
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17941
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17942
soname_spec='${libname}${release}${shared_ext}$major'
17943
shlibpath_var=LD_LIBRARY_PATH
17944
shlibpath_overrides_runpath=yes
17945
hardcode_into_libs=yes
17946
# ldd complains unless libraries are executable
17947
postinstall_cmds='chmod +x $lib'
17952
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17953
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17954
shlibpath_var=LD_LIBRARY_PATH
17955
shlibpath_overrides_runpath=yes
17956
if test "$with_gnu_ld" = yes; then
17964
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17965
soname_spec='${libname}${release}${shared_ext}$major'
17966
shlibpath_var=LD_LIBRARY_PATH
17967
case $host_vendor in
17969
shlibpath_overrides_runpath=no
17971
export_dynamic_flag_spec='${wl}-Blargedynsym'
17972
runpath_var=LD_RUN_PATH
17980
shlibpath_overrides_runpath=no
17981
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17987
if test -d /usr/nec ;then
17989
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17990
soname_spec='$libname${shared_ext}.$major'
17991
shlibpath_var=LD_LIBRARY_PATH
17995
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17996
version_type=freebsd-elf
17999
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18000
soname_spec='${libname}${release}${shared_ext}$major'
18001
shlibpath_var=LD_LIBRARY_PATH
18002
hardcode_into_libs=yes
18003
if test "$with_gnu_ld" = yes; then
18004
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18005
shlibpath_overrides_runpath=no
18007
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18008
shlibpath_overrides_runpath=yes
18011
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18015
sys_lib_dlsearch_path_spec='/usr/lib'
18020
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18021
soname_spec='${libname}${release}${shared_ext}$major'
18022
shlibpath_var=LD_LIBRARY_PATH
18029
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18030
echo "${ECHO_T}$dynamic_linker" >&6; }
18031
test "$dynamic_linker" = no && can_build_shared=no
18033
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18034
if test "$GCC" = yes; then
18035
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18038
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18039
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18040
hardcode_action_GCJ=
18041
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18042
test -n "$runpath_var_GCJ" || \
18043
test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18045
# We can hardcode non-existant directories.
18046
if test "$hardcode_direct_GCJ" != no &&
18047
# If the only mechanism to avoid hardcoding is shlibpath_var, we
18048
# have to relink, otherwise we might link with an installed library
18049
# when we should be linking with a yet-to-be-installed one
18050
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18051
test "$hardcode_minus_L_GCJ" != no; then
18052
# Linking always hardcodes the temporary library directory.
18053
hardcode_action_GCJ=relink
18055
# We can link without hardcoding, and we can hardcode nonexisting dirs.
18056
hardcode_action_GCJ=immediate
18059
# We cannot hardcode anything, or else we can only hardcode existing
18061
hardcode_action_GCJ=unsupported
18063
{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18064
echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18066
if test "$hardcode_action_GCJ" = relink; then
18067
# Fast installation is not supported
18068
enable_fast_install=no
18069
elif test "$shlibpath_overrides_runpath" = yes ||
18070
test "$enable_shared" = no; then
18071
# Fast installation is not necessary
18072
enable_fast_install=needless
18076
# The else clause should only fire when bootstrapping the
18077
# libtool distribution, otherwise you forgot to ship ltmain.sh
18078
# with your package, and you will get complaints that there are
18079
# no rules to generate ltmain.sh.
18080
if test -f "$ltmain"; then
18081
# See if we are running on zsh, and set the options which allow our commands through
18082
# without removal of \ escapes.
18083
if test -n "${ZSH_VERSION+set}" ; then
18084
setopt NO_GLOB_SUBST
18086
# Now quote all the things that may contain metacharacters while being
18087
# careful not to overquote the AC_SUBSTed values. We take copies of the
18088
# variables and quote the copies for generation of the libtool script.
18089
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18091
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18092
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18093
deplibs_check_method reload_flag reload_cmds need_locks \
18094
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18095
lt_cv_sys_global_symbol_to_c_name_address \
18096
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18097
old_postinstall_cmds old_postuninstall_cmds \
18101
lt_prog_compiler_wl_GCJ \
18102
lt_prog_compiler_pic_GCJ \
18103
lt_prog_compiler_static_GCJ \
18104
lt_prog_compiler_no_builtin_flag_GCJ \
18105
export_dynamic_flag_spec_GCJ \
18106
thread_safe_flag_spec_GCJ \
18107
whole_archive_flag_spec_GCJ \
18108
enable_shared_with_static_runtimes_GCJ \
18109
old_archive_cmds_GCJ \
18110
old_archive_from_new_cmds_GCJ \
18111
predep_objects_GCJ \
18112
postdep_objects_GCJ \
18115
compiler_lib_search_path_GCJ \
18117
archive_expsym_cmds_GCJ \
18118
postinstall_cmds_GCJ \
18119
postuninstall_cmds_GCJ \
18120
old_archive_from_expsyms_cmds_GCJ \
18121
allow_undefined_flag_GCJ \
18122
no_undefined_flag_GCJ \
18123
export_symbols_cmds_GCJ \
18124
hardcode_libdir_flag_spec_GCJ \
18125
hardcode_libdir_flag_spec_ld_GCJ \
18126
hardcode_libdir_separator_GCJ \
18127
hardcode_automatic_GCJ \
18129
module_expsym_cmds_GCJ \
18130
lt_cv_prog_compiler_c_o_GCJ \
18131
exclude_expsyms_GCJ \
18132
include_expsyms_GCJ; do
18135
old_archive_cmds_GCJ | \
18136
old_archive_from_new_cmds_GCJ | \
18137
archive_cmds_GCJ | \
18138
archive_expsym_cmds_GCJ | \
18139
module_cmds_GCJ | \
18140
module_expsym_cmds_GCJ | \
18141
old_archive_from_expsyms_cmds_GCJ | \
18142
export_symbols_cmds_GCJ | \
18143
extract_expsyms_cmds | reload_cmds | finish_cmds | \
18144
postinstall_cmds | postuninstall_cmds | \
18145
old_postinstall_cmds | old_postuninstall_cmds | \
18146
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18147
# Double-quote double-evaled strings.
18148
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18151
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18157
*'\$0 --fallback-echo"')
18158
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18164
cat <<__EOF__ >> "$cfgfile"
18165
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18167
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18169
# Shell to use when invoking shell scripts.
18172
# Whether or not to build shared libraries.
18173
build_libtool_libs=$enable_shared
18175
# Whether or not to build static libraries.
18176
build_old_libs=$enable_static
18178
# Whether or not to add -lc for building shared libraries.
18179
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18181
# Whether or not to disallow shared libs when runtime libs are static
18182
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18184
# Whether or not to optimize for fast installation.
18185
fast_install=$enable_fast_install
18188
host_alias=$host_alias
18192
# The build system.
18193
build_alias=$build_alias
18197
# An echo program that does not interpret backslashes.
18202
AR_FLAGS=$lt_AR_FLAGS
18207
# LTCC compiler flags.
18208
LTCFLAGS=$lt_LTCFLAGS
18210
# A language-specific compiler.
18211
CC=$lt_compiler_GCJ
18213
# Is the compiler the GNU C compiler?
18219
# The linker used to build libraries.
18222
# Whether we need hard or soft links.
18225
# A BSD-compatible nm program.
18228
# A symbol stripping program
18231
# Used to examine libraries when file_magic_cmd begins "file"
18232
MAGIC_CMD=$MAGIC_CMD
18234
# Used on cygwin: DLL creation program.
18237
# Used on cygwin: object dumper.
18240
# Used on cygwin: assembler.
18243
# The name of the directory that contains temporary libtool files.
18246
# How to create reloadable object files.
18247
reload_flag=$lt_reload_flag
18248
reload_cmds=$lt_reload_cmds
18250
# How to pass a linker flag through the compiler.
18251
wl=$lt_lt_prog_compiler_wl_GCJ
18253
# Object file suffix (normally "o").
18254
objext="$ac_objext"
18256
# Old archive suffix (normally "a").
18259
# Shared library suffix (normally ".so").
18260
shrext_cmds='$shrext_cmds'
18262
# Executable file suffix (normally "").
18265
# Additional compiler flags for building library objects.
18266
pic_flag=$lt_lt_prog_compiler_pic_GCJ
18269
# What is the maximum length of a command?
18270
max_cmd_len=$lt_cv_sys_max_cmd_len
18272
# Does compiler simultaneously support -c and -o options?
18273
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18275
# Must we lock files when doing compilation?
18276
need_locks=$lt_need_locks
18278
# Do we need the lib prefix for modules?
18279
need_lib_prefix=$need_lib_prefix
18281
# Do we need a version for libraries?
18282
need_version=$need_version
18284
# Whether dlopen is supported.
18285
dlopen_support=$enable_dlopen
18287
# Whether dlopen of programs is supported.
18288
dlopen_self=$enable_dlopen_self
18290
# Whether dlopen of statically linked programs is supported.
18291
dlopen_self_static=$enable_dlopen_self_static
18293
# Compiler flag to prevent dynamic linking.
18294
link_static_flag=$lt_lt_prog_compiler_static_GCJ
18296
# Compiler flag to turn off builtin functions.
18297
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18299
# Compiler flag to allow reflexive dlopens.
18300
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18302
# Compiler flag to generate shared objects directly from archives.
18303
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18305
# Compiler flag to generate thread-safe objects.
18306
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18308
# Library versioning type.
18309
version_type=$version_type
18311
# Format of library name prefix.
18312
libname_spec=$lt_libname_spec
18314
# List of archive names. First name is the real one, the rest are links.
18315
# The last name is the one that the linker finds with -lNAME.
18316
library_names_spec=$lt_library_names_spec
18318
# The coded name of the library, if different from the real name.
18319
soname_spec=$lt_soname_spec
18321
# Commands used to build and install an old-style archive.
18323
old_archive_cmds=$lt_old_archive_cmds_GCJ
18324
old_postinstall_cmds=$lt_old_postinstall_cmds
18325
old_postuninstall_cmds=$lt_old_postuninstall_cmds
18327
# Create an old-style archive from a shared archive.
18328
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18330
# Create a temporary old-style archive to link instead of a shared archive.
18331
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18333
# Commands used to build and install a shared archive.
18334
archive_cmds=$lt_archive_cmds_GCJ
18335
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18336
postinstall_cmds=$lt_postinstall_cmds
18337
postuninstall_cmds=$lt_postuninstall_cmds
18339
# Commands used to build a loadable module (assumed same as above if empty)
18340
module_cmds=$lt_module_cmds_GCJ
18341
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18343
# Commands to strip libraries.
18344
old_striplib=$lt_old_striplib
18345
striplib=$lt_striplib
18347
# Dependencies to place before the objects being linked to create a
18349
predep_objects=$lt_predep_objects_GCJ
18351
# Dependencies to place after the objects being linked to create a
18353
postdep_objects=$lt_postdep_objects_GCJ
18355
# Dependencies to place before the objects being linked to create a
18357
predeps=$lt_predeps_GCJ
18359
# Dependencies to place after the objects being linked to create a
18361
postdeps=$lt_postdeps_GCJ
18363
# The library search path used internally by the compiler when linking
18364
# a shared library.
18365
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18367
# Method to check whether dependent libraries are shared objects.
18368
deplibs_check_method=$lt_deplibs_check_method
18370
# Command to use when deplibs_check_method == file_magic.
18371
file_magic_cmd=$lt_file_magic_cmd
18373
# Flag that allows shared libraries with undefined symbols to be built.
18374
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18376
# Flag that forces no undefined symbols.
18377
no_undefined_flag=$lt_no_undefined_flag_GCJ
18379
# Commands used to finish a libtool library installation in a directory.
18380
finish_cmds=$lt_finish_cmds
18382
# Same as above, but a single script fragment to be evaled but not shown.
18383
finish_eval=$lt_finish_eval
18385
# Take the output of nm and produce a listing of raw symbols and C names.
18386
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18388
# Transform the output of nm in a proper C declaration
18389
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18391
# Transform the output of nm in a C name address pair
18392
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18394
# This is the shared library runtime path variable.
18395
runpath_var=$runpath_var
18397
# This is the shared library path variable.
18398
shlibpath_var=$shlibpath_var
18400
# Is shlibpath searched before the hard-coded library search path?
18401
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18403
# How to hardcode a shared library path into an executable.
18404
hardcode_action=$hardcode_action_GCJ
18406
# Whether we should hardcode library paths into libraries.
18407
hardcode_into_libs=$hardcode_into_libs
18409
# Flag to hardcode \$libdir into a binary during linking.
18410
# This must work even if \$libdir does not exist.
18411
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18413
# If ld is used when linking, flag to hardcode \$libdir into
18414
# a binary during linking. This must work even if \$libdir does
18416
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18418
# Whether we need a single -rpath flag with a separated argument.
18419
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18421
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18422
# resulting binary.
18423
hardcode_direct=$hardcode_direct_GCJ
18425
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18426
# resulting binary.
18427
hardcode_minus_L=$hardcode_minus_L_GCJ
18429
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18430
# the resulting binary.
18431
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18433
# Set to yes if building a shared library automatically hardcodes DIR into the library
18434
# and all subsequent libraries and executables linked against it.
18435
hardcode_automatic=$hardcode_automatic_GCJ
18437
# Variables whose values should be saved in libtool wrapper scripts and
18438
# restored at relink time.
18439
variables_saved_for_relink="$variables_saved_for_relink"
18441
# Whether libtool must link a program against all its dependency libraries.
18442
link_all_deplibs=$link_all_deplibs_GCJ
18444
# Compile-time system search path for libraries
18445
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18447
# Run-time system search path for libraries
18448
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18450
# Fix the shell variable \$srcfile for the compiler.
18451
fix_srcfile_path="$fix_srcfile_path_GCJ"
18453
# Set to yes if exported symbols are required.
18454
always_export_symbols=$always_export_symbols_GCJ
18456
# The commands to list exported symbols.
18457
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18459
# The commands to extract the exported symbol list from a shared archive.
18460
extract_expsyms_cmds=$lt_extract_expsyms_cmds
18462
# Symbols that should not be listed in the preloaded symbols.
18463
exclude_expsyms=$lt_exclude_expsyms_GCJ
18465
# Symbols that must always be exported.
18466
include_expsyms=$lt_include_expsyms_GCJ
18468
# ### END LIBTOOL TAG CONFIG: $tagname
18474
# If there is no Makefile yet, we rely on a make rule to execute
18475
# `config.status --recheck' to rerun these tests and create the
18476
# libtool script then.
18477
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18478
if test -f "$ltmain_in"; then
18479
test -f Makefile && make "$ltmain"
18485
ac_cpp='$CPP $CPPFLAGS'
18486
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18487
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18488
ac_compiler_gnu=$ac_cv_c_compiler_gnu
18500
# Source file extension for RC test sources.
18503
# Object file extension for compiled RC test sources.
18507
# Code to be used in simple compile tests
18508
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18510
# Code to be used in simple link tests
18511
lt_simple_link_test_code="$lt_simple_compile_test_code"
18513
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18515
# If no C compiler was specified, use CC.
18518
# If no C compiler flags were specified, use CFLAGS.
18519
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18521
# Allow CC to be a program name with arguments.
18525
# save warnings/boilerplate of simple test code
18526
ac_outfile=conftest.$ac_objext
18527
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18528
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18529
_lt_compiler_boilerplate=`cat conftest.err`
18532
ac_outfile=conftest.$ac_objext
18533
printf "$lt_simple_link_test_code" >conftest.$ac_ext
18534
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18535
_lt_linker_boilerplate=`cat conftest.err`
18539
# Allow CC to be a program name with arguments.
18544
for cc_temp in $compiler""; do
18546
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18547
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18552
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18554
lt_cv_prog_compiler_c_o_RC=yes
18556
# The else clause should only fire when bootstrapping the
18557
# libtool distribution, otherwise you forgot to ship ltmain.sh
18558
# with your package, and you will get complaints that there are
18559
# no rules to generate ltmain.sh.
18560
if test -f "$ltmain"; then
18561
# See if we are running on zsh, and set the options which allow our commands through
18562
# without removal of \ escapes.
18563
if test -n "${ZSH_VERSION+set}" ; then
18564
setopt NO_GLOB_SUBST
18566
# Now quote all the things that may contain metacharacters while being
18567
# careful not to overquote the AC_SUBSTed values. We take copies of the
18568
# variables and quote the copies for generation of the libtool script.
18569
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18571
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18572
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18573
deplibs_check_method reload_flag reload_cmds need_locks \
18574
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18575
lt_cv_sys_global_symbol_to_c_name_address \
18576
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18577
old_postinstall_cmds old_postuninstall_cmds \
18581
lt_prog_compiler_wl_RC \
18582
lt_prog_compiler_pic_RC \
18583
lt_prog_compiler_static_RC \
18584
lt_prog_compiler_no_builtin_flag_RC \
18585
export_dynamic_flag_spec_RC \
18586
thread_safe_flag_spec_RC \
18587
whole_archive_flag_spec_RC \
18588
enable_shared_with_static_runtimes_RC \
18589
old_archive_cmds_RC \
18590
old_archive_from_new_cmds_RC \
18591
predep_objects_RC \
18592
postdep_objects_RC \
18595
compiler_lib_search_path_RC \
18597
archive_expsym_cmds_RC \
18598
postinstall_cmds_RC \
18599
postuninstall_cmds_RC \
18600
old_archive_from_expsyms_cmds_RC \
18601
allow_undefined_flag_RC \
18602
no_undefined_flag_RC \
18603
export_symbols_cmds_RC \
18604
hardcode_libdir_flag_spec_RC \
18605
hardcode_libdir_flag_spec_ld_RC \
18606
hardcode_libdir_separator_RC \
18607
hardcode_automatic_RC \
18609
module_expsym_cmds_RC \
18610
lt_cv_prog_compiler_c_o_RC \
18611
exclude_expsyms_RC \
18612
include_expsyms_RC; do
18615
old_archive_cmds_RC | \
18616
old_archive_from_new_cmds_RC | \
18617
archive_cmds_RC | \
18618
archive_expsym_cmds_RC | \
18620
module_expsym_cmds_RC | \
18621
old_archive_from_expsyms_cmds_RC | \
18622
export_symbols_cmds_RC | \
18623
extract_expsyms_cmds | reload_cmds | finish_cmds | \
18624
postinstall_cmds | postuninstall_cmds | \
18625
old_postinstall_cmds | old_postuninstall_cmds | \
18626
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18627
# Double-quote double-evaled strings.
18628
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18631
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18637
*'\$0 --fallback-echo"')
18638
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18644
cat <<__EOF__ >> "$cfgfile"
18645
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18647
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18649
# Shell to use when invoking shell scripts.
18652
# Whether or not to build shared libraries.
18653
build_libtool_libs=$enable_shared
18655
# Whether or not to build static libraries.
18656
build_old_libs=$enable_static
18658
# Whether or not to add -lc for building shared libraries.
18659
build_libtool_need_lc=$archive_cmds_need_lc_RC
18661
# Whether or not to disallow shared libs when runtime libs are static
18662
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18664
# Whether or not to optimize for fast installation.
18665
fast_install=$enable_fast_install
18668
host_alias=$host_alias
18672
# The build system.
18673
build_alias=$build_alias
18677
# An echo program that does not interpret backslashes.
18682
AR_FLAGS=$lt_AR_FLAGS
18687
# LTCC compiler flags.
18688
LTCFLAGS=$lt_LTCFLAGS
18690
# A language-specific compiler.
18693
# Is the compiler the GNU C compiler?
18699
# The linker used to build libraries.
18702
# Whether we need hard or soft links.
18705
# A BSD-compatible nm program.
18708
# A symbol stripping program
18711
# Used to examine libraries when file_magic_cmd begins "file"
18712
MAGIC_CMD=$MAGIC_CMD
18714
# Used on cygwin: DLL creation program.
18717
# Used on cygwin: object dumper.
18720
# Used on cygwin: assembler.
18723
# The name of the directory that contains temporary libtool files.
18726
# How to create reloadable object files.
18727
reload_flag=$lt_reload_flag
18728
reload_cmds=$lt_reload_cmds
18730
# How to pass a linker flag through the compiler.
18731
wl=$lt_lt_prog_compiler_wl_RC
18733
# Object file suffix (normally "o").
18734
objext="$ac_objext"
18736
# Old archive suffix (normally "a").
18739
# Shared library suffix (normally ".so").
18740
shrext_cmds='$shrext_cmds'
18742
# Executable file suffix (normally "").
18745
# Additional compiler flags for building library objects.
18746
pic_flag=$lt_lt_prog_compiler_pic_RC
18749
# What is the maximum length of a command?
18750
max_cmd_len=$lt_cv_sys_max_cmd_len
18752
# Does compiler simultaneously support -c and -o options?
18753
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18755
# Must we lock files when doing compilation?
18756
need_locks=$lt_need_locks
18758
# Do we need the lib prefix for modules?
18759
need_lib_prefix=$need_lib_prefix
18761
# Do we need a version for libraries?
18762
need_version=$need_version
18764
# Whether dlopen is supported.
18765
dlopen_support=$enable_dlopen
18767
# Whether dlopen of programs is supported.
18768
dlopen_self=$enable_dlopen_self
18770
# Whether dlopen of statically linked programs is supported.
18771
dlopen_self_static=$enable_dlopen_self_static
18773
# Compiler flag to prevent dynamic linking.
18774
link_static_flag=$lt_lt_prog_compiler_static_RC
18776
# Compiler flag to turn off builtin functions.
18777
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18779
# Compiler flag to allow reflexive dlopens.
18780
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18782
# Compiler flag to generate shared objects directly from archives.
18783
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18785
# Compiler flag to generate thread-safe objects.
18786
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18788
# Library versioning type.
18789
version_type=$version_type
18791
# Format of library name prefix.
18792
libname_spec=$lt_libname_spec
18794
# List of archive names. First name is the real one, the rest are links.
18795
# The last name is the one that the linker finds with -lNAME.
18796
library_names_spec=$lt_library_names_spec
18798
# The coded name of the library, if different from the real name.
18799
soname_spec=$lt_soname_spec
18801
# Commands used to build and install an old-style archive.
18803
old_archive_cmds=$lt_old_archive_cmds_RC
18804
old_postinstall_cmds=$lt_old_postinstall_cmds
18805
old_postuninstall_cmds=$lt_old_postuninstall_cmds
18807
# Create an old-style archive from a shared archive.
18808
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18810
# Create a temporary old-style archive to link instead of a shared archive.
18811
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18813
# Commands used to build and install a shared archive.
18814
archive_cmds=$lt_archive_cmds_RC
18815
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18816
postinstall_cmds=$lt_postinstall_cmds
18817
postuninstall_cmds=$lt_postuninstall_cmds
18819
# Commands used to build a loadable module (assumed same as above if empty)
18820
module_cmds=$lt_module_cmds_RC
18821
module_expsym_cmds=$lt_module_expsym_cmds_RC
18823
# Commands to strip libraries.
18824
old_striplib=$lt_old_striplib
18825
striplib=$lt_striplib
18827
# Dependencies to place before the objects being linked to create a
18829
predep_objects=$lt_predep_objects_RC
18831
# Dependencies to place after the objects being linked to create a
18833
postdep_objects=$lt_postdep_objects_RC
18835
# Dependencies to place before the objects being linked to create a
18837
predeps=$lt_predeps_RC
18839
# Dependencies to place after the objects being linked to create a
18841
postdeps=$lt_postdeps_RC
18843
# The library search path used internally by the compiler when linking
18844
# a shared library.
18845
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18847
# Method to check whether dependent libraries are shared objects.
18848
deplibs_check_method=$lt_deplibs_check_method
18850
# Command to use when deplibs_check_method == file_magic.
18851
file_magic_cmd=$lt_file_magic_cmd
18853
# Flag that allows shared libraries with undefined symbols to be built.
18854
allow_undefined_flag=$lt_allow_undefined_flag_RC
18856
# Flag that forces no undefined symbols.
18857
no_undefined_flag=$lt_no_undefined_flag_RC
18859
# Commands used to finish a libtool library installation in a directory.
18860
finish_cmds=$lt_finish_cmds
18862
# Same as above, but a single script fragment to be evaled but not shown.
18863
finish_eval=$lt_finish_eval
18865
# Take the output of nm and produce a listing of raw symbols and C names.
18866
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18868
# Transform the output of nm in a proper C declaration
18869
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18871
# Transform the output of nm in a C name address pair
18872
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18874
# This is the shared library runtime path variable.
18875
runpath_var=$runpath_var
18877
# This is the shared library path variable.
18878
shlibpath_var=$shlibpath_var
18880
# Is shlibpath searched before the hard-coded library search path?
18881
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18883
# How to hardcode a shared library path into an executable.
18884
hardcode_action=$hardcode_action_RC
18886
# Whether we should hardcode library paths into libraries.
18887
hardcode_into_libs=$hardcode_into_libs
18889
# Flag to hardcode \$libdir into a binary during linking.
18890
# This must work even if \$libdir does not exist.
18891
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18893
# If ld is used when linking, flag to hardcode \$libdir into
18894
# a binary during linking. This must work even if \$libdir does
18896
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18898
# Whether we need a single -rpath flag with a separated argument.
18899
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18901
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18902
# resulting binary.
18903
hardcode_direct=$hardcode_direct_RC
18905
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18906
# resulting binary.
18907
hardcode_minus_L=$hardcode_minus_L_RC
18909
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18910
# the resulting binary.
18911
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18913
# Set to yes if building a shared library automatically hardcodes DIR into the library
18914
# and all subsequent libraries and executables linked against it.
18915
hardcode_automatic=$hardcode_automatic_RC
18917
# Variables whose values should be saved in libtool wrapper scripts and
18918
# restored at relink time.
18919
variables_saved_for_relink="$variables_saved_for_relink"
18921
# Whether libtool must link a program against all its dependency libraries.
18922
link_all_deplibs=$link_all_deplibs_RC
18924
# Compile-time system search path for libraries
18925
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18927
# Run-time system search path for libraries
18928
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18930
# Fix the shell variable \$srcfile for the compiler.
18931
fix_srcfile_path="$fix_srcfile_path_RC"
18933
# Set to yes if exported symbols are required.
18934
always_export_symbols=$always_export_symbols_RC
18936
# The commands to list exported symbols.
18937
export_symbols_cmds=$lt_export_symbols_cmds_RC
18939
# The commands to extract the exported symbol list from a shared archive.
18940
extract_expsyms_cmds=$lt_extract_expsyms_cmds
18942
# Symbols that should not be listed in the preloaded symbols.
18943
exclude_expsyms=$lt_exclude_expsyms_RC
18945
# Symbols that must always be exported.
18946
include_expsyms=$lt_include_expsyms_RC
18948
# ### END LIBTOOL TAG CONFIG: $tagname
18954
# If there is no Makefile yet, we rely on a make rule to execute
18955
# `config.status --recheck' to rerun these tests and create the
18956
# libtool script then.
18957
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18958
if test -f "$ltmain_in"; then
18959
test -f Makefile && make "$ltmain"
18965
ac_cpp='$CPP $CPPFLAGS'
18966
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18967
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18968
ac_compiler_gnu=$ac_cv_c_compiler_gnu
18975
{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18976
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18977
{ (exit 1); exit 1; }; }
18981
# Append the new tag name to the list of available tags.
18982
if test -n "$tagname" ; then
18983
available_tags="$available_tags $tagname"
18989
# Now substitute the updated list of available tags.
18990
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18991
mv "${ofile}T" "$ofile"
18995
{ { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18996
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18997
{ (exit 1); exit 1; }; }
19003
# This can be used to rebuild libtool when needed
19004
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19006
# Always use our own libtool.
19007
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19009
# Prevent multiple expansion
19030
# Find a good install program. We prefer a C program (faster),
19031
# so one script is as good as another. But avoid the broken or
19032
# incompatible versions:
19033
# SysV /etc/install, /usr/sbin/install
19034
# SunOS /usr/etc/install
19035
# IRIX /sbin/install
19037
# AmigaOS /C/install, which installs bootblocks on floppy discs
19038
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
19039
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
19040
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
19041
# OS/2's system install, which has a completely different semantic
19042
# ./install, which can be erroneously created by make from ./install.sh.
19043
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
19044
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
19045
if test -z "$INSTALL"; then
19046
if test "${ac_cv_path_install+set}" = set; then
19047
echo $ECHO_N "(cached) $ECHO_C" >&6
19049
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19050
for as_dir in $PATH
19053
test -z "$as_dir" && as_dir=.
19054
# Account for people who put trailing slashes in PATH elements.
19056
./ | .// | /cC/* | \
19057
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
19058
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
19061
# OSF1 and SCO ODT 3.0 have their own names for install.
19062
# Don't use installbsd from OSF since it installs stuff as root
19064
for ac_prog in ginstall scoinst install; do
19065
for ac_exec_ext in '' $ac_executable_extensions; do
19066
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
19067
if test $ac_prog = install &&
19068
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19069
# AIX install. It has an incompatible calling convention.
19071
elif test $ac_prog = install &&
19072
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19073
# program-specific install script used by HP pwplus--don't use.
19076
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
19089
if test "${ac_cv_path_install+set}" = set; then
19090
INSTALL=$ac_cv_path_install
19092
# As a last resort, use the slow shell script. Don't cache a
19093
# value for INSTALL within a source directory, because that will
19094
# break other packages using the cache if that directory is
19095
# removed, or if the value is a relative name.
19096
INSTALL=$ac_install_sh
19099
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
19100
echo "${ECHO_T}$INSTALL" >&6; }
19102
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
19103
# It thinks the first close brace ends the variable substitution.
19104
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
19106
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
19108
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
19110
{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
19111
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
19113
if test "$LN_S" = "ln -s"; then
19114
{ echo "$as_me:$LINENO: result: yes" >&5
19115
echo "${ECHO_T}yes" >&6; }
19117
{ echo "$as_me:$LINENO: result: no, using $LN_S" >&5
19118
echo "${ECHO_T}no, using $LN_S" >&6; }
19121
# Extract the first word of "ar", so it can be a program name with args.
19122
set dummy ar; ac_word=$2
19123
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19124
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19125
if test "${ac_cv_path_AR+set}" = set; then
19126
echo $ECHO_N "(cached) $ECHO_C" >&6
19130
ac_cv_path_AR="$AR" # Let the user override the test with a path.
19133
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19134
for as_dir in $PATH
19137
test -z "$as_dir" && as_dir=.
19138
for ac_exec_ext in '' $ac_executable_extensions; do
19139
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19140
ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
19141
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19148
test -z "$ac_cv_path_AR" && ac_cv_path_AR="no"
19153
if test -n "$AR"; then
19154
{ echo "$as_me:$LINENO: result: $AR" >&5
19155
echo "${ECHO_T}$AR" >&6; }
19157
{ echo "$as_me:$LINENO: result: no" >&5
19158
echo "${ECHO_T}no" >&6; }
19162
if [ $AR = "no" ] ; then
19163
{ { echo "$as_me:$LINENO: error: \"Could not find ar - needed to create a library\"" >&5
19164
echo "$as_me: error: \"Could not find ar - needed to create a library\"" >&2;}
19165
{ (exit 1); exit 1; }; }
19168
{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
19169
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
19170
if test "${ac_cv_c_bigendian+set}" = set; then
19171
echo $ECHO_N "(cached) $ECHO_C" >&6
19173
# See if sys/param.h defines the BYTE_ORDER macro.
19174
cat >conftest.$ac_ext <<_ACEOF
19177
cat confdefs.h >>conftest.$ac_ext
19178
cat >>conftest.$ac_ext <<_ACEOF
19179
/* end confdefs.h. */
19180
#include <sys/types.h>
19181
#include <sys/param.h>
19186
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
19187
&& BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
19188
bogus endian macros
19195
rm -f conftest.$ac_objext
19196
if { (ac_try="$ac_compile"
19197
case "(($ac_try" in
19198
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19199
*) ac_try_echo=$ac_try;;
19201
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19202
(eval "$ac_compile") 2>conftest.er1
19204
grep -v '^ *+' conftest.er1 >conftest.err
19206
cat conftest.err >&5
19207
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19208
(exit $ac_status); } && {
19209
test -z "$ac_c_werror_flag" ||
19210
test ! -s conftest.err
19211
} && test -s conftest.$ac_objext; then
19212
# It does; now see whether it defined to BIG_ENDIAN or not.
19213
cat >conftest.$ac_ext <<_ACEOF
19216
cat confdefs.h >>conftest.$ac_ext
19217
cat >>conftest.$ac_ext <<_ACEOF
19218
/* end confdefs.h. */
19219
#include <sys/types.h>
19220
#include <sys/param.h>
19225
#if BYTE_ORDER != BIG_ENDIAN
19233
rm -f conftest.$ac_objext
19234
if { (ac_try="$ac_compile"
19235
case "(($ac_try" in
19236
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19237
*) ac_try_echo=$ac_try;;
19239
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19240
(eval "$ac_compile") 2>conftest.er1
19242
grep -v '^ *+' conftest.er1 >conftest.err
19244
cat conftest.err >&5
19245
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19246
(exit $ac_status); } && {
19247
test -z "$ac_c_werror_flag" ||
19248
test ! -s conftest.err
19249
} && test -s conftest.$ac_objext; then
19250
ac_cv_c_bigendian=yes
19252
echo "$as_me: failed program was:" >&5
19253
sed 's/^/| /' conftest.$ac_ext >&5
19255
ac_cv_c_bigendian=no
19258
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19260
echo "$as_me: failed program was:" >&5
19261
sed 's/^/| /' conftest.$ac_ext >&5
19263
# It does not; compile a test program.
19264
if test "$cross_compiling" = yes; then
19265
# try to guess the endianness by grepping values into an object file
19266
ac_cv_c_bigendian=unknown
19267
cat >conftest.$ac_ext <<_ACEOF
19270
cat confdefs.h >>conftest.$ac_ext
19271
cat >>conftest.$ac_ext <<_ACEOF
19272
/* end confdefs.h. */
19273
short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
19274
short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
19275
void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
19276
short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
19277
short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
19278
void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
19282
_ascii (); _ebcdic ();
19287
rm -f conftest.$ac_objext
19288
if { (ac_try="$ac_compile"
19289
case "(($ac_try" in
19290
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19291
*) ac_try_echo=$ac_try;;
19293
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19294
(eval "$ac_compile") 2>conftest.er1
19296
grep -v '^ *+' conftest.er1 >conftest.err
19298
cat conftest.err >&5
19299
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19300
(exit $ac_status); } && {
19301
test -z "$ac_c_werror_flag" ||
19302
test ! -s conftest.err
19303
} && test -s conftest.$ac_objext; then
19304
if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
19305
ac_cv_c_bigendian=yes
19307
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
19308
if test "$ac_cv_c_bigendian" = unknown; then
19309
ac_cv_c_bigendian=no
19311
# finding both strings is unlikely to happen, but who knows?
19312
ac_cv_c_bigendian=unknown
19316
echo "$as_me: failed program was:" >&5
19317
sed 's/^/| /' conftest.$ac_ext >&5
19322
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19324
cat >conftest.$ac_ext <<_ACEOF
19327
cat confdefs.h >>conftest.$ac_ext
19328
cat >>conftest.$ac_ext <<_ACEOF
19329
/* end confdefs.h. */
19330
$ac_includes_default
19335
/* Are we little or big endian? From Harbison&Steele. */
19339
char c[sizeof (long int)];
19342
return u.c[sizeof (long int) - 1] == 1;
19348
rm -f conftest$ac_exeext
19349
if { (ac_try="$ac_link"
19350
case "(($ac_try" in
19351
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19352
*) ac_try_echo=$ac_try;;
19354
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19355
(eval "$ac_link") 2>&5
19357
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19358
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19359
{ (case "(($ac_try" in
19360
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19361
*) ac_try_echo=$ac_try;;
19363
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19364
(eval "$ac_try") 2>&5
19366
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19367
(exit $ac_status); }; }; then
19368
ac_cv_c_bigendian=no
19370
echo "$as_me: program exited with status $ac_status" >&5
19371
echo "$as_me: failed program was:" >&5
19372
sed 's/^/| /' conftest.$ac_ext >&5
19374
( exit $ac_status )
19375
ac_cv_c_bigendian=yes
19377
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19383
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19385
{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
19386
echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
19387
case $ac_cv_c_bigendian in
19390
cat >>confdefs.h <<\_ACEOF
19391
#define WORDS_BIGENDIAN 1
19397
{ { echo "$as_me:$LINENO: error: unknown endianness
19398
presetting ac_cv_c_bigendian=no (or yes) will help" >&5
19399
echo "$as_me: error: unknown endianness
19400
presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
19401
{ (exit 1); exit 1; }; } ;;
19406
{ echo "$as_me:$LINENO: checking for snd_pcm_open in -lasound" >&5
19407
echo $ECHO_N "checking for snd_pcm_open in -lasound... $ECHO_C" >&6; }
19408
if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then
19409
echo $ECHO_N "(cached) $ECHO_C" >&6
19411
ac_check_lib_save_LIBS=$LIBS
19412
LIBS="-lasound $LIBS"
19413
cat >conftest.$ac_ext <<_ACEOF
19416
cat confdefs.h >>conftest.$ac_ext
19417
cat >>conftest.$ac_ext <<_ACEOF
19418
/* end confdefs.h. */
19420
/* Override any GCC internal prototype to avoid an error.
19421
Use char because int might match the return type of a GCC
19422
builtin and then its argument prototype would still apply. */
19426
char snd_pcm_open ();
19430
return snd_pcm_open ();
19435
rm -f conftest.$ac_objext conftest$ac_exeext
19436
if { (ac_try="$ac_link"
19437
case "(($ac_try" in
19438
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19439
*) ac_try_echo=$ac_try;;
19441
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19442
(eval "$ac_link") 2>conftest.er1
19444
grep -v '^ *+' conftest.er1 >conftest.err
19446
cat conftest.err >&5
19447
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19448
(exit $ac_status); } && {
19449
test -z "$ac_c_werror_flag" ||
19450
test ! -s conftest.err
19451
} && test -s conftest$ac_exeext &&
19452
$as_test_x conftest$ac_exeext; then
19453
ac_cv_lib_asound_snd_pcm_open=yes
19455
echo "$as_me: failed program was:" >&5
19456
sed 's/^/| /' conftest.$ac_ext >&5
19458
ac_cv_lib_asound_snd_pcm_open=no
19461
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19462
conftest$ac_exeext conftest.$ac_ext
19463
LIBS=$ac_check_lib_save_LIBS
19465
{ echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_open" >&5
19466
echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_open" >&6; }
19467
if test $ac_cv_lib_asound_snd_pcm_open = yes; then
19473
{ echo "$as_me:$LINENO: checking for HPI_SubSysCreate in -lhpi" >&5
19474
echo $ECHO_N "checking for HPI_SubSysCreate in -lhpi... $ECHO_C" >&6; }
19475
if test "${ac_cv_lib_hpi_HPI_SubSysCreate+set}" = set; then
19476
echo $ECHO_N "(cached) $ECHO_C" >&6
19478
ac_check_lib_save_LIBS=$LIBS
19479
LIBS="-lhpi -lm $LIBS"
19480
cat >conftest.$ac_ext <<_ACEOF
19483
cat confdefs.h >>conftest.$ac_ext
19484
cat >>conftest.$ac_ext <<_ACEOF
19485
/* end confdefs.h. */
19487
/* Override any GCC internal prototype to avoid an error.
19488
Use char because int might match the return type of a GCC
19489
builtin and then its argument prototype would still apply. */
19493
char HPI_SubSysCreate ();
19497
return HPI_SubSysCreate ();
19502
rm -f conftest.$ac_objext conftest$ac_exeext
19503
if { (ac_try="$ac_link"
19504
case "(($ac_try" in
19505
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19506
*) ac_try_echo=$ac_try;;
19508
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19509
(eval "$ac_link") 2>conftest.er1
19511
grep -v '^ *+' conftest.er1 >conftest.err
19513
cat conftest.err >&5
19514
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19515
(exit $ac_status); } && {
19516
test -z "$ac_c_werror_flag" ||
19517
test ! -s conftest.err
19518
} && test -s conftest$ac_exeext &&
19519
$as_test_x conftest$ac_exeext; then
19520
ac_cv_lib_hpi_HPI_SubSysCreate=yes
19522
echo "$as_me: failed program was:" >&5
19523
sed 's/^/| /' conftest.$ac_ext >&5
19525
ac_cv_lib_hpi_HPI_SubSysCreate=no
19528
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19529
conftest$ac_exeext conftest.$ac_ext
19530
LIBS=$ac_check_lib_save_LIBS
19532
{ echo "$as_me:$LINENO: result: $ac_cv_lib_hpi_HPI_SubSysCreate" >&5
19533
echo "${ECHO_T}$ac_cv_lib_hpi_HPI_SubSysCreate" >&6; }
19534
if test $ac_cv_lib_hpi_HPI_SubSysCreate = yes; then
19540
{ echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
19541
echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
19542
if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
19543
echo $ECHO_N "(cached) $ECHO_C" >&6
19545
ac_check_lib_save_LIBS=$LIBS
19546
LIBS="-lossaudio $LIBS"
19547
cat >conftest.$ac_ext <<_ACEOF
19550
cat confdefs.h >>conftest.$ac_ext
19551
cat >>conftest.$ac_ext <<_ACEOF
19552
/* end confdefs.h. */
19554
/* Override any GCC internal prototype to avoid an error.
19555
Use char because int might match the return type of a GCC
19556
builtin and then its argument prototype would still apply. */
19560
char _oss_ioctl ();
19564
return _oss_ioctl ();
19569
rm -f conftest.$ac_objext conftest$ac_exeext
19570
if { (ac_try="$ac_link"
19571
case "(($ac_try" in
19572
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19573
*) ac_try_echo=$ac_try;;
19575
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19576
(eval "$ac_link") 2>conftest.er1
19578
grep -v '^ *+' conftest.er1 >conftest.err
19580
cat conftest.err >&5
19581
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19582
(exit $ac_status); } && {
19583
test -z "$ac_c_werror_flag" ||
19584
test ! -s conftest.err
19585
} && test -s conftest$ac_exeext &&
19586
$as_test_x conftest$ac_exeext; then
19587
ac_cv_lib_ossaudio__oss_ioctl=yes
19589
echo "$as_me: failed program was:" >&5
19590
sed 's/^/| /' conftest.$ac_ext >&5
19592
ac_cv_lib_ossaudio__oss_ioctl=no
19595
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19596
conftest$ac_exeext conftest.$ac_ext
19597
LIBS=$ac_check_lib_save_LIBS
19599
{ echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
19600
echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
19601
if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
19602
have_libossaudio=yes
19604
have_libossaudio=no
19611
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19612
if test -n "$ac_tool_prefix"; then
19613
# Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19614
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19615
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19616
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19617
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
19618
echo $ECHO_N "(cached) $ECHO_C" >&6
19620
case $PKG_CONFIG in
19622
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19625
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19626
for as_dir in $PATH
19629
test -z "$as_dir" && as_dir=.
19630
for ac_exec_ext in '' $ac_executable_extensions; do
19631
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19632
ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19633
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19643
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19644
if test -n "$PKG_CONFIG"; then
19645
{ echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
19646
echo "${ECHO_T}$PKG_CONFIG" >&6; }
19648
{ echo "$as_me:$LINENO: result: no" >&5
19649
echo "${ECHO_T}no" >&6; }
19654
if test -z "$ac_cv_path_PKG_CONFIG"; then
19655
ac_pt_PKG_CONFIG=$PKG_CONFIG
19656
# Extract the first word of "pkg-config", so it can be a program name with args.
19657
set dummy pkg-config; ac_word=$2
19658
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19659
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19660
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
19661
echo $ECHO_N "(cached) $ECHO_C" >&6
19663
case $ac_pt_PKG_CONFIG in
19665
ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19668
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19669
for as_dir in $PATH
19672
test -z "$as_dir" && as_dir=.
19673
for ac_exec_ext in '' $ac_executable_extensions; do
19674
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19675
ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19676
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19686
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19687
if test -n "$ac_pt_PKG_CONFIG"; then
19688
{ echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
19689
echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
19691
{ echo "$as_me:$LINENO: result: no" >&5
19692
echo "${ECHO_T}no" >&6; }
19695
if test "x$ac_pt_PKG_CONFIG" = x; then
19698
case $cross_compiling:$ac_tool_warned in
19700
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19701
whose name does not start with the host triplet. If you think this
19702
configuration is useful to you, please write to autoconf@gnu.org." >&5
19703
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19704
whose name does not start with the host triplet. If you think this
19705
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19706
ac_tool_warned=yes ;;
19708
PKG_CONFIG=$ac_pt_PKG_CONFIG
19711
PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19715
if test -n "$PKG_CONFIG"; then
19716
_pkg_min_version=0.9.0
19717
{ echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
19718
echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
19719
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
19720
{ echo "$as_me:$LINENO: result: yes" >&5
19721
echo "${ECHO_T}yes" >&6; }
19723
{ echo "$as_me:$LINENO: result: no" >&5
19724
echo "${ECHO_T}no" >&6; }
19731
{ echo "$as_me:$LINENO: checking for JACK" >&5
19732
echo $ECHO_N "checking for JACK... $ECHO_C" >&6; }
19734
if test -n "$PKG_CONFIG"; then
19735
if test -n "$JACK_CFLAGS"; then
19736
pkg_cv_JACK_CFLAGS="$JACK_CFLAGS"
19738
if test -n "$PKG_CONFIG" && \
19739
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"jack\"") >&5
19740
($PKG_CONFIG --exists --print-errors "jack") 2>&5
19742
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19743
(exit $ac_status); }; then
19744
pkg_cv_JACK_CFLAGS=`$PKG_CONFIG --cflags "jack" 2>/dev/null`
19752
if test -n "$PKG_CONFIG"; then
19753
if test -n "$JACK_LIBS"; then
19754
pkg_cv_JACK_LIBS="$JACK_LIBS"
19756
if test -n "$PKG_CONFIG" && \
19757
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"jack\"") >&5
19758
($PKG_CONFIG --exists --print-errors "jack") 2>&5
19760
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19761
(exit $ac_status); }; then
19762
pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs "jack" 2>/dev/null`
19773
if test $pkg_failed = yes; then
19775
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19776
_pkg_short_errors_supported=yes
19778
_pkg_short_errors_supported=no
19780
if test $_pkg_short_errors_supported = yes; then
19781
JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "jack"`
19783
JACK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "jack"`
19785
# Put the nasty error message in config.log where it belongs
19786
echo "$JACK_PKG_ERRORS" >&5
19789
elif test $pkg_failed = untried; then
19792
JACK_CFLAGS=$pkg_cv_JACK_CFLAGS
19793
JACK_LIBS=$pkg_cv_JACK_LIBS
19794
{ echo "$as_me:$LINENO: result: yes" >&5
19795
echo "${ECHO_T}yes" >&6; }
19802
for ac_header in sys/soundcard.h linux/soundcard.h machine/soundcard.h
19804
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19805
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19806
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
19807
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19808
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19809
echo $ECHO_N "(cached) $ECHO_C" >&6
19811
ac_res=`eval echo '${'$as_ac_Header'}'`
19812
{ echo "$as_me:$LINENO: result: $ac_res" >&5
19813
echo "${ECHO_T}$ac_res" >&6; }
19815
# Is the header compilable?
19816
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
19817
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19818
cat >conftest.$ac_ext <<_ACEOF
19821
cat confdefs.h >>conftest.$ac_ext
19822
cat >>conftest.$ac_ext <<_ACEOF
19823
/* end confdefs.h. */
19824
$ac_includes_default
19825
#include <$ac_header>
19827
rm -f conftest.$ac_objext
19828
if { (ac_try="$ac_compile"
19829
case "(($ac_try" in
19830
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19831
*) ac_try_echo=$ac_try;;
19833
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19834
(eval "$ac_compile") 2>conftest.er1
19836
grep -v '^ *+' conftest.er1 >conftest.err
19838
cat conftest.err >&5
19839
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19840
(exit $ac_status); } && {
19841
test -z "$ac_c_werror_flag" ||
19842
test ! -s conftest.err
19843
} && test -s conftest.$ac_objext; then
19844
ac_header_compiler=yes
19846
echo "$as_me: failed program was:" >&5
19847
sed 's/^/| /' conftest.$ac_ext >&5
19849
ac_header_compiler=no
19852
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19853
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19854
echo "${ECHO_T}$ac_header_compiler" >&6; }
19856
# Is the header present?
19857
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
19858
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19859
cat >conftest.$ac_ext <<_ACEOF
19862
cat confdefs.h >>conftest.$ac_ext
19863
cat >>conftest.$ac_ext <<_ACEOF
19864
/* end confdefs.h. */
19865
#include <$ac_header>
19867
if { (ac_try="$ac_cpp conftest.$ac_ext"
19868
case "(($ac_try" in
19869
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19870
*) ac_try_echo=$ac_try;;
19872
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19873
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19875
grep -v '^ *+' conftest.er1 >conftest.err
19877
cat conftest.err >&5
19878
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19879
(exit $ac_status); } >/dev/null && {
19880
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19881
test ! -s conftest.err
19883
ac_header_preproc=yes
19885
echo "$as_me: failed program was:" >&5
19886
sed 's/^/| /' conftest.$ac_ext >&5
19888
ac_header_preproc=no
19891
rm -f conftest.err conftest.$ac_ext
19892
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19893
echo "${ECHO_T}$ac_header_preproc" >&6; }
19895
# So? What about this header?
19896
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19898
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19899
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19900
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19901
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19902
ac_header_preproc=yes
19905
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19906
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19907
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19908
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19909
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19910
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19911
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19912
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19913
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19914
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19915
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19916
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19920
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
19921
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19922
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19923
echo $ECHO_N "(cached) $ECHO_C" >&6
19925
eval "$as_ac_Header=\$ac_header_preproc"
19927
ac_res=`eval echo '${'$as_ac_Header'}'`
19928
{ echo "$as_me:$LINENO: result: $ac_res" >&5
19929
echo "${ECHO_T}$ac_res" >&6; }
19932
if test `eval echo '${'$as_ac_Header'}'` = yes; then
19933
cat >>confdefs.h <<_ACEOF
19934
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19943
{ echo "$as_me:$LINENO: checking for short" >&5
19944
echo $ECHO_N "checking for short... $ECHO_C" >&6; }
19945
if test "${ac_cv_type_short+set}" = set; then
19946
echo $ECHO_N "(cached) $ECHO_C" >&6
19948
cat >conftest.$ac_ext <<_ACEOF
19951
cat confdefs.h >>conftest.$ac_ext
19952
cat >>conftest.$ac_ext <<_ACEOF
19953
/* end confdefs.h. */
19954
$ac_includes_default
19955
typedef short ac__type_new_;
19959
if ((ac__type_new_ *) 0)
19961
if (sizeof (ac__type_new_))
19967
rm -f conftest.$ac_objext
19968
if { (ac_try="$ac_compile"
19969
case "(($ac_try" in
19970
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19971
*) ac_try_echo=$ac_try;;
19973
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19974
(eval "$ac_compile") 2>conftest.er1
19976
grep -v '^ *+' conftest.er1 >conftest.err
19978
cat conftest.err >&5
19979
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19980
(exit $ac_status); } && {
19981
test -z "$ac_c_werror_flag" ||
19982
test ! -s conftest.err
19983
} && test -s conftest.$ac_objext; then
19984
ac_cv_type_short=yes
19986
echo "$as_me: failed program was:" >&5
19987
sed 's/^/| /' conftest.$ac_ext >&5
19989
ac_cv_type_short=no
19992
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19994
{ echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
19995
echo "${ECHO_T}$ac_cv_type_short" >&6; }
19997
# The cast to long int works around a bug in the HP C Compiler
19998
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19999
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20000
# This bug is HP SR number 8606223364.
20001
{ echo "$as_me:$LINENO: checking size of short" >&5
20002
echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
20003
if test "${ac_cv_sizeof_short+set}" = set; then
20004
echo $ECHO_N "(cached) $ECHO_C" >&6
20006
if test "$cross_compiling" = yes; then
20007
# Depending upon the size, compute the lo and hi bounds.
20008
cat >conftest.$ac_ext <<_ACEOF
20011
cat confdefs.h >>conftest.$ac_ext
20012
cat >>conftest.$ac_ext <<_ACEOF
20013
/* end confdefs.h. */
20014
$ac_includes_default
20015
typedef short ac__type_sizeof_;
20019
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20026
rm -f conftest.$ac_objext
20027
if { (ac_try="$ac_compile"
20028
case "(($ac_try" in
20029
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20030
*) ac_try_echo=$ac_try;;
20032
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20033
(eval "$ac_compile") 2>conftest.er1
20035
grep -v '^ *+' conftest.er1 >conftest.err
20037
cat conftest.err >&5
20038
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20039
(exit $ac_status); } && {
20040
test -z "$ac_c_werror_flag" ||
20041
test ! -s conftest.err
20042
} && test -s conftest.$ac_objext; then
20045
cat >conftest.$ac_ext <<_ACEOF
20048
cat confdefs.h >>conftest.$ac_ext
20049
cat >>conftest.$ac_ext <<_ACEOF
20050
/* end confdefs.h. */
20051
$ac_includes_default
20052
typedef short ac__type_sizeof_;
20056
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20063
rm -f conftest.$ac_objext
20064
if { (ac_try="$ac_compile"
20065
case "(($ac_try" in
20066
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20067
*) ac_try_echo=$ac_try;;
20069
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20070
(eval "$ac_compile") 2>conftest.er1
20072
grep -v '^ *+' conftest.er1 >conftest.err
20074
cat conftest.err >&5
20075
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20076
(exit $ac_status); } && {
20077
test -z "$ac_c_werror_flag" ||
20078
test ! -s conftest.err
20079
} && test -s conftest.$ac_objext; then
20080
ac_hi=$ac_mid; break
20082
echo "$as_me: failed program was:" >&5
20083
sed 's/^/| /' conftest.$ac_ext >&5
20085
ac_lo=`expr $ac_mid + 1`
20086
if test $ac_lo -le $ac_mid; then
20090
ac_mid=`expr 2 '*' $ac_mid + 1`
20093
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20096
echo "$as_me: failed program was:" >&5
20097
sed 's/^/| /' conftest.$ac_ext >&5
20099
cat >conftest.$ac_ext <<_ACEOF
20102
cat confdefs.h >>conftest.$ac_ext
20103
cat >>conftest.$ac_ext <<_ACEOF
20104
/* end confdefs.h. */
20105
$ac_includes_default
20106
typedef short ac__type_sizeof_;
20110
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20117
rm -f conftest.$ac_objext
20118
if { (ac_try="$ac_compile"
20119
case "(($ac_try" in
20120
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20121
*) ac_try_echo=$ac_try;;
20123
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20124
(eval "$ac_compile") 2>conftest.er1
20126
grep -v '^ *+' conftest.er1 >conftest.err
20128
cat conftest.err >&5
20129
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20130
(exit $ac_status); } && {
20131
test -z "$ac_c_werror_flag" ||
20132
test ! -s conftest.err
20133
} && test -s conftest.$ac_objext; then
20136
cat >conftest.$ac_ext <<_ACEOF
20139
cat confdefs.h >>conftest.$ac_ext
20140
cat >>conftest.$ac_ext <<_ACEOF
20141
/* end confdefs.h. */
20142
$ac_includes_default
20143
typedef short ac__type_sizeof_;
20147
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20154
rm -f conftest.$ac_objext
20155
if { (ac_try="$ac_compile"
20156
case "(($ac_try" in
20157
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20158
*) ac_try_echo=$ac_try;;
20160
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20161
(eval "$ac_compile") 2>conftest.er1
20163
grep -v '^ *+' conftest.er1 >conftest.err
20165
cat conftest.err >&5
20166
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20167
(exit $ac_status); } && {
20168
test -z "$ac_c_werror_flag" ||
20169
test ! -s conftest.err
20170
} && test -s conftest.$ac_objext; then
20171
ac_lo=$ac_mid; break
20173
echo "$as_me: failed program was:" >&5
20174
sed 's/^/| /' conftest.$ac_ext >&5
20176
ac_hi=`expr '(' $ac_mid ')' - 1`
20177
if test $ac_mid -le $ac_hi; then
20181
ac_mid=`expr 2 '*' $ac_mid`
20184
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20187
echo "$as_me: failed program was:" >&5
20188
sed 's/^/| /' conftest.$ac_ext >&5
20193
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20196
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20197
# Binary search between lo and hi bounds.
20198
while test "x$ac_lo" != "x$ac_hi"; do
20199
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20200
cat >conftest.$ac_ext <<_ACEOF
20203
cat confdefs.h >>conftest.$ac_ext
20204
cat >>conftest.$ac_ext <<_ACEOF
20205
/* end confdefs.h. */
20206
$ac_includes_default
20207
typedef short ac__type_sizeof_;
20211
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20218
rm -f conftest.$ac_objext
20219
if { (ac_try="$ac_compile"
20220
case "(($ac_try" in
20221
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20222
*) ac_try_echo=$ac_try;;
20224
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20225
(eval "$ac_compile") 2>conftest.er1
20227
grep -v '^ *+' conftest.er1 >conftest.err
20229
cat conftest.err >&5
20230
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20231
(exit $ac_status); } && {
20232
test -z "$ac_c_werror_flag" ||
20233
test ! -s conftest.err
20234
} && test -s conftest.$ac_objext; then
20237
echo "$as_me: failed program was:" >&5
20238
sed 's/^/| /' conftest.$ac_ext >&5
20240
ac_lo=`expr '(' $ac_mid ')' + 1`
20243
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20246
?*) ac_cv_sizeof_short=$ac_lo;;
20247
'') if test "$ac_cv_type_short" = yes; then
20248
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
20249
See \`config.log' for more details." >&5
20250
echo "$as_me: error: cannot compute sizeof (short)
20251
See \`config.log' for more details." >&2;}
20252
{ (exit 77); exit 77; }; }
20254
ac_cv_sizeof_short=0
20258
cat >conftest.$ac_ext <<_ACEOF
20261
cat confdefs.h >>conftest.$ac_ext
20262
cat >>conftest.$ac_ext <<_ACEOF
20263
/* end confdefs.h. */
20264
$ac_includes_default
20265
typedef short ac__type_sizeof_;
20266
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20267
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20269
#include <stdlib.h>
20274
FILE *f = fopen ("conftest.val", "w");
20277
if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20279
long int i = longval ();
20280
if (i != ((long int) (sizeof (ac__type_sizeof_))))
20282
fprintf (f, "%ld\n", i);
20286
unsigned long int i = ulongval ();
20287
if (i != ((long int) (sizeof (ac__type_sizeof_))))
20289
fprintf (f, "%lu\n", i);
20291
return ferror (f) || fclose (f) != 0;
20297
rm -f conftest$ac_exeext
20298
if { (ac_try="$ac_link"
20299
case "(($ac_try" in
20300
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20301
*) ac_try_echo=$ac_try;;
20303
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20304
(eval "$ac_link") 2>&5
20306
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20307
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20308
{ (case "(($ac_try" in
20309
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20310
*) ac_try_echo=$ac_try;;
20312
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20313
(eval "$ac_try") 2>&5
20315
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20316
(exit $ac_status); }; }; then
20317
ac_cv_sizeof_short=`cat conftest.val`
20319
echo "$as_me: program exited with status $ac_status" >&5
20320
echo "$as_me: failed program was:" >&5
20321
sed 's/^/| /' conftest.$ac_ext >&5
20323
( exit $ac_status )
20324
if test "$ac_cv_type_short" = yes; then
20325
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
20326
See \`config.log' for more details." >&5
20327
echo "$as_me: error: cannot compute sizeof (short)
20328
See \`config.log' for more details." >&2;}
20329
{ (exit 77); exit 77; }; }
20331
ac_cv_sizeof_short=0
20334
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20338
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
20339
echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
20343
cat >>confdefs.h <<_ACEOF
20344
#define SIZEOF_SHORT $ac_cv_sizeof_short
20348
{ echo "$as_me:$LINENO: checking for int" >&5
20349
echo $ECHO_N "checking for int... $ECHO_C" >&6; }
20350
if test "${ac_cv_type_int+set}" = set; then
20351
echo $ECHO_N "(cached) $ECHO_C" >&6
20353
cat >conftest.$ac_ext <<_ACEOF
20356
cat confdefs.h >>conftest.$ac_ext
20357
cat >>conftest.$ac_ext <<_ACEOF
20358
/* end confdefs.h. */
20359
$ac_includes_default
20360
typedef int ac__type_new_;
20364
if ((ac__type_new_ *) 0)
20366
if (sizeof (ac__type_new_))
20372
rm -f conftest.$ac_objext
20373
if { (ac_try="$ac_compile"
20374
case "(($ac_try" in
20375
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20376
*) ac_try_echo=$ac_try;;
20378
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20379
(eval "$ac_compile") 2>conftest.er1
20381
grep -v '^ *+' conftest.er1 >conftest.err
20383
cat conftest.err >&5
20384
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20385
(exit $ac_status); } && {
20386
test -z "$ac_c_werror_flag" ||
20387
test ! -s conftest.err
20388
} && test -s conftest.$ac_objext; then
20391
echo "$as_me: failed program was:" >&5
20392
sed 's/^/| /' conftest.$ac_ext >&5
20397
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20399
{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
20400
echo "${ECHO_T}$ac_cv_type_int" >&6; }
20402
# The cast to long int works around a bug in the HP C Compiler
20403
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20404
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20405
# This bug is HP SR number 8606223364.
20406
{ echo "$as_me:$LINENO: checking size of int" >&5
20407
echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
20408
if test "${ac_cv_sizeof_int+set}" = set; then
20409
echo $ECHO_N "(cached) $ECHO_C" >&6
20411
if test "$cross_compiling" = yes; then
20412
# Depending upon the size, compute the lo and hi bounds.
20413
cat >conftest.$ac_ext <<_ACEOF
20416
cat confdefs.h >>conftest.$ac_ext
20417
cat >>conftest.$ac_ext <<_ACEOF
20418
/* end confdefs.h. */
20419
$ac_includes_default
20420
typedef int ac__type_sizeof_;
20424
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20431
rm -f conftest.$ac_objext
20432
if { (ac_try="$ac_compile"
20433
case "(($ac_try" in
20434
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20435
*) ac_try_echo=$ac_try;;
20437
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20438
(eval "$ac_compile") 2>conftest.er1
20440
grep -v '^ *+' conftest.er1 >conftest.err
20442
cat conftest.err >&5
20443
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20444
(exit $ac_status); } && {
20445
test -z "$ac_c_werror_flag" ||
20446
test ! -s conftest.err
20447
} && test -s conftest.$ac_objext; then
20450
cat >conftest.$ac_ext <<_ACEOF
20453
cat confdefs.h >>conftest.$ac_ext
20454
cat >>conftest.$ac_ext <<_ACEOF
20455
/* end confdefs.h. */
20456
$ac_includes_default
20457
typedef int ac__type_sizeof_;
20461
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20468
rm -f conftest.$ac_objext
20469
if { (ac_try="$ac_compile"
20470
case "(($ac_try" in
20471
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20472
*) ac_try_echo=$ac_try;;
20474
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20475
(eval "$ac_compile") 2>conftest.er1
20477
grep -v '^ *+' conftest.er1 >conftest.err
20479
cat conftest.err >&5
20480
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20481
(exit $ac_status); } && {
20482
test -z "$ac_c_werror_flag" ||
20483
test ! -s conftest.err
20484
} && test -s conftest.$ac_objext; then
20485
ac_hi=$ac_mid; break
20487
echo "$as_me: failed program was:" >&5
20488
sed 's/^/| /' conftest.$ac_ext >&5
20490
ac_lo=`expr $ac_mid + 1`
20491
if test $ac_lo -le $ac_mid; then
20495
ac_mid=`expr 2 '*' $ac_mid + 1`
20498
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20501
echo "$as_me: failed program was:" >&5
20502
sed 's/^/| /' conftest.$ac_ext >&5
20504
cat >conftest.$ac_ext <<_ACEOF
20507
cat confdefs.h >>conftest.$ac_ext
20508
cat >>conftest.$ac_ext <<_ACEOF
20509
/* end confdefs.h. */
20510
$ac_includes_default
20511
typedef int ac__type_sizeof_;
20515
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20522
rm -f conftest.$ac_objext
20523
if { (ac_try="$ac_compile"
20524
case "(($ac_try" in
20525
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20526
*) ac_try_echo=$ac_try;;
20528
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20529
(eval "$ac_compile") 2>conftest.er1
20531
grep -v '^ *+' conftest.er1 >conftest.err
20533
cat conftest.err >&5
20534
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20535
(exit $ac_status); } && {
20536
test -z "$ac_c_werror_flag" ||
20537
test ! -s conftest.err
20538
} && test -s conftest.$ac_objext; then
20541
cat >conftest.$ac_ext <<_ACEOF
20544
cat confdefs.h >>conftest.$ac_ext
20545
cat >>conftest.$ac_ext <<_ACEOF
20546
/* end confdefs.h. */
20547
$ac_includes_default
20548
typedef int ac__type_sizeof_;
20552
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20559
rm -f conftest.$ac_objext
20560
if { (ac_try="$ac_compile"
20561
case "(($ac_try" in
20562
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20563
*) ac_try_echo=$ac_try;;
20565
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20566
(eval "$ac_compile") 2>conftest.er1
20568
grep -v '^ *+' conftest.er1 >conftest.err
20570
cat conftest.err >&5
20571
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20572
(exit $ac_status); } && {
20573
test -z "$ac_c_werror_flag" ||
20574
test ! -s conftest.err
20575
} && test -s conftest.$ac_objext; then
20576
ac_lo=$ac_mid; break
20578
echo "$as_me: failed program was:" >&5
20579
sed 's/^/| /' conftest.$ac_ext >&5
20581
ac_hi=`expr '(' $ac_mid ')' - 1`
20582
if test $ac_mid -le $ac_hi; then
20586
ac_mid=`expr 2 '*' $ac_mid`
20589
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20592
echo "$as_me: failed program was:" >&5
20593
sed 's/^/| /' conftest.$ac_ext >&5
20598
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20601
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20602
# Binary search between lo and hi bounds.
20603
while test "x$ac_lo" != "x$ac_hi"; do
20604
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20605
cat >conftest.$ac_ext <<_ACEOF
20608
cat confdefs.h >>conftest.$ac_ext
20609
cat >>conftest.$ac_ext <<_ACEOF
20610
/* end confdefs.h. */
20611
$ac_includes_default
20612
typedef int ac__type_sizeof_;
20616
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20623
rm -f conftest.$ac_objext
20624
if { (ac_try="$ac_compile"
20625
case "(($ac_try" in
20626
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20627
*) ac_try_echo=$ac_try;;
20629
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20630
(eval "$ac_compile") 2>conftest.er1
20632
grep -v '^ *+' conftest.er1 >conftest.err
20634
cat conftest.err >&5
20635
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20636
(exit $ac_status); } && {
20637
test -z "$ac_c_werror_flag" ||
20638
test ! -s conftest.err
20639
} && test -s conftest.$ac_objext; then
20642
echo "$as_me: failed program was:" >&5
20643
sed 's/^/| /' conftest.$ac_ext >&5
20645
ac_lo=`expr '(' $ac_mid ')' + 1`
20648
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20651
?*) ac_cv_sizeof_int=$ac_lo;;
20652
'') if test "$ac_cv_type_int" = yes; then
20653
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
20654
See \`config.log' for more details." >&5
20655
echo "$as_me: error: cannot compute sizeof (int)
20656
See \`config.log' for more details." >&2;}
20657
{ (exit 77); exit 77; }; }
20663
cat >conftest.$ac_ext <<_ACEOF
20666
cat confdefs.h >>conftest.$ac_ext
20667
cat >>conftest.$ac_ext <<_ACEOF
20668
/* end confdefs.h. */
20669
$ac_includes_default
20670
typedef int ac__type_sizeof_;
20671
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20672
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20674
#include <stdlib.h>
20679
FILE *f = fopen ("conftest.val", "w");
20682
if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20684
long int i = longval ();
20685
if (i != ((long int) (sizeof (ac__type_sizeof_))))
20687
fprintf (f, "%ld\n", i);
20691
unsigned long int i = ulongval ();
20692
if (i != ((long int) (sizeof (ac__type_sizeof_))))
20694
fprintf (f, "%lu\n", i);
20696
return ferror (f) || fclose (f) != 0;
20702
rm -f conftest$ac_exeext
20703
if { (ac_try="$ac_link"
20704
case "(($ac_try" in
20705
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20706
*) ac_try_echo=$ac_try;;
20708
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20709
(eval "$ac_link") 2>&5
20711
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20712
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20713
{ (case "(($ac_try" in
20714
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20715
*) ac_try_echo=$ac_try;;
20717
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20718
(eval "$ac_try") 2>&5
20720
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20721
(exit $ac_status); }; }; then
20722
ac_cv_sizeof_int=`cat conftest.val`
20724
echo "$as_me: program exited with status $ac_status" >&5
20725
echo "$as_me: failed program was:" >&5
20726
sed 's/^/| /' conftest.$ac_ext >&5
20728
( exit $ac_status )
20729
if test "$ac_cv_type_int" = yes; then
20730
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
20731
See \`config.log' for more details." >&5
20732
echo "$as_me: error: cannot compute sizeof (int)
20733
See \`config.log' for more details." >&2;}
20734
{ (exit 77); exit 77; }; }
20739
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20743
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
20744
echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
20748
cat >>confdefs.h <<_ACEOF
20749
#define SIZEOF_INT $ac_cv_sizeof_int
20753
{ echo "$as_me:$LINENO: checking for long" >&5
20754
echo $ECHO_N "checking for long... $ECHO_C" >&6; }
20755
if test "${ac_cv_type_long+set}" = set; then
20756
echo $ECHO_N "(cached) $ECHO_C" >&6
20758
cat >conftest.$ac_ext <<_ACEOF
20761
cat confdefs.h >>conftest.$ac_ext
20762
cat >>conftest.$ac_ext <<_ACEOF
20763
/* end confdefs.h. */
20764
$ac_includes_default
20765
typedef long ac__type_new_;
20769
if ((ac__type_new_ *) 0)
20771
if (sizeof (ac__type_new_))
20777
rm -f conftest.$ac_objext
20778
if { (ac_try="$ac_compile"
20779
case "(($ac_try" in
20780
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20781
*) ac_try_echo=$ac_try;;
20783
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20784
(eval "$ac_compile") 2>conftest.er1
20786
grep -v '^ *+' conftest.er1 >conftest.err
20788
cat conftest.err >&5
20789
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20790
(exit $ac_status); } && {
20791
test -z "$ac_c_werror_flag" ||
20792
test ! -s conftest.err
20793
} && test -s conftest.$ac_objext; then
20794
ac_cv_type_long=yes
20796
echo "$as_me: failed program was:" >&5
20797
sed 's/^/| /' conftest.$ac_ext >&5
20802
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20804
{ echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
20805
echo "${ECHO_T}$ac_cv_type_long" >&6; }
20807
# The cast to long int works around a bug in the HP C Compiler
20808
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20809
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20810
# This bug is HP SR number 8606223364.
20811
{ echo "$as_me:$LINENO: checking size of long" >&5
20812
echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
20813
if test "${ac_cv_sizeof_long+set}" = set; then
20814
echo $ECHO_N "(cached) $ECHO_C" >&6
20816
if test "$cross_compiling" = yes; then
20817
# Depending upon the size, compute the lo and hi bounds.
20818
cat >conftest.$ac_ext <<_ACEOF
20821
cat confdefs.h >>conftest.$ac_ext
20822
cat >>conftest.$ac_ext <<_ACEOF
20823
/* end confdefs.h. */
20824
$ac_includes_default
20825
typedef long ac__type_sizeof_;
20829
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20836
rm -f conftest.$ac_objext
20837
if { (ac_try="$ac_compile"
20838
case "(($ac_try" in
20839
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20840
*) ac_try_echo=$ac_try;;
20842
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20843
(eval "$ac_compile") 2>conftest.er1
20845
grep -v '^ *+' conftest.er1 >conftest.err
20847
cat conftest.err >&5
20848
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20849
(exit $ac_status); } && {
20850
test -z "$ac_c_werror_flag" ||
20851
test ! -s conftest.err
20852
} && test -s conftest.$ac_objext; then
20855
cat >conftest.$ac_ext <<_ACEOF
20858
cat confdefs.h >>conftest.$ac_ext
20859
cat >>conftest.$ac_ext <<_ACEOF
20860
/* end confdefs.h. */
20861
$ac_includes_default
20862
typedef long ac__type_sizeof_;
20866
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20873
rm -f conftest.$ac_objext
20874
if { (ac_try="$ac_compile"
20875
case "(($ac_try" in
20876
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20877
*) ac_try_echo=$ac_try;;
20879
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20880
(eval "$ac_compile") 2>conftest.er1
20882
grep -v '^ *+' conftest.er1 >conftest.err
20884
cat conftest.err >&5
20885
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20886
(exit $ac_status); } && {
20887
test -z "$ac_c_werror_flag" ||
20888
test ! -s conftest.err
20889
} && test -s conftest.$ac_objext; then
20890
ac_hi=$ac_mid; break
20892
echo "$as_me: failed program was:" >&5
20893
sed 's/^/| /' conftest.$ac_ext >&5
20895
ac_lo=`expr $ac_mid + 1`
20896
if test $ac_lo -le $ac_mid; then
20900
ac_mid=`expr 2 '*' $ac_mid + 1`
20903
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20906
echo "$as_me: failed program was:" >&5
20907
sed 's/^/| /' conftest.$ac_ext >&5
20909
cat >conftest.$ac_ext <<_ACEOF
20912
cat confdefs.h >>conftest.$ac_ext
20913
cat >>conftest.$ac_ext <<_ACEOF
20914
/* end confdefs.h. */
20915
$ac_includes_default
20916
typedef long ac__type_sizeof_;
20920
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20927
rm -f conftest.$ac_objext
20928
if { (ac_try="$ac_compile"
20929
case "(($ac_try" in
20930
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20931
*) ac_try_echo=$ac_try;;
20933
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20934
(eval "$ac_compile") 2>conftest.er1
20936
grep -v '^ *+' conftest.er1 >conftest.err
20938
cat conftest.err >&5
20939
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20940
(exit $ac_status); } && {
20941
test -z "$ac_c_werror_flag" ||
20942
test ! -s conftest.err
20943
} && test -s conftest.$ac_objext; then
20946
cat >conftest.$ac_ext <<_ACEOF
20949
cat confdefs.h >>conftest.$ac_ext
20950
cat >>conftest.$ac_ext <<_ACEOF
20951
/* end confdefs.h. */
20952
$ac_includes_default
20953
typedef long ac__type_sizeof_;
20957
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20964
rm -f conftest.$ac_objext
20965
if { (ac_try="$ac_compile"
20966
case "(($ac_try" in
20967
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20968
*) ac_try_echo=$ac_try;;
20970
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20971
(eval "$ac_compile") 2>conftest.er1
20973
grep -v '^ *+' conftest.er1 >conftest.err
20975
cat conftest.err >&5
20976
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20977
(exit $ac_status); } && {
20978
test -z "$ac_c_werror_flag" ||
20979
test ! -s conftest.err
20980
} && test -s conftest.$ac_objext; then
20981
ac_lo=$ac_mid; break
20983
echo "$as_me: failed program was:" >&5
20984
sed 's/^/| /' conftest.$ac_ext >&5
20986
ac_hi=`expr '(' $ac_mid ')' - 1`
20987
if test $ac_mid -le $ac_hi; then
20991
ac_mid=`expr 2 '*' $ac_mid`
20994
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20997
echo "$as_me: failed program was:" >&5
20998
sed 's/^/| /' conftest.$ac_ext >&5
21003
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21006
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21007
# Binary search between lo and hi bounds.
21008
while test "x$ac_lo" != "x$ac_hi"; do
21009
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21010
cat >conftest.$ac_ext <<_ACEOF
21013
cat confdefs.h >>conftest.$ac_ext
21014
cat >>conftest.$ac_ext <<_ACEOF
21015
/* end confdefs.h. */
21016
$ac_includes_default
21017
typedef long ac__type_sizeof_;
21021
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21028
rm -f conftest.$ac_objext
21029
if { (ac_try="$ac_compile"
21030
case "(($ac_try" in
21031
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21032
*) ac_try_echo=$ac_try;;
21034
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21035
(eval "$ac_compile") 2>conftest.er1
21037
grep -v '^ *+' conftest.er1 >conftest.err
21039
cat conftest.err >&5
21040
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21041
(exit $ac_status); } && {
21042
test -z "$ac_c_werror_flag" ||
21043
test ! -s conftest.err
21044
} && test -s conftest.$ac_objext; then
21047
echo "$as_me: failed program was:" >&5
21048
sed 's/^/| /' conftest.$ac_ext >&5
21050
ac_lo=`expr '(' $ac_mid ')' + 1`
21053
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21056
?*) ac_cv_sizeof_long=$ac_lo;;
21057
'') if test "$ac_cv_type_long" = yes; then
21058
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
21059
See \`config.log' for more details." >&5
21060
echo "$as_me: error: cannot compute sizeof (long)
21061
See \`config.log' for more details." >&2;}
21062
{ (exit 77); exit 77; }; }
21064
ac_cv_sizeof_long=0
21068
cat >conftest.$ac_ext <<_ACEOF
21071
cat confdefs.h >>conftest.$ac_ext
21072
cat >>conftest.$ac_ext <<_ACEOF
21073
/* end confdefs.h. */
21074
$ac_includes_default
21075
typedef long ac__type_sizeof_;
21076
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21077
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21079
#include <stdlib.h>
21084
FILE *f = fopen ("conftest.val", "w");
21087
if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21089
long int i = longval ();
21090
if (i != ((long int) (sizeof (ac__type_sizeof_))))
21092
fprintf (f, "%ld\n", i);
21096
unsigned long int i = ulongval ();
21097
if (i != ((long int) (sizeof (ac__type_sizeof_))))
21099
fprintf (f, "%lu\n", i);
21101
return ferror (f) || fclose (f) != 0;
21107
rm -f conftest$ac_exeext
21108
if { (ac_try="$ac_link"
21109
case "(($ac_try" in
21110
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21111
*) ac_try_echo=$ac_try;;
21113
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21114
(eval "$ac_link") 2>&5
21116
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21117
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21118
{ (case "(($ac_try" in
21119
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21120
*) ac_try_echo=$ac_try;;
21122
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21123
(eval "$ac_try") 2>&5
21125
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21126
(exit $ac_status); }; }; then
21127
ac_cv_sizeof_long=`cat conftest.val`
21129
echo "$as_me: program exited with status $ac_status" >&5
21130
echo "$as_me: failed program was:" >&5
21131
sed 's/^/| /' conftest.$ac_ext >&5
21133
( exit $ac_status )
21134
if test "$ac_cv_type_long" = yes; then
21135
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
21136
See \`config.log' for more details." >&5
21137
echo "$as_me: error: cannot compute sizeof (long)
21138
See \`config.log' for more details." >&2;}
21139
{ (exit 77); exit 77; }; }
21141
ac_cv_sizeof_long=0
21144
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21148
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
21149
echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
21153
cat >>confdefs.h <<_ACEOF
21154
#define SIZEOF_LONG $ac_cv_sizeof_long
21159
save_LIBS="${LIBS}"
21160
{ echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
21161
echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; }
21162
if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
21163
echo $ECHO_N "(cached) $ECHO_C" >&6
21165
ac_check_lib_save_LIBS=$LIBS
21167
cat >conftest.$ac_ext <<_ACEOF
21170
cat confdefs.h >>conftest.$ac_ext
21171
cat >>conftest.$ac_ext <<_ACEOF
21172
/* end confdefs.h. */
21174
/* Override any GCC internal prototype to avoid an error.
21175
Use char because int might match the return type of a GCC
21176
builtin and then its argument prototype would still apply. */
21180
char clock_gettime ();
21184
return clock_gettime ();
21189
rm -f conftest.$ac_objext conftest$ac_exeext
21190
if { (ac_try="$ac_link"
21191
case "(($ac_try" in
21192
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21193
*) ac_try_echo=$ac_try;;
21195
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21196
(eval "$ac_link") 2>conftest.er1
21198
grep -v '^ *+' conftest.er1 >conftest.err
21200
cat conftest.err >&5
21201
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21202
(exit $ac_status); } && {
21203
test -z "$ac_c_werror_flag" ||
21204
test ! -s conftest.err
21205
} && test -s conftest$ac_exeext &&
21206
$as_test_x conftest$ac_exeext; then
21207
ac_cv_lib_rt_clock_gettime=yes
21209
echo "$as_me: failed program was:" >&5
21210
sed 's/^/| /' conftest.$ac_ext >&5
21212
ac_cv_lib_rt_clock_gettime=no
21215
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21216
conftest$ac_exeext conftest.$ac_ext
21217
LIBS=$ac_check_lib_save_LIBS
21219
{ echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
21220
echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6; }
21221
if test $ac_cv_lib_rt_clock_gettime = yes; then
21225
LIBS="${LIBS}${rt_libs}"
21226
DLL_LIBS="${DLL_LIBS}${rt_libs}"
21229
for ac_func in clock_gettime nanosleep
21231
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21232
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
21233
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21234
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21235
echo $ECHO_N "(cached) $ECHO_C" >&6
21237
cat >conftest.$ac_ext <<_ACEOF
21240
cat confdefs.h >>conftest.$ac_ext
21241
cat >>conftest.$ac_ext <<_ACEOF
21242
/* end confdefs.h. */
21243
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21244
For example, HP-UX 11i <limits.h> declares gettimeofday. */
21245
#define $ac_func innocuous_$ac_func
21247
/* System header to define __stub macros and hopefully few prototypes,
21248
which can conflict with char $ac_func (); below.
21249
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21250
<limits.h> exists even on freestanding compilers. */
21253
# include <limits.h>
21255
# include <assert.h>
21260
/* Override any GCC internal prototype to avoid an error.
21261
Use char because int might match the return type of a GCC
21262
builtin and then its argument prototype would still apply. */
21267
/* The GNU C library defines this for functions which it implements
21268
to always fail with ENOSYS. Some functions are actually named
21269
something starting with __ and the normal name is an alias. */
21270
#if defined __stub_$ac_func || defined __stub___$ac_func
21277
return $ac_func ();
21282
rm -f conftest.$ac_objext conftest$ac_exeext
21283
if { (ac_try="$ac_link"
21284
case "(($ac_try" in
21285
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21286
*) ac_try_echo=$ac_try;;
21288
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21289
(eval "$ac_link") 2>conftest.er1
21291
grep -v '^ *+' conftest.er1 >conftest.err
21293
cat conftest.err >&5
21294
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21295
(exit $ac_status); } && {
21296
test -z "$ac_c_werror_flag" ||
21297
test ! -s conftest.err
21298
} && test -s conftest$ac_exeext &&
21299
$as_test_x conftest$ac_exeext; then
21300
eval "$as_ac_var=yes"
21302
echo "$as_me: failed program was:" >&5
21303
sed 's/^/| /' conftest.$ac_ext >&5
21305
eval "$as_ac_var=no"
21308
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21309
conftest$ac_exeext conftest.$ac_ext
21311
ac_res=`eval echo '${'$as_ac_var'}'`
21312
{ echo "$as_me:$LINENO: result: $ac_res" >&5
21313
echo "${ECHO_T}$ac_res" >&6; }
21314
if test `eval echo '${'$as_ac_var'}'` = yes; then
21315
cat >>confdefs.h <<_ACEOF
21316
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21322
LIBS="${save_LIBS}"
21341
if ( echo "${host_os}" | grep ^darwin >> /dev/null ) &&
21342
[ "$enable_mac_universal" = "yes" ] &&
21343
[ "$enable_mac_debug" != "yes" ] ; then
21344
CFLAGS="-O2 -Wall -pedantic -pipe -fPIC -DNDEBUG"
21346
CFLAGS=${CFLAGS:-"-g -O2 -Wall -pedantic -pipe -fPIC"}
21349
if [ $ac_cv_c_bigendian = "yes" ] ; then
21350
CFLAGS="$CFLAGS -DPA_BIG_ENDIAN"
21352
CFLAGS="$CFLAGS -DPA_LITTLE_ENDIAN"
21355
case "${host_os}" in
21358
cat >>confdefs.h <<\_ACEOF
21359
#define PA_USE_COREAUDIO 1
21363
CFLAGS="$CFLAGS -Werror"
21364
LIBS="-framework CoreAudio -framework AudioToolbox -framework AudioUnit -framework Carbon"
21366
if test "x$enable_mac_universal" = "xyes" ; then
21367
mac_version_min="-mmacosx-version-min=10.3"
21368
if [ -d /Developer/SDKs/MacOSX10.5.sdk ] ; then
21369
mac_arches="-arch i386 -arch ppc -arch x86_64 -arch ppc64"
21370
mac_sysroot="-isysroot /Developer/SDKs/MacOSX10.5.sdk"
21372
mac_arches="-arch i386 -arch ppc"
21373
mac_sysroot="-isysroot /Developer/SDKs/MacOSX10.4u.sdk"
21380
SHARED_FLAGS="$LIBS -dynamiclib $mac_arches $mac_sysroot $mac_version_min"
21381
CFLAGS="-std=c99 $CFLAGS $mac_arches $mac_sysroot $mac_version_min"
21382
OTHER_OBJS="src/os/unix/pa_unix_hostapis.o src/os/unix/pa_unix_util.o src/hostapi/coreaudio/pa_mac_core.o src/hostapi/coreaudio/pa_mac_core_utilities.o src/hostapi/coreaudio/pa_mac_core_blocking.o src/common/pa_ringbuffer.o"
21383
PADLL="libportaudio.dylib"
21384
if [ $with_macapi = "asio" ] ; then
21385
if [ $with_asiodir ] ; then
21386
ASIODIR="$with_asiodir"
21388
ASIODIR="/usr/local/asiosdk2"
21390
echo "ASIODIR: $ASIODIR"
21392
OTHER_OBJS="src/hostapi/asio/iasiothiscallresolver.o $ASIODIR/host/asiodrivers.o $ASIODIR/common/asio.o $ASIODIR/host/mac/asioshlib.o"
21393
CFLAGS="$CFLAGS -I\$(top_srcdir)/src/hostapi/asio -I$ASIODIR/host/mac -I$ASIODIR/common"
21400
echo "WINAPI: $with_winapi"
21401
if [ $with_winapi = "directx" ] ; then
21402
if [ $with_dxdir ] ; then
21403
DXDIR="$with_dxdir"
21405
DXDIR="/usr/local/dx7sdk"
21407
echo "DXDIR: $DXDIR"
21408
OTHER_OBJS="src/hostapi/dsound/pa_win_ds.o src/hostapi/dsound/pa_win_ds_dynlink.o src/os/win/pa_win_hostapis.o src/os/win/pa_win_util.o src/os/win/pa_win_waveformat.o"
21409
LIBS="-lwinmm -lm -ldsound -lole32"
21410
PADLL="portaudio.dll"
21411
THREAD_CFLAGS="-mthreads"
21412
SHARED_FLAGS="-shared"
21413
DLL_LIBS="${DLL_LIBS} -lwinmm -lm -L./dx7sdk/lib -ldsound -lole32"
21414
#VC98="\"/c/Program Files/Microsoft Visual Studio/VC98/Include\""
21415
#CFLAGS="$CFLAGS -I$VC98 -DPA_NO_WMME -DPA_NO_ASIO"
21416
CFLAGS="$CFLAGS -I\$(top_srcdir)/include -I$DXDIR/include -DPA_NO_WMME -DPA_NO_ASIO" -DPA_NO_WDMKS
21417
elif [ $with_winapi = "asio" ] ; then
21418
if [ $with_asiodir ] ; then
21419
ASIODIR="$with_asiodir"
21421
ASIODIR="/usr/local/asiosdk2"
21423
echo "ASIODIR: $ASIODIR"
21426
OTHER_OBJS="src/hostapi/asio/pa_asio.o src/common/pa_ringbuffer.o src/os/win/pa_win_hostapis.o src/os/win/pa_win_util.o src/hostapi/asio/iasiothiscallresolver.o $ASIODIR/common/asio.o $ASIODIR/host/asiodrivers.o $ASIODIR/host/pc/asiolist.o"
21427
LIBS="-lwinmm -lm -lstdc++ -lole32 -luuid"
21428
PADLL="portaudio.dll"
21429
THREAD_CFLAGS="-mthreads"
21430
SHARED_FLAGS="-shared"
21431
DLL_LIBS="${DLL_LIBS} -lwinmm -lm -lstdc++ -lole32 -luuid"
21432
CFLAGS="$CFLAGS -ffast-math -fomit-frame-pointer -I\$(top_srcdir)/src/common -I\$(top_srcdir)/src/hostapi/asio -I$ASIODIR/host/pc -I$ASIODIR/common -I$ASIODIR/host -DPA_NO_WMME -DPA_NO_DS -DPA_NO_WDMKS -DWINDOWS"
21434
elif [ $with_winapi = "wdmks" ] ; then
21435
if [ $with_dxdir ] ; then
21436
DXDIR="$with_dxdir"
21438
DXDIR="/usr/local/dx7sdk"
21440
echo "DXDIR: $DXDIR"
21441
OTHER_OBJS="src/hostapi/wdmks/pa_win_wdmks.o src/os/win/pa_win_hostapis.o src/os/win/pa_win_util.o"
21442
LIBS="-lwinmm -lm -luuid -lsetupapi -lole32"
21443
PADLL="portaudio.dll"
21444
THREAD_CFLAGS="-mthreads"
21445
SHARED_FLAGS="-shared"
21446
DLL_LIBS="${DLL_LIBS} -lwinmm -lm -L./dx7sdk/lib -luuid -lsetupapi -lole32"
21447
#VC98="\"/c/Program Files/Microsoft Visual Studio/VC98/Include\""
21448
#CFLAGS="$CFLAGS -I$VC98 -DPA_NO_WMME -DPA_NO_ASIO"
21449
CFLAGS="$CFLAGS -I\$(top_srcdir)/src/common -I$DXDIR/include -DPA_NO_WMME -DPA_NO_DS -DPA_NO_ASIO"
21450
else # WMME default
21451
OTHER_OBJS="src/hostapi/wmme/pa_win_wmme.o src/os/win/pa_win_hostapis.o src/os/win/pa_win_util.o src/os/win/pa_win_waveformat.o"
21452
LIBS="-lwinmm -lm -lstdc++ -lole32 -luuid"
21453
PADLL="portaudio.dll"
21454
THREAD_CFLAGS="-mthreads"
21455
SHARED_FLAGS="-shared"
21456
DLL_LIBS="${DLL_LIBS} -lwinmm"
21457
CFLAGS="$CFLAGS -I\$(top_srcdir)/src/common -DPA_NO_DS -DPA_NO_ASIO -DPA_NO_WDMKS"
21463
OTHER_OBJS="src/hostapi/wmme/pa_win_wmme.o src/os/win/pa_win_hostapis.o src/os/win/pa_win_util.o src/os/win/pa_win_waveformat.o"
21464
CFLAGS="$CFLAGS -DPA_NO_DS -DPA_NO_WDMKS -DPA_NO_ASIO -DPA_NO_WASAPI"
21466
PADLL="portaudio.dll"
21467
THREAD_CFLAGS="-mthreads"
21468
SHARED_FLAGS="-shared"
21469
DLL_LIBS="${DLL_LIBS} -lwinmm"
21474
{ echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
21475
echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
21476
if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
21477
echo $ECHO_N "(cached) $ECHO_C" >&6
21479
ac_check_lib_save_LIBS=$LIBS
21480
LIBS="-lpthread $LIBS"
21481
cat >conftest.$ac_ext <<_ACEOF
21484
cat confdefs.h >>conftest.$ac_ext
21485
cat >>conftest.$ac_ext <<_ACEOF
21486
/* end confdefs.h. */
21488
/* Override any GCC internal prototype to avoid an error.
21489
Use char because int might match the return type of a GCC
21490
builtin and then its argument prototype would still apply. */
21494
char pthread_create ();
21498
return pthread_create ();
21503
rm -f conftest.$ac_objext conftest$ac_exeext
21504
if { (ac_try="$ac_link"
21505
case "(($ac_try" in
21506
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21507
*) ac_try_echo=$ac_try;;
21509
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21510
(eval "$ac_link") 2>conftest.er1
21512
grep -v '^ *+' conftest.er1 >conftest.err
21514
cat conftest.err >&5
21515
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21516
(exit $ac_status); } && {
21517
test -z "$ac_c_werror_flag" ||
21518
test ! -s conftest.err
21519
} && test -s conftest$ac_exeext &&
21520
$as_test_x conftest$ac_exeext; then
21521
ac_cv_lib_pthread_pthread_create=yes
21523
echo "$as_me: failed program was:" >&5
21524
sed 's/^/| /' conftest.$ac_ext >&5
21526
ac_cv_lib_pthread_pthread_create=no
21529
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21530
conftest$ac_exeext conftest.$ac_ext
21531
LIBS=$ac_check_lib_save_LIBS
21533
{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
21534
echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
21535
if test $ac_cv_lib_pthread_pthread_create = yes; then
21536
cat >>confdefs.h <<_ACEOF
21537
#define HAVE_LIBPTHREAD 1
21540
LIBS="-lpthread $LIBS"
21543
{ { echo "$as_me:$LINENO: error: IRIX posix thread library not found!" >&5
21544
echo "$as_me: error: IRIX posix thread library not found!" >&2;}
21545
{ (exit 1); exit 1; }; }
21549
{ echo "$as_me:$LINENO: checking for alOpenPort in -laudio" >&5
21550
echo $ECHO_N "checking for alOpenPort in -laudio... $ECHO_C" >&6; }
21551
if test "${ac_cv_lib_audio_alOpenPort+set}" = set; then
21552
echo $ECHO_N "(cached) $ECHO_C" >&6
21554
ac_check_lib_save_LIBS=$LIBS
21555
LIBS="-laudio $LIBS"
21556
cat >conftest.$ac_ext <<_ACEOF
21559
cat confdefs.h >>conftest.$ac_ext
21560
cat >>conftest.$ac_ext <<_ACEOF
21561
/* end confdefs.h. */
21563
/* Override any GCC internal prototype to avoid an error.
21564
Use char because int might match the return type of a GCC
21565
builtin and then its argument prototype would still apply. */
21569
char alOpenPort ();
21573
return alOpenPort ();
21578
rm -f conftest.$ac_objext conftest$ac_exeext
21579
if { (ac_try="$ac_link"
21580
case "(($ac_try" in
21581
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21582
*) ac_try_echo=$ac_try;;
21584
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21585
(eval "$ac_link") 2>conftest.er1
21587
grep -v '^ *+' conftest.er1 >conftest.err
21589
cat conftest.err >&5
21590
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21591
(exit $ac_status); } && {
21592
test -z "$ac_c_werror_flag" ||
21593
test ! -s conftest.err
21594
} && test -s conftest$ac_exeext &&
21595
$as_test_x conftest$ac_exeext; then
21596
ac_cv_lib_audio_alOpenPort=yes
21598
echo "$as_me: failed program was:" >&5
21599
sed 's/^/| /' conftest.$ac_ext >&5
21601
ac_cv_lib_audio_alOpenPort=no
21604
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21605
conftest$ac_exeext conftest.$ac_ext
21606
LIBS=$ac_check_lib_save_LIBS
21608
{ echo "$as_me:$LINENO: result: $ac_cv_lib_audio_alOpenPort" >&5
21609
echo "${ECHO_T}$ac_cv_lib_audio_alOpenPort" >&6; }
21610
if test $ac_cv_lib_audio_alOpenPort = yes; then
21611
cat >>confdefs.h <<_ACEOF
21612
#define HAVE_LIBAUDIO 1
21615
LIBS="-laudio $LIBS"
21618
{ { echo "$as_me:$LINENO: error: IRIX audio library not found!" >&5
21619
echo "$as_me: error: IRIX audio library not found!" >&2;}
21620
{ (exit 1); exit 1; }; }
21624
{ echo "$as_me:$LINENO: checking for dmGetUST in -ldmedia" >&5
21625
echo $ECHO_N "checking for dmGetUST in -ldmedia... $ECHO_C" >&6; }
21626
if test "${ac_cv_lib_dmedia_dmGetUST+set}" = set; then
21627
echo $ECHO_N "(cached) $ECHO_C" >&6
21629
ac_check_lib_save_LIBS=$LIBS
21630
LIBS="-ldmedia $LIBS"
21631
cat >conftest.$ac_ext <<_ACEOF
21634
cat confdefs.h >>conftest.$ac_ext
21635
cat >>conftest.$ac_ext <<_ACEOF
21636
/* end confdefs.h. */
21638
/* Override any GCC internal prototype to avoid an error.
21639
Use char because int might match the return type of a GCC
21640
builtin and then its argument prototype would still apply. */
21648
return dmGetUST ();
21653
rm -f conftest.$ac_objext conftest$ac_exeext
21654
if { (ac_try="$ac_link"
21655
case "(($ac_try" in
21656
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21657
*) ac_try_echo=$ac_try;;
21659
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21660
(eval "$ac_link") 2>conftest.er1
21662
grep -v '^ *+' conftest.er1 >conftest.err
21664
cat conftest.err >&5
21665
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21666
(exit $ac_status); } && {
21667
test -z "$ac_c_werror_flag" ||
21668
test ! -s conftest.err
21669
} && test -s conftest$ac_exeext &&
21670
$as_test_x conftest$ac_exeext; then
21671
ac_cv_lib_dmedia_dmGetUST=yes
21673
echo "$as_me: failed program was:" >&5
21674
sed 's/^/| /' conftest.$ac_ext >&5
21676
ac_cv_lib_dmedia_dmGetUST=no
21679
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21680
conftest$ac_exeext conftest.$ac_ext
21681
LIBS=$ac_check_lib_save_LIBS
21683
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dmedia_dmGetUST" >&5
21684
echo "${ECHO_T}$ac_cv_lib_dmedia_dmGetUST" >&6; }
21685
if test $ac_cv_lib_dmedia_dmGetUST = yes; then
21686
cat >>confdefs.h <<_ACEOF
21687
#define HAVE_LIBDMEDIA 1
21690
LIBS="-ldmedia $LIBS"
21693
{ { echo "$as_me:$LINENO: error: IRIX digital media library not found!" >&5
21694
echo "$as_me: error: IRIX digital media library not found!" >&2;}
21695
{ (exit 1); exit 1; }; }
21699
cat >>confdefs.h <<\_ACEOF
21700
#define PA_USE_SGI 1
21704
THREAD_CFLAGS="-D_REENTRANT"
21706
OTHER_OBJS="pa_sgi/pa_sgi.o src/os/unix/pa_unix_hostapis.o src/os/unix/pa_unix_util.o"
21708
LIBS="-lm -ldmedia -laudio -lpthread"
21709
PADLL="libportaudio.so"
21715
{ echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
21716
echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
21717
if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
21718
echo $ECHO_N "(cached) $ECHO_C" >&6
21720
ac_check_lib_save_LIBS=$LIBS
21721
LIBS="-lpthread $LIBS"
21722
cat >conftest.$ac_ext <<_ACEOF
21725
cat confdefs.h >>conftest.$ac_ext
21726
cat >>conftest.$ac_ext <<_ACEOF
21727
/* end confdefs.h. */
21729
/* Override any GCC internal prototype to avoid an error.
21730
Use char because int might match the return type of a GCC
21731
builtin and then its argument prototype would still apply. */
21735
char pthread_create ();
21739
return pthread_create ();
21744
rm -f conftest.$ac_objext conftest$ac_exeext
21745
if { (ac_try="$ac_link"
21746
case "(($ac_try" in
21747
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21748
*) ac_try_echo=$ac_try;;
21750
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21751
(eval "$ac_link") 2>conftest.er1
21753
grep -v '^ *+' conftest.er1 >conftest.err
21755
cat conftest.err >&5
21756
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21757
(exit $ac_status); } && {
21758
test -z "$ac_c_werror_flag" ||
21759
test ! -s conftest.err
21760
} && test -s conftest$ac_exeext &&
21761
$as_test_x conftest$ac_exeext; then
21762
ac_cv_lib_pthread_pthread_create=yes
21764
echo "$as_me: failed program was:" >&5
21765
sed 's/^/| /' conftest.$ac_ext >&5
21767
ac_cv_lib_pthread_pthread_create=no
21770
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21771
conftest$ac_exeext conftest.$ac_ext
21772
LIBS=$ac_check_lib_save_LIBS
21774
{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
21775
echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
21776
if test $ac_cv_lib_pthread_pthread_create = yes; then
21779
{ { echo "$as_me:$LINENO: error: libpthread not found!" >&5
21780
echo "$as_me: error: libpthread not found!" >&2;}
21781
{ (exit 1); exit 1; }; }
21785
if [ $have_alsa = "yes" ] && [ $with_alsa != "no" ] ; then
21786
DLL_LIBS="$DLL_LIBS -lasound"
21787
LIBS="$LIBS -lasound"
21788
OTHER_OBJS="$OTHER_OBJS src/hostapi/alsa/pa_linux_alsa.o"
21789
cat >>confdefs.h <<\_ACEOF
21790
#define PA_USE_ALSA 1
21795
if [ $have_jack = "yes" ] && [ $with_jack != "no" ] ; then
21796
DLL_LIBS="$DLL_LIBS $JACK_LIBS"
21797
CFLAGS="$CFLAGS $JACK_CFLAGS"
21798
OTHER_OBJS="$OTHER_OBJS src/hostapi/jack/pa_jack.o src/common/pa_ringbuffer.o"
21799
cat >>confdefs.h <<\_ACEOF
21800
#define PA_USE_JACK 1
21805
if [ $with_oss != "no" ] ; then
21806
OTHER_OBJS="$OTHER_OBJS src/hostapi/oss/pa_unix_oss.o"
21807
if [ $have_libossaudio = "yes" ] ; then
21808
DLL_LIBS="$DLL_LIBS -lossaudio"
21809
LIBS="$LIBS -lossaudio"
21811
cat >>confdefs.h <<\_ACEOF
21812
#define PA_USE_OSS 1
21817
if [ $have_asihpi = "yes" ] && [ $with_asihpi != "no" ] ; then
21819
DLL_LIBS="$DLL_LIBS -lhpi"
21820
OTHER_OBJS="$OTHER_OBJS src/hostapi/asihpi/pa_linux_asihpi.o"
21821
cat >>confdefs.h <<\_ACEOF
21822
#define PA_USE_ASIHPI 1
21827
DLL_LIBS="$DLL_LIBS -lm -lpthread"
21828
LIBS="$LIBS -lm -lpthread"
21829
PADLL="libportaudio.so"
21831
## support sun cc compiler flags
21832
case "${host_os}" in
21835
THREAD_CFLAGS="-mt"
21838
SHARED_FLAGS="-shared -fPIC"
21839
THREAD_CFLAGS="-pthread"
21843
OTHER_OBJS="$OTHER_OBJS src/os/unix/pa_unix_hostapis.o src/os/unix/pa_unix_util.o"
21845
CFLAGS="$CFLAGS $THREAD_CFLAGS"
21847
if test "$enable_cxx" = "yes"; then
21848
subdirs="$subdirs bindings/cpp"
21851
ENABLE_CXX_FALSE="#"
21853
ENABLE_CXX_TRUE="#"
21854
ENABLE_CXX_FALSE=""
21859
ac_config_files="$ac_config_files Makefile portaudio-2.0.pc"
21861
cat >confcache <<\_ACEOF
21862
# This file is a shell script that caches the results of configure
21863
# tests run on this system so they can be shared between configure
21864
# scripts and configure runs, see configure's option --config-cache.
21865
# It is not useful on other systems. If it contains results you don't
21866
# want to keep, you may remove or edit it.
21868
# config.status only pays attention to the cache file if you give it
21869
# the --recheck option to rerun configure.
21871
# `ac_cv_env_foo' variables (set or unset) will be overridden when
21872
# loading this file, other *unset* `ac_cv_foo' will be assigned the
21873
# following values.
21877
# The following way of writing the cache mishandles newlines in values,
21878
# but we know of no workaround that is simple, portable, and efficient.
21879
# So, we kill variables containing newlines.
21880
# Ultrix sh set writes to stderr and can't be redirected directly,
21881
# and sets the high bit in the cache file unless we assign to the vars.
21883
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21884
eval ac_val=\$$ac_var
21888
*_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21889
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21892
_ | IFS | as_nl) ;; #(
21893
*) $as_unset $ac_var ;;
21899
case $as_nl`(ac_space=' '; set) 2>&1` in #(
21900
*${as_nl}ac_space=\ *)
21901
# `set' does not quote correctly, so add quotes (double-quote
21902
# substitution turns \\\\ into \\, and sed turns \\ into \).
21905
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21908
# `set' quotes correctly as required by POSIX, so do not add quotes.
21909
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21918
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21920
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21922
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21923
if test -w "$cache_file"; then
21924
test "x$cache_file" != "x/dev/null" &&
21925
{ echo "$as_me:$LINENO: updating cache $cache_file" >&5
21926
echo "$as_me: updating cache $cache_file" >&6;}
21927
cat confcache >$cache_file
21929
{ echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21930
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21935
test "x$prefix" = xNONE && prefix=$ac_default_prefix
21936
# Let make expand exec_prefix.
21937
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21939
# Transform confdefs.h into DEFS.
21940
# Protect against shell expansion while executing Makefile rules.
21941
# Protect against Makefile macro expansion.
21943
# If the first sed substitution is executed (which looks for macros that
21944
# take arguments), then branch to the quote section. Otherwise,
21945
# look for a macro that doesn't take arguments.
21949
s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
21951
s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
21955
s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
21968
DEFS=`sed -n "$ac_script" confdefs.h`
21973
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21974
# 1. Remove the extension, and $U if already installed.
21975
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21976
ac_i=`echo "$ac_i" | sed "$ac_script"`
21977
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21978
# will be set to the directory where LIBOBJS objects are built.
21979
ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21980
ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21982
LIBOBJS=$ac_libobjs
21984
LTLIBOBJS=$ac_ltlibobjs
21988
: ${CONFIG_STATUS=./config.status}
21989
ac_clean_files_save=$ac_clean_files
21990
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21991
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21992
echo "$as_me: creating $CONFIG_STATUS" >&6;}
21993
cat >$CONFIG_STATUS <<_ACEOF
21995
# Generated by $as_me.
21996
# Run this file to recreate the current configuration.
21997
# Compiler output produced by configure, useful for debugging
21998
# configure, is in config.log if it exists.
22001
ac_cs_recheck=false
22003
SHELL=\${CONFIG_SHELL-$SHELL}
22006
cat >>$CONFIG_STATUS <<\_ACEOF
22007
## --------------------- ##
22008
## M4sh Initialization. ##
22009
## --------------------- ##
22011
# Be more Bourne compatible
22012
DUALCASE=1; export DUALCASE # for MKS sh
22013
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22016
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22017
# is contrary to our usage. Disable this feature.
22018
alias -g '${1+"$@"}'='"$@"'
22019
setopt NO_GLOB_SUBST
22021
case `(set -o) 2>/dev/null` in
22022
*posix*) set -o posix ;;
22031
# Avoid depending upon Character Ranges.
22032
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22033
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22034
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22035
as_cr_digits='0123456789'
22036
as_cr_alnum=$as_cr_Letters$as_cr_digits
22038
# The user is always right.
22039
if test "${PATH_SEPARATOR+set}" != set; then
22040
echo "#! /bin/sh" >conf$$.sh
22041
echo "exit 0" >>conf$$.sh
22043
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22051
# Support unset when possible.
22052
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22060
# We need space, tab and new line, in precisely that order. Quoting is
22061
# there to prevent editors from complaining about space-tab.
22062
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
22063
# splitting by setting IFS to empty value.)
22068
# Find who we are. Look in the path if we contain no directory separator.
22070
*[\\/]* ) as_myself=$0 ;;
22071
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22072
for as_dir in $PATH
22075
test -z "$as_dir" && as_dir=.
22076
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22082
# We did not find ourselves, most probably we were run as `sh COMMAND'
22083
# in which case we are not to be found in the path.
22084
if test "x$as_myself" = x; then
22087
if test ! -f "$as_myself"; then
22088
echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22089
{ (exit 1); exit 1; }
22092
# Work around bugs in pre-3.0 UWIN ksh.
22093
for as_var in ENV MAIL MAILPATH
22094
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22102
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22103
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22104
LC_TELEPHONE LC_TIME
22106
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22107
eval $as_var=C; export $as_var
22109
($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22113
# Required to use basename.
22114
if expr a : '\(a\)' >/dev/null 2>&1 &&
22115
test "X`expr 00001 : '.*\(...\)'`" = X001; then
22121
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22122
as_basename=basename
22128
# Name of the executable.
22129
as_me=`$as_basename -- "$0" ||
22130
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22131
X"$0" : 'X\(//\)$' \| \
22132
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22134
sed '/^.*\/\([^/][^/]*\)\/*$/{
22153
as_lineno_1=$LINENO
22154
as_lineno_2=$LINENO
22155
test "x$as_lineno_1" != "x$as_lineno_2" &&
22156
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22158
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22159
# uniformly replaced by the line number. The first 'sed' inserts a
22160
# line-number line after each line using $LINENO; the second 'sed'
22161
# does the real work. The second script uses 'N' to pair each
22162
# line-number line with the line containing $LINENO, and appends
22163
# trailing '-' during substitution so that $LINENO is not a special
22164
# case at line end.
22165
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22166
# scripts with optimization help from Paolo Bonzini. Blame Lee
22167
# E. McMahon (1931-1989) for sed's syntax. :-)
22179
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22182
' >$as_me.lineno &&
22183
chmod +x "$as_me.lineno" ||
22184
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22185
{ (exit 1); exit 1; }; }
22187
# Don't try to exec as it changes $[0], causing all sort of problems
22188
# (the dirname of $[0] is not the place where we might find the
22189
# original and so on. Autoconf is especially sensitive to this).
22190
. "./$as_me.lineno"
22191
# Exit status is that of the last command.
22196
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22202
ECHO_C= ECHO_N= ECHO_T=
22203
case `echo -n x` in
22205
case `echo 'x\c'` in
22206
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
22213
if expr a : '\(a\)' >/dev/null 2>&1 &&
22214
test "X`expr 00001 : '.*\(...\)'`" = X001; then
22220
rm -f conf$$ conf$$.exe conf$$.file
22221
if test -d conf$$.dir; then
22222
rm -f conf$$.dir/conf$$.file
22228
if ln -s conf$$.file conf$$ 2>/dev/null; then
22230
# ... but there are two gotchas:
22231
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22232
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22233
# In both cases, we have to default to `cp -p'.
22234
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22236
elif ln conf$$.file conf$$ 2>/dev/null; then
22241
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22242
rmdir conf$$.dir 2>/dev/null
22244
if mkdir -p . 2>/dev/null; then
22247
test -d ./-p && rmdir ./-p
22251
if test -x / >/dev/null 2>&1; then
22252
as_test_x='test -x'
22254
if ls -dL / >/dev/null 2>&1; then
22261
if test -d "$1"; then
22267
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
22268
???[sx]*):;;*)false;;esac;fi
22272
as_executable_p=$as_test_x
22274
# Sed expression to map a string onto a valid CPP name.
22275
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22277
# Sed expression to map a string onto a valid variable name.
22278
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22283
# Save the log message, to keep $[0] and so on meaningful, and to
22284
# report actual input values of CONFIG_FILES etc. instead of their
22285
# values after options handling.
22287
This file was extended by $as_me, which was
22288
generated by GNU Autoconf 2.61. Invocation command line was
22290
CONFIG_FILES = $CONFIG_FILES
22291
CONFIG_HEADERS = $CONFIG_HEADERS
22292
CONFIG_LINKS = $CONFIG_LINKS
22293
CONFIG_COMMANDS = $CONFIG_COMMANDS
22296
on `(hostname || uname -n) 2>/dev/null | sed 1q`
22301
cat >>$CONFIG_STATUS <<_ACEOF
22302
# Files that config.status was made for.
22303
config_files="$ac_config_files"
22307
cat >>$CONFIG_STATUS <<\_ACEOF
22309
\`$as_me' instantiates files from templates according to the
22310
current configuration.
22312
Usage: $0 [OPTIONS] [FILE]...
22314
-h, --help print this help, then exit
22315
-V, --version print version number and configuration settings, then exit
22316
-q, --quiet do not print progress messages
22317
-d, --debug don't remove temporary files
22318
--recheck update $as_me by reconfiguring in the same conditions
22319
--file=FILE[:TEMPLATE]
22320
instantiate the configuration file FILE
22322
Configuration files:
22325
Report bugs to <bug-autoconf@gnu.org>."
22328
cat >>$CONFIG_STATUS <<_ACEOF
22331
configured by $0, generated by GNU Autoconf 2.61,
22332
with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22334
Copyright (C) 2006 Free Software Foundation, Inc.
22335
This config.status script is free software; the Free Software Foundation
22336
gives unlimited permission to copy, distribute and modify it."
22343
cat >>$CONFIG_STATUS <<\_ACEOF
22344
# If no file are specified by the user, then we need to provide default
22345
# value. By we need to know if files were specified by the user.
22351
ac_option=`expr "X$1" : 'X\([^=]*\)='`
22352
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22363
# Handling of the options.
22364
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22366
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22367
echo "$ac_cs_version"; exit ;;
22368
--debug | --debu | --deb | --de | --d | -d )
22370
--file | --fil | --fi | --f )
22372
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22373
ac_need_defaults=false;;
22374
--he | --h | --help | --hel | -h )
22375
echo "$ac_cs_usage"; exit ;;
22376
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
22377
| -silent | --silent | --silen | --sile | --sil | --si | --s)
22380
# This is an error.
22381
-*) { echo "$as_me: error: unrecognized option: $1
22382
Try \`$0 --help' for more information." >&2
22383
{ (exit 1); exit 1; }; } ;;
22385
*) ac_config_targets="$ac_config_targets $1"
22386
ac_need_defaults=false ;;
22392
ac_configure_extra_args=
22394
if $ac_cs_silent; then
22396
ac_configure_extra_args="$ac_configure_extra_args --silent"
22400
cat >>$CONFIG_STATUS <<_ACEOF
22401
if \$ac_cs_recheck; then
22402
echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22403
CONFIG_SHELL=$SHELL
22404
export CONFIG_SHELL
22405
exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22409
cat >>$CONFIG_STATUS <<\_ACEOF
22413
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22414
## Running $as_me. ##
22420
cat >>$CONFIG_STATUS <<_ACEOF
22423
cat >>$CONFIG_STATUS <<\_ACEOF
22425
# Handling of arguments.
22426
for ac_config_target in $ac_config_targets
22428
case $ac_config_target in
22429
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22430
"portaudio-2.0.pc") CONFIG_FILES="$CONFIG_FILES portaudio-2.0.pc" ;;
22432
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22433
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22434
{ (exit 1); exit 1; }; };;
22439
# If the user did not use the arguments to specify the items to instantiate,
22440
# then the envvar interface is used. Set only those that are not.
22441
# We use the long form for the default assignment because of an extremely
22442
# bizarre bug on SunOS 4.1.3.
22443
if $ac_need_defaults; then
22444
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22447
# Have a temporary directory for convenience. Make it in the build tree
22448
# simply because there is no reason against having it here, and in addition,
22449
# creating and moving files from /tmp can sometimes cause problems.
22450
# Hook for its removal unless debugging.
22451
# Note that there is a small window in which the directory will not be cleaned:
22452
# after its creation but before its name has been assigned to `$tmp'.
22456
trap 'exit_status=$?
22457
{ test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22459
trap '{ (exit 1); exit 1; }' 1 2 13 15
22461
# Create a (secure) tmp directory for tmp files.
22464
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22465
test -n "$tmp" && test -d "$tmp"
22468
tmp=./conf$$-$RANDOM
22469
(umask 077 && mkdir "$tmp")
22472
echo "$me: cannot create a temporary directory in ." >&2
22473
{ (exit 1); exit 1; }
22477
# Set up the sed scripts for CONFIG_FILES section.
22480
# No need to generate the scripts if there are no CONFIG_FILES.
22481
# This happens for instance when ./config.status config.h
22482
if test -n "$CONFIG_FILES"; then
22489
for ac_last_try in false false false false false :; do
22490
cat >conf$$subs.sed <<_ACEOF
22491
SHELL!$SHELL$ac_delim
22492
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22493
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22494
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22495
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22496
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22497
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22498
exec_prefix!$exec_prefix$ac_delim
22499
prefix!$prefix$ac_delim
22500
program_transform_name!$program_transform_name$ac_delim
22501
bindir!$bindir$ac_delim
22502
sbindir!$sbindir$ac_delim
22503
libexecdir!$libexecdir$ac_delim
22504
datarootdir!$datarootdir$ac_delim
22505
datadir!$datadir$ac_delim
22506
sysconfdir!$sysconfdir$ac_delim
22507
sharedstatedir!$sharedstatedir$ac_delim
22508
localstatedir!$localstatedir$ac_delim
22509
includedir!$includedir$ac_delim
22510
oldincludedir!$oldincludedir$ac_delim
22511
docdir!$docdir$ac_delim
22512
infodir!$infodir$ac_delim
22513
htmldir!$htmldir$ac_delim
22514
dvidir!$dvidir$ac_delim
22515
pdfdir!$pdfdir$ac_delim
22516
psdir!$psdir$ac_delim
22517
libdir!$libdir$ac_delim
22518
localedir!$localedir$ac_delim
22519
mandir!$mandir$ac_delim
22520
DEFS!$DEFS$ac_delim
22521
ECHO_C!$ECHO_C$ac_delim
22522
ECHO_N!$ECHO_N$ac_delim
22523
ECHO_T!$ECHO_T$ac_delim
22524
LIBS!$LIBS$ac_delim
22525
build_alias!$build_alias$ac_delim
22526
host_alias!$host_alias$ac_delim
22527
target_alias!$target_alias$ac_delim
22529
CFLAGS!$CFLAGS$ac_delim
22530
LDFLAGS!$LDFLAGS$ac_delim
22531
CPPFLAGS!$CPPFLAGS$ac_delim
22532
ac_ct_CC!$ac_ct_CC$ac_delim
22533
EXEEXT!$EXEEXT$ac_delim
22534
OBJEXT!$OBJEXT$ac_delim
22535
build!$build$ac_delim
22536
build_cpu!$build_cpu$ac_delim
22537
build_vendor!$build_vendor$ac_delim
22538
build_os!$build_os$ac_delim
22539
host!$host$ac_delim
22540
host_cpu!$host_cpu$ac_delim
22541
host_vendor!$host_vendor$ac_delim
22542
host_os!$host_os$ac_delim
22543
GREP!$GREP$ac_delim
22544
EGREP!$EGREP$ac_delim
22545
LN_S!$LN_S$ac_delim
22546
ECHO!$ECHO$ac_delim
22548
RANLIB!$RANLIB$ac_delim
22549
STRIP!$STRIP$ac_delim
22550
DLLTOOL!$DLLTOOL$ac_delim
22552
OBJDUMP!$OBJDUMP$ac_delim
22555
CXXFLAGS!$CXXFLAGS$ac_delim
22556
ac_ct_CXX!$ac_ct_CXX$ac_delim
22557
CXXCPP!$CXXCPP$ac_delim
22559
FFLAGS!$FFLAGS$ac_delim
22560
ac_ct_F77!$ac_ct_F77$ac_delim
22561
LIBTOOL!$LIBTOOL$ac_delim
22562
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22563
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22564
INSTALL_DATA!$INSTALL_DATA$ac_delim
22565
PKG_CONFIG!$PKG_CONFIG$ac_delim
22566
JACK_CFLAGS!$JACK_CFLAGS$ac_delim
22567
JACK_LIBS!$JACK_LIBS$ac_delim
22568
LT_CURRENT!$LT_CURRENT$ac_delim
22569
LT_REVISION!$LT_REVISION$ac_delim
22570
LT_AGE!$LT_AGE$ac_delim
22571
OTHER_OBJS!$OTHER_OBJS$ac_delim
22572
PADLL!$PADLL$ac_delim
22573
SHARED_FLAGS!$SHARED_FLAGS$ac_delim
22574
THREAD_CFLAGS!$THREAD_CFLAGS$ac_delim
22575
DLL_LIBS!$DLL_LIBS$ac_delim
22576
NASM!$NASM$ac_delim
22577
NASMOPT!$NASMOPT$ac_delim
22578
subdirs!$subdirs$ac_delim
22579
ENABLE_CXX_TRUE!$ENABLE_CXX_TRUE$ac_delim
22580
ENABLE_CXX_FALSE!$ENABLE_CXX_FALSE$ac_delim
22581
LIBOBJS!$LIBOBJS$ac_delim
22582
LTLIBOBJS!$LTLIBOBJS$ac_delim
22585
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 92; then
22587
elif $ac_last_try; then
22588
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22589
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22590
{ (exit 1); exit 1; }; }
22592
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22596
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22597
if test -n "$ac_eof"; then
22598
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22599
ac_eof=`expr $ac_eof + 1`
22602
cat >>$CONFIG_STATUS <<_ACEOF
22603
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22604
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22607
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22608
s/^/s,@/; s/!/@,|#_!!_#|/
22611
s/'"$ac_delim"'$/,g/; t
22613
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22614
' >>$CONFIG_STATUS <conf$$subs.sed
22615
rm -f conf$$subs.sed
22616
cat >>$CONFIG_STATUS <<_ACEOF
22623
# VPATH may cause trouble with some makes, so we remove $(srcdir),
22624
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22625
# trailing colons and then remove the whole line if VPATH becomes empty
22626
# (actually we leave an empty line to preserve line numbers).
22627
if test "x$srcdir" = x.; then
22628
ac_vpsub='/^[ ]*VPATH[ ]*=/{
22629
s/:*\$(srcdir):*/:/
22630
s/:*\${srcdir}:*/:/
22632
s/^\([^=]*=[ ]*\):*/\1/
22638
cat >>$CONFIG_STATUS <<\_ACEOF
22639
fi # test -n "$CONFIG_FILES"
22642
for ac_tag in :F $CONFIG_FILES
22645
:[FHLC]) ac_mode=$ac_tag; continue;;
22647
case $ac_mode$ac_tag in
22649
:L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22650
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22651
{ (exit 1); exit 1; }; };;
22652
:[FH]-) ac_tag=-:-;;
22653
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22670
-) ac_f="$tmp/stdin";;
22671
*) # Look for the file first in the build tree, then in the source tree
22672
# (if the path is not absolute). The absolute path cannot be DOS-style,
22673
# because $ac_f cannot contain `:'.
22677
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22679
{ { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22680
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22681
{ (exit 1); exit 1; }; };;
22683
ac_file_inputs="$ac_file_inputs $ac_f"
22686
# Let's still pretend it is `configure' which instantiates (i.e., don't
22687
# use $as_me), people would be surprised to read:
22688
# /* config.h. Generated by config.status. */
22689
configure_input="Generated from "`IFS=:
22690
echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22691
if test x"$ac_file" != x-; then
22692
configure_input="$ac_file. $configure_input"
22693
{ echo "$as_me:$LINENO: creating $ac_file" >&5
22694
echo "$as_me: creating $ac_file" >&6;}
22698
*:-:* | *:-) cat >"$tmp/stdin";;
22703
ac_dir=`$as_dirname -- "$ac_file" ||
22704
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22705
X"$ac_file" : 'X\(//\)[^/]' \| \
22706
X"$ac_file" : 'X\(//\)$' \| \
22707
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22709
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22713
/^X\(\/\/\)[^/].*/{
22728
-*) as_dir=./$as_dir;;
22730
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22734
*\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22735
*) as_qdir=$as_dir;;
22737
as_dirs="'$as_qdir' $as_dirs"
22738
as_dir=`$as_dirname -- "$as_dir" ||
22739
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22740
X"$as_dir" : 'X\(//\)[^/]' \| \
22741
X"$as_dir" : 'X\(//\)$' \| \
22742
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22744
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22748
/^X\(\/\/\)[^/].*/{
22761
test -d "$as_dir" && break
22763
test -z "$as_dirs" || eval "mkdir $as_dirs"
22764
} || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22765
echo "$as_me: error: cannot create directory $as_dir" >&2;}
22766
{ (exit 1); exit 1; }; }; }
22770
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22772
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22773
# A ".." for each directory in $ac_dir_suffix.
22774
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22775
case $ac_top_builddir_sub in
22776
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22777
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22780
ac_abs_top_builddir=$ac_pwd
22781
ac_abs_builddir=$ac_pwd$ac_dir_suffix
22782
# for backward compatibility:
22783
ac_top_builddir=$ac_top_build_prefix
22786
.) # We are building in place.
22788
ac_top_srcdir=$ac_top_builddir_sub
22789
ac_abs_top_srcdir=$ac_pwd ;;
22790
[\\/]* | ?:[\\/]* ) # Absolute name.
22791
ac_srcdir=$srcdir$ac_dir_suffix;
22792
ac_top_srcdir=$srcdir
22793
ac_abs_top_srcdir=$srcdir ;;
22794
*) # Relative name.
22795
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22796
ac_top_srcdir=$ac_top_build_prefix$srcdir
22797
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22799
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22809
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22810
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22814
cat >>$CONFIG_STATUS <<\_ACEOF
22815
# If the template does not know about datarootdir, expand it.
22816
# FIXME: This hack should be removed a few years after 2.60.
22817
ac_datarootdir_hack=; ac_datarootdir_seen=
22819
case `sed -n '/datarootdir/ {
22828
' $ac_file_inputs` in
22829
*datarootdir*) ac_datarootdir_seen=yes;;
22830
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22831
{ echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22832
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22834
cat >>$CONFIG_STATUS <<_ACEOF
22835
ac_datarootdir_hack='
22836
s&@datadir@&$datadir&g
22837
s&@docdir@&$docdir&g
22838
s&@infodir@&$infodir&g
22839
s&@localedir@&$localedir&g
22840
s&@mandir@&$mandir&g
22841
s&\\\${datarootdir}&$datarootdir&g' ;;
22845
# Neutralize VPATH when `$srcdir' = `.'.
22846
# Shell code in configure.ac might set extrasub.
22847
# FIXME: do we really want to maintain this feature?
22848
cat >>$CONFIG_STATUS <<_ACEOF
22852
cat >>$CONFIG_STATUS <<\_ACEOF
22854
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22855
s&@configure_input@&$configure_input&;t t
22856
s&@top_builddir@&$ac_top_builddir_sub&;t t
22857
s&@srcdir@&$ac_srcdir&;t t
22858
s&@abs_srcdir@&$ac_abs_srcdir&;t t
22859
s&@top_srcdir@&$ac_top_srcdir&;t t
22860
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22861
s&@builddir@&$ac_builddir&;t t
22862
s&@abs_builddir@&$ac_abs_builddir&;t t
22863
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22864
s&@INSTALL@&$ac_INSTALL&;t t
22865
$ac_datarootdir_hack
22866
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
22868
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22869
{ ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22870
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22871
{ echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22872
which seems to be undefined. Please make sure it is defined." >&5
22873
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22874
which seems to be undefined. Please make sure it is defined." >&2;}
22878
-) cat "$tmp/out"; rm -f "$tmp/out";;
22879
*) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22890
{ (exit 0); exit 0; }
22892
chmod +x $CONFIG_STATUS
22893
ac_clean_files=$ac_clean_files_save
22896
# configure is writing to config.log, and then calls config.status.
22897
# config.status does its own redirection, appending to config.log.
22898
# Unfortunately, on DOS this fails, as config.log is still kept open
22899
# by configure, so config.status won't be able to write to it; its
22900
# output is simply discarded. So we exec the FD to /dev/null,
22901
# effectively closing config.log, so it can be properly (re)opened and
22902
# appended to by config.status. When coming back to configure, we
22903
# need to make the FD available again.
22904
if test "$no_create" != yes; then
22906
ac_config_status_args=
22907
test "$silent" = yes &&
22908
ac_config_status_args="$ac_config_status_args --quiet"
22910
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22912
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
22913
# would make configure fail if this is the last instruction.
22914
$ac_cs_success || { (exit 1); exit 1; }
22918
# CONFIG_SUBDIRS section.
22920
if test "$no_recursion" != yes; then
22922
# Remove --cache-file and --srcdir arguments so they do not pile up.
22923
ac_sub_configure_args=
22925
eval "set x $ac_configure_args"
22929
if test -n "$ac_prev"; then
22934
-cache-file | --cache-file | --cache-fil | --cache-fi \
22935
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22936
ac_prev=cache_file ;;
22937
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22938
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22941
--config-cache | -C)
22943
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22945
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22947
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22949
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22953
*\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22955
ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22959
# Always prepend --prefix to ensure using the same prefix
22960
# in subdir configurations.
22961
ac_arg="--prefix=$prefix"
22963
*\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22965
ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
22968
if test "$silent" = yes; then
22969
ac_sub_configure_args="--silent $ac_sub_configure_args"
22973
for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22975
# Do not complain, so a configure script can configure whichever
22976
# parts of a large source tree are present.
22977
test -d "$srcdir/$ac_dir" || continue
22979
ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22980
echo "$as_me:$LINENO: $ac_msg" >&5
22984
-*) as_dir=./$as_dir;;
22986
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22990
*\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22991
*) as_qdir=$as_dir;;
22993
as_dirs="'$as_qdir' $as_dirs"
22994
as_dir=`$as_dirname -- "$as_dir" ||
22995
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22996
X"$as_dir" : 'X\(//\)[^/]' \| \
22997
X"$as_dir" : 'X\(//\)$' \| \
22998
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23000
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23004
/^X\(\/\/\)[^/].*/{
23017
test -d "$as_dir" && break
23019
test -z "$as_dirs" || eval "mkdir $as_dirs"
23020
} || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23021
echo "$as_me: error: cannot create directory $as_dir" >&2;}
23022
{ (exit 1); exit 1; }; }; }
23026
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23028
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23029
# A ".." for each directory in $ac_dir_suffix.
23030
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23031
case $ac_top_builddir_sub in
23032
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23033
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23036
ac_abs_top_builddir=$ac_pwd
23037
ac_abs_builddir=$ac_pwd$ac_dir_suffix
23038
# for backward compatibility:
23039
ac_top_builddir=$ac_top_build_prefix
23042
.) # We are building in place.
23044
ac_top_srcdir=$ac_top_builddir_sub
23045
ac_abs_top_srcdir=$ac_pwd ;;
23046
[\\/]* | ?:[\\/]* ) # Absolute name.
23047
ac_srcdir=$srcdir$ac_dir_suffix;
23048
ac_top_srcdir=$srcdir
23049
ac_abs_top_srcdir=$srcdir ;;
23050
*) # Relative name.
23051
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23052
ac_top_srcdir=$ac_top_build_prefix$srcdir
23053
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23055
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23060
# Check for guested configure; otherwise get Cygnus style configure.
23061
if test -f "$ac_srcdir/configure.gnu"; then
23062
ac_sub_configure=$ac_srcdir/configure.gnu
23063
elif test -f "$ac_srcdir/configure"; then
23064
ac_sub_configure=$ac_srcdir/configure
23065
elif test -f "$ac_srcdir/configure.in"; then
23066
# This should be Cygnus configure.
23067
ac_sub_configure=$ac_aux_dir/configure
23069
{ echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23070
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23074
# The recursion is here.
23075
if test -n "$ac_sub_configure"; then
23076
# Make the cache file name correct relative to the subdirectory.
23077
case $cache_file in
23078
[\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23079
*) # Relative name.
23080
ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
23083
{ echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23084
echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23085
# The eval makes quoting arguments work.
23086
eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
23087
--cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
23088
{ { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23089
echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23090
{ (exit 1); exit 1; }; }