2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.60a for mediastreamer 2.0.0.
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 Bourne compatible
14
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18
# is contrary to our usage. Disable this feature.
19
alias -g '${1+"$@"}'='"$@"'
22
case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
24
BIN_SH=xpg4; export BIN_SH # for Tru64
25
DUALCASE=1; export DUALCASE # for MKS sh
29
# Avoid depending upon Character Ranges.
30
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33
as_cr_digits='0123456789'
34
as_cr_alnum=$as_cr_Letters$as_cr_digits
36
# The user is always right.
37
if test "${PATH_SEPARATOR+set}" != set; then
38
echo "#! /bin/sh" >conf$$.sh
39
echo "exit 0" >>conf$$.sh
41
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49
# Support unset when possible.
50
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
58
# We need space, tab and new line, in precisely that order. Quoting is
59
# there to prevent editors from complaining about space-tab.
60
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
61
# splitting by setting IFS to empty value.)
66
# Find who we are. Look in the path if we contain no directory separator.
68
*[\\/]* ) as_myself=$0 ;;
69
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
73
test -z "$as_dir" && as_dir=.
74
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
80
# We did not find ourselves, most probably we were run as `sh COMMAND'
81
# in which case we are not to be found in the path.
82
if test "x$as_myself" = x; then
85
if test ! -f "$as_myself"; then
86
echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
90
# Work around bugs in pre-3.0 UWIN ksh.
91
for as_var in ENV MAIL MAILPATH
92
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
100
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
101
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
104
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
105
eval $as_var=C; export $as_var
107
($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
111
# Required to use basename.
112
if expr a : '\(a\)' >/dev/null 2>&1 &&
113
test "X`expr 00001 : '.*\(...\)'`" = X001; then
119
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126
# Name of the executable.
127
as_me=`$as_basename -- "$0" ||
128
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
129
X"$0" : 'X\(//\)$' \| \
130
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
132
sed '/^.*\/\([^/][^/]*\)\/*$/{
150
if test "x$CONFIG_SHELL" = x; then
151
if (eval ":") 2>/dev/null; then
157
if test $as_have_required = yes && (eval ":
167
as_func_ret_success () {
170
as_func_ret_failure () {
175
if as_func_success; then
179
echo as_func_success failed.
182
if as_func_failure; then
184
echo as_func_failure succeeded.
187
if as_func_ret_success; then
191
echo as_func_ret_success failed.
194
if as_func_ret_failure; then
196
echo as_func_ret_failure succeeded.
199
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
203
echo positional parameters were not saved.
206
test \$exitcode = 0) || { (exit 1); exit 1; }
211
test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
212
test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
213
") 2> /dev/null; then
217
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
218
for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221
test -z "$as_dir" && as_dir=.
224
for as_base in sh bash ksh sh5; do
225
as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232
for as_shell in $as_candidate_shells $SHELL; do
233
# Try only shells that exist, to save several forks.
234
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
235
{ ("$as_shell") 2> /dev/null <<\_ASEOF
236
# Be Bourne compatible
237
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
240
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
241
# is contrary to our usage. Disable this feature.
242
alias -g '${1+"$@"}'='"$@"'
245
case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
247
BIN_SH=xpg4; export BIN_SH # for Tru64
248
DUALCASE=1; export DUALCASE # for MKS sh
253
CONFIG_SHELL=$as_shell
255
if { "$as_shell" 2> /dev/null <<\_ASEOF
256
# Be Bourne compatible
257
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
261
# is contrary to our usage. Disable this feature.
262
alias -g '${1+"$@"}'='"$@"'
265
case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
267
BIN_SH=xpg4; export BIN_SH # for Tru64
268
DUALCASE=1; export DUALCASE # for MKS sh
280
as_func_ret_success () {
283
as_func_ret_failure () {
288
if as_func_success; then
292
echo as_func_success failed.
295
if as_func_failure; then
297
echo as_func_failure succeeded.
300
if as_func_ret_success; then
304
echo as_func_ret_success failed.
307
if as_func_ret_failure; then
309
echo as_func_ret_failure succeeded.
312
if ( set x; as_func_ret_success y && test x = "$1" ); then
316
echo positional parameters were not saved.
319
test $exitcode = 0) || { (exit 1); exit 1; }
324
test "x$as_lineno_1" != "x$as_lineno_2" &&
325
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
336
if test "x$CONFIG_SHELL" != x; then
337
for as_var in BASH_ENV ENV
338
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
341
exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
345
if test $as_have_required = no; then
346
echo This script requires a shell more modern than all the
347
echo shells that I found on your system. Please install a
348
echo modern shell, or manually run the script under such a
349
echo shell if you do have one.
350
{ (exit 1); exit 1; }
360
(eval "as_func_return () {
369
as_func_ret_success () {
372
as_func_ret_failure () {
377
if as_func_success; then
381
echo as_func_success failed.
384
if as_func_failure; then
386
echo as_func_failure succeeded.
389
if as_func_ret_success; then
393
echo as_func_ret_success failed.
396
if as_func_ret_failure; then
398
echo as_func_ret_failure succeeded.
401
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
405
echo positional parameters were not saved.
408
test \$exitcode = 0") || {
409
echo No shell found that supports shell functions.
410
echo Please tell autoconf@gnu.org about your system,
411
echo including any error possibly output before this
419
test "x$as_lineno_1" != "x$as_lineno_2" &&
420
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
422
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
423
# uniformly replaced by the line number. The first 'sed' inserts a
424
# line-number line after each line using $LINENO; the second 'sed'
425
# does the real work. The second script uses 'N' to pair each
426
# line-number line with the line containing $LINENO, and appends
427
# trailing '-' during substitution so that $LINENO is not a special
429
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
430
# scripts with optimization help from Paolo Bonzini. Blame Lee
431
# E. McMahon (1931-1989) for sed's syntax. :-)
443
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
447
chmod +x "$as_me.lineno" ||
448
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
449
{ (exit 1); exit 1; }; }
451
# Don't try to exec as it changes $[0], causing all sort of problems
452
# (the dirname of $[0] is not the place where we might find the
453
# original and so on. Autoconf is especially sensitive to this).
455
# Exit status is that of the last command.
460
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
466
ECHO_C= ECHO_N= ECHO_T=
470
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
477
if expr a : '\(a\)' >/dev/null 2>&1 &&
478
test "X`expr 00001 : '.*\(...\)'`" = X001; then
484
rm -f conf$$ conf$$.exe conf$$.file
485
if test -d conf$$.dir; then
486
rm -f conf$$.dir/conf$$.file
492
if ln -s conf$$.file conf$$ 2>/dev/null; then
494
# ... but there are two gotchas:
495
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497
# In both cases, we have to default to `cp -p'.
498
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500
elif ln conf$$.file conf$$ 2>/dev/null; then
505
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506
rmdir conf$$.dir 2>/dev/null
508
if mkdir -p . 2>/dev/null; then
511
test -d ./-p && rmdir ./-p
515
# Find out whether ``test -x'' works. Don't use a zero-byte file, as
516
# systems may use methods other than mode bits to determine executability.
517
cat >conf$$.file <<_ASEOF
522
if test -x conf$$.file >/dev/null 2>&1; then
523
as_executable_p="test -x"
529
# Sed expression to map a string onto a valid CPP name.
530
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
532
# Sed expression to map a string onto a valid variable name.
533
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
# Check that we are running under the correct shell.
539
SHELL=${CONFIG_SHELL-/bin/sh}
543
# Remove one level of quotation (which was required for Make).
544
ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
549
if test "X$1" = X--no-reexec; then
550
# Discard the --no-reexec flag, and continue.
552
elif test "X$1" = X--fallback-echo; then
553
# Avoid inline document here, it may be left over
555
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
556
# Yippee, $echo works!
559
# Restart under the correct shell.
560
exec $SHELL "$0" --no-reexec ${1+"$@"}
563
if test "X$1" = X--fallback-echo; then
564
# used as fallback echo
572
# The HP-UX ksh and POSIX shell print the target directory to stdout
574
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
576
if test -z "$ECHO"; then
577
if test "X${echo_test_string+set}" != Xset; then
578
# find a string as large as possible, as long as the shell can cope with it
579
for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
580
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
581
if (echo_test_string=`eval $cmd`) 2>/dev/null &&
582
echo_test_string=`eval $cmd` &&
583
(test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
590
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
591
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
592
test "X$echo_testing_string" = "X$echo_test_string"; then
595
# The Solaris, AIX, and Digital Unix default echo programs unquote
596
# backslashes. This makes it impossible to quote backslashes using
597
# echo "$something" | sed 's/\\/\\\\/g'
599
# So, first we look for a working echo in the user's PATH.
601
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
602
for dir in $PATH /usr/ucb; do
604
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
605
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
606
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
607
test "X$echo_testing_string" = "X$echo_test_string"; then
614
if test "X$echo" = Xecho; then
615
# We didn't find a better echo, so look for alternatives.
616
if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
617
echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
618
test "X$echo_testing_string" = "X$echo_test_string"; then
619
# This shell has a builtin print -r that does the trick.
621
elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
622
test "X$CONFIG_SHELL" != X/bin/ksh; then
623
# If we have ksh, try running configure again with it.
624
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
625
export ORIGINAL_CONFIG_SHELL
626
CONFIG_SHELL=/bin/ksh
628
exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
632
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
633
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
634
test "X$echo_testing_string" = "X$echo_test_string"; then
637
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
638
test "X$echo_testing_string" = 'X\t' &&
639
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
640
test "X$echo_testing_string" = "X$echo_test_string"; then
641
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
643
SHELL="$CONFIG_SHELL"
645
echo="$CONFIG_SHELL $0 --fallback-echo"
646
elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
647
test "X$echo_testing_string" = 'X\t' &&
648
echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
649
test "X$echo_testing_string" = "X$echo_test_string"; then
650
echo="$CONFIG_SHELL $0 --fallback-echo"
652
# maybe with a smaller string...
655
for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
656
if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
663
if test "$prev" != 'sed 50q "$0"'; then
664
echo_test_string=`eval $prev`
665
export echo_test_string
666
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
668
# Oops. We lost completely, so just stick with echo.
677
# Copy echo and quote the copy suitably for passing to libtool from
678
# the Makefile, instead of quoting the original, which is used later.
680
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
681
ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
687
tagnames=${tagnames+${tagnames},}CXX
689
tagnames=${tagnames+${tagnames},}F77
691
exec 7<&0 </dev/null 6>&1
694
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
695
# so uname gets run too.
696
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
701
ac_default_prefix=/usr/local
703
ac_config_libobj_dir=.
709
SHELL=${CONFIG_SHELL-/bin/sh}
711
# Identity of this package.
712
PACKAGE_NAME='mediastreamer'
713
PACKAGE_TARNAME='mediastreamer'
714
PACKAGE_VERSION='2.0.0'
715
PACKAGE_STRING='mediastreamer 2.0.0'
718
# Factoring default headers for most tests.
719
ac_includes_default="\
721
#ifdef HAVE_SYS_TYPES_H
722
# include <sys/types.h>
724
#ifdef HAVE_SYS_STAT_H
725
# include <sys/stat.h>
731
# ifdef HAVE_STDLIB_H
736
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
741
#ifdef HAVE_STRINGS_H
742
# include <strings.h>
744
#ifdef HAVE_INTTYPES_H
745
# include <inttypes.h>
763
program_transform_name
803
LIBMEDIASTREAMER_SO_VERSION
804
MEDIASTREAMER_VERSION
818
INSTALL_STRIP_PROGRAM
872
BUILD_PORTAUDIO_FALSE
918
ac_precious_vars='build_alias
947
# Initialize some variables set by options.
949
ac_init_version=false
950
# The variables have the same names as the options, with
951
# dashes changed to underlines.
959
program_transform_name=s,x,x,
967
# Installation directory options.
968
# These are left unexpanded so users can "make install exec_prefix=/foo"
969
# and all the variables that are supposed to be based on exec_prefix
970
# by default will actually change.
971
# Use braces instead of parens because sh, perl, etc. also accept them.
972
# (The list follows the same order as the GNU Coding Standards.)
973
bindir='${exec_prefix}/bin'
974
sbindir='${exec_prefix}/sbin'
975
libexecdir='${exec_prefix}/libexec'
976
datarootdir='${prefix}/share'
977
datadir='${datarootdir}'
978
sysconfdir='${prefix}/etc'
979
sharedstatedir='${prefix}/com'
980
localstatedir='${prefix}/var'
981
includedir='${prefix}/include'
982
oldincludedir='/usr/include'
983
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
984
infodir='${datarootdir}/info'
989
libdir='${exec_prefix}/lib'
990
localedir='${datarootdir}/locale'
991
mandir='${datarootdir}/man'
997
# If the previous option needs an argument, assign it.
998
if test -n "$ac_prev"; then
999
eval $ac_prev=\$ac_option
1005
*=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1009
# Accept the important Cygnus configure options, so we can diagnose typos.
1011
case $ac_dashdash$ac_option in
1015
-bindir | --bindir | --bindi | --bind | --bin | --bi)
1017
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1018
bindir=$ac_optarg ;;
1020
-build | --build | --buil | --bui | --bu)
1021
ac_prev=build_alias ;;
1022
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
1023
build_alias=$ac_optarg ;;
1025
-cache-file | --cache-file | --cache-fil | --cache-fi \
1026
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1027
ac_prev=cache_file ;;
1028
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1029
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1030
cache_file=$ac_optarg ;;
1032
--config-cache | -C)
1033
cache_file=config.cache ;;
1035
-datadir | --datadir | --datadi | --datad)
1037
-datadir=* | --datadir=* | --datadi=* | --datad=*)
1038
datadir=$ac_optarg ;;
1040
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1041
| --dataroo | --dataro | --datar)
1042
ac_prev=datarootdir ;;
1043
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1044
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1045
datarootdir=$ac_optarg ;;
1047
-disable-* | --disable-*)
1048
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1049
# Reject names that are not valid shell variable names.
1050
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1051
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
1052
{ (exit 1); exit 1; }; }
1053
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1054
eval enable_$ac_feature=no ;;
1056
-docdir | --docdir | --docdi | --doc | --do)
1058
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1059
docdir=$ac_optarg ;;
1061
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1063
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1064
dvidir=$ac_optarg ;;
1066
-enable-* | --enable-*)
1067
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1068
# Reject names that are not valid shell variable names.
1069
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1070
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
1071
{ (exit 1); exit 1; }; }
1072
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1073
eval enable_$ac_feature=\$ac_optarg ;;
1075
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1076
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1077
| --exec | --exe | --ex)
1078
ac_prev=exec_prefix ;;
1079
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1080
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1081
| --exec=* | --exe=* | --ex=*)
1082
exec_prefix=$ac_optarg ;;
1084
-gas | --gas | --ga | --g)
1085
# Obsolete; use --with-gas.
1088
-help | --help | --hel | --he | -h)
1089
ac_init_help=long ;;
1090
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1091
ac_init_help=recursive ;;
1092
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1093
ac_init_help=short ;;
1095
-host | --host | --hos | --ho)
1096
ac_prev=host_alias ;;
1097
-host=* | --host=* | --hos=* | --ho=*)
1098
host_alias=$ac_optarg ;;
1100
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1102
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1104
htmldir=$ac_optarg ;;
1106
-includedir | --includedir | --includedi | --included | --include \
1107
| --includ | --inclu | --incl | --inc)
1108
ac_prev=includedir ;;
1109
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1110
| --includ=* | --inclu=* | --incl=* | --inc=*)
1111
includedir=$ac_optarg ;;
1113
-infodir | --infodir | --infodi | --infod | --info | --inf)
1115
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1116
infodir=$ac_optarg ;;
1118
-libdir | --libdir | --libdi | --libd)
1120
-libdir=* | --libdir=* | --libdi=* | --libd=*)
1121
libdir=$ac_optarg ;;
1123
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1124
| --libexe | --libex | --libe)
1125
ac_prev=libexecdir ;;
1126
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1127
| --libexe=* | --libex=* | --libe=*)
1128
libexecdir=$ac_optarg ;;
1130
-localedir | --localedir | --localedi | --localed | --locale)
1131
ac_prev=localedir ;;
1132
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1133
localedir=$ac_optarg ;;
1135
-localstatedir | --localstatedir | --localstatedi | --localstated \
1136
| --localstate | --localstat | --localsta | --localst | --locals)
1137
ac_prev=localstatedir ;;
1138
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1139
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1140
localstatedir=$ac_optarg ;;
1142
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1144
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1145
mandir=$ac_optarg ;;
1147
-nfp | --nfp | --nf)
1148
# Obsolete; use --without-fp.
1151
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
1152
| --no-cr | --no-c | -n)
1155
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
1156
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1159
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1160
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1161
| --oldin | --oldi | --old | --ol | --o)
1162
ac_prev=oldincludedir ;;
1163
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1164
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1165
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1166
oldincludedir=$ac_optarg ;;
1168
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1170
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1171
prefix=$ac_optarg ;;
1173
-program-prefix | --program-prefix | --program-prefi | --program-pref \
1174
| --program-pre | --program-pr | --program-p)
1175
ac_prev=program_prefix ;;
1176
-program-prefix=* | --program-prefix=* | --program-prefi=* \
1177
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1178
program_prefix=$ac_optarg ;;
1180
-program-suffix | --program-suffix | --program-suffi | --program-suff \
1181
| --program-suf | --program-su | --program-s)
1182
ac_prev=program_suffix ;;
1183
-program-suffix=* | --program-suffix=* | --program-suffi=* \
1184
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1185
program_suffix=$ac_optarg ;;
1187
-program-transform-name | --program-transform-name \
1188
| --program-transform-nam | --program-transform-na \
1189
| --program-transform-n | --program-transform- \
1190
| --program-transform | --program-transfor \
1191
| --program-transfo | --program-transf \
1192
| --program-trans | --program-tran \
1193
| --progr-tra | --program-tr | --program-t)
1194
ac_prev=program_transform_name ;;
1195
-program-transform-name=* | --program-transform-name=* \
1196
| --program-transform-nam=* | --program-transform-na=* \
1197
| --program-transform-n=* | --program-transform-=* \
1198
| --program-transform=* | --program-transfor=* \
1199
| --program-transfo=* | --program-transf=* \
1200
| --program-trans=* | --program-tran=* \
1201
| --progr-tra=* | --program-tr=* | --program-t=*)
1202
program_transform_name=$ac_optarg ;;
1204
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1206
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1207
pdfdir=$ac_optarg ;;
1209
-psdir | --psdir | --psdi | --psd | --ps)
1211
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1214
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1215
| -silent | --silent | --silen | --sile | --sil)
1218
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1220
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1222
sbindir=$ac_optarg ;;
1224
-sharedstatedir | --sharedstatedir | --sharedstatedi \
1225
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1226
| --sharedst | --shareds | --shared | --share | --shar \
1228
ac_prev=sharedstatedir ;;
1229
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1230
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1231
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1233
sharedstatedir=$ac_optarg ;;
1235
-site | --site | --sit)
1237
-site=* | --site=* | --sit=*)
1240
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1242
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1243
srcdir=$ac_optarg ;;
1245
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1246
| --syscon | --sysco | --sysc | --sys | --sy)
1247
ac_prev=sysconfdir ;;
1248
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1249
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1250
sysconfdir=$ac_optarg ;;
1252
-target | --target | --targe | --targ | --tar | --ta | --t)
1253
ac_prev=target_alias ;;
1254
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1255
target_alias=$ac_optarg ;;
1257
-v | -verbose | --verbose | --verbos | --verbo | --verb)
1260
-version | --version | --versio | --versi | --vers | -V)
1261
ac_init_version=: ;;
1264
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1265
# Reject names that are not valid shell variable names.
1266
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1267
{ echo "$as_me: error: invalid package name: $ac_package" >&2
1268
{ (exit 1); exit 1; }; }
1269
ac_package=`echo $ac_package| sed 's/-/_/g'`
1270
eval with_$ac_package=\$ac_optarg ;;
1272
-without-* | --without-*)
1273
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1274
# Reject names that are not valid shell variable names.
1275
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1276
{ echo "$as_me: error: invalid package name: $ac_package" >&2
1277
{ (exit 1); exit 1; }; }
1278
ac_package=`echo $ac_package | sed 's/-/_/g'`
1279
eval with_$ac_package=no ;;
1282
# Obsolete; use --with-x.
1285
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1286
| --x-incl | --x-inc | --x-in | --x-i)
1287
ac_prev=x_includes ;;
1288
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1289
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1290
x_includes=$ac_optarg ;;
1292
-x-libraries | --x-libraries | --x-librarie | --x-librari \
1293
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1294
ac_prev=x_libraries ;;
1295
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1296
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1297
x_libraries=$ac_optarg ;;
1299
-*) { echo "$as_me: error: unrecognized option: $ac_option
1300
Try \`$0 --help' for more information." >&2
1301
{ (exit 1); exit 1; }; }
1305
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1306
# Reject names that are not valid shell variable names.
1307
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1308
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1309
{ (exit 1); exit 1; }; }
1310
eval $ac_envvar=\$ac_optarg
1311
export $ac_envvar ;;
1314
# FIXME: should be removed in autoconf 3.0.
1315
echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1316
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1317
echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1318
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1324
if test -n "$ac_prev"; then
1325
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1326
{ echo "$as_me: error: missing argument to $ac_option" >&2
1327
{ (exit 1); exit 1; }; }
1330
# Be sure to have absolute directory names.
1331
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1332
datadir sysconfdir sharedstatedir localstatedir includedir \
1333
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1334
libdir localedir mandir
1336
eval ac_val=\$$ac_var
1338
[\\/$]* | ?:[\\/]* ) continue;;
1339
NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1341
{ echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1342
{ (exit 1); exit 1; }; }
1345
# There might be people who depend on the old broken behavior: `$host'
1346
# used to hold the argument of --host etc.
1347
# FIXME: To remove some day.
1350
target=$target_alias
1352
# FIXME: To remove some day.
1353
if test "x$host_alias" != x; then
1354
if test "x$build_alias" = x; then
1355
cross_compiling=maybe
1356
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1357
If a cross compiler is detected then cross compile mode will be used." >&2
1358
elif test "x$build_alias" != "x$host_alias"; then
1364
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1366
test "$silent" = yes && exec 6>/dev/null
1369
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1370
ac_ls_di=`ls -di .` &&
1371
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1372
{ echo "$as_me: error: Working directory cannot be determined" >&2
1373
{ (exit 1); exit 1; }; }
1374
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1375
{ echo "$as_me: error: pwd does not report name of working directory" >&2
1376
{ (exit 1); exit 1; }; }
1379
# Find the source files, if location was not specified.
1380
if test -z "$srcdir"; then
1381
ac_srcdir_defaulted=yes
1382
# Try the directory containing this script, then the parent directory.
1383
ac_confdir=`$as_dirname -- "$0" ||
1384
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1385
X"$0" : 'X\(//\)[^/]' \| \
1386
X"$0" : 'X\(//\)$' \| \
1387
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1389
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1407
if test ! -r "$srcdir/$ac_unique_file"; then
1411
ac_srcdir_defaulted=no
1413
if test ! -r "$srcdir/$ac_unique_file"; then
1414
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1415
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1416
{ (exit 1); exit 1; }; }
1418
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1420
cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1421
{ (exit 1); exit 1; }; }
1423
# When building in place, set srcdir=.
1424
if test "$ac_abs_confdir" = "$ac_pwd"; then
1427
# Remove unnecessary trailing slashes from srcdir.
1428
# Double slashes in file names in object file debugging info
1429
# mess up M-x gdb in Emacs.
1431
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1433
for ac_var in $ac_precious_vars; do
1434
eval ac_env_${ac_var}_set=\${${ac_var}+set}
1435
eval ac_env_${ac_var}_value=\$${ac_var}
1436
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1437
eval ac_cv_env_${ac_var}_value=\$${ac_var}
1441
# Report the --help message.
1443
if test "$ac_init_help" = "long"; then
1444
# Omit some internal or obsolete options to make the list less imposing.
1445
# This message is too long to be a string in the A/UX 3.1 sh.
1447
\`configure' configures mediastreamer 2.0.0 to adapt to many kinds of systems.
1449
Usage: $0 [OPTION]... [VAR=VALUE]...
1451
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1452
VAR=VALUE. See below for descriptions of some of the useful variables.
1454
Defaults for the options are specified in brackets.
1457
-h, --help display this help and exit
1458
--help=short display options specific to this package
1459
--help=recursive display the short help of all the included packages
1460
-V, --version display version information and exit
1461
-q, --quiet, --silent do not print \`checking...' messages
1462
--cache-file=FILE cache test results in FILE [disabled]
1463
-C, --config-cache alias for \`--cache-file=config.cache'
1464
-n, --no-create do not create output files
1465
--srcdir=DIR find the sources in DIR [configure dir or \`..']
1467
Installation directories:
1468
--prefix=PREFIX install architecture-independent files in PREFIX
1469
[$ac_default_prefix]
1470
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1473
By default, \`make install' will install all the files in
1474
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1475
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1476
for instance \`--prefix=\$HOME'.
1478
For better control, use the options below.
1480
Fine tuning of the installation directories:
1481
--bindir=DIR user executables [EPREFIX/bin]
1482
--sbindir=DIR system admin executables [EPREFIX/sbin]
1483
--libexecdir=DIR program executables [EPREFIX/libexec]
1484
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1485
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1486
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1487
--libdir=DIR object code libraries [EPREFIX/lib]
1488
--includedir=DIR C header files [PREFIX/include]
1489
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1490
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1491
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1492
--infodir=DIR info documentation [DATAROOTDIR/info]
1493
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1494
--mandir=DIR man documentation [DATAROOTDIR/man]
1495
--docdir=DIR documentation root [DATAROOTDIR/doc/mediastreamer]
1496
--htmldir=DIR html documentation [DOCDIR]
1497
--dvidir=DIR dvi documentation [DOCDIR]
1498
--pdfdir=DIR pdf documentation [DOCDIR]
1499
--psdir=DIR ps documentation [DOCDIR]
1505
--program-prefix=PREFIX prepend PREFIX to installed program names
1506
--program-suffix=SUFFIX append SUFFIX to installed program names
1507
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
1510
--build=BUILD configure for building on BUILD [guessed]
1511
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1512
--target=TARGET configure for building compilers for TARGET [HOST]
1516
if test -n "$ac_init_help"; then
1517
case $ac_init_help in
1518
short | recursive ) echo "Configuration of mediastreamer 2.0.0:";;
1523
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1524
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1525
--enable-strict Enable error on compilation warning default=yes
1526
--enable-ipv6 Turn on ipv6 support
1527
--enable-debug=yes/no enables the display of traces showing the execution of the library. default=yes
1528
--disable-dependency-tracking speeds up one-time build
1529
--enable-dependency-tracking do not reject slow dependency extractors
1530
--enable-shared[=PKGS] build shared libraries [default=yes]
1531
--enable-static[=PKGS] build static libraries [default=yes]
1532
--enable-fast-install[=PKGS]
1533
optimize for fast installation [default=yes]
1534
--disable-libtool-lock avoid locking (might break parallel builds)
1535
--enable-alsa Turn on alsa native support compiling
1536
--enable-portaudio Turn on portaudio native support compiling
1537
--enable-video Turn on video support compiling
1540
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1541
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1542
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
1543
--with-pic try to use only PIC/non-PIC objects [default=use
1545
--with-tags[=TAGS] include additional configurations [automatic]
1546
--with-gsm Sets the installation prefix of gsm codec library default=/usr
1547
--with-ffmpeg Sets the installation prefix of ffmpeg, needed for video support. default=/usr
1548
--with-sdl Sets the installation prefix of libSDL, needed for video support. default=/usr
1550
Some influential environment variables:
1551
CC C compiler command
1552
CFLAGS C compiler flags
1553
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1554
nonstandard directory <lib dir>
1555
CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1556
you have headers in a nonstandard directory <include dir>
1558
CXX C++ compiler command
1559
CXXFLAGS C++ compiler flags
1560
CXXCPP C++ preprocessor
1561
F77 Fortran 77 compiler command
1562
FFLAGS Fortran 77 compiler flags
1563
PKG_CONFIG path to pkg-config utility
1564
JACK_CFLAGS C compiler flags for JACK, overriding pkg-config
1565
JACK_LIBS linker flags for JACK, overriding pkg-config
1567
C compiler flags for SAMPLERATE, overriding pkg-config
1569
linker flags for SAMPLERATE, overriding pkg-config
1571
C compiler flags for SPEEX, overriding pkg-config
1572
SPEEX_LIBS linker flags for SPEEX, overriding pkg-config
1574
C compiler flags for FFMPEG, overriding pkg-config
1575
FFMPEG_LIBS linker flags for FFMPEG, overriding pkg-config
1577
C compiler flags for THEORA, overriding pkg-config
1578
THEORA_LIBS linker flags for THEORA, overriding pkg-config
1579
ORTP_CFLAGS C compiler flags for ORTP, overriding pkg-config
1580
ORTP_LIBS linker flags for ORTP, overriding pkg-config
1582
Use these variables to override the choices made by `configure' or to help
1583
it to find libraries and programs with nonstandard names/locations.
1589
if test "$ac_init_help" = "recursive"; then
1590
# If there are subdirs, report their specific --help.
1591
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1592
test -d "$ac_dir" || continue
1596
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1598
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1599
# A ".." for each directory in $ac_dir_suffix.
1600
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1601
case $ac_top_builddir_sub in
1602
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1603
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1606
ac_abs_top_builddir=$ac_pwd
1607
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1608
# for backward compatibility:
1609
ac_top_builddir=$ac_top_build_prefix
1612
.) # We are building in place.
1614
ac_top_srcdir=$ac_top_builddir_sub
1615
ac_abs_top_srcdir=$ac_pwd ;;
1616
[\\/]* | ?:[\\/]* ) # Absolute name.
1617
ac_srcdir=$srcdir$ac_dir_suffix;
1618
ac_top_srcdir=$srcdir
1619
ac_abs_top_srcdir=$srcdir ;;
1621
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1622
ac_top_srcdir=$ac_top_build_prefix$srcdir
1623
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1625
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1627
cd "$ac_dir" || { ac_status=$?; continue; }
1628
# Check for guested configure.
1629
if test -f "$ac_srcdir/configure.gnu"; then
1631
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
1632
elif test -f "$ac_srcdir/configure"; then
1634
$SHELL "$ac_srcdir/configure" --help=recursive
1636
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1638
cd "$ac_pwd" || { ac_status=$?; break; }
1642
test -n "$ac_init_help" && exit $ac_status
1643
if $ac_init_version; then
1645
mediastreamer configure 2.0.0
1646
generated by GNU Autoconf 2.60a
1648
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1649
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1650
This configure script is free software; the Free Software Foundation
1651
gives unlimited permission to copy, distribute and modify it.
1655
cat >config.log <<_ACEOF
1656
This file contains any messages produced by compilers while
1657
running configure, to aid debugging if configure makes a mistake.
1659
It was created by mediastreamer $as_me 2.0.0, which was
1660
generated by GNU Autoconf 2.60a. Invocation command line was
1672
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1673
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1674
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1675
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1676
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1678
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1679
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1681
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1682
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1683
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1684
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1685
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1686
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1687
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1691
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1695
test -z "$as_dir" && as_dir=.
1696
echo "PATH: $as_dir"
1712
# Keep a trace of the command line.
1713
# Strip out --no-create and --no-recursion so they do not pile up.
1714
# Strip out --silent because we don't want to record it for future runs.
1715
# Also quote any args containing shell meta-characters.
1716
# Make two passes to allow for proper duplicate-argument suppression.
1720
ac_must_keep_next=false
1726
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1727
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1728
| -silent | --silent | --silen | --sile | --sil)
1731
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1734
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1736
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1737
if test $ac_must_keep_next = true; then
1738
ac_must_keep_next=false # Got value, back to normal.
1741
*=* | --config-cache | -C | -disable-* | --disable-* \
1742
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1743
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1744
| -with-* | --with-* | -without-* | --without-* | --x)
1745
case "$ac_configure_args0 " in
1746
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1749
-* ) ac_must_keep_next=true ;;
1752
ac_configure_args="$ac_configure_args '$ac_arg'"
1757
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1758
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1760
# When interrupted or exit'd, cleanup temporary files, and complete
1761
# config.log. We remove comments because anyway the quotes in there
1762
# would cause problems or look ugly.
1763
# WARNING: Use '\'' to represent an apostrophe within the trap.
1764
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1765
trap 'exit_status=$?
1766
# Save into config.log some information that might help in debugging.
1771
## ---------------- ##
1772
## Cache variables. ##
1773
## ---------------- ##
1776
# The following way of writing the cache mishandles newlines in values,
1778
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1779
eval ac_val=\$$ac_var
1783
*_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1784
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1787
_ | IFS | as_nl) ;; #(
1788
*) $as_unset $ac_var ;;
1793
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1794
*${as_nl}ac_space=\ *)
1796
"s/'\''/'\''\\\\'\'''\''/g;
1797
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1800
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1808
## ----------------- ##
1809
## Output variables. ##
1810
## ----------------- ##
1813
for ac_var in $ac_subst_vars
1815
eval ac_val=\$$ac_var
1817
*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1819
echo "$ac_var='\''$ac_val'\''"
1823
if test -n "$ac_subst_files"; then
1825
## ------------------- ##
1826
## File substitutions. ##
1827
## ------------------- ##
1830
for ac_var in $ac_subst_files
1832
eval ac_val=\$$ac_var
1834
*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1836
echo "$ac_var='\''$ac_val'\''"
1841
if test -s confdefs.h; then
1851
test "$ac_signal" != 0 &&
1852
echo "$as_me: caught signal $ac_signal"
1853
echo "$as_me: exit $exit_status"
1855
rm -f core *.core core.conftest.* &&
1856
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1859
for ac_signal in 1 2 13 15; do
1860
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1864
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1865
rm -f -r conftest* confdefs.h
1867
# Predefined preprocessor variables.
1869
cat >>confdefs.h <<_ACEOF
1870
#define PACKAGE_NAME "$PACKAGE_NAME"
1874
cat >>confdefs.h <<_ACEOF
1875
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1879
cat >>confdefs.h <<_ACEOF
1880
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1884
cat >>confdefs.h <<_ACEOF
1885
#define PACKAGE_STRING "$PACKAGE_STRING"
1889
cat >>confdefs.h <<_ACEOF
1890
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1894
# Let the site file select an alternate cache file if it wants to.
1895
# Prefer explicitly selected file to automatically selected ones.
1896
if test -n "$CONFIG_SITE"; then
1897
set x "$CONFIG_SITE"
1898
elif test "x$prefix" != xNONE; then
1899
set x "$prefix/share/config.site" "$prefix/etc/config.site"
1901
set x "$ac_default_prefix/share/config.site" \
1902
"$ac_default_prefix/etc/config.site"
1907
if test -r "$ac_site_file"; then
1908
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1909
echo "$as_me: loading site script $ac_site_file" >&6;}
1910
sed 's/^/| /' "$ac_site_file" >&5
1915
if test -r "$cache_file"; then
1916
# Some versions of bash will fail to source /dev/null (special
1917
# files actually), so we avoid doing that.
1918
if test -f "$cache_file"; then
1919
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
1920
echo "$as_me: loading cache $cache_file" >&6;}
1922
[\\/]* | ?:[\\/]* ) . "$cache_file";;
1923
*) . "./$cache_file";;
1927
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
1928
echo "$as_me: creating cache $cache_file" >&6;}
1932
# Check that the precious variables saved in the cache have kept the same
1934
ac_cache_corrupted=false
1935
for ac_var in $ac_precious_vars; do
1936
eval ac_old_set=\$ac_cv_env_${ac_var}_set
1937
eval ac_new_set=\$ac_env_${ac_var}_set
1938
eval ac_old_val=\$ac_cv_env_${ac_var}_value
1939
eval ac_new_val=\$ac_env_${ac_var}_value
1940
case $ac_old_set,$ac_new_set in
1942
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1943
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1944
ac_cache_corrupted=: ;;
1946
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1947
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1948
ac_cache_corrupted=: ;;
1951
if test "x$ac_old_val" != "x$ac_new_val"; then
1952
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1953
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1954
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1955
echo "$as_me: former value: $ac_old_val" >&2;}
1956
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1957
echo "$as_me: current value: $ac_new_val" >&2;}
1958
ac_cache_corrupted=:
1961
# Pass precious variables to config.status.
1962
if test "$ac_new_set" = set; then
1964
*\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1965
*) ac_arg=$ac_var=$ac_new_val ;;
1967
case " $ac_configure_args " in
1968
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1969
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1973
if $ac_cache_corrupted; then
1974
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1975
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1976
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1977
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1978
{ (exit 1); exit 1; }; }
2006
ac_cpp='$CPP $CPPFLAGS'
2007
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2008
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2009
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2013
{ echo "$as_me:$LINENO: $PACKAGE_NAME-$PACKAGE_VERSION A mediastreaming library for telephony application." >&5
2014
echo "$as_me: $PACKAGE_NAME-$PACKAGE_VERSION A mediastreaming library for telephony application." >&6;}
2015
{ echo "$as_me:$LINENO: licensed under the terms of the General Public License (GPL)" >&5
2016
echo "$as_me: licensed under the terms of the General Public License (GPL)" >&6;}
2019
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2020
if test -f "$ac_dir/install-sh"; then
2022
ac_install_sh="$ac_aux_dir/install-sh -c"
2024
elif test -f "$ac_dir/install.sh"; then
2026
ac_install_sh="$ac_aux_dir/install.sh -c"
2028
elif test -f "$ac_dir/shtool"; then
2030
ac_install_sh="$ac_aux_dir/shtool install -c"
2034
if test -z "$ac_aux_dir"; then
2035
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2036
echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2037
{ (exit 1); exit 1; }; }
2040
# These three variables are undocumented and unsupported,
2041
# and are intended to be withdrawn in a future Autoconf release.
2042
# They can cause serious problems if a builder's source tree is in a directory
2043
# whose full name contains unusual characters.
2044
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2045
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2046
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2049
# Make sure we can run config.sub.
2050
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2051
{ { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2052
echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2053
{ (exit 1); exit 1; }; }
2055
{ echo "$as_me:$LINENO: checking build system type" >&5
2056
echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2057
if test "${ac_cv_build+set}" = set; then
2058
echo $ECHO_N "(cached) $ECHO_C" >&6
2060
ac_build_alias=$build_alias
2061
test "x$ac_build_alias" = x &&
2062
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2063
test "x$ac_build_alias" = x &&
2064
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2065
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2066
{ (exit 1); exit 1; }; }
2067
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2068
{ { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2069
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2070
{ (exit 1); exit 1; }; }
2073
{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2074
echo "${ECHO_T}$ac_cv_build" >&6; }
2075
case $ac_cv_build in
2077
*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2078
echo "$as_me: error: invalid value of canonical build" >&2;}
2079
{ (exit 1); exit 1; }; };;
2082
ac_save_IFS=$IFS; IFS='-'
2088
# Remember, the first character of IFS is used to create $*,
2089
# except with old shells:
2092
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2095
{ echo "$as_me:$LINENO: checking host system type" >&5
2096
echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2097
if test "${ac_cv_host+set}" = set; then
2098
echo $ECHO_N "(cached) $ECHO_C" >&6
2100
if test "x$host_alias" = x; then
2101
ac_cv_host=$ac_cv_build
2103
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2104
{ { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2105
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2106
{ (exit 1); exit 1; }; }
2110
{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2111
echo "${ECHO_T}$ac_cv_host" >&6; }
2114
*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2115
echo "$as_me: error: invalid value of canonical host" >&2;}
2116
{ (exit 1); exit 1; }; };;
2119
ac_save_IFS=$IFS; IFS='-'
2125
# Remember, the first character of IFS is used to create $*,
2126
# except with old shells:
2129
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2132
{ echo "$as_me:$LINENO: checking target system type" >&5
2133
echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2134
if test "${ac_cv_target+set}" = set; then
2135
echo $ECHO_N "(cached) $ECHO_C" >&6
2137
if test "x$target_alias" = x; then
2138
ac_cv_target=$ac_cv_host
2140
ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2141
{ { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2142
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2143
{ (exit 1); exit 1; }; }
2147
{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2148
echo "${ECHO_T}$ac_cv_target" >&6; }
2149
case $ac_cv_target in
2151
*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2152
echo "$as_me: error: invalid value of canonical target" >&2;}
2153
{ (exit 1); exit 1; }; };;
2155
target=$ac_cv_target
2156
ac_save_IFS=$IFS; IFS='-'
2162
# Remember, the first character of IFS is used to create $*,
2163
# except with old shells:
2166
case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2169
# The aliases save the names the user supplied, while $host etc.
2170
# will get canonicalized.
2171
test -n "$target_alias" &&
2172
test "$program_prefix$program_suffix$program_transform_name" = \
2174
program_prefix=${target_alias}-
2176
MEDIASTREAMER_MAJOR_VERSION=$(echo $PACKAGE_VERSION | cut -d. -f1)
2177
MEDIASTREAMER_MINOR_VERSION=$(echo $PACKAGE_VERSION | cut -d. -f2)
2178
MEDIASTREAMER_MICRO_VERSION=$(echo $PACKAGE_VERSION | cut -d. -f3)
2179
MEDIASTREAMER_EXTRA_VERSION=$(echo $PACKAGE_VERSION | cut -d. -f4)
2181
LIBMEDIASTREAMER_SO_CURRENT=0 LIBMEDIASTREAMER_SO_REVISION=0 LIBMEDIASTREAMER_SO_AGE=0
2182
LIBMEDIASTREAMER_SO_VERSION=$LIBMEDIASTREAMER_SO_CURRENT:$LIBMEDIASTREAMER_SO_REVISION:$LIBMEDIASTREAMER_SO_AGE
2183
MEDIASTREAMER_VERSION=${MEDIASTREAMER_MAJOR_VERSION}.${MEDIASTREAMER_MINOR_VERSION}.${MEDIASTREAMER_MICRO_VERSION}
2185
if test -n "$MEDIASTREAMER_EXTRA_VERSION" ; then
2186
MEDIASTREAMER_VERSION="${MEDIASTREAMER_VERSION}.${MEDIASTREAMER_EXTRA_VERSION}"
2192
PACKAGE=mediastreamer
2194
OS=`uname|sed -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
2195
{ echo "$as_me:$LINENO: result: Building Package on ${OS}" >&5
2196
echo "${ECHO_T}Building Package on ${OS}" >&6; }
2198
am__api_version="1.9"
2199
# Find a good install program. We prefer a C program (faster),
2200
# so one script is as good as another. But avoid the broken or
2201
# incompatible versions:
2202
# SysV /etc/install, /usr/sbin/install
2203
# SunOS /usr/etc/install
2204
# IRIX /sbin/install
2206
# AmigaOS /C/install, which installs bootblocks on floppy discs
2207
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2208
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2209
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2210
# OS/2's system install, which has a completely different semantic
2211
# ./install, which can be erroneously created by make from ./install.sh.
2212
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2213
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2214
if test -z "$INSTALL"; then
2215
if test "${ac_cv_path_install+set}" = set; then
2216
echo $ECHO_N "(cached) $ECHO_C" >&6
2218
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2222
test -z "$as_dir" && as_dir=.
2223
# Account for people who put trailing slashes in PATH elements.
2225
./ | .// | /cC/* | \
2226
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2227
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2230
# OSF1 and SCO ODT 3.0 have their own names for install.
2231
# Don't use installbsd from OSF since it installs stuff as root
2233
for ac_prog in ginstall scoinst install; do
2234
for ac_exec_ext in '' $ac_executable_extensions; do
2235
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
2236
if test $ac_prog = install &&
2237
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2238
# AIX install. It has an incompatible calling convention.
2240
elif test $ac_prog = install &&
2241
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2242
# program-specific install script used by HP pwplus--don't use.
2245
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2258
if test "${ac_cv_path_install+set}" = set; then
2259
INSTALL=$ac_cv_path_install
2261
# As a last resort, use the slow shell script. Don't cache a
2262
# value for INSTALL within a source directory, because that will
2263
# break other packages using the cache if that directory is
2264
# removed, or if the value is a relative name.
2265
INSTALL=$ac_install_sh
2268
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2269
echo "${ECHO_T}$INSTALL" >&6; }
2271
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2272
# It thinks the first close brace ends the variable substitution.
2273
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2275
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2277
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2279
{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2280
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2283
echo timestamp > conftest.file
2284
# Do `set' in a subshell so we don't clobber the current shell's
2285
# arguments. Must try -L first in case configure is actually a
2286
# symlink; some systems play weird games with the mod time of symlinks
2287
# (eg FreeBSD returns the mod time of the symlink's containing
2290
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2291
if test "$*" = "X"; then
2293
set X `ls -t $srcdir/configure conftest.file`
2296
if test "$*" != "X $srcdir/configure conftest.file" \
2297
&& test "$*" != "X conftest.file $srcdir/configure"; then
2299
# If neither matched, then we have a broken ls. This can happen
2300
# if, for instance, CONFIG_SHELL is bash and it inherits a
2301
# broken ls alias from the environment. This has actually
2302
# happened. Such a system could not be considered "sane".
2303
{ { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2304
alias in your environment" >&5
2305
echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2306
alias in your environment" >&2;}
2307
{ (exit 1); exit 1; }; }
2310
test "$2" = conftest.file
2316
{ { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2317
Check your system clock" >&5
2318
echo "$as_me: error: newly created file is older than distributed files!
2319
Check your system clock" >&2;}
2320
{ (exit 1); exit 1; }; }
2322
{ echo "$as_me:$LINENO: result: yes" >&5
2323
echo "${ECHO_T}yes" >&6; }
2324
test "$program_prefix" != NONE &&
2325
program_transform_name="s&^&$program_prefix&;$program_transform_name"
2326
# Use a double $ so make ignores it.
2327
test "$program_suffix" != NONE &&
2328
program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2329
# Double any \ or $. echo might interpret backslashes.
2330
# By default was `s,x,x', remove it if useless.
2331
cat <<\_ACEOF >conftest.sed
2332
s/[\\$]/&&/g;s/;s,x,x,$//
2334
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2337
# expand $ac_aux_dir to an absolute path
2338
am_aux_dir=`cd $ac_aux_dir && pwd`
2340
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2341
# Use eval to expand $SHELL
2342
if eval "$MISSING --run true"; then
2343
am_missing_run="$MISSING --run "
2346
{ echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2347
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2350
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2351
# We used to keeping the `.' as first argument, in order to
2352
# allow $(mkdir_p) to be used without argument. As in
2353
# $(mkdir_p) $(somedir)
2354
# where $(somedir) is conditionally defined. However this is wrong
2356
# 1. if the package is installed by a user who cannot write `.'
2357
# make install will fail,
2358
# 2. the above comment should most certainly read
2359
# $(mkdir_p) $(DESTDIR)$(somedir)
2360
# so it does not work when $(somedir) is undefined and
2361
# $(DESTDIR) is not.
2362
# To support the latter case, we have to write
2363
# test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2364
# so the `.' trick is pointless.
2365
mkdir_p='mkdir -p --'
2367
# On NextStep and OpenStep, the `mkdir' command does not
2368
# recognize any option. It will interpret all options as
2369
# directories to create, and then abort because `.' already
2371
for d in ./-p ./--version;
2373
test -d $d && rmdir $d
2375
# $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2376
if test -f "$ac_aux_dir/mkinstalldirs"; then
2377
mkdir_p='$(mkinstalldirs)'
2379
mkdir_p='$(install_sh) -d'
2383
for ac_prog in gawk mawk nawk awk
2385
# Extract the first word of "$ac_prog", so it can be a program name with args.
2386
set dummy $ac_prog; ac_word=$2
2387
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2388
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2389
if test "${ac_cv_prog_AWK+set}" = set; then
2390
echo $ECHO_N "(cached) $ECHO_C" >&6
2392
if test -n "$AWK"; then
2393
ac_cv_prog_AWK="$AWK" # Let the user override the test.
2395
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2399
test -z "$as_dir" && as_dir=.
2400
for ac_exec_ext in '' $ac_executable_extensions; do
2401
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2402
ac_cv_prog_AWK="$ac_prog"
2403
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2413
if test -n "$AWK"; then
2414
{ echo "$as_me:$LINENO: result: $AWK" >&5
2415
echo "${ECHO_T}$AWK" >&6; }
2417
{ echo "$as_me:$LINENO: result: no" >&5
2418
echo "${ECHO_T}no" >&6; }
2422
test -n "$AWK" && break
2425
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2426
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2427
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2428
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2429
echo $ECHO_N "(cached) $ECHO_C" >&6
2431
cat >conftest.make <<\_ACEOF
2434
@echo '@@@%%%=$(MAKE)=@@@%%%'
2436
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2437
case `${MAKE-make} -f conftest.make 2>/dev/null` in
2439
eval ac_cv_prog_make_${ac_make}_set=yes;;
2441
eval ac_cv_prog_make_${ac_make}_set=no;;
2445
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2446
{ echo "$as_me:$LINENO: result: yes" >&5
2447
echo "${ECHO_T}yes" >&6; }
2450
{ echo "$as_me:$LINENO: result: no" >&5
2451
echo "${ECHO_T}no" >&6; }
2452
SET_MAKE="MAKE=${MAKE-make}"
2455
rm -rf .tst 2>/dev/null
2456
mkdir .tst 2>/dev/null
2457
if test -d .tst; then
2462
rmdir .tst 2>/dev/null
2464
# test to see if srcdir already configured
2465
if test "`cd $srcdir && pwd`" != "`pwd`" &&
2466
test -f $srcdir/config.status; then
2467
{ { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2468
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2469
{ (exit 1); exit 1; }; }
2472
# test whether we have cygpath
2473
if test -z "$CYGPATH_W"; then
2474
if (cygpath --version) >/dev/null 2>/dev/null; then
2475
CYGPATH_W='cygpath -w'
2482
# Define the identity of the package.
2483
PACKAGE='mediastreamer'
2487
cat >>confdefs.h <<_ACEOF
2488
#define PACKAGE "$PACKAGE"
2492
cat >>confdefs.h <<_ACEOF
2493
#define VERSION "$VERSION"
2496
# Some tools Automake needs.
2498
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2501
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2504
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2507
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2510
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2512
install_sh=${install_sh-"$am_aux_dir/install-sh"}
2514
# Installed binaries are usually stripped using `strip' when the user
2515
# run `make install-strip'. However `strip' might not be the right
2516
# tool to use in cross-compilation environments, therefore Automake
2517
# will honor the `STRIP' environment variable to overrule this program.
2518
if test "$cross_compiling" != no; then
2519
if test -n "$ac_tool_prefix"; then
2520
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2521
set dummy ${ac_tool_prefix}strip; ac_word=$2
2522
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2523
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2524
if test "${ac_cv_prog_STRIP+set}" = set; then
2525
echo $ECHO_N "(cached) $ECHO_C" >&6
2527
if test -n "$STRIP"; then
2528
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2530
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2534
test -z "$as_dir" && as_dir=.
2535
for ac_exec_ext in '' $ac_executable_extensions; do
2536
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2537
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2538
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2547
STRIP=$ac_cv_prog_STRIP
2548
if test -n "$STRIP"; then
2549
{ echo "$as_me:$LINENO: result: $STRIP" >&5
2550
echo "${ECHO_T}$STRIP" >&6; }
2552
{ echo "$as_me:$LINENO: result: no" >&5
2553
echo "${ECHO_T}no" >&6; }
2558
if test -z "$ac_cv_prog_STRIP"; then
2560
# Extract the first word of "strip", so it can be a program name with args.
2561
set dummy strip; ac_word=$2
2562
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2563
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2564
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2565
echo $ECHO_N "(cached) $ECHO_C" >&6
2567
if test -n "$ac_ct_STRIP"; then
2568
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2570
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2574
test -z "$as_dir" && as_dir=.
2575
for ac_exec_ext in '' $ac_executable_extensions; do
2576
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2577
ac_cv_prog_ac_ct_STRIP="strip"
2578
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2587
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2588
if test -n "$ac_ct_STRIP"; then
2589
{ echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2590
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2592
{ echo "$as_me:$LINENO: result: no" >&5
2593
echo "${ECHO_T}no" >&6; }
2596
if test "x$ac_ct_STRIP" = x; then
2599
case $cross_compiling:$ac_tool_warned in
2601
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2602
whose name does not start with the host triplet. If you think this
2603
configuration is useful to you, please write to autoconf@gnu.org." >&5
2604
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2605
whose name does not start with the host triplet. If you think this
2606
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2607
ac_tool_warned=yes ;;
2612
STRIP="$ac_cv_prog_STRIP"
2616
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2618
# We need awk for the "check" target. The system "awk" is bad on
2620
# Always define AMTAR for backward compatibility.
2622
AMTAR=${AMTAR-"${am_missing_run}tar"}
2625
{ echo "$as_me:$LINENO: checking how to create a ustar tar archive" >&5
2626
echo $ECHO_N "checking how to create a ustar tar archive... $ECHO_C" >&6; }
2627
# Loop over all known methods to create a tar archive until one works.
2628
_am_tools='gnutar plaintar pax cpio none'
2629
_am_tools=${am_cv_prog_tar_ustar-$_am_tools}
2630
# Do not fold the above two line into one, because Tru64 sh and
2631
# Solaris sh will not grok spaces in the rhs of `-'.
2632
for _am_tool in $_am_tools
2636
for _am_tar in tar gnutar gtar;
2638
{ echo "$as_me:$LINENO: $_am_tar --version" >&5
2639
($_am_tar --version) >&5 2>&5
2641
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642
(exit $ac_status); } && break
2644
am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
2645
am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
2646
am__untar="$_am_tar -xf -"
2649
# Must skip GNU tar: if it does not support --format= it doesn't create
2650
# ustar tarball either.
2651
(tar --version) >/dev/null 2>&1 && continue
2652
am__tar='tar chf - "$$tardir"'
2653
am__tar_='tar chf - "$tardir"'
2654
am__untar='tar xf -'
2657
am__tar='pax -L -x ustar -w "$$tardir"'
2658
am__tar_='pax -L -x ustar -w "$tardir"'
2662
am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
2663
am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
2664
am__untar='cpio -i -H ustar -d'
2673
# If the value was cached, stop now. We just wanted to have am__tar
2674
# and am__untar set.
2675
test -n "${am_cv_prog_tar_ustar}" && break
2677
# tar/untar a dummy directory, and stop if the command works
2680
echo GrepMe > conftest.dir/file
2681
{ echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
2682
(tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
2684
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685
(exit $ac_status); }
2687
if test -s conftest.tar; then
2688
{ echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
2689
($am__untar <conftest.tar) >&5 2>&5
2691
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692
(exit $ac_status); }
2693
grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
2698
if test "${am_cv_prog_tar_ustar+set}" = set; then
2699
echo $ECHO_N "(cached) $ECHO_C" >&6
2701
am_cv_prog_tar_ustar=$_am_tool
2704
{ echo "$as_me:$LINENO: result: $am_cv_prog_tar_ustar" >&5
2705
echo "${ECHO_T}$am_cv_prog_tar_ustar" >&6; }
2711
ac_config_headers="$ac_config_headers mediastreamer-config.h"
2714
cat >>confdefs.h <<_ACEOF
2715
#define MEDIASTREAMER_MAJOR_VERSION $MEDIASTREAMER_MAJOR_VERSION
2719
cat >>confdefs.h <<_ACEOF
2720
#define MEDIASTREAMER_MINOR_VERSION $MEDIASTREAMER_MINOR_VERSION
2724
cat >>confdefs.h <<_ACEOF
2725
#define MEDIASTREAMER_MICRO_VERSION $MEDIASTREAMER_MICRO_VERSION
2729
cat >>confdefs.h <<_ACEOF
2730
#define MEDIASTREAMER_VERSION "$MEDIASTREAMER_VERSION"
2736
{ echo "$as_me:$LINENO: checking warning make an error on compilation" >&5
2737
echo $ECHO_N "checking warning make an error on compilation... $ECHO_C" >&6; }
2738
# Check whether --enable-strict was given.
2739
if test "${enable_strict+set}" = set; then
2740
enableval=$enable_strict; wall_werror=$enableval
2747
CFLAGS="-DORTP_INET6 $CFLAGS "
2749
# Check whether --enable-ipv6 was given.
2750
if test "${enable_ipv6+set}" = set; then
2751
enableval=$enable_ipv6; case "${enableval}" in
2754
*) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-ipv6" >&5
2755
echo "$as_me: error: bad value ${enableval} for --enable-ipv6" >&2;}
2756
{ (exit 1); exit 1; }; } ;;
2762
if test x$ipv6 = xtrue ; then
2763
CFLAGS="$CFLAGS -DINET6"
2767
# Check whether --enable-debug was given.
2768
if test "${enable_debug+set}" = set; then
2769
enableval=$enable_debug; case "${enableval}" in
2770
yes) debug_enabled=yes;;
2771
no) debug_enabled=no;;
2772
*) { { echo "$as_me:$LINENO: error: \"Bad value for --enable-debug\"" >&5
2773
echo "$as_me: error: \"Bad value for --enable-debug\"" >&2;}
2774
{ (exit 1); exit 1; }; };;
2783
ac_cpp='$CPP $CPPFLAGS'
2784
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2785
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2786
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2787
if test -n "$ac_tool_prefix"; then
2788
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2789
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2790
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2791
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2792
if test "${ac_cv_prog_CC+set}" = set; then
2793
echo $ECHO_N "(cached) $ECHO_C" >&6
2795
if test -n "$CC"; then
2796
ac_cv_prog_CC="$CC" # Let the user override the test.
2798
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2802
test -z "$as_dir" && as_dir=.
2803
for ac_exec_ext in '' $ac_executable_extensions; do
2804
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2805
ac_cv_prog_CC="${ac_tool_prefix}gcc"
2806
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2816
if test -n "$CC"; then
2817
{ echo "$as_me:$LINENO: result: $CC" >&5
2818
echo "${ECHO_T}$CC" >&6; }
2820
{ echo "$as_me:$LINENO: result: no" >&5
2821
echo "${ECHO_T}no" >&6; }
2826
if test -z "$ac_cv_prog_CC"; then
2828
# Extract the first word of "gcc", so it can be a program name with args.
2829
set dummy gcc; ac_word=$2
2830
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2831
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2832
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2833
echo $ECHO_N "(cached) $ECHO_C" >&6
2835
if test -n "$ac_ct_CC"; then
2836
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2838
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2842
test -z "$as_dir" && as_dir=.
2843
for ac_exec_ext in '' $ac_executable_extensions; do
2844
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2845
ac_cv_prog_ac_ct_CC="gcc"
2846
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2855
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2856
if test -n "$ac_ct_CC"; then
2857
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2858
echo "${ECHO_T}$ac_ct_CC" >&6; }
2860
{ echo "$as_me:$LINENO: result: no" >&5
2861
echo "${ECHO_T}no" >&6; }
2864
if test "x$ac_ct_CC" = x; then
2867
case $cross_compiling:$ac_tool_warned in
2869
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2870
whose name does not start with the host triplet. If you think this
2871
configuration is useful to you, please write to autoconf@gnu.org." >&5
2872
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2873
whose name does not start with the host triplet. If you think this
2874
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2875
ac_tool_warned=yes ;;
2883
if test -z "$CC"; then
2884
if test -n "$ac_tool_prefix"; then
2885
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2886
set dummy ${ac_tool_prefix}cc; ac_word=$2
2887
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2888
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2889
if test "${ac_cv_prog_CC+set}" = set; then
2890
echo $ECHO_N "(cached) $ECHO_C" >&6
2892
if test -n "$CC"; then
2893
ac_cv_prog_CC="$CC" # Let the user override the test.
2895
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2899
test -z "$as_dir" && as_dir=.
2900
for ac_exec_ext in '' $ac_executable_extensions; do
2901
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2902
ac_cv_prog_CC="${ac_tool_prefix}cc"
2903
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2913
if test -n "$CC"; then
2914
{ echo "$as_me:$LINENO: result: $CC" >&5
2915
echo "${ECHO_T}$CC" >&6; }
2917
{ echo "$as_me:$LINENO: result: no" >&5
2918
echo "${ECHO_T}no" >&6; }
2924
if test -z "$CC"; then
2925
# Extract the first word of "cc", so it can be a program name with args.
2926
set dummy cc; ac_word=$2
2927
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2928
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2929
if test "${ac_cv_prog_CC+set}" = set; then
2930
echo $ECHO_N "(cached) $ECHO_C" >&6
2932
if test -n "$CC"; then
2933
ac_cv_prog_CC="$CC" # Let the user override the test.
2936
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2940
test -z "$as_dir" && as_dir=.
2941
for ac_exec_ext in '' $ac_executable_extensions; do
2942
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2943
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2944
ac_prog_rejected=yes
2948
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2955
if test $ac_prog_rejected = yes; then
2956
# We found a bogon in the path, so make sure we never use it.
2957
set dummy $ac_cv_prog_CC
2959
if test $# != 0; then
2960
# We chose a different compiler from the bogus one.
2961
# However, it has the same basename, so the bogon will be chosen
2962
# first if we set CC to just the basename; use the full file name.
2964
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2970
if test -n "$CC"; then
2971
{ echo "$as_me:$LINENO: result: $CC" >&5
2972
echo "${ECHO_T}$CC" >&6; }
2974
{ echo "$as_me:$LINENO: result: no" >&5
2975
echo "${ECHO_T}no" >&6; }
2980
if test -z "$CC"; then
2981
if test -n "$ac_tool_prefix"; then
2982
for ac_prog in cl.exe
2984
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2985
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2986
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2987
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2988
if test "${ac_cv_prog_CC+set}" = set; then
2989
echo $ECHO_N "(cached) $ECHO_C" >&6
2991
if test -n "$CC"; then
2992
ac_cv_prog_CC="$CC" # Let the user override the test.
2994
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2998
test -z "$as_dir" && as_dir=.
2999
for ac_exec_ext in '' $ac_executable_extensions; do
3000
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3001
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3002
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3012
if test -n "$CC"; then
3013
{ echo "$as_me:$LINENO: result: $CC" >&5
3014
echo "${ECHO_T}$CC" >&6; }
3016
{ echo "$as_me:$LINENO: result: no" >&5
3017
echo "${ECHO_T}no" >&6; }
3021
test -n "$CC" && break
3024
if test -z "$CC"; then
3026
for ac_prog in cl.exe
3028
# Extract the first word of "$ac_prog", so it can be a program name with args.
3029
set dummy $ac_prog; ac_word=$2
3030
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3031
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3032
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3033
echo $ECHO_N "(cached) $ECHO_C" >&6
3035
if test -n "$ac_ct_CC"; then
3036
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3038
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3042
test -z "$as_dir" && as_dir=.
3043
for ac_exec_ext in '' $ac_executable_extensions; do
3044
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3045
ac_cv_prog_ac_ct_CC="$ac_prog"
3046
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3055
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3056
if test -n "$ac_ct_CC"; then
3057
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3058
echo "${ECHO_T}$ac_ct_CC" >&6; }
3060
{ echo "$as_me:$LINENO: result: no" >&5
3061
echo "${ECHO_T}no" >&6; }
3065
test -n "$ac_ct_CC" && break
3068
if test "x$ac_ct_CC" = x; then
3071
case $cross_compiling:$ac_tool_warned in
3073
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3074
whose name does not start with the host triplet. If you think this
3075
configuration is useful to you, please write to autoconf@gnu.org." >&5
3076
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3077
whose name does not start with the host triplet. If you think this
3078
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3079
ac_tool_warned=yes ;;
3088
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3089
See \`config.log' for more details." >&5
3090
echo "$as_me: error: no acceptable C compiler found in \$PATH
3091
See \`config.log' for more details." >&2;}
3092
{ (exit 1); exit 1; }; }
3094
# Provide some information about the compiler.
3095
echo "$as_me:$LINENO: checking for C compiler version" >&5
3096
ac_compiler=`set X $ac_compile; echo $2`
3097
{ (ac_try="$ac_compiler --version >&5"
3099
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3100
*) ac_try_echo=$ac_try;;
3102
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3103
(eval "$ac_compiler --version >&5") 2>&5
3105
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106
(exit $ac_status); }
3107
{ (ac_try="$ac_compiler -v >&5"
3109
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3110
*) ac_try_echo=$ac_try;;
3112
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3113
(eval "$ac_compiler -v >&5") 2>&5
3115
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3116
(exit $ac_status); }
3117
{ (ac_try="$ac_compiler -V >&5"
3119
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3120
*) ac_try_echo=$ac_try;;
3122
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3123
(eval "$ac_compiler -V >&5") 2>&5
3125
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126
(exit $ac_status); }
3128
cat >conftest.$ac_ext <<_ACEOF
3131
cat confdefs.h >>conftest.$ac_ext
3132
cat >>conftest.$ac_ext <<_ACEOF
3133
/* end confdefs.h. */
3143
ac_clean_files_save=$ac_clean_files
3144
ac_clean_files="$ac_clean_files a.out a.exe b.out"
3145
# Try to create an executable without -o first, disregard a.out.
3146
# It will help us diagnose broken compilers, and finding out an intuition
3148
{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3149
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3150
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3152
# List of possible output files, starting from the most likely.
3153
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3154
# only as a last resort. b.out is created by i960 compilers.
3155
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3157
# The IRIX 6 linker writes into existing files which may not be
3158
# executable, retaining their permissions. Remove them first so a
3159
# subsequent execution test works.
3161
for ac_file in $ac_files
3164
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3165
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
3170
if { (ac_try="$ac_link_default"
3172
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3173
*) ac_try_echo=$ac_try;;
3175
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3176
(eval "$ac_link_default") 2>&5
3178
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179
(exit $ac_status); }; then
3180
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3181
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3182
# in a Makefile. We should not override ac_cv_exeext if it was cached,
3183
# so that the user can short-circuit this test for compilers unknown to
3185
for ac_file in $ac_files ''
3187
test -f "$ac_file" || continue
3189
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3192
# We found the default executable, but exeext='' is most
3196
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3198
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3200
# We set ac_cv_exeext here because the later test for it is not
3201
# safe: cross compilers may not add the suffix if given an `-o'
3202
# argument, so we may need to know it at that point already.
3203
# Even if this section looks crufty: it has the advantage of
3210
test "$ac_cv_exeext" = no && ac_cv_exeext=
3216
{ echo "$as_me:$LINENO: result: $ac_file" >&5
3217
echo "${ECHO_T}$ac_file" >&6; }
3218
if test -z "$ac_file"; then
3219
echo "$as_me: failed program was:" >&5
3220
sed 's/^/| /' conftest.$ac_ext >&5
3222
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3223
See \`config.log' for more details." >&5
3224
echo "$as_me: error: C compiler cannot create executables
3225
See \`config.log' for more details." >&2;}
3226
{ (exit 77); exit 77; }; }
3229
ac_exeext=$ac_cv_exeext
3231
# Check that the compiler produces executables we can run. If not, either
3232
# the compiler is broken, or we cross compile.
3233
{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3234
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3235
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3236
# If not cross compiling, check that we can run a simple program.
3237
if test "$cross_compiling" != yes; then
3238
if { ac_try='./$ac_file'
3239
{ (case "(($ac_try" in
3240
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3241
*) ac_try_echo=$ac_try;;
3243
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3244
(eval "$ac_try") 2>&5
3246
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247
(exit $ac_status); }; }; then
3250
if test "$cross_compiling" = maybe; then
3253
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3254
If you meant to cross compile, use \`--host'.
3255
See \`config.log' for more details." >&5
3256
echo "$as_me: error: cannot run C compiled programs.
3257
If you meant to cross compile, use \`--host'.
3258
See \`config.log' for more details." >&2;}
3259
{ (exit 1); exit 1; }; }
3263
{ echo "$as_me:$LINENO: result: yes" >&5
3264
echo "${ECHO_T}yes" >&6; }
3266
rm -f a.out a.exe conftest$ac_cv_exeext b.out
3267
ac_clean_files=$ac_clean_files_save
3268
# Check that the compiler produces executables we can run. If not, either
3269
# the compiler is broken, or we cross compile.
3270
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3271
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3272
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
3273
echo "${ECHO_T}$cross_compiling" >&6; }
3275
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
3276
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3277
if { (ac_try="$ac_link"
3279
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3280
*) ac_try_echo=$ac_try;;
3282
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3283
(eval "$ac_link") 2>&5
3285
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286
(exit $ac_status); }; then
3287
# If both `conftest.exe' and `conftest' are `present' (well, observable)
3288
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3289
# work properly (i.e., refer to `conftest.exe'), while it won't with
3291
for ac_file in conftest.exe conftest conftest.*; do
3292
test -f "$ac_file" || continue
3294
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3295
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3301
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3302
See \`config.log' for more details." >&5
3303
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3304
See \`config.log' for more details." >&2;}
3305
{ (exit 1); exit 1; }; }
3308
rm -f conftest$ac_cv_exeext
3309
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3310
echo "${ECHO_T}$ac_cv_exeext" >&6; }
3312
rm -f conftest.$ac_ext
3313
EXEEXT=$ac_cv_exeext
3315
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3316
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3317
if test "${ac_cv_objext+set}" = set; then
3318
echo $ECHO_N "(cached) $ECHO_C" >&6
3320
cat >conftest.$ac_ext <<_ACEOF
3323
cat confdefs.h >>conftest.$ac_ext
3324
cat >>conftest.$ac_ext <<_ACEOF
3325
/* end confdefs.h. */
3335
rm -f conftest.o conftest.obj
3336
if { (ac_try="$ac_compile"
3338
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3339
*) ac_try_echo=$ac_try;;
3341
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3342
(eval "$ac_compile") 2>&5
3344
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345
(exit $ac_status); }; then
3346
for ac_file in conftest.o conftest.obj conftest.*; do
3347
test -f "$ac_file" || continue;
3349
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3350
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3355
echo "$as_me: failed program was:" >&5
3356
sed 's/^/| /' conftest.$ac_ext >&5
3358
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3359
See \`config.log' for more details." >&5
3360
echo "$as_me: error: cannot compute suffix of object files: cannot compile
3361
See \`config.log' for more details." >&2;}
3362
{ (exit 1); exit 1; }; }
3365
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3367
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3368
echo "${ECHO_T}$ac_cv_objext" >&6; }
3369
OBJEXT=$ac_cv_objext
3371
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3372
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3373
if test "${ac_cv_c_compiler_gnu+set}" = set; then
3374
echo $ECHO_N "(cached) $ECHO_C" >&6
3376
cat >conftest.$ac_ext <<_ACEOF
3379
cat confdefs.h >>conftest.$ac_ext
3380
cat >>conftest.$ac_ext <<_ACEOF
3381
/* end confdefs.h. */
3394
rm -f conftest.$ac_objext
3395
if { (ac_try="$ac_compile"
3397
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3398
*) ac_try_echo=$ac_try;;
3400
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3401
(eval "$ac_compile") 2>conftest.er1
3403
grep -v '^ *+' conftest.er1 >conftest.err
3405
cat conftest.err >&5
3406
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3407
(exit $ac_status); } &&
3408
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3409
{ (case "(($ac_try" in
3410
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3411
*) ac_try_echo=$ac_try;;
3413
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3414
(eval "$ac_try") 2>&5
3416
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3417
(exit $ac_status); }; } &&
3418
{ ac_try='test -s conftest.$ac_objext'
3419
{ (case "(($ac_try" in
3420
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3421
*) ac_try_echo=$ac_try;;
3423
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3424
(eval "$ac_try") 2>&5
3426
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3427
(exit $ac_status); }; }; then
3430
echo "$as_me: failed program was:" >&5
3431
sed 's/^/| /' conftest.$ac_ext >&5
3436
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3437
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3440
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3441
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3442
GCC=`test $ac_compiler_gnu = yes && echo yes`
3443
ac_test_CFLAGS=${CFLAGS+set}
3444
ac_save_CFLAGS=$CFLAGS
3445
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3446
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3447
if test "${ac_cv_prog_cc_g+set}" = set; then
3448
echo $ECHO_N "(cached) $ECHO_C" >&6
3450
ac_save_c_werror_flag=$ac_c_werror_flag
3451
ac_c_werror_flag=yes
3454
cat >conftest.$ac_ext <<_ACEOF
3457
cat confdefs.h >>conftest.$ac_ext
3458
cat >>conftest.$ac_ext <<_ACEOF
3459
/* end confdefs.h. */
3469
rm -f conftest.$ac_objext
3470
if { (ac_try="$ac_compile"
3472
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3473
*) ac_try_echo=$ac_try;;
3475
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3476
(eval "$ac_compile") 2>conftest.er1
3478
grep -v '^ *+' conftest.er1 >conftest.err
3480
cat conftest.err >&5
3481
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482
(exit $ac_status); } &&
3483
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3484
{ (case "(($ac_try" in
3485
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3486
*) ac_try_echo=$ac_try;;
3488
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3489
(eval "$ac_try") 2>&5
3491
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3492
(exit $ac_status); }; } &&
3493
{ ac_try='test -s conftest.$ac_objext'
3494
{ (case "(($ac_try" in
3495
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3496
*) ac_try_echo=$ac_try;;
3498
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3499
(eval "$ac_try") 2>&5
3501
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3502
(exit $ac_status); }; }; then
3505
echo "$as_me: failed program was:" >&5
3506
sed 's/^/| /' conftest.$ac_ext >&5
3509
cat >conftest.$ac_ext <<_ACEOF
3512
cat confdefs.h >>conftest.$ac_ext
3513
cat >>conftest.$ac_ext <<_ACEOF
3514
/* end confdefs.h. */
3524
rm -f conftest.$ac_objext
3525
if { (ac_try="$ac_compile"
3527
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3528
*) ac_try_echo=$ac_try;;
3530
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3531
(eval "$ac_compile") 2>conftest.er1
3533
grep -v '^ *+' conftest.er1 >conftest.err
3535
cat conftest.err >&5
3536
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3537
(exit $ac_status); } &&
3538
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3539
{ (case "(($ac_try" in
3540
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3541
*) ac_try_echo=$ac_try;;
3543
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3544
(eval "$ac_try") 2>&5
3546
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3547
(exit $ac_status); }; } &&
3548
{ ac_try='test -s conftest.$ac_objext'
3549
{ (case "(($ac_try" in
3550
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3551
*) ac_try_echo=$ac_try;;
3553
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3554
(eval "$ac_try") 2>&5
3556
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557
(exit $ac_status); }; }; then
3560
echo "$as_me: failed program was:" >&5
3561
sed 's/^/| /' conftest.$ac_ext >&5
3563
ac_c_werror_flag=$ac_save_c_werror_flag
3565
cat >conftest.$ac_ext <<_ACEOF
3568
cat confdefs.h >>conftest.$ac_ext
3569
cat >>conftest.$ac_ext <<_ACEOF
3570
/* end confdefs.h. */
3580
rm -f conftest.$ac_objext
3581
if { (ac_try="$ac_compile"
3583
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3584
*) ac_try_echo=$ac_try;;
3586
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3587
(eval "$ac_compile") 2>conftest.er1
3589
grep -v '^ *+' conftest.er1 >conftest.err
3591
cat conftest.err >&5
3592
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3593
(exit $ac_status); } &&
3594
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3595
{ (case "(($ac_try" in
3596
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3597
*) ac_try_echo=$ac_try;;
3599
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3600
(eval "$ac_try") 2>&5
3602
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3603
(exit $ac_status); }; } &&
3604
{ ac_try='test -s conftest.$ac_objext'
3605
{ (case "(($ac_try" in
3606
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3607
*) ac_try_echo=$ac_try;;
3609
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3610
(eval "$ac_try") 2>&5
3612
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3613
(exit $ac_status); }; }; then
3616
echo "$as_me: failed program was:" >&5
3617
sed 's/^/| /' conftest.$ac_ext >&5
3622
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3625
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3628
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3629
ac_c_werror_flag=$ac_save_c_werror_flag
3631
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3632
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3633
if test "$ac_test_CFLAGS" = set; then
3634
CFLAGS=$ac_save_CFLAGS
3635
elif test $ac_cv_prog_cc_g = yes; then
3636
if test "$GCC" = yes; then
3642
if test "$GCC" = yes; then
3648
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3649
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3650
if test "${ac_cv_prog_cc_c89+set}" = set; then
3651
echo $ECHO_N "(cached) $ECHO_C" >&6
3653
ac_cv_prog_cc_c89=no
3655
cat >conftest.$ac_ext <<_ACEOF
3658
cat confdefs.h >>conftest.$ac_ext
3659
cat >>conftest.$ac_ext <<_ACEOF
3660
/* end confdefs.h. */
3663
#include <sys/types.h>
3664
#include <sys/stat.h>
3665
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3666
struct buf { int x; };
3667
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3668
static char *e (p, i)
3674
static char *f (char * (*g) (char **, int), char **p, ...)
3679
s = g (p, va_arg (v,int));
3684
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3685
function prototypes and stuff, but not '\xHH' hex character constants.
3686
These don't provoke an error unfortunately, instead are silently treated
3687
as 'x'. The following induces an error, until -std is added to get
3688
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3689
array size at least. It's necessary to write '\x00'==0 to get something
3690
that's true only with -std. */
3691
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3693
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3694
inside strings and character constants. */
3696
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3698
int test (int i, double x);
3699
struct s1 {int (*f) (int a);};
3700
struct s2 {int (*f) (double a);};
3701
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3707
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3712
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3713
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3715
CC="$ac_save_CC $ac_arg"
3716
rm -f conftest.$ac_objext
3717
if { (ac_try="$ac_compile"
3719
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3720
*) ac_try_echo=$ac_try;;
3722
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3723
(eval "$ac_compile") 2>conftest.er1
3725
grep -v '^ *+' conftest.er1 >conftest.err
3727
cat conftest.err >&5
3728
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729
(exit $ac_status); } &&
3730
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3731
{ (case "(($ac_try" in
3732
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3733
*) ac_try_echo=$ac_try;;
3735
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3736
(eval "$ac_try") 2>&5
3738
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3739
(exit $ac_status); }; } &&
3740
{ ac_try='test -s conftest.$ac_objext'
3741
{ (case "(($ac_try" in
3742
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3743
*) ac_try_echo=$ac_try;;
3745
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3746
(eval "$ac_try") 2>&5
3748
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3749
(exit $ac_status); }; }; then
3750
ac_cv_prog_cc_c89=$ac_arg
3752
echo "$as_me: failed program was:" >&5
3753
sed 's/^/| /' conftest.$ac_ext >&5
3758
rm -f core conftest.err conftest.$ac_objext
3759
test "x$ac_cv_prog_cc_c89" != "xno" && break
3761
rm -f conftest.$ac_ext
3766
case "x$ac_cv_prog_cc_c89" in
3768
{ echo "$as_me:$LINENO: result: none needed" >&5
3769
echo "${ECHO_T}none needed" >&6; } ;;
3771
{ echo "$as_me:$LINENO: result: unsupported" >&5
3772
echo "${ECHO_T}unsupported" >&6; } ;;
3774
CC="$CC $ac_cv_prog_cc_c89"
3775
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3776
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3781
ac_cpp='$CPP $CPPFLAGS'
3782
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3783
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3784
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3785
DEPDIR="${am__leading_dot}deps"
3787
ac_config_commands="$ac_config_commands depfiles"
3790
am_make=${MAKE-make}
3791
cat > confinc << 'END'
3796
# If we don't find an include directive, just comment out the code.
3797
{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3798
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3802
# First try GNU make style include.
3803
echo "include confinc" > confmf
3804
# We grep out `Entering directory' and `Leaving directory'
3805
# messages which can occur if `w' ends up in MAKEFLAGS.
3806
# In particular we don't look at `^make:' because GNU make might
3807
# be invoked under some other name (usually "gmake"), in which
3808
# case it prints its new name instead of `make'.
3809
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3814
# Now try BSD make style include.
3815
if test "$am__include" = "#"; then
3816
echo '.include "confinc"' > confmf
3817
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3818
am__include=.include
3825
{ echo "$as_me:$LINENO: result: $_am_result" >&5
3826
echo "${ECHO_T}$_am_result" >&6; }
3827
rm -f confinc confmf
3829
# Check whether --enable-dependency-tracking was given.
3830
if test "${enable_dependency_tracking+set}" = set; then
3831
enableval=$enable_dependency_tracking;
3834
if test "x$enable_dependency_tracking" != xno; then
3835
am_depcomp="$ac_aux_dir/depcomp"
3840
if test "x$enable_dependency_tracking" != xno; then
3851
depcc="$CC" am_compiler_list=
3853
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3854
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3855
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3856
echo $ECHO_N "(cached) $ECHO_C" >&6
3858
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3859
# We make a subdir and do the tests there. Otherwise we can end up
3860
# making bogus files that we don't know about and never remove. For
3861
# instance it was reported that on HP-UX the gcc test will end up
3862
# making a dummy file named `D' -- because `-MD' means `put the output
3865
# Copy depcomp to subdir because otherwise we won't find it if we're
3866
# using a relative directory.
3867
cp "$am_depcomp" conftest.dir
3869
# We will build objects and dependencies in a subdirectory because
3870
# it helps to detect inapplicable dependency modes. For instance
3871
# both Tru64's cc and ICC support -MD to output dependencies as a
3872
# side effect of compilation, but ICC will put the dependencies in
3873
# the current directory while Tru64 will put them in the object
3877
am_cv_CC_dependencies_compiler_type=none
3878
if test "$am_compiler_list" = ""; then
3879
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3881
for depmode in $am_compiler_list; do
3882
# Setup a source with many dependencies, because some compilers
3883
# like to wrap large dependency lists on column 80 (with \), and
3884
# we should not choose a depcomp mode which is confused by this.
3886
# We need to recreate these files for each test, as the compiler may
3887
# overwrite some of them when testing with obscure command lines.
3888
# This happens at least with the AIX C compiler.
3890
for i in 1 2 3 4 5 6; do
3891
echo '#include "conftst'$i'.h"' >> sub/conftest.c
3892
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3893
# Solaris 8's {/usr,}/bin/sh.
3894
touch sub/conftst$i.h
3896
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3900
# after this tag, mechanisms are not by side-effect, so they'll
3901
# only be used when explicitly requested
3902
if test "x$enable_dependency_tracking" = xyes; then
3910
# We check with `-c' and `-o' for the sake of the "dashmstdout"
3911
# mode. It turns out that the SunPro C++ compiler does not properly
3912
# handle `-M -o', and we need to detect this.
3913
if depmode=$depmode \
3914
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3915
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3916
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3917
>/dev/null 2>conftest.err &&
3918
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3919
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3920
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3921
# icc doesn't choke on unknown options, it will just issue warnings
3922
# or remarks (even with -Werror). So we grep stderr for any message
3923
# that says an option was ignored or not supported.
3924
# When given -MP, icc 7.0 and 7.1 complain thusly:
3925
# icc: Command line warning: ignoring option '-M'; no argument required
3926
# The diagnosis changed in icc 8.0:
3927
# icc: Command line remark: option '-MP' not supported
3928
if (grep 'ignoring option' conftest.err ||
3929
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3930
am_cv_CC_dependencies_compiler_type=$depmode
3939
am_cv_CC_dependencies_compiler_type=none
3943
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3944
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3945
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3950
test "x$enable_dependency_tracking" != xno \
3951
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3953
am__fastdepCC_FALSE='#'
3955
am__fastdepCC_TRUE='#'
3956
am__fastdepCC_FALSE=
3960
# Check whether --enable-shared was given.
3961
if test "${enable_shared+set}" = set; then
3962
enableval=$enable_shared; p=${PACKAGE-default}
3964
yes) enable_shared=yes ;;
3965
no) enable_shared=no ;;
3968
# Look at the argument we got. We use all the common list separators.
3969
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3970
for pkg in $enableval; do
3972
if test "X$pkg" = "X$p"; then
3984
# Check whether --enable-static was given.
3985
if test "${enable_static+set}" = set; then
3986
enableval=$enable_static; p=${PACKAGE-default}
3988
yes) enable_static=yes ;;
3989
no) enable_static=no ;;
3992
# Look at the argument we got. We use all the common list separators.
3993
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3994
for pkg in $enableval; do
3996
if test "X$pkg" = "X$p"; then
4008
# Check whether --enable-fast-install was given.
4009
if test "${enable_fast_install+set}" = set; then
4010
enableval=$enable_fast_install; p=${PACKAGE-default}
4012
yes) enable_fast_install=yes ;;
4013
no) enable_fast_install=no ;;
4015
enable_fast_install=no
4016
# Look at the argument we got. We use all the common list separators.
4017
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4018
for pkg in $enableval; do
4020
if test "X$pkg" = "X$p"; then
4021
enable_fast_install=yes
4028
enable_fast_install=yes
4032
{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4033
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4034
if test "${lt_cv_path_SED+set}" = set; then
4035
echo $ECHO_N "(cached) $ECHO_C" >&6
4037
# Loop through the user's path and test for sed and gsed.
4038
# Then use that list of sed's as ones to test for truncation.
4039
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4043
test -z "$as_dir" && as_dir=.
4044
for lt_ac_prog in sed gsed; do
4045
for ac_exec_ext in '' $ac_executable_extensions; do
4046
if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4047
lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4054
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4055
# along with /bin/sed that truncates output.
4056
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4057
test ! -f $lt_ac_sed && continue
4058
cat /dev/null > conftest.in
4060
echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4061
# Check for GNU sed and select it if it is found.
4062
if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4063
lt_cv_path_SED=$lt_ac_sed
4067
cat conftest.in conftest.in >conftest.tmp
4068
mv conftest.tmp conftest.in
4069
cp conftest.in conftest.nl
4071
$lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4072
cmp -s conftest.out conftest.nl || break
4073
# 10000 chars as input seems more than enough
4074
test $lt_ac_count -gt 10 && break
4075
lt_ac_count=`expr $lt_ac_count + 1`
4076
if test $lt_ac_count -gt $lt_ac_max; then
4077
lt_ac_max=$lt_ac_count
4078
lt_cv_path_SED=$lt_ac_sed
4086
{ echo "$as_me:$LINENO: result: $SED" >&5
4087
echo "${ECHO_T}$SED" >&6; }
4089
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4090
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4091
if test "${ac_cv_path_GREP+set}" = set; then
4092
echo $ECHO_N "(cached) $ECHO_C" >&6
4094
# Extract the first word of "grep ggrep" to use in msg output
4095
if test -z "$GREP"; then
4096
set dummy grep ggrep; ac_prog_name=$2
4097
if test "${ac_cv_path_GREP+set}" = set; then
4098
echo $ECHO_N "(cached) $ECHO_C" >&6
4100
ac_path_GREP_found=false
4101
# Loop through the user's path and test for each of PROGNAME-LIST
4102
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4103
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4106
test -z "$as_dir" && as_dir=.
4107
for ac_prog in grep ggrep; do
4108
for ac_exec_ext in '' $ac_executable_extensions; do
4109
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4110
{ test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
4111
# Check for GNU ac_path_GREP and select it if it is found.
4112
# Check for GNU $ac_path_GREP
4113
case `"$ac_path_GREP" --version 2>&1` in
4115
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4118
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4121
cat "conftest.in" "conftest.in" >"conftest.tmp"
4122
mv "conftest.tmp" "conftest.in"
4123
cp "conftest.in" "conftest.nl"
4124
echo 'GREP' >> "conftest.nl"
4125
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4126
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4127
ac_count=`expr $ac_count + 1`
4128
if test $ac_count -gt ${ac_path_GREP_max-0}; then
4129
# Best one so far, save it but keep looking for a better one
4130
ac_cv_path_GREP="$ac_path_GREP"
4131
ac_path_GREP_max=$ac_count
4133
# 10*(2^10) chars as input seems more than enough
4134
test $ac_count -gt 10 && break
4136
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4140
$ac_path_GREP_found && break 3
4150
GREP="$ac_cv_path_GREP"
4151
if test -z "$GREP"; then
4152
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4153
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4154
{ (exit 1); exit 1; }; }
4158
ac_cv_path_GREP=$GREP
4163
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4164
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4165
GREP="$ac_cv_path_GREP"
4168
{ echo "$as_me:$LINENO: checking for egrep" >&5
4169
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4170
if test "${ac_cv_path_EGREP+set}" = set; then
4171
echo $ECHO_N "(cached) $ECHO_C" >&6
4173
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4174
then ac_cv_path_EGREP="$GREP -E"
4176
# Extract the first word of "egrep" to use in msg output
4177
if test -z "$EGREP"; then
4178
set dummy egrep; ac_prog_name=$2
4179
if test "${ac_cv_path_EGREP+set}" = set; then
4180
echo $ECHO_N "(cached) $ECHO_C" >&6
4182
ac_path_EGREP_found=false
4183
# Loop through the user's path and test for each of PROGNAME-LIST
4184
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4185
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4188
test -z "$as_dir" && as_dir=.
4189
for ac_prog in egrep; do
4190
for ac_exec_ext in '' $ac_executable_extensions; do
4191
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4192
{ test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4193
# Check for GNU ac_path_EGREP and select it if it is found.
4194
# Check for GNU $ac_path_EGREP
4195
case `"$ac_path_EGREP" --version 2>&1` in
4197
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4200
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4203
cat "conftest.in" "conftest.in" >"conftest.tmp"
4204
mv "conftest.tmp" "conftest.in"
4205
cp "conftest.in" "conftest.nl"
4206
echo 'EGREP' >> "conftest.nl"
4207
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4208
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4209
ac_count=`expr $ac_count + 1`
4210
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4211
# Best one so far, save it but keep looking for a better one
4212
ac_cv_path_EGREP="$ac_path_EGREP"
4213
ac_path_EGREP_max=$ac_count
4215
# 10*(2^10) chars as input seems more than enough
4216
test $ac_count -gt 10 && break
4218
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4222
$ac_path_EGREP_found && break 3
4232
EGREP="$ac_cv_path_EGREP"
4233
if test -z "$EGREP"; then
4234
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4235
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4236
{ (exit 1); exit 1; }; }
4240
ac_cv_path_EGREP=$EGREP
4246
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4247
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4248
EGREP="$ac_cv_path_EGREP"
4252
# Check whether --with-gnu-ld was given.
4253
if test "${with_gnu_ld+set}" = set; then
4254
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4260
if test "$GCC" = yes; then
4261
# Check if gcc -print-prog-name=ld gives a path.
4262
{ echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4263
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4266
# gcc leaves a trailing carriage return which upsets mingw
4267
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4269
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4272
# Accept absolute paths.
4274
re_direlt='/[^/][^/]*/\.\./'
4275
# Canonicalize the pathname of ld
4276
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4277
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4278
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4280
test -z "$LD" && LD="$ac_prog"
4283
# If it fails, then pretend we aren't using GCC.
4287
# If it is relative, then search for the first ld in PATH.
4291
elif test "$with_gnu_ld" = yes; then
4292
{ echo "$as_me:$LINENO: checking for GNU ld" >&5
4293
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4295
{ echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4296
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4298
if test "${lt_cv_path_LD+set}" = set; then
4299
echo $ECHO_N "(cached) $ECHO_C" >&6
4301
if test -z "$LD"; then
4302
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4303
for ac_dir in $PATH; do
4305
test -z "$ac_dir" && ac_dir=.
4306
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4307
lt_cv_path_LD="$ac_dir/$ac_prog"
4308
# Check to see if the program is GNU ld. I'd rather use --version,
4309
# but apparently some variants of GNU ld only accept -v.
4310
# Break only if it was the GNU/non-GNU ld that we prefer.
4311
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4312
*GNU* | *'with BFD'*)
4313
test "$with_gnu_ld" != no && break
4316
test "$with_gnu_ld" != yes && break
4323
lt_cv_path_LD="$LD" # Let the user override the test with a path.
4328
if test -n "$LD"; then
4329
{ echo "$as_me:$LINENO: result: $LD" >&5
4330
echo "${ECHO_T}$LD" >&6; }
4332
{ echo "$as_me:$LINENO: result: no" >&5
4333
echo "${ECHO_T}no" >&6; }
4335
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4336
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4337
{ (exit 1); exit 1; }; }
4338
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4339
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4340
if test "${lt_cv_prog_gnu_ld+set}" = set; then
4341
echo $ECHO_N "(cached) $ECHO_C" >&6
4343
# I'd rather use --version here, but apparently some GNU lds only accept -v.
4344
case `$LD -v 2>&1 </dev/null` in
4345
*GNU* | *'with BFD'*)
4346
lt_cv_prog_gnu_ld=yes
4349
lt_cv_prog_gnu_ld=no
4353
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4354
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4355
with_gnu_ld=$lt_cv_prog_gnu_ld
4358
{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4359
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4360
if test "${lt_cv_ld_reload_flag+set}" = set; then
4361
echo $ECHO_N "(cached) $ECHO_C" >&6
4363
lt_cv_ld_reload_flag='-r'
4365
{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4366
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4367
reload_flag=$lt_cv_ld_reload_flag
4368
case $reload_flag in
4370
*) reload_flag=" $reload_flag" ;;
4372
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4375
if test "$GCC" = yes; then
4376
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4378
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4383
{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4384
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4385
if test "${lt_cv_path_NM+set}" = set; then
4386
echo $ECHO_N "(cached) $ECHO_C" >&6
4388
if test -n "$NM"; then
4389
# Let the user override the test.
4392
lt_nm_to_check="${ac_tool_prefix}nm"
4393
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4394
lt_nm_to_check="$lt_nm_to_check nm"
4396
for lt_tmp_nm in $lt_nm_to_check; do
4397
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4398
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4400
test -z "$ac_dir" && ac_dir=.
4401
tmp_nm="$ac_dir/$lt_tmp_nm"
4402
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4403
# Check to see if the nm accepts a BSD-compat flag.
4404
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4405
# nm: unknown option "B" ignored
4406
# Tru64's nm complains that /dev/null is an invalid object file
4407
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4408
*/dev/null* | *'Invalid file or object type'*)
4409
lt_cv_path_NM="$tmp_nm -B"
4413
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4415
lt_cv_path_NM="$tmp_nm -p"
4419
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4420
continue # so that we can try to find one that supports BSD flags
4429
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4432
{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4433
echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4436
{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
4437
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4439
if test "$LN_S" = "ln -s"; then
4440
{ echo "$as_me:$LINENO: result: yes" >&5
4441
echo "${ECHO_T}yes" >&6; }
4443
{ echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4444
echo "${ECHO_T}no, using $LN_S" >&6; }
4447
{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4448
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4449
if test "${lt_cv_deplibs_check_method+set}" = set; then
4450
echo $ECHO_N "(cached) $ECHO_C" >&6
4452
lt_cv_file_magic_cmd='$MAGIC_CMD'
4453
lt_cv_file_magic_test_file=
4454
lt_cv_deplibs_check_method='unknown'
4455
# Need to set the preceding variable on all platforms that support
4456
# interlibrary dependencies.
4457
# 'none' -- dependencies not supported.
4458
# `unknown' -- same as none, but documents that we really don't know.
4459
# 'pass_all' -- all dependencies passed with no checks.
4460
# 'test_compile' -- check by making test program.
4461
# 'file_magic [[regex]]' -- check by looking for files in library path
4462
# which responds to the $file_magic_cmd with a given extended regex.
4463
# If you have `file' or equivalent on your system and you're not sure
4464
# whether `pass_all' will *always* work, you probably want this one.
4468
lt_cv_deplibs_check_method=pass_all
4472
lt_cv_deplibs_check_method=pass_all
4476
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4477
lt_cv_file_magic_cmd='/usr/bin/file -L'
4478
lt_cv_file_magic_test_file=/shlib/libc.so
4482
# func_win32_libid is a shell function defined in ltmain.sh
4483
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4484
lt_cv_file_magic_cmd='func_win32_libid'
4488
# Base MSYS/MinGW do not provide the 'file' command needed by
4489
# func_win32_libid shell function, so use a weaker test based on 'objdump'.
4490
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4491
lt_cv_file_magic_cmd='$OBJDUMP -f'
4494
darwin* | rhapsody*)
4495
lt_cv_deplibs_check_method=pass_all
4498
freebsd* | dragonfly*)
4499
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4502
# Not sure whether the presence of OpenBSD here was a mistake.
4503
# Let's accept both of them until this is cleared up.
4504
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4505
lt_cv_file_magic_cmd=/usr/bin/file
4506
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4510
lt_cv_deplibs_check_method=pass_all
4515
lt_cv_deplibs_check_method=pass_all
4518
hpux10.20* | hpux11*)
4519
lt_cv_file_magic_cmd=/usr/bin/file
4522
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4523
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4526
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]'
4527
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4530
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4531
lt_cv_file_magic_test_file=/usr/lib/libc.sl
4537
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4538
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4541
irix5* | irix6* | nonstopux*)
4543
*-32|*"-32 ") libmagic=32-bit;;
4544
*-n32|*"-n32 ") libmagic=N32;;
4545
*-64|*"-64 ") libmagic=64-bit;;
4546
*) libmagic=never-match;;
4548
lt_cv_deplibs_check_method=pass_all
4551
# This must be Linux ELF.
4552
linux* | k*bsd*-gnu)
4553
lt_cv_deplibs_check_method=pass_all
4556
netbsd* | netbsdelf*-gnu)
4557
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4558
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4560
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4565
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4566
lt_cv_file_magic_cmd=/usr/bin/file
4567
lt_cv_file_magic_test_file=/usr/lib/libnls.so
4571
lt_cv_deplibs_check_method=unknown
4575
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4576
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4578
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4582
osf3* | osf4* | osf5*)
4583
lt_cv_deplibs_check_method=pass_all
4587
lt_cv_deplibs_check_method=pass_all
4591
case $host_vendor in
4593
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]'
4594
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4597
lt_cv_deplibs_check_method=pass_all
4600
lt_cv_file_magic_cmd='/bin/file'
4601
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4604
lt_cv_file_magic_cmd='/bin/file'
4605
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4606
lt_cv_file_magic_test_file=/lib/libc.so
4609
lt_cv_deplibs_check_method=pass_all
4612
lt_cv_deplibs_check_method=pass_all
4617
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4618
lt_cv_deplibs_check_method=pass_all
4623
{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4624
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4625
file_magic_cmd=$lt_cv_file_magic_cmd
4626
deplibs_check_method=$lt_cv_deplibs_check_method
4627
test -z "$deplibs_check_method" && deplibs_check_method=unknown
4632
# If no C compiler was specified, use CC.
4635
# If no C compiler flags were specified, use CFLAGS.
4636
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4638
# Allow CC to be a program name with arguments.
4642
# Check whether --enable-libtool-lock was given.
4643
if test "${enable_libtool_lock+set}" = set; then
4644
enableval=$enable_libtool_lock;
4647
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4649
# Some flags need to be propagated to the compiler or linker for good
4653
# Find out which ABI we are using.
4654
echo 'int i;' > conftest.$ac_ext
4655
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4656
(eval $ac_compile) 2>&5
4658
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4659
(exit $ac_status); }; then
4660
case `/usr/bin/file conftest.$ac_objext` in
4672
# Find out which ABI we are using.
4673
echo '#line 4673 "configure"' > conftest.$ac_ext
4674
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4675
(eval $ac_compile) 2>&5
4677
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4678
(exit $ac_status); }; then
4679
if test "$lt_cv_prog_gnu_ld" = yes; then
4680
case `/usr/bin/file conftest.$ac_objext` in
4682
LD="${LD-ld} -melf32bsmip"
4685
LD="${LD-ld} -melf32bmipn32"
4688
LD="${LD-ld} -melf64bmip"
4692
case `/usr/bin/file conftest.$ac_objext` in
4708
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4709
# Find out which ABI we are using.
4710
echo 'int i;' > conftest.$ac_ext
4711
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4712
(eval $ac_compile) 2>&5
4714
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4715
(exit $ac_status); }; then
4716
case `/usr/bin/file conftest.o` in
4720
LD="${LD-ld} -m elf_i386"
4722
ppc64-*linux*|powerpc64-*linux*)
4723
LD="${LD-ld} -m elf32ppclinux"
4726
LD="${LD-ld} -m elf_s390"
4729
LD="${LD-ld} -m elf32_sparc"
4736
LD="${LD-ld} -m elf_x86_64"
4738
ppc*-*linux*|powerpc*-*linux*)
4739
LD="${LD-ld} -m elf64ppc"
4742
LD="${LD-ld} -m elf64_s390"
4745
LD="${LD-ld} -m elf64_sparc"
4755
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
4756
SAVE_CFLAGS="$CFLAGS"
4757
CFLAGS="$CFLAGS -belf"
4758
{ echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4759
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4760
if test "${lt_cv_cc_needs_belf+set}" = set; then
4761
echo $ECHO_N "(cached) $ECHO_C" >&6
4764
ac_cpp='$CPP $CPPFLAGS'
4765
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4766
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4767
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4769
cat >conftest.$ac_ext <<_ACEOF
4772
cat confdefs.h >>conftest.$ac_ext
4773
cat >>conftest.$ac_ext <<_ACEOF
4774
/* end confdefs.h. */
4784
rm -f conftest.$ac_objext conftest$ac_exeext
4785
if { (ac_try="$ac_link"
4787
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4788
*) ac_try_echo=$ac_try;;
4790
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4791
(eval "$ac_link") 2>conftest.er1
4793
grep -v '^ *+' conftest.er1 >conftest.err
4795
cat conftest.err >&5
4796
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4797
(exit $ac_status); } &&
4798
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4799
{ (case "(($ac_try" in
4800
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4801
*) ac_try_echo=$ac_try;;
4803
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4804
(eval "$ac_try") 2>&5
4806
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807
(exit $ac_status); }; } &&
4808
{ ac_try='test -s conftest$ac_exeext'
4809
{ (case "(($ac_try" in
4810
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4811
*) ac_try_echo=$ac_try;;
4813
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4814
(eval "$ac_try") 2>&5
4816
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817
(exit $ac_status); }; }; then
4818
lt_cv_cc_needs_belf=yes
4820
echo "$as_me: failed program was:" >&5
4821
sed 's/^/| /' conftest.$ac_ext >&5
4823
lt_cv_cc_needs_belf=no
4826
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4827
conftest$ac_exeext conftest.$ac_ext
4829
ac_cpp='$CPP $CPPFLAGS'
4830
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4831
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4832
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4835
{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4836
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4837
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4838
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4839
CFLAGS="$SAVE_CFLAGS"
4843
# Find out which ABI we are using.
4844
echo 'int i;' > conftest.$ac_ext
4845
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4846
(eval $ac_compile) 2>&5
4848
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849
(exit $ac_status); }; then
4850
case `/usr/bin/file conftest.o` in
4852
case $lt_cv_prog_gnu_ld in
4853
yes*) LD="${LD-ld} -m elf64_sparc" ;;
4854
*) LD="${LD-ld} -64" ;;
4865
need_locks="$enable_libtool_lock"
4869
ac_cpp='$CPP $CPPFLAGS'
4870
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4871
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4872
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4873
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4874
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4875
# On Suns, sometimes $CPP names a directory.
4876
if test -n "$CPP" && test -d "$CPP"; then
4879
if test -z "$CPP"; then
4880
if test "${ac_cv_prog_CPP+set}" = set; then
4881
echo $ECHO_N "(cached) $ECHO_C" >&6
4883
# Double quotes because CPP needs to be expanded
4884
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4887
for ac_c_preproc_warn_flag in '' yes
4889
# Use a header file that comes with gcc, so configuring glibc
4890
# with a fresh cross-compiler works.
4891
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4892
# <limits.h> exists even on freestanding compilers.
4893
# On the NeXT, cc -E runs the code through the compiler's parser,
4894
# not just through cpp. "Syntax error" is here to catch this case.
4895
cat >conftest.$ac_ext <<_ACEOF
4898
cat confdefs.h >>conftest.$ac_ext
4899
cat >>conftest.$ac_ext <<_ACEOF
4900
/* end confdefs.h. */
4902
# include <limits.h>
4904
# include <assert.h>
4908
if { (ac_try="$ac_cpp conftest.$ac_ext"
4910
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4911
*) ac_try_echo=$ac_try;;
4913
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4914
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4916
grep -v '^ *+' conftest.er1 >conftest.err
4918
cat conftest.err >&5
4919
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4920
(exit $ac_status); } >/dev/null; then
4921
if test -s conftest.err; then
4922
ac_cpp_err=$ac_c_preproc_warn_flag
4923
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4930
if test -z "$ac_cpp_err"; then
4933
echo "$as_me: failed program was:" >&5
4934
sed 's/^/| /' conftest.$ac_ext >&5
4936
# Broken: fails on valid input.
4940
rm -f conftest.err conftest.$ac_ext
4942
# OK, works on sane cases. Now check whether nonexistent headers
4943
# can be detected and how.
4944
cat >conftest.$ac_ext <<_ACEOF
4947
cat confdefs.h >>conftest.$ac_ext
4948
cat >>conftest.$ac_ext <<_ACEOF
4949
/* end confdefs.h. */
4950
#include <ac_nonexistent.h>
4952
if { (ac_try="$ac_cpp conftest.$ac_ext"
4954
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4955
*) ac_try_echo=$ac_try;;
4957
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4958
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4960
grep -v '^ *+' conftest.er1 >conftest.err
4962
cat conftest.err >&5
4963
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964
(exit $ac_status); } >/dev/null; then
4965
if test -s conftest.err; then
4966
ac_cpp_err=$ac_c_preproc_warn_flag
4967
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4974
if test -z "$ac_cpp_err"; then
4975
# Broken: success on invalid input.
4978
echo "$as_me: failed program was:" >&5
4979
sed 's/^/| /' conftest.$ac_ext >&5
4981
# Passes both tests.
4986
rm -f conftest.err conftest.$ac_ext
4989
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4990
rm -f conftest.err conftest.$ac_ext
4991
if $ac_preproc_ok; then
5003
{ echo "$as_me:$LINENO: result: $CPP" >&5
5004
echo "${ECHO_T}$CPP" >&6; }
5006
for ac_c_preproc_warn_flag in '' yes
5008
# Use a header file that comes with gcc, so configuring glibc
5009
# with a fresh cross-compiler works.
5010
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5011
# <limits.h> exists even on freestanding compilers.
5012
# On the NeXT, cc -E runs the code through the compiler's parser,
5013
# not just through cpp. "Syntax error" is here to catch this case.
5014
cat >conftest.$ac_ext <<_ACEOF
5017
cat confdefs.h >>conftest.$ac_ext
5018
cat >>conftest.$ac_ext <<_ACEOF
5019
/* end confdefs.h. */
5021
# include <limits.h>
5023
# include <assert.h>
5027
if { (ac_try="$ac_cpp conftest.$ac_ext"
5029
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5030
*) ac_try_echo=$ac_try;;
5032
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5033
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5035
grep -v '^ *+' conftest.er1 >conftest.err
5037
cat conftest.err >&5
5038
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5039
(exit $ac_status); } >/dev/null; then
5040
if test -s conftest.err; then
5041
ac_cpp_err=$ac_c_preproc_warn_flag
5042
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5049
if test -z "$ac_cpp_err"; then
5052
echo "$as_me: failed program was:" >&5
5053
sed 's/^/| /' conftest.$ac_ext >&5
5055
# Broken: fails on valid input.
5059
rm -f conftest.err conftest.$ac_ext
5061
# OK, works on sane cases. Now check whether nonexistent headers
5062
# can be detected and how.
5063
cat >conftest.$ac_ext <<_ACEOF
5066
cat confdefs.h >>conftest.$ac_ext
5067
cat >>conftest.$ac_ext <<_ACEOF
5068
/* end confdefs.h. */
5069
#include <ac_nonexistent.h>
5071
if { (ac_try="$ac_cpp conftest.$ac_ext"
5073
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5074
*) ac_try_echo=$ac_try;;
5076
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5077
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5079
grep -v '^ *+' conftest.er1 >conftest.err
5081
cat conftest.err >&5
5082
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5083
(exit $ac_status); } >/dev/null; then
5084
if test -s conftest.err; then
5085
ac_cpp_err=$ac_c_preproc_warn_flag
5086
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5093
if test -z "$ac_cpp_err"; then
5094
# Broken: success on invalid input.
5097
echo "$as_me: failed program was:" >&5
5098
sed 's/^/| /' conftest.$ac_ext >&5
5100
# Passes both tests.
5105
rm -f conftest.err conftest.$ac_ext
5108
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5109
rm -f conftest.err conftest.$ac_ext
5110
if $ac_preproc_ok; then
5113
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5114
See \`config.log' for more details." >&5
5115
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5116
See \`config.log' for more details." >&2;}
5117
{ (exit 1); exit 1; }; }
5121
ac_cpp='$CPP $CPPFLAGS'
5122
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5123
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5124
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5127
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5128
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5129
if test "${ac_cv_header_stdc+set}" = set; then
5130
echo $ECHO_N "(cached) $ECHO_C" >&6
5132
cat >conftest.$ac_ext <<_ACEOF
5135
cat confdefs.h >>conftest.$ac_ext
5136
cat >>conftest.$ac_ext <<_ACEOF
5137
/* end confdefs.h. */
5151
rm -f conftest.$ac_objext
5152
if { (ac_try="$ac_compile"
5154
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5155
*) ac_try_echo=$ac_try;;
5157
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5158
(eval "$ac_compile") 2>conftest.er1
5160
grep -v '^ *+' conftest.er1 >conftest.err
5162
cat conftest.err >&5
5163
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5164
(exit $ac_status); } &&
5165
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5166
{ (case "(($ac_try" in
5167
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5168
*) ac_try_echo=$ac_try;;
5170
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5171
(eval "$ac_try") 2>&5
5173
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5174
(exit $ac_status); }; } &&
5175
{ ac_try='test -s conftest.$ac_objext'
5176
{ (case "(($ac_try" in
5177
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5178
*) ac_try_echo=$ac_try;;
5180
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5181
(eval "$ac_try") 2>&5
5183
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5184
(exit $ac_status); }; }; then
5185
ac_cv_header_stdc=yes
5187
echo "$as_me: failed program was:" >&5
5188
sed 's/^/| /' conftest.$ac_ext >&5
5190
ac_cv_header_stdc=no
5193
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5195
if test $ac_cv_header_stdc = yes; then
5196
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5197
cat >conftest.$ac_ext <<_ACEOF
5200
cat confdefs.h >>conftest.$ac_ext
5201
cat >>conftest.$ac_ext <<_ACEOF
5202
/* end confdefs.h. */
5206
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5207
$EGREP "memchr" >/dev/null 2>&1; then
5210
ac_cv_header_stdc=no
5216
if test $ac_cv_header_stdc = yes; then
5217
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5218
cat >conftest.$ac_ext <<_ACEOF
5221
cat confdefs.h >>conftest.$ac_ext
5222
cat >>conftest.$ac_ext <<_ACEOF
5223
/* end confdefs.h. */
5227
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5228
$EGREP "free" >/dev/null 2>&1; then
5231
ac_cv_header_stdc=no
5237
if test $ac_cv_header_stdc = yes; then
5238
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5239
if test "$cross_compiling" = yes; then
5242
cat >conftest.$ac_ext <<_ACEOF
5245
cat confdefs.h >>conftest.$ac_ext
5246
cat >>conftest.$ac_ext <<_ACEOF
5247
/* end confdefs.h. */
5250
#if ((' ' & 0x0FF) == 0x020)
5251
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5252
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5254
# define ISLOWER(c) \
5255
(('a' <= (c) && (c) <= 'i') \
5256
|| ('j' <= (c) && (c) <= 'r') \
5257
|| ('s' <= (c) && (c) <= 'z'))
5258
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5261
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5266
for (i = 0; i < 256; i++)
5267
if (XOR (islower (i), ISLOWER (i))
5268
|| toupper (i) != TOUPPER (i))
5273
rm -f conftest$ac_exeext
5274
if { (ac_try="$ac_link"
5276
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5277
*) ac_try_echo=$ac_try;;
5279
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5280
(eval "$ac_link") 2>&5
5282
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5283
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5284
{ (case "(($ac_try" in
5285
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5286
*) ac_try_echo=$ac_try;;
5288
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5289
(eval "$ac_try") 2>&5
5291
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292
(exit $ac_status); }; }; then
5295
echo "$as_me: program exited with status $ac_status" >&5
5296
echo "$as_me: failed program was:" >&5
5297
sed 's/^/| /' conftest.$ac_ext >&5
5300
ac_cv_header_stdc=no
5302
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5308
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5309
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5310
if test $ac_cv_header_stdc = yes; then
5312
cat >>confdefs.h <<\_ACEOF
5313
#define STDC_HEADERS 1
5318
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5328
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5329
inttypes.h stdint.h unistd.h
5331
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5332
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5333
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5334
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5335
echo $ECHO_N "(cached) $ECHO_C" >&6
5337
cat >conftest.$ac_ext <<_ACEOF
5340
cat confdefs.h >>conftest.$ac_ext
5341
cat >>conftest.$ac_ext <<_ACEOF
5342
/* end confdefs.h. */
5343
$ac_includes_default
5345
#include <$ac_header>
5347
rm -f conftest.$ac_objext
5348
if { (ac_try="$ac_compile"
5350
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5351
*) ac_try_echo=$ac_try;;
5353
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5354
(eval "$ac_compile") 2>conftest.er1
5356
grep -v '^ *+' conftest.er1 >conftest.err
5358
cat conftest.err >&5
5359
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5360
(exit $ac_status); } &&
5361
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5362
{ (case "(($ac_try" in
5363
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5364
*) ac_try_echo=$ac_try;;
5366
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5367
(eval "$ac_try") 2>&5
5369
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370
(exit $ac_status); }; } &&
5371
{ ac_try='test -s conftest.$ac_objext'
5372
{ (case "(($ac_try" in
5373
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5374
*) ac_try_echo=$ac_try;;
5376
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5377
(eval "$ac_try") 2>&5
5379
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5380
(exit $ac_status); }; }; then
5381
eval "$as_ac_Header=yes"
5383
echo "$as_me: failed program was:" >&5
5384
sed 's/^/| /' conftest.$ac_ext >&5
5386
eval "$as_ac_Header=no"
5389
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5391
ac_res=`eval echo '${'$as_ac_Header'}'`
5392
{ echo "$as_me:$LINENO: result: $ac_res" >&5
5393
echo "${ECHO_T}$ac_res" >&6; }
5394
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5395
cat >>confdefs.h <<_ACEOF
5396
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5405
for ac_header in dlfcn.h
5407
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5408
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5409
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5410
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5411
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5412
echo $ECHO_N "(cached) $ECHO_C" >&6
5414
ac_res=`eval echo '${'$as_ac_Header'}'`
5415
{ echo "$as_me:$LINENO: result: $ac_res" >&5
5416
echo "${ECHO_T}$ac_res" >&6; }
5418
# Is the header compilable?
5419
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5420
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5421
cat >conftest.$ac_ext <<_ACEOF
5424
cat confdefs.h >>conftest.$ac_ext
5425
cat >>conftest.$ac_ext <<_ACEOF
5426
/* end confdefs.h. */
5427
$ac_includes_default
5428
#include <$ac_header>
5430
rm -f conftest.$ac_objext
5431
if { (ac_try="$ac_compile"
5433
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5434
*) ac_try_echo=$ac_try;;
5436
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5437
(eval "$ac_compile") 2>conftest.er1
5439
grep -v '^ *+' conftest.er1 >conftest.err
5441
cat conftest.err >&5
5442
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443
(exit $ac_status); } &&
5444
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5445
{ (case "(($ac_try" in
5446
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5447
*) ac_try_echo=$ac_try;;
5449
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5450
(eval "$ac_try") 2>&5
5452
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5453
(exit $ac_status); }; } &&
5454
{ ac_try='test -s conftest.$ac_objext'
5455
{ (case "(($ac_try" in
5456
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5457
*) ac_try_echo=$ac_try;;
5459
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5460
(eval "$ac_try") 2>&5
5462
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5463
(exit $ac_status); }; }; then
5464
ac_header_compiler=yes
5466
echo "$as_me: failed program was:" >&5
5467
sed 's/^/| /' conftest.$ac_ext >&5
5469
ac_header_compiler=no
5472
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5473
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5474
echo "${ECHO_T}$ac_header_compiler" >&6; }
5476
# Is the header present?
5477
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5478
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5479
cat >conftest.$ac_ext <<_ACEOF
5482
cat confdefs.h >>conftest.$ac_ext
5483
cat >>conftest.$ac_ext <<_ACEOF
5484
/* end confdefs.h. */
5485
#include <$ac_header>
5487
if { (ac_try="$ac_cpp conftest.$ac_ext"
5489
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5490
*) ac_try_echo=$ac_try;;
5492
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5493
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5495
grep -v '^ *+' conftest.er1 >conftest.err
5497
cat conftest.err >&5
5498
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5499
(exit $ac_status); } >/dev/null; then
5500
if test -s conftest.err; then
5501
ac_cpp_err=$ac_c_preproc_warn_flag
5502
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5509
if test -z "$ac_cpp_err"; then
5510
ac_header_preproc=yes
5512
echo "$as_me: failed program was:" >&5
5513
sed 's/^/| /' conftest.$ac_ext >&5
5515
ac_header_preproc=no
5518
rm -f conftest.err conftest.$ac_ext
5519
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5520
echo "${ECHO_T}$ac_header_preproc" >&6; }
5522
# So? What about this header?
5523
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5525
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5526
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5527
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5528
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5529
ac_header_preproc=yes
5532
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5533
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5534
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5535
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5536
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5537
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5538
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5539
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5540
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5541
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5542
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5543
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5547
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5548
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5549
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5550
echo $ECHO_N "(cached) $ECHO_C" >&6
5552
eval "$as_ac_Header=\$ac_header_preproc"
5554
ac_res=`eval echo '${'$as_ac_Header'}'`
5555
{ echo "$as_me:$LINENO: result: $ac_res" >&5
5556
echo "${ECHO_T}$ac_res" >&6; }
5559
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5560
cat >>confdefs.h <<_ACEOF
5561
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5569
ac_cpp='$CXXCPP $CPPFLAGS'
5570
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5571
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5572
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5573
if test -z "$CXX"; then
5574
if test -n "$CCC"; then
5577
if test -n "$ac_tool_prefix"; then
5578
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5580
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5581
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5582
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5583
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5584
if test "${ac_cv_prog_CXX+set}" = set; then
5585
echo $ECHO_N "(cached) $ECHO_C" >&6
5587
if test -n "$CXX"; then
5588
ac_cv_prog_CXX="$CXX" # Let the user override the test.
5590
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5594
test -z "$as_dir" && as_dir=.
5595
for ac_exec_ext in '' $ac_executable_extensions; do
5596
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5597
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5598
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5608
if test -n "$CXX"; then
5609
{ echo "$as_me:$LINENO: result: $CXX" >&5
5610
echo "${ECHO_T}$CXX" >&6; }
5612
{ echo "$as_me:$LINENO: result: no" >&5
5613
echo "${ECHO_T}no" >&6; }
5617
test -n "$CXX" && break
5620
if test -z "$CXX"; then
5622
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5624
# Extract the first word of "$ac_prog", so it can be a program name with args.
5625
set dummy $ac_prog; ac_word=$2
5626
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5627
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5628
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5629
echo $ECHO_N "(cached) $ECHO_C" >&6
5631
if test -n "$ac_ct_CXX"; then
5632
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5634
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5638
test -z "$as_dir" && as_dir=.
5639
for ac_exec_ext in '' $ac_executable_extensions; do
5640
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5641
ac_cv_prog_ac_ct_CXX="$ac_prog"
5642
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5651
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5652
if test -n "$ac_ct_CXX"; then
5653
{ echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5654
echo "${ECHO_T}$ac_ct_CXX" >&6; }
5656
{ echo "$as_me:$LINENO: result: no" >&5
5657
echo "${ECHO_T}no" >&6; }
5661
test -n "$ac_ct_CXX" && break
5664
if test "x$ac_ct_CXX" = x; then
5667
case $cross_compiling:$ac_tool_warned in
5669
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5670
whose name does not start with the host triplet. If you think this
5671
configuration is useful to you, please write to autoconf@gnu.org." >&5
5672
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5673
whose name does not start with the host triplet. If you think this
5674
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5675
ac_tool_warned=yes ;;
5683
# Provide some information about the compiler.
5684
echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5685
ac_compiler=`set X $ac_compile; echo $2`
5686
{ (ac_try="$ac_compiler --version >&5"
5688
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5689
*) ac_try_echo=$ac_try;;
5691
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5692
(eval "$ac_compiler --version >&5") 2>&5
5694
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5695
(exit $ac_status); }
5696
{ (ac_try="$ac_compiler -v >&5"
5698
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5699
*) ac_try_echo=$ac_try;;
5701
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5702
(eval "$ac_compiler -v >&5") 2>&5
5704
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5705
(exit $ac_status); }
5706
{ (ac_try="$ac_compiler -V >&5"
5708
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5709
*) ac_try_echo=$ac_try;;
5711
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5712
(eval "$ac_compiler -V >&5") 2>&5
5714
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5715
(exit $ac_status); }
5717
{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5718
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5719
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5720
echo $ECHO_N "(cached) $ECHO_C" >&6
5722
cat >conftest.$ac_ext <<_ACEOF
5725
cat confdefs.h >>conftest.$ac_ext
5726
cat >>conftest.$ac_ext <<_ACEOF
5727
/* end confdefs.h. */
5740
rm -f conftest.$ac_objext
5741
if { (ac_try="$ac_compile"
5743
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5744
*) ac_try_echo=$ac_try;;
5746
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5747
(eval "$ac_compile") 2>conftest.er1
5749
grep -v '^ *+' conftest.er1 >conftest.err
5751
cat conftest.err >&5
5752
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5753
(exit $ac_status); } &&
5754
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5755
{ (case "(($ac_try" in
5756
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5757
*) ac_try_echo=$ac_try;;
5759
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5760
(eval "$ac_try") 2>&5
5762
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5763
(exit $ac_status); }; } &&
5764
{ ac_try='test -s conftest.$ac_objext'
5765
{ (case "(($ac_try" in
5766
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5767
*) ac_try_echo=$ac_try;;
5769
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5770
(eval "$ac_try") 2>&5
5772
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5773
(exit $ac_status); }; }; then
5776
echo "$as_me: failed program was:" >&5
5777
sed 's/^/| /' conftest.$ac_ext >&5
5782
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5783
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5786
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5787
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5788
GXX=`test $ac_compiler_gnu = yes && echo yes`
5789
ac_test_CXXFLAGS=${CXXFLAGS+set}
5790
ac_save_CXXFLAGS=$CXXFLAGS
5791
{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5792
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5793
if test "${ac_cv_prog_cxx_g+set}" = set; then
5794
echo $ECHO_N "(cached) $ECHO_C" >&6
5796
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5797
ac_cxx_werror_flag=yes
5800
cat >conftest.$ac_ext <<_ACEOF
5803
cat confdefs.h >>conftest.$ac_ext
5804
cat >>conftest.$ac_ext <<_ACEOF
5805
/* end confdefs.h. */
5815
rm -f conftest.$ac_objext
5816
if { (ac_try="$ac_compile"
5818
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5819
*) ac_try_echo=$ac_try;;
5821
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5822
(eval "$ac_compile") 2>conftest.er1
5824
grep -v '^ *+' conftest.er1 >conftest.err
5826
cat conftest.err >&5
5827
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5828
(exit $ac_status); } &&
5829
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5830
{ (case "(($ac_try" in
5831
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5832
*) ac_try_echo=$ac_try;;
5834
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5835
(eval "$ac_try") 2>&5
5837
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5838
(exit $ac_status); }; } &&
5839
{ ac_try='test -s conftest.$ac_objext'
5840
{ (case "(($ac_try" in
5841
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5842
*) ac_try_echo=$ac_try;;
5844
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5845
(eval "$ac_try") 2>&5
5847
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5848
(exit $ac_status); }; }; then
5849
ac_cv_prog_cxx_g=yes
5851
echo "$as_me: failed program was:" >&5
5852
sed 's/^/| /' conftest.$ac_ext >&5
5855
cat >conftest.$ac_ext <<_ACEOF
5858
cat confdefs.h >>conftest.$ac_ext
5859
cat >>conftest.$ac_ext <<_ACEOF
5860
/* end confdefs.h. */
5870
rm -f conftest.$ac_objext
5871
if { (ac_try="$ac_compile"
5873
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5874
*) ac_try_echo=$ac_try;;
5876
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5877
(eval "$ac_compile") 2>conftest.er1
5879
grep -v '^ *+' conftest.er1 >conftest.err
5881
cat conftest.err >&5
5882
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5883
(exit $ac_status); } &&
5884
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5885
{ (case "(($ac_try" in
5886
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5887
*) ac_try_echo=$ac_try;;
5889
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5890
(eval "$ac_try") 2>&5
5892
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5893
(exit $ac_status); }; } &&
5894
{ ac_try='test -s conftest.$ac_objext'
5895
{ (case "(($ac_try" in
5896
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5897
*) ac_try_echo=$ac_try;;
5899
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5900
(eval "$ac_try") 2>&5
5902
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903
(exit $ac_status); }; }; then
5906
echo "$as_me: failed program was:" >&5
5907
sed 's/^/| /' conftest.$ac_ext >&5
5909
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5911
cat >conftest.$ac_ext <<_ACEOF
5914
cat confdefs.h >>conftest.$ac_ext
5915
cat >>conftest.$ac_ext <<_ACEOF
5916
/* end confdefs.h. */
5926
rm -f conftest.$ac_objext
5927
if { (ac_try="$ac_compile"
5929
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5930
*) ac_try_echo=$ac_try;;
5932
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5933
(eval "$ac_compile") 2>conftest.er1
5935
grep -v '^ *+' conftest.er1 >conftest.err
5937
cat conftest.err >&5
5938
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939
(exit $ac_status); } &&
5940
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5941
{ (case "(($ac_try" in
5942
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5943
*) ac_try_echo=$ac_try;;
5945
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5946
(eval "$ac_try") 2>&5
5948
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949
(exit $ac_status); }; } &&
5950
{ ac_try='test -s conftest.$ac_objext'
5951
{ (case "(($ac_try" in
5952
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5953
*) ac_try_echo=$ac_try;;
5955
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5956
(eval "$ac_try") 2>&5
5958
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5959
(exit $ac_status); }; }; then
5960
ac_cv_prog_cxx_g=yes
5962
echo "$as_me: failed program was:" >&5
5963
sed 's/^/| /' conftest.$ac_ext >&5
5968
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5971
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5974
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5975
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5977
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5978
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5979
if test "$ac_test_CXXFLAGS" = set; then
5980
CXXFLAGS=$ac_save_CXXFLAGS
5981
elif test $ac_cv_prog_cxx_g = yes; then
5982
if test "$GXX" = yes; then
5988
if test "$GXX" = yes; then
5995
ac_cpp='$CXXCPP $CPPFLAGS'
5996
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5997
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5998
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6000
depcc="$CXX" am_compiler_list=
6002
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6003
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
6004
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6005
echo $ECHO_N "(cached) $ECHO_C" >&6
6007
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6008
# We make a subdir and do the tests there. Otherwise we can end up
6009
# making bogus files that we don't know about and never remove. For
6010
# instance it was reported that on HP-UX the gcc test will end up
6011
# making a dummy file named `D' -- because `-MD' means `put the output
6014
# Copy depcomp to subdir because otherwise we won't find it if we're
6015
# using a relative directory.
6016
cp "$am_depcomp" conftest.dir
6018
# We will build objects and dependencies in a subdirectory because
6019
# it helps to detect inapplicable dependency modes. For instance
6020
# both Tru64's cc and ICC support -MD to output dependencies as a
6021
# side effect of compilation, but ICC will put the dependencies in
6022
# the current directory while Tru64 will put them in the object
6026
am_cv_CXX_dependencies_compiler_type=none
6027
if test "$am_compiler_list" = ""; then
6028
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6030
for depmode in $am_compiler_list; do
6031
# Setup a source with many dependencies, because some compilers
6032
# like to wrap large dependency lists on column 80 (with \), and
6033
# we should not choose a depcomp mode which is confused by this.
6035
# We need to recreate these files for each test, as the compiler may
6036
# overwrite some of them when testing with obscure command lines.
6037
# This happens at least with the AIX C compiler.
6039
for i in 1 2 3 4 5 6; do
6040
echo '#include "conftst'$i'.h"' >> sub/conftest.c
6041
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6042
# Solaris 8's {/usr,}/bin/sh.
6043
touch sub/conftst$i.h
6045
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6049
# after this tag, mechanisms are not by side-effect, so they'll
6050
# only be used when explicitly requested
6051
if test "x$enable_dependency_tracking" = xyes; then
6059
# We check with `-c' and `-o' for the sake of the "dashmstdout"
6060
# mode. It turns out that the SunPro C++ compiler does not properly
6061
# handle `-M -o', and we need to detect this.
6062
if depmode=$depmode \
6063
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6064
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6065
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6066
>/dev/null 2>conftest.err &&
6067
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6068
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6069
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6070
# icc doesn't choke on unknown options, it will just issue warnings
6071
# or remarks (even with -Werror). So we grep stderr for any message
6072
# that says an option was ignored or not supported.
6073
# When given -MP, icc 7.0 and 7.1 complain thusly:
6074
# icc: Command line warning: ignoring option '-M'; no argument required
6075
# The diagnosis changed in icc 8.0:
6076
# icc: Command line remark: option '-MP' not supported
6077
if (grep 'ignoring option' conftest.err ||
6078
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6079
am_cv_CXX_dependencies_compiler_type=$depmode
6088
am_cv_CXX_dependencies_compiler_type=none
6092
{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6093
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
6094
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6099
test "x$enable_dependency_tracking" != xno \
6100
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6101
am__fastdepCXX_TRUE=
6102
am__fastdepCXX_FALSE='#'
6104
am__fastdepCXX_TRUE='#'
6105
am__fastdepCXX_FALSE=
6111
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6112
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6113
(test "X$CXX" != "Xg++"))) ; then
6115
ac_cpp='$CXXCPP $CPPFLAGS'
6116
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6117
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6118
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6119
{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6120
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6121
if test -z "$CXXCPP"; then
6122
if test "${ac_cv_prog_CXXCPP+set}" = set; then
6123
echo $ECHO_N "(cached) $ECHO_C" >&6
6125
# Double quotes because CXXCPP needs to be expanded
6126
for CXXCPP in "$CXX -E" "/lib/cpp"
6129
for ac_cxx_preproc_warn_flag in '' yes
6131
# Use a header file that comes with gcc, so configuring glibc
6132
# with a fresh cross-compiler works.
6133
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6134
# <limits.h> exists even on freestanding compilers.
6135
# On the NeXT, cc -E runs the code through the compiler's parser,
6136
# not just through cpp. "Syntax error" is here to catch this case.
6137
cat >conftest.$ac_ext <<_ACEOF
6140
cat confdefs.h >>conftest.$ac_ext
6141
cat >>conftest.$ac_ext <<_ACEOF
6142
/* end confdefs.h. */
6144
# include <limits.h>
6146
# include <assert.h>
6150
if { (ac_try="$ac_cpp conftest.$ac_ext"
6152
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6153
*) ac_try_echo=$ac_try;;
6155
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6156
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6158
grep -v '^ *+' conftest.er1 >conftest.err
6160
cat conftest.err >&5
6161
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162
(exit $ac_status); } >/dev/null; then
6163
if test -s conftest.err; then
6164
ac_cpp_err=$ac_cxx_preproc_warn_flag
6165
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6172
if test -z "$ac_cpp_err"; then
6175
echo "$as_me: failed program was:" >&5
6176
sed 's/^/| /' conftest.$ac_ext >&5
6178
# Broken: fails on valid input.
6182
rm -f conftest.err conftest.$ac_ext
6184
# OK, works on sane cases. Now check whether nonexistent headers
6185
# can be detected and how.
6186
cat >conftest.$ac_ext <<_ACEOF
6189
cat confdefs.h >>conftest.$ac_ext
6190
cat >>conftest.$ac_ext <<_ACEOF
6191
/* end confdefs.h. */
6192
#include <ac_nonexistent.h>
6194
if { (ac_try="$ac_cpp conftest.$ac_ext"
6196
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6197
*) ac_try_echo=$ac_try;;
6199
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6200
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6202
grep -v '^ *+' conftest.er1 >conftest.err
6204
cat conftest.err >&5
6205
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6206
(exit $ac_status); } >/dev/null; then
6207
if test -s conftest.err; then
6208
ac_cpp_err=$ac_cxx_preproc_warn_flag
6209
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6216
if test -z "$ac_cpp_err"; then
6217
# Broken: success on invalid input.
6220
echo "$as_me: failed program was:" >&5
6221
sed 's/^/| /' conftest.$ac_ext >&5
6223
# Passes both tests.
6228
rm -f conftest.err conftest.$ac_ext
6231
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6232
rm -f conftest.err conftest.$ac_ext
6233
if $ac_preproc_ok; then
6238
ac_cv_prog_CXXCPP=$CXXCPP
6241
CXXCPP=$ac_cv_prog_CXXCPP
6243
ac_cv_prog_CXXCPP=$CXXCPP
6245
{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
6246
echo "${ECHO_T}$CXXCPP" >&6; }
6248
for ac_cxx_preproc_warn_flag in '' yes
6250
# Use a header file that comes with gcc, so configuring glibc
6251
# with a fresh cross-compiler works.
6252
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6253
# <limits.h> exists even on freestanding compilers.
6254
# On the NeXT, cc -E runs the code through the compiler's parser,
6255
# not just through cpp. "Syntax error" is here to catch this case.
6256
cat >conftest.$ac_ext <<_ACEOF
6259
cat confdefs.h >>conftest.$ac_ext
6260
cat >>conftest.$ac_ext <<_ACEOF
6261
/* end confdefs.h. */
6263
# include <limits.h>
6265
# include <assert.h>
6269
if { (ac_try="$ac_cpp conftest.$ac_ext"
6271
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6272
*) ac_try_echo=$ac_try;;
6274
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6275
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6277
grep -v '^ *+' conftest.er1 >conftest.err
6279
cat conftest.err >&5
6280
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6281
(exit $ac_status); } >/dev/null; then
6282
if test -s conftest.err; then
6283
ac_cpp_err=$ac_cxx_preproc_warn_flag
6284
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6291
if test -z "$ac_cpp_err"; then
6294
echo "$as_me: failed program was:" >&5
6295
sed 's/^/| /' conftest.$ac_ext >&5
6297
# Broken: fails on valid input.
6301
rm -f conftest.err conftest.$ac_ext
6303
# OK, works on sane cases. Now check whether nonexistent headers
6304
# can be detected and how.
6305
cat >conftest.$ac_ext <<_ACEOF
6308
cat confdefs.h >>conftest.$ac_ext
6309
cat >>conftest.$ac_ext <<_ACEOF
6310
/* end confdefs.h. */
6311
#include <ac_nonexistent.h>
6313
if { (ac_try="$ac_cpp conftest.$ac_ext"
6315
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6316
*) ac_try_echo=$ac_try;;
6318
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6319
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6321
grep -v '^ *+' conftest.er1 >conftest.err
6323
cat conftest.err >&5
6324
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6325
(exit $ac_status); } >/dev/null; then
6326
if test -s conftest.err; then
6327
ac_cpp_err=$ac_cxx_preproc_warn_flag
6328
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6335
if test -z "$ac_cpp_err"; then
6336
# Broken: success on invalid input.
6339
echo "$as_me: failed program was:" >&5
6340
sed 's/^/| /' conftest.$ac_ext >&5
6342
# Passes both tests.
6347
rm -f conftest.err conftest.$ac_ext
6350
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6351
rm -f conftest.err conftest.$ac_ext
6352
if $ac_preproc_ok; then
6355
{ { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6356
See \`config.log' for more details." >&5
6357
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6358
See \`config.log' for more details." >&2;}
6359
{ (exit 1); exit 1; }; }
6363
ac_cpp='$CXXCPP $CPPFLAGS'
6364
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6365
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6366
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6372
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6373
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6374
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6375
if test -n "$ac_tool_prefix"; then
6376
for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
6378
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6379
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6380
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6381
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6382
if test "${ac_cv_prog_F77+set}" = set; then
6383
echo $ECHO_N "(cached) $ECHO_C" >&6
6385
if test -n "$F77"; then
6386
ac_cv_prog_F77="$F77" # Let the user override the test.
6388
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6392
test -z "$as_dir" && as_dir=.
6393
for ac_exec_ext in '' $ac_executable_extensions; do
6394
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6395
ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6396
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6406
if test -n "$F77"; then
6407
{ echo "$as_me:$LINENO: result: $F77" >&5
6408
echo "${ECHO_T}$F77" >&6; }
6410
{ echo "$as_me:$LINENO: result: no" >&5
6411
echo "${ECHO_T}no" >&6; }
6415
test -n "$F77" && break
6418
if test -z "$F77"; then
6420
for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
6422
# Extract the first word of "$ac_prog", so it can be a program name with args.
6423
set dummy $ac_prog; ac_word=$2
6424
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6425
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6426
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6427
echo $ECHO_N "(cached) $ECHO_C" >&6
6429
if test -n "$ac_ct_F77"; then
6430
ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6432
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6436
test -z "$as_dir" && as_dir=.
6437
for ac_exec_ext in '' $ac_executable_extensions; do
6438
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6439
ac_cv_prog_ac_ct_F77="$ac_prog"
6440
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6449
ac_ct_F77=$ac_cv_prog_ac_ct_F77
6450
if test -n "$ac_ct_F77"; then
6451
{ echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6452
echo "${ECHO_T}$ac_ct_F77" >&6; }
6454
{ echo "$as_me:$LINENO: result: no" >&5
6455
echo "${ECHO_T}no" >&6; }
6459
test -n "$ac_ct_F77" && break
6462
if test "x$ac_ct_F77" = x; then
6465
case $cross_compiling:$ac_tool_warned in
6467
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6468
whose name does not start with the host triplet. If you think this
6469
configuration is useful to you, please write to autoconf@gnu.org." >&5
6470
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6471
whose name does not start with the host triplet. If you think this
6472
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6473
ac_tool_warned=yes ;;
6480
# Provide some information about the compiler.
6481
echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6482
ac_compiler=`set X $ac_compile; echo $2`
6483
{ (ac_try="$ac_compiler --version >&5"
6485
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6486
*) ac_try_echo=$ac_try;;
6488
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6489
(eval "$ac_compiler --version >&5") 2>&5
6491
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6492
(exit $ac_status); }
6493
{ (ac_try="$ac_compiler -v >&5"
6495
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6496
*) ac_try_echo=$ac_try;;
6498
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6499
(eval "$ac_compiler -v >&5") 2>&5
6501
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6502
(exit $ac_status); }
6503
{ (ac_try="$ac_compiler -V >&5"
6505
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6506
*) ac_try_echo=$ac_try;;
6508
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6509
(eval "$ac_compiler -V >&5") 2>&5
6511
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6512
(exit $ac_status); }
6515
# If we don't use `.F' as extension, the preprocessor is not run on the
6516
# input file. (Note that this only needs to work for GNU compilers.)
6519
{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6520
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6521
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6522
echo $ECHO_N "(cached) $ECHO_C" >&6
6524
cat >conftest.$ac_ext <<_ACEOF
6532
rm -f conftest.$ac_objext
6533
if { (ac_try="$ac_compile"
6535
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6536
*) ac_try_echo=$ac_try;;
6538
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6539
(eval "$ac_compile") 2>conftest.er1
6541
grep -v '^ *+' conftest.er1 >conftest.err
6543
cat conftest.err >&5
6544
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6545
(exit $ac_status); } &&
6546
{ ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6547
{ (case "(($ac_try" in
6548
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6549
*) ac_try_echo=$ac_try;;
6551
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6552
(eval "$ac_try") 2>&5
6554
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6555
(exit $ac_status); }; } &&
6556
{ ac_try='test -s conftest.$ac_objext'
6557
{ (case "(($ac_try" in
6558
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6559
*) ac_try_echo=$ac_try;;
6561
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6562
(eval "$ac_try") 2>&5
6564
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6565
(exit $ac_status); }; }; then
6568
echo "$as_me: failed program was:" >&5
6569
sed 's/^/| /' conftest.$ac_ext >&5
6574
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6575
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6578
{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6579
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6581
ac_test_FFLAGS=${FFLAGS+set}
6582
ac_save_FFLAGS=$FFLAGS
6584
{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6585
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6586
if test "${ac_cv_prog_f77_g+set}" = set; then
6587
echo $ECHO_N "(cached) $ECHO_C" >&6
6590
cat >conftest.$ac_ext <<_ACEOF
6595
rm -f conftest.$ac_objext
6596
if { (ac_try="$ac_compile"
6598
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6599
*) ac_try_echo=$ac_try;;
6601
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6602
(eval "$ac_compile") 2>conftest.er1
6604
grep -v '^ *+' conftest.er1 >conftest.err
6606
cat conftest.err >&5
6607
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608
(exit $ac_status); } &&
6609
{ ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6610
{ (case "(($ac_try" in
6611
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6612
*) ac_try_echo=$ac_try;;
6614
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6615
(eval "$ac_try") 2>&5
6617
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6618
(exit $ac_status); }; } &&
6619
{ ac_try='test -s conftest.$ac_objext'
6620
{ (case "(($ac_try" in
6621
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6622
*) ac_try_echo=$ac_try;;
6624
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6625
(eval "$ac_try") 2>&5
6627
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6628
(exit $ac_status); }; }; then
6629
ac_cv_prog_f77_g=yes
6631
echo "$as_me: failed program was:" >&5
6632
sed 's/^/| /' conftest.$ac_ext >&5
6637
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6640
{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6641
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6642
if test "$ac_test_FFLAGS" = set; then
6643
FFLAGS=$ac_save_FFLAGS
6644
elif test $ac_cv_prog_f77_g = yes; then
6645
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6651
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6658
G77=`test $ac_compiler_gnu = yes && echo yes`
6660
ac_cpp='$CPP $CPPFLAGS'
6661
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6662
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6663
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6667
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6669
# find the maximum length of command line arguments
6670
{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6671
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6672
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6673
echo $ECHO_N "(cached) $ECHO_C" >&6
6680
# On DJGPP, this test can blow up pretty badly due to problems in libc
6681
# (any single argument exceeding 2000 bytes causes a buffer overrun
6682
# during glob expansion). Even if it were fixed, the result of this
6683
# check would be larger than it should be.
6684
lt_cv_sys_max_cmd_len=12288; # 12K is about right
6688
# Under GNU Hurd, this test is not required because there is
6689
# no limit to the length of command line arguments.
6690
# Libtool will interpret -1 as no limit whatsoever
6691
lt_cv_sys_max_cmd_len=-1;
6695
# On Win9x/ME, this test blows up -- it succeeds, but takes
6696
# about 5 minutes as the teststring grows exponentially.
6697
# Worse, since 9x/ME are not pre-emptively multitasking,
6698
# you end up with a "frozen" computer, even though with patience
6699
# the test eventually succeeds (with a max line length of 256k).
6700
# Instead, let's just punt: use the minimum linelength reported by
6701
# all of the supported platforms: 8192 (on NT/2K/XP).
6702
lt_cv_sys_max_cmd_len=8192;
6706
# On AmigaOS with pdksh, this test takes hours, literally.
6707
# So we just punt and use a minimum line length of 8192.
6708
lt_cv_sys_max_cmd_len=8192;
6711
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6712
# This has been around since 386BSD, at least. Likely further.
6713
if test -x /sbin/sysctl; then
6714
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6715
elif test -x /usr/sbin/sysctl; then
6716
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6718
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6720
# And add a safety zone
6721
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6722
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6726
# We know the value 262144 and hardcode it with a safety zone (like BSD)
6727
lt_cv_sys_max_cmd_len=196608
6731
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6732
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6733
# nice to cause kernel panics so lets avoid the loop below.
6734
# First set a reasonable default.
6735
lt_cv_sys_max_cmd_len=16384
6737
if test -x /sbin/sysconfig; then
6738
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6739
*1*) lt_cv_sys_max_cmd_len=-1 ;;
6744
lt_cv_sys_max_cmd_len=102400
6746
sysv5* | sco5v6* | sysv4.2uw2*)
6747
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6748
if test -n "$kargmax"; then
6749
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6751
lt_cv_sys_max_cmd_len=32768
6755
# If test is not a shell built-in, we'll probably end up computing a
6756
# maximum length that is only half of the actual maximum length, but
6758
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6759
while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6760
= "XX$teststring") >/dev/null 2>&1 &&
6761
new_result=`expr "X$teststring" : ".*" 2>&1` &&
6762
lt_cv_sys_max_cmd_len=$new_result &&
6763
test $i != 17 # 1/2 MB should be enough
6766
teststring=$teststring$teststring
6769
# Add a significant safety factor because C++ compilers can tack on massive
6770
# amounts of additional arguments before passing them to the linker.
6771
# It appears as though 1/2 is a usable value.
6772
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6778
if test -n $lt_cv_sys_max_cmd_len ; then
6779
{ echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6780
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6782
{ echo "$as_me:$LINENO: result: none" >&5
6783
echo "${ECHO_T}none" >&6; }
6789
# Check for command to grab the raw symbol name followed by C symbol from nm.
6790
{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6791
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6792
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6793
echo $ECHO_N "(cached) $ECHO_C" >&6
6796
# These are sane defaults that work on at least a few old systems.
6797
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6799
# Character class describing NM global symbol codes.
6800
symcode='[BCDEGRST]'
6802
# Regexp to match symbols that can be accessed directly from C.
6803
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6805
# Transform an extracted symbol line into a proper C declaration
6806
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6808
# Transform an extracted symbol line into symbol name and symbol address
6809
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'"
6811
# Define system-specific variables.
6816
cygwin* | mingw* | pw32*)
6817
symcode='[ABCDGISTW]'
6819
hpux*) # Its linker distinguishes data from code symbols
6820
if test "$host_cpu" = ia64; then
6821
symcode='[ABCDEGRST]'
6823
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6824
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'"
6826
linux* | k*bsd*-gnu)
6827
if test "$host_cpu" = ia64; then
6828
symcode='[ABCDGIRSTW]'
6829
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6830
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'"
6834
symcode='[BCDEGRST]'
6837
symcode='[BCDEGQRST]'
6848
sysv5* | sco5v6* | unixware* | OpenUNIX*)
6856
# Handle CRLF in mingw tool chain
6860
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6864
# If we're using GNU nm, then use its standard symbol codes.
6865
case `$NM -V 2>&1` in
6866
*GNU* | *'with BFD'*)
6867
symcode='[ABCDGIRSTW]' ;;
6870
# Try without a prefix undercore, then with it.
6871
for ac_symprfx in "" "_"; do
6873
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6874
symxfrm="\\1 $ac_symprfx\\2 \\2"
6876
# Write the raw and C identifiers.
6877
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6879
# Check to see that the pipe works correctly.
6883
cat > conftest.$ac_ext <<EOF
6888
void nm_test_func(){}
6892
int main(){nm_test_var='a';nm_test_func();return(0);}
6895
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6896
(eval $ac_compile) 2>&5
6898
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6899
(exit $ac_status); }; then
6900
# Now try to grab the symbols.
6902
if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6903
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6905
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6906
(exit $ac_status); } && test -s "$nlist"; then
6907
# Try sorting and uniquifying the output.
6908
if sort "$nlist" | uniq > "$nlist"T; then
6909
mv -f "$nlist"T "$nlist"
6914
# Make sure that we snagged all the symbols we need.
6915
if grep ' nm_test_var$' "$nlist" >/dev/null; then
6916
if grep ' nm_test_func$' "$nlist" >/dev/null; then
6917
cat <<EOF > conftest.$ac_ext
6923
# Now generate the symbol file.
6924
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6926
cat <<EOF >> conftest.$ac_ext
6927
#if defined (__STDC__) && __STDC__
6928
# define lt_ptr_t void *
6930
# define lt_ptr_t char *
6934
/* The mapping between symbol names and symbols. */
6939
lt_preloaded_symbols[] =
6942
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6943
cat <<\EOF >> conftest.$ac_ext
6951
# Now try linking the two files.
6952
mv conftest.$ac_objext conftstm.$ac_objext
6953
lt_save_LIBS="$LIBS"
6954
lt_save_CFLAGS="$CFLAGS"
6955
LIBS="conftstm.$ac_objext"
6956
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6957
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6958
(eval $ac_link) 2>&5
6960
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6961
(exit $ac_status); } && test -s conftest${ac_exeext}; then
6964
LIBS="$lt_save_LIBS"
6965
CFLAGS="$lt_save_CFLAGS"
6967
echo "cannot find nm_test_func in $nlist" >&5
6970
echo "cannot find nm_test_var in $nlist" >&5
6973
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6976
echo "$progname: failed program was:" >&5
6977
cat conftest.$ac_ext >&5
6979
rm -f conftest* conftst*
6981
# Do not use the global_symbol_pipe unless it works.
6982
if test "$pipe_works" = yes; then
6985
lt_cv_sys_global_symbol_pipe=
6991
if test -z "$lt_cv_sys_global_symbol_pipe"; then
6992
lt_cv_sys_global_symbol_to_cdecl=
6994
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6995
{ echo "$as_me:$LINENO: result: failed" >&5
6996
echo "${ECHO_T}failed" >&6; }
6998
{ echo "$as_me:$LINENO: result: ok" >&5
6999
echo "${ECHO_T}ok" >&6; }
7002
{ echo "$as_me:$LINENO: checking for objdir" >&5
7003
echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7004
if test "${lt_cv_objdir+set}" = set; then
7005
echo $ECHO_N "(cached) $ECHO_C" >&6
7007
rm -f .libs 2>/dev/null
7008
mkdir .libs 2>/dev/null
7009
if test -d .libs; then
7012
# MS-DOS does not allow filenames that begin with a dot.
7015
rmdir .libs 2>/dev/null
7017
{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7018
echo "${ECHO_T}$lt_cv_objdir" >&6; }
7019
objdir=$lt_cv_objdir
7027
# AIX sometimes has problems with the GCC collect2 program. For some
7028
# reason, if we set the COLLECT_NAMES environment variable, the problems
7029
# vanish in a puff of smoke.
7030
if test "X${COLLECT_NAMES+set}" != Xset; then
7032
export COLLECT_NAMES
7037
# Sed substitution that helps us do robust quoting. It backslashifies
7038
# metacharacters that are still active within double-quoted strings.
7039
Xsed='sed -e 1s/^X//'
7040
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7042
# Same as above, but do not quote variable references.
7043
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7045
# Sed substitution to delay expansion of an escaped shell variable in a
7046
# double_quote_subst'ed string.
7047
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7049
# Sed substitution to avoid accidental globbing in evaled expressions
7050
no_glob_subst='s/\*/\\\*/g'
7056
default_ofile=libtool
7057
can_build_shared=yes
7059
# All known linkers require a `.a' archive for static linking (except MSVC,
7060
# which needs '.lib').
7062
ltmain="$ac_aux_dir/ltmain.sh"
7063
ofile="$default_ofile"
7064
with_gnu_ld="$lt_cv_prog_gnu_ld"
7066
if test -n "$ac_tool_prefix"; then
7067
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7068
set dummy ${ac_tool_prefix}ar; ac_word=$2
7069
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7070
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7071
if test "${ac_cv_prog_AR+set}" = set; then
7072
echo $ECHO_N "(cached) $ECHO_C" >&6
7074
if test -n "$AR"; then
7075
ac_cv_prog_AR="$AR" # Let the user override the test.
7077
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7081
test -z "$as_dir" && as_dir=.
7082
for ac_exec_ext in '' $ac_executable_extensions; do
7083
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7084
ac_cv_prog_AR="${ac_tool_prefix}ar"
7085
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7095
if test -n "$AR"; then
7096
{ echo "$as_me:$LINENO: result: $AR" >&5
7097
echo "${ECHO_T}$AR" >&6; }
7099
{ echo "$as_me:$LINENO: result: no" >&5
7100
echo "${ECHO_T}no" >&6; }
7105
if test -z "$ac_cv_prog_AR"; then
7107
# Extract the first word of "ar", so it can be a program name with args.
7108
set dummy ar; ac_word=$2
7109
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7110
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7111
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7112
echo $ECHO_N "(cached) $ECHO_C" >&6
7114
if test -n "$ac_ct_AR"; then
7115
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7117
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7121
test -z "$as_dir" && as_dir=.
7122
for ac_exec_ext in '' $ac_executable_extensions; do
7123
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7124
ac_cv_prog_ac_ct_AR="ar"
7125
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7134
ac_ct_AR=$ac_cv_prog_ac_ct_AR
7135
if test -n "$ac_ct_AR"; then
7136
{ echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7137
echo "${ECHO_T}$ac_ct_AR" >&6; }
7139
{ echo "$as_me:$LINENO: result: no" >&5
7140
echo "${ECHO_T}no" >&6; }
7143
if test "x$ac_ct_AR" = x; then
7146
case $cross_compiling:$ac_tool_warned in
7148
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7149
whose name does not start with the host triplet. If you think this
7150
configuration is useful to you, please write to autoconf@gnu.org." >&5
7151
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7152
whose name does not start with the host triplet. If you think this
7153
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7154
ac_tool_warned=yes ;;
7162
if test -n "$ac_tool_prefix"; then
7163
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7164
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7165
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7166
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7167
if test "${ac_cv_prog_RANLIB+set}" = set; then
7168
echo $ECHO_N "(cached) $ECHO_C" >&6
7170
if test -n "$RANLIB"; then
7171
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7173
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7177
test -z "$as_dir" && as_dir=.
7178
for ac_exec_ext in '' $ac_executable_extensions; do
7179
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7180
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7181
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7190
RANLIB=$ac_cv_prog_RANLIB
7191
if test -n "$RANLIB"; then
7192
{ echo "$as_me:$LINENO: result: $RANLIB" >&5
7193
echo "${ECHO_T}$RANLIB" >&6; }
7195
{ echo "$as_me:$LINENO: result: no" >&5
7196
echo "${ECHO_T}no" >&6; }
7201
if test -z "$ac_cv_prog_RANLIB"; then
7202
ac_ct_RANLIB=$RANLIB
7203
# Extract the first word of "ranlib", so it can be a program name with args.
7204
set dummy ranlib; ac_word=$2
7205
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7206
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7207
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7208
echo $ECHO_N "(cached) $ECHO_C" >&6
7210
if test -n "$ac_ct_RANLIB"; then
7211
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7213
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7217
test -z "$as_dir" && as_dir=.
7218
for ac_exec_ext in '' $ac_executable_extensions; do
7219
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7220
ac_cv_prog_ac_ct_RANLIB="ranlib"
7221
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7230
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7231
if test -n "$ac_ct_RANLIB"; then
7232
{ echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7233
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7235
{ echo "$as_me:$LINENO: result: no" >&5
7236
echo "${ECHO_T}no" >&6; }
7239
if test "x$ac_ct_RANLIB" = x; then
7242
case $cross_compiling:$ac_tool_warned in
7244
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7245
whose name does not start with the host triplet. If you think this
7246
configuration is useful to you, please write to autoconf@gnu.org." >&5
7247
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7248
whose name does not start with the host triplet. If you think this
7249
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7250
ac_tool_warned=yes ;;
7252
RANLIB=$ac_ct_RANLIB
7255
RANLIB="$ac_cv_prog_RANLIB"
7258
if test -n "$ac_tool_prefix"; then
7259
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7260
set dummy ${ac_tool_prefix}strip; ac_word=$2
7261
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7262
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7263
if test "${ac_cv_prog_STRIP+set}" = set; then
7264
echo $ECHO_N "(cached) $ECHO_C" >&6
7266
if test -n "$STRIP"; then
7267
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7269
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7273
test -z "$as_dir" && as_dir=.
7274
for ac_exec_ext in '' $ac_executable_extensions; do
7275
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7276
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7277
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7286
STRIP=$ac_cv_prog_STRIP
7287
if test -n "$STRIP"; then
7288
{ echo "$as_me:$LINENO: result: $STRIP" >&5
7289
echo "${ECHO_T}$STRIP" >&6; }
7291
{ echo "$as_me:$LINENO: result: no" >&5
7292
echo "${ECHO_T}no" >&6; }
7297
if test -z "$ac_cv_prog_STRIP"; then
7299
# Extract the first word of "strip", so it can be a program name with args.
7300
set dummy strip; ac_word=$2
7301
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7302
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7303
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7304
echo $ECHO_N "(cached) $ECHO_C" >&6
7306
if test -n "$ac_ct_STRIP"; then
7307
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7309
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7313
test -z "$as_dir" && as_dir=.
7314
for ac_exec_ext in '' $ac_executable_extensions; do
7315
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7316
ac_cv_prog_ac_ct_STRIP="strip"
7317
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7326
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7327
if test -n "$ac_ct_STRIP"; then
7328
{ echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7329
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7331
{ echo "$as_me:$LINENO: result: no" >&5
7332
echo "${ECHO_T}no" >&6; }
7335
if test "x$ac_ct_STRIP" = x; then
7338
case $cross_compiling:$ac_tool_warned in
7340
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7341
whose name does not start with the host triplet. If you think this
7342
configuration is useful to you, please write to autoconf@gnu.org." >&5
7343
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7344
whose name does not start with the host triplet. If you think this
7345
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7346
ac_tool_warned=yes ;;
7351
STRIP="$ac_cv_prog_STRIP"
7356
old_CFLAGS="$CFLAGS"
7358
# Set sane defaults for various variables
7359
test -z "$AR" && AR=ar
7360
test -z "$AR_FLAGS" && AR_FLAGS=cru
7361
test -z "$AS" && AS=as
7362
test -z "$CC" && CC=cc
7363
test -z "$LTCC" && LTCC=$CC
7364
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7365
test -z "$DLLTOOL" && DLLTOOL=dlltool
7366
test -z "$LD" && LD=ld
7367
test -z "$LN_S" && LN_S="ln -s"
7368
test -z "$MAGIC_CMD" && MAGIC_CMD=file
7369
test -z "$NM" && NM=nm
7370
test -z "$SED" && SED=sed
7371
test -z "$OBJDUMP" && OBJDUMP=objdump
7372
test -z "$RANLIB" && RANLIB=:
7373
test -z "$STRIP" && STRIP=:
7374
test -z "$ac_objext" && ac_objext=o
7376
# Determine commands to create old-style static archives.
7377
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7378
old_postinstall_cmds='chmod 644 $oldlib'
7379
old_postuninstall_cmds=
7381
if test -n "$RANLIB"; then
7384
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7387
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7390
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7393
for cc_temp in $compiler""; do
7395
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7396
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7401
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7404
# Only perform the check for file, if the check method requires it
7405
case $deplibs_check_method in
7407
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7408
{ echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7409
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7410
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7411
echo $ECHO_N "(cached) $ECHO_C" >&6
7415
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7418
lt_save_MAGIC_CMD="$MAGIC_CMD"
7419
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7420
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7421
for ac_dir in $ac_dummy; do
7423
test -z "$ac_dir" && ac_dir=.
7424
if test -f $ac_dir/${ac_tool_prefix}file; then
7425
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7426
if test -n "$file_magic_test_file"; then
7427
case $deplibs_check_method in
7429
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7430
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7431
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7432
$EGREP "$file_magic_regex" > /dev/null; then
7437
*** Warning: the command libtool uses to detect shared libraries,
7438
*** $file_magic_cmd, produces output that libtool cannot recognize.
7439
*** The result is that libtool may fail to recognize shared libraries
7440
*** as such. This will affect the creation of libtool libraries that
7441
*** depend on shared libraries, but programs linked with such libtool
7442
*** libraries will work regardless of this problem. Nevertheless, you
7443
*** may want to report the problem to your system manager and/or to
7444
*** bug-libtool@gnu.org
7454
MAGIC_CMD="$lt_save_MAGIC_CMD"
7459
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7460
if test -n "$MAGIC_CMD"; then
7461
{ echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7462
echo "${ECHO_T}$MAGIC_CMD" >&6; }
7464
{ echo "$as_me:$LINENO: result: no" >&5
7465
echo "${ECHO_T}no" >&6; }
7468
if test -z "$lt_cv_path_MAGIC_CMD"; then
7469
if test -n "$ac_tool_prefix"; then
7470
{ echo "$as_me:$LINENO: checking for file" >&5
7471
echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7472
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7473
echo $ECHO_N "(cached) $ECHO_C" >&6
7477
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7480
lt_save_MAGIC_CMD="$MAGIC_CMD"
7481
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7482
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7483
for ac_dir in $ac_dummy; do
7485
test -z "$ac_dir" && ac_dir=.
7486
if test -f $ac_dir/file; then
7487
lt_cv_path_MAGIC_CMD="$ac_dir/file"
7488
if test -n "$file_magic_test_file"; then
7489
case $deplibs_check_method in
7491
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7492
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7493
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7494
$EGREP "$file_magic_regex" > /dev/null; then
7499
*** Warning: the command libtool uses to detect shared libraries,
7500
*** $file_magic_cmd, produces output that libtool cannot recognize.
7501
*** The result is that libtool may fail to recognize shared libraries
7502
*** as such. This will affect the creation of libtool libraries that
7503
*** depend on shared libraries, but programs linked with such libtool
7504
*** libraries will work regardless of this problem. Nevertheless, you
7505
*** may want to report the problem to your system manager and/or to
7506
*** bug-libtool@gnu.org
7516
MAGIC_CMD="$lt_save_MAGIC_CMD"
7521
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7522
if test -n "$MAGIC_CMD"; then
7523
{ echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7524
echo "${ECHO_T}$MAGIC_CMD" >&6; }
7526
{ echo "$as_me:$LINENO: result: no" >&5
7527
echo "${ECHO_T}no" >&6; }
7542
# Check whether --enable-libtool-lock was given.
7543
if test "${enable_libtool_lock+set}" = set; then
7544
enableval=$enable_libtool_lock;
7547
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7550
# Check whether --with-pic was given.
7551
if test "${with_pic+set}" = set; then
7552
withval=$with_pic; pic_mode="$withval"
7557
test -z "$pic_mode" && pic_mode=default
7559
# Use C for the default configuration in the libtool script
7563
ac_cpp='$CPP $CPPFLAGS'
7564
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7565
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7566
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7569
# Source file extension for C test sources.
7572
# Object file extension for compiled C test sources.
7576
# Code to be used in simple compile tests
7577
lt_simple_compile_test_code="int some_variable = 0;\n"
7579
# Code to be used in simple link tests
7580
lt_simple_link_test_code='int main(){return(0);}\n'
7583
# If no C compiler was specified, use CC.
7586
# If no C compiler flags were specified, use CFLAGS.
7587
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7589
# Allow CC to be a program name with arguments.
7593
# save warnings/boilerplate of simple test code
7594
ac_outfile=conftest.$ac_objext
7595
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7596
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7597
_lt_compiler_boilerplate=`cat conftest.err`
7600
ac_outfile=conftest.$ac_objext
7601
printf "$lt_simple_link_test_code" >conftest.$ac_ext
7602
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7603
_lt_linker_boilerplate=`cat conftest.err`
7608
lt_prog_compiler_no_builtin_flag=
7610
if test "$GCC" = yes; then
7611
lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7614
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7615
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7616
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7617
echo $ECHO_N "(cached) $ECHO_C" >&6
7619
lt_cv_prog_compiler_rtti_exceptions=no
7620
ac_outfile=conftest.$ac_objext
7621
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7622
lt_compiler_flag="-fno-rtti -fno-exceptions"
7623
# Insert the option either (1) after the last *FLAGS variable, or
7624
# (2) before a word containing "conftest.", or (3) at the end.
7625
# Note that $ac_compile itself does not contain backslashes and begins
7626
# with a dollar sign (not a hyphen), so the echo should work correctly.
7627
# The option is referenced via a variable to avoid confusing sed.
7628
lt_compile=`echo "$ac_compile" | $SED \
7629
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7630
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7631
-e 's:$: $lt_compiler_flag:'`
7632
(eval echo "\"\$as_me:7632: $lt_compile\"" >&5)
7633
(eval "$lt_compile" 2>conftest.err)
7635
cat conftest.err >&5
7636
echo "$as_me:7636: \$? = $ac_status" >&5
7637
if (exit $ac_status) && test -s "$ac_outfile"; then
7638
# The compiler can only warn and ignore the option if not recognized
7639
# So say no if there are warnings other than the usual output.
7640
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7641
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7642
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7643
lt_cv_prog_compiler_rtti_exceptions=yes
7649
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7650
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7652
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7653
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7660
lt_prog_compiler_wl=
7661
lt_prog_compiler_pic=
7662
lt_prog_compiler_static=
7664
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7665
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7667
if test "$GCC" = yes; then
7668
lt_prog_compiler_wl='-Wl,'
7669
lt_prog_compiler_static='-static'
7673
# All AIX code is PIC.
7674
if test "$host_cpu" = ia64; then
7675
# AIX 5 now supports IA64 processor
7676
lt_prog_compiler_static='-Bstatic'
7681
# FIXME: we need at least 68020 code to build shared libraries, but
7682
# adding the `-m68020' flag to GCC prevents building anything better,
7684
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7687
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7688
# PIC is the default for these OSes.
7691
mingw* | pw32* | os2*)
7692
# This hack is so that the source file can tell whether it is being
7693
# built for inclusion in a dll (and should export symbols for example).
7694
lt_prog_compiler_pic='-DDLL_EXPORT'
7697
darwin* | rhapsody*)
7698
# PIC is the default on this platform
7699
# Common symbols not allowed in MH_DYLIB files
7700
lt_prog_compiler_pic='-fno-common'
7704
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
7705
# Instead, we relocate shared libraries at runtime.
7709
# Just because we use GCC doesn't mean we suddenly get shared libraries
7710
# on systems that don't support them.
7711
lt_prog_compiler_can_build_shared=no
7716
if test -d /usr/nec; then
7717
lt_prog_compiler_pic=-Kconform_pic
7722
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7729
lt_prog_compiler_pic='-fPIC'
7735
lt_prog_compiler_pic='-fPIC'
7739
# PORTME Check for flag to pass linker flags through the system compiler.
7742
lt_prog_compiler_wl='-Wl,'
7743
if test "$host_cpu" = ia64; then
7744
# AIX 5 now supports IA64 processor
7745
lt_prog_compiler_static='-Bstatic'
7747
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7751
# PIC is the default on this platform
7752
# Common symbols not allowed in MH_DYLIB files
7753
case $cc_basename in
7755
lt_prog_compiler_pic='-qnocommon'
7756
lt_prog_compiler_wl='-Wl,'
7761
mingw* | pw32* | os2*)
7762
# This hack is so that the source file can tell whether it is being
7763
# built for inclusion in a dll (and should export symbols for example).
7764
lt_prog_compiler_pic='-DDLL_EXPORT'
7767
hpux9* | hpux10* | hpux11*)
7768
lt_prog_compiler_wl='-Wl,'
7769
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7776
lt_prog_compiler_pic='+Z'
7779
# Is there a better lt_prog_compiler_static that works with the bundled CC?
7780
lt_prog_compiler_static='${wl}-a ${wl}archive'
7783
irix5* | irix6* | nonstopux*)
7784
lt_prog_compiler_wl='-Wl,'
7785
# PIC (with -KPIC) is the default.
7786
lt_prog_compiler_static='-non_shared'
7790
lt_prog_compiler_pic='-KPIC'
7791
lt_prog_compiler_static='-Bstatic'
7794
linux* | k*bsd*-gnu)
7795
case $cc_basename in
7797
lt_prog_compiler_wl='-Wl,'
7798
lt_prog_compiler_pic='-KPIC'
7799
lt_prog_compiler_static='-static'
7801
pgcc* | pgf77* | pgf90* | pgf95*)
7802
# Portland Group compilers (*not* the Pentium gcc compiler,
7803
# which looks to be a dead project)
7804
lt_prog_compiler_wl='-Wl,'
7805
lt_prog_compiler_pic='-fpic'
7806
lt_prog_compiler_static='-Bstatic'
7809
lt_prog_compiler_wl='-Wl,'
7810
# All Alpha code is PIC.
7811
lt_prog_compiler_static='-non_shared'
7816
osf3* | osf4* | osf5*)
7817
lt_prog_compiler_wl='-Wl,'
7818
# All OSF/1 code is PIC.
7819
lt_prog_compiler_static='-non_shared'
7823
lt_prog_compiler_pic='-KPIC'
7824
lt_prog_compiler_static='-Bstatic'
7825
case $cc_basename in
7827
lt_prog_compiler_wl='-Qoption ld ';;
7829
lt_prog_compiler_wl='-Wl,';;
7834
lt_prog_compiler_wl='-Qoption ld '
7835
lt_prog_compiler_pic='-PIC'
7836
lt_prog_compiler_static='-Bstatic'
7839
sysv4 | sysv4.2uw2* | sysv4.3*)
7840
lt_prog_compiler_wl='-Wl,'
7841
lt_prog_compiler_pic='-KPIC'
7842
lt_prog_compiler_static='-Bstatic'
7846
if test -d /usr/nec ;then
7847
lt_prog_compiler_pic='-Kconform_pic'
7848
lt_prog_compiler_static='-Bstatic'
7852
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7853
lt_prog_compiler_wl='-Wl,'
7854
lt_prog_compiler_pic='-KPIC'
7855
lt_prog_compiler_static='-Bstatic'
7859
lt_prog_compiler_wl='-Wl,'
7860
lt_prog_compiler_can_build_shared=no
7864
lt_prog_compiler_pic='-pic'
7865
lt_prog_compiler_static='-Bstatic'
7869
lt_prog_compiler_can_build_shared=no
7874
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7875
echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7878
# Check to make sure the PIC flag actually works.
7880
if test -n "$lt_prog_compiler_pic"; then
7882
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7883
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7884
if test "${lt_prog_compiler_pic_works+set}" = set; then
7885
echo $ECHO_N "(cached) $ECHO_C" >&6
7887
lt_prog_compiler_pic_works=no
7888
ac_outfile=conftest.$ac_objext
7889
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7890
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7891
# Insert the option either (1) after the last *FLAGS variable, or
7892
# (2) before a word containing "conftest.", or (3) at the end.
7893
# Note that $ac_compile itself does not contain backslashes and begins
7894
# with a dollar sign (not a hyphen), so the echo should work correctly.
7895
# The option is referenced via a variable to avoid confusing sed.
7896
lt_compile=`echo "$ac_compile" | $SED \
7897
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7898
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7899
-e 's:$: $lt_compiler_flag:'`
7900
(eval echo "\"\$as_me:7900: $lt_compile\"" >&5)
7901
(eval "$lt_compile" 2>conftest.err)
7903
cat conftest.err >&5
7904
echo "$as_me:7904: \$? = $ac_status" >&5
7905
if (exit $ac_status) && test -s "$ac_outfile"; then
7906
# The compiler can only warn and ignore the option if not recognized
7907
# So say no if there are warnings other than the usual output.
7908
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7909
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7910
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7911
lt_prog_compiler_pic_works=yes
7917
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7918
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7920
if test x"$lt_prog_compiler_pic_works" = xyes; then
7921
case $lt_prog_compiler_pic in
7923
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7926
lt_prog_compiler_pic=
7927
lt_prog_compiler_can_build_shared=no
7932
# For platforms which do not support PIC, -DPIC is meaningless:
7934
lt_prog_compiler_pic=
7937
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7942
# Check to make sure the static flag actually works.
7944
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7945
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7946
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7947
if test "${lt_prog_compiler_static_works+set}" = set; then
7948
echo $ECHO_N "(cached) $ECHO_C" >&6
7950
lt_prog_compiler_static_works=no
7951
save_LDFLAGS="$LDFLAGS"
7952
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7953
printf "$lt_simple_link_test_code" > conftest.$ac_ext
7954
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7955
# The linker can only warn and ignore the option if not recognized
7956
# So say no if there are warnings
7957
if test -s conftest.err; then
7958
# Append any errors to the config.log.
7959
cat conftest.err 1>&5
7960
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7961
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7962
if diff conftest.exp conftest.er2 >/dev/null; then
7963
lt_prog_compiler_static_works=yes
7966
lt_prog_compiler_static_works=yes
7970
LDFLAGS="$save_LDFLAGS"
7973
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7974
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7976
if test x"$lt_prog_compiler_static_works" = xyes; then
7979
lt_prog_compiler_static=
7983
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7984
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7985
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7986
echo $ECHO_N "(cached) $ECHO_C" >&6
7988
lt_cv_prog_compiler_c_o=no
7989
$rm -r conftest 2>/dev/null
7993
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7995
lt_compiler_flag="-o out/conftest2.$ac_objext"
7996
# Insert the option either (1) after the last *FLAGS variable, or
7997
# (2) before a word containing "conftest.", or (3) at the end.
7998
# Note that $ac_compile itself does not contain backslashes and begins
7999
# with a dollar sign (not a hyphen), so the echo should work correctly.
8000
lt_compile=`echo "$ac_compile" | $SED \
8001
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8002
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8003
-e 's:$: $lt_compiler_flag:'`
8004
(eval echo "\"\$as_me:8004: $lt_compile\"" >&5)
8005
(eval "$lt_compile" 2>out/conftest.err)
8007
cat out/conftest.err >&5
8008
echo "$as_me:8008: \$? = $ac_status" >&5
8009
if (exit $ac_status) && test -s out/conftest2.$ac_objext
8011
# The compiler can only warn and ignore the option if not recognized
8012
# So say no if there are warnings
8013
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8014
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8015
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8016
lt_cv_prog_compiler_c_o=yes
8021
# SGI C++ compiler will create directory out/ii_files/ for
8022
# template instantiation
8023
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8024
$rm out/* && rmdir out
8030
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8031
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8034
hard_links="nottested"
8035
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8036
# do not overwrite the value of need_locks provided by the user
8037
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8038
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8041
ln conftest.a conftest.b 2>/dev/null && hard_links=no
8043
ln conftest.a conftest.b 2>&5 || hard_links=no
8044
ln conftest.a conftest.b 2>/dev/null && hard_links=no
8045
{ echo "$as_me:$LINENO: result: $hard_links" >&5
8046
echo "${ECHO_T}$hard_links" >&6; }
8047
if test "$hard_links" = no; then
8048
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8049
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8056
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8057
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8060
allow_undefined_flag=
8061
enable_shared_with_static_runtimes=no
8063
archive_expsym_cmds=
8064
old_archive_From_new_cmds=
8065
old_archive_from_expsyms_cmds=
8066
export_dynamic_flag_spec=
8067
whole_archive_flag_spec=
8068
thread_safe_flag_spec=
8069
hardcode_libdir_flag_spec=
8070
hardcode_libdir_flag_spec_ld=
8071
hardcode_libdir_separator=
8074
hardcode_shlibpath_var=unsupported
8075
link_all_deplibs=unknown
8076
hardcode_automatic=no
8079
always_export_symbols=no
8080
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8081
# include_expsyms should be a list of space-separated symbols to be *always*
8082
# included in the symbol list
8084
# exclude_expsyms can be an extended regexp of symbols to exclude
8085
# it will be wrapped by ` (' and `)$', so one must not match beginning or
8086
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8087
# as well as any symbol that contains `d'.
8088
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8089
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8090
# platforms (ab)use it in PIC code, but their linkers get confused if
8091
# the symbol is explicitly referenced. Since portable code cannot
8092
# rely on this symbol name, it's probably fine to never include it in
8093
# preloaded symbol tables.
8094
extract_expsyms_cmds=
8095
# Just being paranoid about ensuring that cc_basename is set.
8096
for cc_temp in $compiler""; do
8098
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8099
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8104
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8107
cygwin* | mingw* | pw32*)
8108
# FIXME: the MSVC++ port hasn't been tested in a loooong time
8109
# When not using gcc, we currently assume that we are using
8110
# Microsoft Visual C++.
8111
if test "$GCC" != yes; then
8116
# we just hope/assume this is gcc and not c89 (= MSVC++)
8125
if test "$with_gnu_ld" = yes; then
8126
# If archive_cmds runs LD, not CC, wlarc should be empty
8129
# Set some defaults for GNU ld with shared library support. These
8130
# are reset later if shared libraries are not supported. Putting them
8131
# here allows them to be overridden if necessary.
8132
runpath_var=LD_RUN_PATH
8133
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8134
export_dynamic_flag_spec='${wl}--export-dynamic'
8135
# ancient GNU ld didn't support --whole-archive et. al.
8136
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8137
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8139
whole_archive_flag_spec=
8141
supports_anon_versioning=no
8142
case `$LD -v 2>/dev/null` in
8143
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8144
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8145
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8146
*\ 2.11.*) ;; # other 2.11 versions
8147
*) supports_anon_versioning=yes ;;
8150
# See if GNU ld supports shared libraries.
8152
aix3* | aix4* | aix5*)
8153
# On AIX/PPC, the GNU linker is very broken
8154
if test "$host_cpu" != ia64; then
8158
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8159
*** to be unable to reliably create shared libraries on AIX.
8160
*** Therefore, libtool is disabling shared libraries support. If you
8161
*** really care for shared libraries, you may want to modify your PATH
8162
*** so that a non-GNU linker is found, and then restart.
8169
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)'
8170
hardcode_libdir_flag_spec='-L$libdir'
8171
hardcode_minus_L=yes
8173
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8174
# that the semantics of dynamic libraries on AmigaOS, at least up
8175
# to version 4, is to share data among multiple programs linked
8176
# with the same dynamic library. Since this doesn't match the
8177
# behavior of shared libraries on other platforms, we can't use
8183
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8184
allow_undefined_flag=unsupported
8185
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8186
# support --undefined. This deserves some investigation. FIXME
8187
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8193
cygwin* | mingw* | pw32*)
8194
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8195
# as there is no search path for DLLs.
8196
hardcode_libdir_flag_spec='-L$libdir'
8197
allow_undefined_flag=unsupported
8198
always_export_symbols=no
8199
enable_shared_with_static_runtimes=yes
8200
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8202
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8203
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8204
# If the export-symbols file already is a .def file (1st line
8205
# is EXPORTS), use it as is; otherwise, prepend...
8206
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8207
cp $export_symbols $output_objdir/$soname.def;
8209
echo EXPORTS > $output_objdir/$soname.def;
8210
cat $export_symbols >> $output_objdir/$soname.def;
8212
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8220
hardcode_shlibpath_var=no
8221
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8222
export_dynamic_flag_spec='${wl}-E'
8223
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8224
# Instead, shared libraries are loaded at an image base (0x10000000 by
8225
# default) and relocated if they conflict, which is a slow very memory
8226
# consuming and fragmenting process. To avoid this, we pick a random,
8227
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8228
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
8229
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8230
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'
8233
linux* | k*bsd*-gnu)
8234
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8236
case $cc_basename,$host_cpu in
8237
pgcc*) # Portland Group C compiler
8238
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'
8239
tmp_addflag=' $pic_flag'
8241
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8242
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'
8243
tmp_addflag=' $pic_flag -Mnomain' ;;
8244
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8245
tmp_addflag=' -i_dynamic' ;;
8246
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8247
tmp_addflag=' -i_dynamic -nofor_main' ;;
8248
ifc* | ifort*) # Intel Fortran compiler
8249
tmp_addflag=' -nofor_main' ;;
8251
archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8253
if test $supports_anon_versioning = yes; then
8254
archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8255
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8256
$echo "local: *; };" >> $output_objdir/$libname.ver~
8257
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8265
netbsd* | netbsdelf*-gnu)
8266
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8267
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8270
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8271
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8276
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8280
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8281
*** create shared libraries on Solaris systems. Therefore, libtool
8282
*** is disabling shared libraries support. We urge you to upgrade GNU
8283
*** binutils to release 2.9.1 or newer. Another option is to modify
8284
*** your PATH or compiler configuration so that the native linker is
8285
*** used, and then restart.
8288
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8289
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8290
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8296
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8297
case `$LD -v 2>&1` in
8298
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8302
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8303
*** reliably create shared libraries on SCO systems. Therefore, libtool
8304
*** is disabling shared libraries support. We urge you to upgrade GNU
8305
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8306
*** your PATH or compiler configuration so that the native linker is
8307
*** used, and then restart.
8312
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8313
hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8314
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8315
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8324
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8327
hardcode_shlibpath_var=no
8331
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8332
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8333
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8340
if test "$ld_shlibs" = no; then
8342
hardcode_libdir_flag_spec=
8343
export_dynamic_flag_spec=
8344
whole_archive_flag_spec=
8347
# PORTME fill in a description of your system's linker (not GNU ld)
8350
allow_undefined_flag=unsupported
8351
always_export_symbols=yes
8352
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'
8353
# Note: this linker hardcodes the directories in LIBPATH if there
8354
# are no directories specified by -L.
8355
hardcode_minus_L=yes
8356
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8357
# Neither direct hardcoding nor static linking is supported with a
8359
hardcode_direct=unsupported
8364
if test "$host_cpu" = ia64; then
8365
# On IA64, the linker does run time linking by default, so we don't
8366
# have to do anything special.
8367
aix_use_runtimelinking=no
8368
exp_sym_flag='-Bexport'
8371
# If we're using GNU nm, then we don't want the "-C" option.
8372
# -C means demangle to AIX nm, but means don't demangle with GNU nm
8373
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8374
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'
8376
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'
8378
aix_use_runtimelinking=no
8380
# Test if we are trying to use run time linking or normal
8381
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8382
# need to do runtime linking.
8383
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8384
for ld_flag in $LDFLAGS; do
8385
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8386
aix_use_runtimelinking=yes
8393
exp_sym_flag='-bexport'
8394
no_entry_flag='-bnoentry'
8397
# When large executables or shared objects are built, AIX ld can
8398
# have problems creating the table of contents. If linking a library
8399
# or program results in "error TOC overflow" add -mminimal-toc to
8400
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8401
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8405
hardcode_libdir_separator=':'
8406
link_all_deplibs=yes
8408
if test "$GCC" = yes; then
8409
case $host_os in aix4.[012]|aix4.[012].*)
8410
# We only want to do this on AIX 4.2 and lower, the check
8411
# below for broken collect2 doesn't work under 4.3+
8412
collect2name=`${CC} -print-prog-name=collect2`
8413
if test -f "$collect2name" && \
8414
strings "$collect2name" | grep resolve_lib_name >/dev/null
8416
# We have reworked collect2
8419
# We have old collect2
8420
hardcode_direct=unsupported
8421
# It fails to find uninstalled libraries when the uninstalled
8422
# path is not listed in the libpath. Setting hardcode_minus_L
8423
# to unsupported forces relinking
8424
hardcode_minus_L=yes
8425
hardcode_libdir_flag_spec='-L$libdir'
8426
hardcode_libdir_separator=
8430
shared_flag='-shared'
8431
if test "$aix_use_runtimelinking" = yes; then
8432
shared_flag="$shared_flag "'${wl}-G'
8436
if test "$host_cpu" = ia64; then
8437
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8438
# chokes on -Wl,-G. The following line is correct:
8441
if test "$aix_use_runtimelinking" = yes; then
8442
shared_flag='${wl}-G'
8444
shared_flag='${wl}-bM:SRE'
8449
# It seems that -bexpall does not export symbols beginning with
8450
# underscore (_), so it is better to generate a list of symbols to export.
8451
always_export_symbols=yes
8452
if test "$aix_use_runtimelinking" = yes; then
8453
# Warning - without using the other runtime loading flags (-brtl),
8454
# -berok will link without error, but may produce a broken library.
8455
allow_undefined_flag='-berok'
8456
# Determine the default libpath from the value encoded in an empty executable.
8457
cat >conftest.$ac_ext <<_ACEOF
8460
cat confdefs.h >>conftest.$ac_ext
8461
cat >>conftest.$ac_ext <<_ACEOF
8462
/* end confdefs.h. */
8472
rm -f conftest.$ac_objext conftest$ac_exeext
8473
if { (ac_try="$ac_link"
8475
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8476
*) ac_try_echo=$ac_try;;
8478
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8479
(eval "$ac_link") 2>conftest.er1
8481
grep -v '^ *+' conftest.er1 >conftest.err
8483
cat conftest.err >&5
8484
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485
(exit $ac_status); } &&
8486
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8487
{ (case "(($ac_try" in
8488
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8489
*) ac_try_echo=$ac_try;;
8491
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8492
(eval "$ac_try") 2>&5
8494
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495
(exit $ac_status); }; } &&
8496
{ ac_try='test -s conftest$ac_exeext'
8497
{ (case "(($ac_try" in
8498
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8499
*) ac_try_echo=$ac_try;;
8501
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8502
(eval "$ac_try") 2>&5
8504
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8505
(exit $ac_status); }; }; then
8507
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8509
# Check for a 64-bit object if we didn't find anything.
8510
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; }
8513
echo "$as_me: failed program was:" >&5
8514
sed 's/^/| /' conftest.$ac_ext >&5
8519
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8520
conftest$ac_exeext conftest.$ac_ext
8521
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8523
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8524
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"
8526
if test "$host_cpu" = ia64; then
8527
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8528
allow_undefined_flag="-z nodefs"
8529
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"
8531
# Determine the default libpath from the value encoded in an empty executable.
8532
cat >conftest.$ac_ext <<_ACEOF
8535
cat confdefs.h >>conftest.$ac_ext
8536
cat >>conftest.$ac_ext <<_ACEOF
8537
/* end confdefs.h. */
8547
rm -f conftest.$ac_objext conftest$ac_exeext
8548
if { (ac_try="$ac_link"
8550
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8551
*) ac_try_echo=$ac_try;;
8553
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8554
(eval "$ac_link") 2>conftest.er1
8556
grep -v '^ *+' conftest.er1 >conftest.err
8558
cat conftest.err >&5
8559
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560
(exit $ac_status); } &&
8561
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8562
{ (case "(($ac_try" in
8563
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8564
*) ac_try_echo=$ac_try;;
8566
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8567
(eval "$ac_try") 2>&5
8569
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8570
(exit $ac_status); }; } &&
8571
{ ac_try='test -s conftest$ac_exeext'
8572
{ (case "(($ac_try" in
8573
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8574
*) ac_try_echo=$ac_try;;
8576
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8577
(eval "$ac_try") 2>&5
8579
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8580
(exit $ac_status); }; }; then
8582
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8584
# Check for a 64-bit object if we didn't find anything.
8585
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; }
8588
echo "$as_me: failed program was:" >&5
8589
sed 's/^/| /' conftest.$ac_ext >&5
8594
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8595
conftest$ac_exeext conftest.$ac_ext
8596
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8598
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8599
# Warning - without using the other run time loading flags,
8600
# -berok will link without error, but may produce a broken library.
8601
no_undefined_flag=' ${wl}-bernotok'
8602
allow_undefined_flag=' ${wl}-berok'
8603
# Exported symbols can be pulled into shared objects from archives
8604
whole_archive_flag_spec='$convenience'
8605
archive_cmds_need_lc=yes
8606
# This is similar to how AIX traditionally builds its shared libraries.
8607
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'
8613
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)'
8614
hardcode_libdir_flag_spec='-L$libdir'
8615
hardcode_minus_L=yes
8616
# see comment about different semantics on the GNU ld section
8621
export_dynamic_flag_spec=-rdynamic
8624
cygwin* | mingw* | pw32*)
8625
# When not using gcc, we currently assume that we are using
8626
# Microsoft Visual C++.
8627
# hardcode_libdir_flag_spec is actually meaningless, as there is
8628
# no search path for DLLs.
8629
hardcode_libdir_flag_spec=' '
8630
allow_undefined_flag=unsupported
8631
# Tell ltmain to make .lib files, not .a files.
8633
# Tell ltmain to make .dll files, not .so files.
8635
# FIXME: Setting linknames here is a bad hack.
8636
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8637
# The linker will automatically build a .lib file if we build a DLL.
8638
old_archive_From_new_cmds='true'
8639
# FIXME: Should let the user specify the lib program.
8640
old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8641
fix_srcfile_path='`cygpath -w "$srcfile"`'
8642
enable_shared_with_static_runtimes=yes
8645
darwin* | rhapsody*)
8647
rhapsody* | darwin1.[012])
8648
allow_undefined_flag='${wl}-undefined ${wl}suppress'
8651
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8652
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8654
case ${MACOSX_DEPLOYMENT_TARGET} in
8656
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8659
allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8665
archive_cmds_need_lc=no
8667
hardcode_automatic=yes
8668
hardcode_shlibpath_var=unsupported
8669
whole_archive_flag_spec=''
8670
link_all_deplibs=yes
8671
if test "$GCC" = yes ; then
8672
output_verbose_link_cmd='echo'
8673
archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8674
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8675
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8676
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}'
8677
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}'
8679
case $cc_basename in
8681
output_verbose_link_cmd='echo'
8682
archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8683
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8684
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8685
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}'
8686
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}'
8696
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8697
hardcode_libdir_flag_spec='-L$libdir'
8698
hardcode_shlibpath_var=no
8705
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8706
# support. Future versions do this automatically, but an explicit c++rt0.o
8707
# does not break anything, and helps significantly (at the cost of a little
8710
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8711
hardcode_libdir_flag_spec='-R$libdir'
8713
hardcode_shlibpath_var=no
8716
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
8718
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8720
hardcode_minus_L=yes
8721
hardcode_shlibpath_var=no
8724
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8725
freebsd* | dragonfly*)
8726
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8727
hardcode_libdir_flag_spec='-R$libdir'
8729
hardcode_shlibpath_var=no
8733
if test "$GCC" = yes; then
8734
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'
8736
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'
8738
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8739
hardcode_libdir_separator=:
8742
# hardcode_minus_L: Not really in the search PATH,
8743
# but as the default location of the library.
8744
hardcode_minus_L=yes
8745
export_dynamic_flag_spec='${wl}-E'
8749
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8750
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8752
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8754
if test "$with_gnu_ld" = no; then
8755
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8756
hardcode_libdir_separator=:
8759
export_dynamic_flag_spec='${wl}-E'
8761
# hardcode_minus_L: Not really in the search PATH,
8762
# but as the default location of the library.
8763
hardcode_minus_L=yes
8768
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8771
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8774
archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8777
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8783
archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8786
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8789
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8793
if test "$with_gnu_ld" = no; then
8794
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8795
hardcode_libdir_separator=:
8799
hardcode_libdir_flag_spec_ld='+b $libdir'
8801
hardcode_shlibpath_var=no
8805
export_dynamic_flag_spec='${wl}-E'
8807
# hardcode_minus_L: Not really in the search PATH,
8808
# but as the default location of the library.
8809
hardcode_minus_L=yes
8815
irix5* | irix6* | nonstopux*)
8816
if test "$GCC" = yes; then
8817
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'
8819
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'
8820
hardcode_libdir_flag_spec_ld='-rpath $libdir'
8822
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8823
hardcode_libdir_separator=:
8824
link_all_deplibs=yes
8827
netbsd* | netbsdelf*-gnu)
8828
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8829
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8831
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8833
hardcode_libdir_flag_spec='-R$libdir'
8835
hardcode_shlibpath_var=no
8839
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8841
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8842
hardcode_libdir_separator=:
8843
hardcode_shlibpath_var=no
8848
hardcode_shlibpath_var=no
8849
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8850
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8851
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8852
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8853
export_dynamic_flag_spec='${wl}-E'
8856
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8857
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8858
hardcode_libdir_flag_spec='-R$libdir'
8861
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8862
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8869
hardcode_libdir_flag_spec='-L$libdir'
8870
hardcode_minus_L=yes
8871
allow_undefined_flag=unsupported
8872
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'
8873
old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8877
if test "$GCC" = yes; then
8878
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8879
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'
8881
allow_undefined_flag=' -expect_unresolved \*'
8882
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'
8884
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8885
hardcode_libdir_separator=:
8888
osf4* | osf5*) # as osf3* with the addition of -msym flag
8889
if test "$GCC" = yes; then
8890
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8891
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'
8892
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8894
allow_undefined_flag=' -expect_unresolved \*'
8895
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'
8896
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8897
$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'
8899
# Both c and cxx compiler support -rpath directly
8900
hardcode_libdir_flag_spec='-rpath $libdir'
8902
hardcode_libdir_separator=:
8906
no_undefined_flag=' -z text'
8907
if test "$GCC" = yes; then
8909
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8910
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8911
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8914
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8915
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8916
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8918
hardcode_libdir_flag_spec='-R$libdir'
8919
hardcode_shlibpath_var=no
8921
solaris2.[0-5] | solaris2.[0-5].*) ;;
8923
# The compiler driver will combine linker options so we
8924
# cannot just pass the convience library names through
8925
# without $wl, iff we do not link with $LD.
8926
# Luckily, gcc supports the same syntax we need for Sun Studio.
8927
# Supported since Solaris 2.6 (maybe 2.5.1?)
8930
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8932
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' ;;
8935
link_all_deplibs=yes
8939
if test "x$host_vendor" = xsequent; then
8940
# Use $CC to link under sequent, because it throws in some extra .o
8941
# files that make .init and .fini sections work.
8942
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8944
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8946
hardcode_libdir_flag_spec='-L$libdir'
8948
hardcode_minus_L=yes
8949
hardcode_shlibpath_var=no
8953
case $host_vendor in
8955
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8956
hardcode_direct=yes # is this really true???
8959
## LD is ld it makes a PLAMLIB
8960
## CC just makes a GrossModule.
8961
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8962
reload_cmds='$CC -r -o $output$reload_objs'
8966
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8967
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8970
runpath_var='LD_RUN_PATH'
8971
hardcode_shlibpath_var=no
8975
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8976
hardcode_shlibpath_var=no
8977
export_dynamic_flag_spec='-Bexport'
8981
if test -d /usr/nec; then
8982
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8983
hardcode_shlibpath_var=no
8984
runpath_var=LD_RUN_PATH
8985
hardcode_runpath_var=yes
8990
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8991
no_undefined_flag='${wl}-z,text'
8992
archive_cmds_need_lc=no
8993
hardcode_shlibpath_var=no
8994
runpath_var='LD_RUN_PATH'
8996
if test "$GCC" = yes; then
8997
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8998
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9000
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9001
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9005
sysv5* | sco3.2v5* | sco5v6*)
9006
# Note: We can NOT use -z defs as we might desire, because we do not
9007
# link with -lc, and that would cause any symbols used from libc to
9008
# always be unresolved, which means just about no library would
9009
# ever link correctly. If we're not using GNU ld we use -z text
9010
# though, which does catch some bad symbols but isn't as heavy-handed
9012
no_undefined_flag='${wl}-z,text'
9013
allow_undefined_flag='${wl}-z,nodefs'
9014
archive_cmds_need_lc=no
9015
hardcode_shlibpath_var=no
9016
hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9017
hardcode_libdir_separator=':'
9018
link_all_deplibs=yes
9019
export_dynamic_flag_spec='${wl}-Bexport'
9020
runpath_var='LD_RUN_PATH'
9022
if test "$GCC" = yes; then
9023
archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9024
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9026
archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9027
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9032
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9033
hardcode_libdir_flag_spec='-L$libdir'
9034
hardcode_shlibpath_var=no
9043
{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9044
echo "${ECHO_T}$ld_shlibs" >&6; }
9045
test "$ld_shlibs" = no && can_build_shared=no
9048
# Do we need to explicitly link libc?
9050
case "x$archive_cmds_need_lc" in
9052
# Assume -lc should be added
9053
archive_cmds_need_lc=yes
9055
if test "$enable_shared" = yes && test "$GCC" = yes; then
9056
case $archive_cmds in
9058
# FIXME: we may have to deal with multi-command sequences.
9061
# Test whether the compiler implicitly links with -lc since on some
9062
# systems, -lgcc has to come before -lc. If gcc already passes -lc
9063
# to ld, don't add -lc before -lgcc.
9064
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9065
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9067
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9069
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9070
(eval $ac_compile) 2>&5
9072
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9073
(exit $ac_status); } 2>conftest.err; then
9076
libobjs=conftest.$ac_objext
9078
wl=$lt_prog_compiler_wl
9079
pic_flag=$lt_prog_compiler_pic
9085
lt_save_allow_undefined_flag=$allow_undefined_flag
9086
allow_undefined_flag=
9087
if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9088
(eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9090
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9091
(exit $ac_status); }
9093
archive_cmds_need_lc=no
9095
archive_cmds_need_lc=yes
9097
allow_undefined_flag=$lt_save_allow_undefined_flag
9099
cat conftest.err 1>&5
9102
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9103
echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9110
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9111
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9113
libname_spec='lib$name'
9121
shlibpath_overrides_runpath=unknown
9123
dynamic_linker="$host_os ld.so"
9124
sys_lib_dlsearch_path_spec="/lib /usr/lib"
9125
if test "$GCC" = yes; then
9126
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9127
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9128
# if the path contains ";" then we assume it to be the separator
9129
# otherwise default to the standard path separator (i.e. ":") - it is
9130
# assumed that no part of a normal pathname contains ";" but that should
9131
# okay in the real world where ";" in dirpaths is itself problematic.
9132
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9134
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9137
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9139
need_lib_prefix=unknown
9140
hardcode_into_libs=no
9142
# when you set need_version to no, make sure it does not cause -set_version
9143
# flags to be left without arguments
9144
need_version=unknown
9149
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9150
shlibpath_var=LIBPATH
9152
# AIX 3 has no versioning support, so we append a major version to the name.
9153
soname_spec='${libname}${release}${shared_ext}$major'
9160
hardcode_into_libs=yes
9161
if test "$host_cpu" = ia64; then
9162
# AIX 5 supports IA64
9163
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9164
shlibpath_var=LD_LIBRARY_PATH
9166
# With GCC up to 2.95.x, collect2 would create an import file
9167
# for dependence libraries. The import file would start with
9168
# the line `#! .'. This would cause the generated library to
9169
# depend on `.', always an invalid library. This was fixed in
9170
# development snapshots of GCC prior to 3.0.
9172
aix4 | aix4.[01] | aix4.[01].*)
9173
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9175
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9182
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9183
# soname into executable. Probably we can add versioning support to
9184
# collect2, so additional links can be useful in future.
9185
if test "$aix_use_runtimelinking" = yes; then
9186
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
9187
# instead of lib<name>.a to let people know that these are not
9188
# typical AIX shared libraries.
9189
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9191
# We preserve .a as extension for shared libraries through AIX4.2
9192
# and later when we are not doing run time linking.
9193
library_names_spec='${libname}${release}.a $libname.a'
9194
soname_spec='${libname}${release}${shared_ext}$major'
9196
shlibpath_var=LIBPATH
9201
library_names_spec='$libname.ixlibrary $libname.a'
9202
# Create ${libname}_ixlibrary.a entries in /sys/libs.
9203
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'
9207
library_names_spec='${libname}${shared_ext}'
9208
dynamic_linker="$host_os ld.so"
9209
shlibpath_var=LIBRARY_PATH
9215
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9216
soname_spec='${libname}${release}${shared_ext}$major'
9217
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9218
shlibpath_var=LD_LIBRARY_PATH
9219
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9220
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9221
# the default ld.so.conf also contains /usr/contrib/lib and
9222
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9223
# libtool to hard-code these into programs
9226
cygwin* | mingw* | pw32*)
9227
version_type=windows
9232
case $GCC,$host_os in
9233
yes,cygwin* | yes,mingw* | yes,pw32*)
9234
library_names_spec='$libname.dll.a'
9235
# DLL is installed to $(libdir)/../bin by postinstall_cmds
9236
postinstall_cmds='base_file=`basename \${file}`~
9237
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9238
dldir=$destdir/`dirname \$dlpath`~
9239
test -d \$dldir || mkdir -p \$dldir~
9240
$install_prog $dir/$dlname \$dldir/$dlname~
9241
chmod a+x \$dldir/$dlname'
9242
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9243
dlpath=$dir/\$dldll~
9245
shlibpath_overrides_runpath=yes
9249
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
9250
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9251
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9254
# MinGW DLLs use traditional 'lib' prefix
9255
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9256
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9257
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9258
# It is most probably a Windows format PATH printed by
9259
# mingw gcc, but we are running on Cygwin. Gcc prints its search
9260
# path with ; separators, and with drive letters. We can handle the
9261
# drive letters (cygwin fileutils understands them), so leave them,
9262
# especially as we might pass files found there to a mingw objdump,
9263
# which wouldn't understand a cygwinified path. Ahh.
9264
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9266
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9270
# pw32 DLLs use 'pw' prefix rather than 'lib'
9271
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9277
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9280
dynamic_linker='Win32 ld.exe'
9281
# FIXME: first we should search . and the directory the executable is in
9285
darwin* | rhapsody*)
9286
dynamic_linker="$host_os dyld"
9290
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9291
soname_spec='${libname}${release}${major}$shared_ext'
9292
shlibpath_overrides_runpath=yes
9293
shlibpath_var=DYLD_LIBRARY_PATH
9294
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9295
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9296
if test "$GCC" = yes; then
9297
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"`
9299
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9301
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9308
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9309
soname_spec='${libname}${release}${shared_ext}$major'
9310
shlibpath_var=LD_LIBRARY_PATH
9317
freebsd* | dragonfly*)
9318
# DragonFly does not have aout. When/if they implement a new
9319
# versioning mechanism, adjust this.
9320
if test -x /usr/bin/objformat; then
9321
objformat=`/usr/bin/objformat`
9324
freebsd[123]*) objformat=aout ;;
9328
version_type=freebsd-$objformat
9329
case $version_type in
9331
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9336
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9340
shlibpath_var=LD_LIBRARY_PATH
9343
shlibpath_overrides_runpath=yes
9345
freebsd3.[01]* | freebsdelf3.[01]*)
9346
shlibpath_overrides_runpath=yes
9347
hardcode_into_libs=yes
9349
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9350
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9351
shlibpath_overrides_runpath=no
9352
hardcode_into_libs=yes
9354
freebsd*) # from 4.6 on
9355
shlibpath_overrides_runpath=yes
9356
hardcode_into_libs=yes
9365
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9366
soname_spec='${libname}${release}${shared_ext}$major'
9367
shlibpath_var=LD_LIBRARY_PATH
9368
hardcode_into_libs=yes
9371
hpux9* | hpux10* | hpux11*)
9372
# Give a soname corresponding to the major version so that dld.sl refuses to
9373
# link against other versions.
9380
hardcode_into_libs=yes
9381
dynamic_linker="$host_os dld.so"
9382
shlibpath_var=LD_LIBRARY_PATH
9383
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9384
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9385
soname_spec='${libname}${release}${shared_ext}$major'
9386
if test "X$HPUX_IA64_MODE" = X32; then
9387
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9389
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9391
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9395
hardcode_into_libs=yes
9396
dynamic_linker="$host_os dld.sl"
9397
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9398
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9399
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9400
soname_spec='${libname}${release}${shared_ext}$major'
9401
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9402
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9406
dynamic_linker="$host_os dld.sl"
9407
shlibpath_var=SHLIB_PATH
9408
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9409
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9410
soname_spec='${libname}${release}${shared_ext}$major'
9413
# HP-UX runs *really* slowly unless shared libraries are mode 555.
9414
postinstall_cmds='chmod 555 $lib'
9421
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9422
soname_spec='${libname}${release}${shared_ext}$major'
9423
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9424
shlibpath_var=LD_LIBRARY_PATH
9425
shlibpath_overrides_runpath=no
9426
hardcode_into_libs=yes
9429
irix5* | irix6* | nonstopux*)
9431
nonstopux*) version_type=nonstopux ;;
9433
if test "$lt_cv_prog_gnu_ld" = yes; then
9441
soname_spec='${libname}${release}${shared_ext}$major'
9442
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9444
irix5* | nonstopux*)
9448
case $LD in # libtool.m4 will add one of these switches to LD
9449
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9450
libsuff= shlibsuff= libmagic=32-bit;;
9451
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9452
libsuff=32 shlibsuff=N32 libmagic=N32;;
9453
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9454
libsuff=64 shlibsuff=64 libmagic=64-bit;;
9455
*) libsuff= shlibsuff= libmagic=never-match;;
9459
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9460
shlibpath_overrides_runpath=no
9461
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9462
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9463
hardcode_into_libs=yes
9466
# No shared lib support for Linux oldld, aout, or coff.
9467
linux*oldld* | linux*aout* | linux*coff*)
9471
# This must be Linux ELF.
9472
linux* | k*bsd*-gnu)
9476
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9477
soname_spec='${libname}${release}${shared_ext}$major'
9478
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9479
shlibpath_var=LD_LIBRARY_PATH
9480
shlibpath_overrides_runpath=no
9481
# This implies no fast_install, which is unacceptable.
9482
# Some rework will be needed to allow for fast_install
9483
# before this can be enabled.
9484
hardcode_into_libs=yes
9486
# Append ld.so.conf contents to the search path
9487
if test -f /etc/ld.so.conf; then
9488
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' ' '`
9489
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9492
# We used to test for /lib/ld.so.1 and disable shared libraries on
9493
# powerpc, because MkLinux only supported shared libraries with the
9494
# GNU dynamic linker. Since this was broken with cross compilers,
9495
# most powerpc-linux boxes support dynamic linking these days and
9496
# people can always --disable-shared, the test was removed, and we
9497
# assume the GNU/Linux dynamic linker is in use.
9498
dynamic_linker='GNU/Linux ld.so'
9505
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9506
soname_spec='${libname}${release}${shared_ext}$major'
9507
shlibpath_var=LD_LIBRARY_PATH
9508
shlibpath_overrides_runpath=no
9509
hardcode_into_libs=yes
9510
dynamic_linker='NetBSD ld.elf_so'
9517
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9518
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9519
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9520
dynamic_linker='NetBSD (a.out) ld.so'
9522
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9523
soname_spec='${libname}${release}${shared_ext}$major'
9524
dynamic_linker='NetBSD ld.elf_so'
9526
shlibpath_var=LD_LIBRARY_PATH
9527
shlibpath_overrides_runpath=yes
9528
hardcode_into_libs=yes
9533
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9534
shlibpath_var=LD_LIBRARY_PATH
9535
shlibpath_overrides_runpath=yes
9542
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9543
soname_spec='${libname}${release}${shared_ext}$major'
9544
shlibpath_var=LD_LIBRARY_PATH
9545
shlibpath_overrides_runpath=yes
9550
sys_lib_dlsearch_path_spec="/usr/lib"
9552
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9554
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9555
*) need_version=no ;;
9557
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9558
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9559
shlibpath_var=LD_LIBRARY_PATH
9560
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9562
openbsd2.[89] | openbsd2.[89].*)
9563
shlibpath_overrides_runpath=no
9566
shlibpath_overrides_runpath=yes
9570
shlibpath_overrides_runpath=yes
9575
libname_spec='$name'
9578
library_names_spec='$libname${shared_ext} $libname.a'
9579
dynamic_linker='OS/2 ld.exe'
9580
shlibpath_var=LIBPATH
9583
osf3* | osf4* | osf5*)
9587
soname_spec='${libname}${release}${shared_ext}$major'
9588
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9589
shlibpath_var=LD_LIBRARY_PATH
9590
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9591
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9598
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9599
soname_spec='${libname}${release}${shared_ext}$major'
9600
shlibpath_var=LD_LIBRARY_PATH
9601
shlibpath_overrides_runpath=yes
9602
hardcode_into_libs=yes
9603
# ldd complains unless libraries are executable
9604
postinstall_cmds='chmod +x $lib'
9609
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9610
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9611
shlibpath_var=LD_LIBRARY_PATH
9612
shlibpath_overrides_runpath=yes
9613
if test "$with_gnu_ld" = yes; then
9621
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9622
soname_spec='${libname}${release}${shared_ext}$major'
9623
shlibpath_var=LD_LIBRARY_PATH
9624
case $host_vendor in
9626
shlibpath_overrides_runpath=no
9628
export_dynamic_flag_spec='${wl}-Blargedynsym'
9629
runpath_var=LD_RUN_PATH
9637
shlibpath_overrides_runpath=no
9638
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9644
if test -d /usr/nec ;then
9646
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9647
soname_spec='$libname${shared_ext}.$major'
9648
shlibpath_var=LD_LIBRARY_PATH
9652
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9653
version_type=freebsd-elf
9656
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9657
soname_spec='${libname}${release}${shared_ext}$major'
9658
shlibpath_var=LD_LIBRARY_PATH
9659
hardcode_into_libs=yes
9660
if test "$with_gnu_ld" = yes; then
9661
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9662
shlibpath_overrides_runpath=no
9664
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9665
shlibpath_overrides_runpath=yes
9668
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9672
sys_lib_dlsearch_path_spec='/usr/lib'
9677
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9678
soname_spec='${libname}${release}${shared_ext}$major'
9679
shlibpath_var=LD_LIBRARY_PATH
9686
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9687
echo "${ECHO_T}$dynamic_linker" >&6; }
9688
test "$dynamic_linker" = no && can_build_shared=no
9690
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9691
if test "$GCC" = yes; then
9692
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9695
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9696
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9698
if test -n "$hardcode_libdir_flag_spec" || \
9699
test -n "$runpath_var" || \
9700
test "X$hardcode_automatic" = "Xyes" ; then
9702
# We can hardcode non-existant directories.
9703
if test "$hardcode_direct" != no &&
9704
# If the only mechanism to avoid hardcoding is shlibpath_var, we
9705
# have to relink, otherwise we might link with an installed library
9706
# when we should be linking with a yet-to-be-installed one
9707
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9708
test "$hardcode_minus_L" != no; then
9709
# Linking always hardcodes the temporary library directory.
9710
hardcode_action=relink
9712
# We can link without hardcoding, and we can hardcode nonexisting dirs.
9713
hardcode_action=immediate
9716
# We cannot hardcode anything, or else we can only hardcode existing
9718
hardcode_action=unsupported
9720
{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
9721
echo "${ECHO_T}$hardcode_action" >&6; }
9723
if test "$hardcode_action" = relink; then
9724
# Fast installation is not supported
9725
enable_fast_install=no
9726
elif test "$shlibpath_overrides_runpath" = yes ||
9727
test "$enable_shared" = no; then
9728
# Fast installation is not necessary
9729
enable_fast_install=needless
9734
{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9735
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9736
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9737
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9738
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9739
{ echo "$as_me:$LINENO: result: yes" >&5
9740
echo "${ECHO_T}yes" >&6; }
9742
# FIXME - insert some real tests, host_os isn't really good enough
9745
if test -n "$STRIP" ; then
9746
striplib="$STRIP -x"
9747
{ echo "$as_me:$LINENO: result: yes" >&5
9748
echo "${ECHO_T}yes" >&6; }
9750
{ echo "$as_me:$LINENO: result: no" >&5
9751
echo "${ECHO_T}no" >&6; }
9755
{ echo "$as_me:$LINENO: result: no" >&5
9756
echo "${ECHO_T}no" >&6; }
9761
if test "x$enable_dlopen" != xyes; then
9762
enable_dlopen=unknown
9763
enable_dlopen_self=unknown
9764
enable_dlopen_self_static=unknown
9771
lt_cv_dlopen="load_add_on"
9773
lt_cv_dlopen_self=yes
9777
lt_cv_dlopen="LoadLibrary"
9782
lt_cv_dlopen="dlopen"
9787
# if libdl is installed we need to link against it
9788
{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9789
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9790
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9791
echo $ECHO_N "(cached) $ECHO_C" >&6
9793
ac_check_lib_save_LIBS=$LIBS
9795
cat >conftest.$ac_ext <<_ACEOF
9798
cat confdefs.h >>conftest.$ac_ext
9799
cat >>conftest.$ac_ext <<_ACEOF
9800
/* end confdefs.h. */
9802
/* Override any GCC internal prototype to avoid an error.
9803
Use char because int might match the return type of a GCC
9804
builtin and then its argument prototype would still apply. */
9817
rm -f conftest.$ac_objext conftest$ac_exeext
9818
if { (ac_try="$ac_link"
9820
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9821
*) ac_try_echo=$ac_try;;
9823
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9824
(eval "$ac_link") 2>conftest.er1
9826
grep -v '^ *+' conftest.er1 >conftest.err
9828
cat conftest.err >&5
9829
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9830
(exit $ac_status); } &&
9831
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9832
{ (case "(($ac_try" in
9833
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9834
*) ac_try_echo=$ac_try;;
9836
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9837
(eval "$ac_try") 2>&5
9839
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9840
(exit $ac_status); }; } &&
9841
{ ac_try='test -s conftest$ac_exeext'
9842
{ (case "(($ac_try" in
9843
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9844
*) ac_try_echo=$ac_try;;
9846
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9847
(eval "$ac_try") 2>&5
9849
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9850
(exit $ac_status); }; }; then
9851
ac_cv_lib_dl_dlopen=yes
9853
echo "$as_me: failed program was:" >&5
9854
sed 's/^/| /' conftest.$ac_ext >&5
9856
ac_cv_lib_dl_dlopen=no
9859
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9860
conftest$ac_exeext conftest.$ac_ext
9861
LIBS=$ac_check_lib_save_LIBS
9863
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9864
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9865
if test $ac_cv_lib_dl_dlopen = yes; then
9866
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9871
lt_cv_dlopen_self=yes
9878
{ echo "$as_me:$LINENO: checking for shl_load" >&5
9879
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9880
if test "${ac_cv_func_shl_load+set}" = set; then
9881
echo $ECHO_N "(cached) $ECHO_C" >&6
9883
cat >conftest.$ac_ext <<_ACEOF
9886
cat confdefs.h >>conftest.$ac_ext
9887
cat >>conftest.$ac_ext <<_ACEOF
9888
/* end confdefs.h. */
9889
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9890
For example, HP-UX 11i <limits.h> declares gettimeofday. */
9891
#define shl_load innocuous_shl_load
9893
/* System header to define __stub macros and hopefully few prototypes,
9894
which can conflict with char shl_load (); below.
9895
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9896
<limits.h> exists even on freestanding compilers. */
9899
# include <limits.h>
9901
# include <assert.h>
9906
/* Override any GCC internal prototype to avoid an error.
9907
Use char because int might match the return type of a GCC
9908
builtin and then its argument prototype would still apply. */
9913
/* The GNU C library defines this for functions which it implements
9914
to always fail with ENOSYS. Some functions are actually named
9915
something starting with __ and the normal name is an alias. */
9916
#if defined __stub_shl_load || defined __stub___shl_load
9928
rm -f conftest.$ac_objext conftest$ac_exeext
9929
if { (ac_try="$ac_link"
9931
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9932
*) ac_try_echo=$ac_try;;
9934
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9935
(eval "$ac_link") 2>conftest.er1
9937
grep -v '^ *+' conftest.er1 >conftest.err
9939
cat conftest.err >&5
9940
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9941
(exit $ac_status); } &&
9942
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9943
{ (case "(($ac_try" in
9944
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9945
*) ac_try_echo=$ac_try;;
9947
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9948
(eval "$ac_try") 2>&5
9950
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9951
(exit $ac_status); }; } &&
9952
{ ac_try='test -s conftest$ac_exeext'
9953
{ (case "(($ac_try" in
9954
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9955
*) ac_try_echo=$ac_try;;
9957
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9958
(eval "$ac_try") 2>&5
9960
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961
(exit $ac_status); }; }; then
9962
ac_cv_func_shl_load=yes
9964
echo "$as_me: failed program was:" >&5
9965
sed 's/^/| /' conftest.$ac_ext >&5
9967
ac_cv_func_shl_load=no
9970
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9971
conftest$ac_exeext conftest.$ac_ext
9973
{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9974
echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9975
if test $ac_cv_func_shl_load = yes; then
9976
lt_cv_dlopen="shl_load"
9978
{ echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9979
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9980
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9981
echo $ECHO_N "(cached) $ECHO_C" >&6
9983
ac_check_lib_save_LIBS=$LIBS
9985
cat >conftest.$ac_ext <<_ACEOF
9988
cat confdefs.h >>conftest.$ac_ext
9989
cat >>conftest.$ac_ext <<_ACEOF
9990
/* end confdefs.h. */
9992
/* Override any GCC internal prototype to avoid an error.
9993
Use char because int might match the return type of a GCC
9994
builtin and then its argument prototype would still apply. */
10002
return shl_load ();
10007
rm -f conftest.$ac_objext conftest$ac_exeext
10008
if { (ac_try="$ac_link"
10009
case "(($ac_try" in
10010
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10011
*) ac_try_echo=$ac_try;;
10013
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10014
(eval "$ac_link") 2>conftest.er1
10016
grep -v '^ *+' conftest.er1 >conftest.err
10018
cat conftest.err >&5
10019
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10020
(exit $ac_status); } &&
10021
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10022
{ (case "(($ac_try" in
10023
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10024
*) ac_try_echo=$ac_try;;
10026
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10027
(eval "$ac_try") 2>&5
10029
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10030
(exit $ac_status); }; } &&
10031
{ ac_try='test -s conftest$ac_exeext'
10032
{ (case "(($ac_try" in
10033
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10034
*) ac_try_echo=$ac_try;;
10036
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10037
(eval "$ac_try") 2>&5
10039
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10040
(exit $ac_status); }; }; then
10041
ac_cv_lib_dld_shl_load=yes
10043
echo "$as_me: failed program was:" >&5
10044
sed 's/^/| /' conftest.$ac_ext >&5
10046
ac_cv_lib_dld_shl_load=no
10049
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10050
conftest$ac_exeext conftest.$ac_ext
10051
LIBS=$ac_check_lib_save_LIBS
10053
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10054
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10055
if test $ac_cv_lib_dld_shl_load = yes; then
10056
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10058
{ echo "$as_me:$LINENO: checking for dlopen" >&5
10059
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10060
if test "${ac_cv_func_dlopen+set}" = set; then
10061
echo $ECHO_N "(cached) $ECHO_C" >&6
10063
cat >conftest.$ac_ext <<_ACEOF
10066
cat confdefs.h >>conftest.$ac_ext
10067
cat >>conftest.$ac_ext <<_ACEOF
10068
/* end confdefs.h. */
10069
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10070
For example, HP-UX 11i <limits.h> declares gettimeofday. */
10071
#define dlopen innocuous_dlopen
10073
/* System header to define __stub macros and hopefully few prototypes,
10074
which can conflict with char dlopen (); below.
10075
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10076
<limits.h> exists even on freestanding compilers. */
10079
# include <limits.h>
10081
# include <assert.h>
10086
/* Override any GCC internal prototype to avoid an error.
10087
Use char because int might match the return type of a GCC
10088
builtin and then its argument prototype would still apply. */
10093
/* The GNU C library defines this for functions which it implements
10094
to always fail with ENOSYS. Some functions are actually named
10095
something starting with __ and the normal name is an alias. */
10096
#if defined __stub_dlopen || defined __stub___dlopen
10108
rm -f conftest.$ac_objext conftest$ac_exeext
10109
if { (ac_try="$ac_link"
10110
case "(($ac_try" in
10111
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10112
*) ac_try_echo=$ac_try;;
10114
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10115
(eval "$ac_link") 2>conftest.er1
10117
grep -v '^ *+' conftest.er1 >conftest.err
10119
cat conftest.err >&5
10120
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10121
(exit $ac_status); } &&
10122
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10123
{ (case "(($ac_try" in
10124
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10125
*) ac_try_echo=$ac_try;;
10127
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10128
(eval "$ac_try") 2>&5
10130
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10131
(exit $ac_status); }; } &&
10132
{ ac_try='test -s conftest$ac_exeext'
10133
{ (case "(($ac_try" in
10134
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10135
*) ac_try_echo=$ac_try;;
10137
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10138
(eval "$ac_try") 2>&5
10140
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10141
(exit $ac_status); }; }; then
10142
ac_cv_func_dlopen=yes
10144
echo "$as_me: failed program was:" >&5
10145
sed 's/^/| /' conftest.$ac_ext >&5
10147
ac_cv_func_dlopen=no
10150
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10151
conftest$ac_exeext conftest.$ac_ext
10153
{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10154
echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10155
if test $ac_cv_func_dlopen = yes; then
10156
lt_cv_dlopen="dlopen"
10158
{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10159
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10160
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10161
echo $ECHO_N "(cached) $ECHO_C" >&6
10163
ac_check_lib_save_LIBS=$LIBS
10165
cat >conftest.$ac_ext <<_ACEOF
10168
cat confdefs.h >>conftest.$ac_ext
10169
cat >>conftest.$ac_ext <<_ACEOF
10170
/* end confdefs.h. */
10172
/* Override any GCC internal prototype to avoid an error.
10173
Use char because int might match the return type of a GCC
10174
builtin and then its argument prototype would still apply. */
10187
rm -f conftest.$ac_objext conftest$ac_exeext
10188
if { (ac_try="$ac_link"
10189
case "(($ac_try" in
10190
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10191
*) ac_try_echo=$ac_try;;
10193
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10194
(eval "$ac_link") 2>conftest.er1
10196
grep -v '^ *+' conftest.er1 >conftest.err
10198
cat conftest.err >&5
10199
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200
(exit $ac_status); } &&
10201
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10202
{ (case "(($ac_try" in
10203
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10204
*) ac_try_echo=$ac_try;;
10206
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10207
(eval "$ac_try") 2>&5
10209
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10210
(exit $ac_status); }; } &&
10211
{ ac_try='test -s conftest$ac_exeext'
10212
{ (case "(($ac_try" in
10213
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10214
*) ac_try_echo=$ac_try;;
10216
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10217
(eval "$ac_try") 2>&5
10219
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10220
(exit $ac_status); }; }; then
10221
ac_cv_lib_dl_dlopen=yes
10223
echo "$as_me: failed program was:" >&5
10224
sed 's/^/| /' conftest.$ac_ext >&5
10226
ac_cv_lib_dl_dlopen=no
10229
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10230
conftest$ac_exeext conftest.$ac_ext
10231
LIBS=$ac_check_lib_save_LIBS
10233
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10234
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10235
if test $ac_cv_lib_dl_dlopen = yes; then
10236
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10238
{ echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10239
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10240
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10241
echo $ECHO_N "(cached) $ECHO_C" >&6
10243
ac_check_lib_save_LIBS=$LIBS
10244
LIBS="-lsvld $LIBS"
10245
cat >conftest.$ac_ext <<_ACEOF
10248
cat confdefs.h >>conftest.$ac_ext
10249
cat >>conftest.$ac_ext <<_ACEOF
10250
/* end confdefs.h. */
10252
/* Override any GCC internal prototype to avoid an error.
10253
Use char because int might match the return type of a GCC
10254
builtin and then its argument prototype would still apply. */
10267
rm -f conftest.$ac_objext conftest$ac_exeext
10268
if { (ac_try="$ac_link"
10269
case "(($ac_try" in
10270
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10271
*) ac_try_echo=$ac_try;;
10273
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10274
(eval "$ac_link") 2>conftest.er1
10276
grep -v '^ *+' conftest.er1 >conftest.err
10278
cat conftest.err >&5
10279
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10280
(exit $ac_status); } &&
10281
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10282
{ (case "(($ac_try" in
10283
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10284
*) ac_try_echo=$ac_try;;
10286
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10287
(eval "$ac_try") 2>&5
10289
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10290
(exit $ac_status); }; } &&
10291
{ ac_try='test -s conftest$ac_exeext'
10292
{ (case "(($ac_try" in
10293
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10294
*) ac_try_echo=$ac_try;;
10296
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10297
(eval "$ac_try") 2>&5
10299
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300
(exit $ac_status); }; }; then
10301
ac_cv_lib_svld_dlopen=yes
10303
echo "$as_me: failed program was:" >&5
10304
sed 's/^/| /' conftest.$ac_ext >&5
10306
ac_cv_lib_svld_dlopen=no
10309
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10310
conftest$ac_exeext conftest.$ac_ext
10311
LIBS=$ac_check_lib_save_LIBS
10313
{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10314
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10315
if test $ac_cv_lib_svld_dlopen = yes; then
10316
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10318
{ echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10319
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10320
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10321
echo $ECHO_N "(cached) $ECHO_C" >&6
10323
ac_check_lib_save_LIBS=$LIBS
10325
cat >conftest.$ac_ext <<_ACEOF
10328
cat confdefs.h >>conftest.$ac_ext
10329
cat >>conftest.$ac_ext <<_ACEOF
10330
/* end confdefs.h. */
10332
/* Override any GCC internal prototype to avoid an error.
10333
Use char because int might match the return type of a GCC
10334
builtin and then its argument prototype would still apply. */
10342
return dld_link ();
10347
rm -f conftest.$ac_objext conftest$ac_exeext
10348
if { (ac_try="$ac_link"
10349
case "(($ac_try" in
10350
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10351
*) ac_try_echo=$ac_try;;
10353
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10354
(eval "$ac_link") 2>conftest.er1
10356
grep -v '^ *+' conftest.er1 >conftest.err
10358
cat conftest.err >&5
10359
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10360
(exit $ac_status); } &&
10361
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10362
{ (case "(($ac_try" in
10363
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10364
*) ac_try_echo=$ac_try;;
10366
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10367
(eval "$ac_try") 2>&5
10369
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10370
(exit $ac_status); }; } &&
10371
{ ac_try='test -s conftest$ac_exeext'
10372
{ (case "(($ac_try" in
10373
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10374
*) ac_try_echo=$ac_try;;
10376
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10377
(eval "$ac_try") 2>&5
10379
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10380
(exit $ac_status); }; }; then
10381
ac_cv_lib_dld_dld_link=yes
10383
echo "$as_me: failed program was:" >&5
10384
sed 's/^/| /' conftest.$ac_ext >&5
10386
ac_cv_lib_dld_dld_link=no
10389
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10390
conftest$ac_exeext conftest.$ac_ext
10391
LIBS=$ac_check_lib_save_LIBS
10393
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10394
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10395
if test $ac_cv_lib_dld_dld_link = yes; then
10396
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10417
if test "x$lt_cv_dlopen" != xno; then
10423
case $lt_cv_dlopen in
10425
save_CPPFLAGS="$CPPFLAGS"
10426
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10428
save_LDFLAGS="$LDFLAGS"
10429
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10432
LIBS="$lt_cv_dlopen_libs $LIBS"
10434
{ echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10435
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10436
if test "${lt_cv_dlopen_self+set}" = set; then
10437
echo $ECHO_N "(cached) $ECHO_C" >&6
10439
if test "$cross_compiling" = yes; then :
10440
lt_cv_dlopen_self=cross
10442
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10443
lt_status=$lt_dlunknown
10444
cat > conftest.$ac_ext <<EOF
10445
#line 10445 "configure"
10446
#include "confdefs.h"
10455
# define LT_DLGLOBAL RTLD_GLOBAL
10458
# define LT_DLGLOBAL DL_GLOBAL
10460
# define LT_DLGLOBAL 0
10464
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10465
find out it does not work in some platform. */
10466
#ifndef LT_DLLAZY_OR_NOW
10468
# define LT_DLLAZY_OR_NOW RTLD_LAZY
10471
# define LT_DLLAZY_OR_NOW DL_LAZY
10474
# define LT_DLLAZY_OR_NOW RTLD_NOW
10477
# define LT_DLLAZY_OR_NOW DL_NOW
10479
# define LT_DLLAZY_OR_NOW 0
10487
extern "C" void exit (int);
10490
void fnord() { int i=42;}
10493
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10494
int status = $lt_dlunknown;
10498
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10499
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10500
/* dlclose (self); */
10508
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10509
(eval $ac_link) 2>&5
10511
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10512
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10513
(./conftest; exit; ) >&5 2>/dev/null
10515
case x$lt_status in
10516
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10517
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10518
x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10521
# compilation failed
10522
lt_cv_dlopen_self=no
10529
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10530
echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10532
if test "x$lt_cv_dlopen_self" = xyes; then
10533
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10534
{ echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10535
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10536
if test "${lt_cv_dlopen_self_static+set}" = set; then
10537
echo $ECHO_N "(cached) $ECHO_C" >&6
10539
if test "$cross_compiling" = yes; then :
10540
lt_cv_dlopen_self_static=cross
10542
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10543
lt_status=$lt_dlunknown
10544
cat > conftest.$ac_ext <<EOF
10545
#line 10545 "configure"
10546
#include "confdefs.h"
10555
# define LT_DLGLOBAL RTLD_GLOBAL
10558
# define LT_DLGLOBAL DL_GLOBAL
10560
# define LT_DLGLOBAL 0
10564
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10565
find out it does not work in some platform. */
10566
#ifndef LT_DLLAZY_OR_NOW
10568
# define LT_DLLAZY_OR_NOW RTLD_LAZY
10571
# define LT_DLLAZY_OR_NOW DL_LAZY
10574
# define LT_DLLAZY_OR_NOW RTLD_NOW
10577
# define LT_DLLAZY_OR_NOW DL_NOW
10579
# define LT_DLLAZY_OR_NOW 0
10587
extern "C" void exit (int);
10590
void fnord() { int i=42;}
10593
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10594
int status = $lt_dlunknown;
10598
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10599
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10600
/* dlclose (self); */
10608
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10609
(eval $ac_link) 2>&5
10611
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10612
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10613
(./conftest; exit; ) >&5 2>/dev/null
10615
case x$lt_status in
10616
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10617
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10618
x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10621
# compilation failed
10622
lt_cv_dlopen_self_static=no
10629
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10630
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10633
CPPFLAGS="$save_CPPFLAGS"
10634
LDFLAGS="$save_LDFLAGS"
10639
case $lt_cv_dlopen_self in
10640
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10641
*) enable_dlopen_self=unknown ;;
10644
case $lt_cv_dlopen_self_static in
10645
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10646
*) enable_dlopen_self_static=unknown ;;
10651
# Report which library types will actually be built
10652
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10653
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10654
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
10655
echo "${ECHO_T}$can_build_shared" >&6; }
10657
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10658
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10659
test "$can_build_shared" = "no" && enable_shared=no
10661
# On AIX, shared libraries and static libraries use the same namespace, and
10662
# are all built from PIC.
10665
test "$enable_shared" = yes && enable_static=no
10666
if test -n "$RANLIB"; then
10667
archive_cmds="$archive_cmds~\$RANLIB \$lib"
10668
postinstall_cmds='$RANLIB $lib'
10673
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10674
test "$enable_shared" = yes && enable_static=no
10678
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10679
echo "${ECHO_T}$enable_shared" >&6; }
10681
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10682
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10683
# Make sure either enable_shared or enable_static is yes.
10684
test "$enable_shared" = yes || enable_static=yes
10685
{ echo "$as_me:$LINENO: result: $enable_static" >&5
10686
echo "${ECHO_T}$enable_static" >&6; }
10688
# The else clause should only fire when bootstrapping the
10689
# libtool distribution, otherwise you forgot to ship ltmain.sh
10690
# with your package, and you will get complaints that there are
10691
# no rules to generate ltmain.sh.
10692
if test -f "$ltmain"; then
10693
# See if we are running on zsh, and set the options which allow our commands through
10694
# without removal of \ escapes.
10695
if test -n "${ZSH_VERSION+set}" ; then
10696
setopt NO_GLOB_SUBST
10698
# Now quote all the things that may contain metacharacters while being
10699
# careful not to overquote the AC_SUBSTed values. We take copies of the
10700
# variables and quote the copies for generation of the libtool script.
10701
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10703
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10704
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10705
deplibs_check_method reload_flag reload_cmds need_locks \
10706
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10707
lt_cv_sys_global_symbol_to_c_name_address \
10708
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10709
old_postinstall_cmds old_postuninstall_cmds \
10713
lt_prog_compiler_wl \
10714
lt_prog_compiler_pic \
10715
lt_prog_compiler_static \
10716
lt_prog_compiler_no_builtin_flag \
10717
export_dynamic_flag_spec \
10718
thread_safe_flag_spec \
10719
whole_archive_flag_spec \
10720
enable_shared_with_static_runtimes \
10722
old_archive_from_new_cmds \
10727
compiler_lib_search_path \
10729
archive_expsym_cmds \
10731
postuninstall_cmds \
10732
old_archive_from_expsyms_cmds \
10733
allow_undefined_flag \
10734
no_undefined_flag \
10735
export_symbols_cmds \
10736
hardcode_libdir_flag_spec \
10737
hardcode_libdir_flag_spec_ld \
10738
hardcode_libdir_separator \
10739
hardcode_automatic \
10741
module_expsym_cmds \
10742
lt_cv_prog_compiler_c_o \
10744
include_expsyms; do
10747
old_archive_cmds | \
10748
old_archive_from_new_cmds | \
10750
archive_expsym_cmds | \
10752
module_expsym_cmds | \
10753
old_archive_from_expsyms_cmds | \
10754
export_symbols_cmds | \
10755
extract_expsyms_cmds | reload_cmds | finish_cmds | \
10756
postinstall_cmds | postuninstall_cmds | \
10757
old_postinstall_cmds | old_postuninstall_cmds | \
10758
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10759
# Double-quote double-evaled strings.
10760
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10763
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10769
*'\$0 --fallback-echo"')
10770
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10774
cfgfile="${ofile}T"
10775
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10777
{ echo "$as_me:$LINENO: creating $ofile" >&5
10778
echo "$as_me: creating $ofile" >&6;}
10780
cat <<__EOF__ >> "$cfgfile"
10783
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10784
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10785
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10787
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10788
# Free Software Foundation, Inc.
10790
# This file is part of GNU Libtool:
10791
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10793
# This program is free software; you can redistribute it and/or modify
10794
# it under the terms of the GNU General Public License as published by
10795
# the Free Software Foundation; either version 2 of the License, or
10796
# (at your option) any later version.
10798
# This program is distributed in the hope that it will be useful, but
10799
# WITHOUT ANY WARRANTY; without even the implied warranty of
10800
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10801
# General Public License for more details.
10803
# You should have received a copy of the GNU General Public License
10804
# along with this program; if not, write to the Free Software
10805
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10807
# As a special exception to the GNU General Public License, if you
10808
# distribute this file as part of a program that contains a
10809
# configuration script generated by Autoconf, you may include it under
10810
# the same distribution terms that you use for the rest of that program.
10812
# A sed program that does not truncate output.
10815
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10816
Xsed="$SED -e 1s/^X//"
10818
# The HP-UX ksh and POSIX shell print the target directory to stdout
10819
# if CDPATH is set.
10820
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10822
# The names of the tagged configurations supported by this script.
10825
# ### BEGIN LIBTOOL CONFIG
10827
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10829
# Shell to use when invoking shell scripts.
10832
# Whether or not to build shared libraries.
10833
build_libtool_libs=$enable_shared
10835
# Whether or not to build static libraries.
10836
build_old_libs=$enable_static
10838
# Whether or not to add -lc for building shared libraries.
10839
build_libtool_need_lc=$archive_cmds_need_lc
10841
# Whether or not to disallow shared libs when runtime libs are static
10842
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10844
# Whether or not to optimize for fast installation.
10845
fast_install=$enable_fast_install
10848
host_alias=$host_alias
10852
# The build system.
10853
build_alias=$build_alias
10857
# An echo program that does not interpret backslashes.
10862
AR_FLAGS=$lt_AR_FLAGS
10867
# LTCC compiler flags.
10868
LTCFLAGS=$lt_LTCFLAGS
10870
# A language-specific compiler.
10873
# Is the compiler the GNU C compiler?
10879
# The linker used to build libraries.
10882
# Whether we need hard or soft links.
10885
# A BSD-compatible nm program.
10888
# A symbol stripping program
10891
# Used to examine libraries when file_magic_cmd begins "file"
10892
MAGIC_CMD=$MAGIC_CMD
10894
# Used on cygwin: DLL creation program.
10897
# Used on cygwin: object dumper.
10900
# Used on cygwin: assembler.
10903
# The name of the directory that contains temporary libtool files.
10906
# How to create reloadable object files.
10907
reload_flag=$lt_reload_flag
10908
reload_cmds=$lt_reload_cmds
10910
# How to pass a linker flag through the compiler.
10911
wl=$lt_lt_prog_compiler_wl
10913
# Object file suffix (normally "o").
10914
objext="$ac_objext"
10916
# Old archive suffix (normally "a").
10919
# Shared library suffix (normally ".so").
10920
shrext_cmds='$shrext_cmds'
10922
# Executable file suffix (normally "").
10925
# Additional compiler flags for building library objects.
10926
pic_flag=$lt_lt_prog_compiler_pic
10929
# What is the maximum length of a command?
10930
max_cmd_len=$lt_cv_sys_max_cmd_len
10932
# Does compiler simultaneously support -c and -o options?
10933
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10935
# Must we lock files when doing compilation?
10936
need_locks=$lt_need_locks
10938
# Do we need the lib prefix for modules?
10939
need_lib_prefix=$need_lib_prefix
10941
# Do we need a version for libraries?
10942
need_version=$need_version
10944
# Whether dlopen is supported.
10945
dlopen_support=$enable_dlopen
10947
# Whether dlopen of programs is supported.
10948
dlopen_self=$enable_dlopen_self
10950
# Whether dlopen of statically linked programs is supported.
10951
dlopen_self_static=$enable_dlopen_self_static
10953
# Compiler flag to prevent dynamic linking.
10954
link_static_flag=$lt_lt_prog_compiler_static
10956
# Compiler flag to turn off builtin functions.
10957
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10959
# Compiler flag to allow reflexive dlopens.
10960
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10962
# Compiler flag to generate shared objects directly from archives.
10963
whole_archive_flag_spec=$lt_whole_archive_flag_spec
10965
# Compiler flag to generate thread-safe objects.
10966
thread_safe_flag_spec=$lt_thread_safe_flag_spec
10968
# Library versioning type.
10969
version_type=$version_type
10971
# Format of library name prefix.
10972
libname_spec=$lt_libname_spec
10974
# List of archive names. First name is the real one, the rest are links.
10975
# The last name is the one that the linker finds with -lNAME.
10976
library_names_spec=$lt_library_names_spec
10978
# The coded name of the library, if different from the real name.
10979
soname_spec=$lt_soname_spec
10981
# Commands used to build and install an old-style archive.
10983
old_archive_cmds=$lt_old_archive_cmds
10984
old_postinstall_cmds=$lt_old_postinstall_cmds
10985
old_postuninstall_cmds=$lt_old_postuninstall_cmds
10987
# Create an old-style archive from a shared archive.
10988
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10990
# Create a temporary old-style archive to link instead of a shared archive.
10991
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10993
# Commands used to build and install a shared archive.
10994
archive_cmds=$lt_archive_cmds
10995
archive_expsym_cmds=$lt_archive_expsym_cmds
10996
postinstall_cmds=$lt_postinstall_cmds
10997
postuninstall_cmds=$lt_postuninstall_cmds
10999
# Commands used to build a loadable module (assumed same as above if empty)
11000
module_cmds=$lt_module_cmds
11001
module_expsym_cmds=$lt_module_expsym_cmds
11003
# Commands to strip libraries.
11004
old_striplib=$lt_old_striplib
11005
striplib=$lt_striplib
11007
# Dependencies to place before the objects being linked to create a
11009
predep_objects=$lt_predep_objects
11011
# Dependencies to place after the objects being linked to create a
11013
postdep_objects=$lt_postdep_objects
11015
# Dependencies to place before the objects being linked to create a
11017
predeps=$lt_predeps
11019
# Dependencies to place after the objects being linked to create a
11021
postdeps=$lt_postdeps
11023
# The library search path used internally by the compiler when linking
11024
# a shared library.
11025
compiler_lib_search_path=$lt_compiler_lib_search_path
11027
# Method to check whether dependent libraries are shared objects.
11028
deplibs_check_method=$lt_deplibs_check_method
11030
# Command to use when deplibs_check_method == file_magic.
11031
file_magic_cmd=$lt_file_magic_cmd
11033
# Flag that allows shared libraries with undefined symbols to be built.
11034
allow_undefined_flag=$lt_allow_undefined_flag
11036
# Flag that forces no undefined symbols.
11037
no_undefined_flag=$lt_no_undefined_flag
11039
# Commands used to finish a libtool library installation in a directory.
11040
finish_cmds=$lt_finish_cmds
11042
# Same as above, but a single script fragment to be evaled but not shown.
11043
finish_eval=$lt_finish_eval
11045
# Take the output of nm and produce a listing of raw symbols and C names.
11046
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11048
# Transform the output of nm in a proper C declaration
11049
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11051
# Transform the output of nm in a C name address pair
11052
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11054
# This is the shared library runtime path variable.
11055
runpath_var=$runpath_var
11057
# This is the shared library path variable.
11058
shlibpath_var=$shlibpath_var
11060
# Is shlibpath searched before the hard-coded library search path?
11061
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11063
# How to hardcode a shared library path into an executable.
11064
hardcode_action=$hardcode_action
11066
# Whether we should hardcode library paths into libraries.
11067
hardcode_into_libs=$hardcode_into_libs
11069
# Flag to hardcode \$libdir into a binary during linking.
11070
# This must work even if \$libdir does not exist.
11071
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11073
# If ld is used when linking, flag to hardcode \$libdir into
11074
# a binary during linking. This must work even if \$libdir does
11076
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11078
# Whether we need a single -rpath flag with a separated argument.
11079
hardcode_libdir_separator=$lt_hardcode_libdir_separator
11081
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11082
# resulting binary.
11083
hardcode_direct=$hardcode_direct
11085
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11086
# resulting binary.
11087
hardcode_minus_L=$hardcode_minus_L
11089
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11090
# the resulting binary.
11091
hardcode_shlibpath_var=$hardcode_shlibpath_var
11093
# Set to yes if building a shared library automatically hardcodes DIR into the library
11094
# and all subsequent libraries and executables linked against it.
11095
hardcode_automatic=$hardcode_automatic
11097
# Variables whose values should be saved in libtool wrapper scripts and
11098
# restored at relink time.
11099
variables_saved_for_relink="$variables_saved_for_relink"
11101
# Whether libtool must link a program against all its dependency libraries.
11102
link_all_deplibs=$link_all_deplibs
11104
# Compile-time system search path for libraries
11105
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11107
# Run-time system search path for libraries
11108
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11110
# Fix the shell variable \$srcfile for the compiler.
11111
fix_srcfile_path="$fix_srcfile_path"
11113
# Set to yes if exported symbols are required.
11114
always_export_symbols=$always_export_symbols
11116
# The commands to list exported symbols.
11117
export_symbols_cmds=$lt_export_symbols_cmds
11119
# The commands to extract the exported symbol list from a shared archive.
11120
extract_expsyms_cmds=$lt_extract_expsyms_cmds
11122
# Symbols that should not be listed in the preloaded symbols.
11123
exclude_expsyms=$lt_exclude_expsyms
11125
# Symbols that must always be exported.
11126
include_expsyms=$lt_include_expsyms
11128
# ### END LIBTOOL CONFIG
11135
cat <<\EOF >> "$cfgfile"
11137
# AIX sometimes has problems with the GCC collect2 program. For some
11138
# reason, if we set the COLLECT_NAMES environment variable, the problems
11139
# vanish in a puff of smoke.
11140
if test "X${COLLECT_NAMES+set}" != Xset; then
11142
export COLLECT_NAMES
11148
# We use sed instead of cat because bash on DJGPP gets confused if
11149
# if finds mixed CR/LF and LF-only lines. Since sed operates in
11150
# text mode, it properly converts lines to CR/LF. This bash problem
11151
# is reportedly fixed, but why not run on old versions too?
11152
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11154
mv -f "$cfgfile" "$ofile" || \
11155
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11159
# If there is no Makefile yet, we rely on a make rule to execute
11160
# `config.status --recheck' to rerun these tests and create the
11161
# libtool script then.
11162
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11163
if test -f "$ltmain_in"; then
11164
test -f Makefile && make "$ltmain"
11170
ac_cpp='$CPP $CPPFLAGS'
11171
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11172
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11173
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11178
# Check whether --with-tags was given.
11179
if test "${with_tags+set}" = set; then
11180
withval=$with_tags; tagnames="$withval"
11184
if test -f "$ltmain" && test -n "$tagnames"; then
11185
if test ! -f "${ofile}"; then
11186
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11187
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11190
if test -z "$LTCC"; then
11191
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11192
if test -z "$LTCC"; then
11193
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11194
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11196
{ echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11197
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11200
if test -z "$LTCFLAGS"; then
11201
eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11204
# Extract list of available tagged configurations in $ofile.
11205
# Note that this assumes the entire list is on one line.
11206
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11208
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11209
for tagname in $tagnames; do
11211
# Check whether tagname contains only valid characters
11212
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11214
*) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11215
echo "$as_me: error: invalid tag name: $tagname" >&2;}
11216
{ (exit 1); exit 1; }; }
11220
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11222
{ { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11223
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11224
{ (exit 1); exit 1; }; }
11227
# Update the list of available tags.
11228
if test -n "$tagname"; then
11229
echo appending configuration tag \"$tagname\" to $ofile
11233
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11234
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11235
(test "X$CXX" != "Xg++"))) ; then
11237
ac_cpp='$CXXCPP $CPPFLAGS'
11238
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11239
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11240
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11245
archive_cmds_need_lc_CXX=no
11246
allow_undefined_flag_CXX=
11247
always_export_symbols_CXX=no
11248
archive_expsym_cmds_CXX=
11249
export_dynamic_flag_spec_CXX=
11250
hardcode_direct_CXX=no
11251
hardcode_libdir_flag_spec_CXX=
11252
hardcode_libdir_flag_spec_ld_CXX=
11253
hardcode_libdir_separator_CXX=
11254
hardcode_minus_L_CXX=no
11255
hardcode_shlibpath_var_CXX=unsupported
11256
hardcode_automatic_CXX=no
11258
module_expsym_cmds_CXX=
11259
link_all_deplibs_CXX=unknown
11260
old_archive_cmds_CXX=$old_archive_cmds
11261
no_undefined_flag_CXX=
11262
whole_archive_flag_spec_CXX=
11263
enable_shared_with_static_runtimes_CXX=no
11265
# Dependencies to place before and after the object being linked:
11266
predep_objects_CXX=
11267
postdep_objects_CXX=
11270
compiler_lib_search_path_CXX=
11272
# Source file extension for C++ test sources.
11275
# Object file extension for compiled C++ test sources.
11279
# Code to be used in simple compile tests
11280
lt_simple_compile_test_code="int some_variable = 0;\n"
11282
# Code to be used in simple link tests
11283
lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11285
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11287
# If no C compiler was specified, use CC.
11290
# If no C compiler flags were specified, use CFLAGS.
11291
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11293
# Allow CC to be a program name with arguments.
11297
# save warnings/boilerplate of simple test code
11298
ac_outfile=conftest.$ac_objext
11299
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11300
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11301
_lt_compiler_boilerplate=`cat conftest.err`
11304
ac_outfile=conftest.$ac_objext
11305
printf "$lt_simple_link_test_code" >conftest.$ac_ext
11306
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11307
_lt_linker_boilerplate=`cat conftest.err`
11311
# Allow CC to be a program name with arguments.
11316
lt_save_with_gnu_ld=$with_gnu_ld
11317
lt_save_path_LD=$lt_cv_path_LD
11318
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11319
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11321
$as_unset lt_cv_prog_gnu_ld
11323
if test -n "${lt_cv_path_LDCXX+set}"; then
11324
lt_cv_path_LD=$lt_cv_path_LDCXX
11326
$as_unset lt_cv_path_LD
11328
test -z "${LDCXX+set}" || LD=$LDCXX
11332
for cc_temp in $compiler""; do
11334
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11335
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11340
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11343
# We don't want -fno-exception wen compiling C++ code, so set the
11344
# no_builtin_flag separately
11345
if test "$GXX" = yes; then
11346
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11348
lt_prog_compiler_no_builtin_flag_CXX=
11351
if test "$GXX" = yes; then
11352
# Set up default GNU C++ configuration
11355
# Check whether --with-gnu-ld was given.
11356
if test "${with_gnu_ld+set}" = set; then
11357
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11363
if test "$GCC" = yes; then
11364
# Check if gcc -print-prog-name=ld gives a path.
11365
{ echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11366
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11369
# gcc leaves a trailing carriage return which upsets mingw
11370
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11372
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11375
# Accept absolute paths.
11377
re_direlt='/[^/][^/]*/\.\./'
11378
# Canonicalize the pathname of ld
11379
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11380
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11381
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11383
test -z "$LD" && LD="$ac_prog"
11386
# If it fails, then pretend we aren't using GCC.
11390
# If it is relative, then search for the first ld in PATH.
11391
with_gnu_ld=unknown
11394
elif test "$with_gnu_ld" = yes; then
11395
{ echo "$as_me:$LINENO: checking for GNU ld" >&5
11396
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11398
{ echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11399
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11401
if test "${lt_cv_path_LD+set}" = set; then
11402
echo $ECHO_N "(cached) $ECHO_C" >&6
11404
if test -z "$LD"; then
11405
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11406
for ac_dir in $PATH; do
11408
test -z "$ac_dir" && ac_dir=.
11409
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11410
lt_cv_path_LD="$ac_dir/$ac_prog"
11411
# Check to see if the program is GNU ld. I'd rather use --version,
11412
# but apparently some variants of GNU ld only accept -v.
11413
# Break only if it was the GNU/non-GNU ld that we prefer.
11414
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11415
*GNU* | *'with BFD'*)
11416
test "$with_gnu_ld" != no && break
11419
test "$with_gnu_ld" != yes && break
11426
lt_cv_path_LD="$LD" # Let the user override the test with a path.
11430
LD="$lt_cv_path_LD"
11431
if test -n "$LD"; then
11432
{ echo "$as_me:$LINENO: result: $LD" >&5
11433
echo "${ECHO_T}$LD" >&6; }
11435
{ echo "$as_me:$LINENO: result: no" >&5
11436
echo "${ECHO_T}no" >&6; }
11438
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11439
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11440
{ (exit 1); exit 1; }; }
11441
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11442
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11443
if test "${lt_cv_prog_gnu_ld+set}" = set; then
11444
echo $ECHO_N "(cached) $ECHO_C" >&6
11446
# I'd rather use --version here, but apparently some GNU lds only accept -v.
11447
case `$LD -v 2>&1 </dev/null` in
11448
*GNU* | *'with BFD'*)
11449
lt_cv_prog_gnu_ld=yes
11452
lt_cv_prog_gnu_ld=no
11456
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11457
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11458
with_gnu_ld=$lt_cv_prog_gnu_ld
11462
# Check if GNU C++ uses GNU ld as the underlying linker, since the
11463
# archiving commands below assume that GNU ld is being used.
11464
if test "$with_gnu_ld" = yes; then
11465
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11466
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'
11468
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11469
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11471
# If archive_cmds runs LD, not CC, wlarc should be empty
11472
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11473
# investigate it a little bit more. (MM)
11476
# ancient GNU ld didn't support --whole-archive et. al.
11477
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11478
grep 'no-whole-archive' > /dev/null; then
11479
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11481
whole_archive_flag_spec_CXX=
11487
# A generic and very simple default shared library creation
11488
# command for GNU C++ for the case where it uses the native
11489
# linker, instead of GNU ld. If possible, this setting should
11490
# overridden to take advantage of the native linker features on
11491
# the platform it is being used on.
11492
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11495
# Commands to make compiler produce verbose output that lists
11496
# what "hidden" libraries, object files and flags are used when
11497
# linking a shared library.
11498
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11506
# PORTME: fill in a description of your system's C++ link characteristics
11507
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11508
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11512
# FIXME: insert proper C++ library support
11516
if test "$host_cpu" = ia64; then
11517
# On IA64, the linker does run time linking by default, so we don't
11518
# have to do anything special.
11519
aix_use_runtimelinking=no
11520
exp_sym_flag='-Bexport'
11523
aix_use_runtimelinking=no
11525
# Test if we are trying to use run time linking or normal
11526
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11527
# need to do runtime linking.
11528
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11529
for ld_flag in $LDFLAGS; do
11532
aix_use_runtimelinking=yes
11540
exp_sym_flag='-bexport'
11541
no_entry_flag='-bnoentry'
11544
# When large executables or shared objects are built, AIX ld can
11545
# have problems creating the table of contents. If linking a library
11546
# or program results in "error TOC overflow" add -mminimal-toc to
11547
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11548
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11550
archive_cmds_CXX=''
11551
hardcode_direct_CXX=yes
11552
hardcode_libdir_separator_CXX=':'
11553
link_all_deplibs_CXX=yes
11555
if test "$GXX" = yes; then
11556
case $host_os in aix4.[012]|aix4.[012].*)
11557
# We only want to do this on AIX 4.2 and lower, the check
11558
# below for broken collect2 doesn't work under 4.3+
11559
collect2name=`${CC} -print-prog-name=collect2`
11560
if test -f "$collect2name" && \
11561
strings "$collect2name" | grep resolve_lib_name >/dev/null
11563
# We have reworked collect2
11564
hardcode_direct_CXX=yes
11566
# We have old collect2
11567
hardcode_direct_CXX=unsupported
11568
# It fails to find uninstalled libraries when the uninstalled
11569
# path is not listed in the libpath. Setting hardcode_minus_L
11570
# to unsupported forces relinking
11571
hardcode_minus_L_CXX=yes
11572
hardcode_libdir_flag_spec_CXX='-L$libdir'
11573
hardcode_libdir_separator_CXX=
11577
shared_flag='-shared'
11578
if test "$aix_use_runtimelinking" = yes; then
11579
shared_flag="$shared_flag "'${wl}-G'
11583
if test "$host_cpu" = ia64; then
11584
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11585
# chokes on -Wl,-G. The following line is correct:
11588
if test "$aix_use_runtimelinking" = yes; then
11589
shared_flag='${wl}-G'
11591
shared_flag='${wl}-bM:SRE'
11596
# It seems that -bexpall does not export symbols beginning with
11597
# underscore (_), so it is better to generate a list of symbols to export.
11598
always_export_symbols_CXX=yes
11599
if test "$aix_use_runtimelinking" = yes; then
11600
# Warning - without using the other runtime loading flags (-brtl),
11601
# -berok will link without error, but may produce a broken library.
11602
allow_undefined_flag_CXX='-berok'
11603
# Determine the default libpath from the value encoded in an empty executable.
11604
cat >conftest.$ac_ext <<_ACEOF
11607
cat confdefs.h >>conftest.$ac_ext
11608
cat >>conftest.$ac_ext <<_ACEOF
11609
/* end confdefs.h. */
11619
rm -f conftest.$ac_objext conftest$ac_exeext
11620
if { (ac_try="$ac_link"
11621
case "(($ac_try" in
11622
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11623
*) ac_try_echo=$ac_try;;
11625
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11626
(eval "$ac_link") 2>conftest.er1
11628
grep -v '^ *+' conftest.er1 >conftest.err
11630
cat conftest.err >&5
11631
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11632
(exit $ac_status); } &&
11633
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11634
{ (case "(($ac_try" in
11635
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11636
*) ac_try_echo=$ac_try;;
11638
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11639
(eval "$ac_try") 2>&5
11641
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11642
(exit $ac_status); }; } &&
11643
{ ac_try='test -s conftest$ac_exeext'
11644
{ (case "(($ac_try" in
11645
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11646
*) ac_try_echo=$ac_try;;
11648
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11649
(eval "$ac_try") 2>&5
11651
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11652
(exit $ac_status); }; }; then
11654
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11656
# Check for a 64-bit object if we didn't find anything.
11657
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; }
11660
echo "$as_me: failed program was:" >&5
11661
sed 's/^/| /' conftest.$ac_ext >&5
11666
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11667
conftest$ac_exeext conftest.$ac_ext
11668
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11670
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11672
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"
11674
if test "$host_cpu" = ia64; then
11675
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11676
allow_undefined_flag_CXX="-z nodefs"
11677
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"
11679
# Determine the default libpath from the value encoded in an empty executable.
11680
cat >conftest.$ac_ext <<_ACEOF
11683
cat confdefs.h >>conftest.$ac_ext
11684
cat >>conftest.$ac_ext <<_ACEOF
11685
/* end confdefs.h. */
11695
rm -f conftest.$ac_objext conftest$ac_exeext
11696
if { (ac_try="$ac_link"
11697
case "(($ac_try" in
11698
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11699
*) ac_try_echo=$ac_try;;
11701
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11702
(eval "$ac_link") 2>conftest.er1
11704
grep -v '^ *+' conftest.er1 >conftest.err
11706
cat conftest.err >&5
11707
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11708
(exit $ac_status); } &&
11709
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11710
{ (case "(($ac_try" in
11711
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11712
*) ac_try_echo=$ac_try;;
11714
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11715
(eval "$ac_try") 2>&5
11717
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11718
(exit $ac_status); }; } &&
11719
{ ac_try='test -s conftest$ac_exeext'
11720
{ (case "(($ac_try" in
11721
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11722
*) ac_try_echo=$ac_try;;
11724
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11725
(eval "$ac_try") 2>&5
11727
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728
(exit $ac_status); }; }; then
11730
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11732
# Check for a 64-bit object if we didn't find anything.
11733
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; }
11736
echo "$as_me: failed program was:" >&5
11737
sed 's/^/| /' conftest.$ac_ext >&5
11742
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11743
conftest$ac_exeext conftest.$ac_ext
11744
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11746
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11747
# Warning - without using the other run time loading flags,
11748
# -berok will link without error, but may produce a broken library.
11749
no_undefined_flag_CXX=' ${wl}-bernotok'
11750
allow_undefined_flag_CXX=' ${wl}-berok'
11751
# Exported symbols can be pulled into shared objects from archives
11752
whole_archive_flag_spec_CXX='$convenience'
11753
archive_cmds_need_lc_CXX=yes
11754
# This is similar to how AIX traditionally builds its shared libraries.
11755
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'
11761
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11762
allow_undefined_flag_CXX=unsupported
11763
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11764
# support --undefined. This deserves some investigation. FIXME
11765
archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11772
case $cc_basename in
11774
# FIXME: insert proper C++ library support
11780
cygwin* | mingw* | pw32*)
11781
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11782
# as there is no search path for DLLs.
11783
hardcode_libdir_flag_spec_CXX='-L$libdir'
11784
allow_undefined_flag_CXX=unsupported
11785
always_export_symbols_CXX=no
11786
enable_shared_with_static_runtimes_CXX=yes
11788
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11789
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'
11790
# If the export-symbols file already is a .def file (1st line
11791
# is EXPORTS), use it as is; otherwise, prepend...
11792
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11793
cp $export_symbols $output_objdir/$soname.def;
11795
echo EXPORTS > $output_objdir/$soname.def;
11796
cat $export_symbols >> $output_objdir/$soname.def;
11798
$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'
11803
darwin* | rhapsody*)
11805
rhapsody* | darwin1.[012])
11806
allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11809
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11810
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11812
case ${MACOSX_DEPLOYMENT_TARGET} in
11814
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11817
allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11823
archive_cmds_need_lc_CXX=no
11824
hardcode_direct_CXX=no
11825
hardcode_automatic_CXX=yes
11826
hardcode_shlibpath_var_CXX=unsupported
11827
whole_archive_flag_spec_CXX=''
11828
link_all_deplibs_CXX=yes
11830
if test "$GXX" = yes ; then
11831
lt_int_apple_cc_single_mod=no
11832
output_verbose_link_cmd='echo'
11833
if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11834
lt_int_apple_cc_single_mod=yes
11836
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11837
archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11839
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'
11841
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11842
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11843
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11844
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}'
11846
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}'
11848
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}'
11850
case $cc_basename in
11852
output_verbose_link_cmd='echo'
11853
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'
11854
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11855
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11856
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}'
11857
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}'
11867
case $cc_basename in
11869
# FIXME: insert proper C++ library support
11873
# Green Hills C++ Compiler
11874
# FIXME: insert proper C++ library support
11878
# FIXME: insert proper C++ library support
11884
# C++ shared libraries reported to be fairly broken before switch to ELF
11888
archive_cmds_need_lc_CXX=no
11890
freebsd* | dragonfly*)
11891
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11898
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11899
hardcode_libdir_separator_CXX=:
11900
export_dynamic_flag_spec_CXX='${wl}-E'
11901
hardcode_direct_CXX=yes
11902
hardcode_minus_L_CXX=yes # Not in the search PATH,
11903
# but as the default
11904
# location of the library.
11906
case $cc_basename in
11908
# FIXME: insert proper C++ library support
11912
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'
11913
# Commands to make compiler produce verbose output that lists
11914
# what "hidden" libraries, object files and flags are used when
11915
# linking a shared library.
11917
# There doesn't appear to be a way to prevent this compiler from
11918
# explicitly linking system object files so we need to strip them
11919
# from the output so that they don't get included in the library
11921
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'
11924
if test "$GXX" = yes; then
11925
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'
11927
# FIXME: insert proper C++ library support
11934
if test $with_gnu_ld = no; then
11935
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11936
hardcode_libdir_separator_CXX=:
11940
hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11943
export_dynamic_flag_spec_CXX='${wl}-E'
11949
hardcode_direct_CXX=no
11950
hardcode_shlibpath_var_CXX=no
11953
hardcode_direct_CXX=yes
11954
hardcode_minus_L_CXX=yes # Not in the search PATH,
11955
# but as the default
11956
# location of the library.
11960
case $cc_basename in
11962
# FIXME: insert proper C++ library support
11968
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11971
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11974
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11977
# Commands to make compiler produce verbose output that lists
11978
# what "hidden" libraries, object files and flags are used when
11979
# linking a shared library.
11981
# There doesn't appear to be a way to prevent this compiler from
11982
# explicitly linking system object files so we need to strip them
11983
# from the output so that they don't get included in the library
11985
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'
11988
if test "$GXX" = yes; then
11989
if test $with_gnu_ld = no; then
11992
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11995
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11998
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'
12003
# FIXME: insert proper C++ library support
12010
hardcode_direct_CXX=no
12011
hardcode_shlibpath_var_CXX=no
12012
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12013
export_dynamic_flag_spec_CXX='${wl}-E'
12014
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12015
# Instead, shared libraries are loaded at an image base (0x10000000 by
12016
# default) and relocated if they conflict, which is a slow very memory
12017
# consuming and fragmenting process. To avoid this, we pick a random,
12018
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12019
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
12020
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'
12021
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'
12024
case $cc_basename in
12027
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'
12029
# Archives containing C++ object files must be created using
12030
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
12031
# necessary to make sure instantiated templates are included
12033
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12036
if test "$GXX" = yes; then
12037
if test "$with_gnu_ld" = no; then
12038
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'
12040
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'
12043
link_all_deplibs_CXX=yes
12046
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12047
hardcode_libdir_separator_CXX=:
12049
linux* | k*bsd*-gnu)
12050
case $cc_basename in
12052
# Kuck and Associates, Inc. (KAI) C++ Compiler
12054
# KCC will only create a shared library if the output file
12055
# ends with ".so" (or ".sl" for HP-UX), so rename the library
12056
# to its proper name (with version) after linking.
12057
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'
12058
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'
12059
# Commands to make compiler produce verbose output that lists
12060
# what "hidden" libraries, object files and flags are used when
12061
# linking a shared library.
12063
# There doesn't appear to be a way to prevent this compiler from
12064
# explicitly linking system object files so we need to strip them
12065
# from the output so that they don't get included in the library
12067
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'
12069
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12070
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12072
# Archives containing C++ object files must be created using
12073
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12074
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12079
# version 8.0 and above of icpc choke on multiply defined symbols
12080
# if we add $predep_objects and $postdep_objects, however 7.1 and
12081
# earlier do not add the objects themselves.
12082
case `$CC -V 2>&1` in
12084
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12085
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'
12087
*) # Version 8.0 or newer
12090
ia64*) tmp_idyn=' -i_dynamic';;
12092
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12093
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'
12096
archive_cmds_need_lc_CXX=no
12097
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12098
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12099
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12102
# Portland Group C++ compiler
12103
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12104
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'
12106
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12107
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12108
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'
12112
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12113
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'
12115
runpath_var=LD_RUN_PATH
12116
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12117
hardcode_libdir_separator_CXX=:
12119
# Commands to make compiler produce verbose output that lists
12120
# what "hidden" libraries, object files and flags are used when
12121
# linking a shared library.
12123
# There doesn't appear to be a way to prevent this compiler from
12124
# explicitly linking system object files so we need to strip them
12125
# from the output so that they don't get included in the library
12127
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'
12132
# FIXME: insert proper C++ library support
12136
# FIXME: insert proper C++ library support
12140
case $cc_basename in
12142
# FIXME: insert proper C++ library support
12146
# FIXME: insert proper C++ library support
12151
netbsd* | netbsdelf*-gnu)
12152
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12153
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12155
hardcode_libdir_flag_spec_CXX='-R$libdir'
12156
hardcode_direct_CXX=yes
12157
hardcode_shlibpath_var_CXX=no
12159
# Workaround some broken pre-1.5 toolchains
12160
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12163
# C++ shared libraries are fairly broken
12167
hardcode_direct_CXX=yes
12168
hardcode_shlibpath_var_CXX=no
12169
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12170
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12171
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12172
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12173
export_dynamic_flag_spec_CXX='${wl}-E'
12174
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12176
output_verbose_link_cmd='echo'
12179
case $cc_basename in
12181
# Kuck and Associates, Inc. (KAI) C++ Compiler
12183
# KCC will only create a shared library if the output file
12184
# ends with ".so" (or ".sl" for HP-UX), so rename the library
12185
# to its proper name (with version) after linking.
12186
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'
12188
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12189
hardcode_libdir_separator_CXX=:
12191
# Archives containing C++ object files must be created using
12192
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12193
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12197
# Rational C++ 2.4.1
12198
# FIXME: insert proper C++ library support
12202
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12203
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'
12205
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12206
hardcode_libdir_separator_CXX=:
12208
# Commands to make compiler produce verbose output that lists
12209
# what "hidden" libraries, object files and flags are used when
12210
# linking a shared library.
12212
# There doesn't appear to be a way to prevent this compiler from
12213
# explicitly linking system object files so we need to strip them
12214
# from the output so that they don't get included in the library
12216
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'
12219
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12220
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12221
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'
12223
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12224
hardcode_libdir_separator_CXX=:
12226
# Commands to make compiler produce verbose output that lists
12227
# what "hidden" libraries, object files and flags are used when
12228
# linking a shared library.
12229
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12232
# FIXME: insert proper C++ library support
12239
case $cc_basename in
12241
# Kuck and Associates, Inc. (KAI) C++ Compiler
12243
# KCC will only create a shared library if the output file
12244
# ends with ".so" (or ".sl" for HP-UX), so rename the library
12245
# to its proper name (with version) after linking.
12246
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'
12248
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12249
hardcode_libdir_separator_CXX=:
12251
# Archives containing C++ object files must be created using
12252
# the KAI C++ compiler.
12253
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12256
# Rational C++ 2.4.1
12257
# FIXME: insert proper C++ library support
12261
allow_undefined_flag_CXX=' -expect_unresolved \*'
12262
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'
12263
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12264
echo "-hidden">> $lib.exp~
12265
$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~
12268
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12269
hardcode_libdir_separator_CXX=:
12271
# Commands to make compiler produce verbose output that lists
12272
# what "hidden" libraries, object files and flags are used when
12273
# linking a shared library.
12275
# There doesn't appear to be a way to prevent this compiler from
12276
# explicitly linking system object files so we need to strip them
12277
# from the output so that they don't get included in the library
12279
output_verbose_link_cmd='templist=`$CC -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'
12282
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12283
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12284
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'
12286
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12287
hardcode_libdir_separator_CXX=:
12289
# Commands to make compiler produce verbose output that lists
12290
# what "hidden" libraries, object files and flags are used when
12291
# linking a shared library.
12292
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12295
# FIXME: insert proper C++ library support
12302
# FIXME: insert proper C++ library support
12306
case $cc_basename in
12309
# FIXME: insert proper C++ library support
12314
# FIXME: insert proper C++ library support
12318
# FIXME: insert proper C++ library support
12324
case $cc_basename in
12326
# Sun C++ 4.2, 5.x and Centerline C++
12327
archive_cmds_need_lc_CXX=yes
12328
no_undefined_flag_CXX=' -zdefs'
12329
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12330
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12331
$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'
12333
hardcode_libdir_flag_spec_CXX='-R$libdir'
12334
hardcode_shlibpath_var_CXX=no
12336
solaris2.[0-5] | solaris2.[0-5].*) ;;
12338
# The C++ compiler is used as linker so we must use $wl
12339
# flag to pass the commands to the underlying system
12340
# linker. We must also pass each convience library through
12341
# to the system linker between allextract/defaultextract.
12342
# The C++ compiler will combine linker options so we
12343
# cannot just pass the convience library names through
12345
# Supported since Solaris 2.6 (maybe 2.5.1?)
12346
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'
12349
link_all_deplibs_CXX=yes
12351
output_verbose_link_cmd='echo'
12353
# Archives containing C++ object files must be created using
12354
# "CC -xar", where "CC" is the Sun C++ compiler. This is
12355
# necessary to make sure instantiated templates are included
12357
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12360
# Green Hills C++ Compiler
12361
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12363
# The C++ compiler must be used to create the archive.
12364
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12367
# GNU C++ compiler with Solaris linker
12368
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12369
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12370
if $CC --version | grep -v '^2\.7' > /dev/null; then
12371
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12372
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12373
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12375
# Commands to make compiler produce verbose output that lists
12376
# what "hidden" libraries, object files and flags are used when
12377
# linking a shared library.
12378
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12380
# g++ 2.7 appears to require `-G' NOT `-shared' on this
12382
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12383
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12384
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12386
# Commands to make compiler produce verbose output that lists
12387
# what "hidden" libraries, object files and flags are used when
12388
# linking a shared library.
12389
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12392
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12397
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12398
no_undefined_flag_CXX='${wl}-z,text'
12399
archive_cmds_need_lc_CXX=no
12400
hardcode_shlibpath_var_CXX=no
12401
runpath_var='LD_RUN_PATH'
12403
case $cc_basename in
12405
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12406
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12409
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12410
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12414
sysv5* | sco3.2v5* | sco5v6*)
12415
# Note: We can NOT use -z defs as we might desire, because we do not
12416
# link with -lc, and that would cause any symbols used from libc to
12417
# always be unresolved, which means just about no library would
12418
# ever link correctly. If we're not using GNU ld we use -z text
12419
# though, which does catch some bad symbols but isn't as heavy-handed
12421
# For security reasons, it is highly recommended that you always
12422
# use absolute paths for naming shared libraries, and exclude the
12423
# DT_RUNPATH tag from executables and libraries. But doing so
12424
# requires that you compile everything twice, which is a pain.
12425
# So that behaviour is only enabled if SCOABSPATH is set to a
12426
# non-empty value in the environment. Most likely only useful for
12427
# creating official distributions of packages.
12428
# This is a hack until libtool officially supports absolute path
12429
# names for shared libraries.
12430
no_undefined_flag_CXX='${wl}-z,text'
12431
allow_undefined_flag_CXX='${wl}-z,nodefs'
12432
archive_cmds_need_lc_CXX=no
12433
hardcode_shlibpath_var_CXX=no
12434
hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12435
hardcode_libdir_separator_CXX=':'
12436
link_all_deplibs_CXX=yes
12437
export_dynamic_flag_spec_CXX='${wl}-Bexport'
12438
runpath_var='LD_RUN_PATH'
12440
case $cc_basename in
12442
archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12443
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12446
archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12447
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12452
case $cc_basename in
12454
# NonStop-UX NCC 3.20
12455
# FIXME: insert proper C++ library support
12459
# FIXME: insert proper C++ library support
12465
# FIXME: insert proper C++ library support
12469
# FIXME: insert proper C++ library support
12473
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12474
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12475
test "$ld_shlibs_CXX" = no && can_build_shared=no
12481
cat > conftest.$ac_ext <<EOF
12485
Foo (void) { a = 0; }
12491
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12492
(eval $ac_compile) 2>&5
12494
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12495
(exit $ac_status); }; then
12496
# Parse the compiler output and extract the necessary
12497
# objects, libraries and library flags.
12499
# Sentinel used to keep track of whether or not we are before
12500
# the conftest object file.
12501
pre_test_object_deps_done=no
12503
# The `*' in the case matches for architectures that use `case' in
12504
# $output_verbose_cmd can trigger glob expansion during the loop
12505
# eval without this substitution.
12506
output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12508
for p in `eval $output_verbose_link_cmd`; do
12512
# Some compilers place space between "-{L,R}" and the path.
12513
# Remove the space.
12514
if test $p = "-L" \
12515
|| test $p = "-R"; then
12522
if test "$pre_test_object_deps_done" = no; then
12525
# Internal compiler library paths should come after those
12526
# provided the user. The postdeps already come after the
12527
# user supplied libs so there is no need to process them.
12528
if test -z "$compiler_lib_search_path_CXX"; then
12529
compiler_lib_search_path_CXX="${prev}${p}"
12531
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12534
# The "-l" case would never come before the object being
12535
# linked, so don't bother handling this case.
12538
if test -z "$postdeps_CXX"; then
12539
postdeps_CXX="${prev}${p}"
12541
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12547
# This assumes that the test object file only shows up
12548
# once in the compiler output.
12549
if test "$p" = "conftest.$objext"; then
12550
pre_test_object_deps_done=yes
12554
if test "$pre_test_object_deps_done" = no; then
12555
if test -z "$predep_objects_CXX"; then
12556
predep_objects_CXX="$p"
12558
predep_objects_CXX="$predep_objects_CXX $p"
12561
if test -z "$postdep_objects_CXX"; then
12562
postdep_objects_CXX="$p"
12564
postdep_objects_CXX="$postdep_objects_CXX $p"
12569
*) ;; # Ignore the rest.
12577
echo "libtool.m4: error: problem compiling CXX test program"
12580
$rm -f confest.$objext
12582
# PORTME: override above test on systems where it is broken
12585
# Interix 3.5 installs completely hosed .la files for C++, so rather than
12586
# hack all around it, let's just trust "g++" to DTRT.
12587
predep_objects_CXX=
12588
postdep_objects_CXX=
12593
case $cc_basename in
12595
# Adding this requires a known-good setup of shared libraries for
12596
# Sun compiler versions before 5.6, else PIC objects from an old
12597
# archive will be linked into the output, leading to subtle bugs.
12598
postdeps_CXX='-lCstd -lCrun'
12605
case " $postdeps_CXX " in
12606
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12609
lt_prog_compiler_wl_CXX=
12610
lt_prog_compiler_pic_CXX=
12611
lt_prog_compiler_static_CXX=
12613
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12614
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12616
# C++ specific cases for pic, static, wl, etc.
12617
if test "$GXX" = yes; then
12618
lt_prog_compiler_wl_CXX='-Wl,'
12619
lt_prog_compiler_static_CXX='-static'
12623
# All AIX code is PIC.
12624
if test "$host_cpu" = ia64; then
12625
# AIX 5 now supports IA64 processor
12626
lt_prog_compiler_static_CXX='-Bstatic'
12630
# FIXME: we need at least 68020 code to build shared libraries, but
12631
# adding the `-m68020' flag to GCC prevents building anything better,
12633
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12635
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12636
# PIC is the default for these OSes.
12638
mingw* | os2* | pw32*)
12639
# This hack is so that the source file can tell whether it is being
12640
# built for inclusion in a dll (and should export symbols for example).
12641
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12643
darwin* | rhapsody*)
12644
# PIC is the default on this platform
12645
# Common symbols not allowed in MH_DYLIB files
12646
lt_prog_compiler_pic_CXX='-fno-common'
12649
# DJGPP does not support shared libraries at all
12650
lt_prog_compiler_pic_CXX=
12653
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
12654
# Instead, we relocate shared libraries at runtime.
12657
if test -d /usr/nec; then
12658
lt_prog_compiler_pic_CXX=-Kconform_pic
12662
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12663
# not for PA HP-UX.
12668
lt_prog_compiler_pic_CXX='-fPIC'
12673
lt_prog_compiler_pic_CXX='-fPIC'
12679
# All AIX code is PIC.
12680
if test "$host_cpu" = ia64; then
12681
# AIX 5 now supports IA64 processor
12682
lt_prog_compiler_static_CXX='-Bstatic'
12684
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12688
case $cc_basename in
12690
# Green Hills C++ Compiler
12691
# _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"
12696
# PIC is the default on this platform
12697
# Common symbols not allowed in MH_DYLIB files
12698
case $cc_basename in
12700
lt_prog_compiler_pic_CXX='-qnocommon'
12701
lt_prog_compiler_wl_CXX='-Wl,'
12706
case $cc_basename in
12708
lt_prog_compiler_pic_CXX='-KPIC'
12711
# Green Hills C++ Compiler
12712
lt_prog_compiler_pic_CXX='-pic'
12718
freebsd* | dragonfly*)
12719
# FreeBSD uses GNU C++
12721
hpux9* | hpux10* | hpux11*)
12722
case $cc_basename in
12724
lt_prog_compiler_wl_CXX='-Wl,'
12725
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12726
if test "$host_cpu" != ia64; then
12727
lt_prog_compiler_pic_CXX='+Z'
12731
lt_prog_compiler_wl_CXX='-Wl,'
12732
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12738
lt_prog_compiler_pic_CXX='+Z'
12747
# This is c89, which is MS Visual C++ (no shared libs)
12748
# Anyone wants to do a port?
12750
irix5* | irix6* | nonstopux*)
12751
case $cc_basename in
12753
lt_prog_compiler_wl_CXX='-Wl,'
12754
lt_prog_compiler_static_CXX='-non_shared'
12755
# CC pic flag -KPIC is the default.
12761
linux* | k*bsd*-gnu)
12762
case $cc_basename in
12765
lt_prog_compiler_wl_CXX='--backend -Wl,'
12766
lt_prog_compiler_pic_CXX='-fPIC'
12770
lt_prog_compiler_wl_CXX='-Wl,'
12771
lt_prog_compiler_pic_CXX='-KPIC'
12772
lt_prog_compiler_static_CXX='-static'
12775
# Portland Group C++ compiler.
12776
lt_prog_compiler_wl_CXX='-Wl,'
12777
lt_prog_compiler_pic_CXX='-fpic'
12778
lt_prog_compiler_static_CXX='-Bstatic'
12782
# Make sure the PIC flag is empty. It appears that all Alpha
12783
# Linux and Compaq Tru64 Unix objects are PIC.
12784
lt_prog_compiler_pic_CXX=
12785
lt_prog_compiler_static_CXX='-non_shared'
12796
case $cc_basename in
12798
lt_prog_compiler_pic_CXX='-W c,exportall'
12804
netbsd* | netbsdelf*-gnu)
12806
osf3* | osf4* | osf5*)
12807
case $cc_basename in
12809
lt_prog_compiler_wl_CXX='--backend -Wl,'
12812
# Rational C++ 2.4.1
12813
lt_prog_compiler_pic_CXX='-pic'
12816
# Digital/Compaq C++
12817
lt_prog_compiler_wl_CXX='-Wl,'
12818
# Make sure the PIC flag is empty. It appears that all Alpha
12819
# Linux and Compaq Tru64 Unix objects are PIC.
12820
lt_prog_compiler_pic_CXX=
12821
lt_prog_compiler_static_CXX='-non_shared'
12830
case $cc_basename in
12832
# Sun C++ 4.2, 5.x and Centerline C++
12833
lt_prog_compiler_pic_CXX='-KPIC'
12834
lt_prog_compiler_static_CXX='-Bstatic'
12835
lt_prog_compiler_wl_CXX='-Qoption ld '
12838
# Green Hills C++ Compiler
12839
lt_prog_compiler_pic_CXX='-PIC'
12846
case $cc_basename in
12849
lt_prog_compiler_pic_CXX='-pic'
12850
lt_prog_compiler_static_CXX='-Bstatic'
12854
lt_prog_compiler_pic_CXX='-pic'
12861
case $cc_basename in
12863
# NonStop-UX NCC 3.20
12864
lt_prog_compiler_pic_CXX='-KPIC'
12870
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12871
case $cc_basename in
12873
lt_prog_compiler_wl_CXX='-Wl,'
12874
lt_prog_compiler_pic_CXX='-KPIC'
12875
lt_prog_compiler_static_CXX='-Bstatic'
12882
lt_prog_compiler_can_build_shared_CXX=no
12887
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12888
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12891
# Check to make sure the PIC flag actually works.
12893
if test -n "$lt_prog_compiler_pic_CXX"; then
12895
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12896
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12897
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12898
echo $ECHO_N "(cached) $ECHO_C" >&6
12900
lt_prog_compiler_pic_works_CXX=no
12901
ac_outfile=conftest.$ac_objext
12902
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12903
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12904
# Insert the option either (1) after the last *FLAGS variable, or
12905
# (2) before a word containing "conftest.", or (3) at the end.
12906
# Note that $ac_compile itself does not contain backslashes and begins
12907
# with a dollar sign (not a hyphen), so the echo should work correctly.
12908
# The option is referenced via a variable to avoid confusing sed.
12909
lt_compile=`echo "$ac_compile" | $SED \
12910
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12911
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12912
-e 's:$: $lt_compiler_flag:'`
12913
(eval echo "\"\$as_me:12913: $lt_compile\"" >&5)
12914
(eval "$lt_compile" 2>conftest.err)
12916
cat conftest.err >&5
12917
echo "$as_me:12917: \$? = $ac_status" >&5
12918
if (exit $ac_status) && test -s "$ac_outfile"; then
12919
# The compiler can only warn and ignore the option if not recognized
12920
# So say no if there are warnings other than the usual output.
12921
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12922
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12923
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12924
lt_prog_compiler_pic_works_CXX=yes
12930
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12931
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12933
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12934
case $lt_prog_compiler_pic_CXX in
12936
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12939
lt_prog_compiler_pic_CXX=
12940
lt_prog_compiler_can_build_shared_CXX=no
12945
# For platforms which do not support PIC, -DPIC is meaningless:
12947
lt_prog_compiler_pic_CXX=
12950
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12955
# Check to make sure the static flag actually works.
12957
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12958
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12959
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12960
if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12961
echo $ECHO_N "(cached) $ECHO_C" >&6
12963
lt_prog_compiler_static_works_CXX=no
12964
save_LDFLAGS="$LDFLAGS"
12965
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12966
printf "$lt_simple_link_test_code" > conftest.$ac_ext
12967
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12968
# The linker can only warn and ignore the option if not recognized
12969
# So say no if there are warnings
12970
if test -s conftest.err; then
12971
# Append any errors to the config.log.
12972
cat conftest.err 1>&5
12973
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12974
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12975
if diff conftest.exp conftest.er2 >/dev/null; then
12976
lt_prog_compiler_static_works_CXX=yes
12979
lt_prog_compiler_static_works_CXX=yes
12983
LDFLAGS="$save_LDFLAGS"
12986
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12987
echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12989
if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12992
lt_prog_compiler_static_CXX=
12996
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12997
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12998
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12999
echo $ECHO_N "(cached) $ECHO_C" >&6
13001
lt_cv_prog_compiler_c_o_CXX=no
13002
$rm -r conftest 2>/dev/null
13006
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13008
lt_compiler_flag="-o out/conftest2.$ac_objext"
13009
# Insert the option either (1) after the last *FLAGS variable, or
13010
# (2) before a word containing "conftest.", or (3) at the end.
13011
# Note that $ac_compile itself does not contain backslashes and begins
13012
# with a dollar sign (not a hyphen), so the echo should work correctly.
13013
lt_compile=`echo "$ac_compile" | $SED \
13014
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13015
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13016
-e 's:$: $lt_compiler_flag:'`
13017
(eval echo "\"\$as_me:13017: $lt_compile\"" >&5)
13018
(eval "$lt_compile" 2>out/conftest.err)
13020
cat out/conftest.err >&5
13021
echo "$as_me:13021: \$? = $ac_status" >&5
13022
if (exit $ac_status) && test -s out/conftest2.$ac_objext
13024
# The compiler can only warn and ignore the option if not recognized
13025
# So say no if there are warnings
13026
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13027
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13028
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13029
lt_cv_prog_compiler_c_o_CXX=yes
13034
# SGI C++ compiler will create directory out/ii_files/ for
13035
# template instantiation
13036
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13037
$rm out/* && rmdir out
13043
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13044
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13047
hard_links="nottested"
13048
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13049
# do not overwrite the value of need_locks provided by the user
13050
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13051
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13054
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13056
ln conftest.a conftest.b 2>&5 || hard_links=no
13057
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13058
{ echo "$as_me:$LINENO: result: $hard_links" >&5
13059
echo "${ECHO_T}$hard_links" >&6; }
13060
if test "$hard_links" = no; then
13061
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13062
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13069
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13070
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13072
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13075
# If we're using GNU nm, then we don't want the "-C" option.
13076
# -C means demangle to AIX nm, but means don't demangle with GNU nm
13077
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13078
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'
13080
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'
13084
export_symbols_cmds_CXX="$ltdll_cmds"
13087
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'
13089
linux* | k*bsd*-gnu)
13090
link_all_deplibs_CXX=no
13093
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13097
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13098
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13099
test "$ld_shlibs_CXX" = no && can_build_shared=no
13102
# Do we need to explicitly link libc?
13104
case "x$archive_cmds_need_lc_CXX" in
13106
# Assume -lc should be added
13107
archive_cmds_need_lc_CXX=yes
13109
if test "$enable_shared" = yes && test "$GCC" = yes; then
13110
case $archive_cmds_CXX in
13112
# FIXME: we may have to deal with multi-command sequences.
13115
# Test whether the compiler implicitly links with -lc since on some
13116
# systems, -lgcc has to come before -lc. If gcc already passes -lc
13117
# to ld, don't add -lc before -lgcc.
13118
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13119
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13121
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13123
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13124
(eval $ac_compile) 2>&5
13126
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13127
(exit $ac_status); } 2>conftest.err; then
13130
libobjs=conftest.$ac_objext
13132
wl=$lt_prog_compiler_wl_CXX
13133
pic_flag=$lt_prog_compiler_pic_CXX
13139
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13140
allow_undefined_flag_CXX=
13141
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13142
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13144
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13145
(exit $ac_status); }
13147
archive_cmds_need_lc_CXX=no
13149
archive_cmds_need_lc_CXX=yes
13151
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13153
cat conftest.err 1>&5
13156
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13157
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13164
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13165
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13166
library_names_spec=
13167
libname_spec='lib$name'
13171
postuninstall_cmds=
13175
shlibpath_overrides_runpath=unknown
13177
dynamic_linker="$host_os ld.so"
13178
sys_lib_dlsearch_path_spec="/lib /usr/lib"
13179
if test "$GCC" = yes; then
13180
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13181
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13182
# if the path contains ";" then we assume it to be the separator
13183
# otherwise default to the standard path separator (i.e. ":") - it is
13184
# assumed that no part of a normal pathname contains ";" but that should
13185
# okay in the real world where ";" in dirpaths is itself problematic.
13186
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13188
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13191
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13193
need_lib_prefix=unknown
13194
hardcode_into_libs=no
13196
# when you set need_version to no, make sure it does not cause -set_version
13197
# flags to be left without arguments
13198
need_version=unknown
13203
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13204
shlibpath_var=LIBPATH
13206
# AIX 3 has no versioning support, so we append a major version to the name.
13207
soname_spec='${libname}${release}${shared_ext}$major'
13214
hardcode_into_libs=yes
13215
if test "$host_cpu" = ia64; then
13216
# AIX 5 supports IA64
13217
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13218
shlibpath_var=LD_LIBRARY_PATH
13220
# With GCC up to 2.95.x, collect2 would create an import file
13221
# for dependence libraries. The import file would start with
13222
# the line `#! .'. This would cause the generated library to
13223
# depend on `.', always an invalid library. This was fixed in
13224
# development snapshots of GCC prior to 3.0.
13226
aix4 | aix4.[01] | aix4.[01].*)
13227
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13229
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13232
can_build_shared=no
13236
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13237
# soname into executable. Probably we can add versioning support to
13238
# collect2, so additional links can be useful in future.
13239
if test "$aix_use_runtimelinking" = yes; then
13240
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
13241
# instead of lib<name>.a to let people know that these are not
13242
# typical AIX shared libraries.
13243
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13245
# We preserve .a as extension for shared libraries through AIX4.2
13246
# and later when we are not doing run time linking.
13247
library_names_spec='${libname}${release}.a $libname.a'
13248
soname_spec='${libname}${release}${shared_ext}$major'
13250
shlibpath_var=LIBPATH
13255
library_names_spec='$libname.ixlibrary $libname.a'
13256
# Create ${libname}_ixlibrary.a entries in /sys/libs.
13257
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'
13261
library_names_spec='${libname}${shared_ext}'
13262
dynamic_linker="$host_os ld.so"
13263
shlibpath_var=LIBRARY_PATH
13269
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13270
soname_spec='${libname}${release}${shared_ext}$major'
13271
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13272
shlibpath_var=LD_LIBRARY_PATH
13273
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13274
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13275
# the default ld.so.conf also contains /usr/contrib/lib and
13276
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13277
# libtool to hard-code these into programs
13280
cygwin* | mingw* | pw32*)
13281
version_type=windows
13286
case $GCC,$host_os in
13287
yes,cygwin* | yes,mingw* | yes,pw32*)
13288
library_names_spec='$libname.dll.a'
13289
# DLL is installed to $(libdir)/../bin by postinstall_cmds
13290
postinstall_cmds='base_file=`basename \${file}`~
13291
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13292
dldir=$destdir/`dirname \$dlpath`~
13293
test -d \$dldir || mkdir -p \$dldir~
13294
$install_prog $dir/$dlname \$dldir/$dlname~
13295
chmod a+x \$dldir/$dlname'
13296
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13297
dlpath=$dir/\$dldll~
13299
shlibpath_overrides_runpath=yes
13303
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
13304
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13305
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13308
# MinGW DLLs use traditional 'lib' prefix
13309
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13310
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13311
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13312
# It is most probably a Windows format PATH printed by
13313
# mingw gcc, but we are running on Cygwin. Gcc prints its search
13314
# path with ; separators, and with drive letters. We can handle the
13315
# drive letters (cygwin fileutils understands them), so leave them,
13316
# especially as we might pass files found there to a mingw objdump,
13317
# which wouldn't understand a cygwinified path. Ahh.
13318
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13320
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13324
# pw32 DLLs use 'pw' prefix rather than 'lib'
13325
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13331
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13334
dynamic_linker='Win32 ld.exe'
13335
# FIXME: first we should search . and the directory the executable is in
13339
darwin* | rhapsody*)
13340
dynamic_linker="$host_os dyld"
13341
version_type=darwin
13344
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13345
soname_spec='${libname}${release}${major}$shared_ext'
13346
shlibpath_overrides_runpath=yes
13347
shlibpath_var=DYLD_LIBRARY_PATH
13348
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13349
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13350
if test "$GCC" = yes; then
13351
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"`
13353
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13355
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13362
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13363
soname_spec='${libname}${release}${shared_ext}$major'
13364
shlibpath_var=LD_LIBRARY_PATH
13371
freebsd* | dragonfly*)
13372
# DragonFly does not have aout. When/if they implement a new
13373
# versioning mechanism, adjust this.
13374
if test -x /usr/bin/objformat; then
13375
objformat=`/usr/bin/objformat`
13378
freebsd[123]*) objformat=aout ;;
13379
*) objformat=elf ;;
13382
version_type=freebsd-$objformat
13383
case $version_type in
13385
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13390
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13394
shlibpath_var=LD_LIBRARY_PATH
13397
shlibpath_overrides_runpath=yes
13399
freebsd3.[01]* | freebsdelf3.[01]*)
13400
shlibpath_overrides_runpath=yes
13401
hardcode_into_libs=yes
13403
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13404
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13405
shlibpath_overrides_runpath=no
13406
hardcode_into_libs=yes
13408
freebsd*) # from 4.6 on
13409
shlibpath_overrides_runpath=yes
13410
hardcode_into_libs=yes
13419
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13420
soname_spec='${libname}${release}${shared_ext}$major'
13421
shlibpath_var=LD_LIBRARY_PATH
13422
hardcode_into_libs=yes
13425
hpux9* | hpux10* | hpux11*)
13426
# Give a soname corresponding to the major version so that dld.sl refuses to
13427
# link against other versions.
13434
hardcode_into_libs=yes
13435
dynamic_linker="$host_os dld.so"
13436
shlibpath_var=LD_LIBRARY_PATH
13437
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13438
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13439
soname_spec='${libname}${release}${shared_ext}$major'
13440
if test "X$HPUX_IA64_MODE" = X32; then
13441
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13443
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13445
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13449
hardcode_into_libs=yes
13450
dynamic_linker="$host_os dld.sl"
13451
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13452
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13453
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13454
soname_spec='${libname}${release}${shared_ext}$major'
13455
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13456
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13460
dynamic_linker="$host_os dld.sl"
13461
shlibpath_var=SHLIB_PATH
13462
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13463
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13464
soname_spec='${libname}${release}${shared_ext}$major'
13467
# HP-UX runs *really* slowly unless shared libraries are mode 555.
13468
postinstall_cmds='chmod 555 $lib'
13475
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13476
soname_spec='${libname}${release}${shared_ext}$major'
13477
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13478
shlibpath_var=LD_LIBRARY_PATH
13479
shlibpath_overrides_runpath=no
13480
hardcode_into_libs=yes
13483
irix5* | irix6* | nonstopux*)
13485
nonstopux*) version_type=nonstopux ;;
13487
if test "$lt_cv_prog_gnu_ld" = yes; then
13495
soname_spec='${libname}${release}${shared_ext}$major'
13496
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13498
irix5* | nonstopux*)
13499
libsuff= shlibsuff=
13502
case $LD in # libtool.m4 will add one of these switches to LD
13503
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13504
libsuff= shlibsuff= libmagic=32-bit;;
13505
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13506
libsuff=32 shlibsuff=N32 libmagic=N32;;
13507
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13508
libsuff=64 shlibsuff=64 libmagic=64-bit;;
13509
*) libsuff= shlibsuff= libmagic=never-match;;
13513
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13514
shlibpath_overrides_runpath=no
13515
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13516
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13517
hardcode_into_libs=yes
13520
# No shared lib support for Linux oldld, aout, or coff.
13521
linux*oldld* | linux*aout* | linux*coff*)
13525
# This must be Linux ELF.
13526
linux* | k*bsd*-gnu)
13530
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13531
soname_spec='${libname}${release}${shared_ext}$major'
13532
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13533
shlibpath_var=LD_LIBRARY_PATH
13534
shlibpath_overrides_runpath=no
13535
# This implies no fast_install, which is unacceptable.
13536
# Some rework will be needed to allow for fast_install
13537
# before this can be enabled.
13538
hardcode_into_libs=yes
13540
# Append ld.so.conf contents to the search path
13541
if test -f /etc/ld.so.conf; then
13542
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' ' '`
13543
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13546
# We used to test for /lib/ld.so.1 and disable shared libraries on
13547
# powerpc, because MkLinux only supported shared libraries with the
13548
# GNU dynamic linker. Since this was broken with cross compilers,
13549
# most powerpc-linux boxes support dynamic linking these days and
13550
# people can always --disable-shared, the test was removed, and we
13551
# assume the GNU/Linux dynamic linker is in use.
13552
dynamic_linker='GNU/Linux ld.so'
13559
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13560
soname_spec='${libname}${release}${shared_ext}$major'
13561
shlibpath_var=LD_LIBRARY_PATH
13562
shlibpath_overrides_runpath=no
13563
hardcode_into_libs=yes
13564
dynamic_linker='NetBSD ld.elf_so'
13571
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13572
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13573
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13574
dynamic_linker='NetBSD (a.out) ld.so'
13576
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13577
soname_spec='${libname}${release}${shared_ext}$major'
13578
dynamic_linker='NetBSD ld.elf_so'
13580
shlibpath_var=LD_LIBRARY_PATH
13581
shlibpath_overrides_runpath=yes
13582
hardcode_into_libs=yes
13587
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13588
shlibpath_var=LD_LIBRARY_PATH
13589
shlibpath_overrides_runpath=yes
13596
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13597
soname_spec='${libname}${release}${shared_ext}$major'
13598
shlibpath_var=LD_LIBRARY_PATH
13599
shlibpath_overrides_runpath=yes
13604
sys_lib_dlsearch_path_spec="/usr/lib"
13606
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13608
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13609
*) need_version=no ;;
13611
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13612
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13613
shlibpath_var=LD_LIBRARY_PATH
13614
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13616
openbsd2.[89] | openbsd2.[89].*)
13617
shlibpath_overrides_runpath=no
13620
shlibpath_overrides_runpath=yes
13624
shlibpath_overrides_runpath=yes
13629
libname_spec='$name'
13632
library_names_spec='$libname${shared_ext} $libname.a'
13633
dynamic_linker='OS/2 ld.exe'
13634
shlibpath_var=LIBPATH
13637
osf3* | osf4* | osf5*)
13641
soname_spec='${libname}${release}${shared_ext}$major'
13642
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13643
shlibpath_var=LD_LIBRARY_PATH
13644
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13645
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13652
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13653
soname_spec='${libname}${release}${shared_ext}$major'
13654
shlibpath_var=LD_LIBRARY_PATH
13655
shlibpath_overrides_runpath=yes
13656
hardcode_into_libs=yes
13657
# ldd complains unless libraries are executable
13658
postinstall_cmds='chmod +x $lib'
13663
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13664
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13665
shlibpath_var=LD_LIBRARY_PATH
13666
shlibpath_overrides_runpath=yes
13667
if test "$with_gnu_ld" = yes; then
13675
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13676
soname_spec='${libname}${release}${shared_ext}$major'
13677
shlibpath_var=LD_LIBRARY_PATH
13678
case $host_vendor in
13680
shlibpath_overrides_runpath=no
13682
export_dynamic_flag_spec='${wl}-Blargedynsym'
13683
runpath_var=LD_RUN_PATH
13691
shlibpath_overrides_runpath=no
13692
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13698
if test -d /usr/nec ;then
13700
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13701
soname_spec='$libname${shared_ext}.$major'
13702
shlibpath_var=LD_LIBRARY_PATH
13706
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13707
version_type=freebsd-elf
13710
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13711
soname_spec='${libname}${release}${shared_ext}$major'
13712
shlibpath_var=LD_LIBRARY_PATH
13713
hardcode_into_libs=yes
13714
if test "$with_gnu_ld" = yes; then
13715
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13716
shlibpath_overrides_runpath=no
13718
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13719
shlibpath_overrides_runpath=yes
13722
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13726
sys_lib_dlsearch_path_spec='/usr/lib'
13731
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13732
soname_spec='${libname}${release}${shared_ext}$major'
13733
shlibpath_var=LD_LIBRARY_PATH
13740
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13741
echo "${ECHO_T}$dynamic_linker" >&6; }
13742
test "$dynamic_linker" = no && can_build_shared=no
13744
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13745
if test "$GCC" = yes; then
13746
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13749
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13750
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13751
hardcode_action_CXX=
13752
if test -n "$hardcode_libdir_flag_spec_CXX" || \
13753
test -n "$runpath_var_CXX" || \
13754
test "X$hardcode_automatic_CXX" = "Xyes" ; then
13756
# We can hardcode non-existant directories.
13757
if test "$hardcode_direct_CXX" != no &&
13758
# If the only mechanism to avoid hardcoding is shlibpath_var, we
13759
# have to relink, otherwise we might link with an installed library
13760
# when we should be linking with a yet-to-be-installed one
13761
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13762
test "$hardcode_minus_L_CXX" != no; then
13763
# Linking always hardcodes the temporary library directory.
13764
hardcode_action_CXX=relink
13766
# We can link without hardcoding, and we can hardcode nonexisting dirs.
13767
hardcode_action_CXX=immediate
13770
# We cannot hardcode anything, or else we can only hardcode existing
13772
hardcode_action_CXX=unsupported
13774
{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13775
echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13777
if test "$hardcode_action_CXX" = relink; then
13778
# Fast installation is not supported
13779
enable_fast_install=no
13780
elif test "$shlibpath_overrides_runpath" = yes ||
13781
test "$enable_shared" = no; then
13782
# Fast installation is not necessary
13783
enable_fast_install=needless
13787
# The else clause should only fire when bootstrapping the
13788
# libtool distribution, otherwise you forgot to ship ltmain.sh
13789
# with your package, and you will get complaints that there are
13790
# no rules to generate ltmain.sh.
13791
if test -f "$ltmain"; then
13792
# See if we are running on zsh, and set the options which allow our commands through
13793
# without removal of \ escapes.
13794
if test -n "${ZSH_VERSION+set}" ; then
13795
setopt NO_GLOB_SUBST
13797
# Now quote all the things that may contain metacharacters while being
13798
# careful not to overquote the AC_SUBSTed values. We take copies of the
13799
# variables and quote the copies for generation of the libtool script.
13800
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13802
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13803
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13804
deplibs_check_method reload_flag reload_cmds need_locks \
13805
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13806
lt_cv_sys_global_symbol_to_c_name_address \
13807
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13808
old_postinstall_cmds old_postuninstall_cmds \
13812
lt_prog_compiler_wl_CXX \
13813
lt_prog_compiler_pic_CXX \
13814
lt_prog_compiler_static_CXX \
13815
lt_prog_compiler_no_builtin_flag_CXX \
13816
export_dynamic_flag_spec_CXX \
13817
thread_safe_flag_spec_CXX \
13818
whole_archive_flag_spec_CXX \
13819
enable_shared_with_static_runtimes_CXX \
13820
old_archive_cmds_CXX \
13821
old_archive_from_new_cmds_CXX \
13822
predep_objects_CXX \
13823
postdep_objects_CXX \
13826
compiler_lib_search_path_CXX \
13828
archive_expsym_cmds_CXX \
13829
postinstall_cmds_CXX \
13830
postuninstall_cmds_CXX \
13831
old_archive_from_expsyms_cmds_CXX \
13832
allow_undefined_flag_CXX \
13833
no_undefined_flag_CXX \
13834
export_symbols_cmds_CXX \
13835
hardcode_libdir_flag_spec_CXX \
13836
hardcode_libdir_flag_spec_ld_CXX \
13837
hardcode_libdir_separator_CXX \
13838
hardcode_automatic_CXX \
13840
module_expsym_cmds_CXX \
13841
lt_cv_prog_compiler_c_o_CXX \
13842
exclude_expsyms_CXX \
13843
include_expsyms_CXX; do
13846
old_archive_cmds_CXX | \
13847
old_archive_from_new_cmds_CXX | \
13848
archive_cmds_CXX | \
13849
archive_expsym_cmds_CXX | \
13850
module_cmds_CXX | \
13851
module_expsym_cmds_CXX | \
13852
old_archive_from_expsyms_cmds_CXX | \
13853
export_symbols_cmds_CXX | \
13854
extract_expsyms_cmds | reload_cmds | finish_cmds | \
13855
postinstall_cmds | postuninstall_cmds | \
13856
old_postinstall_cmds | old_postuninstall_cmds | \
13857
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13858
# Double-quote double-evaled strings.
13859
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13862
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13868
*'\$0 --fallback-echo"')
13869
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13875
cat <<__EOF__ >> "$cfgfile"
13876
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13878
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13880
# Shell to use when invoking shell scripts.
13883
# Whether or not to build shared libraries.
13884
build_libtool_libs=$enable_shared
13886
# Whether or not to build static libraries.
13887
build_old_libs=$enable_static
13889
# Whether or not to add -lc for building shared libraries.
13890
build_libtool_need_lc=$archive_cmds_need_lc_CXX
13892
# Whether or not to disallow shared libs when runtime libs are static
13893
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13895
# Whether or not to optimize for fast installation.
13896
fast_install=$enable_fast_install
13899
host_alias=$host_alias
13903
# The build system.
13904
build_alias=$build_alias
13908
# An echo program that does not interpret backslashes.
13913
AR_FLAGS=$lt_AR_FLAGS
13918
# LTCC compiler flags.
13919
LTCFLAGS=$lt_LTCFLAGS
13921
# A language-specific compiler.
13922
CC=$lt_compiler_CXX
13924
# Is the compiler the GNU C compiler?
13930
# The linker used to build libraries.
13933
# Whether we need hard or soft links.
13936
# A BSD-compatible nm program.
13939
# A symbol stripping program
13942
# Used to examine libraries when file_magic_cmd begins "file"
13943
MAGIC_CMD=$MAGIC_CMD
13945
# Used on cygwin: DLL creation program.
13948
# Used on cygwin: object dumper.
13951
# Used on cygwin: assembler.
13954
# The name of the directory that contains temporary libtool files.
13957
# How to create reloadable object files.
13958
reload_flag=$lt_reload_flag
13959
reload_cmds=$lt_reload_cmds
13961
# How to pass a linker flag through the compiler.
13962
wl=$lt_lt_prog_compiler_wl_CXX
13964
# Object file suffix (normally "o").
13965
objext="$ac_objext"
13967
# Old archive suffix (normally "a").
13970
# Shared library suffix (normally ".so").
13971
shrext_cmds='$shrext_cmds'
13973
# Executable file suffix (normally "").
13976
# Additional compiler flags for building library objects.
13977
pic_flag=$lt_lt_prog_compiler_pic_CXX
13980
# What is the maximum length of a command?
13981
max_cmd_len=$lt_cv_sys_max_cmd_len
13983
# Does compiler simultaneously support -c and -o options?
13984
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13986
# Must we lock files when doing compilation?
13987
need_locks=$lt_need_locks
13989
# Do we need the lib prefix for modules?
13990
need_lib_prefix=$need_lib_prefix
13992
# Do we need a version for libraries?
13993
need_version=$need_version
13995
# Whether dlopen is supported.
13996
dlopen_support=$enable_dlopen
13998
# Whether dlopen of programs is supported.
13999
dlopen_self=$enable_dlopen_self
14001
# Whether dlopen of statically linked programs is supported.
14002
dlopen_self_static=$enable_dlopen_self_static
14004
# Compiler flag to prevent dynamic linking.
14005
link_static_flag=$lt_lt_prog_compiler_static_CXX
14007
# Compiler flag to turn off builtin functions.
14008
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14010
# Compiler flag to allow reflexive dlopens.
14011
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14013
# Compiler flag to generate shared objects directly from archives.
14014
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14016
# Compiler flag to generate thread-safe objects.
14017
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14019
# Library versioning type.
14020
version_type=$version_type
14022
# Format of library name prefix.
14023
libname_spec=$lt_libname_spec
14025
# List of archive names. First name is the real one, the rest are links.
14026
# The last name is the one that the linker finds with -lNAME.
14027
library_names_spec=$lt_library_names_spec
14029
# The coded name of the library, if different from the real name.
14030
soname_spec=$lt_soname_spec
14032
# Commands used to build and install an old-style archive.
14034
old_archive_cmds=$lt_old_archive_cmds_CXX
14035
old_postinstall_cmds=$lt_old_postinstall_cmds
14036
old_postuninstall_cmds=$lt_old_postuninstall_cmds
14038
# Create an old-style archive from a shared archive.
14039
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14041
# Create a temporary old-style archive to link instead of a shared archive.
14042
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14044
# Commands used to build and install a shared archive.
14045
archive_cmds=$lt_archive_cmds_CXX
14046
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14047
postinstall_cmds=$lt_postinstall_cmds
14048
postuninstall_cmds=$lt_postuninstall_cmds
14050
# Commands used to build a loadable module (assumed same as above if empty)
14051
module_cmds=$lt_module_cmds_CXX
14052
module_expsym_cmds=$lt_module_expsym_cmds_CXX
14054
# Commands to strip libraries.
14055
old_striplib=$lt_old_striplib
14056
striplib=$lt_striplib
14058
# Dependencies to place before the objects being linked to create a
14060
predep_objects=$lt_predep_objects_CXX
14062
# Dependencies to place after the objects being linked to create a
14064
postdep_objects=$lt_postdep_objects_CXX
14066
# Dependencies to place before the objects being linked to create a
14068
predeps=$lt_predeps_CXX
14070
# Dependencies to place after the objects being linked to create a
14072
postdeps=$lt_postdeps_CXX
14074
# The library search path used internally by the compiler when linking
14075
# a shared library.
14076
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14078
# Method to check whether dependent libraries are shared objects.
14079
deplibs_check_method=$lt_deplibs_check_method
14081
# Command to use when deplibs_check_method == file_magic.
14082
file_magic_cmd=$lt_file_magic_cmd
14084
# Flag that allows shared libraries with undefined symbols to be built.
14085
allow_undefined_flag=$lt_allow_undefined_flag_CXX
14087
# Flag that forces no undefined symbols.
14088
no_undefined_flag=$lt_no_undefined_flag_CXX
14090
# Commands used to finish a libtool library installation in a directory.
14091
finish_cmds=$lt_finish_cmds
14093
# Same as above, but a single script fragment to be evaled but not shown.
14094
finish_eval=$lt_finish_eval
14096
# Take the output of nm and produce a listing of raw symbols and C names.
14097
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14099
# Transform the output of nm in a proper C declaration
14100
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14102
# Transform the output of nm in a C name address pair
14103
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14105
# This is the shared library runtime path variable.
14106
runpath_var=$runpath_var
14108
# This is the shared library path variable.
14109
shlibpath_var=$shlibpath_var
14111
# Is shlibpath searched before the hard-coded library search path?
14112
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14114
# How to hardcode a shared library path into an executable.
14115
hardcode_action=$hardcode_action_CXX
14117
# Whether we should hardcode library paths into libraries.
14118
hardcode_into_libs=$hardcode_into_libs
14120
# Flag to hardcode \$libdir into a binary during linking.
14121
# This must work even if \$libdir does not exist.
14122
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14124
# If ld is used when linking, flag to hardcode \$libdir into
14125
# a binary during linking. This must work even if \$libdir does
14127
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14129
# Whether we need a single -rpath flag with a separated argument.
14130
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14132
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14133
# resulting binary.
14134
hardcode_direct=$hardcode_direct_CXX
14136
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14137
# resulting binary.
14138
hardcode_minus_L=$hardcode_minus_L_CXX
14140
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14141
# the resulting binary.
14142
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14144
# Set to yes if building a shared library automatically hardcodes DIR into the library
14145
# and all subsequent libraries and executables linked against it.
14146
hardcode_automatic=$hardcode_automatic_CXX
14148
# Variables whose values should be saved in libtool wrapper scripts and
14149
# restored at relink time.
14150
variables_saved_for_relink="$variables_saved_for_relink"
14152
# Whether libtool must link a program against all its dependency libraries.
14153
link_all_deplibs=$link_all_deplibs_CXX
14155
# Compile-time system search path for libraries
14156
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14158
# Run-time system search path for libraries
14159
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14161
# Fix the shell variable \$srcfile for the compiler.
14162
fix_srcfile_path="$fix_srcfile_path_CXX"
14164
# Set to yes if exported symbols are required.
14165
always_export_symbols=$always_export_symbols_CXX
14167
# The commands to list exported symbols.
14168
export_symbols_cmds=$lt_export_symbols_cmds_CXX
14170
# The commands to extract the exported symbol list from a shared archive.
14171
extract_expsyms_cmds=$lt_extract_expsyms_cmds
14173
# Symbols that should not be listed in the preloaded symbols.
14174
exclude_expsyms=$lt_exclude_expsyms_CXX
14176
# Symbols that must always be exported.
14177
include_expsyms=$lt_include_expsyms_CXX
14179
# ### END LIBTOOL TAG CONFIG: $tagname
14185
# If there is no Makefile yet, we rely on a make rule to execute
14186
# `config.status --recheck' to rerun these tests and create the
14187
# libtool script then.
14188
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14189
if test -f "$ltmain_in"; then
14190
test -f Makefile && make "$ltmain"
14196
ac_cpp='$CPP $CPPFLAGS'
14197
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14198
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14199
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14205
with_gnu_ldcxx=$with_gnu_ld
14206
with_gnu_ld=$lt_save_with_gnu_ld
14207
lt_cv_path_LDCXX=$lt_cv_path_LD
14208
lt_cv_path_LD=$lt_save_path_LD
14209
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14210
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14218
if test -n "$F77" && test "X$F77" != "Xno"; then
14221
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14222
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14223
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14226
archive_cmds_need_lc_F77=no
14227
allow_undefined_flag_F77=
14228
always_export_symbols_F77=no
14229
archive_expsym_cmds_F77=
14230
export_dynamic_flag_spec_F77=
14231
hardcode_direct_F77=no
14232
hardcode_libdir_flag_spec_F77=
14233
hardcode_libdir_flag_spec_ld_F77=
14234
hardcode_libdir_separator_F77=
14235
hardcode_minus_L_F77=no
14236
hardcode_automatic_F77=no
14238
module_expsym_cmds_F77=
14239
link_all_deplibs_F77=unknown
14240
old_archive_cmds_F77=$old_archive_cmds
14241
no_undefined_flag_F77=
14242
whole_archive_flag_spec_F77=
14243
enable_shared_with_static_runtimes_F77=no
14245
# Source file extension for f77 test sources.
14248
# Object file extension for compiled f77 test sources.
14252
# Code to be used in simple compile tests
14253
lt_simple_compile_test_code=" subroutine t\n return\n end\n"
14255
# Code to be used in simple link tests
14256
lt_simple_link_test_code=" program t\n end\n"
14258
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14260
# If no C compiler was specified, use CC.
14263
# If no C compiler flags were specified, use CFLAGS.
14264
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14266
# Allow CC to be a program name with arguments.
14270
# save warnings/boilerplate of simple test code
14271
ac_outfile=conftest.$ac_objext
14272
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14273
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14274
_lt_compiler_boilerplate=`cat conftest.err`
14277
ac_outfile=conftest.$ac_objext
14278
printf "$lt_simple_link_test_code" >conftest.$ac_ext
14279
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14280
_lt_linker_boilerplate=`cat conftest.err`
14284
# Allow CC to be a program name with arguments.
14289
for cc_temp in $compiler""; do
14291
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14292
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14297
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14300
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14301
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14302
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
14303
echo "${ECHO_T}$can_build_shared" >&6; }
14305
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14306
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14307
test "$can_build_shared" = "no" && enable_shared=no
14309
# On AIX, shared libraries and static libraries use the same namespace, and
14310
# are all built from PIC.
14313
test "$enable_shared" = yes && enable_static=no
14314
if test -n "$RANLIB"; then
14315
archive_cmds="$archive_cmds~\$RANLIB \$lib"
14316
postinstall_cmds='$RANLIB $lib'
14320
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14321
test "$enable_shared" = yes && enable_static=no
14325
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
14326
echo "${ECHO_T}$enable_shared" >&6; }
14328
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14329
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14330
# Make sure either enable_shared or enable_static is yes.
14331
test "$enable_shared" = yes || enable_static=yes
14332
{ echo "$as_me:$LINENO: result: $enable_static" >&5
14333
echo "${ECHO_T}$enable_static" >&6; }
14338
lt_prog_compiler_wl_F77=
14339
lt_prog_compiler_pic_F77=
14340
lt_prog_compiler_static_F77=
14342
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14343
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14345
if test "$GCC" = yes; then
14346
lt_prog_compiler_wl_F77='-Wl,'
14347
lt_prog_compiler_static_F77='-static'
14351
# All AIX code is PIC.
14352
if test "$host_cpu" = ia64; then
14353
# AIX 5 now supports IA64 processor
14354
lt_prog_compiler_static_F77='-Bstatic'
14359
# FIXME: we need at least 68020 code to build shared libraries, but
14360
# adding the `-m68020' flag to GCC prevents building anything better,
14362
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14365
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14366
# PIC is the default for these OSes.
14369
mingw* | pw32* | os2*)
14370
# This hack is so that the source file can tell whether it is being
14371
# built for inclusion in a dll (and should export symbols for example).
14372
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14375
darwin* | rhapsody*)
14376
# PIC is the default on this platform
14377
# Common symbols not allowed in MH_DYLIB files
14378
lt_prog_compiler_pic_F77='-fno-common'
14382
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
14383
# Instead, we relocate shared libraries at runtime.
14387
# Just because we use GCC doesn't mean we suddenly get shared libraries
14388
# on systems that don't support them.
14389
lt_prog_compiler_can_build_shared_F77=no
14394
if test -d /usr/nec; then
14395
lt_prog_compiler_pic_F77=-Kconform_pic
14400
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14401
# not for PA HP-UX.
14407
lt_prog_compiler_pic_F77='-fPIC'
14413
lt_prog_compiler_pic_F77='-fPIC'
14417
# PORTME Check for flag to pass linker flags through the system compiler.
14420
lt_prog_compiler_wl_F77='-Wl,'
14421
if test "$host_cpu" = ia64; then
14422
# AIX 5 now supports IA64 processor
14423
lt_prog_compiler_static_F77='-Bstatic'
14425
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14429
# PIC is the default on this platform
14430
# Common symbols not allowed in MH_DYLIB files
14431
case $cc_basename in
14433
lt_prog_compiler_pic_F77='-qnocommon'
14434
lt_prog_compiler_wl_F77='-Wl,'
14439
mingw* | pw32* | os2*)
14440
# This hack is so that the source file can tell whether it is being
14441
# built for inclusion in a dll (and should export symbols for example).
14442
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14445
hpux9* | hpux10* | hpux11*)
14446
lt_prog_compiler_wl_F77='-Wl,'
14447
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14448
# not for PA HP-UX.
14454
lt_prog_compiler_pic_F77='+Z'
14457
# Is there a better lt_prog_compiler_static that works with the bundled CC?
14458
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14461
irix5* | irix6* | nonstopux*)
14462
lt_prog_compiler_wl_F77='-Wl,'
14463
# PIC (with -KPIC) is the default.
14464
lt_prog_compiler_static_F77='-non_shared'
14468
lt_prog_compiler_pic_F77='-KPIC'
14469
lt_prog_compiler_static_F77='-Bstatic'
14472
linux* | k*bsd*-gnu)
14473
case $cc_basename in
14475
lt_prog_compiler_wl_F77='-Wl,'
14476
lt_prog_compiler_pic_F77='-KPIC'
14477
lt_prog_compiler_static_F77='-static'
14479
pgcc* | pgf77* | pgf90* | pgf95*)
14480
# Portland Group compilers (*not* the Pentium gcc compiler,
14481
# which looks to be a dead project)
14482
lt_prog_compiler_wl_F77='-Wl,'
14483
lt_prog_compiler_pic_F77='-fpic'
14484
lt_prog_compiler_static_F77='-Bstatic'
14487
lt_prog_compiler_wl_F77='-Wl,'
14488
# All Alpha code is PIC.
14489
lt_prog_compiler_static_F77='-non_shared'
14494
osf3* | osf4* | osf5*)
14495
lt_prog_compiler_wl_F77='-Wl,'
14496
# All OSF/1 code is PIC.
14497
lt_prog_compiler_static_F77='-non_shared'
14501
lt_prog_compiler_pic_F77='-KPIC'
14502
lt_prog_compiler_static_F77='-Bstatic'
14503
case $cc_basename in
14504
f77* | f90* | f95*)
14505
lt_prog_compiler_wl_F77='-Qoption ld ';;
14507
lt_prog_compiler_wl_F77='-Wl,';;
14512
lt_prog_compiler_wl_F77='-Qoption ld '
14513
lt_prog_compiler_pic_F77='-PIC'
14514
lt_prog_compiler_static_F77='-Bstatic'
14517
sysv4 | sysv4.2uw2* | sysv4.3*)
14518
lt_prog_compiler_wl_F77='-Wl,'
14519
lt_prog_compiler_pic_F77='-KPIC'
14520
lt_prog_compiler_static_F77='-Bstatic'
14524
if test -d /usr/nec ;then
14525
lt_prog_compiler_pic_F77='-Kconform_pic'
14526
lt_prog_compiler_static_F77='-Bstatic'
14530
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14531
lt_prog_compiler_wl_F77='-Wl,'
14532
lt_prog_compiler_pic_F77='-KPIC'
14533
lt_prog_compiler_static_F77='-Bstatic'
14537
lt_prog_compiler_wl_F77='-Wl,'
14538
lt_prog_compiler_can_build_shared_F77=no
14542
lt_prog_compiler_pic_F77='-pic'
14543
lt_prog_compiler_static_F77='-Bstatic'
14547
lt_prog_compiler_can_build_shared_F77=no
14552
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14553
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14556
# Check to make sure the PIC flag actually works.
14558
if test -n "$lt_prog_compiler_pic_F77"; then
14560
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14561
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14562
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14563
echo $ECHO_N "(cached) $ECHO_C" >&6
14565
lt_prog_compiler_pic_works_F77=no
14566
ac_outfile=conftest.$ac_objext
14567
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14568
lt_compiler_flag="$lt_prog_compiler_pic_F77"
14569
# Insert the option either (1) after the last *FLAGS variable, or
14570
# (2) before a word containing "conftest.", or (3) at the end.
14571
# Note that $ac_compile itself does not contain backslashes and begins
14572
# with a dollar sign (not a hyphen), so the echo should work correctly.
14573
# The option is referenced via a variable to avoid confusing sed.
14574
lt_compile=`echo "$ac_compile" | $SED \
14575
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14576
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14577
-e 's:$: $lt_compiler_flag:'`
14578
(eval echo "\"\$as_me:14578: $lt_compile\"" >&5)
14579
(eval "$lt_compile" 2>conftest.err)
14581
cat conftest.err >&5
14582
echo "$as_me:14582: \$? = $ac_status" >&5
14583
if (exit $ac_status) && test -s "$ac_outfile"; then
14584
# The compiler can only warn and ignore the option if not recognized
14585
# So say no if there are warnings other than the usual output.
14586
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14587
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14588
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14589
lt_prog_compiler_pic_works_F77=yes
14595
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14596
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14598
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14599
case $lt_prog_compiler_pic_F77 in
14601
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14604
lt_prog_compiler_pic_F77=
14605
lt_prog_compiler_can_build_shared_F77=no
14610
# For platforms which do not support PIC, -DPIC is meaningless:
14612
lt_prog_compiler_pic_F77=
14615
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14620
# Check to make sure the static flag actually works.
14622
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14623
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14624
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14625
if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14626
echo $ECHO_N "(cached) $ECHO_C" >&6
14628
lt_prog_compiler_static_works_F77=no
14629
save_LDFLAGS="$LDFLAGS"
14630
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14631
printf "$lt_simple_link_test_code" > conftest.$ac_ext
14632
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14633
# The linker can only warn and ignore the option if not recognized
14634
# So say no if there are warnings
14635
if test -s conftest.err; then
14636
# Append any errors to the config.log.
14637
cat conftest.err 1>&5
14638
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14639
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14640
if diff conftest.exp conftest.er2 >/dev/null; then
14641
lt_prog_compiler_static_works_F77=yes
14644
lt_prog_compiler_static_works_F77=yes
14648
LDFLAGS="$save_LDFLAGS"
14651
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14652
echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14654
if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14657
lt_prog_compiler_static_F77=
14661
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14662
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14663
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14664
echo $ECHO_N "(cached) $ECHO_C" >&6
14666
lt_cv_prog_compiler_c_o_F77=no
14667
$rm -r conftest 2>/dev/null
14671
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14673
lt_compiler_flag="-o out/conftest2.$ac_objext"
14674
# Insert the option either (1) after the last *FLAGS variable, or
14675
# (2) before a word containing "conftest.", or (3) at the end.
14676
# Note that $ac_compile itself does not contain backslashes and begins
14677
# with a dollar sign (not a hyphen), so the echo should work correctly.
14678
lt_compile=`echo "$ac_compile" | $SED \
14679
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14680
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14681
-e 's:$: $lt_compiler_flag:'`
14682
(eval echo "\"\$as_me:14682: $lt_compile\"" >&5)
14683
(eval "$lt_compile" 2>out/conftest.err)
14685
cat out/conftest.err >&5
14686
echo "$as_me:14686: \$? = $ac_status" >&5
14687
if (exit $ac_status) && test -s out/conftest2.$ac_objext
14689
# The compiler can only warn and ignore the option if not recognized
14690
# So say no if there are warnings
14691
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14692
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14693
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14694
lt_cv_prog_compiler_c_o_F77=yes
14699
# SGI C++ compiler will create directory out/ii_files/ for
14700
# template instantiation
14701
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14702
$rm out/* && rmdir out
14708
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14709
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14712
hard_links="nottested"
14713
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14714
# do not overwrite the value of need_locks provided by the user
14715
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14716
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14719
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14721
ln conftest.a conftest.b 2>&5 || hard_links=no
14722
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14723
{ echo "$as_me:$LINENO: result: $hard_links" >&5
14724
echo "${ECHO_T}$hard_links" >&6; }
14725
if test "$hard_links" = no; then
14726
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14727
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14734
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14735
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14738
allow_undefined_flag_F77=
14739
enable_shared_with_static_runtimes_F77=no
14741
archive_expsym_cmds_F77=
14742
old_archive_From_new_cmds_F77=
14743
old_archive_from_expsyms_cmds_F77=
14744
export_dynamic_flag_spec_F77=
14745
whole_archive_flag_spec_F77=
14746
thread_safe_flag_spec_F77=
14747
hardcode_libdir_flag_spec_F77=
14748
hardcode_libdir_flag_spec_ld_F77=
14749
hardcode_libdir_separator_F77=
14750
hardcode_direct_F77=no
14751
hardcode_minus_L_F77=no
14752
hardcode_shlibpath_var_F77=unsupported
14753
link_all_deplibs_F77=unknown
14754
hardcode_automatic_F77=no
14756
module_expsym_cmds_F77=
14757
always_export_symbols_F77=no
14758
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14759
# include_expsyms should be a list of space-separated symbols to be *always*
14760
# included in the symbol list
14761
include_expsyms_F77=
14762
# exclude_expsyms can be an extended regexp of symbols to exclude
14763
# it will be wrapped by ` (' and `)$', so one must not match beginning or
14764
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14765
# as well as any symbol that contains `d'.
14766
exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14767
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14768
# platforms (ab)use it in PIC code, but their linkers get confused if
14769
# the symbol is explicitly referenced. Since portable code cannot
14770
# rely on this symbol name, it's probably fine to never include it in
14771
# preloaded symbol tables.
14772
extract_expsyms_cmds=
14773
# Just being paranoid about ensuring that cc_basename is set.
14774
for cc_temp in $compiler""; do
14776
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14777
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14782
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14785
cygwin* | mingw* | pw32*)
14786
# FIXME: the MSVC++ port hasn't been tested in a loooong time
14787
# When not using gcc, we currently assume that we are using
14788
# Microsoft Visual C++.
14789
if test "$GCC" != yes; then
14794
# we just hope/assume this is gcc and not c89 (= MSVC++)
14803
if test "$with_gnu_ld" = yes; then
14804
# If archive_cmds runs LD, not CC, wlarc should be empty
14807
# Set some defaults for GNU ld with shared library support. These
14808
# are reset later if shared libraries are not supported. Putting them
14809
# here allows them to be overridden if necessary.
14810
runpath_var=LD_RUN_PATH
14811
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14812
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14813
# ancient GNU ld didn't support --whole-archive et. al.
14814
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14815
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14817
whole_archive_flag_spec_F77=
14819
supports_anon_versioning=no
14820
case `$LD -v 2>/dev/null` in
14821
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14822
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14823
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14824
*\ 2.11.*) ;; # other 2.11 versions
14825
*) supports_anon_versioning=yes ;;
14828
# See if GNU ld supports shared libraries.
14830
aix3* | aix4* | aix5*)
14831
# On AIX/PPC, the GNU linker is very broken
14832
if test "$host_cpu" != ia64; then
14836
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14837
*** to be unable to reliably create shared libraries on AIX.
14838
*** Therefore, libtool is disabling shared libraries support. If you
14839
*** really care for shared libraries, you may want to modify your PATH
14840
*** so that a non-GNU linker is found, and then restart.
14847
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)'
14848
hardcode_libdir_flag_spec_F77='-L$libdir'
14849
hardcode_minus_L_F77=yes
14851
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14852
# that the semantics of dynamic libraries on AmigaOS, at least up
14853
# to version 4, is to share data among multiple programs linked
14854
# with the same dynamic library. Since this doesn't match the
14855
# behavior of shared libraries on other platforms, we can't use
14861
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14862
allow_undefined_flag_F77=unsupported
14863
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14864
# support --undefined. This deserves some investigation. FIXME
14865
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14871
cygwin* | mingw* | pw32*)
14872
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14873
# as there is no search path for DLLs.
14874
hardcode_libdir_flag_spec_F77='-L$libdir'
14875
allow_undefined_flag_F77=unsupported
14876
always_export_symbols_F77=no
14877
enable_shared_with_static_runtimes_F77=yes
14878
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14880
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14881
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14882
# If the export-symbols file already is a .def file (1st line
14883
# is EXPORTS), use it as is; otherwise, prepend...
14884
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14885
cp $export_symbols $output_objdir/$soname.def;
14887
echo EXPORTS > $output_objdir/$soname.def;
14888
cat $export_symbols >> $output_objdir/$soname.def;
14890
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14897
hardcode_direct_F77=no
14898
hardcode_shlibpath_var_F77=no
14899
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14900
export_dynamic_flag_spec_F77='${wl}-E'
14901
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14902
# Instead, shared libraries are loaded at an image base (0x10000000 by
14903
# default) and relocated if they conflict, which is a slow very memory
14904
# consuming and fragmenting process. To avoid this, we pick a random,
14905
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14906
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
14907
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'
14908
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'
14911
linux* | k*bsd*-gnu)
14912
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14914
case $cc_basename,$host_cpu in
14915
pgcc*) # Portland Group C compiler
14916
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'
14917
tmp_addflag=' $pic_flag'
14919
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14920
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'
14921
tmp_addflag=' $pic_flag -Mnomain' ;;
14922
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14923
tmp_addflag=' -i_dynamic' ;;
14924
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14925
tmp_addflag=' -i_dynamic -nofor_main' ;;
14926
ifc* | ifort*) # Intel Fortran compiler
14927
tmp_addflag=' -nofor_main' ;;
14929
archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14931
if test $supports_anon_versioning = yes; then
14932
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14933
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14934
$echo "local: *; };" >> $output_objdir/$libname.ver~
14935
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14937
link_all_deplibs_F77=no
14943
netbsd* | netbsdelf*-gnu)
14944
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14945
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14948
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14949
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14954
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14958
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14959
*** create shared libraries on Solaris systems. Therefore, libtool
14960
*** is disabling shared libraries support. We urge you to upgrade GNU
14961
*** binutils to release 2.9.1 or newer. Another option is to modify
14962
*** your PATH or compiler configuration so that the native linker is
14963
*** used, and then restart.
14966
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14967
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14968
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14974
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14975
case `$LD -v 2>&1` in
14976
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14980
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14981
*** reliably create shared libraries on SCO systems. Therefore, libtool
14982
*** is disabling shared libraries support. We urge you to upgrade GNU
14983
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14984
*** your PATH or compiler configuration so that the native linker is
14985
*** used, and then restart.
14990
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14991
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14992
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14993
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15002
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15004
hardcode_direct_F77=yes
15005
hardcode_shlibpath_var_F77=no
15009
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15010
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15011
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15018
if test "$ld_shlibs_F77" = no; then
15020
hardcode_libdir_flag_spec_F77=
15021
export_dynamic_flag_spec_F77=
15022
whole_archive_flag_spec_F77=
15025
# PORTME fill in a description of your system's linker (not GNU ld)
15028
allow_undefined_flag_F77=unsupported
15029
always_export_symbols_F77=yes
15030
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'
15031
# Note: this linker hardcodes the directories in LIBPATH if there
15032
# are no directories specified by -L.
15033
hardcode_minus_L_F77=yes
15034
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15035
# Neither direct hardcoding nor static linking is supported with a
15037
hardcode_direct_F77=unsupported
15042
if test "$host_cpu" = ia64; then
15043
# On IA64, the linker does run time linking by default, so we don't
15044
# have to do anything special.
15045
aix_use_runtimelinking=no
15046
exp_sym_flag='-Bexport'
15049
# If we're using GNU nm, then we don't want the "-C" option.
15050
# -C means demangle to AIX nm, but means don't demangle with GNU nm
15051
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15052
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'
15054
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'
15056
aix_use_runtimelinking=no
15058
# Test if we are trying to use run time linking or normal
15059
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15060
# need to do runtime linking.
15061
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15062
for ld_flag in $LDFLAGS; do
15063
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15064
aix_use_runtimelinking=yes
15071
exp_sym_flag='-bexport'
15072
no_entry_flag='-bnoentry'
15075
# When large executables or shared objects are built, AIX ld can
15076
# have problems creating the table of contents. If linking a library
15077
# or program results in "error TOC overflow" add -mminimal-toc to
15078
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15079
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15081
archive_cmds_F77=''
15082
hardcode_direct_F77=yes
15083
hardcode_libdir_separator_F77=':'
15084
link_all_deplibs_F77=yes
15086
if test "$GCC" = yes; then
15087
case $host_os in aix4.[012]|aix4.[012].*)
15088
# We only want to do this on AIX 4.2 and lower, the check
15089
# below for broken collect2 doesn't work under 4.3+
15090
collect2name=`${CC} -print-prog-name=collect2`
15091
if test -f "$collect2name" && \
15092
strings "$collect2name" | grep resolve_lib_name >/dev/null
15094
# We have reworked collect2
15095
hardcode_direct_F77=yes
15097
# We have old collect2
15098
hardcode_direct_F77=unsupported
15099
# It fails to find uninstalled libraries when the uninstalled
15100
# path is not listed in the libpath. Setting hardcode_minus_L
15101
# to unsupported forces relinking
15102
hardcode_minus_L_F77=yes
15103
hardcode_libdir_flag_spec_F77='-L$libdir'
15104
hardcode_libdir_separator_F77=
15108
shared_flag='-shared'
15109
if test "$aix_use_runtimelinking" = yes; then
15110
shared_flag="$shared_flag "'${wl}-G'
15114
if test "$host_cpu" = ia64; then
15115
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15116
# chokes on -Wl,-G. The following line is correct:
15119
if test "$aix_use_runtimelinking" = yes; then
15120
shared_flag='${wl}-G'
15122
shared_flag='${wl}-bM:SRE'
15127
# It seems that -bexpall does not export symbols beginning with
15128
# underscore (_), so it is better to generate a list of symbols to export.
15129
always_export_symbols_F77=yes
15130
if test "$aix_use_runtimelinking" = yes; then
15131
# Warning - without using the other runtime loading flags (-brtl),
15132
# -berok will link without error, but may produce a broken library.
15133
allow_undefined_flag_F77='-berok'
15134
# Determine the default libpath from the value encoded in an empty executable.
15135
cat >conftest.$ac_ext <<_ACEOF
15140
rm -f conftest.$ac_objext conftest$ac_exeext
15141
if { (ac_try="$ac_link"
15142
case "(($ac_try" in
15143
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15144
*) ac_try_echo=$ac_try;;
15146
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15147
(eval "$ac_link") 2>conftest.er1
15149
grep -v '^ *+' conftest.er1 >conftest.err
15151
cat conftest.err >&5
15152
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15153
(exit $ac_status); } &&
15154
{ ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
15155
{ (case "(($ac_try" in
15156
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15157
*) ac_try_echo=$ac_try;;
15159
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15160
(eval "$ac_try") 2>&5
15162
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15163
(exit $ac_status); }; } &&
15164
{ ac_try='test -s conftest$ac_exeext'
15165
{ (case "(($ac_try" in
15166
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15167
*) ac_try_echo=$ac_try;;
15169
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15170
(eval "$ac_try") 2>&5
15172
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15173
(exit $ac_status); }; }; then
15175
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15177
# Check for a 64-bit object if we didn't find anything.
15178
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; }
15181
echo "$as_me: failed program was:" >&5
15182
sed 's/^/| /' conftest.$ac_ext >&5
15187
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15188
conftest$ac_exeext conftest.$ac_ext
15189
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15191
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15192
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"
15194
if test "$host_cpu" = ia64; then
15195
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15196
allow_undefined_flag_F77="-z nodefs"
15197
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"
15199
# Determine the default libpath from the value encoded in an empty executable.
15200
cat >conftest.$ac_ext <<_ACEOF
15205
rm -f conftest.$ac_objext conftest$ac_exeext
15206
if { (ac_try="$ac_link"
15207
case "(($ac_try" in
15208
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15209
*) ac_try_echo=$ac_try;;
15211
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15212
(eval "$ac_link") 2>conftest.er1
15214
grep -v '^ *+' conftest.er1 >conftest.err
15216
cat conftest.err >&5
15217
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15218
(exit $ac_status); } &&
15219
{ ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
15220
{ (case "(($ac_try" in
15221
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15222
*) ac_try_echo=$ac_try;;
15224
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15225
(eval "$ac_try") 2>&5
15227
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15228
(exit $ac_status); }; } &&
15229
{ ac_try='test -s conftest$ac_exeext'
15230
{ (case "(($ac_try" in
15231
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15232
*) ac_try_echo=$ac_try;;
15234
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15235
(eval "$ac_try") 2>&5
15237
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15238
(exit $ac_status); }; }; then
15240
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15242
# Check for a 64-bit object if we didn't find anything.
15243
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; }
15246
echo "$as_me: failed program was:" >&5
15247
sed 's/^/| /' conftest.$ac_ext >&5
15252
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15253
conftest$ac_exeext conftest.$ac_ext
15254
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15256
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15257
# Warning - without using the other run time loading flags,
15258
# -berok will link without error, but may produce a broken library.
15259
no_undefined_flag_F77=' ${wl}-bernotok'
15260
allow_undefined_flag_F77=' ${wl}-berok'
15261
# Exported symbols can be pulled into shared objects from archives
15262
whole_archive_flag_spec_F77='$convenience'
15263
archive_cmds_need_lc_F77=yes
15264
# This is similar to how AIX traditionally builds its shared libraries.
15265
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'
15271
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)'
15272
hardcode_libdir_flag_spec_F77='-L$libdir'
15273
hardcode_minus_L_F77=yes
15274
# see comment about different semantics on the GNU ld section
15279
export_dynamic_flag_spec_F77=-rdynamic
15282
cygwin* | mingw* | pw32*)
15283
# When not using gcc, we currently assume that we are using
15284
# Microsoft Visual C++.
15285
# hardcode_libdir_flag_spec is actually meaningless, as there is
15286
# no search path for DLLs.
15287
hardcode_libdir_flag_spec_F77=' '
15288
allow_undefined_flag_F77=unsupported
15289
# Tell ltmain to make .lib files, not .a files.
15291
# Tell ltmain to make .dll files, not .so files.
15293
# FIXME: Setting linknames here is a bad hack.
15294
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15295
# The linker will automatically build a .lib file if we build a DLL.
15296
old_archive_From_new_cmds_F77='true'
15297
# FIXME: Should let the user specify the lib program.
15298
old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15299
fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15300
enable_shared_with_static_runtimes_F77=yes
15303
darwin* | rhapsody*)
15305
rhapsody* | darwin1.[012])
15306
allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15309
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15310
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15312
case ${MACOSX_DEPLOYMENT_TARGET} in
15314
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15317
allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15323
archive_cmds_need_lc_F77=no
15324
hardcode_direct_F77=no
15325
hardcode_automatic_F77=yes
15326
hardcode_shlibpath_var_F77=unsupported
15327
whole_archive_flag_spec_F77=''
15328
link_all_deplibs_F77=yes
15329
if test "$GCC" = yes ; then
15330
output_verbose_link_cmd='echo'
15331
archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15332
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15333
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15334
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}'
15335
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}'
15337
case $cc_basename in
15339
output_verbose_link_cmd='echo'
15340
archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15341
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15342
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15343
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}'
15344
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}'
15354
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15355
hardcode_libdir_flag_spec_F77='-L$libdir'
15356
hardcode_shlibpath_var_F77=no
15363
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15364
# support. Future versions do this automatically, but an explicit c++rt0.o
15365
# does not break anything, and helps significantly (at the cost of a little
15368
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15369
hardcode_libdir_flag_spec_F77='-R$libdir'
15370
hardcode_direct_F77=yes
15371
hardcode_shlibpath_var_F77=no
15374
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
15376
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15377
hardcode_direct_F77=yes
15378
hardcode_minus_L_F77=yes
15379
hardcode_shlibpath_var_F77=no
15382
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15383
freebsd* | dragonfly*)
15384
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15385
hardcode_libdir_flag_spec_F77='-R$libdir'
15386
hardcode_direct_F77=yes
15387
hardcode_shlibpath_var_F77=no
15391
if test "$GCC" = yes; then
15392
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'
15394
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'
15396
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15397
hardcode_libdir_separator_F77=:
15398
hardcode_direct_F77=yes
15400
# hardcode_minus_L: Not really in the search PATH,
15401
# but as the default location of the library.
15402
hardcode_minus_L_F77=yes
15403
export_dynamic_flag_spec_F77='${wl}-E'
15407
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15408
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15410
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15412
if test "$with_gnu_ld" = no; then
15413
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15414
hardcode_libdir_separator_F77=:
15416
hardcode_direct_F77=yes
15417
export_dynamic_flag_spec_F77='${wl}-E'
15419
# hardcode_minus_L: Not really in the search PATH,
15420
# but as the default location of the library.
15421
hardcode_minus_L_F77=yes
15426
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15429
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15432
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15435
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15441
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15444
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15447
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15451
if test "$with_gnu_ld" = no; then
15452
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15453
hardcode_libdir_separator_F77=:
15457
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15458
hardcode_direct_F77=no
15459
hardcode_shlibpath_var_F77=no
15462
hardcode_direct_F77=yes
15463
export_dynamic_flag_spec_F77='${wl}-E'
15465
# hardcode_minus_L: Not really in the search PATH,
15466
# but as the default location of the library.
15467
hardcode_minus_L_F77=yes
15473
irix5* | irix6* | nonstopux*)
15474
if test "$GCC" = yes; then
15475
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'
15477
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'
15478
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15480
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15481
hardcode_libdir_separator_F77=:
15482
link_all_deplibs_F77=yes
15485
netbsd* | netbsdelf*-gnu)
15486
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15487
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15489
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15491
hardcode_libdir_flag_spec_F77='-R$libdir'
15492
hardcode_direct_F77=yes
15493
hardcode_shlibpath_var_F77=no
15497
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15498
hardcode_direct_F77=yes
15499
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15500
hardcode_libdir_separator_F77=:
15501
hardcode_shlibpath_var_F77=no
15505
hardcode_direct_F77=yes
15506
hardcode_shlibpath_var_F77=no
15507
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15508
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15509
archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15510
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15511
export_dynamic_flag_spec_F77='${wl}-E'
15514
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15515
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15516
hardcode_libdir_flag_spec_F77='-R$libdir'
15519
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15520
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15527
hardcode_libdir_flag_spec_F77='-L$libdir'
15528
hardcode_minus_L_F77=yes
15529
allow_undefined_flag_F77=unsupported
15530
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'
15531
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15535
if test "$GCC" = yes; then
15536
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15537
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'
15539
allow_undefined_flag_F77=' -expect_unresolved \*'
15540
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'
15542
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15543
hardcode_libdir_separator_F77=:
15546
osf4* | osf5*) # as osf3* with the addition of -msym flag
15547
if test "$GCC" = yes; then
15548
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15549
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'
15550
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15552
allow_undefined_flag_F77=' -expect_unresolved \*'
15553
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'
15554
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~
15555
$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'
15557
# Both c and cxx compiler support -rpath directly
15558
hardcode_libdir_flag_spec_F77='-rpath $libdir'
15560
hardcode_libdir_separator_F77=:
15564
no_undefined_flag_F77=' -z text'
15565
if test "$GCC" = yes; then
15567
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15568
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15569
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15572
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15573
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15574
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15576
hardcode_libdir_flag_spec_F77='-R$libdir'
15577
hardcode_shlibpath_var_F77=no
15579
solaris2.[0-5] | solaris2.[0-5].*) ;;
15581
# The compiler driver will combine linker options so we
15582
# cannot just pass the convience library names through
15583
# without $wl, iff we do not link with $LD.
15584
# Luckily, gcc supports the same syntax we need for Sun Studio.
15585
# Supported since Solaris 2.6 (maybe 2.5.1?)
15588
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15590
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' ;;
15593
link_all_deplibs_F77=yes
15597
if test "x$host_vendor" = xsequent; then
15598
# Use $CC to link under sequent, because it throws in some extra .o
15599
# files that make .init and .fini sections work.
15600
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15602
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15604
hardcode_libdir_flag_spec_F77='-L$libdir'
15605
hardcode_direct_F77=yes
15606
hardcode_minus_L_F77=yes
15607
hardcode_shlibpath_var_F77=no
15611
case $host_vendor in
15613
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15614
hardcode_direct_F77=yes # is this really true???
15617
## LD is ld it makes a PLAMLIB
15618
## CC just makes a GrossModule.
15619
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15620
reload_cmds_F77='$CC -r -o $output$reload_objs'
15621
hardcode_direct_F77=no
15624
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15625
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15628
runpath_var='LD_RUN_PATH'
15629
hardcode_shlibpath_var_F77=no
15633
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15634
hardcode_shlibpath_var_F77=no
15635
export_dynamic_flag_spec_F77='-Bexport'
15639
if test -d /usr/nec; then
15640
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15641
hardcode_shlibpath_var_F77=no
15642
runpath_var=LD_RUN_PATH
15643
hardcode_runpath_var=yes
15648
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15649
no_undefined_flag_F77='${wl}-z,text'
15650
archive_cmds_need_lc_F77=no
15651
hardcode_shlibpath_var_F77=no
15652
runpath_var='LD_RUN_PATH'
15654
if test "$GCC" = yes; then
15655
archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15656
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15658
archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15659
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15663
sysv5* | sco3.2v5* | sco5v6*)
15664
# Note: We can NOT use -z defs as we might desire, because we do not
15665
# link with -lc, and that would cause any symbols used from libc to
15666
# always be unresolved, which means just about no library would
15667
# ever link correctly. If we're not using GNU ld we use -z text
15668
# though, which does catch some bad symbols but isn't as heavy-handed
15670
no_undefined_flag_F77='${wl}-z,text'
15671
allow_undefined_flag_F77='${wl}-z,nodefs'
15672
archive_cmds_need_lc_F77=no
15673
hardcode_shlibpath_var_F77=no
15674
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15675
hardcode_libdir_separator_F77=':'
15676
link_all_deplibs_F77=yes
15677
export_dynamic_flag_spec_F77='${wl}-Bexport'
15678
runpath_var='LD_RUN_PATH'
15680
if test "$GCC" = yes; then
15681
archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15682
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15684
archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15685
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15690
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15691
hardcode_libdir_flag_spec_F77='-L$libdir'
15692
hardcode_shlibpath_var_F77=no
15701
{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15702
echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15703
test "$ld_shlibs_F77" = no && can_build_shared=no
15706
# Do we need to explicitly link libc?
15708
case "x$archive_cmds_need_lc_F77" in
15710
# Assume -lc should be added
15711
archive_cmds_need_lc_F77=yes
15713
if test "$enable_shared" = yes && test "$GCC" = yes; then
15714
case $archive_cmds_F77 in
15716
# FIXME: we may have to deal with multi-command sequences.
15719
# Test whether the compiler implicitly links with -lc since on some
15720
# systems, -lgcc has to come before -lc. If gcc already passes -lc
15721
# to ld, don't add -lc before -lgcc.
15722
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15723
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15725
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15727
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15728
(eval $ac_compile) 2>&5
15730
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15731
(exit $ac_status); } 2>conftest.err; then
15734
libobjs=conftest.$ac_objext
15736
wl=$lt_prog_compiler_wl_F77
15737
pic_flag=$lt_prog_compiler_pic_F77
15743
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15744
allow_undefined_flag_F77=
15745
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15746
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15748
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15749
(exit $ac_status); }
15751
archive_cmds_need_lc_F77=no
15753
archive_cmds_need_lc_F77=yes
15755
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15757
cat conftest.err 1>&5
15760
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15761
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15768
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15769
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15770
library_names_spec=
15771
libname_spec='lib$name'
15775
postuninstall_cmds=
15779
shlibpath_overrides_runpath=unknown
15781
dynamic_linker="$host_os ld.so"
15782
sys_lib_dlsearch_path_spec="/lib /usr/lib"
15783
if test "$GCC" = yes; then
15784
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15785
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15786
# if the path contains ";" then we assume it to be the separator
15787
# otherwise default to the standard path separator (i.e. ":") - it is
15788
# assumed that no part of a normal pathname contains ";" but that should
15789
# okay in the real world where ";" in dirpaths is itself problematic.
15790
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15792
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15795
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15797
need_lib_prefix=unknown
15798
hardcode_into_libs=no
15800
# when you set need_version to no, make sure it does not cause -set_version
15801
# flags to be left without arguments
15802
need_version=unknown
15807
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15808
shlibpath_var=LIBPATH
15810
# AIX 3 has no versioning support, so we append a major version to the name.
15811
soname_spec='${libname}${release}${shared_ext}$major'
15818
hardcode_into_libs=yes
15819
if test "$host_cpu" = ia64; then
15820
# AIX 5 supports IA64
15821
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15822
shlibpath_var=LD_LIBRARY_PATH
15824
# With GCC up to 2.95.x, collect2 would create an import file
15825
# for dependence libraries. The import file would start with
15826
# the line `#! .'. This would cause the generated library to
15827
# depend on `.', always an invalid library. This was fixed in
15828
# development snapshots of GCC prior to 3.0.
15830
aix4 | aix4.[01] | aix4.[01].*)
15831
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15833
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15836
can_build_shared=no
15840
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15841
# soname into executable. Probably we can add versioning support to
15842
# collect2, so additional links can be useful in future.
15843
if test "$aix_use_runtimelinking" = yes; then
15844
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
15845
# instead of lib<name>.a to let people know that these are not
15846
# typical AIX shared libraries.
15847
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15849
# We preserve .a as extension for shared libraries through AIX4.2
15850
# and later when we are not doing run time linking.
15851
library_names_spec='${libname}${release}.a $libname.a'
15852
soname_spec='${libname}${release}${shared_ext}$major'
15854
shlibpath_var=LIBPATH
15859
library_names_spec='$libname.ixlibrary $libname.a'
15860
# Create ${libname}_ixlibrary.a entries in /sys/libs.
15861
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'
15865
library_names_spec='${libname}${shared_ext}'
15866
dynamic_linker="$host_os ld.so"
15867
shlibpath_var=LIBRARY_PATH
15873
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15874
soname_spec='${libname}${release}${shared_ext}$major'
15875
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15876
shlibpath_var=LD_LIBRARY_PATH
15877
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15878
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15879
# the default ld.so.conf also contains /usr/contrib/lib and
15880
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15881
# libtool to hard-code these into programs
15884
cygwin* | mingw* | pw32*)
15885
version_type=windows
15890
case $GCC,$host_os in
15891
yes,cygwin* | yes,mingw* | yes,pw32*)
15892
library_names_spec='$libname.dll.a'
15893
# DLL is installed to $(libdir)/../bin by postinstall_cmds
15894
postinstall_cmds='base_file=`basename \${file}`~
15895
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15896
dldir=$destdir/`dirname \$dlpath`~
15897
test -d \$dldir || mkdir -p \$dldir~
15898
$install_prog $dir/$dlname \$dldir/$dlname~
15899
chmod a+x \$dldir/$dlname'
15900
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15901
dlpath=$dir/\$dldll~
15903
shlibpath_overrides_runpath=yes
15907
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
15908
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15909
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15912
# MinGW DLLs use traditional 'lib' prefix
15913
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15914
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15915
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15916
# It is most probably a Windows format PATH printed by
15917
# mingw gcc, but we are running on Cygwin. Gcc prints its search
15918
# path with ; separators, and with drive letters. We can handle the
15919
# drive letters (cygwin fileutils understands them), so leave them,
15920
# especially as we might pass files found there to a mingw objdump,
15921
# which wouldn't understand a cygwinified path. Ahh.
15922
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15924
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15928
# pw32 DLLs use 'pw' prefix rather than 'lib'
15929
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15935
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15938
dynamic_linker='Win32 ld.exe'
15939
# FIXME: first we should search . and the directory the executable is in
15943
darwin* | rhapsody*)
15944
dynamic_linker="$host_os dyld"
15945
version_type=darwin
15948
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15949
soname_spec='${libname}${release}${major}$shared_ext'
15950
shlibpath_overrides_runpath=yes
15951
shlibpath_var=DYLD_LIBRARY_PATH
15952
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15953
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15954
if test "$GCC" = yes; then
15955
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"`
15957
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15959
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15966
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15967
soname_spec='${libname}${release}${shared_ext}$major'
15968
shlibpath_var=LD_LIBRARY_PATH
15975
freebsd* | dragonfly*)
15976
# DragonFly does not have aout. When/if they implement a new
15977
# versioning mechanism, adjust this.
15978
if test -x /usr/bin/objformat; then
15979
objformat=`/usr/bin/objformat`
15982
freebsd[123]*) objformat=aout ;;
15983
*) objformat=elf ;;
15986
version_type=freebsd-$objformat
15987
case $version_type in
15989
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15994
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15998
shlibpath_var=LD_LIBRARY_PATH
16001
shlibpath_overrides_runpath=yes
16003
freebsd3.[01]* | freebsdelf3.[01]*)
16004
shlibpath_overrides_runpath=yes
16005
hardcode_into_libs=yes
16007
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16008
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16009
shlibpath_overrides_runpath=no
16010
hardcode_into_libs=yes
16012
freebsd*) # from 4.6 on
16013
shlibpath_overrides_runpath=yes
16014
hardcode_into_libs=yes
16023
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16024
soname_spec='${libname}${release}${shared_ext}$major'
16025
shlibpath_var=LD_LIBRARY_PATH
16026
hardcode_into_libs=yes
16029
hpux9* | hpux10* | hpux11*)
16030
# Give a soname corresponding to the major version so that dld.sl refuses to
16031
# link against other versions.
16038
hardcode_into_libs=yes
16039
dynamic_linker="$host_os dld.so"
16040
shlibpath_var=LD_LIBRARY_PATH
16041
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16042
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16043
soname_spec='${libname}${release}${shared_ext}$major'
16044
if test "X$HPUX_IA64_MODE" = X32; then
16045
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16047
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16049
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16053
hardcode_into_libs=yes
16054
dynamic_linker="$host_os dld.sl"
16055
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16056
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16057
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16058
soname_spec='${libname}${release}${shared_ext}$major'
16059
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16060
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16064
dynamic_linker="$host_os dld.sl"
16065
shlibpath_var=SHLIB_PATH
16066
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16067
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16068
soname_spec='${libname}${release}${shared_ext}$major'
16071
# HP-UX runs *really* slowly unless shared libraries are mode 555.
16072
postinstall_cmds='chmod 555 $lib'
16079
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16080
soname_spec='${libname}${release}${shared_ext}$major'
16081
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16082
shlibpath_var=LD_LIBRARY_PATH
16083
shlibpath_overrides_runpath=no
16084
hardcode_into_libs=yes
16087
irix5* | irix6* | nonstopux*)
16089
nonstopux*) version_type=nonstopux ;;
16091
if test "$lt_cv_prog_gnu_ld" = yes; then
16099
soname_spec='${libname}${release}${shared_ext}$major'
16100
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16102
irix5* | nonstopux*)
16103
libsuff= shlibsuff=
16106
case $LD in # libtool.m4 will add one of these switches to LD
16107
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16108
libsuff= shlibsuff= libmagic=32-bit;;
16109
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16110
libsuff=32 shlibsuff=N32 libmagic=N32;;
16111
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16112
libsuff=64 shlibsuff=64 libmagic=64-bit;;
16113
*) libsuff= shlibsuff= libmagic=never-match;;
16117
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16118
shlibpath_overrides_runpath=no
16119
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16120
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16121
hardcode_into_libs=yes
16124
# No shared lib support for Linux oldld, aout, or coff.
16125
linux*oldld* | linux*aout* | linux*coff*)
16129
# This must be Linux ELF.
16130
linux* | k*bsd*-gnu)
16134
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16135
soname_spec='${libname}${release}${shared_ext}$major'
16136
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16137
shlibpath_var=LD_LIBRARY_PATH
16138
shlibpath_overrides_runpath=no
16139
# This implies no fast_install, which is unacceptable.
16140
# Some rework will be needed to allow for fast_install
16141
# before this can be enabled.
16142
hardcode_into_libs=yes
16144
# Append ld.so.conf contents to the search path
16145
if test -f /etc/ld.so.conf; then
16146
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' ' '`
16147
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16150
# We used to test for /lib/ld.so.1 and disable shared libraries on
16151
# powerpc, because MkLinux only supported shared libraries with the
16152
# GNU dynamic linker. Since this was broken with cross compilers,
16153
# most powerpc-linux boxes support dynamic linking these days and
16154
# people can always --disable-shared, the test was removed, and we
16155
# assume the GNU/Linux dynamic linker is in use.
16156
dynamic_linker='GNU/Linux ld.so'
16163
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16164
soname_spec='${libname}${release}${shared_ext}$major'
16165
shlibpath_var=LD_LIBRARY_PATH
16166
shlibpath_overrides_runpath=no
16167
hardcode_into_libs=yes
16168
dynamic_linker='NetBSD ld.elf_so'
16175
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16176
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16177
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16178
dynamic_linker='NetBSD (a.out) ld.so'
16180
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16181
soname_spec='${libname}${release}${shared_ext}$major'
16182
dynamic_linker='NetBSD ld.elf_so'
16184
shlibpath_var=LD_LIBRARY_PATH
16185
shlibpath_overrides_runpath=yes
16186
hardcode_into_libs=yes
16191
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16192
shlibpath_var=LD_LIBRARY_PATH
16193
shlibpath_overrides_runpath=yes
16200
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16201
soname_spec='${libname}${release}${shared_ext}$major'
16202
shlibpath_var=LD_LIBRARY_PATH
16203
shlibpath_overrides_runpath=yes
16208
sys_lib_dlsearch_path_spec="/usr/lib"
16210
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16212
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16213
*) need_version=no ;;
16215
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16216
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16217
shlibpath_var=LD_LIBRARY_PATH
16218
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16220
openbsd2.[89] | openbsd2.[89].*)
16221
shlibpath_overrides_runpath=no
16224
shlibpath_overrides_runpath=yes
16228
shlibpath_overrides_runpath=yes
16233
libname_spec='$name'
16236
library_names_spec='$libname${shared_ext} $libname.a'
16237
dynamic_linker='OS/2 ld.exe'
16238
shlibpath_var=LIBPATH
16241
osf3* | osf4* | osf5*)
16245
soname_spec='${libname}${release}${shared_ext}$major'
16246
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16247
shlibpath_var=LD_LIBRARY_PATH
16248
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16249
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16256
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16257
soname_spec='${libname}${release}${shared_ext}$major'
16258
shlibpath_var=LD_LIBRARY_PATH
16259
shlibpath_overrides_runpath=yes
16260
hardcode_into_libs=yes
16261
# ldd complains unless libraries are executable
16262
postinstall_cmds='chmod +x $lib'
16267
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16268
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16269
shlibpath_var=LD_LIBRARY_PATH
16270
shlibpath_overrides_runpath=yes
16271
if test "$with_gnu_ld" = yes; then
16279
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16280
soname_spec='${libname}${release}${shared_ext}$major'
16281
shlibpath_var=LD_LIBRARY_PATH
16282
case $host_vendor in
16284
shlibpath_overrides_runpath=no
16286
export_dynamic_flag_spec='${wl}-Blargedynsym'
16287
runpath_var=LD_RUN_PATH
16295
shlibpath_overrides_runpath=no
16296
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16302
if test -d /usr/nec ;then
16304
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16305
soname_spec='$libname${shared_ext}.$major'
16306
shlibpath_var=LD_LIBRARY_PATH
16310
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16311
version_type=freebsd-elf
16314
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16315
soname_spec='${libname}${release}${shared_ext}$major'
16316
shlibpath_var=LD_LIBRARY_PATH
16317
hardcode_into_libs=yes
16318
if test "$with_gnu_ld" = yes; then
16319
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16320
shlibpath_overrides_runpath=no
16322
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16323
shlibpath_overrides_runpath=yes
16326
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16330
sys_lib_dlsearch_path_spec='/usr/lib'
16335
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16336
soname_spec='${libname}${release}${shared_ext}$major'
16337
shlibpath_var=LD_LIBRARY_PATH
16344
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16345
echo "${ECHO_T}$dynamic_linker" >&6; }
16346
test "$dynamic_linker" = no && can_build_shared=no
16348
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16349
if test "$GCC" = yes; then
16350
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16353
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16354
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16355
hardcode_action_F77=
16356
if test -n "$hardcode_libdir_flag_spec_F77" || \
16357
test -n "$runpath_var_F77" || \
16358
test "X$hardcode_automatic_F77" = "Xyes" ; then
16360
# We can hardcode non-existant directories.
16361
if test "$hardcode_direct_F77" != no &&
16362
# If the only mechanism to avoid hardcoding is shlibpath_var, we
16363
# have to relink, otherwise we might link with an installed library
16364
# when we should be linking with a yet-to-be-installed one
16365
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16366
test "$hardcode_minus_L_F77" != no; then
16367
# Linking always hardcodes the temporary library directory.
16368
hardcode_action_F77=relink
16370
# We can link without hardcoding, and we can hardcode nonexisting dirs.
16371
hardcode_action_F77=immediate
16374
# We cannot hardcode anything, or else we can only hardcode existing
16376
hardcode_action_F77=unsupported
16378
{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16379
echo "${ECHO_T}$hardcode_action_F77" >&6; }
16381
if test "$hardcode_action_F77" = relink; then
16382
# Fast installation is not supported
16383
enable_fast_install=no
16384
elif test "$shlibpath_overrides_runpath" = yes ||
16385
test "$enable_shared" = no; then
16386
# Fast installation is not necessary
16387
enable_fast_install=needless
16391
# The else clause should only fire when bootstrapping the
16392
# libtool distribution, otherwise you forgot to ship ltmain.sh
16393
# with your package, and you will get complaints that there are
16394
# no rules to generate ltmain.sh.
16395
if test -f "$ltmain"; then
16396
# See if we are running on zsh, and set the options which allow our commands through
16397
# without removal of \ escapes.
16398
if test -n "${ZSH_VERSION+set}" ; then
16399
setopt NO_GLOB_SUBST
16401
# Now quote all the things that may contain metacharacters while being
16402
# careful not to overquote the AC_SUBSTed values. We take copies of the
16403
# variables and quote the copies for generation of the libtool script.
16404
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16406
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16407
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16408
deplibs_check_method reload_flag reload_cmds need_locks \
16409
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16410
lt_cv_sys_global_symbol_to_c_name_address \
16411
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16412
old_postinstall_cmds old_postuninstall_cmds \
16416
lt_prog_compiler_wl_F77 \
16417
lt_prog_compiler_pic_F77 \
16418
lt_prog_compiler_static_F77 \
16419
lt_prog_compiler_no_builtin_flag_F77 \
16420
export_dynamic_flag_spec_F77 \
16421
thread_safe_flag_spec_F77 \
16422
whole_archive_flag_spec_F77 \
16423
enable_shared_with_static_runtimes_F77 \
16424
old_archive_cmds_F77 \
16425
old_archive_from_new_cmds_F77 \
16426
predep_objects_F77 \
16427
postdep_objects_F77 \
16430
compiler_lib_search_path_F77 \
16432
archive_expsym_cmds_F77 \
16433
postinstall_cmds_F77 \
16434
postuninstall_cmds_F77 \
16435
old_archive_from_expsyms_cmds_F77 \
16436
allow_undefined_flag_F77 \
16437
no_undefined_flag_F77 \
16438
export_symbols_cmds_F77 \
16439
hardcode_libdir_flag_spec_F77 \
16440
hardcode_libdir_flag_spec_ld_F77 \
16441
hardcode_libdir_separator_F77 \
16442
hardcode_automatic_F77 \
16444
module_expsym_cmds_F77 \
16445
lt_cv_prog_compiler_c_o_F77 \
16446
exclude_expsyms_F77 \
16447
include_expsyms_F77; do
16450
old_archive_cmds_F77 | \
16451
old_archive_from_new_cmds_F77 | \
16452
archive_cmds_F77 | \
16453
archive_expsym_cmds_F77 | \
16454
module_cmds_F77 | \
16455
module_expsym_cmds_F77 | \
16456
old_archive_from_expsyms_cmds_F77 | \
16457
export_symbols_cmds_F77 | \
16458
extract_expsyms_cmds | reload_cmds | finish_cmds | \
16459
postinstall_cmds | postuninstall_cmds | \
16460
old_postinstall_cmds | old_postuninstall_cmds | \
16461
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16462
# Double-quote double-evaled strings.
16463
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16466
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16472
*'\$0 --fallback-echo"')
16473
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16479
cat <<__EOF__ >> "$cfgfile"
16480
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16482
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16484
# Shell to use when invoking shell scripts.
16487
# Whether or not to build shared libraries.
16488
build_libtool_libs=$enable_shared
16490
# Whether or not to build static libraries.
16491
build_old_libs=$enable_static
16493
# Whether or not to add -lc for building shared libraries.
16494
build_libtool_need_lc=$archive_cmds_need_lc_F77
16496
# Whether or not to disallow shared libs when runtime libs are static
16497
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16499
# Whether or not to optimize for fast installation.
16500
fast_install=$enable_fast_install
16503
host_alias=$host_alias
16507
# The build system.
16508
build_alias=$build_alias
16512
# An echo program that does not interpret backslashes.
16517
AR_FLAGS=$lt_AR_FLAGS
16522
# LTCC compiler flags.
16523
LTCFLAGS=$lt_LTCFLAGS
16525
# A language-specific compiler.
16526
CC=$lt_compiler_F77
16528
# Is the compiler the GNU C compiler?
16534
# The linker used to build libraries.
16537
# Whether we need hard or soft links.
16540
# A BSD-compatible nm program.
16543
# A symbol stripping program
16546
# Used to examine libraries when file_magic_cmd begins "file"
16547
MAGIC_CMD=$MAGIC_CMD
16549
# Used on cygwin: DLL creation program.
16552
# Used on cygwin: object dumper.
16555
# Used on cygwin: assembler.
16558
# The name of the directory that contains temporary libtool files.
16561
# How to create reloadable object files.
16562
reload_flag=$lt_reload_flag
16563
reload_cmds=$lt_reload_cmds
16565
# How to pass a linker flag through the compiler.
16566
wl=$lt_lt_prog_compiler_wl_F77
16568
# Object file suffix (normally "o").
16569
objext="$ac_objext"
16571
# Old archive suffix (normally "a").
16574
# Shared library suffix (normally ".so").
16575
shrext_cmds='$shrext_cmds'
16577
# Executable file suffix (normally "").
16580
# Additional compiler flags for building library objects.
16581
pic_flag=$lt_lt_prog_compiler_pic_F77
16584
# What is the maximum length of a command?
16585
max_cmd_len=$lt_cv_sys_max_cmd_len
16587
# Does compiler simultaneously support -c and -o options?
16588
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16590
# Must we lock files when doing compilation?
16591
need_locks=$lt_need_locks
16593
# Do we need the lib prefix for modules?
16594
need_lib_prefix=$need_lib_prefix
16596
# Do we need a version for libraries?
16597
need_version=$need_version
16599
# Whether dlopen is supported.
16600
dlopen_support=$enable_dlopen
16602
# Whether dlopen of programs is supported.
16603
dlopen_self=$enable_dlopen_self
16605
# Whether dlopen of statically linked programs is supported.
16606
dlopen_self_static=$enable_dlopen_self_static
16608
# Compiler flag to prevent dynamic linking.
16609
link_static_flag=$lt_lt_prog_compiler_static_F77
16611
# Compiler flag to turn off builtin functions.
16612
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16614
# Compiler flag to allow reflexive dlopens.
16615
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16617
# Compiler flag to generate shared objects directly from archives.
16618
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16620
# Compiler flag to generate thread-safe objects.
16621
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16623
# Library versioning type.
16624
version_type=$version_type
16626
# Format of library name prefix.
16627
libname_spec=$lt_libname_spec
16629
# List of archive names. First name is the real one, the rest are links.
16630
# The last name is the one that the linker finds with -lNAME.
16631
library_names_spec=$lt_library_names_spec
16633
# The coded name of the library, if different from the real name.
16634
soname_spec=$lt_soname_spec
16636
# Commands used to build and install an old-style archive.
16638
old_archive_cmds=$lt_old_archive_cmds_F77
16639
old_postinstall_cmds=$lt_old_postinstall_cmds
16640
old_postuninstall_cmds=$lt_old_postuninstall_cmds
16642
# Create an old-style archive from a shared archive.
16643
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16645
# Create a temporary old-style archive to link instead of a shared archive.
16646
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16648
# Commands used to build and install a shared archive.
16649
archive_cmds=$lt_archive_cmds_F77
16650
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16651
postinstall_cmds=$lt_postinstall_cmds
16652
postuninstall_cmds=$lt_postuninstall_cmds
16654
# Commands used to build a loadable module (assumed same as above if empty)
16655
module_cmds=$lt_module_cmds_F77
16656
module_expsym_cmds=$lt_module_expsym_cmds_F77
16658
# Commands to strip libraries.
16659
old_striplib=$lt_old_striplib
16660
striplib=$lt_striplib
16662
# Dependencies to place before the objects being linked to create a
16664
predep_objects=$lt_predep_objects_F77
16666
# Dependencies to place after the objects being linked to create a
16668
postdep_objects=$lt_postdep_objects_F77
16670
# Dependencies to place before the objects being linked to create a
16672
predeps=$lt_predeps_F77
16674
# Dependencies to place after the objects being linked to create a
16676
postdeps=$lt_postdeps_F77
16678
# The library search path used internally by the compiler when linking
16679
# a shared library.
16680
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16682
# Method to check whether dependent libraries are shared objects.
16683
deplibs_check_method=$lt_deplibs_check_method
16685
# Command to use when deplibs_check_method == file_magic.
16686
file_magic_cmd=$lt_file_magic_cmd
16688
# Flag that allows shared libraries with undefined symbols to be built.
16689
allow_undefined_flag=$lt_allow_undefined_flag_F77
16691
# Flag that forces no undefined symbols.
16692
no_undefined_flag=$lt_no_undefined_flag_F77
16694
# Commands used to finish a libtool library installation in a directory.
16695
finish_cmds=$lt_finish_cmds
16697
# Same as above, but a single script fragment to be evaled but not shown.
16698
finish_eval=$lt_finish_eval
16700
# Take the output of nm and produce a listing of raw symbols and C names.
16701
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16703
# Transform the output of nm in a proper C declaration
16704
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16706
# Transform the output of nm in a C name address pair
16707
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16709
# This is the shared library runtime path variable.
16710
runpath_var=$runpath_var
16712
# This is the shared library path variable.
16713
shlibpath_var=$shlibpath_var
16715
# Is shlibpath searched before the hard-coded library search path?
16716
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16718
# How to hardcode a shared library path into an executable.
16719
hardcode_action=$hardcode_action_F77
16721
# Whether we should hardcode library paths into libraries.
16722
hardcode_into_libs=$hardcode_into_libs
16724
# Flag to hardcode \$libdir into a binary during linking.
16725
# This must work even if \$libdir does not exist.
16726
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16728
# If ld is used when linking, flag to hardcode \$libdir into
16729
# a binary during linking. This must work even if \$libdir does
16731
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16733
# Whether we need a single -rpath flag with a separated argument.
16734
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16736
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16737
# resulting binary.
16738
hardcode_direct=$hardcode_direct_F77
16740
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16741
# resulting binary.
16742
hardcode_minus_L=$hardcode_minus_L_F77
16744
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16745
# the resulting binary.
16746
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16748
# Set to yes if building a shared library automatically hardcodes DIR into the library
16749
# and all subsequent libraries and executables linked against it.
16750
hardcode_automatic=$hardcode_automatic_F77
16752
# Variables whose values should be saved in libtool wrapper scripts and
16753
# restored at relink time.
16754
variables_saved_for_relink="$variables_saved_for_relink"
16756
# Whether libtool must link a program against all its dependency libraries.
16757
link_all_deplibs=$link_all_deplibs_F77
16759
# Compile-time system search path for libraries
16760
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16762
# Run-time system search path for libraries
16763
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16765
# Fix the shell variable \$srcfile for the compiler.
16766
fix_srcfile_path="$fix_srcfile_path_F77"
16768
# Set to yes if exported symbols are required.
16769
always_export_symbols=$always_export_symbols_F77
16771
# The commands to list exported symbols.
16772
export_symbols_cmds=$lt_export_symbols_cmds_F77
16774
# The commands to extract the exported symbol list from a shared archive.
16775
extract_expsyms_cmds=$lt_extract_expsyms_cmds
16777
# Symbols that should not be listed in the preloaded symbols.
16778
exclude_expsyms=$lt_exclude_expsyms_F77
16780
# Symbols that must always be exported.
16781
include_expsyms=$lt_include_expsyms_F77
16783
# ### END LIBTOOL TAG CONFIG: $tagname
16789
# If there is no Makefile yet, we rely on a make rule to execute
16790
# `config.status --recheck' to rerun these tests and create the
16791
# libtool script then.
16792
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16793
if test -f "$ltmain_in"; then
16794
test -f Makefile && make "$ltmain"
16800
ac_cpp='$CPP $CPPFLAGS'
16801
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16802
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16803
ac_compiler_gnu=$ac_cv_c_compiler_gnu
16813
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16816
# Source file extension for Java test sources.
16819
# Object file extension for compiled Java test sources.
16823
# Code to be used in simple compile tests
16824
lt_simple_compile_test_code="class foo {}\n"
16826
# Code to be used in simple link tests
16827
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16829
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16831
# If no C compiler was specified, use CC.
16834
# If no C compiler flags were specified, use CFLAGS.
16835
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16837
# Allow CC to be a program name with arguments.
16841
# save warnings/boilerplate of simple test code
16842
ac_outfile=conftest.$ac_objext
16843
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16844
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16845
_lt_compiler_boilerplate=`cat conftest.err`
16848
ac_outfile=conftest.$ac_objext
16849
printf "$lt_simple_link_test_code" >conftest.$ac_ext
16850
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16851
_lt_linker_boilerplate=`cat conftest.err`
16855
# Allow CC to be a program name with arguments.
16860
for cc_temp in $compiler""; do
16862
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16863
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16868
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16871
# GCJ did not exist at the time GCC didn't implicitly link libc in.
16872
archive_cmds_need_lc_GCJ=no
16874
old_archive_cmds_GCJ=$old_archive_cmds
16877
lt_prog_compiler_no_builtin_flag_GCJ=
16879
if test "$GCC" = yes; then
16880
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16883
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16884
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16885
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16886
echo $ECHO_N "(cached) $ECHO_C" >&6
16888
lt_cv_prog_compiler_rtti_exceptions=no
16889
ac_outfile=conftest.$ac_objext
16890
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16891
lt_compiler_flag="-fno-rtti -fno-exceptions"
16892
# Insert the option either (1) after the last *FLAGS variable, or
16893
# (2) before a word containing "conftest.", or (3) at the end.
16894
# Note that $ac_compile itself does not contain backslashes and begins
16895
# with a dollar sign (not a hyphen), so the echo should work correctly.
16896
# The option is referenced via a variable to avoid confusing sed.
16897
lt_compile=`echo "$ac_compile" | $SED \
16898
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16899
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16900
-e 's:$: $lt_compiler_flag:'`
16901
(eval echo "\"\$as_me:16901: $lt_compile\"" >&5)
16902
(eval "$lt_compile" 2>conftest.err)
16904
cat conftest.err >&5
16905
echo "$as_me:16905: \$? = $ac_status" >&5
16906
if (exit $ac_status) && test -s "$ac_outfile"; then
16907
# The compiler can only warn and ignore the option if not recognized
16908
# So say no if there are warnings other than the usual output.
16909
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16910
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16911
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16912
lt_cv_prog_compiler_rtti_exceptions=yes
16918
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16919
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16921
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16922
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16929
lt_prog_compiler_wl_GCJ=
16930
lt_prog_compiler_pic_GCJ=
16931
lt_prog_compiler_static_GCJ=
16933
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16934
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16936
if test "$GCC" = yes; then
16937
lt_prog_compiler_wl_GCJ='-Wl,'
16938
lt_prog_compiler_static_GCJ='-static'
16942
# All AIX code is PIC.
16943
if test "$host_cpu" = ia64; then
16944
# AIX 5 now supports IA64 processor
16945
lt_prog_compiler_static_GCJ='-Bstatic'
16950
# FIXME: we need at least 68020 code to build shared libraries, but
16951
# adding the `-m68020' flag to GCC prevents building anything better,
16953
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16956
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16957
# PIC is the default for these OSes.
16960
mingw* | pw32* | os2*)
16961
# This hack is so that the source file can tell whether it is being
16962
# built for inclusion in a dll (and should export symbols for example).
16963
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16966
darwin* | rhapsody*)
16967
# PIC is the default on this platform
16968
# Common symbols not allowed in MH_DYLIB files
16969
lt_prog_compiler_pic_GCJ='-fno-common'
16973
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
16974
# Instead, we relocate shared libraries at runtime.
16978
# Just because we use GCC doesn't mean we suddenly get shared libraries
16979
# on systems that don't support them.
16980
lt_prog_compiler_can_build_shared_GCJ=no
16985
if test -d /usr/nec; then
16986
lt_prog_compiler_pic_GCJ=-Kconform_pic
16991
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16992
# not for PA HP-UX.
16998
lt_prog_compiler_pic_GCJ='-fPIC'
17004
lt_prog_compiler_pic_GCJ='-fPIC'
17008
# PORTME Check for flag to pass linker flags through the system compiler.
17011
lt_prog_compiler_wl_GCJ='-Wl,'
17012
if test "$host_cpu" = ia64; then
17013
# AIX 5 now supports IA64 processor
17014
lt_prog_compiler_static_GCJ='-Bstatic'
17016
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17020
# PIC is the default on this platform
17021
# Common symbols not allowed in MH_DYLIB files
17022
case $cc_basename in
17024
lt_prog_compiler_pic_GCJ='-qnocommon'
17025
lt_prog_compiler_wl_GCJ='-Wl,'
17030
mingw* | pw32* | os2*)
17031
# This hack is so that the source file can tell whether it is being
17032
# built for inclusion in a dll (and should export symbols for example).
17033
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17036
hpux9* | hpux10* | hpux11*)
17037
lt_prog_compiler_wl_GCJ='-Wl,'
17038
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17039
# not for PA HP-UX.
17045
lt_prog_compiler_pic_GCJ='+Z'
17048
# Is there a better lt_prog_compiler_static that works with the bundled CC?
17049
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17052
irix5* | irix6* | nonstopux*)
17053
lt_prog_compiler_wl_GCJ='-Wl,'
17054
# PIC (with -KPIC) is the default.
17055
lt_prog_compiler_static_GCJ='-non_shared'
17059
lt_prog_compiler_pic_GCJ='-KPIC'
17060
lt_prog_compiler_static_GCJ='-Bstatic'
17063
linux* | k*bsd*-gnu)
17064
case $cc_basename in
17066
lt_prog_compiler_wl_GCJ='-Wl,'
17067
lt_prog_compiler_pic_GCJ='-KPIC'
17068
lt_prog_compiler_static_GCJ='-static'
17070
pgcc* | pgf77* | pgf90* | pgf95*)
17071
# Portland Group compilers (*not* the Pentium gcc compiler,
17072
# which looks to be a dead project)
17073
lt_prog_compiler_wl_GCJ='-Wl,'
17074
lt_prog_compiler_pic_GCJ='-fpic'
17075
lt_prog_compiler_static_GCJ='-Bstatic'
17078
lt_prog_compiler_wl_GCJ='-Wl,'
17079
# All Alpha code is PIC.
17080
lt_prog_compiler_static_GCJ='-non_shared'
17085
osf3* | osf4* | osf5*)
17086
lt_prog_compiler_wl_GCJ='-Wl,'
17087
# All OSF/1 code is PIC.
17088
lt_prog_compiler_static_GCJ='-non_shared'
17092
lt_prog_compiler_pic_GCJ='-KPIC'
17093
lt_prog_compiler_static_GCJ='-Bstatic'
17094
case $cc_basename in
17095
f77* | f90* | f95*)
17096
lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17098
lt_prog_compiler_wl_GCJ='-Wl,';;
17103
lt_prog_compiler_wl_GCJ='-Qoption ld '
17104
lt_prog_compiler_pic_GCJ='-PIC'
17105
lt_prog_compiler_static_GCJ='-Bstatic'
17108
sysv4 | sysv4.2uw2* | sysv4.3*)
17109
lt_prog_compiler_wl_GCJ='-Wl,'
17110
lt_prog_compiler_pic_GCJ='-KPIC'
17111
lt_prog_compiler_static_GCJ='-Bstatic'
17115
if test -d /usr/nec ;then
17116
lt_prog_compiler_pic_GCJ='-Kconform_pic'
17117
lt_prog_compiler_static_GCJ='-Bstatic'
17121
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17122
lt_prog_compiler_wl_GCJ='-Wl,'
17123
lt_prog_compiler_pic_GCJ='-KPIC'
17124
lt_prog_compiler_static_GCJ='-Bstatic'
17128
lt_prog_compiler_wl_GCJ='-Wl,'
17129
lt_prog_compiler_can_build_shared_GCJ=no
17133
lt_prog_compiler_pic_GCJ='-pic'
17134
lt_prog_compiler_static_GCJ='-Bstatic'
17138
lt_prog_compiler_can_build_shared_GCJ=no
17143
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17144
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17147
# Check to make sure the PIC flag actually works.
17149
if test -n "$lt_prog_compiler_pic_GCJ"; then
17151
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17152
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17153
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17154
echo $ECHO_N "(cached) $ECHO_C" >&6
17156
lt_prog_compiler_pic_works_GCJ=no
17157
ac_outfile=conftest.$ac_objext
17158
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17159
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17160
# Insert the option either (1) after the last *FLAGS variable, or
17161
# (2) before a word containing "conftest.", or (3) at the end.
17162
# Note that $ac_compile itself does not contain backslashes and begins
17163
# with a dollar sign (not a hyphen), so the echo should work correctly.
17164
# The option is referenced via a variable to avoid confusing sed.
17165
lt_compile=`echo "$ac_compile" | $SED \
17166
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17167
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17168
-e 's:$: $lt_compiler_flag:'`
17169
(eval echo "\"\$as_me:17169: $lt_compile\"" >&5)
17170
(eval "$lt_compile" 2>conftest.err)
17172
cat conftest.err >&5
17173
echo "$as_me:17173: \$? = $ac_status" >&5
17174
if (exit $ac_status) && test -s "$ac_outfile"; then
17175
# The compiler can only warn and ignore the option if not recognized
17176
# So say no if there are warnings other than the usual output.
17177
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17178
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17179
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17180
lt_prog_compiler_pic_works_GCJ=yes
17186
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17187
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
17189
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17190
case $lt_prog_compiler_pic_GCJ in
17192
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17195
lt_prog_compiler_pic_GCJ=
17196
lt_prog_compiler_can_build_shared_GCJ=no
17201
# For platforms which do not support PIC, -DPIC is meaningless:
17203
lt_prog_compiler_pic_GCJ=
17206
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17211
# Check to make sure the static flag actually works.
17213
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17214
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17215
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17216
if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17217
echo $ECHO_N "(cached) $ECHO_C" >&6
17219
lt_prog_compiler_static_works_GCJ=no
17220
save_LDFLAGS="$LDFLAGS"
17221
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17222
printf "$lt_simple_link_test_code" > conftest.$ac_ext
17223
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17224
# The linker can only warn and ignore the option if not recognized
17225
# So say no if there are warnings
17226
if test -s conftest.err; then
17227
# Append any errors to the config.log.
17228
cat conftest.err 1>&5
17229
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17230
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17231
if diff conftest.exp conftest.er2 >/dev/null; then
17232
lt_prog_compiler_static_works_GCJ=yes
17235
lt_prog_compiler_static_works_GCJ=yes
17239
LDFLAGS="$save_LDFLAGS"
17242
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17243
echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
17245
if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17248
lt_prog_compiler_static_GCJ=
17252
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17253
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17254
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17255
echo $ECHO_N "(cached) $ECHO_C" >&6
17257
lt_cv_prog_compiler_c_o_GCJ=no
17258
$rm -r conftest 2>/dev/null
17262
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17264
lt_compiler_flag="-o out/conftest2.$ac_objext"
17265
# Insert the option either (1) after the last *FLAGS variable, or
17266
# (2) before a word containing "conftest.", or (3) at the end.
17267
# Note that $ac_compile itself does not contain backslashes and begins
17268
# with a dollar sign (not a hyphen), so the echo should work correctly.
17269
lt_compile=`echo "$ac_compile" | $SED \
17270
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17271
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17272
-e 's:$: $lt_compiler_flag:'`
17273
(eval echo "\"\$as_me:17273: $lt_compile\"" >&5)
17274
(eval "$lt_compile" 2>out/conftest.err)
17276
cat out/conftest.err >&5
17277
echo "$as_me:17277: \$? = $ac_status" >&5
17278
if (exit $ac_status) && test -s out/conftest2.$ac_objext
17280
# The compiler can only warn and ignore the option if not recognized
17281
# So say no if there are warnings
17282
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17283
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17284
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17285
lt_cv_prog_compiler_c_o_GCJ=yes
17290
# SGI C++ compiler will create directory out/ii_files/ for
17291
# template instantiation
17292
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17293
$rm out/* && rmdir out
17299
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17300
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17303
hard_links="nottested"
17304
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17305
# do not overwrite the value of need_locks provided by the user
17306
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17307
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17310
ln conftest.a conftest.b 2>/dev/null && hard_links=no
17312
ln conftest.a conftest.b 2>&5 || hard_links=no
17313
ln conftest.a conftest.b 2>/dev/null && hard_links=no
17314
{ echo "$as_me:$LINENO: result: $hard_links" >&5
17315
echo "${ECHO_T}$hard_links" >&6; }
17316
if test "$hard_links" = no; then
17317
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17318
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17325
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17326
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17329
allow_undefined_flag_GCJ=
17330
enable_shared_with_static_runtimes_GCJ=no
17332
archive_expsym_cmds_GCJ=
17333
old_archive_From_new_cmds_GCJ=
17334
old_archive_from_expsyms_cmds_GCJ=
17335
export_dynamic_flag_spec_GCJ=
17336
whole_archive_flag_spec_GCJ=
17337
thread_safe_flag_spec_GCJ=
17338
hardcode_libdir_flag_spec_GCJ=
17339
hardcode_libdir_flag_spec_ld_GCJ=
17340
hardcode_libdir_separator_GCJ=
17341
hardcode_direct_GCJ=no
17342
hardcode_minus_L_GCJ=no
17343
hardcode_shlibpath_var_GCJ=unsupported
17344
link_all_deplibs_GCJ=unknown
17345
hardcode_automatic_GCJ=no
17347
module_expsym_cmds_GCJ=
17348
always_export_symbols_GCJ=no
17349
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17350
# include_expsyms should be a list of space-separated symbols to be *always*
17351
# included in the symbol list
17352
include_expsyms_GCJ=
17353
# exclude_expsyms can be an extended regexp of symbols to exclude
17354
# it will be wrapped by ` (' and `)$', so one must not match beginning or
17355
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17356
# as well as any symbol that contains `d'.
17357
exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17358
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17359
# platforms (ab)use it in PIC code, but their linkers get confused if
17360
# the symbol is explicitly referenced. Since portable code cannot
17361
# rely on this symbol name, it's probably fine to never include it in
17362
# preloaded symbol tables.
17363
extract_expsyms_cmds=
17364
# Just being paranoid about ensuring that cc_basename is set.
17365
for cc_temp in $compiler""; do
17367
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17368
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17373
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17376
cygwin* | mingw* | pw32*)
17377
# FIXME: the MSVC++ port hasn't been tested in a loooong time
17378
# When not using gcc, we currently assume that we are using
17379
# Microsoft Visual C++.
17380
if test "$GCC" != yes; then
17385
# we just hope/assume this is gcc and not c89 (= MSVC++)
17394
if test "$with_gnu_ld" = yes; then
17395
# If archive_cmds runs LD, not CC, wlarc should be empty
17398
# Set some defaults for GNU ld with shared library support. These
17399
# are reset later if shared libraries are not supported. Putting them
17400
# here allows them to be overridden if necessary.
17401
runpath_var=LD_RUN_PATH
17402
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17403
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17404
# ancient GNU ld didn't support --whole-archive et. al.
17405
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17406
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17408
whole_archive_flag_spec_GCJ=
17410
supports_anon_versioning=no
17411
case `$LD -v 2>/dev/null` in
17412
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17413
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17414
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17415
*\ 2.11.*) ;; # other 2.11 versions
17416
*) supports_anon_versioning=yes ;;
17419
# See if GNU ld supports shared libraries.
17421
aix3* | aix4* | aix5*)
17422
# On AIX/PPC, the GNU linker is very broken
17423
if test "$host_cpu" != ia64; then
17427
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17428
*** to be unable to reliably create shared libraries on AIX.
17429
*** Therefore, libtool is disabling shared libraries support. If you
17430
*** really care for shared libraries, you may want to modify your PATH
17431
*** so that a non-GNU linker is found, and then restart.
17438
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)'
17439
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17440
hardcode_minus_L_GCJ=yes
17442
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17443
# that the semantics of dynamic libraries on AmigaOS, at least up
17444
# to version 4, is to share data among multiple programs linked
17445
# with the same dynamic library. Since this doesn't match the
17446
# behavior of shared libraries on other platforms, we can't use
17452
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17453
allow_undefined_flag_GCJ=unsupported
17454
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17455
# support --undefined. This deserves some investigation. FIXME
17456
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17462
cygwin* | mingw* | pw32*)
17463
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17464
# as there is no search path for DLLs.
17465
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17466
allow_undefined_flag_GCJ=unsupported
17467
always_export_symbols_GCJ=no
17468
enable_shared_with_static_runtimes_GCJ=yes
17469
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17471
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17472
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17473
# If the export-symbols file already is a .def file (1st line
17474
# is EXPORTS), use it as is; otherwise, prepend...
17475
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17476
cp $export_symbols $output_objdir/$soname.def;
17478
echo EXPORTS > $output_objdir/$soname.def;
17479
cat $export_symbols >> $output_objdir/$soname.def;
17481
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17488
hardcode_direct_GCJ=no
17489
hardcode_shlibpath_var_GCJ=no
17490
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17491
export_dynamic_flag_spec_GCJ='${wl}-E'
17492
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17493
# Instead, shared libraries are loaded at an image base (0x10000000 by
17494
# default) and relocated if they conflict, which is a slow very memory
17495
# consuming and fragmenting process. To avoid this, we pick a random,
17496
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17497
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
17498
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'
17499
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'
17502
linux* | k*bsd*-gnu)
17503
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17505
case $cc_basename,$host_cpu in
17506
pgcc*) # Portland Group C compiler
17507
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'
17508
tmp_addflag=' $pic_flag'
17510
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17511
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'
17512
tmp_addflag=' $pic_flag -Mnomain' ;;
17513
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17514
tmp_addflag=' -i_dynamic' ;;
17515
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17516
tmp_addflag=' -i_dynamic -nofor_main' ;;
17517
ifc* | ifort*) # Intel Fortran compiler
17518
tmp_addflag=' -nofor_main' ;;
17520
archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17522
if test $supports_anon_versioning = yes; then
17523
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17524
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17525
$echo "local: *; };" >> $output_objdir/$libname.ver~
17526
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17528
link_all_deplibs_GCJ=no
17534
netbsd* | netbsdelf*-gnu)
17535
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17536
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17539
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17540
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17545
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17549
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17550
*** create shared libraries on Solaris systems. Therefore, libtool
17551
*** is disabling shared libraries support. We urge you to upgrade GNU
17552
*** binutils to release 2.9.1 or newer. Another option is to modify
17553
*** your PATH or compiler configuration so that the native linker is
17554
*** used, and then restart.
17557
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17558
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17559
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17565
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17566
case `$LD -v 2>&1` in
17567
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17571
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17572
*** reliably create shared libraries on SCO systems. Therefore, libtool
17573
*** is disabling shared libraries support. We urge you to upgrade GNU
17574
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17575
*** your PATH or compiler configuration so that the native linker is
17576
*** used, and then restart.
17581
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17582
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17583
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17584
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17593
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17595
hardcode_direct_GCJ=yes
17596
hardcode_shlibpath_var_GCJ=no
17600
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17601
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17602
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17609
if test "$ld_shlibs_GCJ" = no; then
17611
hardcode_libdir_flag_spec_GCJ=
17612
export_dynamic_flag_spec_GCJ=
17613
whole_archive_flag_spec_GCJ=
17616
# PORTME fill in a description of your system's linker (not GNU ld)
17619
allow_undefined_flag_GCJ=unsupported
17620
always_export_symbols_GCJ=yes
17621
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'
17622
# Note: this linker hardcodes the directories in LIBPATH if there
17623
# are no directories specified by -L.
17624
hardcode_minus_L_GCJ=yes
17625
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17626
# Neither direct hardcoding nor static linking is supported with a
17628
hardcode_direct_GCJ=unsupported
17633
if test "$host_cpu" = ia64; then
17634
# On IA64, the linker does run time linking by default, so we don't
17635
# have to do anything special.
17636
aix_use_runtimelinking=no
17637
exp_sym_flag='-Bexport'
17640
# If we're using GNU nm, then we don't want the "-C" option.
17641
# -C means demangle to AIX nm, but means don't demangle with GNU nm
17642
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17643
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'
17645
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'
17647
aix_use_runtimelinking=no
17649
# Test if we are trying to use run time linking or normal
17650
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17651
# need to do runtime linking.
17652
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17653
for ld_flag in $LDFLAGS; do
17654
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17655
aix_use_runtimelinking=yes
17662
exp_sym_flag='-bexport'
17663
no_entry_flag='-bnoentry'
17666
# When large executables or shared objects are built, AIX ld can
17667
# have problems creating the table of contents. If linking a library
17668
# or program results in "error TOC overflow" add -mminimal-toc to
17669
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17670
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17672
archive_cmds_GCJ=''
17673
hardcode_direct_GCJ=yes
17674
hardcode_libdir_separator_GCJ=':'
17675
link_all_deplibs_GCJ=yes
17677
if test "$GCC" = yes; then
17678
case $host_os in aix4.[012]|aix4.[012].*)
17679
# We only want to do this on AIX 4.2 and lower, the check
17680
# below for broken collect2 doesn't work under 4.3+
17681
collect2name=`${CC} -print-prog-name=collect2`
17682
if test -f "$collect2name" && \
17683
strings "$collect2name" | grep resolve_lib_name >/dev/null
17685
# We have reworked collect2
17686
hardcode_direct_GCJ=yes
17688
# We have old collect2
17689
hardcode_direct_GCJ=unsupported
17690
# It fails to find uninstalled libraries when the uninstalled
17691
# path is not listed in the libpath. Setting hardcode_minus_L
17692
# to unsupported forces relinking
17693
hardcode_minus_L_GCJ=yes
17694
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17695
hardcode_libdir_separator_GCJ=
17699
shared_flag='-shared'
17700
if test "$aix_use_runtimelinking" = yes; then
17701
shared_flag="$shared_flag "'${wl}-G'
17705
if test "$host_cpu" = ia64; then
17706
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17707
# chokes on -Wl,-G. The following line is correct:
17710
if test "$aix_use_runtimelinking" = yes; then
17711
shared_flag='${wl}-G'
17713
shared_flag='${wl}-bM:SRE'
17718
# It seems that -bexpall does not export symbols beginning with
17719
# underscore (_), so it is better to generate a list of symbols to export.
17720
always_export_symbols_GCJ=yes
17721
if test "$aix_use_runtimelinking" = yes; then
17722
# Warning - without using the other runtime loading flags (-brtl),
17723
# -berok will link without error, but may produce a broken library.
17724
allow_undefined_flag_GCJ='-berok'
17725
# Determine the default libpath from the value encoded in an empty executable.
17726
cat >conftest.$ac_ext <<_ACEOF
17729
cat confdefs.h >>conftest.$ac_ext
17730
cat >>conftest.$ac_ext <<_ACEOF
17731
/* end confdefs.h. */
17741
rm -f conftest.$ac_objext conftest$ac_exeext
17742
if { (ac_try="$ac_link"
17743
case "(($ac_try" in
17744
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17745
*) ac_try_echo=$ac_try;;
17747
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17748
(eval "$ac_link") 2>conftest.er1
17750
grep -v '^ *+' conftest.er1 >conftest.err
17752
cat conftest.err >&5
17753
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17754
(exit $ac_status); } &&
17755
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17756
{ (case "(($ac_try" in
17757
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17758
*) ac_try_echo=$ac_try;;
17760
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17761
(eval "$ac_try") 2>&5
17763
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17764
(exit $ac_status); }; } &&
17765
{ ac_try='test -s conftest$ac_exeext'
17766
{ (case "(($ac_try" in
17767
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17768
*) ac_try_echo=$ac_try;;
17770
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17771
(eval "$ac_try") 2>&5
17773
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17774
(exit $ac_status); }; }; then
17776
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17778
# Check for a 64-bit object if we didn't find anything.
17779
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; }
17782
echo "$as_me: failed program was:" >&5
17783
sed 's/^/| /' conftest.$ac_ext >&5
17788
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17789
conftest$ac_exeext conftest.$ac_ext
17790
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17792
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17793
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"
17795
if test "$host_cpu" = ia64; then
17796
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17797
allow_undefined_flag_GCJ="-z nodefs"
17798
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"
17800
# Determine the default libpath from the value encoded in an empty executable.
17801
cat >conftest.$ac_ext <<_ACEOF
17804
cat confdefs.h >>conftest.$ac_ext
17805
cat >>conftest.$ac_ext <<_ACEOF
17806
/* end confdefs.h. */
17816
rm -f conftest.$ac_objext conftest$ac_exeext
17817
if { (ac_try="$ac_link"
17818
case "(($ac_try" in
17819
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17820
*) ac_try_echo=$ac_try;;
17822
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17823
(eval "$ac_link") 2>conftest.er1
17825
grep -v '^ *+' conftest.er1 >conftest.err
17827
cat conftest.err >&5
17828
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17829
(exit $ac_status); } &&
17830
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17831
{ (case "(($ac_try" in
17832
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17833
*) ac_try_echo=$ac_try;;
17835
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17836
(eval "$ac_try") 2>&5
17838
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17839
(exit $ac_status); }; } &&
17840
{ ac_try='test -s conftest$ac_exeext'
17841
{ (case "(($ac_try" in
17842
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17843
*) ac_try_echo=$ac_try;;
17845
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17846
(eval "$ac_try") 2>&5
17848
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17849
(exit $ac_status); }; }; then
17851
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17853
# Check for a 64-bit object if we didn't find anything.
17854
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; }
17857
echo "$as_me: failed program was:" >&5
17858
sed 's/^/| /' conftest.$ac_ext >&5
17863
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17864
conftest$ac_exeext conftest.$ac_ext
17865
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17867
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17868
# Warning - without using the other run time loading flags,
17869
# -berok will link without error, but may produce a broken library.
17870
no_undefined_flag_GCJ=' ${wl}-bernotok'
17871
allow_undefined_flag_GCJ=' ${wl}-berok'
17872
# Exported symbols can be pulled into shared objects from archives
17873
whole_archive_flag_spec_GCJ='$convenience'
17874
archive_cmds_need_lc_GCJ=yes
17875
# This is similar to how AIX traditionally builds its shared libraries.
17876
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'
17882
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)'
17883
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17884
hardcode_minus_L_GCJ=yes
17885
# see comment about different semantics on the GNU ld section
17890
export_dynamic_flag_spec_GCJ=-rdynamic
17893
cygwin* | mingw* | pw32*)
17894
# When not using gcc, we currently assume that we are using
17895
# Microsoft Visual C++.
17896
# hardcode_libdir_flag_spec is actually meaningless, as there is
17897
# no search path for DLLs.
17898
hardcode_libdir_flag_spec_GCJ=' '
17899
allow_undefined_flag_GCJ=unsupported
17900
# Tell ltmain to make .lib files, not .a files.
17902
# Tell ltmain to make .dll files, not .so files.
17904
# FIXME: Setting linknames here is a bad hack.
17905
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17906
# The linker will automatically build a .lib file if we build a DLL.
17907
old_archive_From_new_cmds_GCJ='true'
17908
# FIXME: Should let the user specify the lib program.
17909
old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17910
fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17911
enable_shared_with_static_runtimes_GCJ=yes
17914
darwin* | rhapsody*)
17916
rhapsody* | darwin1.[012])
17917
allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17920
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17921
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17923
case ${MACOSX_DEPLOYMENT_TARGET} in
17925
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17928
allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17934
archive_cmds_need_lc_GCJ=no
17935
hardcode_direct_GCJ=no
17936
hardcode_automatic_GCJ=yes
17937
hardcode_shlibpath_var_GCJ=unsupported
17938
whole_archive_flag_spec_GCJ=''
17939
link_all_deplibs_GCJ=yes
17940
if test "$GCC" = yes ; then
17941
output_verbose_link_cmd='echo'
17942
archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17943
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17944
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17945
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}'
17946
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}'
17948
case $cc_basename in
17950
output_verbose_link_cmd='echo'
17951
archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17952
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17953
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17954
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}'
17955
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}'
17965
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17966
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17967
hardcode_shlibpath_var_GCJ=no
17974
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17975
# support. Future versions do this automatically, but an explicit c++rt0.o
17976
# does not break anything, and helps significantly (at the cost of a little
17979
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17980
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17981
hardcode_direct_GCJ=yes
17982
hardcode_shlibpath_var_GCJ=no
17985
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
17987
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17988
hardcode_direct_GCJ=yes
17989
hardcode_minus_L_GCJ=yes
17990
hardcode_shlibpath_var_GCJ=no
17993
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17994
freebsd* | dragonfly*)
17995
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17996
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17997
hardcode_direct_GCJ=yes
17998
hardcode_shlibpath_var_GCJ=no
18002
if test "$GCC" = yes; then
18003
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'
18005
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'
18007
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18008
hardcode_libdir_separator_GCJ=:
18009
hardcode_direct_GCJ=yes
18011
# hardcode_minus_L: Not really in the search PATH,
18012
# but as the default location of the library.
18013
hardcode_minus_L_GCJ=yes
18014
export_dynamic_flag_spec_GCJ='${wl}-E'
18018
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18019
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18021
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18023
if test "$with_gnu_ld" = no; then
18024
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18025
hardcode_libdir_separator_GCJ=:
18027
hardcode_direct_GCJ=yes
18028
export_dynamic_flag_spec_GCJ='${wl}-E'
18030
# hardcode_minus_L: Not really in the search PATH,
18031
# but as the default location of the library.
18032
hardcode_minus_L_GCJ=yes
18037
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18040
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18043
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18046
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18052
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18055
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18058
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18062
if test "$with_gnu_ld" = no; then
18063
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18064
hardcode_libdir_separator_GCJ=:
18068
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18069
hardcode_direct_GCJ=no
18070
hardcode_shlibpath_var_GCJ=no
18073
hardcode_direct_GCJ=yes
18074
export_dynamic_flag_spec_GCJ='${wl}-E'
18076
# hardcode_minus_L: Not really in the search PATH,
18077
# but as the default location of the library.
18078
hardcode_minus_L_GCJ=yes
18084
irix5* | irix6* | nonstopux*)
18085
if test "$GCC" = yes; then
18086
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'
18088
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'
18089
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18091
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18092
hardcode_libdir_separator_GCJ=:
18093
link_all_deplibs_GCJ=yes
18096
netbsd* | netbsdelf*-gnu)
18097
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18098
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18100
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18102
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18103
hardcode_direct_GCJ=yes
18104
hardcode_shlibpath_var_GCJ=no
18108
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18109
hardcode_direct_GCJ=yes
18110
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18111
hardcode_libdir_separator_GCJ=:
18112
hardcode_shlibpath_var_GCJ=no
18116
hardcode_direct_GCJ=yes
18117
hardcode_shlibpath_var_GCJ=no
18118
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18119
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18120
archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18121
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18122
export_dynamic_flag_spec_GCJ='${wl}-E'
18125
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18126
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18127
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18130
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18131
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18138
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18139
hardcode_minus_L_GCJ=yes
18140
allow_undefined_flag_GCJ=unsupported
18141
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'
18142
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18146
if test "$GCC" = yes; then
18147
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18148
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'
18150
allow_undefined_flag_GCJ=' -expect_unresolved \*'
18151
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'
18153
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18154
hardcode_libdir_separator_GCJ=:
18157
osf4* | osf5*) # as osf3* with the addition of -msym flag
18158
if test "$GCC" = yes; then
18159
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18160
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'
18161
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18163
allow_undefined_flag_GCJ=' -expect_unresolved \*'
18164
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'
18165
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~
18166
$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'
18168
# Both c and cxx compiler support -rpath directly
18169
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18171
hardcode_libdir_separator_GCJ=:
18175
no_undefined_flag_GCJ=' -z text'
18176
if test "$GCC" = yes; then
18178
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18179
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18180
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18183
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18184
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18185
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18187
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18188
hardcode_shlibpath_var_GCJ=no
18190
solaris2.[0-5] | solaris2.[0-5].*) ;;
18192
# The compiler driver will combine linker options so we
18193
# cannot just pass the convience library names through
18194
# without $wl, iff we do not link with $LD.
18195
# Luckily, gcc supports the same syntax we need for Sun Studio.
18196
# Supported since Solaris 2.6 (maybe 2.5.1?)
18199
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18201
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' ;;
18204
link_all_deplibs_GCJ=yes
18208
if test "x$host_vendor" = xsequent; then
18209
# Use $CC to link under sequent, because it throws in some extra .o
18210
# files that make .init and .fini sections work.
18211
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18213
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18215
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18216
hardcode_direct_GCJ=yes
18217
hardcode_minus_L_GCJ=yes
18218
hardcode_shlibpath_var_GCJ=no
18222
case $host_vendor in
18224
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18225
hardcode_direct_GCJ=yes # is this really true???
18228
## LD is ld it makes a PLAMLIB
18229
## CC just makes a GrossModule.
18230
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18231
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18232
hardcode_direct_GCJ=no
18235
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18236
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18239
runpath_var='LD_RUN_PATH'
18240
hardcode_shlibpath_var_GCJ=no
18244
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18245
hardcode_shlibpath_var_GCJ=no
18246
export_dynamic_flag_spec_GCJ='-Bexport'
18250
if test -d /usr/nec; then
18251
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18252
hardcode_shlibpath_var_GCJ=no
18253
runpath_var=LD_RUN_PATH
18254
hardcode_runpath_var=yes
18259
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18260
no_undefined_flag_GCJ='${wl}-z,text'
18261
archive_cmds_need_lc_GCJ=no
18262
hardcode_shlibpath_var_GCJ=no
18263
runpath_var='LD_RUN_PATH'
18265
if test "$GCC" = yes; then
18266
archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18267
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18269
archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18270
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18274
sysv5* | sco3.2v5* | sco5v6*)
18275
# Note: We can NOT use -z defs as we might desire, because we do not
18276
# link with -lc, and that would cause any symbols used from libc to
18277
# always be unresolved, which means just about no library would
18278
# ever link correctly. If we're not using GNU ld we use -z text
18279
# though, which does catch some bad symbols but isn't as heavy-handed
18281
no_undefined_flag_GCJ='${wl}-z,text'
18282
allow_undefined_flag_GCJ='${wl}-z,nodefs'
18283
archive_cmds_need_lc_GCJ=no
18284
hardcode_shlibpath_var_GCJ=no
18285
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18286
hardcode_libdir_separator_GCJ=':'
18287
link_all_deplibs_GCJ=yes
18288
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18289
runpath_var='LD_RUN_PATH'
18291
if test "$GCC" = yes; then
18292
archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18293
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18295
archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18296
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18301
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18302
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18303
hardcode_shlibpath_var_GCJ=no
18312
{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18313
echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18314
test "$ld_shlibs_GCJ" = no && can_build_shared=no
18317
# Do we need to explicitly link libc?
18319
case "x$archive_cmds_need_lc_GCJ" in
18321
# Assume -lc should be added
18322
archive_cmds_need_lc_GCJ=yes
18324
if test "$enable_shared" = yes && test "$GCC" = yes; then
18325
case $archive_cmds_GCJ in
18327
# FIXME: we may have to deal with multi-command sequences.
18330
# Test whether the compiler implicitly links with -lc since on some
18331
# systems, -lgcc has to come before -lc. If gcc already passes -lc
18332
# to ld, don't add -lc before -lgcc.
18333
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18334
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18336
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18338
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18339
(eval $ac_compile) 2>&5
18341
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18342
(exit $ac_status); } 2>conftest.err; then
18345
libobjs=conftest.$ac_objext
18347
wl=$lt_prog_compiler_wl_GCJ
18348
pic_flag=$lt_prog_compiler_pic_GCJ
18354
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18355
allow_undefined_flag_GCJ=
18356
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18357
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18359
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18360
(exit $ac_status); }
18362
archive_cmds_need_lc_GCJ=no
18364
archive_cmds_need_lc_GCJ=yes
18366
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18368
cat conftest.err 1>&5
18371
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18372
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18379
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18380
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18381
library_names_spec=
18382
libname_spec='lib$name'
18386
postuninstall_cmds=
18390
shlibpath_overrides_runpath=unknown
18392
dynamic_linker="$host_os ld.so"
18393
sys_lib_dlsearch_path_spec="/lib /usr/lib"
18394
if test "$GCC" = yes; then
18395
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18396
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18397
# if the path contains ";" then we assume it to be the separator
18398
# otherwise default to the standard path separator (i.e. ":") - it is
18399
# assumed that no part of a normal pathname contains ";" but that should
18400
# okay in the real world where ";" in dirpaths is itself problematic.
18401
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18403
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18406
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18408
need_lib_prefix=unknown
18409
hardcode_into_libs=no
18411
# when you set need_version to no, make sure it does not cause -set_version
18412
# flags to be left without arguments
18413
need_version=unknown
18418
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18419
shlibpath_var=LIBPATH
18421
# AIX 3 has no versioning support, so we append a major version to the name.
18422
soname_spec='${libname}${release}${shared_ext}$major'
18429
hardcode_into_libs=yes
18430
if test "$host_cpu" = ia64; then
18431
# AIX 5 supports IA64
18432
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18433
shlibpath_var=LD_LIBRARY_PATH
18435
# With GCC up to 2.95.x, collect2 would create an import file
18436
# for dependence libraries. The import file would start with
18437
# the line `#! .'. This would cause the generated library to
18438
# depend on `.', always an invalid library. This was fixed in
18439
# development snapshots of GCC prior to 3.0.
18441
aix4 | aix4.[01] | aix4.[01].*)
18442
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18444
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18447
can_build_shared=no
18451
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18452
# soname into executable. Probably we can add versioning support to
18453
# collect2, so additional links can be useful in future.
18454
if test "$aix_use_runtimelinking" = yes; then
18455
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
18456
# instead of lib<name>.a to let people know that these are not
18457
# typical AIX shared libraries.
18458
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18460
# We preserve .a as extension for shared libraries through AIX4.2
18461
# and later when we are not doing run time linking.
18462
library_names_spec='${libname}${release}.a $libname.a'
18463
soname_spec='${libname}${release}${shared_ext}$major'
18465
shlibpath_var=LIBPATH
18470
library_names_spec='$libname.ixlibrary $libname.a'
18471
# Create ${libname}_ixlibrary.a entries in /sys/libs.
18472
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'
18476
library_names_spec='${libname}${shared_ext}'
18477
dynamic_linker="$host_os ld.so"
18478
shlibpath_var=LIBRARY_PATH
18484
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18485
soname_spec='${libname}${release}${shared_ext}$major'
18486
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18487
shlibpath_var=LD_LIBRARY_PATH
18488
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18489
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18490
# the default ld.so.conf also contains /usr/contrib/lib and
18491
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18492
# libtool to hard-code these into programs
18495
cygwin* | mingw* | pw32*)
18496
version_type=windows
18501
case $GCC,$host_os in
18502
yes,cygwin* | yes,mingw* | yes,pw32*)
18503
library_names_spec='$libname.dll.a'
18504
# DLL is installed to $(libdir)/../bin by postinstall_cmds
18505
postinstall_cmds='base_file=`basename \${file}`~
18506
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18507
dldir=$destdir/`dirname \$dlpath`~
18508
test -d \$dldir || mkdir -p \$dldir~
18509
$install_prog $dir/$dlname \$dldir/$dlname~
18510
chmod a+x \$dldir/$dlname'
18511
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18512
dlpath=$dir/\$dldll~
18514
shlibpath_overrides_runpath=yes
18518
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
18519
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18520
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18523
# MinGW DLLs use traditional 'lib' prefix
18524
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18525
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18526
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18527
# It is most probably a Windows format PATH printed by
18528
# mingw gcc, but we are running on Cygwin. Gcc prints its search
18529
# path with ; separators, and with drive letters. We can handle the
18530
# drive letters (cygwin fileutils understands them), so leave them,
18531
# especially as we might pass files found there to a mingw objdump,
18532
# which wouldn't understand a cygwinified path. Ahh.
18533
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18535
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18539
# pw32 DLLs use 'pw' prefix rather than 'lib'
18540
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18546
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18549
dynamic_linker='Win32 ld.exe'
18550
# FIXME: first we should search . and the directory the executable is in
18554
darwin* | rhapsody*)
18555
dynamic_linker="$host_os dyld"
18556
version_type=darwin
18559
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18560
soname_spec='${libname}${release}${major}$shared_ext'
18561
shlibpath_overrides_runpath=yes
18562
shlibpath_var=DYLD_LIBRARY_PATH
18563
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18564
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18565
if test "$GCC" = yes; then
18566
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"`
18568
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18570
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18577
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18578
soname_spec='${libname}${release}${shared_ext}$major'
18579
shlibpath_var=LD_LIBRARY_PATH
18586
freebsd* | dragonfly*)
18587
# DragonFly does not have aout. When/if they implement a new
18588
# versioning mechanism, adjust this.
18589
if test -x /usr/bin/objformat; then
18590
objformat=`/usr/bin/objformat`
18593
freebsd[123]*) objformat=aout ;;
18594
*) objformat=elf ;;
18597
version_type=freebsd-$objformat
18598
case $version_type in
18600
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18605
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18609
shlibpath_var=LD_LIBRARY_PATH
18612
shlibpath_overrides_runpath=yes
18614
freebsd3.[01]* | freebsdelf3.[01]*)
18615
shlibpath_overrides_runpath=yes
18616
hardcode_into_libs=yes
18618
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18619
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18620
shlibpath_overrides_runpath=no
18621
hardcode_into_libs=yes
18623
freebsd*) # from 4.6 on
18624
shlibpath_overrides_runpath=yes
18625
hardcode_into_libs=yes
18634
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18635
soname_spec='${libname}${release}${shared_ext}$major'
18636
shlibpath_var=LD_LIBRARY_PATH
18637
hardcode_into_libs=yes
18640
hpux9* | hpux10* | hpux11*)
18641
# Give a soname corresponding to the major version so that dld.sl refuses to
18642
# link against other versions.
18649
hardcode_into_libs=yes
18650
dynamic_linker="$host_os dld.so"
18651
shlibpath_var=LD_LIBRARY_PATH
18652
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18653
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18654
soname_spec='${libname}${release}${shared_ext}$major'
18655
if test "X$HPUX_IA64_MODE" = X32; then
18656
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18658
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18660
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18664
hardcode_into_libs=yes
18665
dynamic_linker="$host_os dld.sl"
18666
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18667
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18668
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18669
soname_spec='${libname}${release}${shared_ext}$major'
18670
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18671
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18675
dynamic_linker="$host_os dld.sl"
18676
shlibpath_var=SHLIB_PATH
18677
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18678
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18679
soname_spec='${libname}${release}${shared_ext}$major'
18682
# HP-UX runs *really* slowly unless shared libraries are mode 555.
18683
postinstall_cmds='chmod 555 $lib'
18690
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18691
soname_spec='${libname}${release}${shared_ext}$major'
18692
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18693
shlibpath_var=LD_LIBRARY_PATH
18694
shlibpath_overrides_runpath=no
18695
hardcode_into_libs=yes
18698
irix5* | irix6* | nonstopux*)
18700
nonstopux*) version_type=nonstopux ;;
18702
if test "$lt_cv_prog_gnu_ld" = yes; then
18710
soname_spec='${libname}${release}${shared_ext}$major'
18711
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18713
irix5* | nonstopux*)
18714
libsuff= shlibsuff=
18717
case $LD in # libtool.m4 will add one of these switches to LD
18718
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18719
libsuff= shlibsuff= libmagic=32-bit;;
18720
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18721
libsuff=32 shlibsuff=N32 libmagic=N32;;
18722
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18723
libsuff=64 shlibsuff=64 libmagic=64-bit;;
18724
*) libsuff= shlibsuff= libmagic=never-match;;
18728
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18729
shlibpath_overrides_runpath=no
18730
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18731
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18732
hardcode_into_libs=yes
18735
# No shared lib support for Linux oldld, aout, or coff.
18736
linux*oldld* | linux*aout* | linux*coff*)
18740
# This must be Linux ELF.
18741
linux* | k*bsd*-gnu)
18745
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18746
soname_spec='${libname}${release}${shared_ext}$major'
18747
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18748
shlibpath_var=LD_LIBRARY_PATH
18749
shlibpath_overrides_runpath=no
18750
# This implies no fast_install, which is unacceptable.
18751
# Some rework will be needed to allow for fast_install
18752
# before this can be enabled.
18753
hardcode_into_libs=yes
18755
# Append ld.so.conf contents to the search path
18756
if test -f /etc/ld.so.conf; then
18757
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' ' '`
18758
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18761
# We used to test for /lib/ld.so.1 and disable shared libraries on
18762
# powerpc, because MkLinux only supported shared libraries with the
18763
# GNU dynamic linker. Since this was broken with cross compilers,
18764
# most powerpc-linux boxes support dynamic linking these days and
18765
# people can always --disable-shared, the test was removed, and we
18766
# assume the GNU/Linux dynamic linker is in use.
18767
dynamic_linker='GNU/Linux ld.so'
18774
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18775
soname_spec='${libname}${release}${shared_ext}$major'
18776
shlibpath_var=LD_LIBRARY_PATH
18777
shlibpath_overrides_runpath=no
18778
hardcode_into_libs=yes
18779
dynamic_linker='NetBSD ld.elf_so'
18786
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18787
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18788
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18789
dynamic_linker='NetBSD (a.out) ld.so'
18791
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18792
soname_spec='${libname}${release}${shared_ext}$major'
18793
dynamic_linker='NetBSD ld.elf_so'
18795
shlibpath_var=LD_LIBRARY_PATH
18796
shlibpath_overrides_runpath=yes
18797
hardcode_into_libs=yes
18802
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18803
shlibpath_var=LD_LIBRARY_PATH
18804
shlibpath_overrides_runpath=yes
18811
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18812
soname_spec='${libname}${release}${shared_ext}$major'
18813
shlibpath_var=LD_LIBRARY_PATH
18814
shlibpath_overrides_runpath=yes
18819
sys_lib_dlsearch_path_spec="/usr/lib"
18821
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18823
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18824
*) need_version=no ;;
18826
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18827
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18828
shlibpath_var=LD_LIBRARY_PATH
18829
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18831
openbsd2.[89] | openbsd2.[89].*)
18832
shlibpath_overrides_runpath=no
18835
shlibpath_overrides_runpath=yes
18839
shlibpath_overrides_runpath=yes
18844
libname_spec='$name'
18847
library_names_spec='$libname${shared_ext} $libname.a'
18848
dynamic_linker='OS/2 ld.exe'
18849
shlibpath_var=LIBPATH
18852
osf3* | osf4* | osf5*)
18856
soname_spec='${libname}${release}${shared_ext}$major'
18857
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18858
shlibpath_var=LD_LIBRARY_PATH
18859
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18860
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18867
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18868
soname_spec='${libname}${release}${shared_ext}$major'
18869
shlibpath_var=LD_LIBRARY_PATH
18870
shlibpath_overrides_runpath=yes
18871
hardcode_into_libs=yes
18872
# ldd complains unless libraries are executable
18873
postinstall_cmds='chmod +x $lib'
18878
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18879
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18880
shlibpath_var=LD_LIBRARY_PATH
18881
shlibpath_overrides_runpath=yes
18882
if test "$with_gnu_ld" = yes; then
18890
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18891
soname_spec='${libname}${release}${shared_ext}$major'
18892
shlibpath_var=LD_LIBRARY_PATH
18893
case $host_vendor in
18895
shlibpath_overrides_runpath=no
18897
export_dynamic_flag_spec='${wl}-Blargedynsym'
18898
runpath_var=LD_RUN_PATH
18906
shlibpath_overrides_runpath=no
18907
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18913
if test -d /usr/nec ;then
18915
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18916
soname_spec='$libname${shared_ext}.$major'
18917
shlibpath_var=LD_LIBRARY_PATH
18921
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18922
version_type=freebsd-elf
18925
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18926
soname_spec='${libname}${release}${shared_ext}$major'
18927
shlibpath_var=LD_LIBRARY_PATH
18928
hardcode_into_libs=yes
18929
if test "$with_gnu_ld" = yes; then
18930
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18931
shlibpath_overrides_runpath=no
18933
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18934
shlibpath_overrides_runpath=yes
18937
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18941
sys_lib_dlsearch_path_spec='/usr/lib'
18946
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18947
soname_spec='${libname}${release}${shared_ext}$major'
18948
shlibpath_var=LD_LIBRARY_PATH
18955
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18956
echo "${ECHO_T}$dynamic_linker" >&6; }
18957
test "$dynamic_linker" = no && can_build_shared=no
18959
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18960
if test "$GCC" = yes; then
18961
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18964
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18965
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18966
hardcode_action_GCJ=
18967
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18968
test -n "$runpath_var_GCJ" || \
18969
test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18971
# We can hardcode non-existant directories.
18972
if test "$hardcode_direct_GCJ" != no &&
18973
# If the only mechanism to avoid hardcoding is shlibpath_var, we
18974
# have to relink, otherwise we might link with an installed library
18975
# when we should be linking with a yet-to-be-installed one
18976
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18977
test "$hardcode_minus_L_GCJ" != no; then
18978
# Linking always hardcodes the temporary library directory.
18979
hardcode_action_GCJ=relink
18981
# We can link without hardcoding, and we can hardcode nonexisting dirs.
18982
hardcode_action_GCJ=immediate
18985
# We cannot hardcode anything, or else we can only hardcode existing
18987
hardcode_action_GCJ=unsupported
18989
{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18990
echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18992
if test "$hardcode_action_GCJ" = relink; then
18993
# Fast installation is not supported
18994
enable_fast_install=no
18995
elif test "$shlibpath_overrides_runpath" = yes ||
18996
test "$enable_shared" = no; then
18997
# Fast installation is not necessary
18998
enable_fast_install=needless
19002
# The else clause should only fire when bootstrapping the
19003
# libtool distribution, otherwise you forgot to ship ltmain.sh
19004
# with your package, and you will get complaints that there are
19005
# no rules to generate ltmain.sh.
19006
if test -f "$ltmain"; then
19007
# See if we are running on zsh, and set the options which allow our commands through
19008
# without removal of \ escapes.
19009
if test -n "${ZSH_VERSION+set}" ; then
19010
setopt NO_GLOB_SUBST
19012
# Now quote all the things that may contain metacharacters while being
19013
# careful not to overquote the AC_SUBSTed values. We take copies of the
19014
# variables and quote the copies for generation of the libtool script.
19015
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19017
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19018
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19019
deplibs_check_method reload_flag reload_cmds need_locks \
19020
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19021
lt_cv_sys_global_symbol_to_c_name_address \
19022
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19023
old_postinstall_cmds old_postuninstall_cmds \
19027
lt_prog_compiler_wl_GCJ \
19028
lt_prog_compiler_pic_GCJ \
19029
lt_prog_compiler_static_GCJ \
19030
lt_prog_compiler_no_builtin_flag_GCJ \
19031
export_dynamic_flag_spec_GCJ \
19032
thread_safe_flag_spec_GCJ \
19033
whole_archive_flag_spec_GCJ \
19034
enable_shared_with_static_runtimes_GCJ \
19035
old_archive_cmds_GCJ \
19036
old_archive_from_new_cmds_GCJ \
19037
predep_objects_GCJ \
19038
postdep_objects_GCJ \
19041
compiler_lib_search_path_GCJ \
19043
archive_expsym_cmds_GCJ \
19044
postinstall_cmds_GCJ \
19045
postuninstall_cmds_GCJ \
19046
old_archive_from_expsyms_cmds_GCJ \
19047
allow_undefined_flag_GCJ \
19048
no_undefined_flag_GCJ \
19049
export_symbols_cmds_GCJ \
19050
hardcode_libdir_flag_spec_GCJ \
19051
hardcode_libdir_flag_spec_ld_GCJ \
19052
hardcode_libdir_separator_GCJ \
19053
hardcode_automatic_GCJ \
19055
module_expsym_cmds_GCJ \
19056
lt_cv_prog_compiler_c_o_GCJ \
19057
exclude_expsyms_GCJ \
19058
include_expsyms_GCJ; do
19061
old_archive_cmds_GCJ | \
19062
old_archive_from_new_cmds_GCJ | \
19063
archive_cmds_GCJ | \
19064
archive_expsym_cmds_GCJ | \
19065
module_cmds_GCJ | \
19066
module_expsym_cmds_GCJ | \
19067
old_archive_from_expsyms_cmds_GCJ | \
19068
export_symbols_cmds_GCJ | \
19069
extract_expsyms_cmds | reload_cmds | finish_cmds | \
19070
postinstall_cmds | postuninstall_cmds | \
19071
old_postinstall_cmds | old_postuninstall_cmds | \
19072
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19073
# Double-quote double-evaled strings.
19074
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19077
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19083
*'\$0 --fallback-echo"')
19084
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19090
cat <<__EOF__ >> "$cfgfile"
19091
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19093
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19095
# Shell to use when invoking shell scripts.
19098
# Whether or not to build shared libraries.
19099
build_libtool_libs=$enable_shared
19101
# Whether or not to build static libraries.
19102
build_old_libs=$enable_static
19104
# Whether or not to add -lc for building shared libraries.
19105
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19107
# Whether or not to disallow shared libs when runtime libs are static
19108
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19110
# Whether or not to optimize for fast installation.
19111
fast_install=$enable_fast_install
19114
host_alias=$host_alias
19118
# The build system.
19119
build_alias=$build_alias
19123
# An echo program that does not interpret backslashes.
19128
AR_FLAGS=$lt_AR_FLAGS
19133
# LTCC compiler flags.
19134
LTCFLAGS=$lt_LTCFLAGS
19136
# A language-specific compiler.
19137
CC=$lt_compiler_GCJ
19139
# Is the compiler the GNU C compiler?
19145
# The linker used to build libraries.
19148
# Whether we need hard or soft links.
19151
# A BSD-compatible nm program.
19154
# A symbol stripping program
19157
# Used to examine libraries when file_magic_cmd begins "file"
19158
MAGIC_CMD=$MAGIC_CMD
19160
# Used on cygwin: DLL creation program.
19163
# Used on cygwin: object dumper.
19166
# Used on cygwin: assembler.
19169
# The name of the directory that contains temporary libtool files.
19172
# How to create reloadable object files.
19173
reload_flag=$lt_reload_flag
19174
reload_cmds=$lt_reload_cmds
19176
# How to pass a linker flag through the compiler.
19177
wl=$lt_lt_prog_compiler_wl_GCJ
19179
# Object file suffix (normally "o").
19180
objext="$ac_objext"
19182
# Old archive suffix (normally "a").
19185
# Shared library suffix (normally ".so").
19186
shrext_cmds='$shrext_cmds'
19188
# Executable file suffix (normally "").
19191
# Additional compiler flags for building library objects.
19192
pic_flag=$lt_lt_prog_compiler_pic_GCJ
19195
# What is the maximum length of a command?
19196
max_cmd_len=$lt_cv_sys_max_cmd_len
19198
# Does compiler simultaneously support -c and -o options?
19199
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19201
# Must we lock files when doing compilation?
19202
need_locks=$lt_need_locks
19204
# Do we need the lib prefix for modules?
19205
need_lib_prefix=$need_lib_prefix
19207
# Do we need a version for libraries?
19208
need_version=$need_version
19210
# Whether dlopen is supported.
19211
dlopen_support=$enable_dlopen
19213
# Whether dlopen of programs is supported.
19214
dlopen_self=$enable_dlopen_self
19216
# Whether dlopen of statically linked programs is supported.
19217
dlopen_self_static=$enable_dlopen_self_static
19219
# Compiler flag to prevent dynamic linking.
19220
link_static_flag=$lt_lt_prog_compiler_static_GCJ
19222
# Compiler flag to turn off builtin functions.
19223
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19225
# Compiler flag to allow reflexive dlopens.
19226
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19228
# Compiler flag to generate shared objects directly from archives.
19229
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19231
# Compiler flag to generate thread-safe objects.
19232
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19234
# Library versioning type.
19235
version_type=$version_type
19237
# Format of library name prefix.
19238
libname_spec=$lt_libname_spec
19240
# List of archive names. First name is the real one, the rest are links.
19241
# The last name is the one that the linker finds with -lNAME.
19242
library_names_spec=$lt_library_names_spec
19244
# The coded name of the library, if different from the real name.
19245
soname_spec=$lt_soname_spec
19247
# Commands used to build and install an old-style archive.
19249
old_archive_cmds=$lt_old_archive_cmds_GCJ
19250
old_postinstall_cmds=$lt_old_postinstall_cmds
19251
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19253
# Create an old-style archive from a shared archive.
19254
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19256
# Create a temporary old-style archive to link instead of a shared archive.
19257
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19259
# Commands used to build and install a shared archive.
19260
archive_cmds=$lt_archive_cmds_GCJ
19261
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19262
postinstall_cmds=$lt_postinstall_cmds
19263
postuninstall_cmds=$lt_postuninstall_cmds
19265
# Commands used to build a loadable module (assumed same as above if empty)
19266
module_cmds=$lt_module_cmds_GCJ
19267
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19269
# Commands to strip libraries.
19270
old_striplib=$lt_old_striplib
19271
striplib=$lt_striplib
19273
# Dependencies to place before the objects being linked to create a
19275
predep_objects=$lt_predep_objects_GCJ
19277
# Dependencies to place after the objects being linked to create a
19279
postdep_objects=$lt_postdep_objects_GCJ
19281
# Dependencies to place before the objects being linked to create a
19283
predeps=$lt_predeps_GCJ
19285
# Dependencies to place after the objects being linked to create a
19287
postdeps=$lt_postdeps_GCJ
19289
# The library search path used internally by the compiler when linking
19290
# a shared library.
19291
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19293
# Method to check whether dependent libraries are shared objects.
19294
deplibs_check_method=$lt_deplibs_check_method
19296
# Command to use when deplibs_check_method == file_magic.
19297
file_magic_cmd=$lt_file_magic_cmd
19299
# Flag that allows shared libraries with undefined symbols to be built.
19300
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19302
# Flag that forces no undefined symbols.
19303
no_undefined_flag=$lt_no_undefined_flag_GCJ
19305
# Commands used to finish a libtool library installation in a directory.
19306
finish_cmds=$lt_finish_cmds
19308
# Same as above, but a single script fragment to be evaled but not shown.
19309
finish_eval=$lt_finish_eval
19311
# Take the output of nm and produce a listing of raw symbols and C names.
19312
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19314
# Transform the output of nm in a proper C declaration
19315
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19317
# Transform the output of nm in a C name address pair
19318
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19320
# This is the shared library runtime path variable.
19321
runpath_var=$runpath_var
19323
# This is the shared library path variable.
19324
shlibpath_var=$shlibpath_var
19326
# Is shlibpath searched before the hard-coded library search path?
19327
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19329
# How to hardcode a shared library path into an executable.
19330
hardcode_action=$hardcode_action_GCJ
19332
# Whether we should hardcode library paths into libraries.
19333
hardcode_into_libs=$hardcode_into_libs
19335
# Flag to hardcode \$libdir into a binary during linking.
19336
# This must work even if \$libdir does not exist.
19337
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19339
# If ld is used when linking, flag to hardcode \$libdir into
19340
# a binary during linking. This must work even if \$libdir does
19342
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19344
# Whether we need a single -rpath flag with a separated argument.
19345
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19347
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19348
# resulting binary.
19349
hardcode_direct=$hardcode_direct_GCJ
19351
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19352
# resulting binary.
19353
hardcode_minus_L=$hardcode_minus_L_GCJ
19355
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19356
# the resulting binary.
19357
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19359
# Set to yes if building a shared library automatically hardcodes DIR into the library
19360
# and all subsequent libraries and executables linked against it.
19361
hardcode_automatic=$hardcode_automatic_GCJ
19363
# Variables whose values should be saved in libtool wrapper scripts and
19364
# restored at relink time.
19365
variables_saved_for_relink="$variables_saved_for_relink"
19367
# Whether libtool must link a program against all its dependency libraries.
19368
link_all_deplibs=$link_all_deplibs_GCJ
19370
# Compile-time system search path for libraries
19371
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19373
# Run-time system search path for libraries
19374
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19376
# Fix the shell variable \$srcfile for the compiler.
19377
fix_srcfile_path="$fix_srcfile_path_GCJ"
19379
# Set to yes if exported symbols are required.
19380
always_export_symbols=$always_export_symbols_GCJ
19382
# The commands to list exported symbols.
19383
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19385
# The commands to extract the exported symbol list from a shared archive.
19386
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19388
# Symbols that should not be listed in the preloaded symbols.
19389
exclude_expsyms=$lt_exclude_expsyms_GCJ
19391
# Symbols that must always be exported.
19392
include_expsyms=$lt_include_expsyms_GCJ
19394
# ### END LIBTOOL TAG CONFIG: $tagname
19400
# If there is no Makefile yet, we rely on a make rule to execute
19401
# `config.status --recheck' to rerun these tests and create the
19402
# libtool script then.
19403
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19404
if test -f "$ltmain_in"; then
19405
test -f Makefile && make "$ltmain"
19411
ac_cpp='$CPP $CPPFLAGS'
19412
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19413
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19414
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19426
# Source file extension for RC test sources.
19429
# Object file extension for compiled RC test sources.
19433
# Code to be used in simple compile tests
19434
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19436
# Code to be used in simple link tests
19437
lt_simple_link_test_code="$lt_simple_compile_test_code"
19439
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19441
# If no C compiler was specified, use CC.
19444
# If no C compiler flags were specified, use CFLAGS.
19445
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19447
# Allow CC to be a program name with arguments.
19451
# save warnings/boilerplate of simple test code
19452
ac_outfile=conftest.$ac_objext
19453
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19454
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19455
_lt_compiler_boilerplate=`cat conftest.err`
19458
ac_outfile=conftest.$ac_objext
19459
printf "$lt_simple_link_test_code" >conftest.$ac_ext
19460
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19461
_lt_linker_boilerplate=`cat conftest.err`
19465
# Allow CC to be a program name with arguments.
19470
for cc_temp in $compiler""; do
19472
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19473
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19478
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19480
lt_cv_prog_compiler_c_o_RC=yes
19482
# The else clause should only fire when bootstrapping the
19483
# libtool distribution, otherwise you forgot to ship ltmain.sh
19484
# with your package, and you will get complaints that there are
19485
# no rules to generate ltmain.sh.
19486
if test -f "$ltmain"; then
19487
# See if we are running on zsh, and set the options which allow our commands through
19488
# without removal of \ escapes.
19489
if test -n "${ZSH_VERSION+set}" ; then
19490
setopt NO_GLOB_SUBST
19492
# Now quote all the things that may contain metacharacters while being
19493
# careful not to overquote the AC_SUBSTed values. We take copies of the
19494
# variables and quote the copies for generation of the libtool script.
19495
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19497
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19498
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19499
deplibs_check_method reload_flag reload_cmds need_locks \
19500
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19501
lt_cv_sys_global_symbol_to_c_name_address \
19502
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19503
old_postinstall_cmds old_postuninstall_cmds \
19507
lt_prog_compiler_wl_RC \
19508
lt_prog_compiler_pic_RC \
19509
lt_prog_compiler_static_RC \
19510
lt_prog_compiler_no_builtin_flag_RC \
19511
export_dynamic_flag_spec_RC \
19512
thread_safe_flag_spec_RC \
19513
whole_archive_flag_spec_RC \
19514
enable_shared_with_static_runtimes_RC \
19515
old_archive_cmds_RC \
19516
old_archive_from_new_cmds_RC \
19517
predep_objects_RC \
19518
postdep_objects_RC \
19521
compiler_lib_search_path_RC \
19523
archive_expsym_cmds_RC \
19524
postinstall_cmds_RC \
19525
postuninstall_cmds_RC \
19526
old_archive_from_expsyms_cmds_RC \
19527
allow_undefined_flag_RC \
19528
no_undefined_flag_RC \
19529
export_symbols_cmds_RC \
19530
hardcode_libdir_flag_spec_RC \
19531
hardcode_libdir_flag_spec_ld_RC \
19532
hardcode_libdir_separator_RC \
19533
hardcode_automatic_RC \
19535
module_expsym_cmds_RC \
19536
lt_cv_prog_compiler_c_o_RC \
19537
exclude_expsyms_RC \
19538
include_expsyms_RC; do
19541
old_archive_cmds_RC | \
19542
old_archive_from_new_cmds_RC | \
19543
archive_cmds_RC | \
19544
archive_expsym_cmds_RC | \
19546
module_expsym_cmds_RC | \
19547
old_archive_from_expsyms_cmds_RC | \
19548
export_symbols_cmds_RC | \
19549
extract_expsyms_cmds | reload_cmds | finish_cmds | \
19550
postinstall_cmds | postuninstall_cmds | \
19551
old_postinstall_cmds | old_postuninstall_cmds | \
19552
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19553
# Double-quote double-evaled strings.
19554
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19557
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19563
*'\$0 --fallback-echo"')
19564
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19570
cat <<__EOF__ >> "$cfgfile"
19571
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19573
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19575
# Shell to use when invoking shell scripts.
19578
# Whether or not to build shared libraries.
19579
build_libtool_libs=$enable_shared
19581
# Whether or not to build static libraries.
19582
build_old_libs=$enable_static
19584
# Whether or not to add -lc for building shared libraries.
19585
build_libtool_need_lc=$archive_cmds_need_lc_RC
19587
# Whether or not to disallow shared libs when runtime libs are static
19588
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19590
# Whether or not to optimize for fast installation.
19591
fast_install=$enable_fast_install
19594
host_alias=$host_alias
19598
# The build system.
19599
build_alias=$build_alias
19603
# An echo program that does not interpret backslashes.
19608
AR_FLAGS=$lt_AR_FLAGS
19613
# LTCC compiler flags.
19614
LTCFLAGS=$lt_LTCFLAGS
19616
# A language-specific compiler.
19619
# Is the compiler the GNU C compiler?
19625
# The linker used to build libraries.
19628
# Whether we need hard or soft links.
19631
# A BSD-compatible nm program.
19634
# A symbol stripping program
19637
# Used to examine libraries when file_magic_cmd begins "file"
19638
MAGIC_CMD=$MAGIC_CMD
19640
# Used on cygwin: DLL creation program.
19643
# Used on cygwin: object dumper.
19646
# Used on cygwin: assembler.
19649
# The name of the directory that contains temporary libtool files.
19652
# How to create reloadable object files.
19653
reload_flag=$lt_reload_flag
19654
reload_cmds=$lt_reload_cmds
19656
# How to pass a linker flag through the compiler.
19657
wl=$lt_lt_prog_compiler_wl_RC
19659
# Object file suffix (normally "o").
19660
objext="$ac_objext"
19662
# Old archive suffix (normally "a").
19665
# Shared library suffix (normally ".so").
19666
shrext_cmds='$shrext_cmds'
19668
# Executable file suffix (normally "").
19671
# Additional compiler flags for building library objects.
19672
pic_flag=$lt_lt_prog_compiler_pic_RC
19675
# What is the maximum length of a command?
19676
max_cmd_len=$lt_cv_sys_max_cmd_len
19678
# Does compiler simultaneously support -c and -o options?
19679
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19681
# Must we lock files when doing compilation?
19682
need_locks=$lt_need_locks
19684
# Do we need the lib prefix for modules?
19685
need_lib_prefix=$need_lib_prefix
19687
# Do we need a version for libraries?
19688
need_version=$need_version
19690
# Whether dlopen is supported.
19691
dlopen_support=$enable_dlopen
19693
# Whether dlopen of programs is supported.
19694
dlopen_self=$enable_dlopen_self
19696
# Whether dlopen of statically linked programs is supported.
19697
dlopen_self_static=$enable_dlopen_self_static
19699
# Compiler flag to prevent dynamic linking.
19700
link_static_flag=$lt_lt_prog_compiler_static_RC
19702
# Compiler flag to turn off builtin functions.
19703
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19705
# Compiler flag to allow reflexive dlopens.
19706
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19708
# Compiler flag to generate shared objects directly from archives.
19709
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19711
# Compiler flag to generate thread-safe objects.
19712
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19714
# Library versioning type.
19715
version_type=$version_type
19717
# Format of library name prefix.
19718
libname_spec=$lt_libname_spec
19720
# List of archive names. First name is the real one, the rest are links.
19721
# The last name is the one that the linker finds with -lNAME.
19722
library_names_spec=$lt_library_names_spec
19724
# The coded name of the library, if different from the real name.
19725
soname_spec=$lt_soname_spec
19727
# Commands used to build and install an old-style archive.
19729
old_archive_cmds=$lt_old_archive_cmds_RC
19730
old_postinstall_cmds=$lt_old_postinstall_cmds
19731
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19733
# Create an old-style archive from a shared archive.
19734
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19736
# Create a temporary old-style archive to link instead of a shared archive.
19737
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19739
# Commands used to build and install a shared archive.
19740
archive_cmds=$lt_archive_cmds_RC
19741
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19742
postinstall_cmds=$lt_postinstall_cmds
19743
postuninstall_cmds=$lt_postuninstall_cmds
19745
# Commands used to build a loadable module (assumed same as above if empty)
19746
module_cmds=$lt_module_cmds_RC
19747
module_expsym_cmds=$lt_module_expsym_cmds_RC
19749
# Commands to strip libraries.
19750
old_striplib=$lt_old_striplib
19751
striplib=$lt_striplib
19753
# Dependencies to place before the objects being linked to create a
19755
predep_objects=$lt_predep_objects_RC
19757
# Dependencies to place after the objects being linked to create a
19759
postdep_objects=$lt_postdep_objects_RC
19761
# Dependencies to place before the objects being linked to create a
19763
predeps=$lt_predeps_RC
19765
# Dependencies to place after the objects being linked to create a
19767
postdeps=$lt_postdeps_RC
19769
# The library search path used internally by the compiler when linking
19770
# a shared library.
19771
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19773
# Method to check whether dependent libraries are shared objects.
19774
deplibs_check_method=$lt_deplibs_check_method
19776
# Command to use when deplibs_check_method == file_magic.
19777
file_magic_cmd=$lt_file_magic_cmd
19779
# Flag that allows shared libraries with undefined symbols to be built.
19780
allow_undefined_flag=$lt_allow_undefined_flag_RC
19782
# Flag that forces no undefined symbols.
19783
no_undefined_flag=$lt_no_undefined_flag_RC
19785
# Commands used to finish a libtool library installation in a directory.
19786
finish_cmds=$lt_finish_cmds
19788
# Same as above, but a single script fragment to be evaled but not shown.
19789
finish_eval=$lt_finish_eval
19791
# Take the output of nm and produce a listing of raw symbols and C names.
19792
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19794
# Transform the output of nm in a proper C declaration
19795
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19797
# Transform the output of nm in a C name address pair
19798
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19800
# This is the shared library runtime path variable.
19801
runpath_var=$runpath_var
19803
# This is the shared library path variable.
19804
shlibpath_var=$shlibpath_var
19806
# Is shlibpath searched before the hard-coded library search path?
19807
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19809
# How to hardcode a shared library path into an executable.
19810
hardcode_action=$hardcode_action_RC
19812
# Whether we should hardcode library paths into libraries.
19813
hardcode_into_libs=$hardcode_into_libs
19815
# Flag to hardcode \$libdir into a binary during linking.
19816
# This must work even if \$libdir does not exist.
19817
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19819
# If ld is used when linking, flag to hardcode \$libdir into
19820
# a binary during linking. This must work even if \$libdir does
19822
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19824
# Whether we need a single -rpath flag with a separated argument.
19825
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19827
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19828
# resulting binary.
19829
hardcode_direct=$hardcode_direct_RC
19831
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19832
# resulting binary.
19833
hardcode_minus_L=$hardcode_minus_L_RC
19835
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19836
# the resulting binary.
19837
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19839
# Set to yes if building a shared library automatically hardcodes DIR into the library
19840
# and all subsequent libraries and executables linked against it.
19841
hardcode_automatic=$hardcode_automatic_RC
19843
# Variables whose values should be saved in libtool wrapper scripts and
19844
# restored at relink time.
19845
variables_saved_for_relink="$variables_saved_for_relink"
19847
# Whether libtool must link a program against all its dependency libraries.
19848
link_all_deplibs=$link_all_deplibs_RC
19850
# Compile-time system search path for libraries
19851
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19853
# Run-time system search path for libraries
19854
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19856
# Fix the shell variable \$srcfile for the compiler.
19857
fix_srcfile_path="$fix_srcfile_path_RC"
19859
# Set to yes if exported symbols are required.
19860
always_export_symbols=$always_export_symbols_RC
19862
# The commands to list exported symbols.
19863
export_symbols_cmds=$lt_export_symbols_cmds_RC
19865
# The commands to extract the exported symbol list from a shared archive.
19866
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19868
# Symbols that should not be listed in the preloaded symbols.
19869
exclude_expsyms=$lt_exclude_expsyms_RC
19871
# Symbols that must always be exported.
19872
include_expsyms=$lt_include_expsyms_RC
19874
# ### END LIBTOOL TAG CONFIG: $tagname
19880
# If there is no Makefile yet, we rely on a make rule to execute
19881
# `config.status --recheck' to rerun these tests and create the
19882
# libtool script then.
19883
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19884
if test -f "$ltmain_in"; then
19885
test -f Makefile && make "$ltmain"
19891
ac_cpp='$CPP $CPPFLAGS'
19892
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19893
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19894
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19901
{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19902
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19903
{ (exit 1); exit 1; }; }
19907
# Append the new tag name to the list of available tags.
19908
if test -n "$tagname" ; then
19909
available_tags="$available_tags $tagname"
19915
# Now substitute the updated list of available tags.
19916
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19917
mv "${ofile}T" "$ofile"
19921
{ { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19922
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19923
{ (exit 1); exit 1; }; }
19929
# This can be used to rebuild libtool when needed
19930
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19932
# Always use our own libtool.
19933
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19935
# Prevent multiple expansion
19956
# Check whether --enable-shared was given.
19957
if test "${enable_shared+set}" = set; then
19958
enableval=$enable_shared; p=${PACKAGE-default}
19960
yes) enable_shared=yes ;;
19961
no) enable_shared=no ;;
19964
# Look at the argument we got. We use all the common list separators.
19965
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
19966
for pkg in $enableval; do
19968
if test "X$pkg" = "X$p"; then
19980
# Check whether --enable-static was given.
19981
if test "${enable_static+set}" = set; then
19982
enableval=$enable_static; p=${PACKAGE-default}
19984
yes) enable_static=yes ;;
19985
no) enable_static=no ;;
19988
# Look at the argument we got. We use all the common list separators.
19989
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
19990
for pkg in $enableval; do
19992
if test "X$pkg" = "X$p"; then
20005
if test "$GCC" != "yes" ; then
20008
CFLAGS="$CFLAGS +O2 -g "
20012
CFLAGS="$CFLAGS -Wall"
20017
if test $debug_enabled = "yes"; then
20018
CFLAGS="$CFLAGS -g -DDEBUG"
20020
CFLAGS="$CFLAGS -O2 -g "
20023
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20024
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20025
if test "${ac_cv_header_stdc+set}" = set; then
20026
echo $ECHO_N "(cached) $ECHO_C" >&6
20028
cat >conftest.$ac_ext <<_ACEOF
20031
cat confdefs.h >>conftest.$ac_ext
20032
cat >>conftest.$ac_ext <<_ACEOF
20033
/* end confdefs.h. */
20034
#include <stdlib.h>
20035
#include <stdarg.h>
20036
#include <string.h>
20047
rm -f conftest.$ac_objext
20048
if { (ac_try="$ac_compile"
20049
case "(($ac_try" in
20050
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20051
*) ac_try_echo=$ac_try;;
20053
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20054
(eval "$ac_compile") 2>conftest.er1
20056
grep -v '^ *+' conftest.er1 >conftest.err
20058
cat conftest.err >&5
20059
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20060
(exit $ac_status); } &&
20061
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20062
{ (case "(($ac_try" in
20063
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20064
*) ac_try_echo=$ac_try;;
20066
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20067
(eval "$ac_try") 2>&5
20069
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20070
(exit $ac_status); }; } &&
20071
{ ac_try='test -s conftest.$ac_objext'
20072
{ (case "(($ac_try" in
20073
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20074
*) ac_try_echo=$ac_try;;
20076
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20077
(eval "$ac_try") 2>&5
20079
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20080
(exit $ac_status); }; }; then
20081
ac_cv_header_stdc=yes
20083
echo "$as_me: failed program was:" >&5
20084
sed 's/^/| /' conftest.$ac_ext >&5
20086
ac_cv_header_stdc=no
20089
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20091
if test $ac_cv_header_stdc = yes; then
20092
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20093
cat >conftest.$ac_ext <<_ACEOF
20096
cat confdefs.h >>conftest.$ac_ext
20097
cat >>conftest.$ac_ext <<_ACEOF
20098
/* end confdefs.h. */
20099
#include <string.h>
20102
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20103
$EGREP "memchr" >/dev/null 2>&1; then
20106
ac_cv_header_stdc=no
20112
if test $ac_cv_header_stdc = yes; then
20113
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20114
cat >conftest.$ac_ext <<_ACEOF
20117
cat confdefs.h >>conftest.$ac_ext
20118
cat >>conftest.$ac_ext <<_ACEOF
20119
/* end confdefs.h. */
20120
#include <stdlib.h>
20123
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20124
$EGREP "free" >/dev/null 2>&1; then
20127
ac_cv_header_stdc=no
20133
if test $ac_cv_header_stdc = yes; then
20134
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20135
if test "$cross_compiling" = yes; then
20138
cat >conftest.$ac_ext <<_ACEOF
20141
cat confdefs.h >>conftest.$ac_ext
20142
cat >>conftest.$ac_ext <<_ACEOF
20143
/* end confdefs.h. */
20145
#include <stdlib.h>
20146
#if ((' ' & 0x0FF) == 0x020)
20147
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20148
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20150
# define ISLOWER(c) \
20151
(('a' <= (c) && (c) <= 'i') \
20152
|| ('j' <= (c) && (c) <= 'r') \
20153
|| ('s' <= (c) && (c) <= 'z'))
20154
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20157
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20162
for (i = 0; i < 256; i++)
20163
if (XOR (islower (i), ISLOWER (i))
20164
|| toupper (i) != TOUPPER (i))
20169
rm -f conftest$ac_exeext
20170
if { (ac_try="$ac_link"
20171
case "(($ac_try" in
20172
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20173
*) ac_try_echo=$ac_try;;
20175
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20176
(eval "$ac_link") 2>&5
20178
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20179
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20180
{ (case "(($ac_try" in
20181
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20182
*) ac_try_echo=$ac_try;;
20184
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20185
(eval "$ac_try") 2>&5
20187
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20188
(exit $ac_status); }; }; then
20191
echo "$as_me: program exited with status $ac_status" >&5
20192
echo "$as_me: failed program was:" >&5
20193
sed 's/^/| /' conftest.$ac_ext >&5
20195
( exit $ac_status )
20196
ac_cv_header_stdc=no
20198
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20204
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20205
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20206
if test $ac_cv_header_stdc = yes; then
20208
cat >>confdefs.h <<\_ACEOF
20209
#define STDC_HEADERS 1
20215
{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20216
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
20217
if test "${ac_cv_c_const+set}" = set; then
20218
echo $ECHO_N "(cached) $ECHO_C" >&6
20220
cat >conftest.$ac_ext <<_ACEOF
20223
cat confdefs.h >>conftest.$ac_ext
20224
cat >>conftest.$ac_ext <<_ACEOF
20225
/* end confdefs.h. */
20230
/* FIXME: Include the comments suggested by Paul. */
20231
#ifndef __cplusplus
20232
/* Ultrix mips cc rejects this. */
20233
typedef int charset[2];
20235
/* SunOS 4.1.1 cc rejects this. */
20236
char const *const *pcpcc;
20238
/* NEC SVR4.0.2 mips cc rejects this. */
20239
struct point {int x, y;};
20240
static struct point const zero = {0,0};
20241
/* AIX XL C 1.02.0.0 rejects this.
20242
It does not let you subtract one const X* pointer from another in
20243
an arm of an if-expression whose if-part is not a constant
20245
const char *g = "string";
20246
pcpcc = &g + (g ? g-g : 0);
20247
/* HPUX 7.0 cc rejects these. */
20249
ppc = (char**) pcpcc;
20250
pcpcc = (char const *const *) ppc;
20251
{ /* SCO 3.2v4 cc rejects this. */
20253
char const *s = 0 ? (char *) 0 : (char const *) 0;
20258
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20259
int x[] = {25, 17};
20260
const int *foo = &x[0];
20263
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20264
typedef const int *iptr;
20268
{ /* AIX XL C 1.02.0.0 rejects this saying
20269
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20270
struct s { int j; const int *ap[3]; };
20271
struct s *b; b->j = 5;
20273
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20274
const int foo = 10;
20275
if (!foo) return 0;
20277
return !cs[0] && !zero.x;
20284
rm -f conftest.$ac_objext
20285
if { (ac_try="$ac_compile"
20286
case "(($ac_try" in
20287
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20288
*) ac_try_echo=$ac_try;;
20290
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20291
(eval "$ac_compile") 2>conftest.er1
20293
grep -v '^ *+' conftest.er1 >conftest.err
20295
cat conftest.err >&5
20296
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20297
(exit $ac_status); } &&
20298
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
20306
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20307
(exit $ac_status); }; } &&
20308
{ ac_try='test -s conftest.$ac_objext'
20309
{ (case "(($ac_try" in
20310
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20311
*) ac_try_echo=$ac_try;;
20313
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20314
(eval "$ac_try") 2>&5
20316
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20317
(exit $ac_status); }; }; then
20320
echo "$as_me: failed program was:" >&5
20321
sed 's/^/| /' conftest.$ac_ext >&5
20326
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20328
{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20329
echo "${ECHO_T}$ac_cv_c_const" >&6; }
20330
if test $ac_cv_c_const = no; then
20332
cat >>confdefs.h <<\_ACEOF
20338
{ echo "$as_me:$LINENO: checking for inline" >&5
20339
echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
20340
if test "${ac_cv_c_inline+set}" = set; then
20341
echo $ECHO_N "(cached) $ECHO_C" >&6
20344
for ac_kw in inline __inline__ __inline; do
20345
cat >conftest.$ac_ext <<_ACEOF
20348
cat confdefs.h >>conftest.$ac_ext
20349
cat >>conftest.$ac_ext <<_ACEOF
20350
/* end confdefs.h. */
20351
#ifndef __cplusplus
20353
static $ac_kw foo_t static_foo () {return 0; }
20354
$ac_kw foo_t foo () {return 0; }
20358
rm -f conftest.$ac_objext
20359
if { (ac_try="$ac_compile"
20360
case "(($ac_try" in
20361
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20362
*) ac_try_echo=$ac_try;;
20364
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20365
(eval "$ac_compile") 2>conftest.er1
20367
grep -v '^ *+' conftest.er1 >conftest.err
20369
cat conftest.err >&5
20370
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20371
(exit $ac_status); } &&
20372
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20373
{ (case "(($ac_try" in
20374
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20375
*) ac_try_echo=$ac_try;;
20377
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20378
(eval "$ac_try") 2>&5
20380
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20381
(exit $ac_status); }; } &&
20382
{ ac_try='test -s conftest.$ac_objext'
20383
{ (case "(($ac_try" in
20384
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20385
*) ac_try_echo=$ac_try;;
20387
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20388
(eval "$ac_try") 2>&5
20390
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20391
(exit $ac_status); }; }; then
20392
ac_cv_c_inline=$ac_kw
20394
echo "$as_me: failed program was:" >&5
20395
sed 's/^/| /' conftest.$ac_ext >&5
20400
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20401
test "$ac_cv_c_inline" != no && break
20405
{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20406
echo "${ECHO_T}$ac_cv_c_inline" >&6; }
20409
case $ac_cv_c_inline in
20412
case $ac_cv_c_inline in
20414
*) ac_val=$ac_cv_c_inline;;
20416
cat >>confdefs.h <<_ACEOF
20417
#ifndef __cplusplus
20418
#define inline $ac_val
20424
{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20425
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
20426
if test "${ac_cv_header_time+set}" = set; then
20427
echo $ECHO_N "(cached) $ECHO_C" >&6
20429
cat >conftest.$ac_ext <<_ACEOF
20432
cat confdefs.h >>conftest.$ac_ext
20433
cat >>conftest.$ac_ext <<_ACEOF
20434
/* end confdefs.h. */
20435
#include <sys/types.h>
20436
#include <sys/time.h>
20442
if ((struct tm *) 0)
20448
rm -f conftest.$ac_objext
20449
if { (ac_try="$ac_compile"
20450
case "(($ac_try" in
20451
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20452
*) ac_try_echo=$ac_try;;
20454
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20455
(eval "$ac_compile") 2>conftest.er1
20457
grep -v '^ *+' conftest.er1 >conftest.err
20459
cat conftest.err >&5
20460
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20461
(exit $ac_status); } &&
20462
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20463
{ (case "(($ac_try" in
20464
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20465
*) ac_try_echo=$ac_try;;
20467
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20468
(eval "$ac_try") 2>&5
20470
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20471
(exit $ac_status); }; } &&
20472
{ ac_try='test -s conftest.$ac_objext'
20473
{ (case "(($ac_try" in
20474
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20475
*) ac_try_echo=$ac_try;;
20477
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20478
(eval "$ac_try") 2>&5
20480
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20481
(exit $ac_status); }; }; then
20482
ac_cv_header_time=yes
20484
echo "$as_me: failed program was:" >&5
20485
sed 's/^/| /' conftest.$ac_ext >&5
20487
ac_cv_header_time=no
20490
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20492
{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20493
echo "${ECHO_T}$ac_cv_header_time" >&6; }
20494
if test $ac_cv_header_time = yes; then
20496
cat >>confdefs.h <<\_ACEOF
20497
#define TIME_WITH_SYS_TIME 1
20502
{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20503
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
20504
if test "${ac_cv_c_bigendian+set}" = set; then
20505
echo $ECHO_N "(cached) $ECHO_C" >&6
20507
# See if sys/param.h defines the BYTE_ORDER macro.
20508
cat >conftest.$ac_ext <<_ACEOF
20511
cat confdefs.h >>conftest.$ac_ext
20512
cat >>conftest.$ac_ext <<_ACEOF
20513
/* end confdefs.h. */
20514
#include <sys/types.h>
20515
#include <sys/param.h>
20520
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
20521
&& BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
20522
bogus endian macros
20529
rm -f conftest.$ac_objext
20530
if { (ac_try="$ac_compile"
20531
case "(($ac_try" in
20532
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20533
*) ac_try_echo=$ac_try;;
20535
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20536
(eval "$ac_compile") 2>conftest.er1
20538
grep -v '^ *+' conftest.er1 >conftest.err
20540
cat conftest.err >&5
20541
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20542
(exit $ac_status); } &&
20543
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20544
{ (case "(($ac_try" in
20545
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20546
*) ac_try_echo=$ac_try;;
20548
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20549
(eval "$ac_try") 2>&5
20551
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20552
(exit $ac_status); }; } &&
20553
{ ac_try='test -s conftest.$ac_objext'
20554
{ (case "(($ac_try" in
20555
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20556
*) ac_try_echo=$ac_try;;
20558
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20559
(eval "$ac_try") 2>&5
20561
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20562
(exit $ac_status); }; }; then
20563
# It does; now see whether it defined to BIG_ENDIAN or not.
20564
cat >conftest.$ac_ext <<_ACEOF
20567
cat confdefs.h >>conftest.$ac_ext
20568
cat >>conftest.$ac_ext <<_ACEOF
20569
/* end confdefs.h. */
20570
#include <sys/types.h>
20571
#include <sys/param.h>
20576
#if BYTE_ORDER != BIG_ENDIAN
20584
rm -f conftest.$ac_objext
20585
if { (ac_try="$ac_compile"
20586
case "(($ac_try" in
20587
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20588
*) ac_try_echo=$ac_try;;
20590
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20591
(eval "$ac_compile") 2>conftest.er1
20593
grep -v '^ *+' conftest.er1 >conftest.err
20595
cat conftest.err >&5
20596
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20597
(exit $ac_status); } &&
20598
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20599
{ (case "(($ac_try" in
20600
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20601
*) ac_try_echo=$ac_try;;
20603
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20604
(eval "$ac_try") 2>&5
20606
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20607
(exit $ac_status); }; } &&
20608
{ ac_try='test -s conftest.$ac_objext'
20609
{ (case "(($ac_try" in
20610
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20611
*) ac_try_echo=$ac_try;;
20613
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20614
(eval "$ac_try") 2>&5
20616
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20617
(exit $ac_status); }; }; then
20618
ac_cv_c_bigendian=yes
20620
echo "$as_me: failed program was:" >&5
20621
sed 's/^/| /' conftest.$ac_ext >&5
20623
ac_cv_c_bigendian=no
20626
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20628
echo "$as_me: failed program was:" >&5
20629
sed 's/^/| /' conftest.$ac_ext >&5
20631
# It does not; compile a test program.
20632
if test "$cross_compiling" = yes; then
20633
# try to guess the endianness by grepping values into an object file
20634
ac_cv_c_bigendian=unknown
20635
cat >conftest.$ac_ext <<_ACEOF
20638
cat confdefs.h >>conftest.$ac_ext
20639
cat >>conftest.$ac_ext <<_ACEOF
20640
/* end confdefs.h. */
20641
short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20642
short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20643
void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20644
short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20645
short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20646
void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20650
_ascii (); _ebcdic ();
20655
rm -f conftest.$ac_objext
20656
if { (ac_try="$ac_compile"
20657
case "(($ac_try" in
20658
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20659
*) ac_try_echo=$ac_try;;
20661
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20662
(eval "$ac_compile") 2>conftest.er1
20664
grep -v '^ *+' conftest.er1 >conftest.err
20666
cat conftest.err >&5
20667
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20668
(exit $ac_status); } &&
20669
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20670
{ (case "(($ac_try" in
20671
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20672
*) ac_try_echo=$ac_try;;
20674
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20675
(eval "$ac_try") 2>&5
20677
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20678
(exit $ac_status); }; } &&
20679
{ ac_try='test -s conftest.$ac_objext'
20680
{ (case "(($ac_try" in
20681
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20682
*) ac_try_echo=$ac_try;;
20684
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20685
(eval "$ac_try") 2>&5
20687
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20688
(exit $ac_status); }; }; then
20689
if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20690
ac_cv_c_bigendian=yes
20692
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20693
if test "$ac_cv_c_bigendian" = unknown; then
20694
ac_cv_c_bigendian=no
20696
# finding both strings is unlikely to happen, but who knows?
20697
ac_cv_c_bigendian=unknown
20701
echo "$as_me: failed program was:" >&5
20702
sed 's/^/| /' conftest.$ac_ext >&5
20707
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20709
cat >conftest.$ac_ext <<_ACEOF
20712
cat confdefs.h >>conftest.$ac_ext
20713
cat >>conftest.$ac_ext <<_ACEOF
20714
/* end confdefs.h. */
20715
$ac_includes_default
20720
/* Are we little or big endian? From Harbison&Steele. */
20724
char c[sizeof (long int)];
20727
return u.c[sizeof (long int) - 1] == 1;
20733
rm -f conftest$ac_exeext
20734
if { (ac_try="$ac_link"
20735
case "(($ac_try" in
20736
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20737
*) ac_try_echo=$ac_try;;
20739
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20740
(eval "$ac_link") 2>&5
20742
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20743
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20744
{ (case "(($ac_try" in
20745
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20746
*) ac_try_echo=$ac_try;;
20748
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20749
(eval "$ac_try") 2>&5
20751
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20752
(exit $ac_status); }; }; then
20753
ac_cv_c_bigendian=no
20755
echo "$as_me: program exited with status $ac_status" >&5
20756
echo "$as_me: failed program was:" >&5
20757
sed 's/^/| /' conftest.$ac_ext >&5
20759
( exit $ac_status )
20760
ac_cv_c_bigendian=yes
20762
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20768
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20770
{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20771
echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
20772
case $ac_cv_c_bigendian in
20775
cat >>confdefs.h <<\_ACEOF
20776
#define WORDS_BIGENDIAN 1
20782
{ { echo "$as_me:$LINENO: error: unknown endianness
20783
presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20784
echo "$as_me: error: unknown endianness
20785
presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20786
{ (exit 1); exit 1; }; } ;;
20789
if test x$ac_cv_c_bigendian = xyes ; then
20790
CFLAGS="$CFLAGS -D_BIGENDIAN "
20793
if test $GCC = yes && test $wall_werror = yes; then
20794
CFLAGS="$CFLAGS -Werror "
20799
MSPLUGINS_CFLAGS=""
20800
MSPLUGINS_LIBS="-dynamiclib"
20803
MSPLUGINS_CFLAGS="-pthread"
20804
MSPLUGINS_LIBS="-shared -pthread"
20805
CFLAGS="$CFLAGS -pthread -D_REENTRANT"
20806
LIBS="$LIBS -pthread -lpthread"
20813
{ echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
20814
echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; }
20815
if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
20816
echo $ECHO_N "(cached) $ECHO_C" >&6
20818
ac_check_lib_save_LIBS=$LIBS
20820
cat >conftest.$ac_ext <<_ACEOF
20823
cat confdefs.h >>conftest.$ac_ext
20824
cat >>conftest.$ac_ext <<_ACEOF
20825
/* end confdefs.h. */
20827
/* Override any GCC internal prototype to avoid an error.
20828
Use char because int might match the return type of a GCC
20829
builtin and then its argument prototype would still apply. */
20833
char clock_gettime ();
20837
return clock_gettime ();
20842
rm -f conftest.$ac_objext conftest$ac_exeext
20843
if { (ac_try="$ac_link"
20844
case "(($ac_try" in
20845
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20846
*) ac_try_echo=$ac_try;;
20848
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20849
(eval "$ac_link") 2>conftest.er1
20851
grep -v '^ *+' conftest.er1 >conftest.err
20853
cat conftest.err >&5
20854
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20855
(exit $ac_status); } &&
20856
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20857
{ (case "(($ac_try" in
20858
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20859
*) ac_try_echo=$ac_try;;
20861
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20862
(eval "$ac_try") 2>&5
20864
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20865
(exit $ac_status); }; } &&
20866
{ ac_try='test -s conftest$ac_exeext'
20867
{ (case "(($ac_try" in
20868
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20869
*) ac_try_echo=$ac_try;;
20871
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20872
(eval "$ac_try") 2>&5
20874
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20875
(exit $ac_status); }; }; then
20876
ac_cv_lib_rt_clock_gettime=yes
20878
echo "$as_me: failed program was:" >&5
20879
sed 's/^/| /' conftest.$ac_ext >&5
20881
ac_cv_lib_rt_clock_gettime=no
20884
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20885
conftest$ac_exeext conftest.$ac_ext
20886
LIBS=$ac_check_lib_save_LIBS
20888
{ echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
20889
echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6; }
20890
if test $ac_cv_lib_rt_clock_gettime = yes; then
20902
for ac_header in soundcard.h sys/soundcard.h machine/soundcard.h sys/audio.h
20904
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20905
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20906
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20907
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20908
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20909
echo $ECHO_N "(cached) $ECHO_C" >&6
20911
ac_res=`eval echo '${'$as_ac_Header'}'`
20912
{ echo "$as_me:$LINENO: result: $ac_res" >&5
20913
echo "${ECHO_T}$ac_res" >&6; }
20915
# Is the header compilable?
20916
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
20917
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20918
cat >conftest.$ac_ext <<_ACEOF
20921
cat confdefs.h >>conftest.$ac_ext
20922
cat >>conftest.$ac_ext <<_ACEOF
20923
/* end confdefs.h. */
20924
$ac_includes_default
20925
#include <$ac_header>
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
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20942
{ (case "(($ac_try" in
20943
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20944
*) ac_try_echo=$ac_try;;
20946
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20947
(eval "$ac_try") 2>&5
20949
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20950
(exit $ac_status); }; } &&
20951
{ ac_try='test -s conftest.$ac_objext'
20952
{ (case "(($ac_try" in
20953
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20954
*) ac_try_echo=$ac_try;;
20956
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20957
(eval "$ac_try") 2>&5
20959
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20960
(exit $ac_status); }; }; then
20961
ac_header_compiler=yes
20963
echo "$as_me: failed program was:" >&5
20964
sed 's/^/| /' conftest.$ac_ext >&5
20966
ac_header_compiler=no
20969
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20970
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20971
echo "${ECHO_T}$ac_header_compiler" >&6; }
20973
# Is the header present?
20974
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
20975
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20976
cat >conftest.$ac_ext <<_ACEOF
20979
cat confdefs.h >>conftest.$ac_ext
20980
cat >>conftest.$ac_ext <<_ACEOF
20981
/* end confdefs.h. */
20982
#include <$ac_header>
20984
if { (ac_try="$ac_cpp conftest.$ac_ext"
20985
case "(($ac_try" in
20986
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20987
*) ac_try_echo=$ac_try;;
20989
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20990
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20992
grep -v '^ *+' conftest.er1 >conftest.err
20994
cat conftest.err >&5
20995
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20996
(exit $ac_status); } >/dev/null; then
20997
if test -s conftest.err; then
20998
ac_cpp_err=$ac_c_preproc_warn_flag
20999
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21006
if test -z "$ac_cpp_err"; then
21007
ac_header_preproc=yes
21009
echo "$as_me: failed program was:" >&5
21010
sed 's/^/| /' conftest.$ac_ext >&5
21012
ac_header_preproc=no
21015
rm -f conftest.err conftest.$ac_ext
21016
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21017
echo "${ECHO_T}$ac_header_preproc" >&6; }
21019
# So? What about this header?
21020
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21022
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21023
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21024
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21025
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21026
ac_header_preproc=yes
21029
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21030
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21031
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21032
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21033
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21034
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21035
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21036
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21037
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21038
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21039
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21040
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21044
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21045
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21046
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21047
echo $ECHO_N "(cached) $ECHO_C" >&6
21049
eval "$as_ac_Header=\$ac_header_preproc"
21051
ac_res=`eval echo '${'$as_ac_Header'}'`
21052
{ echo "$as_me:$LINENO: result: $ac_res" >&5
21053
echo "${ECHO_T}$ac_res" >&6; }
21056
if test `eval echo '${'$as_ac_Header'}'` = yes; then
21057
cat >>confdefs.h <<_ACEOF
21058
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21065
if test "${ac_cv_header_sys_soundcard_h}" = "yes" || \
21066
test "${ac_cv_header_soundcard_h}" = "yes" || \
21067
test "${ac_cv_header_sys_audio_h}" = "yes" || \
21068
test "${ac_cv_header_machine_soundcard_h}" = "yes"; then
21074
if test x$found_sound = xyes; then
21076
BUILD_OSS_FALSE='#'
21083
# Check whether --enable-alsa was given.
21084
if test "${enable_alsa+set}" = set; then
21085
enableval=$enable_alsa; case "${enableval}" in
21088
*) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-alsa" >&5
21089
echo "$as_me: error: bad value ${enableval} for --enable-alsa" >&2;}
21090
{ (exit 1); exit 1; }; } ;;
21097
if test "$alsa" = "true"; then
21099
for ac_header in alsa/asoundlib.h
21101
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21102
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21103
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21104
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21105
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21106
echo $ECHO_N "(cached) $ECHO_C" >&6
21108
ac_res=`eval echo '${'$as_ac_Header'}'`
21109
{ echo "$as_me:$LINENO: result: $ac_res" >&5
21110
echo "${ECHO_T}$ac_res" >&6; }
21112
# Is the header compilable?
21113
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
21114
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21115
cat >conftest.$ac_ext <<_ACEOF
21118
cat confdefs.h >>conftest.$ac_ext
21119
cat >>conftest.$ac_ext <<_ACEOF
21120
/* end confdefs.h. */
21121
$ac_includes_default
21122
#include <$ac_header>
21124
rm -f conftest.$ac_objext
21125
if { (ac_try="$ac_compile"
21126
case "(($ac_try" in
21127
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21128
*) ac_try_echo=$ac_try;;
21130
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21131
(eval "$ac_compile") 2>conftest.er1
21133
grep -v '^ *+' conftest.er1 >conftest.err
21135
cat conftest.err >&5
21136
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21137
(exit $ac_status); } &&
21138
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21139
{ (case "(($ac_try" in
21140
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21141
*) ac_try_echo=$ac_try;;
21143
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21144
(eval "$ac_try") 2>&5
21146
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21147
(exit $ac_status); }; } &&
21148
{ ac_try='test -s conftest.$ac_objext'
21149
{ (case "(($ac_try" in
21150
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21151
*) ac_try_echo=$ac_try;;
21153
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21154
(eval "$ac_try") 2>&5
21156
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21157
(exit $ac_status); }; }; then
21158
ac_header_compiler=yes
21160
echo "$as_me: failed program was:" >&5
21161
sed 's/^/| /' conftest.$ac_ext >&5
21163
ac_header_compiler=no
21166
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21167
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21168
echo "${ECHO_T}$ac_header_compiler" >&6; }
21170
# Is the header present?
21171
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
21172
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21173
cat >conftest.$ac_ext <<_ACEOF
21176
cat confdefs.h >>conftest.$ac_ext
21177
cat >>conftest.$ac_ext <<_ACEOF
21178
/* end confdefs.h. */
21179
#include <$ac_header>
21181
if { (ac_try="$ac_cpp conftest.$ac_ext"
21182
case "(($ac_try" in
21183
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21184
*) ac_try_echo=$ac_try;;
21186
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21187
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21189
grep -v '^ *+' conftest.er1 >conftest.err
21191
cat conftest.err >&5
21192
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21193
(exit $ac_status); } >/dev/null; then
21194
if test -s conftest.err; then
21195
ac_cpp_err=$ac_c_preproc_warn_flag
21196
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21203
if test -z "$ac_cpp_err"; then
21204
ac_header_preproc=yes
21206
echo "$as_me: failed program was:" >&5
21207
sed 's/^/| /' conftest.$ac_ext >&5
21209
ac_header_preproc=no
21212
rm -f conftest.err conftest.$ac_ext
21213
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21214
echo "${ECHO_T}$ac_header_preproc" >&6; }
21216
# So? What about this header?
21217
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21219
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21220
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21221
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21222
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21223
ac_header_preproc=yes
21226
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21227
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21228
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21229
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21230
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21231
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21232
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21233
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21234
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21235
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21236
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21237
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21241
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21242
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21243
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21244
echo $ECHO_N "(cached) $ECHO_C" >&6
21246
eval "$as_ac_Header=\$ac_header_preproc"
21248
ac_res=`eval echo '${'$as_ac_Header'}'`
21249
{ echo "$as_me:$LINENO: result: $ac_res" >&5
21250
echo "${ECHO_T}$ac_res" >&6; }
21253
if test `eval echo '${'$as_ac_Header'}'` = yes; then
21254
cat >>confdefs.h <<_ACEOF
21255
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21257
{ echo "$as_me:$LINENO: checking for snd_pcm_open in -lasound" >&5
21258
echo $ECHO_N "checking for snd_pcm_open in -lasound... $ECHO_C" >&6; }
21259
if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then
21260
echo $ECHO_N "(cached) $ECHO_C" >&6
21262
ac_check_lib_save_LIBS=$LIBS
21263
LIBS="-lasound $LIBS"
21264
cat >conftest.$ac_ext <<_ACEOF
21267
cat confdefs.h >>conftest.$ac_ext
21268
cat >>conftest.$ac_ext <<_ACEOF
21269
/* end confdefs.h. */
21271
/* Override any GCC internal prototype to avoid an error.
21272
Use char because int might match the return type of a GCC
21273
builtin and then its argument prototype would still apply. */
21277
char snd_pcm_open ();
21281
return snd_pcm_open ();
21286
rm -f conftest.$ac_objext conftest$ac_exeext
21287
if { (ac_try="$ac_link"
21288
case "(($ac_try" in
21289
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21290
*) ac_try_echo=$ac_try;;
21292
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21293
(eval "$ac_link") 2>conftest.er1
21295
grep -v '^ *+' conftest.er1 >conftest.err
21297
cat conftest.err >&5
21298
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21299
(exit $ac_status); } &&
21300
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21301
{ (case "(($ac_try" in
21302
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21303
*) ac_try_echo=$ac_try;;
21305
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21306
(eval "$ac_try") 2>&5
21308
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21309
(exit $ac_status); }; } &&
21310
{ ac_try='test -s conftest$ac_exeext'
21311
{ (case "(($ac_try" in
21312
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21313
*) ac_try_echo=$ac_try;;
21315
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21316
(eval "$ac_try") 2>&5
21318
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21319
(exit $ac_status); }; }; then
21320
ac_cv_lib_asound_snd_pcm_open=yes
21322
echo "$as_me: failed program was:" >&5
21323
sed 's/^/| /' conftest.$ac_ext >&5
21325
ac_cv_lib_asound_snd_pcm_open=no
21328
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21329
conftest$ac_exeext conftest.$ac_ext
21330
LIBS=$ac_check_lib_save_LIBS
21332
{ echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_open" >&5
21333
echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_open" >&6; }
21334
if test $ac_cv_lib_asound_snd_pcm_open = yes; then
21335
ALSA_LIBS="-lasound"
21338
cat >>confdefs.h <<\_ACEOF
21339
#define __ALSA_ENABLED__ 1
21357
if test x$alsa_enabled = xtrue; then
21359
BUILD_ALSA_FALSE='#'
21361
BUILD_ALSA_TRUE='#'
21367
for ac_header in kde/artsc/artsc.h
21369
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21370
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21371
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21372
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21373
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21374
echo $ECHO_N "(cached) $ECHO_C" >&6
21376
ac_res=`eval echo '${'$as_ac_Header'}'`
21377
{ echo "$as_me:$LINENO: result: $ac_res" >&5
21378
echo "${ECHO_T}$ac_res" >&6; }
21380
# Is the header compilable?
21381
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
21382
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21383
cat >conftest.$ac_ext <<_ACEOF
21386
cat confdefs.h >>conftest.$ac_ext
21387
cat >>conftest.$ac_ext <<_ACEOF
21388
/* end confdefs.h. */
21389
$ac_includes_default
21390
#include <$ac_header>
21392
rm -f conftest.$ac_objext
21393
if { (ac_try="$ac_compile"
21394
case "(($ac_try" in
21395
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21396
*) ac_try_echo=$ac_try;;
21398
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21399
(eval "$ac_compile") 2>conftest.er1
21401
grep -v '^ *+' conftest.er1 >conftest.err
21403
cat conftest.err >&5
21404
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21405
(exit $ac_status); } &&
21406
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21407
{ (case "(($ac_try" in
21408
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21409
*) ac_try_echo=$ac_try;;
21411
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21412
(eval "$ac_try") 2>&5
21414
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21415
(exit $ac_status); }; } &&
21416
{ ac_try='test -s conftest.$ac_objext'
21417
{ (case "(($ac_try" in
21418
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21419
*) ac_try_echo=$ac_try;;
21421
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21422
(eval "$ac_try") 2>&5
21424
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21425
(exit $ac_status); }; }; then
21426
ac_header_compiler=yes
21428
echo "$as_me: failed program was:" >&5
21429
sed 's/^/| /' conftest.$ac_ext >&5
21431
ac_header_compiler=no
21434
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21435
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21436
echo "${ECHO_T}$ac_header_compiler" >&6; }
21438
# Is the header present?
21439
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
21440
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21441
cat >conftest.$ac_ext <<_ACEOF
21444
cat confdefs.h >>conftest.$ac_ext
21445
cat >>conftest.$ac_ext <<_ACEOF
21446
/* end confdefs.h. */
21447
#include <$ac_header>
21449
if { (ac_try="$ac_cpp conftest.$ac_ext"
21450
case "(($ac_try" in
21451
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21452
*) ac_try_echo=$ac_try;;
21454
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21455
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21457
grep -v '^ *+' conftest.er1 >conftest.err
21459
cat conftest.err >&5
21460
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21461
(exit $ac_status); } >/dev/null; then
21462
if test -s conftest.err; then
21463
ac_cpp_err=$ac_c_preproc_warn_flag
21464
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21471
if test -z "$ac_cpp_err"; then
21472
ac_header_preproc=yes
21474
echo "$as_me: failed program was:" >&5
21475
sed 's/^/| /' conftest.$ac_ext >&5
21477
ac_header_preproc=no
21480
rm -f conftest.err conftest.$ac_ext
21481
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21482
echo "${ECHO_T}$ac_header_preproc" >&6; }
21484
# So? What about this header?
21485
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21487
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21488
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21489
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21490
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21491
ac_header_preproc=yes
21494
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21495
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21496
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21497
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21498
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21499
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21500
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21501
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21502
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21503
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21504
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21505
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21509
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21510
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21511
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21512
echo $ECHO_N "(cached) $ECHO_C" >&6
21514
eval "$as_ac_Header=\$ac_header_preproc"
21516
ac_res=`eval echo '${'$as_ac_Header'}'`
21517
{ echo "$as_me:$LINENO: result: $ac_res" >&5
21518
echo "${ECHO_T}$ac_res" >&6; }
21521
if test `eval echo '${'$as_ac_Header'}'` = yes; then
21522
cat >>confdefs.h <<_ACEOF
21523
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21525
{ echo "$as_me:$LINENO: checking for arts_init in -lartsc" >&5
21526
echo $ECHO_N "checking for arts_init in -lartsc... $ECHO_C" >&6; }
21527
if test "${ac_cv_lib_artsc_arts_init+set}" = set; then
21528
echo $ECHO_N "(cached) $ECHO_C" >&6
21530
ac_check_lib_save_LIBS=$LIBS
21531
LIBS="-lartsc $LIBS"
21532
cat >conftest.$ac_ext <<_ACEOF
21535
cat confdefs.h >>conftest.$ac_ext
21536
cat >>conftest.$ac_ext <<_ACEOF
21537
/* end confdefs.h. */
21539
/* Override any GCC internal prototype to avoid an error.
21540
Use char because int might match the return type of a GCC
21541
builtin and then its argument prototype would still apply. */
21549
return arts_init ();
21554
rm -f conftest.$ac_objext conftest$ac_exeext
21555
if { (ac_try="$ac_link"
21556
case "(($ac_try" in
21557
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21558
*) ac_try_echo=$ac_try;;
21560
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21561
(eval "$ac_link") 2>conftest.er1
21563
grep -v '^ *+' conftest.er1 >conftest.err
21565
cat conftest.err >&5
21566
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21567
(exit $ac_status); } &&
21568
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21569
{ (case "(($ac_try" in
21570
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21571
*) ac_try_echo=$ac_try;;
21573
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21574
(eval "$ac_try") 2>&5
21576
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21577
(exit $ac_status); }; } &&
21578
{ ac_try='test -s conftest$ac_exeext'
21579
{ (case "(($ac_try" in
21580
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21581
*) ac_try_echo=$ac_try;;
21583
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21584
(eval "$ac_try") 2>&5
21586
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21587
(exit $ac_status); }; }; then
21588
ac_cv_lib_artsc_arts_init=yes
21590
echo "$as_me: failed program was:" >&5
21591
sed 's/^/| /' conftest.$ac_ext >&5
21593
ac_cv_lib_artsc_arts_init=no
21596
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21597
conftest$ac_exeext conftest.$ac_ext
21598
LIBS=$ac_check_lib_save_LIBS
21600
{ echo "$as_me:$LINENO: result: $ac_cv_lib_artsc_arts_init" >&5
21601
echo "${ECHO_T}$ac_cv_lib_artsc_arts_init" >&6; }
21602
if test $ac_cv_lib_artsc_arts_init = yes; then
21603
ARTS_LIBS="-lartsc"
21606
cat >>confdefs.h <<\_ACEOF
21607
#define __ARTS_ENABLED__ 1
21623
if test x$arts_enabled = xtrue; then
21625
BUILD_ARTS_FALSE='#'
21627
BUILD_ARTS_TRUE='#'
21632
# Check whether --enable-portaudio was given.
21633
if test "${enable_portaudio+set}" = set; then
21634
enableval=$enable_portaudio; case "${enableval}" in
21635
yes) portaudio=true ;;
21636
no) portaudio=false ;;
21637
*) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-portaudio" >&5
21638
echo "$as_me: error: bad value ${enableval} for --enable-portaudio" >&2;}
21639
{ (exit 1); exit 1; }; } ;;
21646
if test "$portaudio" = "true"; then
21648
for ac_header in portaudio.h
21650
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21651
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21652
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21653
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21654
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21655
echo $ECHO_N "(cached) $ECHO_C" >&6
21657
ac_res=`eval echo '${'$as_ac_Header'}'`
21658
{ echo "$as_me:$LINENO: result: $ac_res" >&5
21659
echo "${ECHO_T}$ac_res" >&6; }
21661
# Is the header compilable?
21662
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
21663
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21664
cat >conftest.$ac_ext <<_ACEOF
21667
cat confdefs.h >>conftest.$ac_ext
21668
cat >>conftest.$ac_ext <<_ACEOF
21669
/* end confdefs.h. */
21670
$ac_includes_default
21671
#include <$ac_header>
21673
rm -f conftest.$ac_objext
21674
if { (ac_try="$ac_compile"
21675
case "(($ac_try" in
21676
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21677
*) ac_try_echo=$ac_try;;
21679
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21680
(eval "$ac_compile") 2>conftest.er1
21682
grep -v '^ *+' conftest.er1 >conftest.err
21684
cat conftest.err >&5
21685
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21686
(exit $ac_status); } &&
21687
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21688
{ (case "(($ac_try" in
21689
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21690
*) ac_try_echo=$ac_try;;
21692
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21693
(eval "$ac_try") 2>&5
21695
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21696
(exit $ac_status); }; } &&
21697
{ ac_try='test -s conftest.$ac_objext'
21698
{ (case "(($ac_try" in
21699
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21700
*) ac_try_echo=$ac_try;;
21702
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21703
(eval "$ac_try") 2>&5
21705
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21706
(exit $ac_status); }; }; then
21707
ac_header_compiler=yes
21709
echo "$as_me: failed program was:" >&5
21710
sed 's/^/| /' conftest.$ac_ext >&5
21712
ac_header_compiler=no
21715
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21716
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21717
echo "${ECHO_T}$ac_header_compiler" >&6; }
21719
# Is the header present?
21720
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
21721
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21722
cat >conftest.$ac_ext <<_ACEOF
21725
cat confdefs.h >>conftest.$ac_ext
21726
cat >>conftest.$ac_ext <<_ACEOF
21727
/* end confdefs.h. */
21728
#include <$ac_header>
21730
if { (ac_try="$ac_cpp conftest.$ac_ext"
21731
case "(($ac_try" in
21732
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21733
*) ac_try_echo=$ac_try;;
21735
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21736
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21738
grep -v '^ *+' conftest.er1 >conftest.err
21740
cat conftest.err >&5
21741
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21742
(exit $ac_status); } >/dev/null; then
21743
if test -s conftest.err; then
21744
ac_cpp_err=$ac_c_preproc_warn_flag
21745
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21752
if test -z "$ac_cpp_err"; then
21753
ac_header_preproc=yes
21755
echo "$as_me: failed program was:" >&5
21756
sed 's/^/| /' conftest.$ac_ext >&5
21758
ac_header_preproc=no
21761
rm -f conftest.err conftest.$ac_ext
21762
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21763
echo "${ECHO_T}$ac_header_preproc" >&6; }
21765
# So? What about this header?
21766
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21768
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21769
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21770
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21771
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21772
ac_header_preproc=yes
21775
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21776
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21777
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21778
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21779
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21780
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21781
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21782
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21783
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21784
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21785
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21786
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21790
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21791
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21792
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21793
echo $ECHO_N "(cached) $ECHO_C" >&6
21795
eval "$as_ac_Header=\$ac_header_preproc"
21797
ac_res=`eval echo '${'$as_ac_Header'}'`
21798
{ echo "$as_me:$LINENO: result: $ac_res" >&5
21799
echo "${ECHO_T}$ac_res" >&6; }
21802
if test `eval echo '${'$as_ac_Header'}'` = yes; then
21803
cat >>confdefs.h <<_ACEOF
21804
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21806
{ echo "$as_me:$LINENO: checking for Pa_Initialize in -lportaudio" >&5
21807
echo $ECHO_N "checking for Pa_Initialize in -lportaudio... $ECHO_C" >&6; }
21808
if test "${ac_cv_lib_portaudio_Pa_Initialize+set}" = set; then
21809
echo $ECHO_N "(cached) $ECHO_C" >&6
21811
ac_check_lib_save_LIBS=$LIBS
21812
LIBS="-lportaudio $LIBS"
21813
cat >conftest.$ac_ext <<_ACEOF
21816
cat confdefs.h >>conftest.$ac_ext
21817
cat >>conftest.$ac_ext <<_ACEOF
21818
/* end confdefs.h. */
21820
/* Override any GCC internal prototype to avoid an error.
21821
Use char because int might match the return type of a GCC
21822
builtin and then its argument prototype would still apply. */
21826
char Pa_Initialize ();
21830
return Pa_Initialize ();
21835
rm -f conftest.$ac_objext conftest$ac_exeext
21836
if { (ac_try="$ac_link"
21837
case "(($ac_try" in
21838
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21839
*) ac_try_echo=$ac_try;;
21841
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21842
(eval "$ac_link") 2>conftest.er1
21844
grep -v '^ *+' conftest.er1 >conftest.err
21846
cat conftest.err >&5
21847
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21848
(exit $ac_status); } &&
21849
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21850
{ (case "(($ac_try" in
21851
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21852
*) ac_try_echo=$ac_try;;
21854
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21855
(eval "$ac_try") 2>&5
21857
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21858
(exit $ac_status); }; } &&
21859
{ ac_try='test -s conftest$ac_exeext'
21860
{ (case "(($ac_try" in
21861
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21862
*) ac_try_echo=$ac_try;;
21864
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21865
(eval "$ac_try") 2>&5
21867
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21868
(exit $ac_status); }; }; then
21869
ac_cv_lib_portaudio_Pa_Initialize=yes
21871
echo "$as_me: failed program was:" >&5
21872
sed 's/^/| /' conftest.$ac_ext >&5
21874
ac_cv_lib_portaudio_Pa_Initialize=no
21877
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21878
conftest$ac_exeext conftest.$ac_ext
21879
LIBS=$ac_check_lib_save_LIBS
21881
{ echo "$as_me:$LINENO: result: $ac_cv_lib_portaudio_Pa_Initialize" >&5
21882
echo "${ECHO_T}$ac_cv_lib_portaudio_Pa_Initialize" >&6; }
21883
if test $ac_cv_lib_portaudio_Pa_Initialize = yes; then
21884
PORTAUDIO_LIBS="-lportaudio"
21887
cat >>confdefs.h <<\_ACEOF
21888
#define __PORTAUDIO_ENABLED__ 1
21891
portaudio_enabled=true
21905
if test x$portaudio_enabled = xtrue; then
21906
BUILD_PORTAUDIO_TRUE=
21907
BUILD_PORTAUDIO_FALSE='#'
21909
BUILD_PORTAUDIO_TRUE='#'
21910
BUILD_PORTAUDIO_FALSE=
21916
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
21917
if test -n "$ac_tool_prefix"; then
21918
# Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21919
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
21920
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
21921
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21922
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21923
echo $ECHO_N "(cached) $ECHO_C" >&6
21925
case $PKG_CONFIG in
21927
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21930
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21931
for as_dir in $PATH
21934
test -z "$as_dir" && as_dir=.
21935
for ac_exec_ext in '' $ac_executable_extensions; do
21936
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
21937
ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21938
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21948
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21949
if test -n "$PKG_CONFIG"; then
21950
{ echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21951
echo "${ECHO_T}$PKG_CONFIG" >&6; }
21953
{ echo "$as_me:$LINENO: result: no" >&5
21954
echo "${ECHO_T}no" >&6; }
21959
if test -z "$ac_cv_path_PKG_CONFIG"; then
21960
ac_pt_PKG_CONFIG=$PKG_CONFIG
21961
# Extract the first word of "pkg-config", so it can be a program name with args.
21962
set dummy pkg-config; ac_word=$2
21963
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
21964
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21965
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
21966
echo $ECHO_N "(cached) $ECHO_C" >&6
21968
case $ac_pt_PKG_CONFIG in
21970
ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
21973
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21974
for as_dir in $PATH
21977
test -z "$as_dir" && as_dir=.
21978
for ac_exec_ext in '' $ac_executable_extensions; do
21979
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
21980
ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21981
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21991
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
21992
if test -n "$ac_pt_PKG_CONFIG"; then
21993
{ echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
21994
echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
21996
{ echo "$as_me:$LINENO: result: no" >&5
21997
echo "${ECHO_T}no" >&6; }
22000
if test "x$ac_pt_PKG_CONFIG" = x; then
22003
case $cross_compiling:$ac_tool_warned in
22005
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
22006
whose name does not start with the host triplet. If you think this
22007
configuration is useful to you, please write to autoconf@gnu.org." >&5
22008
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
22009
whose name does not start with the host triplet. If you think this
22010
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
22011
ac_tool_warned=yes ;;
22013
PKG_CONFIG=$ac_pt_PKG_CONFIG
22016
PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
22020
if test -n "$PKG_CONFIG"; then
22021
_pkg_min_version=0.9.0
22022
{ echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
22023
echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
22024
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
22025
{ echo "$as_me:$LINENO: result: yes" >&5
22026
echo "${ECHO_T}yes" >&6; }
22028
{ echo "$as_me:$LINENO: result: no" >&5
22029
echo "${ECHO_T}no" >&6; }
22036
{ echo "$as_me:$LINENO: checking for JACK" >&5
22037
echo $ECHO_N "checking for JACK... $ECHO_C" >&6; }
22039
if test -n "$PKG_CONFIG"; then
22040
if test -n "$JACK_CFLAGS"; then
22041
pkg_cv_JACK_CFLAGS="$JACK_CFLAGS"
22043
if test -n "$PKG_CONFIG" && \
22044
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"jack >= 0.15.0\"") >&5
22045
($PKG_CONFIG --exists --print-errors "jack >= 0.15.0") 2>&5
22047
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22048
(exit $ac_status); }; then
22049
pkg_cv_JACK_CFLAGS=`$PKG_CONFIG --cflags "jack >= 0.15.0" 2>/dev/null`
22057
if test -n "$PKG_CONFIG"; then
22058
if test -n "$JACK_LIBS"; then
22059
pkg_cv_JACK_LIBS="$JACK_LIBS"
22061
if test -n "$PKG_CONFIG" && \
22062
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"jack >= 0.15.0\"") >&5
22063
($PKG_CONFIG --exists --print-errors "jack >= 0.15.0") 2>&5
22065
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22066
(exit $ac_status); }; then
22067
pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs "jack >= 0.15.0" 2>/dev/null`
22078
if test $pkg_failed = yes; then
22080
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22081
_pkg_short_errors_supported=yes
22083
_pkg_short_errors_supported=no
22085
if test $_pkg_short_errors_supported = yes; then
22086
JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "jack >= 0.15.0"`
22088
JACK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "jack >= 0.15.0"`
22090
# Put the nasty error message in config.log where it belongs
22091
echo "$JACK_PKG_ERRORS" >&5
22093
{ echo "$as_me:$LINENO: result: no" >&5
22094
echo "${ECHO_T}no" >&6; }
22095
echo "No jack support."
22096
elif test $pkg_failed = untried; then
22097
echo "No jack support."
22099
JACK_CFLAGS=$pkg_cv_JACK_CFLAGS
22100
JACK_LIBS=$pkg_cv_JACK_LIBS
22101
{ echo "$as_me:$LINENO: result: yes" >&5
22102
echo "${ECHO_T}yes" >&6; }
22106
{ echo "$as_me:$LINENO: checking for SAMPLERATE" >&5
22107
echo $ECHO_N "checking for SAMPLERATE... $ECHO_C" >&6; }
22109
if test -n "$PKG_CONFIG"; then
22110
if test -n "$SAMPLERATE_CFLAGS"; then
22111
pkg_cv_SAMPLERATE_CFLAGS="$SAMPLERATE_CFLAGS"
22113
if test -n "$PKG_CONFIG" && \
22114
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"samplerate >= 0.0.13\"") >&5
22115
($PKG_CONFIG --exists --print-errors "samplerate >= 0.0.13") 2>&5
22117
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22118
(exit $ac_status); }; then
22119
pkg_cv_SAMPLERATE_CFLAGS=`$PKG_CONFIG --cflags "samplerate >= 0.0.13" 2>/dev/null`
22127
if test -n "$PKG_CONFIG"; then
22128
if test -n "$SAMPLERATE_LIBS"; then
22129
pkg_cv_SAMPLERATE_LIBS="$SAMPLERATE_LIBS"
22131
if test -n "$PKG_CONFIG" && \
22132
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"samplerate >= 0.0.13\"") >&5
22133
($PKG_CONFIG --exists --print-errors "samplerate >= 0.0.13") 2>&5
22135
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22136
(exit $ac_status); }; then
22137
pkg_cv_SAMPLERATE_LIBS=`$PKG_CONFIG --libs "samplerate >= 0.0.13" 2>/dev/null`
22148
if test $pkg_failed = yes; then
22150
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22151
_pkg_short_errors_supported=yes
22153
_pkg_short_errors_supported=no
22155
if test $_pkg_short_errors_supported = yes; then
22156
SAMPLERATE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "samplerate >= 0.0.13"`
22158
SAMPLERATE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "samplerate >= 0.0.13"`
22160
# Put the nasty error message in config.log where it belongs
22161
echo "$SAMPLERATE_PKG_ERRORS" >&5
22163
{ echo "$as_me:$LINENO: result: no" >&5
22164
echo "${ECHO_T}no" >&6; }
22165
echo "libsamplerate not found, jack support disabled."
22166
elif test $pkg_failed = untried; then
22167
echo "libsamplerate not found, jack support disabled."
22169
SAMPLERATE_CFLAGS=$pkg_cv_SAMPLERATE_CFLAGS
22170
SAMPLERATE_LIBS=$pkg_cv_SAMPLERATE_LIBS
22171
{ echo "$as_me:$LINENO: result: yes" >&5
22172
echo "${ECHO_T}yes" >&6; }
22174
cat >>confdefs.h <<\_ACEOF
22175
#define __JACK_ENABLED__ 1
22186
if test x$jack_found = xno ; then
22196
if test "$found_sound" = "no"; then
22197
{ { echo "$as_me:$LINENO: error: Could not find a support sound driver API" >&5
22198
echo "$as_me: error: Could not find a support sound driver API" >&2;}
22199
{ (exit 1); exit 1; }; }
22206
{ echo "$as_me:$LINENO: checking for SPEEX" >&5
22207
echo $ECHO_N "checking for SPEEX... $ECHO_C" >&6; }
22209
if test -n "$PKG_CONFIG"; then
22210
if test -n "$SPEEX_CFLAGS"; then
22211
pkg_cv_SPEEX_CFLAGS="$SPEEX_CFLAGS"
22213
if test -n "$PKG_CONFIG" && \
22214
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"speex >= 1.1.12\"") >&5
22215
($PKG_CONFIG --exists --print-errors "speex >= 1.1.12") 2>&5
22217
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22218
(exit $ac_status); }; then
22219
pkg_cv_SPEEX_CFLAGS=`$PKG_CONFIG --cflags "speex >= 1.1.12" 2>/dev/null`
22227
if test -n "$PKG_CONFIG"; then
22228
if test -n "$SPEEX_LIBS"; then
22229
pkg_cv_SPEEX_LIBS="$SPEEX_LIBS"
22231
if test -n "$PKG_CONFIG" && \
22232
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"speex >= 1.1.12\"") >&5
22233
($PKG_CONFIG --exists --print-errors "speex >= 1.1.12") 2>&5
22235
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22236
(exit $ac_status); }; then
22237
pkg_cv_SPEEX_LIBS=`$PKG_CONFIG --libs "speex >= 1.1.12" 2>/dev/null`
22248
if test $pkg_failed = yes; then
22250
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22251
_pkg_short_errors_supported=yes
22253
_pkg_short_errors_supported=no
22255
if test $_pkg_short_errors_supported = yes; then
22256
SPEEX_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "speex >= 1.1.12"`
22258
SPEEX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "speex >= 1.1.12"`
22260
# Put the nasty error message in config.log where it belongs
22261
echo "$SPEEX_PKG_ERRORS" >&5
22263
{ echo "$as_me:$LINENO: result: no" >&5
22264
echo "${ECHO_T}no" >&6; }
22265
try_other_speex=yes
22267
elif test $pkg_failed = untried; then
22268
try_other_speex=yes
22271
SPEEX_CFLAGS=$pkg_cv_SPEEX_CFLAGS
22272
SPEEX_LIBS=$pkg_cv_SPEEX_LIBS
22273
{ echo "$as_me:$LINENO: result: yes" >&5
22274
echo "${ECHO_T}yes" >&6; }
22276
cat >>confdefs.h <<\_ACEOF
22277
#define HAVE_SPEEX_NOISE 1
22283
{ echo "$as_me:$LINENO: checking for SPEEX" >&5
22284
echo $ECHO_N "checking for SPEEX... $ECHO_C" >&6; }
22286
if test -n "$PKG_CONFIG"; then
22287
if test -n "$SPEEX_CFLAGS"; then
22288
pkg_cv_SPEEX_CFLAGS="$SPEEX_CFLAGS"
22290
if test -n "$PKG_CONFIG" && \
22291
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"speex >= 1.1.6\"") >&5
22292
($PKG_CONFIG --exists --print-errors "speex >= 1.1.6") 2>&5
22294
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22295
(exit $ac_status); }; then
22296
pkg_cv_SPEEX_CFLAGS=`$PKG_CONFIG --cflags "speex >= 1.1.6" 2>/dev/null`
22304
if test -n "$PKG_CONFIG"; then
22305
if test -n "$SPEEX_LIBS"; then
22306
pkg_cv_SPEEX_LIBS="$SPEEX_LIBS"
22308
if test -n "$PKG_CONFIG" && \
22309
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"speex >= 1.1.6\"") >&5
22310
($PKG_CONFIG --exists --print-errors "speex >= 1.1.6") 2>&5
22312
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22313
(exit $ac_status); }; then
22314
pkg_cv_SPEEX_LIBS=`$PKG_CONFIG --libs "speex >= 1.1.6" 2>/dev/null`
22325
if test $pkg_failed = yes; then
22327
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22328
_pkg_short_errors_supported=yes
22330
_pkg_short_errors_supported=no
22332
if test $_pkg_short_errors_supported = yes; then
22333
SPEEX_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "speex >= 1.1.6"`
22335
SPEEX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "speex >= 1.1.6"`
22337
# Put the nasty error message in config.log where it belongs
22338
echo "$SPEEX_PKG_ERRORS" >&5
22340
{ { echo "$as_me:$LINENO: error: Package requirements (speex >= 1.1.6) were not met:
22344
Consider adjusting the PKG_CONFIG_PATH environment variable if you
22345
installed software in a non-standard prefix.
22347
Alternatively, you may set the environment variables SPEEX_CFLAGS
22348
and SPEEX_LIBS to avoid the need to call pkg-config.
22349
See the pkg-config man page for more details.
22351
echo "$as_me: error: Package requirements (speex >= 1.1.6) were not met:
22355
Consider adjusting the PKG_CONFIG_PATH environment variable if you
22356
installed software in a non-standard prefix.
22358
Alternatively, you may set the environment variables SPEEX_CFLAGS
22359
and SPEEX_LIBS to avoid the need to call pkg-config.
22360
See the pkg-config man page for more details.
22362
{ (exit 1); exit 1; }; }
22363
elif test $pkg_failed = untried; then
22364
{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
22365
is in your PATH or set the PKG_CONFIG environment variable to the full
22366
path to pkg-config.
22368
Alternatively, you may set the environment variables SPEEX_CFLAGS
22369
and SPEEX_LIBS to avoid the need to call pkg-config.
22370
See the pkg-config man page for more details.
22372
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
22373
See \`config.log' for more details." >&5
22374
echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
22375
is in your PATH or set the PKG_CONFIG environment variable to the full
22376
path to pkg-config.
22378
Alternatively, you may set the environment variables SPEEX_CFLAGS
22379
and SPEEX_LIBS to avoid the need to call pkg-config.
22380
See the pkg-config man page for more details.
22382
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
22383
See \`config.log' for more details." >&2;}
22384
{ (exit 1); exit 1; }; }
22386
SPEEX_CFLAGS=$pkg_cv_SPEEX_CFLAGS
22387
SPEEX_LIBS=$pkg_cv_SPEEX_LIBS
22388
{ echo "$as_me:$LINENO: result: yes" >&5
22389
echo "${ECHO_T}yes" >&6; }
22396
if test x$build_speex = xyes ; then
22398
BUILD_SPEEX_FALSE='#'
22400
BUILD_SPEEX_TRUE='#'
22406
# Check whether --with-gsm was given.
22407
if test "${with_gsm+set}" = set; then
22408
withval=$with_gsm; gsmdir=${withval}
22413
if test -e ../gsmlib/gsm.h ; then
22414
echo "building from linphone source tree, using ../gsmlib/gsm.h"
22415
GSM_CFLAGS="-I\$(top_srcdir)/../gsmlib"
22416
GSM_LIBS="\$(top_builddir)/../gsmlib/libgsm.la"
22424
dep_headersdir=${gsmdir}/include
22425
dep_libsdir=${gsmdir}/lib
22428
dep_funclib=gsm_create
22431
if test "$dep_headersdir" != "/usr/include" ; then
22432
eval ${NAME}_CFLAGS=\"-I$dep_headersdir \"
22434
eval ${NAME}_LIBS=\"-L$dep_libsdir -l$dep_lib\"
22436
CPPFLAGS_save=$CPPFLAGS
22437
LDFLAGS_save=$LDFLAGS
22438
CPPFLAGS="-I$dep_headersdir "
22439
LDFLAGS="-L$dep_libsdir "
22442
for ac_header in $dep_header
22444
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22445
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22446
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
22447
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22448
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22449
echo $ECHO_N "(cached) $ECHO_C" >&6
22451
ac_res=`eval echo '${'$as_ac_Header'}'`
22452
{ echo "$as_me:$LINENO: result: $ac_res" >&5
22453
echo "${ECHO_T}$ac_res" >&6; }
22455
# Is the header compilable?
22456
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
22457
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22458
cat >conftest.$ac_ext <<_ACEOF
22461
cat confdefs.h >>conftest.$ac_ext
22462
cat >>conftest.$ac_ext <<_ACEOF
22463
/* end confdefs.h. */
22464
$ac_includes_default
22465
#include <$ac_header>
22467
rm -f conftest.$ac_objext
22468
if { (ac_try="$ac_compile"
22469
case "(($ac_try" in
22470
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22471
*) ac_try_echo=$ac_try;;
22473
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22474
(eval "$ac_compile") 2>conftest.er1
22476
grep -v '^ *+' conftest.er1 >conftest.err
22478
cat conftest.err >&5
22479
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22480
(exit $ac_status); } &&
22481
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22482
{ (case "(($ac_try" in
22483
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22484
*) ac_try_echo=$ac_try;;
22486
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22487
(eval "$ac_try") 2>&5
22489
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22490
(exit $ac_status); }; } &&
22491
{ ac_try='test -s conftest.$ac_objext'
22492
{ (case "(($ac_try" in
22493
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22494
*) ac_try_echo=$ac_try;;
22496
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22497
(eval "$ac_try") 2>&5
22499
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22500
(exit $ac_status); }; }; then
22501
ac_header_compiler=yes
22503
echo "$as_me: failed program was:" >&5
22504
sed 's/^/| /' conftest.$ac_ext >&5
22506
ac_header_compiler=no
22509
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22510
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22511
echo "${ECHO_T}$ac_header_compiler" >&6; }
22513
# Is the header present?
22514
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
22515
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22516
cat >conftest.$ac_ext <<_ACEOF
22519
cat confdefs.h >>conftest.$ac_ext
22520
cat >>conftest.$ac_ext <<_ACEOF
22521
/* end confdefs.h. */
22522
#include <$ac_header>
22524
if { (ac_try="$ac_cpp conftest.$ac_ext"
22525
case "(($ac_try" in
22526
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22527
*) ac_try_echo=$ac_try;;
22529
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22530
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22532
grep -v '^ *+' conftest.er1 >conftest.err
22534
cat conftest.err >&5
22535
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22536
(exit $ac_status); } >/dev/null; then
22537
if test -s conftest.err; then
22538
ac_cpp_err=$ac_c_preproc_warn_flag
22539
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22546
if test -z "$ac_cpp_err"; then
22547
ac_header_preproc=yes
22549
echo "$as_me: failed program was:" >&5
22550
sed 's/^/| /' conftest.$ac_ext >&5
22552
ac_header_preproc=no
22555
rm -f conftest.err conftest.$ac_ext
22556
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22557
echo "${ECHO_T}$ac_header_preproc" >&6; }
22559
# So? What about this header?
22560
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22562
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22563
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22564
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22565
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22566
ac_header_preproc=yes
22569
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22570
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22571
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22572
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22573
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22574
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22575
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22576
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22577
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22578
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22579
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22580
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22584
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
22585
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22586
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22587
echo $ECHO_N "(cached) $ECHO_C" >&6
22589
eval "$as_ac_Header=\$ac_header_preproc"
22591
ac_res=`eval echo '${'$as_ac_Header'}'`
22592
{ echo "$as_me:$LINENO: result: $ac_res" >&5
22593
echo "${ECHO_T}$ac_res" >&6; }
22596
if test `eval echo '${'$as_ac_Header'}'` = yes; then
22597
cat >>confdefs.h <<_ACEOF
22598
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22600
as_ac_Lib=`echo "ac_cv_lib_$dep_lib''_$dep_funclib" | $as_tr_sh`
22601
{ echo "$as_me:$LINENO: checking for $dep_funclib in -l$dep_lib" >&5
22602
echo $ECHO_N "checking for $dep_funclib in -l$dep_lib... $ECHO_C" >&6; }
22603
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
22604
echo $ECHO_N "(cached) $ECHO_C" >&6
22606
ac_check_lib_save_LIBS=$LIBS
22607
LIBS="-l$dep_lib $other_libs $LIBS"
22608
cat >conftest.$ac_ext <<_ACEOF
22611
cat confdefs.h >>conftest.$ac_ext
22612
cat >>conftest.$ac_ext <<_ACEOF
22613
/* end confdefs.h. */
22615
/* Override any GCC internal prototype to avoid an error.
22616
Use char because int might match the return type of a GCC
22617
builtin and then its argument prototype would still apply. */
22621
char $dep_funclib ();
22625
return $dep_funclib ();
22630
rm -f conftest.$ac_objext conftest$ac_exeext
22631
if { (ac_try="$ac_link"
22632
case "(($ac_try" in
22633
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22634
*) ac_try_echo=$ac_try;;
22636
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22637
(eval "$ac_link") 2>conftest.er1
22639
grep -v '^ *+' conftest.er1 >conftest.err
22641
cat conftest.err >&5
22642
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22643
(exit $ac_status); } &&
22644
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22645
{ (case "(($ac_try" in
22646
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22647
*) ac_try_echo=$ac_try;;
22649
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22650
(eval "$ac_try") 2>&5
22652
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22653
(exit $ac_status); }; } &&
22654
{ ac_try='test -s conftest$ac_exeext'
22655
{ (case "(($ac_try" in
22656
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22657
*) ac_try_echo=$ac_try;;
22659
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22660
(eval "$ac_try") 2>&5
22662
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22663
(exit $ac_status); }; }; then
22664
eval "$as_ac_Lib=yes"
22666
echo "$as_me: failed program was:" >&5
22667
sed 's/^/| /' conftest.$ac_ext >&5
22669
eval "$as_ac_Lib=no"
22672
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22673
conftest$ac_exeext conftest.$ac_ext
22674
LIBS=$ac_check_lib_save_LIBS
22676
ac_res=`eval echo '${'$as_ac_Lib'}'`
22677
{ echo "$as_me:$LINENO: result: $ac_res" >&5
22678
echo "${ECHO_T}$ac_res" >&6; }
22679
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
22693
if test "$found" = "yes" ; then
22694
eval ${NAME}_found=yes
22698
eval ${NAME}_found=no
22699
eval ${NAME}_CFLAGS=
22702
CPPFLAGS=$CPPFLAGS_save
22703
LDFLAGS=$LDFLAGS_save
22707
if test "$GSM_found" = "yes" ; then
22714
if test x$build_gsm = xyes ; then
22716
BUILD_GSM_FALSE='#'
22725
# Check whether --enable-video was given.
22726
if test "${enable_video+set}" = set; then
22727
enableval=$enable_video; case "${enableval}" in
22730
*) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-video" >&5
22731
echo "$as_me: error: bad value ${enableval} for --enable-video" >&2;}
22732
{ (exit 1); exit 1; }; } ;;
22740
# Check whether --with-ffmpeg was given.
22741
if test "${with_ffmpeg+set}" = set; then
22742
withval=$with_ffmpeg; ffmpegdir=${withval}
22749
# Check whether --with-sdl was given.
22750
if test "${with_sdl+set}" = set; then
22751
withval=$with_sdl; libsdldir=${withval}
22757
if test "$video" = "true"; then
22761
{ echo "$as_me:$LINENO: checking for FFMPEG" >&5
22762
echo $ECHO_N "checking for FFMPEG... $ECHO_C" >&6; }
22764
if test -n "$PKG_CONFIG"; then
22765
if test -n "$FFMPEG_CFLAGS"; then
22766
pkg_cv_FFMPEG_CFLAGS="$FFMPEG_CFLAGS"
22768
if test -n "$PKG_CONFIG" && \
22769
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libavcodec >= 50.0.0 \"") >&5
22770
($PKG_CONFIG --exists --print-errors "libavcodec >= 50.0.0 ") 2>&5
22772
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22773
(exit $ac_status); }; then
22774
pkg_cv_FFMPEG_CFLAGS=`$PKG_CONFIG --cflags "libavcodec >= 50.0.0 " 2>/dev/null`
22782
if test -n "$PKG_CONFIG"; then
22783
if test -n "$FFMPEG_LIBS"; then
22784
pkg_cv_FFMPEG_LIBS="$FFMPEG_LIBS"
22786
if test -n "$PKG_CONFIG" && \
22787
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libavcodec >= 50.0.0 \"") >&5
22788
($PKG_CONFIG --exists --print-errors "libavcodec >= 50.0.0 ") 2>&5
22790
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22791
(exit $ac_status); }; then
22792
pkg_cv_FFMPEG_LIBS=`$PKG_CONFIG --libs "libavcodec >= 50.0.0 " 2>/dev/null`
22803
if test $pkg_failed = yes; then
22805
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22806
_pkg_short_errors_supported=yes
22808
_pkg_short_errors_supported=no
22810
if test $_pkg_short_errors_supported = yes; then
22811
FFMPEG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libavcodec >= 50.0.0 "`
22813
FFMPEG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libavcodec >= 50.0.0 "`
22815
# Put the nasty error message in config.log where it belongs
22816
echo "$FFMPEG_PKG_ERRORS" >&5
22818
{ echo "$as_me:$LINENO: result: no" >&5
22819
echo "${ECHO_T}no" >&6; }
22821
elif test $pkg_failed = untried; then
22824
FFMPEG_CFLAGS=$pkg_cv_FFMPEG_CFLAGS
22825
FFMPEG_LIBS=$pkg_cv_FFMPEG_LIBS
22826
{ echo "$as_me:$LINENO: result: yes" >&5
22827
echo "${ECHO_T}yes" >&6; }
22832
{ echo "$as_me:$LINENO: checking for FFMPEG" >&5
22833
echo $ECHO_N "checking for FFMPEG... $ECHO_C" >&6; }
22835
if test -n "$PKG_CONFIG"; then
22836
if test -n "$FFMPEG_CFLAGS"; then
22837
pkg_cv_FFMPEG_CFLAGS="$FFMPEG_CFLAGS"
22839
if test -n "$PKG_CONFIG" && \
22840
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libavcodec >= 0d.50.0.0 \"") >&5
22841
($PKG_CONFIG --exists --print-errors "libavcodec >= 0d.50.0.0 ") 2>&5
22843
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22844
(exit $ac_status); }; then
22845
pkg_cv_FFMPEG_CFLAGS=`$PKG_CONFIG --cflags "libavcodec >= 0d.50.0.0 " 2>/dev/null`
22853
if test -n "$PKG_CONFIG"; then
22854
if test -n "$FFMPEG_LIBS"; then
22855
pkg_cv_FFMPEG_LIBS="$FFMPEG_LIBS"
22857
if test -n "$PKG_CONFIG" && \
22858
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libavcodec >= 0d.50.0.0 \"") >&5
22859
($PKG_CONFIG --exists --print-errors "libavcodec >= 0d.50.0.0 ") 2>&5
22861
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22862
(exit $ac_status); }; then
22863
pkg_cv_FFMPEG_LIBS=`$PKG_CONFIG --libs "libavcodec >= 0d.50.0.0 " 2>/dev/null`
22874
if test $pkg_failed = yes; then
22876
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22877
_pkg_short_errors_supported=yes
22879
_pkg_short_errors_supported=no
22881
if test $_pkg_short_errors_supported = yes; then
22882
FFMPEG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libavcodec >= 0d.50.0.0 "`
22884
FFMPEG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libavcodec >= 0d.50.0.0 "`
22886
# Put the nasty error message in config.log where it belongs
22887
echo "$FFMPEG_PKG_ERRORS" >&5
22889
{ echo "$as_me:$LINENO: result: no" >&5
22890
echo "${ECHO_T}no" >&6; }
22892
elif test $pkg_failed = untried; then
22895
FFMPEG_CFLAGS=$pkg_cv_FFMPEG_CFLAGS
22896
FFMPEG_LIBS=$pkg_cv_FFMPEG_LIBS
22897
{ echo "$as_me:$LINENO: result: yes" >&5
22898
echo "${ECHO_T}yes" >&6; }
22901
if test x$ffmpeg_found = xno ; then
22902
{ { echo "$as_me:$LINENO: error: Could not find ffmpeg headers and library. This is mandatory for video support" >&5
22903
echo "$as_me: error: Could not find ffmpeg headers and library. This is mandatory for video support" >&2;}
22904
{ (exit 1); exit 1; }; }
22908
{ echo "$as_me:$LINENO: checking for avcodec_register_all in -lavcodec" >&5
22909
echo $ECHO_N "checking for avcodec_register_all in -lavcodec... $ECHO_C" >&6; }
22910
if test "${ac_cv_lib_avcodec_avcodec_register_all+set}" = set; then
22911
echo $ECHO_N "(cached) $ECHO_C" >&6
22913
ac_check_lib_save_LIBS=$LIBS
22914
LIBS="-lavcodec $FFMPEG_LIBS $LIBS"
22915
cat >conftest.$ac_ext <<_ACEOF
22918
cat confdefs.h >>conftest.$ac_ext
22919
cat >>conftest.$ac_ext <<_ACEOF
22920
/* end confdefs.h. */
22922
/* Override any GCC internal prototype to avoid an error.
22923
Use char because int might match the return type of a GCC
22924
builtin and then its argument prototype would still apply. */
22928
char avcodec_register_all ();
22932
return avcodec_register_all ();
22937
rm -f conftest.$ac_objext conftest$ac_exeext
22938
if { (ac_try="$ac_link"
22939
case "(($ac_try" in
22940
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22941
*) ac_try_echo=$ac_try;;
22943
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22944
(eval "$ac_link") 2>conftest.er1
22946
grep -v '^ *+' conftest.er1 >conftest.err
22948
cat conftest.err >&5
22949
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22950
(exit $ac_status); } &&
22951
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22952
{ (case "(($ac_try" in
22953
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22954
*) ac_try_echo=$ac_try;;
22956
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22957
(eval "$ac_try") 2>&5
22959
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22960
(exit $ac_status); }; } &&
22961
{ ac_try='test -s conftest$ac_exeext'
22962
{ (case "(($ac_try" in
22963
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22964
*) ac_try_echo=$ac_try;;
22966
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22967
(eval "$ac_try") 2>&5
22969
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22970
(exit $ac_status); }; }; then
22971
ac_cv_lib_avcodec_avcodec_register_all=yes
22973
echo "$as_me: failed program was:" >&5
22974
sed 's/^/| /' conftest.$ac_ext >&5
22976
ac_cv_lib_avcodec_avcodec_register_all=no
22979
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22980
conftest$ac_exeext conftest.$ac_ext
22981
LIBS=$ac_check_lib_save_LIBS
22983
{ echo "$as_me:$LINENO: result: $ac_cv_lib_avcodec_avcodec_register_all" >&5
22984
echo "${ECHO_T}$ac_cv_lib_avcodec_avcodec_register_all" >&6; }
22985
if test $ac_cv_lib_avcodec_avcodec_register_all = yes; then
22986
cat >>confdefs.h <<_ACEOF
22987
#define HAVE_LIBAVCODEC 1
22990
LIBS="-lavcodec $LIBS"
22994
LIBS="$LIBS -lvorbisenc"
23002
dep_headersdir=${libsdldir}/include
23003
dep_libsdir=${libsdldir}/lib
23004
dep_header=SDL/SDL.h
23006
dep_funclib=SDL_Init
23009
if test "$dep_headersdir" != "/usr/include" ; then
23010
eval ${NAME}_CFLAGS=\"-I$dep_headersdir \"
23012
eval ${NAME}_LIBS=\"-L$dep_libsdir -l$dep_lib\"
23014
CPPFLAGS_save=$CPPFLAGS
23015
LDFLAGS_save=$LDFLAGS
23016
CPPFLAGS="-I$dep_headersdir "
23017
LDFLAGS="-L$dep_libsdir "
23020
for ac_header in $dep_header
23022
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23023
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23024
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
23025
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23026
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23027
echo $ECHO_N "(cached) $ECHO_C" >&6
23029
ac_res=`eval echo '${'$as_ac_Header'}'`
23030
{ echo "$as_me:$LINENO: result: $ac_res" >&5
23031
echo "${ECHO_T}$ac_res" >&6; }
23033
# Is the header compilable?
23034
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
23035
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23036
cat >conftest.$ac_ext <<_ACEOF
23039
cat confdefs.h >>conftest.$ac_ext
23040
cat >>conftest.$ac_ext <<_ACEOF
23041
/* end confdefs.h. */
23042
$ac_includes_default
23043
#include <$ac_header>
23045
rm -f conftest.$ac_objext
23046
if { (ac_try="$ac_compile"
23047
case "(($ac_try" in
23048
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23049
*) ac_try_echo=$ac_try;;
23051
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23052
(eval "$ac_compile") 2>conftest.er1
23054
grep -v '^ *+' conftest.er1 >conftest.err
23056
cat conftest.err >&5
23057
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23058
(exit $ac_status); } &&
23059
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23060
{ (case "(($ac_try" in
23061
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23062
*) ac_try_echo=$ac_try;;
23064
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23065
(eval "$ac_try") 2>&5
23067
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23068
(exit $ac_status); }; } &&
23069
{ ac_try='test -s conftest.$ac_objext'
23070
{ (case "(($ac_try" in
23071
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23072
*) ac_try_echo=$ac_try;;
23074
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23075
(eval "$ac_try") 2>&5
23077
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23078
(exit $ac_status); }; }; then
23079
ac_header_compiler=yes
23081
echo "$as_me: failed program was:" >&5
23082
sed 's/^/| /' conftest.$ac_ext >&5
23084
ac_header_compiler=no
23087
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23088
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23089
echo "${ECHO_T}$ac_header_compiler" >&6; }
23091
# Is the header present?
23092
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
23093
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23094
cat >conftest.$ac_ext <<_ACEOF
23097
cat confdefs.h >>conftest.$ac_ext
23098
cat >>conftest.$ac_ext <<_ACEOF
23099
/* end confdefs.h. */
23100
#include <$ac_header>
23102
if { (ac_try="$ac_cpp conftest.$ac_ext"
23103
case "(($ac_try" in
23104
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23105
*) ac_try_echo=$ac_try;;
23107
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23108
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23110
grep -v '^ *+' conftest.er1 >conftest.err
23112
cat conftest.err >&5
23113
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23114
(exit $ac_status); } >/dev/null; then
23115
if test -s conftest.err; then
23116
ac_cpp_err=$ac_c_preproc_warn_flag
23117
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23124
if test -z "$ac_cpp_err"; then
23125
ac_header_preproc=yes
23127
echo "$as_me: failed program was:" >&5
23128
sed 's/^/| /' conftest.$ac_ext >&5
23130
ac_header_preproc=no
23133
rm -f conftest.err conftest.$ac_ext
23134
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23135
echo "${ECHO_T}$ac_header_preproc" >&6; }
23137
# So? What about this header?
23138
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23140
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23141
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23142
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23143
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23144
ac_header_preproc=yes
23147
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23148
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23149
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23150
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23151
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23152
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23153
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23154
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23155
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23156
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23157
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23158
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23162
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
23163
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23164
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23165
echo $ECHO_N "(cached) $ECHO_C" >&6
23167
eval "$as_ac_Header=\$ac_header_preproc"
23169
ac_res=`eval echo '${'$as_ac_Header'}'`
23170
{ echo "$as_me:$LINENO: result: $ac_res" >&5
23171
echo "${ECHO_T}$ac_res" >&6; }
23174
if test `eval echo '${'$as_ac_Header'}'` = yes; then
23175
cat >>confdefs.h <<_ACEOF
23176
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23178
as_ac_Lib=`echo "ac_cv_lib_$dep_lib''_$dep_funclib" | $as_tr_sh`
23179
{ echo "$as_me:$LINENO: checking for $dep_funclib in -l$dep_lib" >&5
23180
echo $ECHO_N "checking for $dep_funclib in -l$dep_lib... $ECHO_C" >&6; }
23181
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23182
echo $ECHO_N "(cached) $ECHO_C" >&6
23184
ac_check_lib_save_LIBS=$LIBS
23185
LIBS="-l$dep_lib $other_libs $LIBS"
23186
cat >conftest.$ac_ext <<_ACEOF
23189
cat confdefs.h >>conftest.$ac_ext
23190
cat >>conftest.$ac_ext <<_ACEOF
23191
/* end confdefs.h. */
23193
/* Override any GCC internal prototype to avoid an error.
23194
Use char because int might match the return type of a GCC
23195
builtin and then its argument prototype would still apply. */
23199
char $dep_funclib ();
23203
return $dep_funclib ();
23208
rm -f conftest.$ac_objext conftest$ac_exeext
23209
if { (ac_try="$ac_link"
23210
case "(($ac_try" in
23211
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23212
*) ac_try_echo=$ac_try;;
23214
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23215
(eval "$ac_link") 2>conftest.er1
23217
grep -v '^ *+' conftest.er1 >conftest.err
23219
cat conftest.err >&5
23220
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23221
(exit $ac_status); } &&
23222
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23223
{ (case "(($ac_try" in
23224
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23225
*) ac_try_echo=$ac_try;;
23227
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23228
(eval "$ac_try") 2>&5
23230
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23231
(exit $ac_status); }; } &&
23232
{ ac_try='test -s conftest$ac_exeext'
23233
{ (case "(($ac_try" in
23234
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23235
*) ac_try_echo=$ac_try;;
23237
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23238
(eval "$ac_try") 2>&5
23240
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23241
(exit $ac_status); }; }; then
23242
eval "$as_ac_Lib=yes"
23244
echo "$as_me: failed program was:" >&5
23245
sed 's/^/| /' conftest.$ac_ext >&5
23247
eval "$as_ac_Lib=no"
23250
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23251
conftest$ac_exeext conftest.$ac_ext
23252
LIBS=$ac_check_lib_save_LIBS
23254
ac_res=`eval echo '${'$as_ac_Lib'}'`
23255
{ echo "$as_me:$LINENO: result: $ac_res" >&5
23256
echo "${ECHO_T}$ac_res" >&6; }
23257
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23271
if test "$found" = "yes" ; then
23272
eval ${NAME}_found=yes
23276
eval ${NAME}_found=no
23277
eval ${NAME}_CFLAGS=
23280
CPPFLAGS=$CPPFLAGS_save
23281
LDFLAGS=$LDFLAGS_save
23284
if test "$SDL_found" = "no" ; then
23285
{ { echo "$as_me:$LINENO: error: Could not find libsdl headers and library. This is mandatory for video support" >&5
23286
echo "$as_me: error: Could not find libsdl headers and library. This is mandatory for video support" >&2;}
23287
{ (exit 1); exit 1; }; }
23292
{ echo "$as_me:$LINENO: checking for THEORA" >&5
23293
echo $ECHO_N "checking for THEORA... $ECHO_C" >&6; }
23295
if test -n "$PKG_CONFIG"; then
23296
if test -n "$THEORA_CFLAGS"; then
23297
pkg_cv_THEORA_CFLAGS="$THEORA_CFLAGS"
23299
if test -n "$PKG_CONFIG" && \
23300
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"theora >= 1.0alpha7 \"") >&5
23301
($PKG_CONFIG --exists --print-errors "theora >= 1.0alpha7 ") 2>&5
23303
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23304
(exit $ac_status); }; then
23305
pkg_cv_THEORA_CFLAGS=`$PKG_CONFIG --cflags "theora >= 1.0alpha7 " 2>/dev/null`
23313
if test -n "$PKG_CONFIG"; then
23314
if test -n "$THEORA_LIBS"; then
23315
pkg_cv_THEORA_LIBS="$THEORA_LIBS"
23317
if test -n "$PKG_CONFIG" && \
23318
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"theora >= 1.0alpha7 \"") >&5
23319
($PKG_CONFIG --exists --print-errors "theora >= 1.0alpha7 ") 2>&5
23321
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23322
(exit $ac_status); }; then
23323
pkg_cv_THEORA_LIBS=`$PKG_CONFIG --libs "theora >= 1.0alpha7 " 2>/dev/null`
23334
if test $pkg_failed = yes; then
23336
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23337
_pkg_short_errors_supported=yes
23339
_pkg_short_errors_supported=no
23341
if test $_pkg_short_errors_supported = yes; then
23342
THEORA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "theora >= 1.0alpha7 "`
23344
THEORA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "theora >= 1.0alpha7 "`
23346
# Put the nasty error message in config.log where it belongs
23347
echo "$THEORA_PKG_ERRORS" >&5
23349
{ echo "$as_me:$LINENO: result: no" >&5
23350
echo "${ECHO_T}no" >&6; }
23352
elif test $pkg_failed = untried; then
23355
THEORA_CFLAGS=$pkg_cv_THEORA_CFLAGS
23356
THEORA_LIBS=$pkg_cv_THEORA_LIBS
23357
{ echo "$as_me:$LINENO: result: yes" >&5
23358
echo "${ECHO_T}yes" >&6; }
23362
VIDEO_CFLAGS=" $FFMPEG_CFLAGS $SDL_CFLAGS -DVIDEO_ENABLED "
23363
VIDEO_LIBS=" $FFMPEG_LIBS $SDL_LIBS"
23371
if test "$video" = "true"; then
23373
BUILD_VIDEO_FALSE='#'
23375
BUILD_VIDEO_TRUE='#'
23381
if test "$have_theora" = "yes"; then
23383
BUILD_THEORA_FALSE='#'
23385
BUILD_THEORA_TRUE='#'
23386
BUILD_THEORA_FALSE=
23390
if test -e $srcdir/../oRTP/include/ortp/ortp.h ; then
23391
echo "building from linphone source tree, using ../oRTP/include/ortp/ortp.h"
23392
ORTP_CFLAGS="-I\$(top_srcdir)/../oRTP/include"
23393
ORTP_LIBS="\$(top_builddir)/../oRTP/src/libortp.la"
23394
if test x$ac_cv_c_bigendian = xyes ; then
23395
ORTP_CFLAGS="$ORTP_CFLAGS -DORTP_BIGENDIAN"
23400
{ echo "$as_me:$LINENO: checking for ORTP" >&5
23401
echo $ECHO_N "checking for ORTP... $ECHO_C" >&6; }
23403
if test -n "$PKG_CONFIG"; then
23404
if test -n "$ORTP_CFLAGS"; then
23405
pkg_cv_ORTP_CFLAGS="$ORTP_CFLAGS"
23407
if test -n "$PKG_CONFIG" && \
23408
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"ortp >= 0.9.0\"") >&5
23409
($PKG_CONFIG --exists --print-errors "ortp >= 0.9.0") 2>&5
23411
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23412
(exit $ac_status); }; then
23413
pkg_cv_ORTP_CFLAGS=`$PKG_CONFIG --cflags "ortp >= 0.9.0" 2>/dev/null`
23421
if test -n "$PKG_CONFIG"; then
23422
if test -n "$ORTP_LIBS"; then
23423
pkg_cv_ORTP_LIBS="$ORTP_LIBS"
23425
if test -n "$PKG_CONFIG" && \
23426
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"ortp >= 0.9.0\"") >&5
23427
($PKG_CONFIG --exists --print-errors "ortp >= 0.9.0") 2>&5
23429
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23430
(exit $ac_status); }; then
23431
pkg_cv_ORTP_LIBS=`$PKG_CONFIG --libs "ortp >= 0.9.0" 2>/dev/null`
23442
if test $pkg_failed = yes; then
23444
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23445
_pkg_short_errors_supported=yes
23447
_pkg_short_errors_supported=no
23449
if test $_pkg_short_errors_supported = yes; then
23450
ORTP_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "ortp >= 0.9.0"`
23452
ORTP_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "ortp >= 0.9.0"`
23454
# Put the nasty error message in config.log where it belongs
23455
echo "$ORTP_PKG_ERRORS" >&5
23457
{ echo "$as_me:$LINENO: result: no" >&5
23458
echo "${ECHO_T}no" >&6; }
23459
{ { echo "$as_me:$LINENO: error: Couldn't find ortp library" >&5
23460
echo "$as_me: error: Couldn't find ortp library" >&2;}
23461
{ (exit 1); exit 1; }; }
23462
elif test $pkg_failed = untried; then
23463
{ { echo "$as_me:$LINENO: error: Couldn't find ortp library" >&5
23464
echo "$as_me: error: Couldn't find ortp library" >&2;}
23465
{ (exit 1); exit 1; }; }
23467
ORTP_CFLAGS=$pkg_cv_ORTP_CFLAGS
23468
ORTP_LIBS=$pkg_cv_ORTP_LIBS
23469
{ echo "$as_me:$LINENO: result: yes" >&5
23470
echo "${ECHO_T}yes" >&6; }
23479
for ac_header in dlfcn.h
23481
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23482
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23483
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
23484
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23485
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23486
echo $ECHO_N "(cached) $ECHO_C" >&6
23488
ac_res=`eval echo '${'$as_ac_Header'}'`
23489
{ echo "$as_me:$LINENO: result: $ac_res" >&5
23490
echo "${ECHO_T}$ac_res" >&6; }
23492
# Is the header compilable?
23493
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
23494
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23495
cat >conftest.$ac_ext <<_ACEOF
23498
cat confdefs.h >>conftest.$ac_ext
23499
cat >>conftest.$ac_ext <<_ACEOF
23500
/* end confdefs.h. */
23501
$ac_includes_default
23502
#include <$ac_header>
23504
rm -f conftest.$ac_objext
23505
if { (ac_try="$ac_compile"
23506
case "(($ac_try" in
23507
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23508
*) ac_try_echo=$ac_try;;
23510
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23511
(eval "$ac_compile") 2>conftest.er1
23513
grep -v '^ *+' conftest.er1 >conftest.err
23515
cat conftest.err >&5
23516
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23517
(exit $ac_status); } &&
23518
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23519
{ (case "(($ac_try" in
23520
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23521
*) ac_try_echo=$ac_try;;
23523
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23524
(eval "$ac_try") 2>&5
23526
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23527
(exit $ac_status); }; } &&
23528
{ ac_try='test -s conftest.$ac_objext'
23529
{ (case "(($ac_try" in
23530
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23531
*) ac_try_echo=$ac_try;;
23533
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23534
(eval "$ac_try") 2>&5
23536
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23537
(exit $ac_status); }; }; then
23538
ac_header_compiler=yes
23540
echo "$as_me: failed program was:" >&5
23541
sed 's/^/| /' conftest.$ac_ext >&5
23543
ac_header_compiler=no
23546
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23547
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23548
echo "${ECHO_T}$ac_header_compiler" >&6; }
23550
# Is the header present?
23551
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
23552
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23553
cat >conftest.$ac_ext <<_ACEOF
23556
cat confdefs.h >>conftest.$ac_ext
23557
cat >>conftest.$ac_ext <<_ACEOF
23558
/* end confdefs.h. */
23559
#include <$ac_header>
23561
if { (ac_try="$ac_cpp conftest.$ac_ext"
23562
case "(($ac_try" in
23563
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23564
*) ac_try_echo=$ac_try;;
23566
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23567
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23569
grep -v '^ *+' conftest.er1 >conftest.err
23571
cat conftest.err >&5
23572
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23573
(exit $ac_status); } >/dev/null; then
23574
if test -s conftest.err; then
23575
ac_cpp_err=$ac_c_preproc_warn_flag
23576
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23583
if test -z "$ac_cpp_err"; then
23584
ac_header_preproc=yes
23586
echo "$as_me: failed program was:" >&5
23587
sed 's/^/| /' conftest.$ac_ext >&5
23589
ac_header_preproc=no
23592
rm -f conftest.err conftest.$ac_ext
23593
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23594
echo "${ECHO_T}$ac_header_preproc" >&6; }
23596
# So? What about this header?
23597
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23599
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23600
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23601
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23602
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23603
ac_header_preproc=yes
23606
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23607
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23608
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23609
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23610
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23611
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23612
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23613
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23614
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23615
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23616
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23617
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23621
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
23622
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23623
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23624
echo $ECHO_N "(cached) $ECHO_C" >&6
23626
eval "$as_ac_Header=\$ac_header_preproc"
23628
ac_res=`eval echo '${'$as_ac_Header'}'`
23629
{ echo "$as_me:$LINENO: result: $ac_res" >&5
23630
echo "${ECHO_T}$ac_res" >&6; }
23633
if test `eval echo '${'$as_ac_Header'}'` = yes; then
23634
cat >>confdefs.h <<_ACEOF
23635
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23643
{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23644
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
23645
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23646
echo $ECHO_N "(cached) $ECHO_C" >&6
23648
ac_check_lib_save_LIBS=$LIBS
23650
cat >conftest.$ac_ext <<_ACEOF
23653
cat confdefs.h >>conftest.$ac_ext
23654
cat >>conftest.$ac_ext <<_ACEOF
23655
/* end confdefs.h. */
23657
/* Override any GCC internal prototype to avoid an error.
23658
Use char because int might match the return type of a GCC
23659
builtin and then its argument prototype would still apply. */
23672
rm -f conftest.$ac_objext conftest$ac_exeext
23673
if { (ac_try="$ac_link"
23674
case "(($ac_try" in
23675
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23676
*) ac_try_echo=$ac_try;;
23678
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23679
(eval "$ac_link") 2>conftest.er1
23681
grep -v '^ *+' conftest.er1 >conftest.err
23683
cat conftest.err >&5
23684
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23685
(exit $ac_status); } &&
23686
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23687
{ (case "(($ac_try" in
23688
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23689
*) ac_try_echo=$ac_try;;
23691
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23692
(eval "$ac_try") 2>&5
23694
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23695
(exit $ac_status); }; } &&
23696
{ ac_try='test -s conftest$ac_exeext'
23697
{ (case "(($ac_try" in
23698
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23699
*) ac_try_echo=$ac_try;;
23701
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23702
(eval "$ac_try") 2>&5
23704
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23705
(exit $ac_status); }; }; then
23706
ac_cv_lib_dl_dlopen=yes
23708
echo "$as_me: failed program was:" >&5
23709
sed 's/^/| /' conftest.$ac_ext >&5
23711
ac_cv_lib_dl_dlopen=no
23714
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23715
conftest$ac_exeext conftest.$ac_ext
23716
LIBS=$ac_check_lib_save_LIBS
23718
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23719
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
23720
if test $ac_cv_lib_dl_dlopen = yes; then
23721
LIBS="$LIBS -ldl"; have_dlopen=true
23724
{ echo "$as_me:$LINENO: checking for dlopen" >&5
23725
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
23726
if test "${ac_cv_func_dlopen+set}" = set; then
23727
echo $ECHO_N "(cached) $ECHO_C" >&6
23729
cat >conftest.$ac_ext <<_ACEOF
23732
cat confdefs.h >>conftest.$ac_ext
23733
cat >>conftest.$ac_ext <<_ACEOF
23734
/* end confdefs.h. */
23735
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23736
For example, HP-UX 11i <limits.h> declares gettimeofday. */
23737
#define dlopen innocuous_dlopen
23739
/* System header to define __stub macros and hopefully few prototypes,
23740
which can conflict with char dlopen (); below.
23741
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23742
<limits.h> exists even on freestanding compilers. */
23745
# include <limits.h>
23747
# include <assert.h>
23752
/* Override any GCC internal prototype to avoid an error.
23753
Use char because int might match the return type of a GCC
23754
builtin and then its argument prototype would still apply. */
23759
/* The GNU C library defines this for functions which it implements
23760
to always fail with ENOSYS. Some functions are actually named
23761
something starting with __ and the normal name is an alias. */
23762
#if defined __stub_dlopen || defined __stub___dlopen
23774
rm -f conftest.$ac_objext conftest$ac_exeext
23775
if { (ac_try="$ac_link"
23776
case "(($ac_try" in
23777
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23778
*) ac_try_echo=$ac_try;;
23780
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23781
(eval "$ac_link") 2>conftest.er1
23783
grep -v '^ *+' conftest.er1 >conftest.err
23785
cat conftest.err >&5
23786
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23787
(exit $ac_status); } &&
23788
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23789
{ (case "(($ac_try" in
23790
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23791
*) ac_try_echo=$ac_try;;
23793
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23794
(eval "$ac_try") 2>&5
23796
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23797
(exit $ac_status); }; } &&
23798
{ ac_try='test -s conftest$ac_exeext'
23799
{ (case "(($ac_try" in
23800
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23801
*) ac_try_echo=$ac_try;;
23803
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23804
(eval "$ac_try") 2>&5
23806
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23807
(exit $ac_status); }; }; then
23808
ac_cv_func_dlopen=yes
23810
echo "$as_me: failed program was:" >&5
23811
sed 's/^/| /' conftest.$ac_ext >&5
23813
ac_cv_func_dlopen=no
23816
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23817
conftest$ac_exeext conftest.$ac_ext
23819
{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23820
echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
23821
if test $ac_cv_func_dlopen = yes; then
23825
if test "$have_dlopen" = "true" ; then
23827
cat >>confdefs.h <<\_ACEOF
23828
#define HAVE_DLOPEN 1
23833
PACKAGE_PLUGINS_DIR=`eval echo $prefix/lib/mediastreamer/plugins`
23835
cat >>confdefs.h <<_ACEOF
23836
#define PACKAGE_PLUGINS_DIR "$PACKAGE_PLUGINS_DIR"
23843
# Extract the first word of "epm", so it can be a program name with args.
23844
set dummy epm; ac_word=$2
23845
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
23846
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23847
if test "${ac_cv_path_EPM+set}" = set; then
23848
echo $ECHO_N "(cached) $ECHO_C" >&6
23852
ac_cv_path_EPM="$EPM" # Let the user override the test with a path.
23855
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23856
for as_dir in $PATH
23859
test -z "$as_dir" && as_dir=.
23860
for ac_exec_ext in '' $ac_executable_extensions; do
23861
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
23862
ac_cv_path_EPM="$as_dir/$ac_word$ac_exec_ext"
23863
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23870
test -z "$ac_cv_path_EPM" && ac_cv_path_EPM="false"
23874
EPM=$ac_cv_path_EPM
23875
if test -n "$EPM"; then
23876
{ echo "$as_me:$LINENO: result: $EPM" >&5
23877
echo "${ECHO_T}$EPM" >&6; }
23879
{ echo "$as_me:$LINENO: result: no" >&5
23880
echo "${ECHO_T}no" >&6; }
23884
# Extract the first word of "mkepmlist", so it can be a program name with args.
23885
set dummy mkepmlist; ac_word=$2
23886
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
23887
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23888
if test "${ac_cv_path_MKEPMLIST+set}" = set; then
23889
echo $ECHO_N "(cached) $ECHO_C" >&6
23893
ac_cv_path_MKEPMLIST="$MKEPMLIST" # Let the user override the test with a path.
23896
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23897
for as_dir in $PATH
23900
test -z "$as_dir" && as_dir=.
23901
for ac_exec_ext in '' $ac_executable_extensions; do
23902
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
23903
ac_cv_path_MKEPMLIST="$as_dir/$ac_word$ac_exec_ext"
23904
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23911
test -z "$ac_cv_path_MKEPMLIST" && ac_cv_path_MKEPMLIST="false"
23915
MKEPMLIST=$ac_cv_path_MKEPMLIST
23916
if test -n "$MKEPMLIST"; then
23917
{ echo "$as_me:$LINENO: result: $MKEPMLIST" >&5
23918
echo "${ECHO_T}$MKEPMLIST" >&6; }
23920
{ echo "$as_me:$LINENO: result: no" >&5
23921
echo "${ECHO_T}no" >&6; }
23925
# Extract the first word of "epminstall", so it can be a program name with args.
23926
set dummy epminstall; ac_word=$2
23927
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
23928
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23929
if test "${ac_cv_path_EPMINSTALL+set}" = set; then
23930
echo $ECHO_N "(cached) $ECHO_C" >&6
23932
case $EPMINSTALL in
23934
ac_cv_path_EPMINSTALL="$EPMINSTALL" # Let the user override the test with a path.
23937
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23938
for as_dir in $PATH
23941
test -z "$as_dir" && as_dir=.
23942
for ac_exec_ext in '' $ac_executable_extensions; do
23943
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
23944
ac_cv_path_EPMINSTALL="$as_dir/$ac_word$ac_exec_ext"
23945
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23952
test -z "$ac_cv_path_EPMINSTALL" && ac_cv_path_EPMINSTALL="false"
23956
EPMINSTALL=$ac_cv_path_EPMINSTALL
23957
if test -n "$EPMINSTALL"; then
23958
{ echo "$as_me:$LINENO: result: $EPMINSTALL" >&5
23959
echo "${ECHO_T}$EPMINSTALL" >&6; }
23961
{ echo "$as_me:$LINENO: result: no" >&5
23962
echo "${ECHO_T}no" >&6; }
23968
if test $EPM != false && test $MKEPMLIST != false && test $EPMINSTALL != false; then
23978
# Preferred packaging system, as per EPM terminology
23981
if test -f /etc/debian_version ; then
23988
EPM_PKG_EXT=depot.gz;;
23990
EPM_PKG_EXT=setld;;
23994
# System software User & Group names
24000
*-*-hpux*|*-dec-osf*)
24009
case $target_cpu in
24011
*) ARCH=$target_cpu;;
24015
# Various other packaging variables, that can be over-ridden ad `make
24017
SUMMARY="A mediastreaming library."
24029
ac_config_files="$ac_config_files Makefile include/Makefile include/mediastreamer2/Makefile src/Makefile tests/Makefile build/Makefile build/win32native/Makefile build/wince/Makefile plugins/Makefile plugins/plugins.mk mediastreamer.pc mediastreamer2.spec"
24031
cat >confcache <<\_ACEOF
24032
# This file is a shell script that caches the results of configure
24033
# tests run on this system so they can be shared between configure
24034
# scripts and configure runs, see configure's option --config-cache.
24035
# It is not useful on other systems. If it contains results you don't
24036
# want to keep, you may remove or edit it.
24038
# config.status only pays attention to the cache file if you give it
24039
# the --recheck option to rerun configure.
24041
# `ac_cv_env_foo' variables (set or unset) will be overridden when
24042
# loading this file, other *unset* `ac_cv_foo' will be assigned the
24043
# following values.
24047
# The following way of writing the cache mishandles newlines in values,
24048
# but we know of no workaround that is simple, portable, and efficient.
24049
# So, we kill variables containing newlines.
24050
# Ultrix sh set writes to stderr and can't be redirected directly,
24051
# and sets the high bit in the cache file unless we assign to the vars.
24053
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24054
eval ac_val=\$$ac_var
24058
*_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24059
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24062
_ | IFS | as_nl) ;; #(
24063
*) $as_unset $ac_var ;;
24069
case $as_nl`(ac_space=' '; set) 2>&1` in #(
24070
*${as_nl}ac_space=\ *)
24071
# `set' does not quote correctly, so add quotes (double-quote
24072
# substitution turns \\\\ into \\, and sed turns \\ into \).
24075
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24078
# `set' quotes correctly as required by POSIX, so do not add quotes.
24079
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24088
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24090
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24092
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24093
if test -w "$cache_file"; then
24094
test "x$cache_file" != "x/dev/null" &&
24095
{ echo "$as_me:$LINENO: updating cache $cache_file" >&5
24096
echo "$as_me: updating cache $cache_file" >&6;}
24097
cat confcache >$cache_file
24099
{ echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24100
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24105
test "x$prefix" = xNONE && prefix=$ac_default_prefix
24106
# Let make expand exec_prefix.
24107
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24109
DEFS=-DHAVE_CONFIG_H
24113
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24114
# 1. Remove the extension, and $U if already installed.
24115
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24116
ac_i=`echo "$ac_i" | sed "$ac_script"`
24117
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24118
# will be set to the directory where LIBOBJS objects are built.
24119
ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24120
ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24122
LIBOBJS=$ac_libobjs
24124
LTLIBOBJS=$ac_ltlibobjs
24127
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24128
{ { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
24129
Usually this means the macro was only invoked conditionally." >&5
24130
echo "$as_me: error: conditional \"AMDEP\" was never defined.
24131
Usually this means the macro was only invoked conditionally." >&2;}
24132
{ (exit 1); exit 1; }; }
24134
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24135
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
24136
Usually this means the macro was only invoked conditionally." >&5
24137
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
24138
Usually this means the macro was only invoked conditionally." >&2;}
24139
{ (exit 1); exit 1; }; }
24141
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
24142
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
24143
Usually this means the macro was only invoked conditionally." >&5
24144
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
24145
Usually this means the macro was only invoked conditionally." >&2;}
24146
{ (exit 1); exit 1; }; }
24148
if test -z "${BUILD_OSS_TRUE}" && test -z "${BUILD_OSS_FALSE}"; then
24149
{ { echo "$as_me:$LINENO: error: conditional \"BUILD_OSS\" was never defined.
24150
Usually this means the macro was only invoked conditionally." >&5
24151
echo "$as_me: error: conditional \"BUILD_OSS\" was never defined.
24152
Usually this means the macro was only invoked conditionally." >&2;}
24153
{ (exit 1); exit 1; }; }
24155
if test -z "${BUILD_ALSA_TRUE}" && test -z "${BUILD_ALSA_FALSE}"; then
24156
{ { echo "$as_me:$LINENO: error: conditional \"BUILD_ALSA\" was never defined.
24157
Usually this means the macro was only invoked conditionally." >&5
24158
echo "$as_me: error: conditional \"BUILD_ALSA\" was never defined.
24159
Usually this means the macro was only invoked conditionally." >&2;}
24160
{ (exit 1); exit 1; }; }
24162
if test -z "${BUILD_ARTS_TRUE}" && test -z "${BUILD_ARTS_FALSE}"; then
24163
{ { echo "$as_me:$LINENO: error: conditional \"BUILD_ARTS\" was never defined.
24164
Usually this means the macro was only invoked conditionally." >&5
24165
echo "$as_me: error: conditional \"BUILD_ARTS\" was never defined.
24166
Usually this means the macro was only invoked conditionally." >&2;}
24167
{ (exit 1); exit 1; }; }
24169
if test -z "${BUILD_PORTAUDIO_TRUE}" && test -z "${BUILD_PORTAUDIO_FALSE}"; then
24170
{ { echo "$as_me:$LINENO: error: conditional \"BUILD_PORTAUDIO\" was never defined.
24171
Usually this means the macro was only invoked conditionally." >&5
24172
echo "$as_me: error: conditional \"BUILD_PORTAUDIO\" was never defined.
24173
Usually this means the macro was only invoked conditionally." >&2;}
24174
{ (exit 1); exit 1; }; }
24176
if test -z "${BUILD_SPEEX_TRUE}" && test -z "${BUILD_SPEEX_FALSE}"; then
24177
{ { echo "$as_me:$LINENO: error: conditional \"BUILD_SPEEX\" was never defined.
24178
Usually this means the macro was only invoked conditionally." >&5
24179
echo "$as_me: error: conditional \"BUILD_SPEEX\" was never defined.
24180
Usually this means the macro was only invoked conditionally." >&2;}
24181
{ (exit 1); exit 1; }; }
24183
if test -z "${BUILD_GSM_TRUE}" && test -z "${BUILD_GSM_FALSE}"; then
24184
{ { echo "$as_me:$LINENO: error: conditional \"BUILD_GSM\" was never defined.
24185
Usually this means the macro was only invoked conditionally." >&5
24186
echo "$as_me: error: conditional \"BUILD_GSM\" was never defined.
24187
Usually this means the macro was only invoked conditionally." >&2;}
24188
{ (exit 1); exit 1; }; }
24190
if test -z "${BUILD_VIDEO_TRUE}" && test -z "${BUILD_VIDEO_FALSE}"; then
24191
{ { echo "$as_me:$LINENO: error: conditional \"BUILD_VIDEO\" was never defined.
24192
Usually this means the macro was only invoked conditionally." >&5
24193
echo "$as_me: error: conditional \"BUILD_VIDEO\" was never defined.
24194
Usually this means the macro was only invoked conditionally." >&2;}
24195
{ (exit 1); exit 1; }; }
24197
if test -z "${BUILD_THEORA_TRUE}" && test -z "${BUILD_THEORA_FALSE}"; then
24198
{ { echo "$as_me:$LINENO: error: conditional \"BUILD_THEORA\" was never defined.
24199
Usually this means the macro was only invoked conditionally." >&5
24200
echo "$as_me: error: conditional \"BUILD_THEORA\" was never defined.
24201
Usually this means the macro was only invoked conditionally." >&2;}
24202
{ (exit 1); exit 1; }; }
24204
if test -z "${WITH_EPM_TRUE}" && test -z "${WITH_EPM_FALSE}"; then
24205
{ { echo "$as_me:$LINENO: error: conditional \"WITH_EPM\" was never defined.
24206
Usually this means the macro was only invoked conditionally." >&5
24207
echo "$as_me: error: conditional \"WITH_EPM\" was never defined.
24208
Usually this means the macro was only invoked conditionally." >&2;}
24209
{ (exit 1); exit 1; }; }
24212
: ${CONFIG_STATUS=./config.status}
24213
ac_clean_files_save=$ac_clean_files
24214
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24215
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24216
echo "$as_me: creating $CONFIG_STATUS" >&6;}
24217
cat >$CONFIG_STATUS <<_ACEOF
24219
# Generated by $as_me.
24220
# Run this file to recreate the current configuration.
24221
# Compiler output produced by configure, useful for debugging
24222
# configure, is in config.log if it exists.
24225
ac_cs_recheck=false
24227
SHELL=\${CONFIG_SHELL-$SHELL}
24230
cat >>$CONFIG_STATUS <<\_ACEOF
24231
## --------------------- ##
24232
## M4sh Initialization. ##
24233
## --------------------- ##
24235
# Be Bourne compatible
24236
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24239
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24240
# is contrary to our usage. Disable this feature.
24241
alias -g '${1+"$@"}'='"$@"'
24242
setopt NO_GLOB_SUBST
24244
case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
24246
BIN_SH=xpg4; export BIN_SH # for Tru64
24247
DUALCASE=1; export DUALCASE # for MKS sh
24251
# Avoid depending upon Character Ranges.
24252
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24253
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24254
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24255
as_cr_digits='0123456789'
24256
as_cr_alnum=$as_cr_Letters$as_cr_digits
24258
# The user is always right.
24259
if test "${PATH_SEPARATOR+set}" != set; then
24260
echo "#! /bin/sh" >conf$$.sh
24261
echo "exit 0" >>conf$$.sh
24263
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24271
# Support unset when possible.
24272
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24280
# We need space, tab and new line, in precisely that order. Quoting is
24281
# there to prevent editors from complaining about space-tab.
24282
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
24283
# splitting by setting IFS to empty value.)
24288
# Find who we are. Look in the path if we contain no directory separator.
24290
*[\\/]* ) as_myself=$0 ;;
24291
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24292
for as_dir in $PATH
24295
test -z "$as_dir" && as_dir=.
24296
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24302
# We did not find ourselves, most probably we were run as `sh COMMAND'
24303
# in which case we are not to be found in the path.
24304
if test "x$as_myself" = x; then
24307
if test ! -f "$as_myself"; then
24308
echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24309
{ (exit 1); exit 1; }
24312
# Work around bugs in pre-3.0 UWIN ksh.
24313
for as_var in ENV MAIL MAILPATH
24314
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24322
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24323
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24324
LC_TELEPHONE LC_TIME
24326
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24327
eval $as_var=C; export $as_var
24329
($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24333
# Required to use basename.
24334
if expr a : '\(a\)' >/dev/null 2>&1 &&
24335
test "X`expr 00001 : '.*\(...\)'`" = X001; then
24341
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24342
as_basename=basename
24348
# Name of the executable.
24349
as_me=`$as_basename -- "$0" ||
24350
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24351
X"$0" : 'X\(//\)$' \| \
24352
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24354
sed '/^.*\/\([^/][^/]*\)\/*$/{
24373
as_lineno_1=$LINENO
24374
as_lineno_2=$LINENO
24375
test "x$as_lineno_1" != "x$as_lineno_2" &&
24376
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24378
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24379
# uniformly replaced by the line number. The first 'sed' inserts a
24380
# line-number line after each line using $LINENO; the second 'sed'
24381
# does the real work. The second script uses 'N' to pair each
24382
# line-number line with the line containing $LINENO, and appends
24383
# trailing '-' during substitution so that $LINENO is not a special
24384
# case at line end.
24385
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24386
# scripts with optimization help from Paolo Bonzini. Blame Lee
24387
# E. McMahon (1931-1989) for sed's syntax. :-)
24399
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24402
' >$as_me.lineno &&
24403
chmod +x "$as_me.lineno" ||
24404
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24405
{ (exit 1); exit 1; }; }
24407
# Don't try to exec as it changes $[0], causing all sort of problems
24408
# (the dirname of $[0] is not the place where we might find the
24409
# original and so on. Autoconf is especially sensitive to this).
24410
. "./$as_me.lineno"
24411
# Exit status is that of the last command.
24416
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24422
ECHO_C= ECHO_N= ECHO_T=
24423
case `echo -n x` in
24425
case `echo 'x\c'` in
24426
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
24433
if expr a : '\(a\)' >/dev/null 2>&1 &&
24434
test "X`expr 00001 : '.*\(...\)'`" = X001; then
24440
rm -f conf$$ conf$$.exe conf$$.file
24441
if test -d conf$$.dir; then
24442
rm -f conf$$.dir/conf$$.file
24448
if ln -s conf$$.file conf$$ 2>/dev/null; then
24450
# ... but there are two gotchas:
24451
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24452
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24453
# In both cases, we have to default to `cp -p'.
24454
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24456
elif ln conf$$.file conf$$ 2>/dev/null; then
24461
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24462
rmdir conf$$.dir 2>/dev/null
24464
if mkdir -p . 2>/dev/null; then
24467
test -d ./-p && rmdir ./-p
24471
# Find out whether ``test -x'' works. Don't use a zero-byte file, as
24472
# systems may use methods other than mode bits to determine executability.
24473
cat >conf$$.file <<_ASEOF
24477
chmod +x conf$$.file
24478
if test -x conf$$.file >/dev/null 2>&1; then
24479
as_executable_p="test -x"
24485
# Sed expression to map a string onto a valid CPP name.
24486
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24488
# Sed expression to map a string onto a valid variable name.
24489
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24494
# Save the log message, to keep $[0] and so on meaningful, and to
24495
# report actual input values of CONFIG_FILES etc. instead of their
24496
# values after options handling.
24498
This file was extended by mediastreamer $as_me 2.0.0, which was
24499
generated by GNU Autoconf 2.60a. Invocation command line was
24501
CONFIG_FILES = $CONFIG_FILES
24502
CONFIG_HEADERS = $CONFIG_HEADERS
24503
CONFIG_LINKS = $CONFIG_LINKS
24504
CONFIG_COMMANDS = $CONFIG_COMMANDS
24507
on `(hostname || uname -n) 2>/dev/null | sed 1q`
24512
cat >>$CONFIG_STATUS <<_ACEOF
24513
# Files that config.status was made for.
24514
config_files="$ac_config_files"
24515
config_headers="$ac_config_headers"
24516
config_commands="$ac_config_commands"
24520
cat >>$CONFIG_STATUS <<\_ACEOF
24522
\`$as_me' instantiates files from templates according to the
24523
current configuration.
24525
Usage: $0 [OPTIONS] [FILE]...
24527
-h, --help print this help, then exit
24528
-V, --version print version number and configuration settings, then exit
24529
-q, --quiet do not print progress messages
24530
-d, --debug don't remove temporary files
24531
--recheck update $as_me by reconfiguring in the same conditions
24532
--file=FILE[:TEMPLATE]
24533
instantiate the configuration file FILE
24534
--header=FILE[:TEMPLATE]
24535
instantiate the configuration header FILE
24537
Configuration files:
24540
Configuration headers:
24543
Configuration commands:
24546
Report bugs to <bug-autoconf@gnu.org>."
24549
cat >>$CONFIG_STATUS <<_ACEOF
24551
mediastreamer config.status 2.0.0
24552
configured by $0, generated by GNU Autoconf 2.60a,
24553
with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24555
Copyright (C) 2006 Free Software Foundation, Inc.
24556
This config.status script is free software; the Free Software Foundation
24557
gives unlimited permission to copy, distribute and modify it."
24564
cat >>$CONFIG_STATUS <<\_ACEOF
24565
# If no file are specified by the user, then we need to provide default
24566
# value. By we need to know if files were specified by the user.
24572
ac_option=`expr "X$1" : 'X\([^=]*\)='`
24573
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24584
# Handling of the options.
24585
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24587
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24588
echo "$ac_cs_version"; exit ;;
24589
--debug | --debu | --deb | --de | --d | -d )
24591
--file | --fil | --fi | --f )
24593
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24594
ac_need_defaults=false;;
24595
--header | --heade | --head | --hea )
24597
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24598
ac_need_defaults=false;;
24600
# Conflict between --help and --header
24601
{ echo "$as_me: error: ambiguous option: $1
24602
Try \`$0 --help' for more information." >&2
24603
{ (exit 1); exit 1; }; };;
24604
--help | --hel | -h )
24605
echo "$ac_cs_usage"; exit ;;
24606
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
24607
| -silent | --silent | --silen | --sile | --sil | --si | --s)
24610
# This is an error.
24611
-*) { echo "$as_me: error: unrecognized option: $1
24612
Try \`$0 --help' for more information." >&2
24613
{ (exit 1); exit 1; }; } ;;
24615
*) ac_config_targets="$ac_config_targets $1"
24616
ac_need_defaults=false ;;
24622
ac_configure_extra_args=
24624
if $ac_cs_silent; then
24626
ac_configure_extra_args="$ac_configure_extra_args --silent"
24630
cat >>$CONFIG_STATUS <<_ACEOF
24631
if \$ac_cs_recheck; then
24632
echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24633
CONFIG_SHELL=$SHELL
24634
export CONFIG_SHELL
24635
exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24639
cat >>$CONFIG_STATUS <<\_ACEOF
24643
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24644
## Running $as_me. ##
24650
cat >>$CONFIG_STATUS <<_ACEOF
24654
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
24658
cat >>$CONFIG_STATUS <<\_ACEOF
24660
# Handling of arguments.
24661
for ac_config_target in $ac_config_targets
24663
case $ac_config_target in
24664
"mediastreamer-config.h") CONFIG_HEADERS="$CONFIG_HEADERS mediastreamer-config.h" ;;
24665
"depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24666
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24667
"include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
24668
"include/mediastreamer2/Makefile") CONFIG_FILES="$CONFIG_FILES include/mediastreamer2/Makefile" ;;
24669
"src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
24670
"tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
24671
"build/Makefile") CONFIG_FILES="$CONFIG_FILES build/Makefile" ;;
24672
"build/win32native/Makefile") CONFIG_FILES="$CONFIG_FILES build/win32native/Makefile" ;;
24673
"build/wince/Makefile") CONFIG_FILES="$CONFIG_FILES build/wince/Makefile" ;;
24674
"plugins/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/Makefile" ;;
24675
"plugins/plugins.mk") CONFIG_FILES="$CONFIG_FILES plugins/plugins.mk" ;;
24676
"mediastreamer.pc") CONFIG_FILES="$CONFIG_FILES mediastreamer.pc" ;;
24677
"mediastreamer2.spec") CONFIG_FILES="$CONFIG_FILES mediastreamer2.spec" ;;
24679
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24680
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24681
{ (exit 1); exit 1; }; };;
24686
# If the user did not use the arguments to specify the items to instantiate,
24687
# then the envvar interface is used. Set only those that are not.
24688
# We use the long form for the default assignment because of an extremely
24689
# bizarre bug on SunOS 4.1.3.
24690
if $ac_need_defaults; then
24691
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24692
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24693
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24696
# Have a temporary directory for convenience. Make it in the build tree
24697
# simply because there is no reason against having it here, and in addition,
24698
# creating and moving files from /tmp can sometimes cause problems.
24699
# Hook for its removal unless debugging.
24700
# Note that there is a small window in which the directory will not be cleaned:
24701
# after its creation but before its name has been assigned to `$tmp'.
24705
trap 'exit_status=$?
24706
{ test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24708
trap '{ (exit 1); exit 1; }' 1 2 13 15
24710
# Create a (secure) tmp directory for tmp files.
24713
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24714
test -n "$tmp" && test -d "$tmp"
24717
tmp=./conf$$-$RANDOM
24718
(umask 077 && mkdir "$tmp")
24721
echo "$me: cannot create a temporary directory in ." >&2
24722
{ (exit 1); exit 1; }
24726
# Set up the sed scripts for CONFIG_FILES section.
24729
# No need to generate the scripts if there are no CONFIG_FILES.
24730
# This happens for instance when ./config.status config.h
24731
if test -n "$CONFIG_FILES"; then
24738
for ac_last_try in false false false false false :; do
24739
cat >conf$$subs.sed <<_ACEOF
24740
SHELL!$SHELL$ac_delim
24741
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24742
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24743
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24744
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24745
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24746
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24747
exec_prefix!$exec_prefix$ac_delim
24748
prefix!$prefix$ac_delim
24749
program_transform_name!$program_transform_name$ac_delim
24750
bindir!$bindir$ac_delim
24751
sbindir!$sbindir$ac_delim
24752
libexecdir!$libexecdir$ac_delim
24753
datarootdir!$datarootdir$ac_delim
24754
datadir!$datadir$ac_delim
24755
sysconfdir!$sysconfdir$ac_delim
24756
sharedstatedir!$sharedstatedir$ac_delim
24757
localstatedir!$localstatedir$ac_delim
24758
includedir!$includedir$ac_delim
24759
oldincludedir!$oldincludedir$ac_delim
24760
docdir!$docdir$ac_delim
24761
infodir!$infodir$ac_delim
24762
htmldir!$htmldir$ac_delim
24763
dvidir!$dvidir$ac_delim
24764
pdfdir!$pdfdir$ac_delim
24765
psdir!$psdir$ac_delim
24766
libdir!$libdir$ac_delim
24767
localedir!$localedir$ac_delim
24768
mandir!$mandir$ac_delim
24769
DEFS!$DEFS$ac_delim
24770
ECHO_C!$ECHO_C$ac_delim
24771
ECHO_N!$ECHO_N$ac_delim
24772
ECHO_T!$ECHO_T$ac_delim
24773
LIBS!$LIBS$ac_delim
24774
build_alias!$build_alias$ac_delim
24775
host_alias!$host_alias$ac_delim
24776
target_alias!$target_alias$ac_delim
24777
build!$build$ac_delim
24778
build_cpu!$build_cpu$ac_delim
24779
build_vendor!$build_vendor$ac_delim
24780
build_os!$build_os$ac_delim
24781
host!$host$ac_delim
24782
host_cpu!$host_cpu$ac_delim
24783
host_vendor!$host_vendor$ac_delim
24784
host_os!$host_os$ac_delim
24785
target!$target$ac_delim
24786
target_cpu!$target_cpu$ac_delim
24787
target_vendor!$target_vendor$ac_delim
24788
target_os!$target_os$ac_delim
24789
LIBMEDIASTREAMER_SO_VERSION!$LIBMEDIASTREAMER_SO_VERSION$ac_delim
24790
MEDIASTREAMER_VERSION!$MEDIASTREAMER_VERSION$ac_delim
24791
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24792
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24793
INSTALL_DATA!$INSTALL_DATA$ac_delim
24794
CYGPATH_W!$CYGPATH_W$ac_delim
24795
PACKAGE!$PACKAGE$ac_delim
24796
VERSION!$VERSION$ac_delim
24797
ACLOCAL!$ACLOCAL$ac_delim
24798
AUTOCONF!$AUTOCONF$ac_delim
24799
AUTOMAKE!$AUTOMAKE$ac_delim
24800
AUTOHEADER!$AUTOHEADER$ac_delim
24801
MAKEINFO!$MAKEINFO$ac_delim
24802
install_sh!$install_sh$ac_delim
24803
STRIP!$STRIP$ac_delim
24804
INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
24805
mkdir_p!$mkdir_p$ac_delim
24807
SET_MAKE!$SET_MAKE$ac_delim
24808
am__leading_dot!$am__leading_dot$ac_delim
24809
AMTAR!$AMTAR$ac_delim
24810
am__tar!$am__tar$ac_delim
24811
am__untar!$am__untar$ac_delim
24813
CFLAGS!$CFLAGS$ac_delim
24814
LDFLAGS!$LDFLAGS$ac_delim
24815
CPPFLAGS!$CPPFLAGS$ac_delim
24816
ac_ct_CC!$ac_ct_CC$ac_delim
24817
EXEEXT!$EXEEXT$ac_delim
24818
OBJEXT!$OBJEXT$ac_delim
24819
DEPDIR!$DEPDIR$ac_delim
24820
am__include!$am__include$ac_delim
24821
am__quote!$am__quote$ac_delim
24822
AMDEP_TRUE!$AMDEP_TRUE$ac_delim
24823
AMDEP_FALSE!$AMDEP_FALSE$ac_delim
24824
AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
24825
CCDEPMODE!$CCDEPMODE$ac_delim
24826
am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
24827
am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
24828
GREP!$GREP$ac_delim
24829
EGREP!$EGREP$ac_delim
24830
LN_S!$LN_S$ac_delim
24831
ECHO!$ECHO$ac_delim
24833
RANLIB!$RANLIB$ac_delim
24836
CXXFLAGS!$CXXFLAGS$ac_delim
24839
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24841
elif $ac_last_try; then
24842
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24843
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24844
{ (exit 1); exit 1; }; }
24846
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24850
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24851
if test -n "$ac_eof"; then
24852
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24853
ac_eof=`expr $ac_eof + 1`
24856
cat >>$CONFIG_STATUS <<_ACEOF
24857
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24858
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24861
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24862
s/^/s,@/; s/!/@,|#_!!_#|/
24865
s/'"$ac_delim"'$/,g/; t
24867
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24868
' >>$CONFIG_STATUS <conf$$subs.sed
24869
rm -f conf$$subs.sed
24870
cat >>$CONFIG_STATUS <<_ACEOF
24876
for ac_last_try in false false false false false :; do
24877
cat >conf$$subs.sed <<_ACEOF
24878
ac_ct_CXX!$ac_ct_CXX$ac_delim
24879
CXXDEPMODE!$CXXDEPMODE$ac_delim
24880
am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
24881
am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
24882
CXXCPP!$CXXCPP$ac_delim
24884
FFLAGS!$FFLAGS$ac_delim
24885
ac_ct_F77!$ac_ct_F77$ac_delim
24886
LIBTOOL!$LIBTOOL$ac_delim
24887
MSPLUGINS_CFLAGS!$MSPLUGINS_CFLAGS$ac_delim
24888
MSPLUGINS_LIBS!$MSPLUGINS_LIBS$ac_delim
24889
BUILD_OSS_TRUE!$BUILD_OSS_TRUE$ac_delim
24890
BUILD_OSS_FALSE!$BUILD_OSS_FALSE$ac_delim
24891
ALSA_LIBS!$ALSA_LIBS$ac_delim
24892
BUILD_ALSA_TRUE!$BUILD_ALSA_TRUE$ac_delim
24893
BUILD_ALSA_FALSE!$BUILD_ALSA_FALSE$ac_delim
24894
ARTS_LIBS!$ARTS_LIBS$ac_delim
24895
BUILD_ARTS_TRUE!$BUILD_ARTS_TRUE$ac_delim
24896
BUILD_ARTS_FALSE!$BUILD_ARTS_FALSE$ac_delim
24897
PORTAUDIO_LIBS!$PORTAUDIO_LIBS$ac_delim
24898
BUILD_PORTAUDIO_TRUE!$BUILD_PORTAUDIO_TRUE$ac_delim
24899
BUILD_PORTAUDIO_FALSE!$BUILD_PORTAUDIO_FALSE$ac_delim
24900
PKG_CONFIG!$PKG_CONFIG$ac_delim
24901
JACK_CFLAGS!$JACK_CFLAGS$ac_delim
24902
JACK_LIBS!$JACK_LIBS$ac_delim
24903
SAMPLERATE_CFLAGS!$SAMPLERATE_CFLAGS$ac_delim
24904
SAMPLERATE_LIBS!$SAMPLERATE_LIBS$ac_delim
24905
SPEEX_CFLAGS!$SPEEX_CFLAGS$ac_delim
24906
SPEEX_LIBS!$SPEEX_LIBS$ac_delim
24907
BUILD_SPEEX_TRUE!$BUILD_SPEEX_TRUE$ac_delim
24908
BUILD_SPEEX_FALSE!$BUILD_SPEEX_FALSE$ac_delim
24909
GSM_CFLAGS!$GSM_CFLAGS$ac_delim
24910
GSM_LIBS!$GSM_LIBS$ac_delim
24911
BUILD_GSM_TRUE!$BUILD_GSM_TRUE$ac_delim
24912
BUILD_GSM_FALSE!$BUILD_GSM_FALSE$ac_delim
24913
FFMPEG_CFLAGS!$FFMPEG_CFLAGS$ac_delim
24914
FFMPEG_LIBS!$FFMPEG_LIBS$ac_delim
24915
SDL_CFLAGS!$SDL_CFLAGS$ac_delim
24916
SDL_LIBS!$SDL_LIBS$ac_delim
24917
THEORA_CFLAGS!$THEORA_CFLAGS$ac_delim
24918
THEORA_LIBS!$THEORA_LIBS$ac_delim
24919
VIDEO_CFLAGS!$VIDEO_CFLAGS$ac_delim
24920
VIDEO_LIBS!$VIDEO_LIBS$ac_delim
24921
BUILD_VIDEO_TRUE!$BUILD_VIDEO_TRUE$ac_delim
24922
BUILD_VIDEO_FALSE!$BUILD_VIDEO_FALSE$ac_delim
24923
BUILD_THEORA_TRUE!$BUILD_THEORA_TRUE$ac_delim
24924
BUILD_THEORA_FALSE!$BUILD_THEORA_FALSE$ac_delim
24925
ORTP_CFLAGS!$ORTP_CFLAGS$ac_delim
24926
ORTP_LIBS!$ORTP_LIBS$ac_delim
24927
PACKAGE_PLUGINS_DIR!$PACKAGE_PLUGINS_DIR$ac_delim
24929
MKEPMLIST!$MKEPMLIST$ac_delim
24930
EPMINSTALL!$EPMINSTALL$ac_delim
24931
WITH_EPM_TRUE!$WITH_EPM_TRUE$ac_delim
24932
WITH_EPM_FALSE!$WITH_EPM_FALSE$ac_delim
24933
EPM_PKG_EXT!$EPM_PKG_EXT$ac_delim
24934
SYS_USER!$SYS_USER$ac_delim
24935
SYS_GROUP!$SYS_GROUP$ac_delim
24936
ARCH!$ARCH$ac_delim
24937
SUMMARY!$SUMMARY$ac_delim
24938
PACKAGER!$PACKAGER$ac_delim
24939
LICENSE!$LICENSE$ac_delim
24940
VENDOR!$VENDOR$ac_delim
24941
RELEASE!$RELEASE$ac_delim
24942
LIBOBJS!$LIBOBJS$ac_delim
24943
LTLIBOBJS!$LTLIBOBJS$ac_delim
24946
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 66; then
24948
elif $ac_last_try; then
24949
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24950
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24951
{ (exit 1); exit 1; }; }
24953
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24957
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24958
if test -n "$ac_eof"; then
24959
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24960
ac_eof=`expr $ac_eof + 1`
24963
cat >>$CONFIG_STATUS <<_ACEOF
24964
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24965
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24968
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24969
s/^/s,@/; s/!/@,|#_!!_#|/
24972
s/'"$ac_delim"'$/,g/; t
24974
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24975
' >>$CONFIG_STATUS <conf$$subs.sed
24976
rm -f conf$$subs.sed
24977
cat >>$CONFIG_STATUS <<_ACEOF
24984
# VPATH may cause trouble with some makes, so we remove $(srcdir),
24985
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24986
# trailing colons and then remove the whole line if VPATH becomes empty
24987
# (actually we leave an empty line to preserve line numbers).
24988
if test "x$srcdir" = x.; then
24989
ac_vpsub='/^[ ]*VPATH[ ]*=/{
24990
s/:*\$(srcdir):*/:/
24991
s/:*\${srcdir}:*/:/
24993
s/^\([^=]*=[ ]*\):*/\1/
24999
cat >>$CONFIG_STATUS <<\_ACEOF
25000
fi # test -n "$CONFIG_FILES"
25003
for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
25006
:[FHLC]) ac_mode=$ac_tag; continue;;
25008
case $ac_mode$ac_tag in
25010
:L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25011
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25012
{ (exit 1); exit 1; }; };;
25013
:[FH]-) ac_tag=-:-;;
25014
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25031
-) ac_f="$tmp/stdin";;
25032
*) # Look for the file first in the build tree, then in the source tree
25033
# (if the path is not absolute). The absolute path cannot be DOS-style,
25034
# because $ac_f cannot contain `:'.
25038
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25040
{ { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25041
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25042
{ (exit 1); exit 1; }; };;
25044
ac_file_inputs="$ac_file_inputs $ac_f"
25047
# Let's still pretend it is `configure' which instantiates (i.e., don't
25048
# use $as_me), people would be surprised to read:
25049
# /* config.h. Generated by config.status. */
25050
configure_input="Generated from "`IFS=:
25051
echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25052
if test x"$ac_file" != x-; then
25053
configure_input="$ac_file. $configure_input"
25054
{ echo "$as_me:$LINENO: creating $ac_file" >&5
25055
echo "$as_me: creating $ac_file" >&6;}
25059
*:-:* | *:-) cat >"$tmp/stdin";;
25064
ac_dir=`$as_dirname -- "$ac_file" ||
25065
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25066
X"$ac_file" : 'X\(//\)[^/]' \| \
25067
X"$ac_file" : 'X\(//\)$' \| \
25068
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25070
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25074
/^X\(\/\/\)[^/].*/{
25089
-*) as_dir=./$as_dir;;
25091
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25095
*\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25096
*) as_qdir=$as_dir;;
25098
as_dirs="'$as_qdir' $as_dirs"
25099
as_dir=`$as_dirname -- "$as_dir" ||
25100
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25101
X"$as_dir" : 'X\(//\)[^/]' \| \
25102
X"$as_dir" : 'X\(//\)$' \| \
25103
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25105
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25109
/^X\(\/\/\)[^/].*/{
25122
test -d "$as_dir" && break
25124
test -z "$as_dirs" || eval "mkdir $as_dirs"
25125
} || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25126
echo "$as_me: error: cannot create directory $as_dir" >&2;}
25127
{ (exit 1); exit 1; }; }; }
25131
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25133
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25134
# A ".." for each directory in $ac_dir_suffix.
25135
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25136
case $ac_top_builddir_sub in
25137
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25138
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25141
ac_abs_top_builddir=$ac_pwd
25142
ac_abs_builddir=$ac_pwd$ac_dir_suffix
25143
# for backward compatibility:
25144
ac_top_builddir=$ac_top_build_prefix
25147
.) # We are building in place.
25149
ac_top_srcdir=$ac_top_builddir_sub
25150
ac_abs_top_srcdir=$ac_pwd ;;
25151
[\\/]* | ?:[\\/]* ) # Absolute name.
25152
ac_srcdir=$srcdir$ac_dir_suffix;
25153
ac_top_srcdir=$srcdir
25154
ac_abs_top_srcdir=$srcdir ;;
25155
*) # Relative name.
25156
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25157
ac_top_srcdir=$ac_top_build_prefix$srcdir
25158
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25160
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25170
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25171
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25175
cat >>$CONFIG_STATUS <<\_ACEOF
25176
# If the template does not know about datarootdir, expand it.
25177
# FIXME: This hack should be removed a few years after 2.60.
25178
ac_datarootdir_hack=; ac_datarootdir_seen=
25180
case `sed -n '/datarootdir/ {
25189
' $ac_file_inputs` in
25190
*datarootdir*) ac_datarootdir_seen=yes;;
25191
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25192
{ echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25193
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25195
cat >>$CONFIG_STATUS <<_ACEOF
25196
ac_datarootdir_hack='
25197
s&@datadir@&$datadir&g
25198
s&@docdir@&$docdir&g
25199
s&@infodir@&$infodir&g
25200
s&@localedir@&$localedir&g
25201
s&@mandir@&$mandir&g
25202
s&\\\${datarootdir}&$datarootdir&g' ;;
25206
# Neutralize VPATH when `$srcdir' = `.'.
25207
# Shell code in configure.ac might set extrasub.
25208
# FIXME: do we really want to maintain this feature?
25209
cat >>$CONFIG_STATUS <<_ACEOF
25213
cat >>$CONFIG_STATUS <<\_ACEOF
25215
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25216
s&@configure_input@&$configure_input&;t t
25217
s&@top_builddir@&$ac_top_builddir_sub&;t t
25218
s&@srcdir@&$ac_srcdir&;t t
25219
s&@abs_srcdir@&$ac_abs_srcdir&;t t
25220
s&@top_srcdir@&$ac_top_srcdir&;t t
25221
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25222
s&@builddir@&$ac_builddir&;t t
25223
s&@abs_builddir@&$ac_abs_builddir&;t t
25224
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25225
s&@INSTALL@&$ac_INSTALL&;t t
25226
$ac_datarootdir_hack
25227
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
25229
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25230
{ ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25231
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25232
{ echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25233
which seems to be undefined. Please make sure it is defined." >&5
25234
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25235
which seems to be undefined. Please make sure it is defined." >&2;}
25239
-) cat "$tmp/out"; rm -f "$tmp/out";;
25240
*) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25249
# Transform confdefs.h into a sed script `conftest.defines', that
25250
# substitutes the proper values into config.h.in to produce config.h.
25251
rm -f conftest.defines conftest.tail
25252
# First, append a space to every undef/define line, to ease matching.
25253
echo 's/$/ /' >conftest.defines
25254
# Then, protect against being on the right side of a sed subst, or in
25255
# an unquoted here document, in config.status. If some macros were
25256
# called several times there might be several #defines for the same
25257
# symbol, which is useless. But do not sort them, since the last
25258
# AC_DEFINE must be honored.
25259
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25260
# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25261
# NAME is the cpp macro being defined, VALUE is the value it is being given.
25262
# PARAMS is the parameter list in the macro definition--in most cases, it's
25263
# just an empty string.
25264
ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25265
ac_dB='\\)[ (].*,\\1define\\2'
25273
s/^[ ]*#[ ]*define[ ][ ]*//
25278
s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25279
s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25280
' >>conftest.defines
25282
# Remove the space that was appended to ease matching.
25283
# Then replace #undef with comments. This is necessary, for
25284
# example, in the case of _POSIX_SOURCE, which is predefined and required
25285
# on some systems where configure will not decide to define it.
25286
# (The regexp can be short, since the line contains either #define or #undef.)
25288
s,^[ #]*u.*,/* & */,' >>conftest.defines
25290
# Break up conftest.defines:
25291
ac_max_sed_lines=50
25293
# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25294
# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25295
# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25297
ac_in='$ac_file_inputs'
25298
ac_out='"$tmp/out1"'
25299
ac_nxt='"$tmp/out2"'
25303
# Write a here document:
25304
cat >>$CONFIG_STATUS <<_ACEOF
25305
# First, check the format of the line:
25306
cat >"\$tmp/defines.sed" <<\\CEOF
25307
/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25308
/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25312
sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25314
sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25315
ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25316
sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25317
grep . conftest.tail >/dev/null || break
25318
rm -f conftest.defines
25319
mv conftest.tail conftest.defines
25321
rm -f conftest.defines conftest.tail
25323
echo "ac_result=$ac_in" >>$CONFIG_STATUS
25324
cat >>$CONFIG_STATUS <<\_ACEOF
25325
if test x"$ac_file" != x-; then
25326
echo "/* $configure_input */" >"$tmp/config.h"
25327
cat "$ac_result" >>"$tmp/config.h"
25328
if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25329
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25330
echo "$as_me: $ac_file is unchanged" >&6;}
25333
mv "$tmp/config.h" $ac_file
25336
echo "/* $configure_input */"
25340
# Compute $ac_file's index in $config_headers.
25342
for _am_header in $config_headers :; do
25343
case $_am_header in
25344
$ac_file | $ac_file:* )
25347
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
25350
echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
25351
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25352
X$ac_file : 'X\(//\)[^/]' \| \
25353
X$ac_file : 'X\(//\)$' \| \
25354
X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
25356
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25360
/^X\(\/\/\)[^/].*/{
25372
s/.*/./; q'`/stamp-h$_am_stamp_count
25375
:C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25376
echo "$as_me: executing $ac_file commands" >&6;}
25381
case $ac_file$ac_mode in
25382
"depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
25383
# Strip MF so we end up with the name of the file.
25384
mf=`echo "$mf" | sed -e 's/:.*$//'`
25385
# Check whether this is an Automake generated Makefile or not.
25386
# We used to match only the files named `Makefile.in', but
25387
# some people rename them; so instead we look at the file content.
25388
# Grep'ing the first line is not enough: some people post-process
25389
# each Makefile.in and add a new line on top of each file to say so.
25390
# So let's grep whole file.
25391
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
25392
dirpart=`$as_dirname -- "$mf" ||
25393
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25394
X"$mf" : 'X\(//\)[^/]' \| \
25395
X"$mf" : 'X\(//\)$' \| \
25396
X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
25398
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25402
/^X\(\/\/\)[^/].*/{
25418
# Extract the definition of DEPDIR, am__include, and am__quote
25419
# from the Makefile without running `make'.
25420
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
25421
test -z "$DEPDIR" && continue
25422
am__include=`sed -n 's/^am__include = //p' < "$mf"`
25423
test -z "am__include" && continue
25424
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
25425
# When using ansi2knr, U may be empty or an underscore; expand it
25426
U=`sed -n 's/^U = //p' < "$mf"`
25427
# Find all dependency output files, they are included files with
25428
# $(DEPDIR) in their names. We invoke sed twice because it is the
25429
# simplest approach to changing $(DEPDIR) to its actual value in the
25431
for file in `sed -n "
25432
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
25433
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
25434
# Make sure the directory exists.
25435
test -f "$dirpart/$file" && continue
25436
fdir=`$as_dirname -- "$file" ||
25437
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25438
X"$file" : 'X\(//\)[^/]' \| \
25439
X"$file" : 'X\(//\)$' \| \
25440
X"$file" : 'X\(/\)' \| . 2>/dev/null ||
25442
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25446
/^X\(\/\/\)[^/].*/{
25459
{ as_dir=$dirpart/$fdir
25461
-*) as_dir=./$as_dir;;
25463
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25467
*\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25468
*) as_qdir=$as_dir;;
25470
as_dirs="'$as_qdir' $as_dirs"
25471
as_dir=`$as_dirname -- "$as_dir" ||
25472
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25473
X"$as_dir" : 'X\(//\)[^/]' \| \
25474
X"$as_dir" : 'X\(//\)$' \| \
25475
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25477
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25481
/^X\(\/\/\)[^/].*/{
25494
test -d "$as_dir" && break
25496
test -z "$as_dirs" || eval "mkdir $as_dirs"
25497
} || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25498
echo "$as_me: error: cannot create directory $as_dir" >&2;}
25499
{ (exit 1); exit 1; }; }; }
25500
# echo "creating $dirpart/$file"
25501
echo '# dummy' > "$dirpart/$file"
25510
{ (exit 0); exit 0; }
25512
chmod +x $CONFIG_STATUS
25513
ac_clean_files=$ac_clean_files_save
25516
# configure is writing to config.log, and then calls config.status.
25517
# config.status does its own redirection, appending to config.log.
25518
# Unfortunately, on DOS this fails, as config.log is still kept open
25519
# by configure, so config.status won't be able to write to it; its
25520
# output is simply discarded. So we exec the FD to /dev/null,
25521
# effectively closing config.log, so it can be properly (re)opened and
25522
# appended to by config.status. When coming back to configure, we
25523
# need to make the FD available again.
25524
if test "$no_create" != yes; then
25526
ac_config_status_args=
25527
test "$silent" = yes &&
25528
ac_config_status_args="$ac_config_status_args --quiet"
25530
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25532
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
25533
# would make configure fail if this is the last instruction.
25534
$ac_cs_success || { (exit 1); exit 1; }