2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.61 for libass 0.9.9.
5
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6
# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7
# This configure script is free software; the Free Software Foundation
8
# gives unlimited permission to copy, distribute and modify it.
9
## --------------------- ##
10
## M4sh Initialization. ##
11
## --------------------- ##
13
# Be more Bourne compatible
14
DUALCASE=1; export DUALCASE # for MKS sh
15
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19
# is contrary to our usage. Disable this feature.
20
alias -g '${1+"$@"}'='"$@"'
23
case `(set -o) 2>/dev/null` in
24
*posix*) set -o posix ;;
33
# Avoid depending upon Character Ranges.
34
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37
as_cr_digits='0123456789'
38
as_cr_alnum=$as_cr_Letters$as_cr_digits
40
# The user is always right.
41
if test "${PATH_SEPARATOR+set}" != set; then
42
echo "#! /bin/sh" >conf$$.sh
43
echo "exit 0" >>conf$$.sh
45
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53
# Support unset when possible.
54
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62
# We need space, tab and new line, in precisely that order. Quoting is
63
# there to prevent editors from complaining about space-tab.
64
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65
# splitting by setting IFS to empty value.)
70
# Find who we are. Look in the path if we contain no directory separator.
72
*[\\/]* ) as_myself=$0 ;;
73
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77
test -z "$as_dir" && as_dir=.
78
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84
# We did not find ourselves, most probably we were run as `sh COMMAND'
85
# in which case we are not to be found in the path.
86
if test "x$as_myself" = x; then
89
if test ! -f "$as_myself"; then
90
echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94
# Work around bugs in pre-3.0 UWIN ksh.
95
for as_var in ENV MAIL MAILPATH
96
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109
eval $as_var=C; export $as_var
111
($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115
# Required to use basename.
116
if expr a : '\(a\)' >/dev/null 2>&1 &&
117
test "X`expr 00001 : '.*\(...\)'`" = X001; then
123
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130
# Name of the executable.
131
as_me=`$as_basename -- "$0" ||
132
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133
X"$0" : 'X\(//\)$' \| \
134
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136
sed '/^.*\/\([^/][^/]*\)\/*$/{
154
if test "x$CONFIG_SHELL" = x; then
155
if (eval ":") 2>/dev/null; then
161
if test $as_have_required = yes && (eval ":
171
as_func_ret_success () {
174
as_func_ret_failure () {
179
if as_func_success; then
183
echo as_func_success failed.
186
if as_func_failure; then
188
echo as_func_failure succeeded.
191
if as_func_ret_success; then
195
echo as_func_ret_success failed.
198
if as_func_ret_failure; then
200
echo as_func_ret_failure succeeded.
203
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207
echo positional parameters were not saved.
210
test \$exitcode = 0) || { (exit 1); exit 1; }
215
test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216
test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217
") 2> /dev/null; then
221
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225
test -z "$as_dir" && as_dir=.
228
for as_base in sh bash ksh sh5; do
229
as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236
for as_shell in $as_candidate_shells $SHELL; do
237
# Try only shells that exist, to save several forks.
238
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239
{ ("$as_shell") 2> /dev/null <<\_ASEOF
240
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244
# is contrary to our usage. Disable this feature.
245
alias -g '${1+"$@"}'='"$@"'
248
case `(set -o) 2>/dev/null` in
249
*posix*) set -o posix ;;
258
CONFIG_SHELL=$as_shell
260
if { "$as_shell" 2> /dev/null <<\_ASEOF
261
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265
# is contrary to our usage. Disable this feature.
266
alias -g '${1+"$@"}'='"$@"'
269
case `(set -o) 2>/dev/null` in
270
*posix*) set -o posix ;;
286
as_func_ret_success () {
289
as_func_ret_failure () {
294
if as_func_success; then
298
echo as_func_success failed.
301
if as_func_failure; then
303
echo as_func_failure succeeded.
306
if as_func_ret_success; then
310
echo as_func_ret_success failed.
313
if as_func_ret_failure; then
315
echo as_func_ret_failure succeeded.
318
if ( set x; as_func_ret_success y && test x = "$1" ); then
322
echo positional parameters were not saved.
325
test $exitcode = 0) || { (exit 1); exit 1; }
330
test "x$as_lineno_1" != "x$as_lineno_2" &&
331
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
342
if test "x$CONFIG_SHELL" != x; then
343
for as_var in BASH_ENV ENV
344
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347
exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351
if test $as_have_required = no; then
352
echo This script requires a shell more modern than all the
353
echo shells that I found on your system. Please install a
354
echo modern shell, or manually run the script under such a
355
echo shell if you do have one.
356
{ (exit 1); exit 1; }
366
(eval "as_func_return () {
375
as_func_ret_success () {
378
as_func_ret_failure () {
383
if as_func_success; then
387
echo as_func_success failed.
390
if as_func_failure; then
392
echo as_func_failure succeeded.
395
if as_func_ret_success; then
399
echo as_func_ret_success failed.
402
if as_func_ret_failure; then
404
echo as_func_ret_failure succeeded.
407
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411
echo positional parameters were not saved.
414
test \$exitcode = 0") || {
415
echo No shell found that supports shell functions.
416
echo Please tell autoconf@gnu.org about your system,
417
echo including any error possibly output before this
425
test "x$as_lineno_1" != "x$as_lineno_2" &&
426
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429
# uniformly replaced by the line number. The first 'sed' inserts a
430
# line-number line after each line using $LINENO; the second 'sed'
431
# does the real work. The second script uses 'N' to pair each
432
# line-number line with the line containing $LINENO, and appends
433
# trailing '-' during substitution so that $LINENO is not a special
435
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436
# scripts with optimization help from Paolo Bonzini. Blame Lee
437
# E. McMahon (1931-1989) for sed's syntax. :-)
449
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453
chmod +x "$as_me.lineno" ||
454
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455
{ (exit 1); exit 1; }; }
457
# Don't try to exec as it changes $[0], causing all sort of problems
458
# (the dirname of $[0] is not the place where we might find the
459
# original and so on. Autoconf is especially sensitive to this).
461
# Exit status is that of the last command.
466
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
472
ECHO_C= ECHO_N= ECHO_T=
476
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
483
if expr a : '\(a\)' >/dev/null 2>&1 &&
484
test "X`expr 00001 : '.*\(...\)'`" = X001; then
490
rm -f conf$$ conf$$.exe conf$$.file
491
if test -d conf$$.dir; then
492
rm -f conf$$.dir/conf$$.file
498
if ln -s conf$$.file conf$$ 2>/dev/null; then
500
# ... but there are two gotchas:
501
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503
# In both cases, we have to default to `cp -p'.
504
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506
elif ln conf$$.file conf$$ 2>/dev/null; then
511
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512
rmdir conf$$.dir 2>/dev/null
514
if mkdir -p . 2>/dev/null; then
517
test -d ./-p && rmdir ./-p
521
if test -x / >/dev/null 2>&1; then
524
if ls -dL / >/dev/null 2>&1; then
531
if test -d "$1"; then
537
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538
???[sx]*):;;*)false;;esac;fi
542
as_executable_p=$as_test_x
544
# Sed expression to map a string onto a valid CPP name.
545
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547
# Sed expression to map a string onto a valid variable name.
548
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
553
# Check that we are running under the correct shell.
554
SHELL=${CONFIG_SHELL-/bin/sh}
558
# Remove one level of quotation (which was required for Make).
559
ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
564
if test "X$1" = X--no-reexec; then
565
# Discard the --no-reexec flag, and continue.
567
elif test "X$1" = X--fallback-echo; then
568
# Avoid inline document here, it may be left over
570
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
571
# Yippee, $echo works!
574
# Restart under the correct shell.
575
exec $SHELL "$0" --no-reexec ${1+"$@"}
578
if test "X$1" = X--fallback-echo; then
579
# used as fallback echo
587
# The HP-UX ksh and POSIX shell print the target directory to stdout
589
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
591
if test -z "$ECHO"; then
592
if test "X${echo_test_string+set}" != Xset; then
593
# find a string as large as possible, as long as the shell can cope with it
594
for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596
if (echo_test_string=`eval $cmd`) 2>/dev/null &&
597
echo_test_string=`eval $cmd` &&
598
(test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
605
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
606
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
607
test "X$echo_testing_string" = "X$echo_test_string"; then
610
# The Solaris, AIX, and Digital Unix default echo programs unquote
611
# backslashes. This makes it impossible to quote backslashes using
612
# echo "$something" | sed 's/\\/\\\\/g'
614
# So, first we look for a working echo in the user's PATH.
616
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
617
for dir in $PATH /usr/ucb; do
619
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
620
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
621
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
622
test "X$echo_testing_string" = "X$echo_test_string"; then
629
if test "X$echo" = Xecho; then
630
# We didn't find a better echo, so look for alternatives.
631
if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
632
echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
633
test "X$echo_testing_string" = "X$echo_test_string"; then
634
# This shell has a builtin print -r that does the trick.
636
elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
637
test "X$CONFIG_SHELL" != X/bin/ksh; then
638
# If we have ksh, try running configure again with it.
639
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
640
export ORIGINAL_CONFIG_SHELL
641
CONFIG_SHELL=/bin/ksh
643
exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
647
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
648
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
649
test "X$echo_testing_string" = "X$echo_test_string"; then
652
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
653
test "X$echo_testing_string" = 'X\t' &&
654
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
655
test "X$echo_testing_string" = "X$echo_test_string"; then
656
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
658
SHELL="$CONFIG_SHELL"
660
echo="$CONFIG_SHELL $0 --fallback-echo"
661
elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
662
test "X$echo_testing_string" = 'X\t' &&
663
echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
664
test "X$echo_testing_string" = "X$echo_test_string"; then
665
echo="$CONFIG_SHELL $0 --fallback-echo"
667
# maybe with a smaller string...
670
for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
671
if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
678
if test "$prev" != 'sed 50q "$0"'; then
679
echo_test_string=`eval $prev`
680
export echo_test_string
681
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
683
# Oops. We lost completely, so just stick with echo.
692
# Copy echo and quote the copy suitably for passing to libtool from
693
# the Makefile, instead of quoting the original, which is used later.
695
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
696
ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
702
exec 7<&0 </dev/null 6>&1
705
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
706
# so uname gets run too.
707
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
712
ac_default_prefix=/usr/local
714
ac_config_libobj_dir=.
720
SHELL=${CONFIG_SHELL-/bin/sh}
722
# Identity of this package.
723
PACKAGE_NAME='libass'
724
PACKAGE_TARNAME='libass'
725
PACKAGE_VERSION='0.9.9'
726
PACKAGE_STRING='libass 0.9.9'
729
# Factoring default headers for most tests.
730
ac_includes_default="\
732
#ifdef HAVE_SYS_TYPES_H
733
# include <sys/types.h>
735
#ifdef HAVE_SYS_STAT_H
736
# include <sys/stat.h>
742
# ifdef HAVE_STDLIB_H
747
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
752
#ifdef HAVE_STRINGS_H
753
# include <strings.h>
755
#ifdef HAVE_INTTYPES_H
756
# include <inttypes.h>
765
ac_unique_file="libass/ass.c"
775
program_transform_name
817
INSTALL_STRIP_PROGRAM
885
ac_precious_vars='build_alias
905
# Initialize some variables set by options.
907
ac_init_version=false
908
# The variables have the same names as the options, with
909
# dashes changed to underlines.
917
program_transform_name=s,x,x,
925
# Installation directory options.
926
# These are left unexpanded so users can "make install exec_prefix=/foo"
927
# and all the variables that are supposed to be based on exec_prefix
928
# by default will actually change.
929
# Use braces instead of parens because sh, perl, etc. also accept them.
930
# (The list follows the same order as the GNU Coding Standards.)
931
bindir='${exec_prefix}/bin'
932
sbindir='${exec_prefix}/sbin'
933
libexecdir='${exec_prefix}/libexec'
934
datarootdir='${prefix}/share'
935
datadir='${datarootdir}'
936
sysconfdir='${prefix}/etc'
937
sharedstatedir='${prefix}/com'
938
localstatedir='${prefix}/var'
939
includedir='${prefix}/include'
940
oldincludedir='/usr/include'
941
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
942
infodir='${datarootdir}/info'
947
libdir='${exec_prefix}/lib'
948
localedir='${datarootdir}/locale'
949
mandir='${datarootdir}/man'
955
# If the previous option needs an argument, assign it.
956
if test -n "$ac_prev"; then
957
eval $ac_prev=\$ac_option
963
*=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
967
# Accept the important Cygnus configure options, so we can diagnose typos.
969
case $ac_dashdash$ac_option in
973
-bindir | --bindir | --bindi | --bind | --bin | --bi)
975
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
978
-build | --build | --buil | --bui | --bu)
979
ac_prev=build_alias ;;
980
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
981
build_alias=$ac_optarg ;;
983
-cache-file | --cache-file | --cache-fil | --cache-fi \
984
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
985
ac_prev=cache_file ;;
986
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
987
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
988
cache_file=$ac_optarg ;;
991
cache_file=config.cache ;;
993
-datadir | --datadir | --datadi | --datad)
995
-datadir=* | --datadir=* | --datadi=* | --datad=*)
996
datadir=$ac_optarg ;;
998
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
999
| --dataroo | --dataro | --datar)
1000
ac_prev=datarootdir ;;
1001
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1002
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1003
datarootdir=$ac_optarg ;;
1005
-disable-* | --disable-*)
1006
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1007
# Reject names that are not valid shell variable names.
1008
expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1009
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
1010
{ (exit 1); exit 1; }; }
1011
ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1012
eval enable_$ac_feature=no ;;
1014
-docdir | --docdir | --docdi | --doc | --do)
1016
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1017
docdir=$ac_optarg ;;
1019
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1021
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1022
dvidir=$ac_optarg ;;
1024
-enable-* | --enable-*)
1025
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1026
# Reject names that are not valid shell variable names.
1027
expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1028
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
1029
{ (exit 1); exit 1; }; }
1030
ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1031
eval enable_$ac_feature=\$ac_optarg ;;
1033
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1034
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1035
| --exec | --exe | --ex)
1036
ac_prev=exec_prefix ;;
1037
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1038
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1039
| --exec=* | --exe=* | --ex=*)
1040
exec_prefix=$ac_optarg ;;
1042
-gas | --gas | --ga | --g)
1043
# Obsolete; use --with-gas.
1046
-help | --help | --hel | --he | -h)
1047
ac_init_help=long ;;
1048
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1049
ac_init_help=recursive ;;
1050
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1051
ac_init_help=short ;;
1053
-host | --host | --hos | --ho)
1054
ac_prev=host_alias ;;
1055
-host=* | --host=* | --hos=* | --ho=*)
1056
host_alias=$ac_optarg ;;
1058
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1060
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1062
htmldir=$ac_optarg ;;
1064
-includedir | --includedir | --includedi | --included | --include \
1065
| --includ | --inclu | --incl | --inc)
1066
ac_prev=includedir ;;
1067
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1068
| --includ=* | --inclu=* | --incl=* | --inc=*)
1069
includedir=$ac_optarg ;;
1071
-infodir | --infodir | --infodi | --infod | --info | --inf)
1073
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1074
infodir=$ac_optarg ;;
1076
-libdir | --libdir | --libdi | --libd)
1078
-libdir=* | --libdir=* | --libdi=* | --libd=*)
1079
libdir=$ac_optarg ;;
1081
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1082
| --libexe | --libex | --libe)
1083
ac_prev=libexecdir ;;
1084
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1085
| --libexe=* | --libex=* | --libe=*)
1086
libexecdir=$ac_optarg ;;
1088
-localedir | --localedir | --localedi | --localed | --locale)
1089
ac_prev=localedir ;;
1090
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1091
localedir=$ac_optarg ;;
1093
-localstatedir | --localstatedir | --localstatedi | --localstated \
1094
| --localstate | --localstat | --localsta | --localst | --locals)
1095
ac_prev=localstatedir ;;
1096
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1097
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1098
localstatedir=$ac_optarg ;;
1100
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1102
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1103
mandir=$ac_optarg ;;
1105
-nfp | --nfp | --nf)
1106
# Obsolete; use --without-fp.
1109
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
1110
| --no-cr | --no-c | -n)
1113
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
1114
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1117
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1118
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1119
| --oldin | --oldi | --old | --ol | --o)
1120
ac_prev=oldincludedir ;;
1121
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1122
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1123
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1124
oldincludedir=$ac_optarg ;;
1126
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1128
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1129
prefix=$ac_optarg ;;
1131
-program-prefix | --program-prefix | --program-prefi | --program-pref \
1132
| --program-pre | --program-pr | --program-p)
1133
ac_prev=program_prefix ;;
1134
-program-prefix=* | --program-prefix=* | --program-prefi=* \
1135
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1136
program_prefix=$ac_optarg ;;
1138
-program-suffix | --program-suffix | --program-suffi | --program-suff \
1139
| --program-suf | --program-su | --program-s)
1140
ac_prev=program_suffix ;;
1141
-program-suffix=* | --program-suffix=* | --program-suffi=* \
1142
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1143
program_suffix=$ac_optarg ;;
1145
-program-transform-name | --program-transform-name \
1146
| --program-transform-nam | --program-transform-na \
1147
| --program-transform-n | --program-transform- \
1148
| --program-transform | --program-transfor \
1149
| --program-transfo | --program-transf \
1150
| --program-trans | --program-tran \
1151
| --progr-tra | --program-tr | --program-t)
1152
ac_prev=program_transform_name ;;
1153
-program-transform-name=* | --program-transform-name=* \
1154
| --program-transform-nam=* | --program-transform-na=* \
1155
| --program-transform-n=* | --program-transform-=* \
1156
| --program-transform=* | --program-transfor=* \
1157
| --program-transfo=* | --program-transf=* \
1158
| --program-trans=* | --program-tran=* \
1159
| --progr-tra=* | --program-tr=* | --program-t=*)
1160
program_transform_name=$ac_optarg ;;
1162
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1164
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1165
pdfdir=$ac_optarg ;;
1167
-psdir | --psdir | --psdi | --psd | --ps)
1169
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1172
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1173
| -silent | --silent | --silen | --sile | --sil)
1176
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1178
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1180
sbindir=$ac_optarg ;;
1182
-sharedstatedir | --sharedstatedir | --sharedstatedi \
1183
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1184
| --sharedst | --shareds | --shared | --share | --shar \
1186
ac_prev=sharedstatedir ;;
1187
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1188
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1189
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1191
sharedstatedir=$ac_optarg ;;
1193
-site | --site | --sit)
1195
-site=* | --site=* | --sit=*)
1198
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1200
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1201
srcdir=$ac_optarg ;;
1203
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1204
| --syscon | --sysco | --sysc | --sys | --sy)
1205
ac_prev=sysconfdir ;;
1206
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1207
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1208
sysconfdir=$ac_optarg ;;
1210
-target | --target | --targe | --targ | --tar | --ta | --t)
1211
ac_prev=target_alias ;;
1212
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1213
target_alias=$ac_optarg ;;
1215
-v | -verbose | --verbose | --verbos | --verbo | --verb)
1218
-version | --version | --versio | --versi | --vers | -V)
1219
ac_init_version=: ;;
1222
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1223
# Reject names that are not valid shell variable names.
1224
expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1225
{ echo "$as_me: error: invalid package name: $ac_package" >&2
1226
{ (exit 1); exit 1; }; }
1227
ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1228
eval with_$ac_package=\$ac_optarg ;;
1230
-without-* | --without-*)
1231
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1232
# Reject names that are not valid shell variable names.
1233
expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1234
{ echo "$as_me: error: invalid package name: $ac_package" >&2
1235
{ (exit 1); exit 1; }; }
1236
ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1237
eval with_$ac_package=no ;;
1240
# Obsolete; use --with-x.
1243
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1244
| --x-incl | --x-inc | --x-in | --x-i)
1245
ac_prev=x_includes ;;
1246
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1247
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1248
x_includes=$ac_optarg ;;
1250
-x-libraries | --x-libraries | --x-librarie | --x-librari \
1251
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1252
ac_prev=x_libraries ;;
1253
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1254
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1255
x_libraries=$ac_optarg ;;
1257
-*) { echo "$as_me: error: unrecognized option: $ac_option
1258
Try \`$0 --help' for more information." >&2
1259
{ (exit 1); exit 1; }; }
1263
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1264
# Reject names that are not valid shell variable names.
1265
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1266
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1267
{ (exit 1); exit 1; }; }
1268
eval $ac_envvar=\$ac_optarg
1269
export $ac_envvar ;;
1272
# FIXME: should be removed in autoconf 3.0.
1273
echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1274
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1275
echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1276
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1282
if test -n "$ac_prev"; then
1283
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1284
{ echo "$as_me: error: missing argument to $ac_option" >&2
1285
{ (exit 1); exit 1; }; }
1288
# Be sure to have absolute directory names.
1289
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1290
datadir sysconfdir sharedstatedir localstatedir includedir \
1291
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1292
libdir localedir mandir
1294
eval ac_val=\$$ac_var
1296
[\\/$]* | ?:[\\/]* ) continue;;
1297
NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1299
{ echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1300
{ (exit 1); exit 1; }; }
1303
# There might be people who depend on the old broken behavior: `$host'
1304
# used to hold the argument of --host etc.
1305
# FIXME: To remove some day.
1308
target=$target_alias
1310
# FIXME: To remove some day.
1311
if test "x$host_alias" != x; then
1312
if test "x$build_alias" = x; then
1313
cross_compiling=maybe
1314
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1315
If a cross compiler is detected then cross compile mode will be used." >&2
1316
elif test "x$build_alias" != "x$host_alias"; then
1322
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1324
test "$silent" = yes && exec 6>/dev/null
1327
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1328
ac_ls_di=`ls -di .` &&
1329
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1330
{ echo "$as_me: error: Working directory cannot be determined" >&2
1331
{ (exit 1); exit 1; }; }
1332
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1333
{ echo "$as_me: error: pwd does not report name of working directory" >&2
1334
{ (exit 1); exit 1; }; }
1337
# Find the source files, if location was not specified.
1338
if test -z "$srcdir"; then
1339
ac_srcdir_defaulted=yes
1340
# Try the directory containing this script, then the parent directory.
1341
ac_confdir=`$as_dirname -- "$0" ||
1342
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1343
X"$0" : 'X\(//\)[^/]' \| \
1344
X"$0" : 'X\(//\)$' \| \
1345
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1347
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1365
if test ! -r "$srcdir/$ac_unique_file"; then
1369
ac_srcdir_defaulted=no
1371
if test ! -r "$srcdir/$ac_unique_file"; then
1372
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1373
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1374
{ (exit 1); exit 1; }; }
1376
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1378
cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1379
{ (exit 1); exit 1; }; }
1381
# When building in place, set srcdir=.
1382
if test "$ac_abs_confdir" = "$ac_pwd"; then
1385
# Remove unnecessary trailing slashes from srcdir.
1386
# Double slashes in file names in object file debugging info
1387
# mess up M-x gdb in Emacs.
1389
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1391
for ac_var in $ac_precious_vars; do
1392
eval ac_env_${ac_var}_set=\${${ac_var}+set}
1393
eval ac_env_${ac_var}_value=\$${ac_var}
1394
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1395
eval ac_cv_env_${ac_var}_value=\$${ac_var}
1399
# Report the --help message.
1401
if test "$ac_init_help" = "long"; then
1402
# Omit some internal or obsolete options to make the list less imposing.
1403
# This message is too long to be a string in the A/UX 3.1 sh.
1405
\`configure' configures libass 0.9.9 to adapt to many kinds of systems.
1407
Usage: $0 [OPTION]... [VAR=VALUE]...
1409
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1410
VAR=VALUE. See below for descriptions of some of the useful variables.
1412
Defaults for the options are specified in brackets.
1415
-h, --help display this help and exit
1416
--help=short display options specific to this package
1417
--help=recursive display the short help of all the included packages
1418
-V, --version display version information and exit
1419
-q, --quiet, --silent do not print \`checking...' messages
1420
--cache-file=FILE cache test results in FILE [disabled]
1421
-C, --config-cache alias for \`--cache-file=config.cache'
1422
-n, --no-create do not create output files
1423
--srcdir=DIR find the sources in DIR [configure dir or \`..']
1425
Installation directories:
1426
--prefix=PREFIX install architecture-independent files in PREFIX
1427
[$ac_default_prefix]
1428
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1431
By default, \`make install' will install all the files in
1432
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1433
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1434
for instance \`--prefix=\$HOME'.
1436
For better control, use the options below.
1438
Fine tuning of the installation directories:
1439
--bindir=DIR user executables [EPREFIX/bin]
1440
--sbindir=DIR system admin executables [EPREFIX/sbin]
1441
--libexecdir=DIR program executables [EPREFIX/libexec]
1442
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1443
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1444
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1445
--libdir=DIR object code libraries [EPREFIX/lib]
1446
--includedir=DIR C header files [PREFIX/include]
1447
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1448
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1449
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1450
--infodir=DIR info documentation [DATAROOTDIR/info]
1451
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1452
--mandir=DIR man documentation [DATAROOTDIR/man]
1453
--docdir=DIR documentation root [DATAROOTDIR/doc/libass]
1454
--htmldir=DIR html documentation [DOCDIR]
1455
--dvidir=DIR dvi documentation [DOCDIR]
1456
--pdfdir=DIR pdf documentation [DOCDIR]
1457
--psdir=DIR ps documentation [DOCDIR]
1463
--program-prefix=PREFIX prepend PREFIX to installed program names
1464
--program-suffix=SUFFIX append SUFFIX to installed program names
1465
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
1468
--build=BUILD configure for building on BUILD [guessed]
1469
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1473
if test -n "$ac_init_help"; then
1474
case $ac_init_help in
1475
short | recursive ) echo "Configuration of libass 0.9.9:";;
1480
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1481
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1482
--enable-shared[=PKGS] build shared libraries [default=yes]
1483
--enable-static[=PKGS] build static libraries [default=yes]
1484
--enable-fast-install[=PKGS]
1485
optimize for fast installation [default=yes]
1486
--disable-dependency-tracking speeds up one-time build
1487
--enable-dependency-tracking do not reject slow dependency extractors
1488
--disable-libtool-lock avoid locking (might break parallel builds)
1489
--enable-png enable png (test program) [default=no]
1490
--disable-enca disable enca (charset autodetect) support
1492
--disable-fontconfig disable fontconfig support [default=check]
1493
--enable-shave use shave to make the build pretty [default=yes]
1496
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1497
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1498
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
1499
--with-pic try to use only PIC/non-PIC objects [default=use
1501
--with-tags[=TAGS] include additional configurations [automatic]
1503
Some influential environment variables:
1504
CC C compiler command
1505
CFLAGS C compiler flags
1506
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1507
nonstandard directory <lib dir>
1508
LIBS libraries to pass to the linker, e.g. -l<library>
1509
CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1510
you have headers in a nonstandard directory <include dir>
1512
PKG_CONFIG path to pkg-config utility
1514
C compiler flags for FREETYPE, overriding pkg-config
1516
linker flags for FREETYPE, overriding pkg-config
1518
C compiler flags for FONTCONFIG, overriding pkg-config
1520
linker flags for FONTCONFIG, overriding pkg-config
1521
ENCA_CFLAGS C compiler flags for ENCA, overriding pkg-config
1522
ENCA_LIBS linker flags for ENCA, overriding pkg-config
1524
C compiler flags for LIBPNG, overriding pkg-config
1525
LIBPNG_LIBS linker flags for LIBPNG, overriding pkg-config
1527
Use these variables to override the choices made by `configure' or to help
1528
it to find libraries and programs with nonstandard names/locations.
1534
if test "$ac_init_help" = "recursive"; then
1535
# If there are subdirs, report their specific --help.
1536
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1537
test -d "$ac_dir" || continue
1541
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1543
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1544
# A ".." for each directory in $ac_dir_suffix.
1545
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1546
case $ac_top_builddir_sub in
1547
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1548
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1551
ac_abs_top_builddir=$ac_pwd
1552
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1553
# for backward compatibility:
1554
ac_top_builddir=$ac_top_build_prefix
1557
.) # We are building in place.
1559
ac_top_srcdir=$ac_top_builddir_sub
1560
ac_abs_top_srcdir=$ac_pwd ;;
1561
[\\/]* | ?:[\\/]* ) # Absolute name.
1562
ac_srcdir=$srcdir$ac_dir_suffix;
1563
ac_top_srcdir=$srcdir
1564
ac_abs_top_srcdir=$srcdir ;;
1566
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1567
ac_top_srcdir=$ac_top_build_prefix$srcdir
1568
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1570
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1572
cd "$ac_dir" || { ac_status=$?; continue; }
1573
# Check for guested configure.
1574
if test -f "$ac_srcdir/configure.gnu"; then
1576
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
1577
elif test -f "$ac_srcdir/configure"; then
1579
$SHELL "$ac_srcdir/configure" --help=recursive
1581
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1583
cd "$ac_pwd" || { ac_status=$?; break; }
1587
test -n "$ac_init_help" && exit $ac_status
1588
if $ac_init_version; then
1590
libass configure 0.9.9
1591
generated by GNU Autoconf 2.61
1593
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1594
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1595
This configure script is free software; the Free Software Foundation
1596
gives unlimited permission to copy, distribute and modify it.
1600
cat >config.log <<_ACEOF
1601
This file contains any messages produced by compilers while
1602
running configure, to aid debugging if configure makes a mistake.
1604
It was created by libass $as_me 0.9.9, which was
1605
generated by GNU Autoconf 2.61. Invocation command line was
1617
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1618
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1619
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1620
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1621
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1623
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1624
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1626
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1627
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1628
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1629
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1630
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1631
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1632
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1636
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1640
test -z "$as_dir" && as_dir=.
1641
echo "PATH: $as_dir"
1657
# Keep a trace of the command line.
1658
# Strip out --no-create and --no-recursion so they do not pile up.
1659
# Strip out --silent because we don't want to record it for future runs.
1660
# Also quote any args containing shell meta-characters.
1661
# Make two passes to allow for proper duplicate-argument suppression.
1665
ac_must_keep_next=false
1671
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1672
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1673
| -silent | --silent | --silen | --sile | --sil)
1676
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1679
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1681
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1682
if test $ac_must_keep_next = true; then
1683
ac_must_keep_next=false # Got value, back to normal.
1686
*=* | --config-cache | -C | -disable-* | --disable-* \
1687
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1688
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1689
| -with-* | --with-* | -without-* | --without-* | --x)
1690
case "$ac_configure_args0 " in
1691
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1694
-* ) ac_must_keep_next=true ;;
1697
ac_configure_args="$ac_configure_args '$ac_arg'"
1702
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1703
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1705
# When interrupted or exit'd, cleanup temporary files, and complete
1706
# config.log. We remove comments because anyway the quotes in there
1707
# would cause problems or look ugly.
1708
# WARNING: Use '\'' to represent an apostrophe within the trap.
1709
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1710
trap 'exit_status=$?
1711
# Save into config.log some information that might help in debugging.
1716
## ---------------- ##
1717
## Cache variables. ##
1718
## ---------------- ##
1721
# The following way of writing the cache mishandles newlines in values,
1723
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1724
eval ac_val=\$$ac_var
1728
*_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1729
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1732
_ | IFS | as_nl) ;; #(
1733
*) $as_unset $ac_var ;;
1738
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1739
*${as_nl}ac_space=\ *)
1741
"s/'\''/'\''\\\\'\'''\''/g;
1742
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1745
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1753
## ----------------- ##
1754
## Output variables. ##
1755
## ----------------- ##
1758
for ac_var in $ac_subst_vars
1760
eval ac_val=\$$ac_var
1762
*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1764
echo "$ac_var='\''$ac_val'\''"
1768
if test -n "$ac_subst_files"; then
1770
## ------------------- ##
1771
## File substitutions. ##
1772
## ------------------- ##
1775
for ac_var in $ac_subst_files
1777
eval ac_val=\$$ac_var
1779
*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1781
echo "$ac_var='\''$ac_val'\''"
1786
if test -s confdefs.h; then
1796
test "$ac_signal" != 0 &&
1797
echo "$as_me: caught signal $ac_signal"
1798
echo "$as_me: exit $exit_status"
1800
rm -f core *.core core.conftest.* &&
1801
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1804
for ac_signal in 1 2 13 15; do
1805
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1809
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1810
rm -f -r conftest* confdefs.h
1812
# Predefined preprocessor variables.
1814
cat >>confdefs.h <<_ACEOF
1815
#define PACKAGE_NAME "$PACKAGE_NAME"
1819
cat >>confdefs.h <<_ACEOF
1820
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1824
cat >>confdefs.h <<_ACEOF
1825
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1829
cat >>confdefs.h <<_ACEOF
1830
#define PACKAGE_STRING "$PACKAGE_STRING"
1834
cat >>confdefs.h <<_ACEOF
1835
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1839
# Let the site file select an alternate cache file if it wants to.
1840
# Prefer explicitly selected file to automatically selected ones.
1841
if test -n "$CONFIG_SITE"; then
1842
set x "$CONFIG_SITE"
1843
elif test "x$prefix" != xNONE; then
1844
set x "$prefix/share/config.site" "$prefix/etc/config.site"
1846
set x "$ac_default_prefix/share/config.site" \
1847
"$ac_default_prefix/etc/config.site"
1852
if test -r "$ac_site_file"; then
1853
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1854
echo "$as_me: loading site script $ac_site_file" >&6;}
1855
sed 's/^/| /' "$ac_site_file" >&5
1860
if test -r "$cache_file"; then
1861
# Some versions of bash will fail to source /dev/null (special
1862
# files actually), so we avoid doing that.
1863
if test -f "$cache_file"; then
1864
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
1865
echo "$as_me: loading cache $cache_file" >&6;}
1867
[\\/]* | ?:[\\/]* ) . "$cache_file";;
1868
*) . "./$cache_file";;
1872
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
1873
echo "$as_me: creating cache $cache_file" >&6;}
1877
# Check that the precious variables saved in the cache have kept the same
1879
ac_cache_corrupted=false
1880
for ac_var in $ac_precious_vars; do
1881
eval ac_old_set=\$ac_cv_env_${ac_var}_set
1882
eval ac_new_set=\$ac_env_${ac_var}_set
1883
eval ac_old_val=\$ac_cv_env_${ac_var}_value
1884
eval ac_new_val=\$ac_env_${ac_var}_value
1885
case $ac_old_set,$ac_new_set in
1887
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1888
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1889
ac_cache_corrupted=: ;;
1891
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1892
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1893
ac_cache_corrupted=: ;;
1896
if test "x$ac_old_val" != "x$ac_new_val"; then
1897
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1898
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1899
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1900
echo "$as_me: former value: $ac_old_val" >&2;}
1901
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1902
echo "$as_me: current value: $ac_new_val" >&2;}
1903
ac_cache_corrupted=:
1906
# Pass precious variables to config.status.
1907
if test "$ac_new_set" = set; then
1909
*\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1910
*) ac_arg=$ac_var=$ac_new_val ;;
1912
case " $ac_configure_args " in
1913
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1914
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1918
if $ac_cache_corrupted; then
1919
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1920
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1921
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1922
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1923
{ (exit 1); exit 1; }; }
1951
ac_cpp='$CPP $CPPFLAGS'
1952
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1953
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1954
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1957
am__api_version='1.10'
1960
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1961
if test -f "$ac_dir/install-sh"; then
1963
ac_install_sh="$ac_aux_dir/install-sh -c"
1965
elif test -f "$ac_dir/install.sh"; then
1967
ac_install_sh="$ac_aux_dir/install.sh -c"
1969
elif test -f "$ac_dir/shtool"; then
1971
ac_install_sh="$ac_aux_dir/shtool install -c"
1975
if test -z "$ac_aux_dir"; then
1976
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1977
echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1978
{ (exit 1); exit 1; }; }
1981
# These three variables are undocumented and unsupported,
1982
# and are intended to be withdrawn in a future Autoconf release.
1983
# They can cause serious problems if a builder's source tree is in a directory
1984
# whose full name contains unusual characters.
1985
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1986
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1987
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1990
# Find a good install program. We prefer a C program (faster),
1991
# so one script is as good as another. But avoid the broken or
1992
# incompatible versions:
1993
# SysV /etc/install, /usr/sbin/install
1994
# SunOS /usr/etc/install
1995
# IRIX /sbin/install
1997
# AmigaOS /C/install, which installs bootblocks on floppy discs
1998
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1999
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2000
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2001
# OS/2's system install, which has a completely different semantic
2002
# ./install, which can be erroneously created by make from ./install.sh.
2003
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2004
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2005
if test -z "$INSTALL"; then
2006
if test "${ac_cv_path_install+set}" = set; then
2007
echo $ECHO_N "(cached) $ECHO_C" >&6
2009
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2013
test -z "$as_dir" && as_dir=.
2014
# Account for people who put trailing slashes in PATH elements.
2016
./ | .// | /cC/* | \
2017
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2018
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2021
# OSF1 and SCO ODT 3.0 have their own names for install.
2022
# Don't use installbsd from OSF since it installs stuff as root
2024
for ac_prog in ginstall scoinst install; do
2025
for ac_exec_ext in '' $ac_executable_extensions; do
2026
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2027
if test $ac_prog = install &&
2028
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2029
# AIX install. It has an incompatible calling convention.
2031
elif test $ac_prog = install &&
2032
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2033
# program-specific install script used by HP pwplus--don't use.
2036
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2049
if test "${ac_cv_path_install+set}" = set; then
2050
INSTALL=$ac_cv_path_install
2052
# As a last resort, use the slow shell script. Don't cache a
2053
# value for INSTALL within a source directory, because that will
2054
# break other packages using the cache if that directory is
2055
# removed, or if the value is a relative name.
2056
INSTALL=$ac_install_sh
2059
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2060
echo "${ECHO_T}$INSTALL" >&6; }
2062
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2063
# It thinks the first close brace ends the variable substitution.
2064
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2066
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2068
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2070
{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2071
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2074
echo timestamp > conftest.file
2075
# Do `set' in a subshell so we don't clobber the current shell's
2076
# arguments. Must try -L first in case configure is actually a
2077
# symlink; some systems play weird games with the mod time of symlinks
2078
# (eg FreeBSD returns the mod time of the symlink's containing
2081
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2082
if test "$*" = "X"; then
2084
set X `ls -t $srcdir/configure conftest.file`
2087
if test "$*" != "X $srcdir/configure conftest.file" \
2088
&& test "$*" != "X conftest.file $srcdir/configure"; then
2090
# If neither matched, then we have a broken ls. This can happen
2091
# if, for instance, CONFIG_SHELL is bash and it inherits a
2092
# broken ls alias from the environment. This has actually
2093
# happened. Such a system could not be considered "sane".
2094
{ { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2095
alias in your environment" >&5
2096
echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2097
alias in your environment" >&2;}
2098
{ (exit 1); exit 1; }; }
2101
test "$2" = conftest.file
2107
{ { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2108
Check your system clock" >&5
2109
echo "$as_me: error: newly created file is older than distributed files!
2110
Check your system clock" >&2;}
2111
{ (exit 1); exit 1; }; }
2113
{ echo "$as_me:$LINENO: result: yes" >&5
2114
echo "${ECHO_T}yes" >&6; }
2115
test "$program_prefix" != NONE &&
2116
program_transform_name="s&^&$program_prefix&;$program_transform_name"
2117
# Use a double $ so make ignores it.
2118
test "$program_suffix" != NONE &&
2119
program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2120
# Double any \ or $. echo might interpret backslashes.
2121
# By default was `s,x,x', remove it if useless.
2122
cat <<\_ACEOF >conftest.sed
2123
s/[\\$]/&&/g;s/;s,x,x,$//
2125
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2128
# expand $ac_aux_dir to an absolute path
2129
am_aux_dir=`cd $ac_aux_dir && pwd`
2131
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2132
# Use eval to expand $SHELL
2133
if eval "$MISSING --run true"; then
2134
am_missing_run="$MISSING --run "
2137
{ echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2138
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2141
{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2142
echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2143
if test -z "$MKDIR_P"; then
2144
if test "${ac_cv_path_mkdir+set}" = set; then
2145
echo $ECHO_N "(cached) $ECHO_C" >&6
2147
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2148
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2151
test -z "$as_dir" && as_dir=.
2152
for ac_prog in mkdir gmkdir; do
2153
for ac_exec_ext in '' $ac_executable_extensions; do
2154
{ test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2155
case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2156
'mkdir (GNU coreutils) '* | \
2157
'mkdir (coreutils) '* | \
2158
'mkdir (fileutils) '4.1*)
2159
ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2169
if test "${ac_cv_path_mkdir+set}" = set; then
2170
MKDIR_P="$ac_cv_path_mkdir -p"
2172
# As a last resort, use the slow shell script. Don't cache a
2173
# value for MKDIR_P within a source directory, because that will
2174
# break other packages using the cache if that directory is
2175
# removed, or if the value is a relative name.
2176
test -d ./--version && rmdir ./--version
2177
MKDIR_P="$ac_install_sh -d"
2180
{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2181
echo "${ECHO_T}$MKDIR_P" >&6; }
2185
[\\/$]* | ?:[\\/]*) ;;
2186
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2189
for ac_prog in gawk mawk nawk awk
2191
# Extract the first word of "$ac_prog", so it can be a program name with args.
2192
set dummy $ac_prog; ac_word=$2
2193
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2194
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2195
if test "${ac_cv_prog_AWK+set}" = set; then
2196
echo $ECHO_N "(cached) $ECHO_C" >&6
2198
if test -n "$AWK"; then
2199
ac_cv_prog_AWK="$AWK" # Let the user override the test.
2201
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2205
test -z "$as_dir" && as_dir=.
2206
for ac_exec_ext in '' $ac_executable_extensions; do
2207
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2208
ac_cv_prog_AWK="$ac_prog"
2209
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2219
if test -n "$AWK"; then
2220
{ echo "$as_me:$LINENO: result: $AWK" >&5
2221
echo "${ECHO_T}$AWK" >&6; }
2223
{ echo "$as_me:$LINENO: result: no" >&5
2224
echo "${ECHO_T}no" >&6; }
2228
test -n "$AWK" && break
2231
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2232
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2233
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2234
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2235
echo $ECHO_N "(cached) $ECHO_C" >&6
2237
cat >conftest.make <<\_ACEOF
2240
@echo '@@@%%%=$(MAKE)=@@@%%%'
2242
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2243
case `${MAKE-make} -f conftest.make 2>/dev/null` in
2245
eval ac_cv_prog_make_${ac_make}_set=yes;;
2247
eval ac_cv_prog_make_${ac_make}_set=no;;
2251
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2252
{ echo "$as_me:$LINENO: result: yes" >&5
2253
echo "${ECHO_T}yes" >&6; }
2256
{ echo "$as_me:$LINENO: result: no" >&5
2257
echo "${ECHO_T}no" >&6; }
2258
SET_MAKE="MAKE=${MAKE-make}"
2261
rm -rf .tst 2>/dev/null
2262
mkdir .tst 2>/dev/null
2263
if test -d .tst; then
2268
rmdir .tst 2>/dev/null
2270
if test "`cd $srcdir && pwd`" != "`pwd`"; then
2271
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2272
# is not polluted with repeated "-I."
2273
am__isrc=' -I$(srcdir)'
2274
# test to see if srcdir already configured
2275
if test -f $srcdir/config.status; then
2276
{ { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2277
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2278
{ (exit 1); exit 1; }; }
2282
# test whether we have cygpath
2283
if test -z "$CYGPATH_W"; then
2284
if (cygpath --version) >/dev/null 2>/dev/null; then
2285
CYGPATH_W='cygpath -w'
2292
# Define the identity of the package.
2297
cat >>confdefs.h <<_ACEOF
2298
#define PACKAGE "$PACKAGE"
2302
cat >>confdefs.h <<_ACEOF
2303
#define VERSION "$VERSION"
2306
# Some tools Automake needs.
2308
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2311
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2314
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2317
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2320
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2322
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2324
# Installed binaries are usually stripped using `strip' when the user
2325
# run `make install-strip'. However `strip' might not be the right
2326
# tool to use in cross-compilation environments, therefore Automake
2327
# will honor the `STRIP' environment variable to overrule this program.
2328
if test "$cross_compiling" != no; then
2329
if test -n "$ac_tool_prefix"; then
2330
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2331
set dummy ${ac_tool_prefix}strip; ac_word=$2
2332
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2333
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2334
if test "${ac_cv_prog_STRIP+set}" = set; then
2335
echo $ECHO_N "(cached) $ECHO_C" >&6
2337
if test -n "$STRIP"; then
2338
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2340
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2344
test -z "$as_dir" && as_dir=.
2345
for ac_exec_ext in '' $ac_executable_extensions; do
2346
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2347
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2348
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2357
STRIP=$ac_cv_prog_STRIP
2358
if test -n "$STRIP"; then
2359
{ echo "$as_me:$LINENO: result: $STRIP" >&5
2360
echo "${ECHO_T}$STRIP" >&6; }
2362
{ echo "$as_me:$LINENO: result: no" >&5
2363
echo "${ECHO_T}no" >&6; }
2368
if test -z "$ac_cv_prog_STRIP"; then
2370
# Extract the first word of "strip", so it can be a program name with args.
2371
set dummy strip; ac_word=$2
2372
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2373
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2374
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2375
echo $ECHO_N "(cached) $ECHO_C" >&6
2377
if test -n "$ac_ct_STRIP"; then
2378
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2380
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2384
test -z "$as_dir" && as_dir=.
2385
for ac_exec_ext in '' $ac_executable_extensions; do
2386
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2387
ac_cv_prog_ac_ct_STRIP="strip"
2388
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2397
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2398
if test -n "$ac_ct_STRIP"; then
2399
{ echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2400
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2402
{ echo "$as_me:$LINENO: result: no" >&5
2403
echo "${ECHO_T}no" >&6; }
2406
if test "x$ac_ct_STRIP" = x; then
2409
case $cross_compiling:$ac_tool_warned in
2411
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2412
whose name does not start with the host triplet. If you think this
2413
configuration is useful to you, please write to autoconf@gnu.org." >&5
2414
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2415
whose name does not start with the host triplet. If you think this
2416
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2417
ac_tool_warned=yes ;;
2422
STRIP="$ac_cv_prog_STRIP"
2426
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2428
# We need awk for the "check" target. The system "awk" is bad on
2430
# Always define AMTAR for backward compatibility.
2432
AMTAR=${AMTAR-"${am_missing_run}tar"}
2434
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2441
# Disable C++/Fortran checks
2444
# Check whether --enable-shared was given.
2445
if test "${enable_shared+set}" = set; then
2446
enableval=$enable_shared; p=${PACKAGE-default}
2448
yes) enable_shared=yes ;;
2449
no) enable_shared=no ;;
2452
# Look at the argument we got. We use all the common list separators.
2453
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2454
for pkg in $enableval; do
2456
if test "X$pkg" = "X$p"; then
2468
# Check whether --enable-static was given.
2469
if test "${enable_static+set}" = set; then
2470
enableval=$enable_static; p=${PACKAGE-default}
2472
yes) enable_static=yes ;;
2473
no) enable_static=no ;;
2476
# Look at the argument we got. We use all the common list separators.
2477
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2478
for pkg in $enableval; do
2480
if test "X$pkg" = "X$p"; then
2492
# Check whether --enable-fast-install was given.
2493
if test "${enable_fast_install+set}" = set; then
2494
enableval=$enable_fast_install; p=${PACKAGE-default}
2496
yes) enable_fast_install=yes ;;
2497
no) enable_fast_install=no ;;
2499
enable_fast_install=no
2500
# Look at the argument we got. We use all the common list separators.
2501
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2502
for pkg in $enableval; do
2504
if test "X$pkg" = "X$p"; then
2505
enable_fast_install=yes
2512
enable_fast_install=yes
2516
# Make sure we can run config.sub.
2517
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2518
{ { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2519
echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2520
{ (exit 1); exit 1; }; }
2522
{ echo "$as_me:$LINENO: checking build system type" >&5
2523
echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2524
if test "${ac_cv_build+set}" = set; then
2525
echo $ECHO_N "(cached) $ECHO_C" >&6
2527
ac_build_alias=$build_alias
2528
test "x$ac_build_alias" = x &&
2529
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2530
test "x$ac_build_alias" = x &&
2531
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2532
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2533
{ (exit 1); exit 1; }; }
2534
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2535
{ { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2536
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2537
{ (exit 1); exit 1; }; }
2540
{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2541
echo "${ECHO_T}$ac_cv_build" >&6; }
2542
case $ac_cv_build in
2544
*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2545
echo "$as_me: error: invalid value of canonical build" >&2;}
2546
{ (exit 1); exit 1; }; };;
2549
ac_save_IFS=$IFS; IFS='-'
2555
# Remember, the first character of IFS is used to create $*,
2556
# except with old shells:
2559
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2562
{ echo "$as_me:$LINENO: checking host system type" >&5
2563
echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2564
if test "${ac_cv_host+set}" = set; then
2565
echo $ECHO_N "(cached) $ECHO_C" >&6
2567
if test "x$host_alias" = x; then
2568
ac_cv_host=$ac_cv_build
2570
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2571
{ { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2572
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2573
{ (exit 1); exit 1; }; }
2577
{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2578
echo "${ECHO_T}$ac_cv_host" >&6; }
2581
*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2582
echo "$as_me: error: invalid value of canonical host" >&2;}
2583
{ (exit 1); exit 1; }; };;
2586
ac_save_IFS=$IFS; IFS='-'
2592
# Remember, the first character of IFS is used to create $*,
2593
# except with old shells:
2596
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2599
DEPDIR="${am__leading_dot}deps"
2601
ac_config_commands="$ac_config_commands depfiles"
2604
am_make=${MAKE-make}
2605
cat > confinc << 'END'
2610
# If we don't find an include directive, just comment out the code.
2611
{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2612
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2616
# First try GNU make style include.
2617
echo "include confinc" > confmf
2618
# We grep out `Entering directory' and `Leaving directory'
2619
# messages which can occur if `w' ends up in MAKEFLAGS.
2620
# In particular we don't look at `^make:' because GNU make might
2621
# be invoked under some other name (usually "gmake"), in which
2622
# case it prints its new name instead of `make'.
2623
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2628
# Now try BSD make style include.
2629
if test "$am__include" = "#"; then
2630
echo '.include "confinc"' > confmf
2631
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2632
am__include=.include
2639
{ echo "$as_me:$LINENO: result: $_am_result" >&5
2640
echo "${ECHO_T}$_am_result" >&6; }
2641
rm -f confinc confmf
2643
# Check whether --enable-dependency-tracking was given.
2644
if test "${enable_dependency_tracking+set}" = set; then
2645
enableval=$enable_dependency_tracking;
2648
if test "x$enable_dependency_tracking" != xno; then
2649
am_depcomp="$ac_aux_dir/depcomp"
2652
if test "x$enable_dependency_tracking" != xno; then
2662
ac_cpp='$CPP $CPPFLAGS'
2663
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2664
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2665
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2666
if test -n "$ac_tool_prefix"; then
2667
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2668
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2669
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2670
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2671
if test "${ac_cv_prog_CC+set}" = set; then
2672
echo $ECHO_N "(cached) $ECHO_C" >&6
2674
if test -n "$CC"; then
2675
ac_cv_prog_CC="$CC" # Let the user override the test.
2677
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2681
test -z "$as_dir" && as_dir=.
2682
for ac_exec_ext in '' $ac_executable_extensions; do
2683
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2684
ac_cv_prog_CC="${ac_tool_prefix}gcc"
2685
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2695
if test -n "$CC"; then
2696
{ echo "$as_me:$LINENO: result: $CC" >&5
2697
echo "${ECHO_T}$CC" >&6; }
2699
{ echo "$as_me:$LINENO: result: no" >&5
2700
echo "${ECHO_T}no" >&6; }
2705
if test -z "$ac_cv_prog_CC"; then
2707
# Extract the first word of "gcc", so it can be a program name with args.
2708
set dummy gcc; ac_word=$2
2709
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2710
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2711
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2712
echo $ECHO_N "(cached) $ECHO_C" >&6
2714
if test -n "$ac_ct_CC"; then
2715
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2717
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2721
test -z "$as_dir" && as_dir=.
2722
for ac_exec_ext in '' $ac_executable_extensions; do
2723
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2724
ac_cv_prog_ac_ct_CC="gcc"
2725
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2734
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2735
if test -n "$ac_ct_CC"; then
2736
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2737
echo "${ECHO_T}$ac_ct_CC" >&6; }
2739
{ echo "$as_me:$LINENO: result: no" >&5
2740
echo "${ECHO_T}no" >&6; }
2743
if test "x$ac_ct_CC" = x; then
2746
case $cross_compiling:$ac_tool_warned in
2748
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2749
whose name does not start with the host triplet. If you think this
2750
configuration is useful to you, please write to autoconf@gnu.org." >&5
2751
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2752
whose name does not start with the host triplet. If you think this
2753
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2754
ac_tool_warned=yes ;;
2762
if test -z "$CC"; then
2763
if test -n "$ac_tool_prefix"; then
2764
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2765
set dummy ${ac_tool_prefix}cc; ac_word=$2
2766
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2767
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2768
if test "${ac_cv_prog_CC+set}" = set; then
2769
echo $ECHO_N "(cached) $ECHO_C" >&6
2771
if test -n "$CC"; then
2772
ac_cv_prog_CC="$CC" # Let the user override the test.
2774
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2778
test -z "$as_dir" && as_dir=.
2779
for ac_exec_ext in '' $ac_executable_extensions; do
2780
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2781
ac_cv_prog_CC="${ac_tool_prefix}cc"
2782
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2792
if test -n "$CC"; then
2793
{ echo "$as_me:$LINENO: result: $CC" >&5
2794
echo "${ECHO_T}$CC" >&6; }
2796
{ echo "$as_me:$LINENO: result: no" >&5
2797
echo "${ECHO_T}no" >&6; }
2803
if test -z "$CC"; then
2804
# Extract the first word of "cc", so it can be a program name with args.
2805
set dummy cc; ac_word=$2
2806
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2807
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2808
if test "${ac_cv_prog_CC+set}" = set; then
2809
echo $ECHO_N "(cached) $ECHO_C" >&6
2811
if test -n "$CC"; then
2812
ac_cv_prog_CC="$CC" # Let the user override the test.
2815
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2819
test -z "$as_dir" && as_dir=.
2820
for ac_exec_ext in '' $ac_executable_extensions; do
2821
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2822
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2823
ac_prog_rejected=yes
2827
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2834
if test $ac_prog_rejected = yes; then
2835
# We found a bogon in the path, so make sure we never use it.
2836
set dummy $ac_cv_prog_CC
2838
if test $# != 0; then
2839
# We chose a different compiler from the bogus one.
2840
# However, it has the same basename, so the bogon will be chosen
2841
# first if we set CC to just the basename; use the full file name.
2843
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2849
if test -n "$CC"; then
2850
{ echo "$as_me:$LINENO: result: $CC" >&5
2851
echo "${ECHO_T}$CC" >&6; }
2853
{ echo "$as_me:$LINENO: result: no" >&5
2854
echo "${ECHO_T}no" >&6; }
2859
if test -z "$CC"; then
2860
if test -n "$ac_tool_prefix"; then
2861
for ac_prog in cl.exe
2863
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2864
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2865
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2866
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2867
if test "${ac_cv_prog_CC+set}" = set; then
2868
echo $ECHO_N "(cached) $ECHO_C" >&6
2870
if test -n "$CC"; then
2871
ac_cv_prog_CC="$CC" # Let the user override the test.
2873
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2877
test -z "$as_dir" && as_dir=.
2878
for ac_exec_ext in '' $ac_executable_extensions; do
2879
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2880
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2881
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2891
if test -n "$CC"; then
2892
{ echo "$as_me:$LINENO: result: $CC" >&5
2893
echo "${ECHO_T}$CC" >&6; }
2895
{ echo "$as_me:$LINENO: result: no" >&5
2896
echo "${ECHO_T}no" >&6; }
2900
test -n "$CC" && break
2903
if test -z "$CC"; then
2905
for ac_prog in cl.exe
2907
# Extract the first word of "$ac_prog", so it can be a program name with args.
2908
set dummy $ac_prog; ac_word=$2
2909
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2910
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2911
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2912
echo $ECHO_N "(cached) $ECHO_C" >&6
2914
if test -n "$ac_ct_CC"; then
2915
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2917
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2921
test -z "$as_dir" && as_dir=.
2922
for ac_exec_ext in '' $ac_executable_extensions; do
2923
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2924
ac_cv_prog_ac_ct_CC="$ac_prog"
2925
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2934
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2935
if test -n "$ac_ct_CC"; then
2936
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2937
echo "${ECHO_T}$ac_ct_CC" >&6; }
2939
{ echo "$as_me:$LINENO: result: no" >&5
2940
echo "${ECHO_T}no" >&6; }
2944
test -n "$ac_ct_CC" && break
2947
if test "x$ac_ct_CC" = x; then
2950
case $cross_compiling:$ac_tool_warned in
2952
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2953
whose name does not start with the host triplet. If you think this
2954
configuration is useful to you, please write to autoconf@gnu.org." >&5
2955
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2956
whose name does not start with the host triplet. If you think this
2957
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2958
ac_tool_warned=yes ;;
2967
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2968
See \`config.log' for more details." >&5
2969
echo "$as_me: error: no acceptable C compiler found in \$PATH
2970
See \`config.log' for more details." >&2;}
2971
{ (exit 1); exit 1; }; }
2973
# Provide some information about the compiler.
2974
echo "$as_me:$LINENO: checking for C compiler version" >&5
2975
ac_compiler=`set X $ac_compile; echo $2`
2976
{ (ac_try="$ac_compiler --version >&5"
2978
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2979
*) ac_try_echo=$ac_try;;
2981
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2982
(eval "$ac_compiler --version >&5") 2>&5
2984
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985
(exit $ac_status); }
2986
{ (ac_try="$ac_compiler -v >&5"
2988
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2989
*) ac_try_echo=$ac_try;;
2991
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2992
(eval "$ac_compiler -v >&5") 2>&5
2994
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995
(exit $ac_status); }
2996
{ (ac_try="$ac_compiler -V >&5"
2998
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2999
*) ac_try_echo=$ac_try;;
3001
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3002
(eval "$ac_compiler -V >&5") 2>&5
3004
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3005
(exit $ac_status); }
3007
cat >conftest.$ac_ext <<_ACEOF
3010
cat confdefs.h >>conftest.$ac_ext
3011
cat >>conftest.$ac_ext <<_ACEOF
3012
/* end confdefs.h. */
3022
ac_clean_files_save=$ac_clean_files
3023
ac_clean_files="$ac_clean_files a.out a.exe b.out"
3024
# Try to create an executable without -o first, disregard a.out.
3025
# It will help us diagnose broken compilers, and finding out an intuition
3027
{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3028
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3029
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3031
# List of possible output files, starting from the most likely.
3032
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3033
# only as a last resort. b.out is created by i960 compilers.
3034
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3036
# The IRIX 6 linker writes into existing files which may not be
3037
# executable, retaining their permissions. Remove them first so a
3038
# subsequent execution test works.
3040
for ac_file in $ac_files
3043
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3044
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
3049
if { (ac_try="$ac_link_default"
3051
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3052
*) ac_try_echo=$ac_try;;
3054
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3055
(eval "$ac_link_default") 2>&5
3057
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058
(exit $ac_status); }; then
3059
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3060
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3061
# in a Makefile. We should not override ac_cv_exeext if it was cached,
3062
# so that the user can short-circuit this test for compilers unknown to
3064
for ac_file in $ac_files ''
3066
test -f "$ac_file" || continue
3068
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3071
# We found the default executable, but exeext='' is most
3075
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3077
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3079
# We set ac_cv_exeext here because the later test for it is not
3080
# safe: cross compilers may not add the suffix if given an `-o'
3081
# argument, so we may need to know it at that point already.
3082
# Even if this section looks crufty: it has the advantage of
3089
test "$ac_cv_exeext" = no && ac_cv_exeext=
3095
{ echo "$as_me:$LINENO: result: $ac_file" >&5
3096
echo "${ECHO_T}$ac_file" >&6; }
3097
if test -z "$ac_file"; then
3098
echo "$as_me: failed program was:" >&5
3099
sed 's/^/| /' conftest.$ac_ext >&5
3101
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3102
See \`config.log' for more details." >&5
3103
echo "$as_me: error: C compiler cannot create executables
3104
See \`config.log' for more details." >&2;}
3105
{ (exit 77); exit 77; }; }
3108
ac_exeext=$ac_cv_exeext
3110
# Check that the compiler produces executables we can run. If not, either
3111
# the compiler is broken, or we cross compile.
3112
{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3113
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3114
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3115
# If not cross compiling, check that we can run a simple program.
3116
if test "$cross_compiling" != yes; then
3117
if { ac_try='./$ac_file'
3118
{ (case "(($ac_try" in
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_try") 2>&5
3125
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126
(exit $ac_status); }; }; then
3129
if test "$cross_compiling" = maybe; then
3132
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3133
If you meant to cross compile, use \`--host'.
3134
See \`config.log' for more details." >&5
3135
echo "$as_me: error: cannot run C compiled programs.
3136
If you meant to cross compile, use \`--host'.
3137
See \`config.log' for more details." >&2;}
3138
{ (exit 1); exit 1; }; }
3142
{ echo "$as_me:$LINENO: result: yes" >&5
3143
echo "${ECHO_T}yes" >&6; }
3145
rm -f a.out a.exe conftest$ac_cv_exeext b.out
3146
ac_clean_files=$ac_clean_files_save
3147
# Check that the compiler produces executables we can run. If not, either
3148
# the compiler is broken, or we cross compile.
3149
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3150
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3151
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
3152
echo "${ECHO_T}$cross_compiling" >&6; }
3154
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
3155
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3156
if { (ac_try="$ac_link"
3158
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3159
*) ac_try_echo=$ac_try;;
3161
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3162
(eval "$ac_link") 2>&5
3164
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165
(exit $ac_status); }; then
3166
# If both `conftest.exe' and `conftest' are `present' (well, observable)
3167
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3168
# work properly (i.e., refer to `conftest.exe'), while it won't with
3170
for ac_file in conftest.exe conftest conftest.*; do
3171
test -f "$ac_file" || continue
3173
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3174
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3180
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3181
See \`config.log' for more details." >&5
3182
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3183
See \`config.log' for more details." >&2;}
3184
{ (exit 1); exit 1; }; }
3187
rm -f conftest$ac_cv_exeext
3188
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3189
echo "${ECHO_T}$ac_cv_exeext" >&6; }
3191
rm -f conftest.$ac_ext
3192
EXEEXT=$ac_cv_exeext
3194
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3195
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3196
if test "${ac_cv_objext+set}" = set; then
3197
echo $ECHO_N "(cached) $ECHO_C" >&6
3199
cat >conftest.$ac_ext <<_ACEOF
3202
cat confdefs.h >>conftest.$ac_ext
3203
cat >>conftest.$ac_ext <<_ACEOF
3204
/* end confdefs.h. */
3214
rm -f conftest.o conftest.obj
3215
if { (ac_try="$ac_compile"
3217
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3218
*) ac_try_echo=$ac_try;;
3220
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3221
(eval "$ac_compile") 2>&5
3223
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3224
(exit $ac_status); }; then
3225
for ac_file in conftest.o conftest.obj conftest.*; do
3226
test -f "$ac_file" || continue;
3228
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3229
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3234
echo "$as_me: failed program was:" >&5
3235
sed 's/^/| /' conftest.$ac_ext >&5
3237
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3238
See \`config.log' for more details." >&5
3239
echo "$as_me: error: cannot compute suffix of object files: cannot compile
3240
See \`config.log' for more details." >&2;}
3241
{ (exit 1); exit 1; }; }
3244
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3246
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3247
echo "${ECHO_T}$ac_cv_objext" >&6; }
3248
OBJEXT=$ac_cv_objext
3250
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3251
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3252
if test "${ac_cv_c_compiler_gnu+set}" = set; then
3253
echo $ECHO_N "(cached) $ECHO_C" >&6
3255
cat >conftest.$ac_ext <<_ACEOF
3258
cat confdefs.h >>conftest.$ac_ext
3259
cat >>conftest.$ac_ext <<_ACEOF
3260
/* end confdefs.h. */
3273
rm -f conftest.$ac_objext
3274
if { (ac_try="$ac_compile"
3276
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3277
*) ac_try_echo=$ac_try;;
3279
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3280
(eval "$ac_compile") 2>conftest.er1
3282
grep -v '^ *+' conftest.er1 >conftest.err
3284
cat conftest.err >&5
3285
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286
(exit $ac_status); } && {
3287
test -z "$ac_c_werror_flag" ||
3288
test ! -s conftest.err
3289
} && test -s conftest.$ac_objext; then
3292
echo "$as_me: failed program was:" >&5
3293
sed 's/^/| /' conftest.$ac_ext >&5
3298
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3299
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3302
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3303
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3304
GCC=`test $ac_compiler_gnu = yes && echo yes`
3305
ac_test_CFLAGS=${CFLAGS+set}
3306
ac_save_CFLAGS=$CFLAGS
3307
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3308
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3309
if test "${ac_cv_prog_cc_g+set}" = set; then
3310
echo $ECHO_N "(cached) $ECHO_C" >&6
3312
ac_save_c_werror_flag=$ac_c_werror_flag
3313
ac_c_werror_flag=yes
3316
cat >conftest.$ac_ext <<_ACEOF
3319
cat confdefs.h >>conftest.$ac_ext
3320
cat >>conftest.$ac_ext <<_ACEOF
3321
/* end confdefs.h. */
3331
rm -f conftest.$ac_objext
3332
if { (ac_try="$ac_compile"
3334
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3335
*) ac_try_echo=$ac_try;;
3337
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3338
(eval "$ac_compile") 2>conftest.er1
3340
grep -v '^ *+' conftest.er1 >conftest.err
3342
cat conftest.err >&5
3343
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344
(exit $ac_status); } && {
3345
test -z "$ac_c_werror_flag" ||
3346
test ! -s conftest.err
3347
} && test -s conftest.$ac_objext; then
3350
echo "$as_me: failed program was:" >&5
3351
sed 's/^/| /' conftest.$ac_ext >&5
3354
cat >conftest.$ac_ext <<_ACEOF
3357
cat confdefs.h >>conftest.$ac_ext
3358
cat >>conftest.$ac_ext <<_ACEOF
3359
/* end confdefs.h. */
3369
rm -f conftest.$ac_objext
3370
if { (ac_try="$ac_compile"
3372
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3373
*) ac_try_echo=$ac_try;;
3375
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3376
(eval "$ac_compile") 2>conftest.er1
3378
grep -v '^ *+' conftest.er1 >conftest.err
3380
cat conftest.err >&5
3381
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382
(exit $ac_status); } && {
3383
test -z "$ac_c_werror_flag" ||
3384
test ! -s conftest.err
3385
} && test -s conftest.$ac_objext; then
3388
echo "$as_me: failed program was:" >&5
3389
sed 's/^/| /' conftest.$ac_ext >&5
3391
ac_c_werror_flag=$ac_save_c_werror_flag
3393
cat >conftest.$ac_ext <<_ACEOF
3396
cat confdefs.h >>conftest.$ac_ext
3397
cat >>conftest.$ac_ext <<_ACEOF
3398
/* end confdefs.h. */
3408
rm -f conftest.$ac_objext
3409
if { (ac_try="$ac_compile"
3411
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3412
*) ac_try_echo=$ac_try;;
3414
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3415
(eval "$ac_compile") 2>conftest.er1
3417
grep -v '^ *+' conftest.er1 >conftest.err
3419
cat conftest.err >&5
3420
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3421
(exit $ac_status); } && {
3422
test -z "$ac_c_werror_flag" ||
3423
test ! -s conftest.err
3424
} && test -s conftest.$ac_objext; then
3427
echo "$as_me: failed program was:" >&5
3428
sed 's/^/| /' conftest.$ac_ext >&5
3433
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3436
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3439
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3440
ac_c_werror_flag=$ac_save_c_werror_flag
3442
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3443
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3444
if test "$ac_test_CFLAGS" = set; then
3445
CFLAGS=$ac_save_CFLAGS
3446
elif test $ac_cv_prog_cc_g = yes; then
3447
if test "$GCC" = yes; then
3453
if test "$GCC" = yes; then
3459
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3460
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3461
if test "${ac_cv_prog_cc_c89+set}" = set; then
3462
echo $ECHO_N "(cached) $ECHO_C" >&6
3464
ac_cv_prog_cc_c89=no
3466
cat >conftest.$ac_ext <<_ACEOF
3469
cat confdefs.h >>conftest.$ac_ext
3470
cat >>conftest.$ac_ext <<_ACEOF
3471
/* end confdefs.h. */
3474
#include <sys/types.h>
3475
#include <sys/stat.h>
3476
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3477
struct buf { int x; };
3478
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3479
static char *e (p, i)
3485
static char *f (char * (*g) (char **, int), char **p, ...)
3490
s = g (p, va_arg (v,int));
3495
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3496
function prototypes and stuff, but not '\xHH' hex character constants.
3497
These don't provoke an error unfortunately, instead are silently treated
3498
as 'x'. The following induces an error, until -std is added to get
3499
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3500
array size at least. It's necessary to write '\x00'==0 to get something
3501
that's true only with -std. */
3502
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3504
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3505
inside strings and character constants. */
3507
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3509
int test (int i, double x);
3510
struct s1 {int (*f) (int a);};
3511
struct s2 {int (*f) (double a);};
3512
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3518
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3523
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3524
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3526
CC="$ac_save_CC $ac_arg"
3527
rm -f conftest.$ac_objext
3528
if { (ac_try="$ac_compile"
3530
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3531
*) ac_try_echo=$ac_try;;
3533
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3534
(eval "$ac_compile") 2>conftest.er1
3536
grep -v '^ *+' conftest.er1 >conftest.err
3538
cat conftest.err >&5
3539
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3540
(exit $ac_status); } && {
3541
test -z "$ac_c_werror_flag" ||
3542
test ! -s conftest.err
3543
} && test -s conftest.$ac_objext; then
3544
ac_cv_prog_cc_c89=$ac_arg
3546
echo "$as_me: failed program was:" >&5
3547
sed 's/^/| /' conftest.$ac_ext >&5
3552
rm -f core conftest.err conftest.$ac_objext
3553
test "x$ac_cv_prog_cc_c89" != "xno" && break
3555
rm -f conftest.$ac_ext
3560
case "x$ac_cv_prog_cc_c89" in
3562
{ echo "$as_me:$LINENO: result: none needed" >&5
3563
echo "${ECHO_T}none needed" >&6; } ;;
3565
{ echo "$as_me:$LINENO: result: unsupported" >&5
3566
echo "${ECHO_T}unsupported" >&6; } ;;
3568
CC="$CC $ac_cv_prog_cc_c89"
3569
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3570
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3575
ac_cpp='$CPP $CPPFLAGS'
3576
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3577
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3578
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3580
depcc="$CC" am_compiler_list=
3582
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3583
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3584
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3585
echo $ECHO_N "(cached) $ECHO_C" >&6
3587
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3588
# We make a subdir and do the tests there. Otherwise we can end up
3589
# making bogus files that we don't know about and never remove. For
3590
# instance it was reported that on HP-UX the gcc test will end up
3591
# making a dummy file named `D' -- because `-MD' means `put the output
3594
# Copy depcomp to subdir because otherwise we won't find it if we're
3595
# using a relative directory.
3596
cp "$am_depcomp" conftest.dir
3598
# We will build objects and dependencies in a subdirectory because
3599
# it helps to detect inapplicable dependency modes. For instance
3600
# both Tru64's cc and ICC support -MD to output dependencies as a
3601
# side effect of compilation, but ICC will put the dependencies in
3602
# the current directory while Tru64 will put them in the object
3606
am_cv_CC_dependencies_compiler_type=none
3607
if test "$am_compiler_list" = ""; then
3608
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3610
for depmode in $am_compiler_list; do
3611
# Setup a source with many dependencies, because some compilers
3612
# like to wrap large dependency lists on column 80 (with \), and
3613
# we should not choose a depcomp mode which is confused by this.
3615
# We need to recreate these files for each test, as the compiler may
3616
# overwrite some of them when testing with obscure command lines.
3617
# This happens at least with the AIX C compiler.
3619
for i in 1 2 3 4 5 6; do
3620
echo '#include "conftst'$i'.h"' >> sub/conftest.c
3621
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3622
# Solaris 8's {/usr,}/bin/sh.
3623
touch sub/conftst$i.h
3625
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3629
# after this tag, mechanisms are not by side-effect, so they'll
3630
# only be used when explicitly requested
3631
if test "x$enable_dependency_tracking" = xyes; then
3639
# We check with `-c' and `-o' for the sake of the "dashmstdout"
3640
# mode. It turns out that the SunPro C++ compiler does not properly
3641
# handle `-M -o', and we need to detect this.
3642
if depmode=$depmode \
3643
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3644
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3645
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3646
>/dev/null 2>conftest.err &&
3647
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3648
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3649
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3650
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3651
# icc doesn't choke on unknown options, it will just issue warnings
3652
# or remarks (even with -Werror). So we grep stderr for any message
3653
# that says an option was ignored or not supported.
3654
# When given -MP, icc 7.0 and 7.1 complain thusly:
3655
# icc: Command line warning: ignoring option '-M'; no argument required
3656
# The diagnosis changed in icc 8.0:
3657
# icc: Command line remark: option '-MP' not supported
3658
if (grep 'ignoring option' conftest.err ||
3659
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3660
am_cv_CC_dependencies_compiler_type=$depmode
3669
am_cv_CC_dependencies_compiler_type=none
3673
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3674
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3675
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3678
test "x$enable_dependency_tracking" != xno \
3679
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3681
am__fastdepCC_FALSE='#'
3683
am__fastdepCC_TRUE='#'
3684
am__fastdepCC_FALSE=
3688
{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3689
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3690
if test "${lt_cv_path_SED+set}" = set; then
3691
echo $ECHO_N "(cached) $ECHO_C" >&6
3693
# Loop through the user's path and test for sed and gsed.
3694
# Then use that list of sed's as ones to test for truncation.
3695
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3699
test -z "$as_dir" && as_dir=.
3700
for lt_ac_prog in sed gsed; do
3701
for ac_exec_ext in '' $ac_executable_extensions; do
3702
if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3703
lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3711
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3712
# along with /bin/sed that truncates output.
3713
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3714
test ! -f $lt_ac_sed && continue
3715
cat /dev/null > conftest.in
3717
echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3718
# Check for GNU sed and select it if it is found.
3719
if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3720
lt_cv_path_SED=$lt_ac_sed
3724
cat conftest.in conftest.in >conftest.tmp
3725
mv conftest.tmp conftest.in
3726
cp conftest.in conftest.nl
3728
$lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3729
cmp -s conftest.out conftest.nl || break
3730
# 10000 chars as input seems more than enough
3731
test $lt_ac_count -gt 10 && break
3732
lt_ac_count=`expr $lt_ac_count + 1`
3733
if test $lt_ac_count -gt $lt_ac_max; then
3734
lt_ac_max=$lt_ac_count
3735
lt_cv_path_SED=$lt_ac_sed
3744
{ echo "$as_me:$LINENO: result: $SED" >&5
3745
echo "${ECHO_T}$SED" >&6; }
3747
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3748
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3749
if test "${ac_cv_path_GREP+set}" = set; then
3750
echo $ECHO_N "(cached) $ECHO_C" >&6
3752
# Extract the first word of "grep ggrep" to use in msg output
3753
if test -z "$GREP"; then
3754
set dummy grep ggrep; ac_prog_name=$2
3755
if test "${ac_cv_path_GREP+set}" = set; then
3756
echo $ECHO_N "(cached) $ECHO_C" >&6
3758
ac_path_GREP_found=false
3759
# Loop through the user's path and test for each of PROGNAME-LIST
3760
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3761
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3764
test -z "$as_dir" && as_dir=.
3765
for ac_prog in grep ggrep; do
3766
for ac_exec_ext in '' $ac_executable_extensions; do
3767
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3768
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3769
# Check for GNU ac_path_GREP and select it if it is found.
3770
# Check for GNU $ac_path_GREP
3771
case `"$ac_path_GREP" --version 2>&1` in
3773
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3776
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3779
cat "conftest.in" "conftest.in" >"conftest.tmp"
3780
mv "conftest.tmp" "conftest.in"
3781
cp "conftest.in" "conftest.nl"
3782
echo 'GREP' >> "conftest.nl"
3783
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3784
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3785
ac_count=`expr $ac_count + 1`
3786
if test $ac_count -gt ${ac_path_GREP_max-0}; then
3787
# Best one so far, save it but keep looking for a better one
3788
ac_cv_path_GREP="$ac_path_GREP"
3789
ac_path_GREP_max=$ac_count
3791
# 10*(2^10) chars as input seems more than enough
3792
test $ac_count -gt 10 && break
3794
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3798
$ac_path_GREP_found && break 3
3808
GREP="$ac_cv_path_GREP"
3809
if test -z "$GREP"; then
3810
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3811
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3812
{ (exit 1); exit 1; }; }
3816
ac_cv_path_GREP=$GREP
3821
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3822
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3823
GREP="$ac_cv_path_GREP"
3826
{ echo "$as_me:$LINENO: checking for egrep" >&5
3827
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3828
if test "${ac_cv_path_EGREP+set}" = set; then
3829
echo $ECHO_N "(cached) $ECHO_C" >&6
3831
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3832
then ac_cv_path_EGREP="$GREP -E"
3834
# Extract the first word of "egrep" to use in msg output
3835
if test -z "$EGREP"; then
3836
set dummy egrep; ac_prog_name=$2
3837
if test "${ac_cv_path_EGREP+set}" = set; then
3838
echo $ECHO_N "(cached) $ECHO_C" >&6
3840
ac_path_EGREP_found=false
3841
# Loop through the user's path and test for each of PROGNAME-LIST
3842
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3843
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3846
test -z "$as_dir" && as_dir=.
3847
for ac_prog in egrep; do
3848
for ac_exec_ext in '' $ac_executable_extensions; do
3849
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3850
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3851
# Check for GNU ac_path_EGREP and select it if it is found.
3852
# Check for GNU $ac_path_EGREP
3853
case `"$ac_path_EGREP" --version 2>&1` in
3855
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3858
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3861
cat "conftest.in" "conftest.in" >"conftest.tmp"
3862
mv "conftest.tmp" "conftest.in"
3863
cp "conftest.in" "conftest.nl"
3864
echo 'EGREP' >> "conftest.nl"
3865
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3866
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3867
ac_count=`expr $ac_count + 1`
3868
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3869
# Best one so far, save it but keep looking for a better one
3870
ac_cv_path_EGREP="$ac_path_EGREP"
3871
ac_path_EGREP_max=$ac_count
3873
# 10*(2^10) chars as input seems more than enough
3874
test $ac_count -gt 10 && break
3876
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3880
$ac_path_EGREP_found && break 3
3890
EGREP="$ac_cv_path_EGREP"
3891
if test -z "$EGREP"; then
3892
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3893
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3894
{ (exit 1); exit 1; }; }
3898
ac_cv_path_EGREP=$EGREP
3904
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3905
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3906
EGREP="$ac_cv_path_EGREP"
3910
# Check whether --with-gnu-ld was given.
3911
if test "${with_gnu_ld+set}" = set; then
3912
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3918
if test "$GCC" = yes; then
3919
# Check if gcc -print-prog-name=ld gives a path.
3920
{ echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3921
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3924
# gcc leaves a trailing carriage return which upsets mingw
3925
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3927
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3930
# Accept absolute paths.
3932
re_direlt='/[^/][^/]*/\.\./'
3933
# Canonicalize the pathname of ld
3934
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3935
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3936
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3938
test -z "$LD" && LD="$ac_prog"
3941
# If it fails, then pretend we aren't using GCC.
3945
# If it is relative, then search for the first ld in PATH.
3949
elif test "$with_gnu_ld" = yes; then
3950
{ echo "$as_me:$LINENO: checking for GNU ld" >&5
3951
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3953
{ echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3954
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
3956
if test "${lt_cv_path_LD+set}" = set; then
3957
echo $ECHO_N "(cached) $ECHO_C" >&6
3959
if test -z "$LD"; then
3960
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3961
for ac_dir in $PATH; do
3963
test -z "$ac_dir" && ac_dir=.
3964
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3965
lt_cv_path_LD="$ac_dir/$ac_prog"
3966
# Check to see if the program is GNU ld. I'd rather use --version,
3967
# but apparently some variants of GNU ld only accept -v.
3968
# Break only if it was the GNU/non-GNU ld that we prefer.
3969
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3970
*GNU* | *'with BFD'*)
3971
test "$with_gnu_ld" != no && break
3974
test "$with_gnu_ld" != yes && break
3981
lt_cv_path_LD="$LD" # Let the user override the test with a path.
3986
if test -n "$LD"; then
3987
{ echo "$as_me:$LINENO: result: $LD" >&5
3988
echo "${ECHO_T}$LD" >&6; }
3990
{ echo "$as_me:$LINENO: result: no" >&5
3991
echo "${ECHO_T}no" >&6; }
3993
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3994
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3995
{ (exit 1); exit 1; }; }
3996
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3997
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
3998
if test "${lt_cv_prog_gnu_ld+set}" = set; then
3999
echo $ECHO_N "(cached) $ECHO_C" >&6
4001
# I'd rather use --version here, but apparently some GNU lds only accept -v.
4002
case `$LD -v 2>&1 </dev/null` in
4003
*GNU* | *'with BFD'*)
4004
lt_cv_prog_gnu_ld=yes
4007
lt_cv_prog_gnu_ld=no
4011
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4012
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4013
with_gnu_ld=$lt_cv_prog_gnu_ld
4016
{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4017
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4018
if test "${lt_cv_ld_reload_flag+set}" = set; then
4019
echo $ECHO_N "(cached) $ECHO_C" >&6
4021
lt_cv_ld_reload_flag='-r'
4023
{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4024
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4025
reload_flag=$lt_cv_ld_reload_flag
4026
case $reload_flag in
4028
*) reload_flag=" $reload_flag" ;;
4030
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4033
if test "$GCC" = yes; then
4034
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4036
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4041
{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4042
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4043
if test "${lt_cv_path_NM+set}" = set; then
4044
echo $ECHO_N "(cached) $ECHO_C" >&6
4046
if test -n "$NM"; then
4047
# Let the user override the test.
4050
lt_nm_to_check="${ac_tool_prefix}nm"
4051
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4052
lt_nm_to_check="$lt_nm_to_check nm"
4054
for lt_tmp_nm in $lt_nm_to_check; do
4055
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4056
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4058
test -z "$ac_dir" && ac_dir=.
4059
tmp_nm="$ac_dir/$lt_tmp_nm"
4060
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4061
# Check to see if the nm accepts a BSD-compat flag.
4062
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4063
# nm: unknown option "B" ignored
4064
# Tru64's nm complains that /dev/null is an invalid object file
4065
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4066
*/dev/null* | *'Invalid file or object type'*)
4067
lt_cv_path_NM="$tmp_nm -B"
4071
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4073
lt_cv_path_NM="$tmp_nm -p"
4077
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4078
continue # so that we can try to find one that supports BSD flags
4087
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4090
{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4091
echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4094
{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
4095
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4097
if test "$LN_S" = "ln -s"; then
4098
{ echo "$as_me:$LINENO: result: yes" >&5
4099
echo "${ECHO_T}yes" >&6; }
4101
{ echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4102
echo "${ECHO_T}no, using $LN_S" >&6; }
4105
{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4106
echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4107
if test "${lt_cv_deplibs_check_method+set}" = set; then
4108
echo $ECHO_N "(cached) $ECHO_C" >&6
4110
lt_cv_file_magic_cmd='$MAGIC_CMD'
4111
lt_cv_file_magic_test_file=
4112
lt_cv_deplibs_check_method='unknown'
4113
# Need to set the preceding variable on all platforms that support
4114
# interlibrary dependencies.
4115
# 'none' -- dependencies not supported.
4116
# `unknown' -- same as none, but documents that we really don't know.
4117
# 'pass_all' -- all dependencies passed with no checks.
4118
# 'test_compile' -- check by making test program.
4119
# 'file_magic [[regex]]' -- check by looking for files in library path
4120
# which responds to the $file_magic_cmd with a given extended regex.
4121
# If you have `file' or equivalent on your system and you're not sure
4122
# whether `pass_all' will *always* work, you probably want this one.
4126
lt_cv_deplibs_check_method=pass_all
4130
lt_cv_deplibs_check_method=pass_all
4134
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4135
lt_cv_file_magic_cmd='/usr/bin/file -L'
4136
lt_cv_file_magic_test_file=/shlib/libc.so
4140
# func_win32_libid is a shell function defined in ltmain.sh
4141
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4142
lt_cv_file_magic_cmd='func_win32_libid'
4146
# Base MSYS/MinGW do not provide the 'file' command needed by
4147
# func_win32_libid shell function, so use a weaker test based on 'objdump',
4148
# unless we find 'file', for example because we are cross-compiling.
4149
if ( file / ) >/dev/null 2>&1; then
4150
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4151
lt_cv_file_magic_cmd='func_win32_libid'
4153
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4154
lt_cv_file_magic_cmd='$OBJDUMP -f'
4158
darwin* | rhapsody*)
4159
lt_cv_deplibs_check_method=pass_all
4162
freebsd* | dragonfly*)
4163
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4166
# Not sure whether the presence of OpenBSD here was a mistake.
4167
# Let's accept both of them until this is cleared up.
4168
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4169
lt_cv_file_magic_cmd=/usr/bin/file
4170
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4174
lt_cv_deplibs_check_method=pass_all
4179
lt_cv_deplibs_check_method=pass_all
4182
hpux10.20* | hpux11*)
4183
lt_cv_file_magic_cmd=/usr/bin/file
4186
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4187
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4190
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]'
4191
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4194
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4195
lt_cv_file_magic_test_file=/usr/lib/libc.sl
4201
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4202
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4205
irix5* | irix6* | nonstopux*)
4207
*-32|*"-32 ") libmagic=32-bit;;
4208
*-n32|*"-n32 ") libmagic=N32;;
4209
*-64|*"-64 ") libmagic=64-bit;;
4210
*) libmagic=never-match;;
4212
lt_cv_deplibs_check_method=pass_all
4215
# This must be Linux ELF.
4216
linux* | k*bsd*-gnu)
4217
lt_cv_deplibs_check_method=pass_all
4220
netbsd* | netbsdelf*-gnu)
4221
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4222
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4224
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4229
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4230
lt_cv_file_magic_cmd=/usr/bin/file
4231
lt_cv_file_magic_test_file=/usr/lib/libnls.so
4235
lt_cv_deplibs_check_method=unknown
4239
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4240
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4242
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4246
osf3* | osf4* | osf5*)
4247
lt_cv_deplibs_check_method=pass_all
4251
lt_cv_deplibs_check_method=pass_all
4255
lt_cv_deplibs_check_method=pass_all
4259
case $host_vendor in
4261
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]'
4262
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4265
lt_cv_deplibs_check_method=pass_all
4268
lt_cv_file_magic_cmd='/bin/file'
4269
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4272
lt_cv_file_magic_cmd='/bin/file'
4273
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4274
lt_cv_file_magic_test_file=/lib/libc.so
4277
lt_cv_deplibs_check_method=pass_all
4280
lt_cv_deplibs_check_method=pass_all
4285
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4286
lt_cv_deplibs_check_method=pass_all
4291
{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4292
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4293
file_magic_cmd=$lt_cv_file_magic_cmd
4294
deplibs_check_method=$lt_cv_deplibs_check_method
4295
test -z "$deplibs_check_method" && deplibs_check_method=unknown
4300
# If no C compiler was specified, use CC.
4303
# If no C compiler flags were specified, use CFLAGS.
4304
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4306
# Allow CC to be a program name with arguments.
4310
# Check whether --enable-libtool-lock was given.
4311
if test "${enable_libtool_lock+set}" = set; then
4312
enableval=$enable_libtool_lock;
4315
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4317
# Some flags need to be propagated to the compiler or linker for good
4321
# Find out which ABI we are using.
4322
echo 'int i;' > conftest.$ac_ext
4323
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4324
(eval $ac_compile) 2>&5
4326
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4327
(exit $ac_status); }; then
4328
case `/usr/bin/file conftest.$ac_objext` in
4340
# Find out which ABI we are using.
4341
echo '#line 4341 "configure"' > conftest.$ac_ext
4342
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4343
(eval $ac_compile) 2>&5
4345
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346
(exit $ac_status); }; then
4347
if test "$lt_cv_prog_gnu_ld" = yes; then
4348
case `/usr/bin/file conftest.$ac_objext` in
4350
LD="${LD-ld} -melf32bsmip"
4353
LD="${LD-ld} -melf32bmipn32"
4356
LD="${LD-ld} -melf64bmip"
4360
case `/usr/bin/file conftest.$ac_objext` in
4376
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4377
s390*-*linux*|sparc*-*linux*)
4378
# Find out which ABI we are using.
4379
echo 'int i;' > conftest.$ac_ext
4380
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4381
(eval $ac_compile) 2>&5
4383
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4384
(exit $ac_status); }; then
4385
case `/usr/bin/file conftest.o` in
4388
x86_64-*kfreebsd*-gnu)
4389
LD="${LD-ld} -m elf_i386_fbsd"
4392
LD="${LD-ld} -m elf_i386"
4394
ppc64-*linux*|powerpc64-*linux*)
4395
LD="${LD-ld} -m elf32ppclinux"
4398
LD="${LD-ld} -m elf_s390"
4401
LD="${LD-ld} -m elf32_sparc"
4407
x86_64-*kfreebsd*-gnu)
4408
LD="${LD-ld} -m elf_x86_64_fbsd"
4411
LD="${LD-ld} -m elf_x86_64"
4413
ppc*-*linux*|powerpc*-*linux*)
4414
LD="${LD-ld} -m elf64ppc"
4417
LD="${LD-ld} -m elf64_s390"
4420
LD="${LD-ld} -m elf64_sparc"
4430
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
4431
SAVE_CFLAGS="$CFLAGS"
4432
CFLAGS="$CFLAGS -belf"
4433
{ echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4434
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4435
if test "${lt_cv_cc_needs_belf+set}" = set; then
4436
echo $ECHO_N "(cached) $ECHO_C" >&6
4439
ac_cpp='$CPP $CPPFLAGS'
4440
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4441
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4442
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4444
cat >conftest.$ac_ext <<_ACEOF
4447
cat confdefs.h >>conftest.$ac_ext
4448
cat >>conftest.$ac_ext <<_ACEOF
4449
/* end confdefs.h. */
4459
rm -f conftest.$ac_objext conftest$ac_exeext
4460
if { (ac_try="$ac_link"
4462
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4463
*) ac_try_echo=$ac_try;;
4465
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4466
(eval "$ac_link") 2>conftest.er1
4468
grep -v '^ *+' conftest.er1 >conftest.err
4470
cat conftest.err >&5
4471
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472
(exit $ac_status); } && {
4473
test -z "$ac_c_werror_flag" ||
4474
test ! -s conftest.err
4475
} && test -s conftest$ac_exeext &&
4476
$as_test_x conftest$ac_exeext; then
4477
lt_cv_cc_needs_belf=yes
4479
echo "$as_me: failed program was:" >&5
4480
sed 's/^/| /' conftest.$ac_ext >&5
4482
lt_cv_cc_needs_belf=no
4485
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4486
conftest$ac_exeext conftest.$ac_ext
4488
ac_cpp='$CPP $CPPFLAGS'
4489
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4490
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4491
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4494
{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4495
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4496
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4497
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4498
CFLAGS="$SAVE_CFLAGS"
4502
# Find out which ABI we are using.
4503
echo 'int i;' > conftest.$ac_ext
4504
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4505
(eval $ac_compile) 2>&5
4507
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4508
(exit $ac_status); }; then
4509
case `/usr/bin/file conftest.o` in
4511
case $lt_cv_prog_gnu_ld in
4512
yes*) LD="${LD-ld} -m elf64_sparc" ;;
4514
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4528
need_locks="$enable_libtool_lock"
4532
ac_cpp='$CPP $CPPFLAGS'
4533
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4534
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4535
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4536
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4537
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4538
# On Suns, sometimes $CPP names a directory.
4539
if test -n "$CPP" && test -d "$CPP"; then
4542
if test -z "$CPP"; then
4543
if test "${ac_cv_prog_CPP+set}" = set; then
4544
echo $ECHO_N "(cached) $ECHO_C" >&6
4546
# Double quotes because CPP needs to be expanded
4547
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4550
for ac_c_preproc_warn_flag in '' yes
4552
# Use a header file that comes with gcc, so configuring glibc
4553
# with a fresh cross-compiler works.
4554
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4555
# <limits.h> exists even on freestanding compilers.
4556
# On the NeXT, cc -E runs the code through the compiler's parser,
4557
# not just through cpp. "Syntax error" is here to catch this case.
4558
cat >conftest.$ac_ext <<_ACEOF
4561
cat confdefs.h >>conftest.$ac_ext
4562
cat >>conftest.$ac_ext <<_ACEOF
4563
/* end confdefs.h. */
4565
# include <limits.h>
4567
# include <assert.h>
4571
if { (ac_try="$ac_cpp conftest.$ac_ext"
4573
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4574
*) ac_try_echo=$ac_try;;
4576
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4577
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4579
grep -v '^ *+' conftest.er1 >conftest.err
4581
cat conftest.err >&5
4582
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4583
(exit $ac_status); } >/dev/null && {
4584
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4585
test ! -s conftest.err
4589
echo "$as_me: failed program was:" >&5
4590
sed 's/^/| /' conftest.$ac_ext >&5
4592
# Broken: fails on valid input.
4596
rm -f conftest.err conftest.$ac_ext
4598
# OK, works on sane cases. Now check whether nonexistent headers
4599
# can be detected and how.
4600
cat >conftest.$ac_ext <<_ACEOF
4603
cat confdefs.h >>conftest.$ac_ext
4604
cat >>conftest.$ac_ext <<_ACEOF
4605
/* end confdefs.h. */
4606
#include <ac_nonexistent.h>
4608
if { (ac_try="$ac_cpp conftest.$ac_ext"
4610
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4611
*) ac_try_echo=$ac_try;;
4613
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4614
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4616
grep -v '^ *+' conftest.er1 >conftest.err
4618
cat conftest.err >&5
4619
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620
(exit $ac_status); } >/dev/null && {
4621
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4622
test ! -s conftest.err
4624
# Broken: success on invalid input.
4627
echo "$as_me: failed program was:" >&5
4628
sed 's/^/| /' conftest.$ac_ext >&5
4630
# Passes both tests.
4635
rm -f conftest.err conftest.$ac_ext
4638
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4639
rm -f conftest.err conftest.$ac_ext
4640
if $ac_preproc_ok; then
4652
{ echo "$as_me:$LINENO: result: $CPP" >&5
4653
echo "${ECHO_T}$CPP" >&6; }
4655
for ac_c_preproc_warn_flag in '' yes
4657
# Use a header file that comes with gcc, so configuring glibc
4658
# with a fresh cross-compiler works.
4659
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4660
# <limits.h> exists even on freestanding compilers.
4661
# On the NeXT, cc -E runs the code through the compiler's parser,
4662
# not just through cpp. "Syntax error" is here to catch this case.
4663
cat >conftest.$ac_ext <<_ACEOF
4666
cat confdefs.h >>conftest.$ac_ext
4667
cat >>conftest.$ac_ext <<_ACEOF
4668
/* end confdefs.h. */
4670
# include <limits.h>
4672
# include <assert.h>
4676
if { (ac_try="$ac_cpp conftest.$ac_ext"
4678
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4679
*) ac_try_echo=$ac_try;;
4681
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4682
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4684
grep -v '^ *+' conftest.er1 >conftest.err
4686
cat conftest.err >&5
4687
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688
(exit $ac_status); } >/dev/null && {
4689
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4690
test ! -s conftest.err
4694
echo "$as_me: failed program was:" >&5
4695
sed 's/^/| /' conftest.$ac_ext >&5
4697
# Broken: fails on valid input.
4701
rm -f conftest.err conftest.$ac_ext
4703
# OK, works on sane cases. Now check whether nonexistent headers
4704
# can be detected and how.
4705
cat >conftest.$ac_ext <<_ACEOF
4708
cat confdefs.h >>conftest.$ac_ext
4709
cat >>conftest.$ac_ext <<_ACEOF
4710
/* end confdefs.h. */
4711
#include <ac_nonexistent.h>
4713
if { (ac_try="$ac_cpp conftest.$ac_ext"
4715
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4716
*) ac_try_echo=$ac_try;;
4718
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4719
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4721
grep -v '^ *+' conftest.er1 >conftest.err
4723
cat conftest.err >&5
4724
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4725
(exit $ac_status); } >/dev/null && {
4726
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4727
test ! -s conftest.err
4729
# Broken: success on invalid input.
4732
echo "$as_me: failed program was:" >&5
4733
sed 's/^/| /' conftest.$ac_ext >&5
4735
# Passes both tests.
4740
rm -f conftest.err conftest.$ac_ext
4743
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4744
rm -f conftest.err conftest.$ac_ext
4745
if $ac_preproc_ok; then
4748
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4749
See \`config.log' for more details." >&5
4750
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4751
See \`config.log' for more details." >&2;}
4752
{ (exit 1); exit 1; }; }
4756
ac_cpp='$CPP $CPPFLAGS'
4757
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4758
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4759
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4762
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4763
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4764
if test "${ac_cv_header_stdc+set}" = set; then
4765
echo $ECHO_N "(cached) $ECHO_C" >&6
4767
cat >conftest.$ac_ext <<_ACEOF
4770
cat confdefs.h >>conftest.$ac_ext
4771
cat >>conftest.$ac_ext <<_ACEOF
4772
/* end confdefs.h. */
4786
rm -f conftest.$ac_objext
4787
if { (ac_try="$ac_compile"
4789
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4790
*) ac_try_echo=$ac_try;;
4792
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4793
(eval "$ac_compile") 2>conftest.er1
4795
grep -v '^ *+' conftest.er1 >conftest.err
4797
cat conftest.err >&5
4798
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4799
(exit $ac_status); } && {
4800
test -z "$ac_c_werror_flag" ||
4801
test ! -s conftest.err
4802
} && test -s conftest.$ac_objext; then
4803
ac_cv_header_stdc=yes
4805
echo "$as_me: failed program was:" >&5
4806
sed 's/^/| /' conftest.$ac_ext >&5
4808
ac_cv_header_stdc=no
4811
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4813
if test $ac_cv_header_stdc = yes; then
4814
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4815
cat >conftest.$ac_ext <<_ACEOF
4818
cat confdefs.h >>conftest.$ac_ext
4819
cat >>conftest.$ac_ext <<_ACEOF
4820
/* end confdefs.h. */
4824
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4825
$EGREP "memchr" >/dev/null 2>&1; then
4828
ac_cv_header_stdc=no
4834
if test $ac_cv_header_stdc = yes; then
4835
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4836
cat >conftest.$ac_ext <<_ACEOF
4839
cat confdefs.h >>conftest.$ac_ext
4840
cat >>conftest.$ac_ext <<_ACEOF
4841
/* end confdefs.h. */
4845
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4846
$EGREP "free" >/dev/null 2>&1; then
4849
ac_cv_header_stdc=no
4855
if test $ac_cv_header_stdc = yes; then
4856
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4857
if test "$cross_compiling" = yes; then
4860
cat >conftest.$ac_ext <<_ACEOF
4863
cat confdefs.h >>conftest.$ac_ext
4864
cat >>conftest.$ac_ext <<_ACEOF
4865
/* end confdefs.h. */
4868
#if ((' ' & 0x0FF) == 0x020)
4869
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4870
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4872
# define ISLOWER(c) \
4873
(('a' <= (c) && (c) <= 'i') \
4874
|| ('j' <= (c) && (c) <= 'r') \
4875
|| ('s' <= (c) && (c) <= 'z'))
4876
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4879
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4884
for (i = 0; i < 256; i++)
4885
if (XOR (islower (i), ISLOWER (i))
4886
|| toupper (i) != TOUPPER (i))
4891
rm -f conftest$ac_exeext
4892
if { (ac_try="$ac_link"
4894
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4895
*) ac_try_echo=$ac_try;;
4897
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4898
(eval "$ac_link") 2>&5
4900
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4901
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4902
{ (case "(($ac_try" in
4903
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4904
*) ac_try_echo=$ac_try;;
4906
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4907
(eval "$ac_try") 2>&5
4909
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4910
(exit $ac_status); }; }; then
4913
echo "$as_me: program exited with status $ac_status" >&5
4914
echo "$as_me: failed program was:" >&5
4915
sed 's/^/| /' conftest.$ac_ext >&5
4918
ac_cv_header_stdc=no
4920
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4926
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4927
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4928
if test $ac_cv_header_stdc = yes; then
4930
cat >>confdefs.h <<\_ACEOF
4931
#define STDC_HEADERS 1
4936
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4946
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4947
inttypes.h stdint.h unistd.h
4949
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4950
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4951
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4952
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4953
echo $ECHO_N "(cached) $ECHO_C" >&6
4955
cat >conftest.$ac_ext <<_ACEOF
4958
cat confdefs.h >>conftest.$ac_ext
4959
cat >>conftest.$ac_ext <<_ACEOF
4960
/* end confdefs.h. */
4961
$ac_includes_default
4963
#include <$ac_header>
4965
rm -f conftest.$ac_objext
4966
if { (ac_try="$ac_compile"
4968
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4969
*) ac_try_echo=$ac_try;;
4971
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4972
(eval "$ac_compile") 2>conftest.er1
4974
grep -v '^ *+' conftest.er1 >conftest.err
4976
cat conftest.err >&5
4977
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4978
(exit $ac_status); } && {
4979
test -z "$ac_c_werror_flag" ||
4980
test ! -s conftest.err
4981
} && test -s conftest.$ac_objext; then
4982
eval "$as_ac_Header=yes"
4984
echo "$as_me: failed program was:" >&5
4985
sed 's/^/| /' conftest.$ac_ext >&5
4987
eval "$as_ac_Header=no"
4990
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4992
ac_res=`eval echo '${'$as_ac_Header'}'`
4993
{ echo "$as_me:$LINENO: result: $ac_res" >&5
4994
echo "${ECHO_T}$ac_res" >&6; }
4995
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4996
cat >>confdefs.h <<_ACEOF
4997
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5006
for ac_header in dlfcn.h
5008
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5009
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5010
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5011
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5012
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5013
echo $ECHO_N "(cached) $ECHO_C" >&6
5015
ac_res=`eval echo '${'$as_ac_Header'}'`
5016
{ echo "$as_me:$LINENO: result: $ac_res" >&5
5017
echo "${ECHO_T}$ac_res" >&6; }
5019
# Is the header compilable?
5020
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5021
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5022
cat >conftest.$ac_ext <<_ACEOF
5025
cat confdefs.h >>conftest.$ac_ext
5026
cat >>conftest.$ac_ext <<_ACEOF
5027
/* end confdefs.h. */
5028
$ac_includes_default
5029
#include <$ac_header>
5031
rm -f conftest.$ac_objext
5032
if { (ac_try="$ac_compile"
5034
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5035
*) ac_try_echo=$ac_try;;
5037
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5038
(eval "$ac_compile") 2>conftest.er1
5040
grep -v '^ *+' conftest.er1 >conftest.err
5042
cat conftest.err >&5
5043
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5044
(exit $ac_status); } && {
5045
test -z "$ac_c_werror_flag" ||
5046
test ! -s conftest.err
5047
} && test -s conftest.$ac_objext; then
5048
ac_header_compiler=yes
5050
echo "$as_me: failed program was:" >&5
5051
sed 's/^/| /' conftest.$ac_ext >&5
5053
ac_header_compiler=no
5056
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5057
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5058
echo "${ECHO_T}$ac_header_compiler" >&6; }
5060
# Is the header present?
5061
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5062
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
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_header>
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 && {
5084
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5085
test ! -s conftest.err
5087
ac_header_preproc=yes
5089
echo "$as_me: failed program was:" >&5
5090
sed 's/^/| /' conftest.$ac_ext >&5
5092
ac_header_preproc=no
5095
rm -f conftest.err conftest.$ac_ext
5096
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5097
echo "${ECHO_T}$ac_header_preproc" >&6; }
5099
# So? What about this header?
5100
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5102
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5103
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5104
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5105
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5106
ac_header_preproc=yes
5109
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5110
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5111
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5112
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5113
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5114
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5115
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5116
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5117
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5118
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5119
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5120
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5124
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5125
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5126
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5127
echo $ECHO_N "(cached) $ECHO_C" >&6
5129
eval "$as_ac_Header=\$ac_header_preproc"
5131
ac_res=`eval echo '${'$as_ac_Header'}'`
5132
{ echo "$as_me:$LINENO: result: $ac_res" >&5
5133
echo "${ECHO_T}$ac_res" >&6; }
5136
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5137
cat >>confdefs.h <<_ACEOF
5138
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5146
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5147
# find the maximum length of command line arguments
5148
{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5149
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
5150
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5151
echo $ECHO_N "(cached) $ECHO_C" >&6
5158
# On DJGPP, this test can blow up pretty badly due to problems in libc
5159
# (any single argument exceeding 2000 bytes causes a buffer overrun
5160
# during glob expansion). Even if it were fixed, the result of this
5161
# check would be larger than it should be.
5162
lt_cv_sys_max_cmd_len=12288; # 12K is about right
5166
# Under GNU Hurd, this test is not required because there is
5167
# no limit to the length of command line arguments.
5168
# Libtool will interpret -1 as no limit whatsoever
5169
lt_cv_sys_max_cmd_len=-1;
5173
# On Win9x/ME, this test blows up -- it succeeds, but takes
5174
# about 5 minutes as the teststring grows exponentially.
5175
# Worse, since 9x/ME are not pre-emptively multitasking,
5176
# you end up with a "frozen" computer, even though with patience
5177
# the test eventually succeeds (with a max line length of 256k).
5178
# Instead, let's just punt: use the minimum linelength reported by
5179
# all of the supported platforms: 8192 (on NT/2K/XP).
5180
lt_cv_sys_max_cmd_len=8192;
5184
# On AmigaOS with pdksh, this test takes hours, literally.
5185
# So we just punt and use a minimum line length of 8192.
5186
lt_cv_sys_max_cmd_len=8192;
5189
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5190
# This has been around since 386BSD, at least. Likely further.
5191
if test -x /sbin/sysctl; then
5192
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5193
elif test -x /usr/sbin/sysctl; then
5194
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5196
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5198
# And add a safety zone
5199
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5200
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5204
# We know the value 262144 and hardcode it with a safety zone (like BSD)
5205
lt_cv_sys_max_cmd_len=196608
5209
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5210
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5211
# nice to cause kernel panics so lets avoid the loop below.
5212
# First set a reasonable default.
5213
lt_cv_sys_max_cmd_len=16384
5215
if test -x /sbin/sysconfig; then
5216
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5217
*1*) lt_cv_sys_max_cmd_len=-1 ;;
5222
lt_cv_sys_max_cmd_len=102400
5224
sysv5* | sco5v6* | sysv4.2uw2*)
5225
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5226
if test -n "$kargmax"; then
5227
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5229
lt_cv_sys_max_cmd_len=32768
5233
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5234
if test -n "$lt_cv_sys_max_cmd_len"; then
5235
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5236
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5238
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5239
while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5240
= "XX$teststring") >/dev/null 2>&1 &&
5241
new_result=`expr "X$teststring" : ".*" 2>&1` &&
5242
lt_cv_sys_max_cmd_len=$new_result &&
5243
test $i != 17 # 1/2 MB should be enough
5246
teststring=$teststring$teststring
5249
# Add a significant safety factor because C++ compilers can tack on massive
5250
# amounts of additional arguments before passing them to the linker.
5251
# It appears as though 1/2 is a usable value.
5252
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5259
if test -n $lt_cv_sys_max_cmd_len ; then
5260
{ echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5261
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
5263
{ echo "$as_me:$LINENO: result: none" >&5
5264
echo "${ECHO_T}none" >&6; }
5271
# Check for command to grab the raw symbol name followed by C symbol from nm.
5272
{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5273
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
5274
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5275
echo $ECHO_N "(cached) $ECHO_C" >&6
5278
# These are sane defaults that work on at least a few old systems.
5279
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5281
# Character class describing NM global symbol codes.
5282
symcode='[BCDEGRST]'
5284
# Regexp to match symbols that can be accessed directly from C.
5285
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5287
# Transform an extracted symbol line into a proper C declaration
5288
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5290
# Transform an extracted symbol line into symbol name and symbol address
5291
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'"
5293
# Define system-specific variables.
5298
cygwin* | mingw* | pw32*)
5299
symcode='[ABCDGISTW]'
5301
hpux*) # Its linker distinguishes data from code symbols
5302
if test "$host_cpu" = ia64; then
5303
symcode='[ABCDEGRST]'
5305
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5306
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'"
5308
linux* | k*bsd*-gnu)
5309
if test "$host_cpu" = ia64; then
5310
symcode='[ABCDGIRSTW]'
5311
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5312
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'"
5316
symcode='[BCDEGRST]'
5319
symcode='[BCDEGQRST]'
5330
sysv5* | sco5v6* | unixware* | OpenUNIX*)
5338
# Handle CRLF in mingw tool chain
5342
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5346
# If we're using GNU nm, then use its standard symbol codes.
5347
case `$NM -V 2>&1` in
5348
*GNU* | *'with BFD'*)
5349
symcode='[ABCDGIRSTW]' ;;
5352
# Try without a prefix undercore, then with it.
5353
for ac_symprfx in "" "_"; do
5355
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5356
symxfrm="\\1 $ac_symprfx\\2 \\2"
5358
# Write the raw and C identifiers.
5359
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5361
# Check to see that the pipe works correctly.
5365
cat > conftest.$ac_ext <<EOF
5370
void nm_test_func(){}
5374
int main(){nm_test_var='a';nm_test_func();return(0);}
5377
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5378
(eval $ac_compile) 2>&5
5380
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5381
(exit $ac_status); }; then
5382
# Now try to grab the symbols.
5384
if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5385
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5387
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5388
(exit $ac_status); } && test -s "$nlist"; then
5389
# Try sorting and uniquifying the output.
5390
if sort "$nlist" | uniq > "$nlist"T; then
5391
mv -f "$nlist"T "$nlist"
5396
# Make sure that we snagged all the symbols we need.
5397
if grep ' nm_test_var$' "$nlist" >/dev/null; then
5398
if grep ' nm_test_func$' "$nlist" >/dev/null; then
5399
cat <<EOF > conftest.$ac_ext
5405
# Now generate the symbol file.
5406
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5408
cat <<EOF >> conftest.$ac_ext
5409
#if defined (__STDC__) && __STDC__
5410
# define lt_ptr_t void *
5412
# define lt_ptr_t char *
5416
/* The mapping between symbol names and symbols. */
5421
lt_preloaded_symbols[] =
5424
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5425
cat <<\EOF >> conftest.$ac_ext
5433
# Now try linking the two files.
5434
mv conftest.$ac_objext conftstm.$ac_objext
5435
lt_save_LIBS="$LIBS"
5436
lt_save_CFLAGS="$CFLAGS"
5437
LIBS="conftstm.$ac_objext"
5438
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5439
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5440
(eval $ac_link) 2>&5
5442
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443
(exit $ac_status); } && test -s conftest${ac_exeext}; then
5446
LIBS="$lt_save_LIBS"
5447
CFLAGS="$lt_save_CFLAGS"
5449
echo "cannot find nm_test_func in $nlist" >&5
5452
echo "cannot find nm_test_var in $nlist" >&5
5455
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5458
echo "$progname: failed program was:" >&5
5459
cat conftest.$ac_ext >&5
5461
rm -rf conftest* conftst*
5463
# Do not use the global_symbol_pipe unless it works.
5464
if test "$pipe_works" = yes; then
5467
lt_cv_sys_global_symbol_pipe=
5473
if test -z "$lt_cv_sys_global_symbol_pipe"; then
5474
lt_cv_sys_global_symbol_to_cdecl=
5476
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5477
{ echo "$as_me:$LINENO: result: failed" >&5
5478
echo "${ECHO_T}failed" >&6; }
5480
{ echo "$as_me:$LINENO: result: ok" >&5
5481
echo "${ECHO_T}ok" >&6; }
5484
{ echo "$as_me:$LINENO: checking for objdir" >&5
5485
echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
5486
if test "${lt_cv_objdir+set}" = set; then
5487
echo $ECHO_N "(cached) $ECHO_C" >&6
5489
rm -f .libs 2>/dev/null
5490
mkdir .libs 2>/dev/null
5491
if test -d .libs; then
5494
# MS-DOS does not allow filenames that begin with a dot.
5497
rmdir .libs 2>/dev/null
5499
{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5500
echo "${ECHO_T}$lt_cv_objdir" >&6; }
5501
objdir=$lt_cv_objdir
5509
# AIX sometimes has problems with the GCC collect2 program. For some
5510
# reason, if we set the COLLECT_NAMES environment variable, the problems
5511
# vanish in a puff of smoke.
5512
if test "X${COLLECT_NAMES+set}" != Xset; then
5514
export COLLECT_NAMES
5519
# Sed substitution that helps us do robust quoting. It backslashifies
5520
# metacharacters that are still active within double-quoted strings.
5521
Xsed='sed -e 1s/^X//'
5522
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5524
# Same as above, but do not quote variable references.
5525
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5527
# Sed substitution to delay expansion of an escaped shell variable in a
5528
# double_quote_subst'ed string.
5529
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5531
# Sed substitution to avoid accidental globbing in evaled expressions
5532
no_glob_subst='s/\*/\\\*/g'
5538
default_ofile=libtool
5539
can_build_shared=yes
5541
# All known linkers require a `.a' archive for static linking (except MSVC,
5542
# which needs '.lib').
5544
ltmain="$ac_aux_dir/ltmain.sh"
5545
ofile="$default_ofile"
5546
with_gnu_ld="$lt_cv_prog_gnu_ld"
5548
if test -n "$ac_tool_prefix"; then
5549
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5550
set dummy ${ac_tool_prefix}ar; ac_word=$2
5551
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5552
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5553
if test "${ac_cv_prog_AR+set}" = set; then
5554
echo $ECHO_N "(cached) $ECHO_C" >&6
5556
if test -n "$AR"; then
5557
ac_cv_prog_AR="$AR" # Let the user override the test.
5559
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5563
test -z "$as_dir" && as_dir=.
5564
for ac_exec_ext in '' $ac_executable_extensions; do
5565
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5566
ac_cv_prog_AR="${ac_tool_prefix}ar"
5567
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5577
if test -n "$AR"; then
5578
{ echo "$as_me:$LINENO: result: $AR" >&5
5579
echo "${ECHO_T}$AR" >&6; }
5581
{ echo "$as_me:$LINENO: result: no" >&5
5582
echo "${ECHO_T}no" >&6; }
5587
if test -z "$ac_cv_prog_AR"; then
5589
# Extract the first word of "ar", so it can be a program name with args.
5590
set dummy ar; ac_word=$2
5591
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5592
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5593
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5594
echo $ECHO_N "(cached) $ECHO_C" >&6
5596
if test -n "$ac_ct_AR"; then
5597
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5599
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5603
test -z "$as_dir" && as_dir=.
5604
for ac_exec_ext in '' $ac_executable_extensions; do
5605
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5606
ac_cv_prog_ac_ct_AR="ar"
5607
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5616
ac_ct_AR=$ac_cv_prog_ac_ct_AR
5617
if test -n "$ac_ct_AR"; then
5618
{ echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5619
echo "${ECHO_T}$ac_ct_AR" >&6; }
5621
{ echo "$as_me:$LINENO: result: no" >&5
5622
echo "${ECHO_T}no" >&6; }
5625
if test "x$ac_ct_AR" = x; then
5628
case $cross_compiling:$ac_tool_warned in
5630
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5631
whose name does not start with the host triplet. If you think this
5632
configuration is useful to you, please write to autoconf@gnu.org." >&5
5633
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5634
whose name does not start with the host triplet. If you think this
5635
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5636
ac_tool_warned=yes ;;
5644
if test -n "$ac_tool_prefix"; then
5645
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5646
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5647
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5648
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5649
if test "${ac_cv_prog_RANLIB+set}" = set; then
5650
echo $ECHO_N "(cached) $ECHO_C" >&6
5652
if test -n "$RANLIB"; then
5653
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5655
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5659
test -z "$as_dir" && as_dir=.
5660
for ac_exec_ext in '' $ac_executable_extensions; do
5661
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5662
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5663
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5672
RANLIB=$ac_cv_prog_RANLIB
5673
if test -n "$RANLIB"; then
5674
{ echo "$as_me:$LINENO: result: $RANLIB" >&5
5675
echo "${ECHO_T}$RANLIB" >&6; }
5677
{ echo "$as_me:$LINENO: result: no" >&5
5678
echo "${ECHO_T}no" >&6; }
5683
if test -z "$ac_cv_prog_RANLIB"; then
5684
ac_ct_RANLIB=$RANLIB
5685
# Extract the first word of "ranlib", so it can be a program name with args.
5686
set dummy ranlib; ac_word=$2
5687
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5688
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5689
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5690
echo $ECHO_N "(cached) $ECHO_C" >&6
5692
if test -n "$ac_ct_RANLIB"; then
5693
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5695
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5699
test -z "$as_dir" && as_dir=.
5700
for ac_exec_ext in '' $ac_executable_extensions; do
5701
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5702
ac_cv_prog_ac_ct_RANLIB="ranlib"
5703
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5712
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5713
if test -n "$ac_ct_RANLIB"; then
5714
{ echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5715
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5717
{ echo "$as_me:$LINENO: result: no" >&5
5718
echo "${ECHO_T}no" >&6; }
5721
if test "x$ac_ct_RANLIB" = x; then
5724
case $cross_compiling:$ac_tool_warned in
5726
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5727
whose name does not start with the host triplet. If you think this
5728
configuration is useful to you, please write to autoconf@gnu.org." >&5
5729
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5730
whose name does not start with the host triplet. If you think this
5731
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5732
ac_tool_warned=yes ;;
5734
RANLIB=$ac_ct_RANLIB
5737
RANLIB="$ac_cv_prog_RANLIB"
5740
if test -n "$ac_tool_prefix"; then
5741
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5742
set dummy ${ac_tool_prefix}strip; ac_word=$2
5743
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5744
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5745
if test "${ac_cv_prog_STRIP+set}" = set; then
5746
echo $ECHO_N "(cached) $ECHO_C" >&6
5748
if test -n "$STRIP"; then
5749
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5751
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5755
test -z "$as_dir" && as_dir=.
5756
for ac_exec_ext in '' $ac_executable_extensions; do
5757
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5758
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5759
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5768
STRIP=$ac_cv_prog_STRIP
5769
if test -n "$STRIP"; then
5770
{ echo "$as_me:$LINENO: result: $STRIP" >&5
5771
echo "${ECHO_T}$STRIP" >&6; }
5773
{ echo "$as_me:$LINENO: result: no" >&5
5774
echo "${ECHO_T}no" >&6; }
5779
if test -z "$ac_cv_prog_STRIP"; then
5781
# Extract the first word of "strip", so it can be a program name with args.
5782
set dummy strip; ac_word=$2
5783
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5784
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5785
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5786
echo $ECHO_N "(cached) $ECHO_C" >&6
5788
if test -n "$ac_ct_STRIP"; then
5789
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5791
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5795
test -z "$as_dir" && as_dir=.
5796
for ac_exec_ext in '' $ac_executable_extensions; do
5797
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5798
ac_cv_prog_ac_ct_STRIP="strip"
5799
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5808
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5809
if test -n "$ac_ct_STRIP"; then
5810
{ echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5811
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
5813
{ echo "$as_me:$LINENO: result: no" >&5
5814
echo "${ECHO_T}no" >&6; }
5817
if test "x$ac_ct_STRIP" = x; then
5820
case $cross_compiling:$ac_tool_warned in
5822
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5823
whose name does not start with the host triplet. If you think this
5824
configuration is useful to you, please write to autoconf@gnu.org." >&5
5825
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5826
whose name does not start with the host triplet. If you think this
5827
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5828
ac_tool_warned=yes ;;
5833
STRIP="$ac_cv_prog_STRIP"
5838
old_CFLAGS="$CFLAGS"
5840
# Set sane defaults for various variables
5841
test -z "$AR" && AR=ar
5842
test -z "$AR_FLAGS" && AR_FLAGS=cru
5843
test -z "$AS" && AS=as
5844
test -z "$CC" && CC=cc
5845
test -z "$LTCC" && LTCC=$CC
5846
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
5847
test -z "$DLLTOOL" && DLLTOOL=dlltool
5848
test -z "$LD" && LD=ld
5849
test -z "$LN_S" && LN_S="ln -s"
5850
test -z "$MAGIC_CMD" && MAGIC_CMD=file
5851
test -z "$NM" && NM=nm
5852
test -z "$SED" && SED=sed
5853
test -z "$OBJDUMP" && OBJDUMP=objdump
5854
test -z "$RANLIB" && RANLIB=:
5855
test -z "$STRIP" && STRIP=:
5856
test -z "$ac_objext" && ac_objext=o
5858
# Determine commands to create old-style static archives.
5859
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5860
old_postinstall_cmds='chmod 644 $oldlib'
5861
old_postuninstall_cmds=
5863
if test -n "$RANLIB"; then
5866
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5869
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5872
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5875
for cc_temp in $compiler""; do
5877
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
5878
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
5883
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
5886
# Only perform the check for file, if the check method requires it
5887
case $deplibs_check_method in
5889
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5890
{ echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5891
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
5892
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5893
echo $ECHO_N "(cached) $ECHO_C" >&6
5897
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5900
lt_save_MAGIC_CMD="$MAGIC_CMD"
5901
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5902
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5903
for ac_dir in $ac_dummy; do
5905
test -z "$ac_dir" && ac_dir=.
5906
if test -f $ac_dir/${ac_tool_prefix}file; then
5907
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5908
if test -n "$file_magic_test_file"; then
5909
case $deplibs_check_method in
5911
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5912
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5913
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5914
$EGREP "$file_magic_regex" > /dev/null; then
5919
*** Warning: the command libtool uses to detect shared libraries,
5920
*** $file_magic_cmd, produces output that libtool cannot recognize.
5921
*** The result is that libtool may fail to recognize shared libraries
5922
*** as such. This will affect the creation of libtool libraries that
5923
*** depend on shared libraries, but programs linked with such libtool
5924
*** libraries will work regardless of this problem. Nevertheless, you
5925
*** may want to report the problem to your system manager and/or to
5926
*** bug-libtool@gnu.org
5936
MAGIC_CMD="$lt_save_MAGIC_CMD"
5941
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5942
if test -n "$MAGIC_CMD"; then
5943
{ echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5944
echo "${ECHO_T}$MAGIC_CMD" >&6; }
5946
{ echo "$as_me:$LINENO: result: no" >&5
5947
echo "${ECHO_T}no" >&6; }
5950
if test -z "$lt_cv_path_MAGIC_CMD"; then
5951
if test -n "$ac_tool_prefix"; then
5952
{ echo "$as_me:$LINENO: checking for file" >&5
5953
echo $ECHO_N "checking for file... $ECHO_C" >&6; }
5954
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5955
echo $ECHO_N "(cached) $ECHO_C" >&6
5959
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5962
lt_save_MAGIC_CMD="$MAGIC_CMD"
5963
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5964
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5965
for ac_dir in $ac_dummy; do
5967
test -z "$ac_dir" && ac_dir=.
5968
if test -f $ac_dir/file; then
5969
lt_cv_path_MAGIC_CMD="$ac_dir/file"
5970
if test -n "$file_magic_test_file"; then
5971
case $deplibs_check_method in
5973
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5974
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5975
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5976
$EGREP "$file_magic_regex" > /dev/null; then
5981
*** Warning: the command libtool uses to detect shared libraries,
5982
*** $file_magic_cmd, produces output that libtool cannot recognize.
5983
*** The result is that libtool may fail to recognize shared libraries
5984
*** as such. This will affect the creation of libtool libraries that
5985
*** depend on shared libraries, but programs linked with such libtool
5986
*** libraries will work regardless of this problem. Nevertheless, you
5987
*** may want to report the problem to your system manager and/or to
5988
*** bug-libtool@gnu.org
5998
MAGIC_CMD="$lt_save_MAGIC_CMD"
6003
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6004
if test -n "$MAGIC_CMD"; then
6005
{ echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6006
echo "${ECHO_T}$MAGIC_CMD" >&6; }
6008
{ echo "$as_me:$LINENO: result: no" >&5
6009
echo "${ECHO_T}no" >&6; }
6023
rhapsody* | darwin*)
6024
if test -n "$ac_tool_prefix"; then
6025
# Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6026
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6027
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6028
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6029
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6030
echo $ECHO_N "(cached) $ECHO_C" >&6
6032
if test -n "$DSYMUTIL"; then
6033
ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6035
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6039
test -z "$as_dir" && as_dir=.
6040
for ac_exec_ext in '' $ac_executable_extensions; do
6041
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6042
ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6043
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6052
DSYMUTIL=$ac_cv_prog_DSYMUTIL
6053
if test -n "$DSYMUTIL"; then
6054
{ echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6055
echo "${ECHO_T}$DSYMUTIL" >&6; }
6057
{ echo "$as_me:$LINENO: result: no" >&5
6058
echo "${ECHO_T}no" >&6; }
6063
if test -z "$ac_cv_prog_DSYMUTIL"; then
6064
ac_ct_DSYMUTIL=$DSYMUTIL
6065
# Extract the first word of "dsymutil", so it can be a program name with args.
6066
set dummy dsymutil; ac_word=$2
6067
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6068
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6069
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6070
echo $ECHO_N "(cached) $ECHO_C" >&6
6072
if test -n "$ac_ct_DSYMUTIL"; then
6073
ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6075
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6079
test -z "$as_dir" && as_dir=.
6080
for ac_exec_ext in '' $ac_executable_extensions; do
6081
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6082
ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6083
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6092
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6093
if test -n "$ac_ct_DSYMUTIL"; then
6094
{ echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6095
echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
6097
{ echo "$as_me:$LINENO: result: no" >&5
6098
echo "${ECHO_T}no" >&6; }
6101
if test "x$ac_ct_DSYMUTIL" = x; then
6104
case $cross_compiling:$ac_tool_warned in
6106
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6107
whose name does not start with the host triplet. If you think this
6108
configuration is useful to you, please write to autoconf@gnu.org." >&5
6109
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6110
whose name does not start with the host triplet. If you think this
6111
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6112
ac_tool_warned=yes ;;
6114
DSYMUTIL=$ac_ct_DSYMUTIL
6117
DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6120
if test -n "$ac_tool_prefix"; then
6121
# Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6122
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6123
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6124
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6125
if test "${ac_cv_prog_NMEDIT+set}" = set; then
6126
echo $ECHO_N "(cached) $ECHO_C" >&6
6128
if test -n "$NMEDIT"; then
6129
ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6131
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6135
test -z "$as_dir" && as_dir=.
6136
for ac_exec_ext in '' $ac_executable_extensions; do
6137
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6138
ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6139
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6148
NMEDIT=$ac_cv_prog_NMEDIT
6149
if test -n "$NMEDIT"; then
6150
{ echo "$as_me:$LINENO: result: $NMEDIT" >&5
6151
echo "${ECHO_T}$NMEDIT" >&6; }
6153
{ echo "$as_me:$LINENO: result: no" >&5
6154
echo "${ECHO_T}no" >&6; }
6159
if test -z "$ac_cv_prog_NMEDIT"; then
6160
ac_ct_NMEDIT=$NMEDIT
6161
# Extract the first word of "nmedit", so it can be a program name with args.
6162
set dummy nmedit; ac_word=$2
6163
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6164
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6165
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6166
echo $ECHO_N "(cached) $ECHO_C" >&6
6168
if test -n "$ac_ct_NMEDIT"; then
6169
ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6171
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6175
test -z "$as_dir" && as_dir=.
6176
for ac_exec_ext in '' $ac_executable_extensions; do
6177
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6178
ac_cv_prog_ac_ct_NMEDIT="nmedit"
6179
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6188
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6189
if test -n "$ac_ct_NMEDIT"; then
6190
{ echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6191
echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
6193
{ echo "$as_me:$LINENO: result: no" >&5
6194
echo "${ECHO_T}no" >&6; }
6197
if test "x$ac_ct_NMEDIT" = x; then
6200
case $cross_compiling:$ac_tool_warned in
6202
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6203
whose name does not start with the host triplet. If you think this
6204
configuration is useful to you, please write to autoconf@gnu.org." >&5
6205
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6206
whose name does not start with the host triplet. If you think this
6207
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6208
ac_tool_warned=yes ;;
6210
NMEDIT=$ac_ct_NMEDIT
6213
NMEDIT="$ac_cv_prog_NMEDIT"
6217
{ echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6218
echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
6219
if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6220
echo $ECHO_N "(cached) $ECHO_C" >&6
6222
lt_cv_apple_cc_single_mod=no
6223
if test -z "${LT_MULTI_MODULE}"; then
6224
# By default we will add the -single_module flag. You can override
6225
# by either setting the environment variable LT_MULTI_MODULE
6226
# non-empty at configure time, or by adding -multi_module to the
6228
echo "int foo(void){return 1;}" > conftest.c
6229
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6230
-dynamiclib ${wl}-single_module conftest.c
6231
if test -f libconftest.dylib; then
6232
lt_cv_apple_cc_single_mod=yes
6233
rm -rf libconftest.dylib*
6238
{ echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6239
echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
6240
{ echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6241
echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
6242
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6243
echo $ECHO_N "(cached) $ECHO_C" >&6
6245
lt_cv_ld_exported_symbols_list=no
6246
save_LDFLAGS=$LDFLAGS
6247
echo "_main" > conftest.sym
6248
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6249
cat >conftest.$ac_ext <<_ACEOF
6252
cat confdefs.h >>conftest.$ac_ext
6253
cat >>conftest.$ac_ext <<_ACEOF
6254
/* end confdefs.h. */
6264
rm -f conftest.$ac_objext conftest$ac_exeext
6265
if { (ac_try="$ac_link"
6267
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6268
*) ac_try_echo=$ac_try;;
6270
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6271
(eval "$ac_link") 2>conftest.er1
6273
grep -v '^ *+' conftest.er1 >conftest.err
6275
cat conftest.err >&5
6276
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6277
(exit $ac_status); } && {
6278
test -z "$ac_c_werror_flag" ||
6279
test ! -s conftest.err
6280
} && test -s conftest$ac_exeext &&
6281
$as_test_x conftest$ac_exeext; then
6282
lt_cv_ld_exported_symbols_list=yes
6284
echo "$as_me: failed program was:" >&5
6285
sed 's/^/| /' conftest.$ac_ext >&5
6287
lt_cv_ld_exported_symbols_list=no
6290
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6291
conftest$ac_exeext conftest.$ac_ext
6292
LDFLAGS="$save_LDFLAGS"
6295
{ echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6296
echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
6298
rhapsody* | darwin1.[0123])
6299
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6301
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6303
# if running on 10.5 or later, the deployment target defaults
6304
# to the OS version, if on x86, and 10.4, the deployment
6305
# target defaults to 10.4. Don't you love it?
6306
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6307
10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6308
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6310
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6312
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6316
if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6317
_lt_dar_single_mod='$single_module'
6319
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6320
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6322
_lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
6324
if test "$DSYMUTIL" != ":"; then
6325
_lt_dsymutil="~$DSYMUTIL \$lib || :"
6336
# Check whether --enable-libtool-lock was given.
6337
if test "${enable_libtool_lock+set}" = set; then
6338
enableval=$enable_libtool_lock;
6341
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6344
# Check whether --with-pic was given.
6345
if test "${with_pic+set}" = set; then
6346
withval=$with_pic; pic_mode="$withval"
6351
test -z "$pic_mode" && pic_mode=default
6353
# Use C for the default configuration in the libtool script
6357
ac_cpp='$CPP $CPPFLAGS'
6358
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6359
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6360
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6363
# Source file extension for C test sources.
6366
# Object file extension for compiled C test sources.
6370
# Code to be used in simple compile tests
6371
lt_simple_compile_test_code="int some_variable = 0;"
6373
# Code to be used in simple link tests
6374
lt_simple_link_test_code='int main(){return(0);}'
6377
# If no C compiler was specified, use CC.
6380
# If no C compiler flags were specified, use CFLAGS.
6381
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6383
# Allow CC to be a program name with arguments.
6387
# save warnings/boilerplate of simple test code
6388
ac_outfile=conftest.$ac_objext
6389
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6390
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6391
_lt_compiler_boilerplate=`cat conftest.err`
6394
ac_outfile=conftest.$ac_objext
6395
echo "$lt_simple_link_test_code" >conftest.$ac_ext
6396
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6397
_lt_linker_boilerplate=`cat conftest.err`
6402
lt_prog_compiler_no_builtin_flag=
6404
if test "$GCC" = yes; then
6405
lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6408
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6409
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
6410
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6411
echo $ECHO_N "(cached) $ECHO_C" >&6
6413
lt_cv_prog_compiler_rtti_exceptions=no
6414
ac_outfile=conftest.$ac_objext
6415
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6416
lt_compiler_flag="-fno-rtti -fno-exceptions"
6417
# Insert the option either (1) after the last *FLAGS variable, or
6418
# (2) before a word containing "conftest.", or (3) at the end.
6419
# Note that $ac_compile itself does not contain backslashes and begins
6420
# with a dollar sign (not a hyphen), so the echo should work correctly.
6421
# The option is referenced via a variable to avoid confusing sed.
6422
lt_compile=`echo "$ac_compile" | $SED \
6423
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6424
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6425
-e 's:$: $lt_compiler_flag:'`
6426
(eval echo "\"\$as_me:6426: $lt_compile\"" >&5)
6427
(eval "$lt_compile" 2>conftest.err)
6429
cat conftest.err >&5
6430
echo "$as_me:6430: \$? = $ac_status" >&5
6431
if (exit $ac_status) && test -s "$ac_outfile"; then
6432
# The compiler can only warn and ignore the option if not recognized
6433
# So say no if there are warnings other than the usual output.
6434
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6435
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6436
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6437
lt_cv_prog_compiler_rtti_exceptions=yes
6443
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6444
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6446
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6447
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6454
lt_prog_compiler_wl=
6455
lt_prog_compiler_pic=
6456
lt_prog_compiler_static=
6458
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6459
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
6461
if test "$GCC" = yes; then
6462
lt_prog_compiler_wl='-Wl,'
6463
lt_prog_compiler_static='-static'
6467
# All AIX code is PIC.
6468
if test "$host_cpu" = ia64; then
6469
# AIX 5 now supports IA64 processor
6470
lt_prog_compiler_static='-Bstatic'
6475
# FIXME: we need at least 68020 code to build shared libraries, but
6476
# adding the `-m68020' flag to GCC prevents building anything better,
6478
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6481
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6482
# PIC is the default for these OSes.
6485
mingw* | cygwin* | pw32* | os2*)
6486
# This hack is so that the source file can tell whether it is being
6487
# built for inclusion in a dll (and should export symbols for example).
6488
# Although the cygwin gcc ignores -fPIC, still need this for old-style
6489
# (--disable-auto-import) libraries
6490
lt_prog_compiler_pic='-DDLL_EXPORT'
6493
darwin* | rhapsody*)
6494
# PIC is the default on this platform
6495
# Common symbols not allowed in MH_DYLIB files
6496
lt_prog_compiler_pic='-fno-common'
6500
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
6501
# Instead, we relocate shared libraries at runtime.
6505
# Just because we use GCC doesn't mean we suddenly get shared libraries
6506
# on systems that don't support them.
6507
lt_prog_compiler_can_build_shared=no
6512
if test -d /usr/nec; then
6513
lt_prog_compiler_pic=-Kconform_pic
6518
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6525
lt_prog_compiler_pic='-fPIC'
6531
lt_prog_compiler_pic='-fPIC'
6535
# PORTME Check for flag to pass linker flags through the system compiler.
6538
lt_prog_compiler_wl='-Wl,'
6539
if test "$host_cpu" = ia64; then
6540
# AIX 5 now supports IA64 processor
6541
lt_prog_compiler_static='-Bstatic'
6543
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6547
# PIC is the default on this platform
6548
# Common symbols not allowed in MH_DYLIB files
6549
case $cc_basename in
6551
lt_prog_compiler_pic='-qnocommon'
6552
lt_prog_compiler_wl='-Wl,'
6557
mingw* | cygwin* | pw32* | os2*)
6558
# This hack is so that the source file can tell whether it is being
6559
# built for inclusion in a dll (and should export symbols for example).
6560
lt_prog_compiler_pic='-DDLL_EXPORT'
6563
hpux9* | hpux10* | hpux11*)
6564
lt_prog_compiler_wl='-Wl,'
6565
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6572
lt_prog_compiler_pic='+Z'
6575
# Is there a better lt_prog_compiler_static that works with the bundled CC?
6576
lt_prog_compiler_static='${wl}-a ${wl}archive'
6579
irix5* | irix6* | nonstopux*)
6580
lt_prog_compiler_wl='-Wl,'
6581
# PIC (with -KPIC) is the default.
6582
lt_prog_compiler_static='-non_shared'
6586
lt_prog_compiler_pic='-KPIC'
6587
lt_prog_compiler_static='-Bstatic'
6590
linux* | k*bsd*-gnu)
6591
case $cc_basename in
6593
lt_prog_compiler_wl='-Wl,'
6594
lt_prog_compiler_pic='-KPIC'
6595
lt_prog_compiler_static='-static'
6597
pgcc* | pgf77* | pgf90* | pgf95*)
6598
# Portland Group compilers (*not* the Pentium gcc compiler,
6599
# which looks to be a dead project)
6600
lt_prog_compiler_wl='-Wl,'
6601
lt_prog_compiler_pic='-fpic'
6602
lt_prog_compiler_static='-Bstatic'
6605
lt_prog_compiler_wl='-Wl,'
6606
# All Alpha code is PIC.
6607
lt_prog_compiler_static='-non_shared'
6610
case `$CC -V 2>&1 | sed 5q` in
6613
lt_prog_compiler_pic='-KPIC'
6614
lt_prog_compiler_static='-Bstatic'
6615
lt_prog_compiler_wl='-Wl,'
6618
# Sun Fortran 8.3 passes all unrecognized flags to the linker
6619
lt_prog_compiler_pic='-KPIC'
6620
lt_prog_compiler_static='-Bstatic'
6621
lt_prog_compiler_wl=''
6628
osf3* | osf4* | osf5*)
6629
lt_prog_compiler_wl='-Wl,'
6630
# All OSF/1 code is PIC.
6631
lt_prog_compiler_static='-non_shared'
6635
lt_prog_compiler_static='-non_shared'
6639
lt_prog_compiler_pic='-KPIC'
6640
lt_prog_compiler_static='-Bstatic'
6641
case $cc_basename in
6643
lt_prog_compiler_wl='-Qoption ld ';;
6645
lt_prog_compiler_wl='-Wl,';;
6650
lt_prog_compiler_wl='-Qoption ld '
6651
lt_prog_compiler_pic='-PIC'
6652
lt_prog_compiler_static='-Bstatic'
6655
sysv4 | sysv4.2uw2* | sysv4.3*)
6656
lt_prog_compiler_wl='-Wl,'
6657
lt_prog_compiler_pic='-KPIC'
6658
lt_prog_compiler_static='-Bstatic'
6662
if test -d /usr/nec ;then
6663
lt_prog_compiler_pic='-Kconform_pic'
6664
lt_prog_compiler_static='-Bstatic'
6668
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6669
lt_prog_compiler_wl='-Wl,'
6670
lt_prog_compiler_pic='-KPIC'
6671
lt_prog_compiler_static='-Bstatic'
6675
lt_prog_compiler_wl='-Wl,'
6676
lt_prog_compiler_can_build_shared=no
6680
lt_prog_compiler_pic='-pic'
6681
lt_prog_compiler_static='-Bstatic'
6685
lt_prog_compiler_can_build_shared=no
6690
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6691
echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
6694
# Check to make sure the PIC flag actually works.
6696
if test -n "$lt_prog_compiler_pic"; then
6698
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6699
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
6700
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
6701
echo $ECHO_N "(cached) $ECHO_C" >&6
6703
lt_cv_prog_compiler_pic_works=no
6704
ac_outfile=conftest.$ac_objext
6705
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6706
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6707
# Insert the option either (1) after the last *FLAGS variable, or
6708
# (2) before a word containing "conftest.", or (3) at the end.
6709
# Note that $ac_compile itself does not contain backslashes and begins
6710
# with a dollar sign (not a hyphen), so the echo should work correctly.
6711
# The option is referenced via a variable to avoid confusing sed.
6712
lt_compile=`echo "$ac_compile" | $SED \
6713
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6714
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6715
-e 's:$: $lt_compiler_flag:'`
6716
(eval echo "\"\$as_me:6716: $lt_compile\"" >&5)
6717
(eval "$lt_compile" 2>conftest.err)
6719
cat conftest.err >&5
6720
echo "$as_me:6720: \$? = $ac_status" >&5
6721
if (exit $ac_status) && test -s "$ac_outfile"; then
6722
# The compiler can only warn and ignore the option if not recognized
6723
# So say no if there are warnings other than the usual output.
6724
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6725
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6726
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6727
lt_cv_prog_compiler_pic_works=yes
6733
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
6734
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
6736
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
6737
case $lt_prog_compiler_pic in
6739
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6742
lt_prog_compiler_pic=
6743
lt_prog_compiler_can_build_shared=no
6748
# For platforms which do not support PIC, -DPIC is meaningless:
6750
lt_prog_compiler_pic=
6753
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6758
# Check to make sure the static flag actually works.
6760
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6761
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6762
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
6763
if test "${lt_cv_prog_compiler_static_works+set}" = set; then
6764
echo $ECHO_N "(cached) $ECHO_C" >&6
6766
lt_cv_prog_compiler_static_works=no
6767
save_LDFLAGS="$LDFLAGS"
6768
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6769
echo "$lt_simple_link_test_code" > conftest.$ac_ext
6770
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6771
# The linker can only warn and ignore the option if not recognized
6772
# So say no if there are warnings
6773
if test -s conftest.err; then
6774
# Append any errors to the config.log.
6775
cat conftest.err 1>&5
6776
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6777
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6778
if diff conftest.exp conftest.er2 >/dev/null; then
6779
lt_cv_prog_compiler_static_works=yes
6782
lt_cv_prog_compiler_static_works=yes
6786
LDFLAGS="$save_LDFLAGS"
6789
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
6790
echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
6792
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
6795
lt_prog_compiler_static=
6799
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6800
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
6801
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6802
echo $ECHO_N "(cached) $ECHO_C" >&6
6804
lt_cv_prog_compiler_c_o=no
6805
$rm -r conftest 2>/dev/null
6809
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6811
lt_compiler_flag="-o out/conftest2.$ac_objext"
6812
# Insert the option either (1) after the last *FLAGS variable, or
6813
# (2) before a word containing "conftest.", or (3) at the end.
6814
# Note that $ac_compile itself does not contain backslashes and begins
6815
# with a dollar sign (not a hyphen), so the echo should work correctly.
6816
lt_compile=`echo "$ac_compile" | $SED \
6817
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6818
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6819
-e 's:$: $lt_compiler_flag:'`
6820
(eval echo "\"\$as_me:6820: $lt_compile\"" >&5)
6821
(eval "$lt_compile" 2>out/conftest.err)
6823
cat out/conftest.err >&5
6824
echo "$as_me:6824: \$? = $ac_status" >&5
6825
if (exit $ac_status) && test -s out/conftest2.$ac_objext
6827
# The compiler can only warn and ignore the option if not recognized
6828
# So say no if there are warnings
6829
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6830
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6831
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6832
lt_cv_prog_compiler_c_o=yes
6837
# SGI C++ compiler will create directory out/ii_files/ for
6838
# template instantiation
6839
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6840
$rm out/* && rmdir out
6846
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6847
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
6850
hard_links="nottested"
6851
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6852
# do not overwrite the value of need_locks provided by the user
6853
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6854
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
6857
ln conftest.a conftest.b 2>/dev/null && hard_links=no
6859
ln conftest.a conftest.b 2>&5 || hard_links=no
6860
ln conftest.a conftest.b 2>/dev/null && hard_links=no
6861
{ echo "$as_me:$LINENO: result: $hard_links" >&5
6862
echo "${ECHO_T}$hard_links" >&6; }
6863
if test "$hard_links" = no; then
6864
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6865
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6872
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6873
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
6876
allow_undefined_flag=
6877
enable_shared_with_static_runtimes=no
6879
archive_expsym_cmds=
6880
old_archive_From_new_cmds=
6881
old_archive_from_expsyms_cmds=
6882
export_dynamic_flag_spec=
6883
whole_archive_flag_spec=
6884
thread_safe_flag_spec=
6885
hardcode_libdir_flag_spec=
6886
hardcode_libdir_flag_spec_ld=
6887
hardcode_libdir_separator=
6890
hardcode_shlibpath_var=unsupported
6891
link_all_deplibs=unknown
6892
hardcode_automatic=no
6895
always_export_symbols=no
6896
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6897
# include_expsyms should be a list of space-separated symbols to be *always*
6898
# included in the symbol list
6900
# exclude_expsyms can be an extended regexp of symbols to exclude
6901
# it will be wrapped by ` (' and `)$', so one must not match beginning or
6902
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6903
# as well as any symbol that contains `d'.
6904
exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
6905
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6906
# platforms (ab)use it in PIC code, but their linkers get confused if
6907
# the symbol is explicitly referenced. Since portable code cannot
6908
# rely on this symbol name, it's probably fine to never include it in
6909
# preloaded symbol tables.
6910
# Exclude shared library initialization/finalization symbols.
6911
extract_expsyms_cmds=
6912
# Just being paranoid about ensuring that cc_basename is set.
6913
for cc_temp in $compiler""; do
6915
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6916
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6921
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6924
cygwin* | mingw* | pw32*)
6925
# FIXME: the MSVC++ port hasn't been tested in a loooong time
6926
# When not using gcc, we currently assume that we are using
6927
# Microsoft Visual C++.
6928
if test "$GCC" != yes; then
6933
# we just hope/assume this is gcc and not c89 (= MSVC++)
6942
if test "$with_gnu_ld" = yes; then
6943
# If archive_cmds runs LD, not CC, wlarc should be empty
6946
# Set some defaults for GNU ld with shared library support. These
6947
# are reset later if shared libraries are not supported. Putting them
6948
# here allows them to be overridden if necessary.
6949
runpath_var=LD_RUN_PATH
6950
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6951
export_dynamic_flag_spec='${wl}--export-dynamic'
6952
# ancient GNU ld didn't support --whole-archive et. al.
6953
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6954
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6956
whole_archive_flag_spec=
6958
supports_anon_versioning=no
6959
case `$LD -v 2>/dev/null` in
6960
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6961
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6962
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6963
*\ 2.11.*) ;; # other 2.11 versions
6964
*) supports_anon_versioning=yes ;;
6967
# See if GNU ld supports shared libraries.
6970
# On AIX/PPC, the GNU linker is very broken
6971
if test "$host_cpu" != ia64; then
6975
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6976
*** to be unable to reliably create shared libraries on AIX.
6977
*** Therefore, libtool is disabling shared libraries support. If you
6978
*** really care for shared libraries, you may want to modify your PATH
6979
*** so that a non-GNU linker is found, and then restart.
6986
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)'
6987
hardcode_libdir_flag_spec='-L$libdir'
6988
hardcode_minus_L=yes
6990
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6991
# that the semantics of dynamic libraries on AmigaOS, at least up
6992
# to version 4, is to share data among multiple programs linked
6993
# with the same dynamic library. Since this doesn't match the
6994
# behavior of shared libraries on other platforms, we can't use
7000
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7001
allow_undefined_flag=unsupported
7002
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7003
# support --undefined. This deserves some investigation. FIXME
7004
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7010
cygwin* | mingw* | pw32*)
7011
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7012
# as there is no search path for DLLs.
7013
hardcode_libdir_flag_spec='-L$libdir'
7014
allow_undefined_flag=unsupported
7015
always_export_symbols=no
7016
enable_shared_with_static_runtimes=yes
7017
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7019
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7020
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7021
# If the export-symbols file already is a .def file (1st line
7022
# is EXPORTS), use it as is; otherwise, prepend...
7023
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7024
cp $export_symbols $output_objdir/$soname.def;
7026
echo EXPORTS > $output_objdir/$soname.def;
7027
cat $export_symbols >> $output_objdir/$soname.def;
7029
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7037
hardcode_shlibpath_var=no
7038
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7039
export_dynamic_flag_spec='${wl}-E'
7040
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7041
# Instead, shared libraries are loaded at an image base (0x10000000 by
7042
# default) and relocated if they conflict, which is a slow very memory
7043
# consuming and fragmenting process. To avoid this, we pick a random,
7044
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7045
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
7046
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7047
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'
7050
gnu* | linux* | k*bsd*-gnu)
7051
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7053
case $cc_basename,$host_cpu in
7054
pgcc*) # Portland Group C compiler
7055
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'
7056
tmp_addflag=' $pic_flag'
7058
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7059
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'
7060
tmp_addflag=' $pic_flag -Mnomain' ;;
7061
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7062
tmp_addflag=' -i_dynamic' ;;
7063
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7064
tmp_addflag=' -i_dynamic -nofor_main' ;;
7065
ifc* | ifort*) # Intel Fortran compiler
7066
tmp_addflag=' -nofor_main' ;;
7068
case `$CC -V 2>&1 | sed 5q` in
7069
*Sun\ C*) # Sun C 5.9
7070
whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7071
tmp_sharedflag='-G' ;;
7072
*Sun\ F*) # Sun Fortran 8.3
7073
tmp_sharedflag='-G' ;;
7075
tmp_sharedflag='-shared' ;;
7077
archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7079
if test $supports_anon_versioning = yes; then
7080
archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7081
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7082
$echo "local: *; };" >> $output_objdir/$libname.ver~
7083
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7091
netbsd* | netbsdelf*-gnu)
7092
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7093
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7096
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7097
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7102
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7106
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7107
*** create shared libraries on Solaris systems. Therefore, libtool
7108
*** is disabling shared libraries support. We urge you to upgrade GNU
7109
*** binutils to release 2.9.1 or newer. Another option is to modify
7110
*** your PATH or compiler configuration so that the native linker is
7111
*** used, and then restart.
7114
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7115
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7116
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7122
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7123
case `$LD -v 2>&1` in
7124
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7128
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7129
*** reliably create shared libraries on SCO systems. Therefore, libtool
7130
*** is disabling shared libraries support. We urge you to upgrade GNU
7131
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7132
*** your PATH or compiler configuration so that the native linker is
7133
*** used, and then restart.
7138
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7139
hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7140
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7141
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7150
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7153
hardcode_shlibpath_var=no
7157
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7158
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7159
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7166
if test "$ld_shlibs" = no; then
7168
hardcode_libdir_flag_spec=
7169
export_dynamic_flag_spec=
7170
whole_archive_flag_spec=
7173
# PORTME fill in a description of your system's linker (not GNU ld)
7176
allow_undefined_flag=unsupported
7177
always_export_symbols=yes
7178
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'
7179
# Note: this linker hardcodes the directories in LIBPATH if there
7180
# are no directories specified by -L.
7181
hardcode_minus_L=yes
7182
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7183
# Neither direct hardcoding nor static linking is supported with a
7185
hardcode_direct=unsupported
7190
if test "$host_cpu" = ia64; then
7191
# On IA64, the linker does run time linking by default, so we don't
7192
# have to do anything special.
7193
aix_use_runtimelinking=no
7194
exp_sym_flag='-Bexport'
7197
# If we're using GNU nm, then we don't want the "-C" option.
7198
# -C means demangle to AIX nm, but means don't demangle with GNU nm
7199
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7200
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'
7202
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'
7204
aix_use_runtimelinking=no
7206
# Test if we are trying to use run time linking or normal
7207
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
7208
# need to do runtime linking.
7209
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7210
for ld_flag in $LDFLAGS; do
7211
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7212
aix_use_runtimelinking=yes
7219
exp_sym_flag='-bexport'
7220
no_entry_flag='-bnoentry'
7223
# When large executables or shared objects are built, AIX ld can
7224
# have problems creating the table of contents. If linking a library
7225
# or program results in "error TOC overflow" add -mminimal-toc to
7226
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7227
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7231
hardcode_libdir_separator=':'
7232
link_all_deplibs=yes
7234
if test "$GCC" = yes; then
7235
case $host_os in aix4.[012]|aix4.[012].*)
7236
# We only want to do this on AIX 4.2 and lower, the check
7237
# below for broken collect2 doesn't work under 4.3+
7238
collect2name=`${CC} -print-prog-name=collect2`
7239
if test -f "$collect2name" && \
7240
strings "$collect2name" | grep resolve_lib_name >/dev/null
7242
# We have reworked collect2
7245
# We have old collect2
7246
hardcode_direct=unsupported
7247
# It fails to find uninstalled libraries when the uninstalled
7248
# path is not listed in the libpath. Setting hardcode_minus_L
7249
# to unsupported forces relinking
7250
hardcode_minus_L=yes
7251
hardcode_libdir_flag_spec='-L$libdir'
7252
hardcode_libdir_separator=
7256
shared_flag='-shared'
7257
if test "$aix_use_runtimelinking" = yes; then
7258
shared_flag="$shared_flag "'${wl}-G'
7262
if test "$host_cpu" = ia64; then
7263
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7264
# chokes on -Wl,-G. The following line is correct:
7267
if test "$aix_use_runtimelinking" = yes; then
7268
shared_flag='${wl}-G'
7270
shared_flag='${wl}-bM:SRE'
7275
# It seems that -bexpall does not export symbols beginning with
7276
# underscore (_), so it is better to generate a list of symbols to export.
7277
always_export_symbols=yes
7278
if test "$aix_use_runtimelinking" = yes; then
7279
# Warning - without using the other runtime loading flags (-brtl),
7280
# -berok will link without error, but may produce a broken library.
7281
allow_undefined_flag='-berok'
7282
# Determine the default libpath from the value encoded in an empty executable.
7283
cat >conftest.$ac_ext <<_ACEOF
7286
cat confdefs.h >>conftest.$ac_ext
7287
cat >>conftest.$ac_ext <<_ACEOF
7288
/* end confdefs.h. */
7298
rm -f conftest.$ac_objext conftest$ac_exeext
7299
if { (ac_try="$ac_link"
7301
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7302
*) ac_try_echo=$ac_try;;
7304
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7305
(eval "$ac_link") 2>conftest.er1
7307
grep -v '^ *+' conftest.er1 >conftest.err
7309
cat conftest.err >&5
7310
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7311
(exit $ac_status); } && {
7312
test -z "$ac_c_werror_flag" ||
7313
test ! -s conftest.err
7314
} && test -s conftest$ac_exeext &&
7315
$as_test_x conftest$ac_exeext; then
7317
lt_aix_libpath_sed='
7318
/Import File Strings/,/^$/ {
7324
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7325
# Check for a 64-bit object if we didn't find anything.
7326
if test -z "$aix_libpath"; then
7327
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7330
echo "$as_me: failed program was:" >&5
7331
sed 's/^/| /' conftest.$ac_ext >&5
7336
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7337
conftest$ac_exeext conftest.$ac_ext
7338
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7340
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7341
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"
7343
if test "$host_cpu" = ia64; then
7344
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7345
allow_undefined_flag="-z nodefs"
7346
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"
7348
# Determine the default libpath from the value encoded in an empty executable.
7349
cat >conftest.$ac_ext <<_ACEOF
7352
cat confdefs.h >>conftest.$ac_ext
7353
cat >>conftest.$ac_ext <<_ACEOF
7354
/* end confdefs.h. */
7364
rm -f conftest.$ac_objext conftest$ac_exeext
7365
if { (ac_try="$ac_link"
7367
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7368
*) ac_try_echo=$ac_try;;
7370
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7371
(eval "$ac_link") 2>conftest.er1
7373
grep -v '^ *+' conftest.er1 >conftest.err
7375
cat conftest.err >&5
7376
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7377
(exit $ac_status); } && {
7378
test -z "$ac_c_werror_flag" ||
7379
test ! -s conftest.err
7380
} && test -s conftest$ac_exeext &&
7381
$as_test_x conftest$ac_exeext; then
7383
lt_aix_libpath_sed='
7384
/Import File Strings/,/^$/ {
7390
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7391
# Check for a 64-bit object if we didn't find anything.
7392
if test -z "$aix_libpath"; then
7393
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7396
echo "$as_me: failed program was:" >&5
7397
sed 's/^/| /' conftest.$ac_ext >&5
7402
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7403
conftest$ac_exeext conftest.$ac_ext
7404
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7406
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7407
# Warning - without using the other run time loading flags,
7408
# -berok will link without error, but may produce a broken library.
7409
no_undefined_flag=' ${wl}-bernotok'
7410
allow_undefined_flag=' ${wl}-berok'
7411
# Exported symbols can be pulled into shared objects from archives
7412
whole_archive_flag_spec='$convenience'
7413
archive_cmds_need_lc=yes
7414
# This is similar to how AIX traditionally builds its shared libraries.
7415
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'
7421
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)'
7422
hardcode_libdir_flag_spec='-L$libdir'
7423
hardcode_minus_L=yes
7424
# see comment about different semantics on the GNU ld section
7429
export_dynamic_flag_spec=-rdynamic
7432
cygwin* | mingw* | pw32*)
7433
# When not using gcc, we currently assume that we are using
7434
# Microsoft Visual C++.
7435
# hardcode_libdir_flag_spec is actually meaningless, as there is
7436
# no search path for DLLs.
7437
hardcode_libdir_flag_spec=' '
7438
allow_undefined_flag=unsupported
7439
# Tell ltmain to make .lib files, not .a files.
7441
# Tell ltmain to make .dll files, not .so files.
7443
# FIXME: Setting linknames here is a bad hack.
7444
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7445
# The linker will automatically build a .lib file if we build a DLL.
7446
old_archive_From_new_cmds='true'
7447
# FIXME: Should let the user specify the lib program.
7448
old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7449
fix_srcfile_path='`cygpath -w "$srcfile"`'
7450
enable_shared_with_static_runtimes=yes
7453
darwin* | rhapsody*)
7455
rhapsody* | darwin1.[012])
7456
allow_undefined_flag='${wl}-undefined ${wl}suppress'
7459
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7460
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7462
case ${MACOSX_DEPLOYMENT_TARGET} in
7464
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7467
allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7473
archive_cmds_need_lc=no
7475
hardcode_automatic=yes
7476
hardcode_shlibpath_var=unsupported
7477
whole_archive_flag_spec=''
7478
link_all_deplibs=yes
7479
if test "$GCC" = yes ; then
7480
output_verbose_link_cmd='echo'
7481
archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
7482
module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
7483
archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
7484
module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
7486
case $cc_basename in
7488
output_verbose_link_cmd='echo'
7489
archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
7490
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7491
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7492
archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7493
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}'
7503
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7504
hardcode_libdir_flag_spec='-L$libdir'
7505
hardcode_shlibpath_var=no
7512
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7513
# support. Future versions do this automatically, but an explicit c++rt0.o
7514
# does not break anything, and helps significantly (at the cost of a little
7517
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7518
hardcode_libdir_flag_spec='-R$libdir'
7520
hardcode_shlibpath_var=no
7523
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
7525
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7527
hardcode_minus_L=yes
7528
hardcode_shlibpath_var=no
7531
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7532
freebsd* | dragonfly*)
7533
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7534
hardcode_libdir_flag_spec='-R$libdir'
7536
hardcode_shlibpath_var=no
7540
if test "$GCC" = yes; then
7541
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'
7543
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'
7545
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7546
hardcode_libdir_separator=:
7549
# hardcode_minus_L: Not really in the search PATH,
7550
# but as the default location of the library.
7551
hardcode_minus_L=yes
7552
export_dynamic_flag_spec='${wl}-E'
7556
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7557
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7559
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7561
if test "$with_gnu_ld" = no; then
7562
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7563
hardcode_libdir_separator=:
7566
export_dynamic_flag_spec='${wl}-E'
7568
# hardcode_minus_L: Not really in the search PATH,
7569
# but as the default location of the library.
7570
hardcode_minus_L=yes
7575
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7578
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7581
archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7584
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7590
archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7593
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7596
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7600
if test "$with_gnu_ld" = no; then
7601
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7602
hardcode_libdir_separator=:
7606
hardcode_libdir_flag_spec_ld='+b $libdir'
7608
hardcode_shlibpath_var=no
7612
export_dynamic_flag_spec='${wl}-E'
7614
# hardcode_minus_L: Not really in the search PATH,
7615
# but as the default location of the library.
7616
hardcode_minus_L=yes
7622
irix5* | irix6* | nonstopux*)
7623
if test "$GCC" = yes; then
7624
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'
7626
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'
7627
hardcode_libdir_flag_spec_ld='-rpath $libdir'
7629
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7630
hardcode_libdir_separator=:
7631
link_all_deplibs=yes
7634
netbsd* | netbsdelf*-gnu)
7635
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7636
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7638
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7640
hardcode_libdir_flag_spec='-R$libdir'
7642
hardcode_shlibpath_var=no
7646
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7648
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7649
hardcode_libdir_separator=:
7650
hardcode_shlibpath_var=no
7654
if test -f /usr/libexec/ld.so; then
7656
hardcode_shlibpath_var=no
7657
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7658
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7659
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7660
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7661
export_dynamic_flag_spec='${wl}-E'
7664
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7665
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7666
hardcode_libdir_flag_spec='-R$libdir'
7669
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7670
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7680
hardcode_libdir_flag_spec='-L$libdir'
7681
hardcode_minus_L=yes
7682
allow_undefined_flag=unsupported
7683
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'
7684
old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7688
if test "$GCC" = yes; then
7689
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7690
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'
7692
allow_undefined_flag=' -expect_unresolved \*'
7693
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'
7695
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7696
hardcode_libdir_separator=:
7699
osf4* | osf5*) # as osf3* with the addition of -msym flag
7700
if test "$GCC" = yes; then
7701
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7702
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'
7703
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7705
allow_undefined_flag=' -expect_unresolved \*'
7706
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'
7707
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7708
$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'
7710
# Both c and cxx compiler support -rpath directly
7711
hardcode_libdir_flag_spec='-rpath $libdir'
7713
hardcode_libdir_separator=:
7717
no_undefined_flag=' -z text'
7718
if test "$GCC" = yes; then
7720
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7721
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7722
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7725
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7726
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7727
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7729
hardcode_libdir_flag_spec='-R$libdir'
7730
hardcode_shlibpath_var=no
7732
solaris2.[0-5] | solaris2.[0-5].*) ;;
7734
# The compiler driver will combine and reorder linker options,
7735
# but understands `-z linker_flag'. GCC discards it without `$wl',
7736
# but is careful enough not to reorder.
7737
# Supported since Solaris 2.6 (maybe 2.5.1?)
7738
if test "$GCC" = yes; then
7739
whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
7741
whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
7745
link_all_deplibs=yes
7749
if test "x$host_vendor" = xsequent; then
7750
# Use $CC to link under sequent, because it throws in some extra .o
7751
# files that make .init and .fini sections work.
7752
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7754
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7756
hardcode_libdir_flag_spec='-L$libdir'
7758
hardcode_minus_L=yes
7759
hardcode_shlibpath_var=no
7763
case $host_vendor in
7765
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7766
hardcode_direct=yes # is this really true???
7769
## LD is ld it makes a PLAMLIB
7770
## CC just makes a GrossModule.
7771
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7772
reload_cmds='$CC -r -o $output$reload_objs'
7776
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7777
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7780
runpath_var='LD_RUN_PATH'
7781
hardcode_shlibpath_var=no
7785
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7786
hardcode_shlibpath_var=no
7787
export_dynamic_flag_spec='-Bexport'
7791
if test -d /usr/nec; then
7792
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7793
hardcode_shlibpath_var=no
7794
runpath_var=LD_RUN_PATH
7795
hardcode_runpath_var=yes
7800
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
7801
no_undefined_flag='${wl}-z,text'
7802
archive_cmds_need_lc=no
7803
hardcode_shlibpath_var=no
7804
runpath_var='LD_RUN_PATH'
7806
if test "$GCC" = yes; then
7807
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7808
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7810
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7811
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7815
sysv5* | sco3.2v5* | sco5v6*)
7816
# Note: We can NOT use -z defs as we might desire, because we do not
7817
# link with -lc, and that would cause any symbols used from libc to
7818
# always be unresolved, which means just about no library would
7819
# ever link correctly. If we're not using GNU ld we use -z text
7820
# though, which does catch some bad symbols but isn't as heavy-handed
7822
no_undefined_flag='${wl}-z,text'
7823
allow_undefined_flag='${wl}-z,nodefs'
7824
archive_cmds_need_lc=no
7825
hardcode_shlibpath_var=no
7826
hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7827
hardcode_libdir_separator=':'
7828
link_all_deplibs=yes
7829
export_dynamic_flag_spec='${wl}-Bexport'
7830
runpath_var='LD_RUN_PATH'
7832
if test "$GCC" = yes; then
7833
archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7834
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7836
archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7837
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7842
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7843
hardcode_libdir_flag_spec='-L$libdir'
7844
hardcode_shlibpath_var=no
7853
{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7854
echo "${ECHO_T}$ld_shlibs" >&6; }
7855
test "$ld_shlibs" = no && can_build_shared=no
7858
# Do we need to explicitly link libc?
7860
case "x$archive_cmds_need_lc" in
7862
# Assume -lc should be added
7863
archive_cmds_need_lc=yes
7865
if test "$enable_shared" = yes && test "$GCC" = yes; then
7866
case $archive_cmds in
7868
# FIXME: we may have to deal with multi-command sequences.
7871
# Test whether the compiler implicitly links with -lc since on some
7872
# systems, -lgcc has to come before -lc. If gcc already passes -lc
7873
# to ld, don't add -lc before -lgcc.
7874
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7875
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
7877
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7879
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7880
(eval $ac_compile) 2>&5
7882
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7883
(exit $ac_status); } 2>conftest.err; then
7886
libobjs=conftest.$ac_objext
7888
wl=$lt_prog_compiler_wl
7889
pic_flag=$lt_prog_compiler_pic
7895
lt_save_allow_undefined_flag=$allow_undefined_flag
7896
allow_undefined_flag=
7897
if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7898
(eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7900
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901
(exit $ac_status); }
7903
archive_cmds_need_lc=no
7905
archive_cmds_need_lc=yes
7907
allow_undefined_flag=$lt_save_allow_undefined_flag
7909
cat conftest.err 1>&5
7912
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7913
echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
7920
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7921
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
7923
libname_spec='lib$name'
7931
shlibpath_overrides_runpath=unknown
7933
dynamic_linker="$host_os ld.so"
7934
sys_lib_dlsearch_path_spec="/lib /usr/lib"
7936
if test "$GCC" = yes; then
7938
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
7939
*) lt_awk_arg="/^libraries:/" ;;
7941
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7942
if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
7943
# if the path contains ";" then we assume it to be the separator
7944
# otherwise default to the standard path separator (i.e. ":") - it is
7945
# assumed that no part of a normal pathname contains ";" but that should
7946
# okay in the real world where ";" in dirpaths is itself problematic.
7947
lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
7949
lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7951
# Ok, now we have the path, separated by spaces, we can step through it
7952
# and add multilib dir if necessary.
7953
lt_tmp_lt_search_path_spec=
7954
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
7955
for lt_sys_path in $lt_search_path_spec; do
7956
if test -d "$lt_sys_path/$lt_multi_os_dir"; then
7957
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
7959
test -d "$lt_sys_path" && \
7960
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
7963
lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
7964
BEGIN {RS=" "; FS="/|\n";} {
7967
for (lt_i = NF; lt_i > 0; lt_i--) {
7968
if ($lt_i != "" && $lt_i != ".") {
7969
if ($lt_i == "..") {
7972
if (lt_count == 0) {
7973
lt_foo="/" $lt_i lt_foo;
7980
if (lt_foo != "") { lt_freq[lt_foo]++; }
7981
if (lt_freq[lt_foo] == 1) { print lt_foo; }
7983
sys_lib_search_path_spec=`echo $lt_search_path_spec`
7985
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7987
need_lib_prefix=unknown
7988
hardcode_into_libs=no
7990
# when you set need_version to no, make sure it does not cause -set_version
7991
# flags to be left without arguments
7992
need_version=unknown
7997
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7998
shlibpath_var=LIBPATH
8000
# AIX 3 has no versioning support, so we append a major version to the name.
8001
soname_spec='${libname}${release}${shared_ext}$major'
8008
hardcode_into_libs=yes
8009
if test "$host_cpu" = ia64; then
8010
# AIX 5 supports IA64
8011
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8012
shlibpath_var=LD_LIBRARY_PATH
8014
# With GCC up to 2.95.x, collect2 would create an import file
8015
# for dependence libraries. The import file would start with
8016
# the line `#! .'. This would cause the generated library to
8017
# depend on `.', always an invalid library. This was fixed in
8018
# development snapshots of GCC prior to 3.0.
8020
aix4 | aix4.[01] | aix4.[01].*)
8021
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8023
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8030
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8031
# soname into executable. Probably we can add versioning support to
8032
# collect2, so additional links can be useful in future.
8033
if test "$aix_use_runtimelinking" = yes; then
8034
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
8035
# instead of lib<name>.a to let people know that these are not
8036
# typical AIX shared libraries.
8037
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8039
# We preserve .a as extension for shared libraries through AIX4.2
8040
# and later when we are not doing run time linking.
8041
library_names_spec='${libname}${release}.a $libname.a'
8042
soname_spec='${libname}${release}${shared_ext}$major'
8044
shlibpath_var=LIBPATH
8049
library_names_spec='$libname.ixlibrary $libname.a'
8050
# Create ${libname}_ixlibrary.a entries in /sys/libs.
8051
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'
8055
library_names_spec='${libname}${shared_ext}'
8056
dynamic_linker="$host_os ld.so"
8057
shlibpath_var=LIBRARY_PATH
8063
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8064
soname_spec='${libname}${release}${shared_ext}$major'
8065
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8066
shlibpath_var=LD_LIBRARY_PATH
8067
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8068
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8069
# the default ld.so.conf also contains /usr/contrib/lib and
8070
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8071
# libtool to hard-code these into programs
8074
cygwin* | mingw* | pw32*)
8075
version_type=windows
8080
case $GCC,$host_os in
8081
yes,cygwin* | yes,mingw* | yes,pw32*)
8082
library_names_spec='$libname.dll.a'
8083
# DLL is installed to $(libdir)/../bin by postinstall_cmds
8084
postinstall_cmds='base_file=`basename \${file}`~
8085
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8086
dldir=$destdir/`dirname \$dlpath`~
8087
test -d \$dldir || mkdir -p \$dldir~
8088
$install_prog $dir/$dlname \$dldir/$dlname~
8089
chmod a+x \$dldir/$dlname'
8090
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8091
dlpath=$dir/\$dldll~
8093
shlibpath_overrides_runpath=yes
8097
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
8098
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8099
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8102
# MinGW DLLs use traditional 'lib' prefix
8103
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8104
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8105
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8106
# It is most probably a Windows format PATH printed by
8107
# mingw gcc, but we are running on Cygwin. Gcc prints its search
8108
# path with ; separators, and with drive letters. We can handle the
8109
# drive letters (cygwin fileutils understands them), so leave them,
8110
# especially as we might pass files found there to a mingw objdump,
8111
# which wouldn't understand a cygwinified path. Ahh.
8112
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8114
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8118
# pw32 DLLs use 'pw' prefix rather than 'lib'
8119
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8125
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8128
dynamic_linker='Win32 ld.exe'
8129
# FIXME: first we should search . and the directory the executable is in
8133
darwin* | rhapsody*)
8134
dynamic_linker="$host_os dyld"
8138
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8139
soname_spec='${libname}${release}${major}$shared_ext'
8140
shlibpath_overrides_runpath=yes
8141
shlibpath_var=DYLD_LIBRARY_PATH
8142
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8144
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8145
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8152
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8153
soname_spec='${libname}${release}${shared_ext}$major'
8154
shlibpath_var=LD_LIBRARY_PATH
8161
freebsd* | dragonfly*)
8162
# DragonFly does not have aout. When/if they implement a new
8163
# versioning mechanism, adjust this.
8164
if test -x /usr/bin/objformat; then
8165
objformat=`/usr/bin/objformat`
8168
freebsd[123]*) objformat=aout ;;
8172
version_type=freebsd-$objformat
8173
case $version_type in
8175
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8180
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8184
shlibpath_var=LD_LIBRARY_PATH
8187
shlibpath_overrides_runpath=yes
8189
freebsd3.[01]* | freebsdelf3.[01]*)
8190
shlibpath_overrides_runpath=yes
8191
hardcode_into_libs=yes
8193
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8194
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8195
shlibpath_overrides_runpath=no
8196
hardcode_into_libs=yes
8198
*) # from 4.6 on, and DragonFly
8199
shlibpath_overrides_runpath=yes
8200
hardcode_into_libs=yes
8209
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8210
soname_spec='${libname}${release}${shared_ext}$major'
8211
shlibpath_var=LD_LIBRARY_PATH
8212
hardcode_into_libs=yes
8215
hpux9* | hpux10* | hpux11*)
8216
# Give a soname corresponding to the major version so that dld.sl refuses to
8217
# link against other versions.
8224
hardcode_into_libs=yes
8225
dynamic_linker="$host_os dld.so"
8226
shlibpath_var=LD_LIBRARY_PATH
8227
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8228
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8229
soname_spec='${libname}${release}${shared_ext}$major'
8230
if test "X$HPUX_IA64_MODE" = X32; then
8231
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8233
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8235
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8239
hardcode_into_libs=yes
8240
dynamic_linker="$host_os dld.sl"
8241
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8242
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8243
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8244
soname_spec='${libname}${release}${shared_ext}$major'
8245
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8246
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8250
dynamic_linker="$host_os dld.sl"
8251
shlibpath_var=SHLIB_PATH
8252
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8253
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8254
soname_spec='${libname}${release}${shared_ext}$major'
8257
# HP-UX runs *really* slowly unless shared libraries are mode 555.
8258
postinstall_cmds='chmod 555 $lib'
8265
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8266
soname_spec='${libname}${release}${shared_ext}$major'
8267
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8268
shlibpath_var=LD_LIBRARY_PATH
8269
shlibpath_overrides_runpath=no
8270
hardcode_into_libs=yes
8273
irix5* | irix6* | nonstopux*)
8275
nonstopux*) version_type=nonstopux ;;
8277
if test "$lt_cv_prog_gnu_ld" = yes; then
8285
soname_spec='${libname}${release}${shared_ext}$major'
8286
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8288
irix5* | nonstopux*)
8292
case $LD in # libtool.m4 will add one of these switches to LD
8293
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8294
libsuff= shlibsuff= libmagic=32-bit;;
8295
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8296
libsuff=32 shlibsuff=N32 libmagic=N32;;
8297
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8298
libsuff=64 shlibsuff=64 libmagic=64-bit;;
8299
*) libsuff= shlibsuff= libmagic=never-match;;
8303
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8304
shlibpath_overrides_runpath=no
8305
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8306
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8307
hardcode_into_libs=yes
8310
# No shared lib support for Linux oldld, aout, or coff.
8311
linux*oldld* | linux*aout* | linux*coff*)
8315
# This must be Linux ELF.
8316
linux* | k*bsd*-gnu)
8320
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8321
soname_spec='${libname}${release}${shared_ext}$major'
8322
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8323
shlibpath_var=LD_LIBRARY_PATH
8324
shlibpath_overrides_runpath=no
8325
# This implies no fast_install, which is unacceptable.
8326
# Some rework will be needed to allow for fast_install
8327
# before this can be enabled.
8328
hardcode_into_libs=yes
8330
# Append ld.so.conf contents to the search path
8331
if test -f /etc/ld.so.conf; then
8332
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8333
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8336
# We used to test for /lib/ld.so.1 and disable shared libraries on
8337
# powerpc, because MkLinux only supported shared libraries with the
8338
# GNU dynamic linker. Since this was broken with cross compilers,
8339
# most powerpc-linux boxes support dynamic linking these days and
8340
# people can always --disable-shared, the test was removed, and we
8341
# assume the GNU/Linux dynamic linker is in use.
8342
dynamic_linker='GNU/Linux ld.so'
8349
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8350
soname_spec='${libname}${release}${shared_ext}$major'
8351
shlibpath_var=LD_LIBRARY_PATH
8352
shlibpath_overrides_runpath=no
8353
hardcode_into_libs=yes
8354
dynamic_linker='NetBSD ld.elf_so'
8361
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8362
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8363
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8364
dynamic_linker='NetBSD (a.out) ld.so'
8366
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8367
soname_spec='${libname}${release}${shared_ext}$major'
8368
dynamic_linker='NetBSD ld.elf_so'
8370
shlibpath_var=LD_LIBRARY_PATH
8371
shlibpath_overrides_runpath=yes
8372
hardcode_into_libs=yes
8377
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8378
shlibpath_var=LD_LIBRARY_PATH
8379
shlibpath_overrides_runpath=yes
8386
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8387
soname_spec='${libname}${release}${shared_ext}$major'
8388
shlibpath_var=LD_LIBRARY_PATH
8389
shlibpath_overrides_runpath=yes
8394
sys_lib_dlsearch_path_spec="/usr/lib"
8396
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8398
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8399
*) need_version=no ;;
8401
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8402
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8403
shlibpath_var=LD_LIBRARY_PATH
8404
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8406
openbsd2.[89] | openbsd2.[89].*)
8407
shlibpath_overrides_runpath=no
8410
shlibpath_overrides_runpath=yes
8414
shlibpath_overrides_runpath=yes
8419
libname_spec='$name'
8422
library_names_spec='$libname${shared_ext} $libname.a'
8423
dynamic_linker='OS/2 ld.exe'
8424
shlibpath_var=LIBPATH
8427
osf3* | osf4* | osf5*)
8431
soname_spec='${libname}${release}${shared_ext}$major'
8432
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8433
shlibpath_var=LD_LIBRARY_PATH
8434
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8435
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8446
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8447
soname_spec='${libname}${release}${shared_ext}$major'
8448
shlibpath_var=LD_LIBRARY_PATH
8449
shlibpath_overrides_runpath=yes
8450
hardcode_into_libs=yes
8451
# ldd complains unless libraries are executable
8452
postinstall_cmds='chmod +x $lib'
8457
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8458
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8459
shlibpath_var=LD_LIBRARY_PATH
8460
shlibpath_overrides_runpath=yes
8461
if test "$with_gnu_ld" = yes; then
8469
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8470
soname_spec='${libname}${release}${shared_ext}$major'
8471
shlibpath_var=LD_LIBRARY_PATH
8472
case $host_vendor in
8474
shlibpath_overrides_runpath=no
8476
export_dynamic_flag_spec='${wl}-Blargedynsym'
8477
runpath_var=LD_RUN_PATH
8485
shlibpath_overrides_runpath=no
8486
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8492
if test -d /usr/nec ;then
8494
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8495
soname_spec='$libname${shared_ext}.$major'
8496
shlibpath_var=LD_LIBRARY_PATH
8500
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8501
version_type=freebsd-elf
8504
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8505
soname_spec='${libname}${release}${shared_ext}$major'
8506
shlibpath_var=LD_LIBRARY_PATH
8507
hardcode_into_libs=yes
8508
if test "$with_gnu_ld" = yes; then
8509
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8510
shlibpath_overrides_runpath=no
8512
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8513
shlibpath_overrides_runpath=yes
8516
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8520
sys_lib_dlsearch_path_spec='/usr/lib'
8525
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8526
soname_spec='${libname}${release}${shared_ext}$major'
8527
shlibpath_var=LD_LIBRARY_PATH
8534
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8535
echo "${ECHO_T}$dynamic_linker" >&6; }
8536
test "$dynamic_linker" = no && can_build_shared=no
8538
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
8539
echo $ECHO_N "(cached) $ECHO_C" >&6
8541
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
8544
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
8545
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
8546
echo $ECHO_N "(cached) $ECHO_C" >&6
8548
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
8551
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
8553
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8554
if test "$GCC" = yes; then
8555
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8558
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8559
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
8561
if test -n "$hardcode_libdir_flag_spec" || \
8562
test -n "$runpath_var" || \
8563
test "X$hardcode_automatic" = "Xyes" ; then
8565
# We can hardcode non-existant directories.
8566
if test "$hardcode_direct" != no &&
8567
# If the only mechanism to avoid hardcoding is shlibpath_var, we
8568
# have to relink, otherwise we might link with an installed library
8569
# when we should be linking with a yet-to-be-installed one
8570
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8571
test "$hardcode_minus_L" != no; then
8572
# Linking always hardcodes the temporary library directory.
8573
hardcode_action=relink
8575
# We can link without hardcoding, and we can hardcode nonexisting dirs.
8576
hardcode_action=immediate
8579
# We cannot hardcode anything, or else we can only hardcode existing
8581
hardcode_action=unsupported
8583
{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
8584
echo "${ECHO_T}$hardcode_action" >&6; }
8586
if test "$hardcode_action" = relink; then
8587
# Fast installation is not supported
8588
enable_fast_install=no
8589
elif test "$shlibpath_overrides_runpath" = yes ||
8590
test "$enable_shared" = no; then
8591
# Fast installation is not necessary
8592
enable_fast_install=needless
8597
{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8598
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
8599
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8600
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8601
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8602
{ echo "$as_me:$LINENO: result: yes" >&5
8603
echo "${ECHO_T}yes" >&6; }
8605
# FIXME - insert some real tests, host_os isn't really good enough
8608
if test -n "$STRIP" ; then
8609
striplib="$STRIP -x"
8610
old_striplib="$STRIP -S"
8611
{ echo "$as_me:$LINENO: result: yes" >&5
8612
echo "${ECHO_T}yes" >&6; }
8614
{ echo "$as_me:$LINENO: result: no" >&5
8615
echo "${ECHO_T}no" >&6; }
8619
{ echo "$as_me:$LINENO: result: no" >&5
8620
echo "${ECHO_T}no" >&6; }
8625
if test "x$enable_dlopen" != xyes; then
8626
enable_dlopen=unknown
8627
enable_dlopen_self=unknown
8628
enable_dlopen_self_static=unknown
8635
lt_cv_dlopen="load_add_on"
8637
lt_cv_dlopen_self=yes
8641
lt_cv_dlopen="LoadLibrary"
8646
lt_cv_dlopen="dlopen"
8651
# if libdl is installed we need to link against it
8652
{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8653
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
8654
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8655
echo $ECHO_N "(cached) $ECHO_C" >&6
8657
ac_check_lib_save_LIBS=$LIBS
8659
cat >conftest.$ac_ext <<_ACEOF
8662
cat confdefs.h >>conftest.$ac_ext
8663
cat >>conftest.$ac_ext <<_ACEOF
8664
/* end confdefs.h. */
8666
/* Override any GCC internal prototype to avoid an error.
8667
Use char because int might match the return type of a GCC
8668
builtin and then its argument prototype would still apply. */
8681
rm -f conftest.$ac_objext conftest$ac_exeext
8682
if { (ac_try="$ac_link"
8684
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8685
*) ac_try_echo=$ac_try;;
8687
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8688
(eval "$ac_link") 2>conftest.er1
8690
grep -v '^ *+' conftest.er1 >conftest.err
8692
cat conftest.err >&5
8693
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8694
(exit $ac_status); } && {
8695
test -z "$ac_c_werror_flag" ||
8696
test ! -s conftest.err
8697
} && test -s conftest$ac_exeext &&
8698
$as_test_x conftest$ac_exeext; then
8699
ac_cv_lib_dl_dlopen=yes
8701
echo "$as_me: failed program was:" >&5
8702
sed 's/^/| /' conftest.$ac_ext >&5
8704
ac_cv_lib_dl_dlopen=no
8707
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8708
conftest$ac_exeext conftest.$ac_ext
8709
LIBS=$ac_check_lib_save_LIBS
8711
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8712
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
8713
if test $ac_cv_lib_dl_dlopen = yes; then
8714
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8719
lt_cv_dlopen_self=yes
8726
{ echo "$as_me:$LINENO: checking for shl_load" >&5
8727
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
8728
if test "${ac_cv_func_shl_load+set}" = set; then
8729
echo $ECHO_N "(cached) $ECHO_C" >&6
8731
cat >conftest.$ac_ext <<_ACEOF
8734
cat confdefs.h >>conftest.$ac_ext
8735
cat >>conftest.$ac_ext <<_ACEOF
8736
/* end confdefs.h. */
8737
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8738
For example, HP-UX 11i <limits.h> declares gettimeofday. */
8739
#define shl_load innocuous_shl_load
8741
/* System header to define __stub macros and hopefully few prototypes,
8742
which can conflict with char shl_load (); below.
8743
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8744
<limits.h> exists even on freestanding compilers. */
8747
# include <limits.h>
8749
# include <assert.h>
8754
/* Override any GCC internal prototype to avoid an error.
8755
Use char because int might match the return type of a GCC
8756
builtin and then its argument prototype would still apply. */
8761
/* The GNU C library defines this for functions which it implements
8762
to always fail with ENOSYS. Some functions are actually named
8763
something starting with __ and the normal name is an alias. */
8764
#if defined __stub_shl_load || defined __stub___shl_load
8776
rm -f conftest.$ac_objext conftest$ac_exeext
8777
if { (ac_try="$ac_link"
8779
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8780
*) ac_try_echo=$ac_try;;
8782
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8783
(eval "$ac_link") 2>conftest.er1
8785
grep -v '^ *+' conftest.er1 >conftest.err
8787
cat conftest.err >&5
8788
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8789
(exit $ac_status); } && {
8790
test -z "$ac_c_werror_flag" ||
8791
test ! -s conftest.err
8792
} && test -s conftest$ac_exeext &&
8793
$as_test_x conftest$ac_exeext; then
8794
ac_cv_func_shl_load=yes
8796
echo "$as_me: failed program was:" >&5
8797
sed 's/^/| /' conftest.$ac_ext >&5
8799
ac_cv_func_shl_load=no
8802
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8803
conftest$ac_exeext conftest.$ac_ext
8805
{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8806
echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
8807
if test $ac_cv_func_shl_load = yes; then
8808
lt_cv_dlopen="shl_load"
8810
{ echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8811
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
8812
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8813
echo $ECHO_N "(cached) $ECHO_C" >&6
8815
ac_check_lib_save_LIBS=$LIBS
8817
cat >conftest.$ac_ext <<_ACEOF
8820
cat confdefs.h >>conftest.$ac_ext
8821
cat >>conftest.$ac_ext <<_ACEOF
8822
/* end confdefs.h. */
8824
/* Override any GCC internal prototype to avoid an error.
8825
Use char because int might match the return type of a GCC
8826
builtin and then its argument prototype would still apply. */
8839
rm -f conftest.$ac_objext conftest$ac_exeext
8840
if { (ac_try="$ac_link"
8842
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8843
*) ac_try_echo=$ac_try;;
8845
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8846
(eval "$ac_link") 2>conftest.er1
8848
grep -v '^ *+' conftest.er1 >conftest.err
8850
cat conftest.err >&5
8851
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8852
(exit $ac_status); } && {
8853
test -z "$ac_c_werror_flag" ||
8854
test ! -s conftest.err
8855
} && test -s conftest$ac_exeext &&
8856
$as_test_x conftest$ac_exeext; then
8857
ac_cv_lib_dld_shl_load=yes
8859
echo "$as_me: failed program was:" >&5
8860
sed 's/^/| /' conftest.$ac_ext >&5
8862
ac_cv_lib_dld_shl_load=no
8865
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8866
conftest$ac_exeext conftest.$ac_ext
8867
LIBS=$ac_check_lib_save_LIBS
8869
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8870
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
8871
if test $ac_cv_lib_dld_shl_load = yes; then
8872
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
8874
{ echo "$as_me:$LINENO: checking for dlopen" >&5
8875
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
8876
if test "${ac_cv_func_dlopen+set}" = set; then
8877
echo $ECHO_N "(cached) $ECHO_C" >&6
8879
cat >conftest.$ac_ext <<_ACEOF
8882
cat confdefs.h >>conftest.$ac_ext
8883
cat >>conftest.$ac_ext <<_ACEOF
8884
/* end confdefs.h. */
8885
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8886
For example, HP-UX 11i <limits.h> declares gettimeofday. */
8887
#define dlopen innocuous_dlopen
8889
/* System header to define __stub macros and hopefully few prototypes,
8890
which can conflict with char dlopen (); below.
8891
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8892
<limits.h> exists even on freestanding compilers. */
8895
# include <limits.h>
8897
# include <assert.h>
8902
/* Override any GCC internal prototype to avoid an error.
8903
Use char because int might match the return type of a GCC
8904
builtin and then its argument prototype would still apply. */
8909
/* The GNU C library defines this for functions which it implements
8910
to always fail with ENOSYS. Some functions are actually named
8911
something starting with __ and the normal name is an alias. */
8912
#if defined __stub_dlopen || defined __stub___dlopen
8924
rm -f conftest.$ac_objext conftest$ac_exeext
8925
if { (ac_try="$ac_link"
8927
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8928
*) ac_try_echo=$ac_try;;
8930
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8931
(eval "$ac_link") 2>conftest.er1
8933
grep -v '^ *+' conftest.er1 >conftest.err
8935
cat conftest.err >&5
8936
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8937
(exit $ac_status); } && {
8938
test -z "$ac_c_werror_flag" ||
8939
test ! -s conftest.err
8940
} && test -s conftest$ac_exeext &&
8941
$as_test_x conftest$ac_exeext; then
8942
ac_cv_func_dlopen=yes
8944
echo "$as_me: failed program was:" >&5
8945
sed 's/^/| /' conftest.$ac_ext >&5
8947
ac_cv_func_dlopen=no
8950
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8951
conftest$ac_exeext conftest.$ac_ext
8953
{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8954
echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
8955
if test $ac_cv_func_dlopen = yes; then
8956
lt_cv_dlopen="dlopen"
8958
{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8959
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
8960
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8961
echo $ECHO_N "(cached) $ECHO_C" >&6
8963
ac_check_lib_save_LIBS=$LIBS
8965
cat >conftest.$ac_ext <<_ACEOF
8968
cat confdefs.h >>conftest.$ac_ext
8969
cat >>conftest.$ac_ext <<_ACEOF
8970
/* end confdefs.h. */
8972
/* Override any GCC internal prototype to avoid an error.
8973
Use char because int might match the return type of a GCC
8974
builtin and then its argument prototype would still apply. */
8987
rm -f conftest.$ac_objext conftest$ac_exeext
8988
if { (ac_try="$ac_link"
8990
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8991
*) ac_try_echo=$ac_try;;
8993
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8994
(eval "$ac_link") 2>conftest.er1
8996
grep -v '^ *+' conftest.er1 >conftest.err
8998
cat conftest.err >&5
8999
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9000
(exit $ac_status); } && {
9001
test -z "$ac_c_werror_flag" ||
9002
test ! -s conftest.err
9003
} && test -s conftest$ac_exeext &&
9004
$as_test_x conftest$ac_exeext; then
9005
ac_cv_lib_dl_dlopen=yes
9007
echo "$as_me: failed program was:" >&5
9008
sed 's/^/| /' conftest.$ac_ext >&5
9010
ac_cv_lib_dl_dlopen=no
9013
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9014
conftest$ac_exeext conftest.$ac_ext
9015
LIBS=$ac_check_lib_save_LIBS
9017
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9018
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9019
if test $ac_cv_lib_dl_dlopen = yes; then
9020
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9022
{ echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9023
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9024
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9025
echo $ECHO_N "(cached) $ECHO_C" >&6
9027
ac_check_lib_save_LIBS=$LIBS
9029
cat >conftest.$ac_ext <<_ACEOF
9032
cat confdefs.h >>conftest.$ac_ext
9033
cat >>conftest.$ac_ext <<_ACEOF
9034
/* end confdefs.h. */
9036
/* Override any GCC internal prototype to avoid an error.
9037
Use char because int might match the return type of a GCC
9038
builtin and then its argument prototype would still apply. */
9051
rm -f conftest.$ac_objext conftest$ac_exeext
9052
if { (ac_try="$ac_link"
9054
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9055
*) ac_try_echo=$ac_try;;
9057
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9058
(eval "$ac_link") 2>conftest.er1
9060
grep -v '^ *+' conftest.er1 >conftest.err
9062
cat conftest.err >&5
9063
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9064
(exit $ac_status); } && {
9065
test -z "$ac_c_werror_flag" ||
9066
test ! -s conftest.err
9067
} && test -s conftest$ac_exeext &&
9068
$as_test_x conftest$ac_exeext; then
9069
ac_cv_lib_svld_dlopen=yes
9071
echo "$as_me: failed program was:" >&5
9072
sed 's/^/| /' conftest.$ac_ext >&5
9074
ac_cv_lib_svld_dlopen=no
9077
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9078
conftest$ac_exeext conftest.$ac_ext
9079
LIBS=$ac_check_lib_save_LIBS
9081
{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9082
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9083
if test $ac_cv_lib_svld_dlopen = yes; then
9084
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9086
{ echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9087
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9088
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9089
echo $ECHO_N "(cached) $ECHO_C" >&6
9091
ac_check_lib_save_LIBS=$LIBS
9093
cat >conftest.$ac_ext <<_ACEOF
9096
cat confdefs.h >>conftest.$ac_ext
9097
cat >>conftest.$ac_ext <<_ACEOF
9098
/* end confdefs.h. */
9100
/* Override any GCC internal prototype to avoid an error.
9101
Use char because int might match the return type of a GCC
9102
builtin and then its argument prototype would still apply. */
9115
rm -f conftest.$ac_objext conftest$ac_exeext
9116
if { (ac_try="$ac_link"
9118
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9119
*) ac_try_echo=$ac_try;;
9121
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9122
(eval "$ac_link") 2>conftest.er1
9124
grep -v '^ *+' conftest.er1 >conftest.err
9126
cat conftest.err >&5
9127
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9128
(exit $ac_status); } && {
9129
test -z "$ac_c_werror_flag" ||
9130
test ! -s conftest.err
9131
} && test -s conftest$ac_exeext &&
9132
$as_test_x conftest$ac_exeext; then
9133
ac_cv_lib_dld_dld_link=yes
9135
echo "$as_me: failed program was:" >&5
9136
sed 's/^/| /' conftest.$ac_ext >&5
9138
ac_cv_lib_dld_dld_link=no
9141
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9142
conftest$ac_exeext conftest.$ac_ext
9143
LIBS=$ac_check_lib_save_LIBS
9145
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9146
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9147
if test $ac_cv_lib_dld_dld_link = yes; then
9148
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
9169
if test "x$lt_cv_dlopen" != xno; then
9175
case $lt_cv_dlopen in
9177
save_CPPFLAGS="$CPPFLAGS"
9178
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9180
save_LDFLAGS="$LDFLAGS"
9181
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9184
LIBS="$lt_cv_dlopen_libs $LIBS"
9186
{ echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9187
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9188
if test "${lt_cv_dlopen_self+set}" = set; then
9189
echo $ECHO_N "(cached) $ECHO_C" >&6
9191
if test "$cross_compiling" = yes; then :
9192
lt_cv_dlopen_self=cross
9194
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9195
lt_status=$lt_dlunknown
9196
cat > conftest.$ac_ext <<EOF
9197
#line 9197 "configure"
9198
#include "confdefs.h"
9207
# define LT_DLGLOBAL RTLD_GLOBAL
9210
# define LT_DLGLOBAL DL_GLOBAL
9212
# define LT_DLGLOBAL 0
9216
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9217
find out it does not work in some platform. */
9218
#ifndef LT_DLLAZY_OR_NOW
9220
# define LT_DLLAZY_OR_NOW RTLD_LAZY
9223
# define LT_DLLAZY_OR_NOW DL_LAZY
9226
# define LT_DLLAZY_OR_NOW RTLD_NOW
9229
# define LT_DLLAZY_OR_NOW DL_NOW
9231
# define LT_DLLAZY_OR_NOW 0
9239
extern "C" void exit (int);
9242
void fnord() { int i=42;}
9245
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9246
int status = $lt_dlunknown;
9250
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9251
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9252
/* dlclose (self); */
9260
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9261
(eval $ac_link) 2>&5
9263
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9264
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9265
(./conftest; exit; ) >&5 2>/dev/null
9268
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9269
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9270
x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9273
# compilation failed
9274
lt_cv_dlopen_self=no
9281
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9282
echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9284
if test "x$lt_cv_dlopen_self" = xyes; then
9285
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9286
{ echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9287
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9288
if test "${lt_cv_dlopen_self_static+set}" = set; then
9289
echo $ECHO_N "(cached) $ECHO_C" >&6
9291
if test "$cross_compiling" = yes; then :
9292
lt_cv_dlopen_self_static=cross
9294
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9295
lt_status=$lt_dlunknown
9296
cat > conftest.$ac_ext <<EOF
9297
#line 9297 "configure"
9298
#include "confdefs.h"
9307
# define LT_DLGLOBAL RTLD_GLOBAL
9310
# define LT_DLGLOBAL DL_GLOBAL
9312
# define LT_DLGLOBAL 0
9316
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9317
find out it does not work in some platform. */
9318
#ifndef LT_DLLAZY_OR_NOW
9320
# define LT_DLLAZY_OR_NOW RTLD_LAZY
9323
# define LT_DLLAZY_OR_NOW DL_LAZY
9326
# define LT_DLLAZY_OR_NOW RTLD_NOW
9329
# define LT_DLLAZY_OR_NOW DL_NOW
9331
# define LT_DLLAZY_OR_NOW 0
9339
extern "C" void exit (int);
9342
void fnord() { int i=42;}
9345
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9346
int status = $lt_dlunknown;
9350
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9351
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9352
/* dlclose (self); */
9360
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9361
(eval $ac_link) 2>&5
9363
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9364
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9365
(./conftest; exit; ) >&5 2>/dev/null
9368
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9369
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9370
x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9373
# compilation failed
9374
lt_cv_dlopen_self_static=no
9381
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9382
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
9385
CPPFLAGS="$save_CPPFLAGS"
9386
LDFLAGS="$save_LDFLAGS"
9391
case $lt_cv_dlopen_self in
9392
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9393
*) enable_dlopen_self=unknown ;;
9396
case $lt_cv_dlopen_self_static in
9397
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9398
*) enable_dlopen_self_static=unknown ;;
9403
# Report which library types will actually be built
9404
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9405
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
9406
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
9407
echo "${ECHO_T}$can_build_shared" >&6; }
9409
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9410
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
9411
test "$can_build_shared" = "no" && enable_shared=no
9413
# On AIX, shared libraries and static libraries use the same namespace, and
9414
# are all built from PIC.
9417
test "$enable_shared" = yes && enable_static=no
9418
if test -n "$RANLIB"; then
9419
archive_cmds="$archive_cmds~\$RANLIB \$lib"
9420
postinstall_cmds='$RANLIB $lib'
9425
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9426
test "$enable_shared" = yes && enable_static=no
9430
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
9431
echo "${ECHO_T}$enable_shared" >&6; }
9433
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9434
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
9435
# Make sure either enable_shared or enable_static is yes.
9436
test "$enable_shared" = yes || enable_static=yes
9437
{ echo "$as_me:$LINENO: result: $enable_static" >&5
9438
echo "${ECHO_T}$enable_static" >&6; }
9440
# The else clause should only fire when bootstrapping the
9441
# libtool distribution, otherwise you forgot to ship ltmain.sh
9442
# with your package, and you will get complaints that there are
9443
# no rules to generate ltmain.sh.
9444
if test -f "$ltmain"; then
9445
# See if we are running on zsh, and set the options which allow our commands through
9446
# without removal of \ escapes.
9447
if test -n "${ZSH_VERSION+set}" ; then
9448
setopt NO_GLOB_SUBST
9450
# Now quote all the things that may contain metacharacters while being
9451
# careful not to overquote the AC_SUBSTed values. We take copies of the
9452
# variables and quote the copies for generation of the libtool script.
9453
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9455
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9456
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9457
deplibs_check_method reload_flag reload_cmds need_locks \
9458
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9459
lt_cv_sys_global_symbol_to_c_name_address \
9460
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9461
old_postinstall_cmds old_postuninstall_cmds \
9465
lt_prog_compiler_wl \
9466
lt_prog_compiler_pic \
9467
lt_prog_compiler_static \
9468
lt_prog_compiler_no_builtin_flag \
9469
export_dynamic_flag_spec \
9470
thread_safe_flag_spec \
9471
whole_archive_flag_spec \
9472
enable_shared_with_static_runtimes \
9474
old_archive_from_new_cmds \
9479
compiler_lib_search_path \
9480
compiler_lib_search_dirs \
9482
archive_expsym_cmds \
9484
postuninstall_cmds \
9485
old_archive_from_expsyms_cmds \
9486
allow_undefined_flag \
9488
export_symbols_cmds \
9489
hardcode_libdir_flag_spec \
9490
hardcode_libdir_flag_spec_ld \
9491
hardcode_libdir_separator \
9492
hardcode_automatic \
9494
module_expsym_cmds \
9495
lt_cv_prog_compiler_c_o \
9501
old_archive_cmds | \
9502
old_archive_from_new_cmds | \
9504
archive_expsym_cmds | \
9506
module_expsym_cmds | \
9507
old_archive_from_expsyms_cmds | \
9508
export_symbols_cmds | \
9509
extract_expsyms_cmds | reload_cmds | finish_cmds | \
9510
postinstall_cmds | postuninstall_cmds | \
9511
old_postinstall_cmds | old_postuninstall_cmds | \
9512
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9513
# Double-quote double-evaled strings.
9514
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9517
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9523
*'\$0 --fallback-echo"')
9524
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9529
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9531
{ echo "$as_me:$LINENO: creating $ofile" >&5
9532
echo "$as_me: creating $ofile" >&6;}
9534
cat <<__EOF__ >> "$cfgfile"
9537
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9538
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9539
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9541
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
9542
# Free Software Foundation, Inc.
9544
# This file is part of GNU Libtool:
9545
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9547
# This program is free software; you can redistribute it and/or modify
9548
# it under the terms of the GNU General Public License as published by
9549
# the Free Software Foundation; either version 2 of the License, or
9550
# (at your option) any later version.
9552
# This program is distributed in the hope that it will be useful, but
9553
# WITHOUT ANY WARRANTY; without even the implied warranty of
9554
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9555
# General Public License for more details.
9557
# You should have received a copy of the GNU General Public License
9558
# along with this program; if not, write to the Free Software
9559
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9561
# As a special exception to the GNU General Public License, if you
9562
# distribute this file as part of a program that contains a
9563
# configuration script generated by Autoconf, you may include it under
9564
# the same distribution terms that you use for the rest of that program.
9566
# A sed program that does not truncate output.
9569
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9570
Xsed="$SED -e 1s/^X//"
9572
# The HP-UX ksh and POSIX shell print the target directory to stdout
9574
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9576
# The names of the tagged configurations supported by this script.
9579
# ### BEGIN LIBTOOL CONFIG
9581
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9583
# Shell to use when invoking shell scripts.
9586
# Whether or not to build shared libraries.
9587
build_libtool_libs=$enable_shared
9589
# Whether or not to build static libraries.
9590
build_old_libs=$enable_static
9592
# Whether or not to add -lc for building shared libraries.
9593
build_libtool_need_lc=$archive_cmds_need_lc
9595
# Whether or not to disallow shared libs when runtime libs are static
9596
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9598
# Whether or not to optimize for fast installation.
9599
fast_install=$enable_fast_install
9602
host_alias=$host_alias
9607
build_alias=$build_alias
9611
# An echo program that does not interpret backslashes.
9616
AR_FLAGS=$lt_AR_FLAGS
9621
# LTCC compiler flags.
9622
LTCFLAGS=$lt_LTCFLAGS
9624
# A language-specific compiler.
9627
# Is the compiler the GNU C compiler?
9633
# The linker used to build libraries.
9636
# Whether we need hard or soft links.
9639
# A BSD-compatible nm program.
9642
# A symbol stripping program
9645
# Used to examine libraries when file_magic_cmd begins "file"
9646
MAGIC_CMD=$MAGIC_CMD
9648
# Used on cygwin: DLL creation program.
9651
# Used on cygwin: object dumper.
9654
# Used on cygwin: assembler.
9657
# The name of the directory that contains temporary libtool files.
9660
# How to create reloadable object files.
9661
reload_flag=$lt_reload_flag
9662
reload_cmds=$lt_reload_cmds
9664
# How to pass a linker flag through the compiler.
9665
wl=$lt_lt_prog_compiler_wl
9667
# Object file suffix (normally "o").
9670
# Old archive suffix (normally "a").
9673
# Shared library suffix (normally ".so").
9674
shrext_cmds='$shrext_cmds'
9676
# Executable file suffix (normally "").
9679
# Additional compiler flags for building library objects.
9680
pic_flag=$lt_lt_prog_compiler_pic
9683
# What is the maximum length of a command?
9684
max_cmd_len=$lt_cv_sys_max_cmd_len
9686
# Does compiler simultaneously support -c and -o options?
9687
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9689
# Must we lock files when doing compilation?
9690
need_locks=$lt_need_locks
9692
# Do we need the lib prefix for modules?
9693
need_lib_prefix=$need_lib_prefix
9695
# Do we need a version for libraries?
9696
need_version=$need_version
9698
# Whether dlopen is supported.
9699
dlopen_support=$enable_dlopen
9701
# Whether dlopen of programs is supported.
9702
dlopen_self=$enable_dlopen_self
9704
# Whether dlopen of statically linked programs is supported.
9705
dlopen_self_static=$enable_dlopen_self_static
9707
# Compiler flag to prevent dynamic linking.
9708
link_static_flag=$lt_lt_prog_compiler_static
9710
# Compiler flag to turn off builtin functions.
9711
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9713
# Compiler flag to allow reflexive dlopens.
9714
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9716
# Compiler flag to generate shared objects directly from archives.
9717
whole_archive_flag_spec=$lt_whole_archive_flag_spec
9719
# Compiler flag to generate thread-safe objects.
9720
thread_safe_flag_spec=$lt_thread_safe_flag_spec
9722
# Library versioning type.
9723
version_type=$version_type
9725
# Format of library name prefix.
9726
libname_spec=$lt_libname_spec
9728
# List of archive names. First name is the real one, the rest are links.
9729
# The last name is the one that the linker finds with -lNAME.
9730
library_names_spec=$lt_library_names_spec
9732
# The coded name of the library, if different from the real name.
9733
soname_spec=$lt_soname_spec
9735
# Commands used to build and install an old-style archive.
9737
old_archive_cmds=$lt_old_archive_cmds
9738
old_postinstall_cmds=$lt_old_postinstall_cmds
9739
old_postuninstall_cmds=$lt_old_postuninstall_cmds
9741
# Create an old-style archive from a shared archive.
9742
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9744
# Create a temporary old-style archive to link instead of a shared archive.
9745
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9747
# Commands used to build and install a shared archive.
9748
archive_cmds=$lt_archive_cmds
9749
archive_expsym_cmds=$lt_archive_expsym_cmds
9750
postinstall_cmds=$lt_postinstall_cmds
9751
postuninstall_cmds=$lt_postuninstall_cmds
9753
# Commands used to build a loadable module (assumed same as above if empty)
9754
module_cmds=$lt_module_cmds
9755
module_expsym_cmds=$lt_module_expsym_cmds
9757
# Commands to strip libraries.
9758
old_striplib=$lt_old_striplib
9759
striplib=$lt_striplib
9761
# Dependencies to place before the objects being linked to create a
9763
predep_objects=$lt_predep_objects
9765
# Dependencies to place after the objects being linked to create a
9767
postdep_objects=$lt_postdep_objects
9769
# Dependencies to place before the objects being linked to create a
9773
# Dependencies to place after the objects being linked to create a
9775
postdeps=$lt_postdeps
9777
# The directories searched by this compiler when creating a shared
9779
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
9781
# The library search path used internally by the compiler when linking
9783
compiler_lib_search_path=$lt_compiler_lib_search_path
9785
# Method to check whether dependent libraries are shared objects.
9786
deplibs_check_method=$lt_deplibs_check_method
9788
# Command to use when deplibs_check_method == file_magic.
9789
file_magic_cmd=$lt_file_magic_cmd
9791
# Flag that allows shared libraries with undefined symbols to be built.
9792
allow_undefined_flag=$lt_allow_undefined_flag
9794
# Flag that forces no undefined symbols.
9795
no_undefined_flag=$lt_no_undefined_flag
9797
# Commands used to finish a libtool library installation in a directory.
9798
finish_cmds=$lt_finish_cmds
9800
# Same as above, but a single script fragment to be evaled but not shown.
9801
finish_eval=$lt_finish_eval
9803
# Take the output of nm and produce a listing of raw symbols and C names.
9804
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9806
# Transform the output of nm in a proper C declaration
9807
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9809
# Transform the output of nm in a C name address pair
9810
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9812
# This is the shared library runtime path variable.
9813
runpath_var=$runpath_var
9815
# This is the shared library path variable.
9816
shlibpath_var=$shlibpath_var
9818
# Is shlibpath searched before the hard-coded library search path?
9819
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9821
# How to hardcode a shared library path into an executable.
9822
hardcode_action=$hardcode_action
9824
# Whether we should hardcode library paths into libraries.
9825
hardcode_into_libs=$hardcode_into_libs
9827
# Flag to hardcode \$libdir into a binary during linking.
9828
# This must work even if \$libdir does not exist.
9829
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9831
# If ld is used when linking, flag to hardcode \$libdir into
9832
# a binary during linking. This must work even if \$libdir does
9834
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9836
# Whether we need a single -rpath flag with a separated argument.
9837
hardcode_libdir_separator=$lt_hardcode_libdir_separator
9839
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9841
hardcode_direct=$hardcode_direct
9843
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9845
hardcode_minus_L=$hardcode_minus_L
9847
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9848
# the resulting binary.
9849
hardcode_shlibpath_var=$hardcode_shlibpath_var
9851
# Set to yes if building a shared library automatically hardcodes DIR into the library
9852
# and all subsequent libraries and executables linked against it.
9853
hardcode_automatic=$hardcode_automatic
9855
# Variables whose values should be saved in libtool wrapper scripts and
9856
# restored at relink time.
9857
variables_saved_for_relink="$variables_saved_for_relink"
9859
# Whether libtool must link a program against all its dependency libraries.
9860
link_all_deplibs=$link_all_deplibs
9862
# Compile-time system search path for libraries
9863
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9865
# Run-time system search path for libraries
9866
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9868
# Fix the shell variable \$srcfile for the compiler.
9869
fix_srcfile_path=$lt_fix_srcfile_path
9871
# Set to yes if exported symbols are required.
9872
always_export_symbols=$always_export_symbols
9874
# The commands to list exported symbols.
9875
export_symbols_cmds=$lt_export_symbols_cmds
9877
# The commands to extract the exported symbol list from a shared archive.
9878
extract_expsyms_cmds=$lt_extract_expsyms_cmds
9880
# Symbols that should not be listed in the preloaded symbols.
9881
exclude_expsyms=$lt_exclude_expsyms
9883
# Symbols that must always be exported.
9884
include_expsyms=$lt_include_expsyms
9886
# ### END LIBTOOL CONFIG
9893
cat <<\EOF >> "$cfgfile"
9895
# AIX sometimes has problems with the GCC collect2 program. For some
9896
# reason, if we set the COLLECT_NAMES environment variable, the problems
9897
# vanish in a puff of smoke.
9898
if test "X${COLLECT_NAMES+set}" != Xset; then
9900
export COLLECT_NAMES
9906
# We use sed instead of cat because bash on DJGPP gets confused if
9907
# if finds mixed CR/LF and LF-only lines. Since sed operates in
9908
# text mode, it properly converts lines to CR/LF. This bash problem
9909
# is reportedly fixed, but why not run on old versions too?
9910
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9912
mv -f "$cfgfile" "$ofile" || \
9913
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9917
# If there is no Makefile yet, we rely on a make rule to execute
9918
# `config.status --recheck' to rerun these tests and create the
9919
# libtool script then.
9920
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9921
if test -f "$ltmain_in"; then
9922
test -f Makefile && make "$ltmain"
9928
ac_cpp='$CPP $CPPFLAGS'
9929
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9930
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9931
ac_compiler_gnu=$ac_cv_c_compiler_gnu
9936
# Check whether --with-tags was given.
9937
if test "${with_tags+set}" = set; then
9938
withval=$with_tags; tagnames="$withval"
9942
if test -f "$ltmain" && test -n "$tagnames"; then
9943
if test ! -f "${ofile}"; then
9944
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9945
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9948
if test -z "$LTCC"; then
9949
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9950
if test -z "$LTCC"; then
9951
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9952
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9954
{ echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9955
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9958
if test -z "$LTCFLAGS"; then
9959
eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
9962
# Extract list of available tagged configurations in $ofile.
9963
# Note that this assumes the entire list is on one line.
9964
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9966
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9967
for tagname in $tagnames; do
9969
# Check whether tagname contains only valid characters
9970
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9972
*) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9973
echo "$as_me: error: invalid tag name: $tagname" >&2;}
9974
{ (exit 1); exit 1; }; }
9978
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9980
{ { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9981
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9982
{ (exit 1); exit 1; }; }
9985
# Update the list of available tags.
9986
if test -n "$tagname"; then
9987
echo appending configuration tag \"$tagname\" to $ofile
9991
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9992
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9993
(test "X$CXX" != "Xg++"))) ; then
10001
if test -n "$F77" && test "X$F77" != "Xno"; then
10009
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
10012
# Source file extension for Java test sources.
10015
# Object file extension for compiled Java test sources.
10019
# Code to be used in simple compile tests
10020
lt_simple_compile_test_code="class foo {}"
10022
# Code to be used in simple link tests
10023
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
10025
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10027
# If no C compiler was specified, use CC.
10030
# If no C compiler flags were specified, use CFLAGS.
10031
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10033
# Allow CC to be a program name with arguments.
10037
# save warnings/boilerplate of simple test code
10038
ac_outfile=conftest.$ac_objext
10039
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10040
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10041
_lt_compiler_boilerplate=`cat conftest.err`
10044
ac_outfile=conftest.$ac_objext
10045
echo "$lt_simple_link_test_code" >conftest.$ac_ext
10046
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10047
_lt_linker_boilerplate=`cat conftest.err`
10051
# Allow CC to be a program name with arguments.
10056
for cc_temp in $compiler""; do
10058
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10059
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10064
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10067
# GCJ did not exist at the time GCC didn't implicitly link libc in.
10068
archive_cmds_need_lc_GCJ=no
10070
old_archive_cmds_GCJ=$old_archive_cmds
10073
lt_prog_compiler_no_builtin_flag_GCJ=
10075
if test "$GCC" = yes; then
10076
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
10079
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10080
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
10081
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
10082
echo $ECHO_N "(cached) $ECHO_C" >&6
10084
lt_cv_prog_compiler_rtti_exceptions=no
10085
ac_outfile=conftest.$ac_objext
10086
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10087
lt_compiler_flag="-fno-rtti -fno-exceptions"
10088
# Insert the option either (1) after the last *FLAGS variable, or
10089
# (2) before a word containing "conftest.", or (3) at the end.
10090
# Note that $ac_compile itself does not contain backslashes and begins
10091
# with a dollar sign (not a hyphen), so the echo should work correctly.
10092
# The option is referenced via a variable to avoid confusing sed.
10093
lt_compile=`echo "$ac_compile" | $SED \
10094
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10095
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10096
-e 's:$: $lt_compiler_flag:'`
10097
(eval echo "\"\$as_me:10097: $lt_compile\"" >&5)
10098
(eval "$lt_compile" 2>conftest.err)
10100
cat conftest.err >&5
10101
echo "$as_me:10101: \$? = $ac_status" >&5
10102
if (exit $ac_status) && test -s "$ac_outfile"; then
10103
# The compiler can only warn and ignore the option if not recognized
10104
# So say no if there are warnings other than the usual output.
10105
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10106
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10107
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10108
lt_cv_prog_compiler_rtti_exceptions=yes
10114
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10115
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10117
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10118
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
10125
lt_prog_compiler_wl_GCJ=
10126
lt_prog_compiler_pic_GCJ=
10127
lt_prog_compiler_static_GCJ=
10129
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10130
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
10132
if test "$GCC" = yes; then
10133
lt_prog_compiler_wl_GCJ='-Wl,'
10134
lt_prog_compiler_static_GCJ='-static'
10138
# All AIX code is PIC.
10139
if test "$host_cpu" = ia64; then
10140
# AIX 5 now supports IA64 processor
10141
lt_prog_compiler_static_GCJ='-Bstatic'
10146
# FIXME: we need at least 68020 code to build shared libraries, but
10147
# adding the `-m68020' flag to GCC prevents building anything better,
10149
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
10152
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10153
# PIC is the default for these OSes.
10156
mingw* | cygwin* | pw32* | os2*)
10157
# This hack is so that the source file can tell whether it is being
10158
# built for inclusion in a dll (and should export symbols for example).
10159
# Although the cygwin gcc ignores -fPIC, still need this for old-style
10160
# (--disable-auto-import) libraries
10164
darwin* | rhapsody*)
10165
# PIC is the default on this platform
10166
# Common symbols not allowed in MH_DYLIB files
10167
lt_prog_compiler_pic_GCJ='-fno-common'
10171
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
10172
# Instead, we relocate shared libraries at runtime.
10176
# Just because we use GCC doesn't mean we suddenly get shared libraries
10177
# on systems that don't support them.
10178
lt_prog_compiler_can_build_shared_GCJ=no
10183
if test -d /usr/nec; then
10184
lt_prog_compiler_pic_GCJ=-Kconform_pic
10189
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10190
# not for PA HP-UX.
10196
lt_prog_compiler_pic_GCJ='-fPIC'
10202
lt_prog_compiler_pic_GCJ='-fPIC'
10206
# PORTME Check for flag to pass linker flags through the system compiler.
10209
lt_prog_compiler_wl_GCJ='-Wl,'
10210
if test "$host_cpu" = ia64; then
10211
# AIX 5 now supports IA64 processor
10212
lt_prog_compiler_static_GCJ='-Bstatic'
10214
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
10218
# PIC is the default on this platform
10219
# Common symbols not allowed in MH_DYLIB files
10220
case $cc_basename in
10222
lt_prog_compiler_pic_GCJ='-qnocommon'
10223
lt_prog_compiler_wl_GCJ='-Wl,'
10228
mingw* | cygwin* | pw32* | os2*)
10229
# This hack is so that the source file can tell whether it is being
10230
# built for inclusion in a dll (and should export symbols for example).
10234
hpux9* | hpux10* | hpux11*)
10235
lt_prog_compiler_wl_GCJ='-Wl,'
10236
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10237
# not for PA HP-UX.
10243
lt_prog_compiler_pic_GCJ='+Z'
10246
# Is there a better lt_prog_compiler_static that works with the bundled CC?
10247
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
10250
irix5* | irix6* | nonstopux*)
10251
lt_prog_compiler_wl_GCJ='-Wl,'
10252
# PIC (with -KPIC) is the default.
10253
lt_prog_compiler_static_GCJ='-non_shared'
10257
lt_prog_compiler_pic_GCJ='-KPIC'
10258
lt_prog_compiler_static_GCJ='-Bstatic'
10261
linux* | k*bsd*-gnu)
10262
case $cc_basename in
10264
lt_prog_compiler_wl_GCJ='-Wl,'
10265
lt_prog_compiler_pic_GCJ='-KPIC'
10266
lt_prog_compiler_static_GCJ='-static'
10268
pgcc* | pgf77* | pgf90* | pgf95*)
10269
# Portland Group compilers (*not* the Pentium gcc compiler,
10270
# which looks to be a dead project)
10271
lt_prog_compiler_wl_GCJ='-Wl,'
10272
lt_prog_compiler_pic_GCJ='-fpic'
10273
lt_prog_compiler_static_GCJ='-Bstatic'
10276
lt_prog_compiler_wl_GCJ='-Wl,'
10277
# All Alpha code is PIC.
10278
lt_prog_compiler_static_GCJ='-non_shared'
10281
case `$CC -V 2>&1 | sed 5q` in
10284
lt_prog_compiler_pic_GCJ='-KPIC'
10285
lt_prog_compiler_static_GCJ='-Bstatic'
10286
lt_prog_compiler_wl_GCJ='-Wl,'
10289
# Sun Fortran 8.3 passes all unrecognized flags to the linker
10290
lt_prog_compiler_pic_GCJ='-KPIC'
10291
lt_prog_compiler_static_GCJ='-Bstatic'
10292
lt_prog_compiler_wl_GCJ=''
10299
osf3* | osf4* | osf5*)
10300
lt_prog_compiler_wl_GCJ='-Wl,'
10301
# All OSF/1 code is PIC.
10302
lt_prog_compiler_static_GCJ='-non_shared'
10306
lt_prog_compiler_static_GCJ='-non_shared'
10310
lt_prog_compiler_pic_GCJ='-KPIC'
10311
lt_prog_compiler_static_GCJ='-Bstatic'
10312
case $cc_basename in
10313
f77* | f90* | f95*)
10314
lt_prog_compiler_wl_GCJ='-Qoption ld ';;
10316
lt_prog_compiler_wl_GCJ='-Wl,';;
10321
lt_prog_compiler_wl_GCJ='-Qoption ld '
10322
lt_prog_compiler_pic_GCJ='-PIC'
10323
lt_prog_compiler_static_GCJ='-Bstatic'
10326
sysv4 | sysv4.2uw2* | sysv4.3*)
10327
lt_prog_compiler_wl_GCJ='-Wl,'
10328
lt_prog_compiler_pic_GCJ='-KPIC'
10329
lt_prog_compiler_static_GCJ='-Bstatic'
10333
if test -d /usr/nec ;then
10334
lt_prog_compiler_pic_GCJ='-Kconform_pic'
10335
lt_prog_compiler_static_GCJ='-Bstatic'
10339
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10340
lt_prog_compiler_wl_GCJ='-Wl,'
10341
lt_prog_compiler_pic_GCJ='-KPIC'
10342
lt_prog_compiler_static_GCJ='-Bstatic'
10346
lt_prog_compiler_wl_GCJ='-Wl,'
10347
lt_prog_compiler_can_build_shared_GCJ=no
10351
lt_prog_compiler_pic_GCJ='-pic'
10352
lt_prog_compiler_static_GCJ='-Bstatic'
10356
lt_prog_compiler_can_build_shared_GCJ=no
10361
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
10362
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
10365
# Check to make sure the PIC flag actually works.
10367
if test -n "$lt_prog_compiler_pic_GCJ"; then
10369
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
10370
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
10371
if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
10372
echo $ECHO_N "(cached) $ECHO_C" >&6
10374
lt_cv_prog_compiler_pic_works_GCJ=no
10375
ac_outfile=conftest.$ac_objext
10376
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10377
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
10378
# Insert the option either (1) after the last *FLAGS variable, or
10379
# (2) before a word containing "conftest.", or (3) at the end.
10380
# Note that $ac_compile itself does not contain backslashes and begins
10381
# with a dollar sign (not a hyphen), so the echo should work correctly.
10382
# The option is referenced via a variable to avoid confusing sed.
10383
lt_compile=`echo "$ac_compile" | $SED \
10384
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10385
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10386
-e 's:$: $lt_compiler_flag:'`
10387
(eval echo "\"\$as_me:10387: $lt_compile\"" >&5)
10388
(eval "$lt_compile" 2>conftest.err)
10390
cat conftest.err >&5
10391
echo "$as_me:10391: \$? = $ac_status" >&5
10392
if (exit $ac_status) && test -s "$ac_outfile"; then
10393
# The compiler can only warn and ignore the option if not recognized
10394
# So say no if there are warnings other than the usual output.
10395
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10396
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10397
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10398
lt_cv_prog_compiler_pic_works_GCJ=yes
10404
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
10405
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
10407
if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
10408
case $lt_prog_compiler_pic_GCJ in
10410
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
10413
lt_prog_compiler_pic_GCJ=
10414
lt_prog_compiler_can_build_shared_GCJ=no
10419
# For platforms which do not support PIC, -DPIC is meaningless:
10421
lt_prog_compiler_pic_GCJ=
10424
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
10429
# Check to make sure the static flag actually works.
10431
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
10432
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10433
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
10434
if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
10435
echo $ECHO_N "(cached) $ECHO_C" >&6
10437
lt_cv_prog_compiler_static_works_GCJ=no
10438
save_LDFLAGS="$LDFLAGS"
10439
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10440
echo "$lt_simple_link_test_code" > conftest.$ac_ext
10441
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10442
# The linker can only warn and ignore the option if not recognized
10443
# So say no if there are warnings
10444
if test -s conftest.err; then
10445
# Append any errors to the config.log.
10446
cat conftest.err 1>&5
10447
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
10448
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10449
if diff conftest.exp conftest.er2 >/dev/null; then
10450
lt_cv_prog_compiler_static_works_GCJ=yes
10453
lt_cv_prog_compiler_static_works_GCJ=yes
10457
LDFLAGS="$save_LDFLAGS"
10460
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
10461
echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
10463
if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
10466
lt_prog_compiler_static_GCJ=
10470
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10471
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
10472
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
10473
echo $ECHO_N "(cached) $ECHO_C" >&6
10475
lt_cv_prog_compiler_c_o_GCJ=no
10476
$rm -r conftest 2>/dev/null
10480
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10482
lt_compiler_flag="-o out/conftest2.$ac_objext"
10483
# Insert the option either (1) after the last *FLAGS variable, or
10484
# (2) before a word containing "conftest.", or (3) at the end.
10485
# Note that $ac_compile itself does not contain backslashes and begins
10486
# with a dollar sign (not a hyphen), so the echo should work correctly.
10487
lt_compile=`echo "$ac_compile" | $SED \
10488
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10489
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10490
-e 's:$: $lt_compiler_flag:'`
10491
(eval echo "\"\$as_me:10491: $lt_compile\"" >&5)
10492
(eval "$lt_compile" 2>out/conftest.err)
10494
cat out/conftest.err >&5
10495
echo "$as_me:10495: \$? = $ac_status" >&5
10496
if (exit $ac_status) && test -s out/conftest2.$ac_objext
10498
# The compiler can only warn and ignore the option if not recognized
10499
# So say no if there are warnings
10500
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10501
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10502
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10503
lt_cv_prog_compiler_c_o_GCJ=yes
10508
# SGI C++ compiler will create directory out/ii_files/ for
10509
# template instantiation
10510
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
10511
$rm out/* && rmdir out
10517
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
10518
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
10521
hard_links="nottested"
10522
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
10523
# do not overwrite the value of need_locks provided by the user
10524
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10525
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
10528
ln conftest.a conftest.b 2>/dev/null && hard_links=no
10530
ln conftest.a conftest.b 2>&5 || hard_links=no
10531
ln conftest.a conftest.b 2>/dev/null && hard_links=no
10532
{ echo "$as_me:$LINENO: result: $hard_links" >&5
10533
echo "${ECHO_T}$hard_links" >&6; }
10534
if test "$hard_links" = no; then
10535
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10536
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10543
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10544
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10547
allow_undefined_flag_GCJ=
10548
enable_shared_with_static_runtimes_GCJ=no
10550
archive_expsym_cmds_GCJ=
10551
old_archive_From_new_cmds_GCJ=
10552
old_archive_from_expsyms_cmds_GCJ=
10553
export_dynamic_flag_spec_GCJ=
10554
whole_archive_flag_spec_GCJ=
10555
thread_safe_flag_spec_GCJ=
10556
hardcode_libdir_flag_spec_GCJ=
10557
hardcode_libdir_flag_spec_ld_GCJ=
10558
hardcode_libdir_separator_GCJ=
10559
hardcode_direct_GCJ=no
10560
hardcode_minus_L_GCJ=no
10561
hardcode_shlibpath_var_GCJ=unsupported
10562
link_all_deplibs_GCJ=unknown
10563
hardcode_automatic_GCJ=no
10565
module_expsym_cmds_GCJ=
10566
always_export_symbols_GCJ=no
10567
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10568
# include_expsyms should be a list of space-separated symbols to be *always*
10569
# included in the symbol list
10570
include_expsyms_GCJ=
10571
# exclude_expsyms can be an extended regexp of symbols to exclude
10572
# it will be wrapped by ` (' and `)$', so one must not match beginning or
10573
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10574
# as well as any symbol that contains `d'.
10575
exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10576
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10577
# platforms (ab)use it in PIC code, but their linkers get confused if
10578
# the symbol is explicitly referenced. Since portable code cannot
10579
# rely on this symbol name, it's probably fine to never include it in
10580
# preloaded symbol tables.
10581
# Exclude shared library initialization/finalization symbols.
10582
extract_expsyms_cmds=
10583
# Just being paranoid about ensuring that cc_basename is set.
10584
for cc_temp in $compiler""; do
10586
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10587
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10592
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10595
cygwin* | mingw* | pw32*)
10596
# FIXME: the MSVC++ port hasn't been tested in a loooong time
10597
# When not using gcc, we currently assume that we are using
10598
# Microsoft Visual C++.
10599
if test "$GCC" != yes; then
10604
# we just hope/assume this is gcc and not c89 (= MSVC++)
10613
if test "$with_gnu_ld" = yes; then
10614
# If archive_cmds runs LD, not CC, wlarc should be empty
10617
# Set some defaults for GNU ld with shared library support. These
10618
# are reset later if shared libraries are not supported. Putting them
10619
# here allows them to be overridden if necessary.
10620
runpath_var=LD_RUN_PATH
10621
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
10622
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
10623
# ancient GNU ld didn't support --whole-archive et. al.
10624
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
10625
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10627
whole_archive_flag_spec_GCJ=
10629
supports_anon_versioning=no
10630
case `$LD -v 2>/dev/null` in
10631
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10632
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10633
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10634
*\ 2.11.*) ;; # other 2.11 versions
10635
*) supports_anon_versioning=yes ;;
10638
# See if GNU ld supports shared libraries.
10641
# On AIX/PPC, the GNU linker is very broken
10642
if test "$host_cpu" != ia64; then
10646
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
10647
*** to be unable to reliably create shared libraries on AIX.
10648
*** Therefore, libtool is disabling shared libraries support. If you
10649
*** really care for shared libraries, you may want to modify your PATH
10650
*** so that a non-GNU linker is found, and then restart.
10657
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)'
10658
hardcode_libdir_flag_spec_GCJ='-L$libdir'
10659
hardcode_minus_L_GCJ=yes
10661
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
10662
# that the semantics of dynamic libraries on AmigaOS, at least up
10663
# to version 4, is to share data among multiple programs linked
10664
# with the same dynamic library. Since this doesn't match the
10665
# behavior of shared libraries on other platforms, we can't use
10671
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10672
allow_undefined_flag_GCJ=unsupported
10673
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10674
# support --undefined. This deserves some investigation. FIXME
10675
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10681
cygwin* | mingw* | pw32*)
10682
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
10683
# as there is no search path for DLLs.
10684
hardcode_libdir_flag_spec_GCJ='-L$libdir'
10685
allow_undefined_flag_GCJ=unsupported
10686
always_export_symbols_GCJ=no
10687
enable_shared_with_static_runtimes_GCJ=yes
10688
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10690
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10691
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10692
# If the export-symbols file already is a .def file (1st line
10693
# is EXPORTS), use it as is; otherwise, prepend...
10694
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10695
cp $export_symbols $output_objdir/$soname.def;
10697
echo EXPORTS > $output_objdir/$soname.def;
10698
cat $export_symbols >> $output_objdir/$soname.def;
10700
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10707
hardcode_direct_GCJ=no
10708
hardcode_shlibpath_var_GCJ=no
10709
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
10710
export_dynamic_flag_spec_GCJ='${wl}-E'
10711
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10712
# Instead, shared libraries are loaded at an image base (0x10000000 by
10713
# default) and relocated if they conflict, which is a slow very memory
10714
# consuming and fragmenting process. To avoid this, we pick a random,
10715
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10716
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
10717
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'
10718
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'
10721
gnu* | linux* | k*bsd*-gnu)
10722
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10724
case $cc_basename,$host_cpu in
10725
pgcc*) # Portland Group C compiler
10726
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'
10727
tmp_addflag=' $pic_flag'
10729
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
10730
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'
10731
tmp_addflag=' $pic_flag -Mnomain' ;;
10732
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10733
tmp_addflag=' -i_dynamic' ;;
10734
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10735
tmp_addflag=' -i_dynamic -nofor_main' ;;
10736
ifc* | ifort*) # Intel Fortran compiler
10737
tmp_addflag=' -nofor_main' ;;
10739
case `$CC -V 2>&1 | sed 5q` in
10740
*Sun\ C*) # Sun C 5.9
10741
whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
10742
tmp_sharedflag='-G' ;;
10743
*Sun\ F*) # Sun Fortran 8.3
10744
tmp_sharedflag='-G' ;;
10746
tmp_sharedflag='-shared' ;;
10748
archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10750
if test $supports_anon_versioning = yes; then
10751
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
10752
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10753
$echo "local: *; };" >> $output_objdir/$libname.ver~
10754
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10756
link_all_deplibs_GCJ=no
10762
netbsd* | netbsdelf*-gnu)
10763
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10764
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10767
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10768
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10773
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
10777
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10778
*** create shared libraries on Solaris systems. Therefore, libtool
10779
*** is disabling shared libraries support. We urge you to upgrade GNU
10780
*** binutils to release 2.9.1 or newer. Another option is to modify
10781
*** your PATH or compiler configuration so that the native linker is
10782
*** used, and then restart.
10785
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10786
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10787
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10793
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10794
case `$LD -v 2>&1` in
10795
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10799
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10800
*** reliably create shared libraries on SCO systems. Therefore, libtool
10801
*** is disabling shared libraries support. We urge you to upgrade GNU
10802
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10803
*** your PATH or compiler configuration so that the native linker is
10804
*** used, and then restart.
10809
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10810
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
10811
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
10812
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
10821
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10823
hardcode_direct_GCJ=yes
10824
hardcode_shlibpath_var_GCJ=no
10828
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10829
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10830
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10837
if test "$ld_shlibs_GCJ" = no; then
10839
hardcode_libdir_flag_spec_GCJ=
10840
export_dynamic_flag_spec_GCJ=
10841
whole_archive_flag_spec_GCJ=
10844
# PORTME fill in a description of your system's linker (not GNU ld)
10847
allow_undefined_flag_GCJ=unsupported
10848
always_export_symbols_GCJ=yes
10849
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'
10850
# Note: this linker hardcodes the directories in LIBPATH if there
10851
# are no directories specified by -L.
10852
hardcode_minus_L_GCJ=yes
10853
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10854
# Neither direct hardcoding nor static linking is supported with a
10856
hardcode_direct_GCJ=unsupported
10861
if test "$host_cpu" = ia64; then
10862
# On IA64, the linker does run time linking by default, so we don't
10863
# have to do anything special.
10864
aix_use_runtimelinking=no
10865
exp_sym_flag='-Bexport'
10868
# If we're using GNU nm, then we don't want the "-C" option.
10869
# -C means demangle to AIX nm, but means don't demangle with GNU nm
10870
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10871
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'
10873
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'
10875
aix_use_runtimelinking=no
10877
# Test if we are trying to use run time linking or normal
10878
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10879
# need to do runtime linking.
10880
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10881
for ld_flag in $LDFLAGS; do
10882
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10883
aix_use_runtimelinking=yes
10890
exp_sym_flag='-bexport'
10891
no_entry_flag='-bnoentry'
10894
# When large executables or shared objects are built, AIX ld can
10895
# have problems creating the table of contents. If linking a library
10896
# or program results in "error TOC overflow" add -mminimal-toc to
10897
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10898
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10900
archive_cmds_GCJ=''
10901
hardcode_direct_GCJ=yes
10902
hardcode_libdir_separator_GCJ=':'
10903
link_all_deplibs_GCJ=yes
10905
if test "$GCC" = yes; then
10906
case $host_os in aix4.[012]|aix4.[012].*)
10907
# We only want to do this on AIX 4.2 and lower, the check
10908
# below for broken collect2 doesn't work under 4.3+
10909
collect2name=`${CC} -print-prog-name=collect2`
10910
if test -f "$collect2name" && \
10911
strings "$collect2name" | grep resolve_lib_name >/dev/null
10913
# We have reworked collect2
10916
# We have old collect2
10917
hardcode_direct_GCJ=unsupported
10918
# It fails to find uninstalled libraries when the uninstalled
10919
# path is not listed in the libpath. Setting hardcode_minus_L
10920
# to unsupported forces relinking
10921
hardcode_minus_L_GCJ=yes
10922
hardcode_libdir_flag_spec_GCJ='-L$libdir'
10923
hardcode_libdir_separator_GCJ=
10927
shared_flag='-shared'
10928
if test "$aix_use_runtimelinking" = yes; then
10929
shared_flag="$shared_flag "'${wl}-G'
10933
if test "$host_cpu" = ia64; then
10934
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10935
# chokes on -Wl,-G. The following line is correct:
10938
if test "$aix_use_runtimelinking" = yes; then
10939
shared_flag='${wl}-G'
10941
shared_flag='${wl}-bM:SRE'
10946
# It seems that -bexpall does not export symbols beginning with
10947
# underscore (_), so it is better to generate a list of symbols to export.
10948
always_export_symbols_GCJ=yes
10949
if test "$aix_use_runtimelinking" = yes; then
10950
# Warning - without using the other runtime loading flags (-brtl),
10951
# -berok will link without error, but may produce a broken library.
10952
allow_undefined_flag_GCJ='-berok'
10953
# Determine the default libpath from the value encoded in an empty executable.
10954
cat >conftest.$ac_ext <<_ACEOF
10957
cat confdefs.h >>conftest.$ac_ext
10958
cat >>conftest.$ac_ext <<_ACEOF
10959
/* end confdefs.h. */
10969
rm -f conftest.$ac_objext conftest$ac_exeext
10970
if { (ac_try="$ac_link"
10971
case "(($ac_try" in
10972
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10973
*) ac_try_echo=$ac_try;;
10975
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10976
(eval "$ac_link") 2>conftest.er1
10978
grep -v '^ *+' conftest.er1 >conftest.err
10980
cat conftest.err >&5
10981
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10982
(exit $ac_status); } && {
10983
test -z "$ac_c_werror_flag" ||
10984
test ! -s conftest.err
10985
} && test -s conftest$ac_exeext &&
10986
$as_test_x conftest$ac_exeext; then
10988
lt_aix_libpath_sed='
10989
/Import File Strings/,/^$/ {
10995
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10996
# Check for a 64-bit object if we didn't find anything.
10997
if test -z "$aix_libpath"; then
10998
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11001
echo "$as_me: failed program was:" >&5
11002
sed 's/^/| /' conftest.$ac_ext >&5
11007
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11008
conftest$ac_exeext conftest.$ac_ext
11009
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11011
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
11012
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"
11014
if test "$host_cpu" = ia64; then
11015
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
11016
allow_undefined_flag_GCJ="-z nodefs"
11017
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"
11019
# Determine the default libpath from the value encoded in an empty executable.
11020
cat >conftest.$ac_ext <<_ACEOF
11023
cat confdefs.h >>conftest.$ac_ext
11024
cat >>conftest.$ac_ext <<_ACEOF
11025
/* end confdefs.h. */
11035
rm -f conftest.$ac_objext conftest$ac_exeext
11036
if { (ac_try="$ac_link"
11037
case "(($ac_try" in
11038
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11039
*) ac_try_echo=$ac_try;;
11041
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11042
(eval "$ac_link") 2>conftest.er1
11044
grep -v '^ *+' conftest.er1 >conftest.err
11046
cat conftest.err >&5
11047
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11048
(exit $ac_status); } && {
11049
test -z "$ac_c_werror_flag" ||
11050
test ! -s conftest.err
11051
} && test -s conftest$ac_exeext &&
11052
$as_test_x conftest$ac_exeext; then
11054
lt_aix_libpath_sed='
11055
/Import File Strings/,/^$/ {
11061
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11062
# Check for a 64-bit object if we didn't find anything.
11063
if test -z "$aix_libpath"; then
11064
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11067
echo "$as_me: failed program was:" >&5
11068
sed 's/^/| /' conftest.$ac_ext >&5
11073
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11074
conftest$ac_exeext conftest.$ac_ext
11075
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11077
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
11078
# Warning - without using the other run time loading flags,
11079
# -berok will link without error, but may produce a broken library.
11080
no_undefined_flag_GCJ=' ${wl}-bernotok'
11081
allow_undefined_flag_GCJ=' ${wl}-berok'
11082
# Exported symbols can be pulled into shared objects from archives
11083
whole_archive_flag_spec_GCJ='$convenience'
11084
archive_cmds_need_lc_GCJ=yes
11085
# This is similar to how AIX traditionally builds its shared libraries.
11086
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'
11092
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)'
11093
hardcode_libdir_flag_spec_GCJ='-L$libdir'
11094
hardcode_minus_L_GCJ=yes
11095
# see comment about different semantics on the GNU ld section
11100
export_dynamic_flag_spec_GCJ=-rdynamic
11103
cygwin* | mingw* | pw32*)
11104
# When not using gcc, we currently assume that we are using
11105
# Microsoft Visual C++.
11106
# hardcode_libdir_flag_spec is actually meaningless, as there is
11107
# no search path for DLLs.
11108
hardcode_libdir_flag_spec_GCJ=' '
11109
allow_undefined_flag_GCJ=unsupported
11110
# Tell ltmain to make .lib files, not .a files.
11112
# Tell ltmain to make .dll files, not .so files.
11114
# FIXME: Setting linknames here is a bad hack.
11115
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
11116
# The linker will automatically build a .lib file if we build a DLL.
11117
old_archive_From_new_cmds_GCJ='true'
11118
# FIXME: Should let the user specify the lib program.
11119
old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
11120
fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
11121
enable_shared_with_static_runtimes_GCJ=yes
11124
darwin* | rhapsody*)
11126
rhapsody* | darwin1.[012])
11127
allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
11130
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11131
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11133
case ${MACOSX_DEPLOYMENT_TARGET} in
11135
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11138
allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
11144
archive_cmds_need_lc_GCJ=no
11145
hardcode_direct_GCJ=no
11146
hardcode_automatic_GCJ=yes
11147
hardcode_shlibpath_var_GCJ=unsupported
11148
whole_archive_flag_spec_GCJ=''
11149
link_all_deplibs_GCJ=yes
11150
if test "$GCC" = yes ; then
11151
output_verbose_link_cmd='echo'
11152
archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11153
module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11154
archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
11155
module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
11157
case $cc_basename in
11159
output_verbose_link_cmd='echo'
11160
archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11161
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11162
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11163
archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11164
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}'
11174
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11175
hardcode_libdir_flag_spec_GCJ='-L$libdir'
11176
hardcode_shlibpath_var_GCJ=no
11183
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11184
# support. Future versions do this automatically, but an explicit c++rt0.o
11185
# does not break anything, and helps significantly (at the cost of a little
11188
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11189
hardcode_libdir_flag_spec_GCJ='-R$libdir'
11190
hardcode_direct_GCJ=yes
11191
hardcode_shlibpath_var_GCJ=no
11194
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
11196
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11197
hardcode_direct_GCJ=yes
11198
hardcode_minus_L_GCJ=yes
11199
hardcode_shlibpath_var_GCJ=no
11202
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11203
freebsd* | dragonfly*)
11204
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
11205
hardcode_libdir_flag_spec_GCJ='-R$libdir'
11206
hardcode_direct_GCJ=yes
11207
hardcode_shlibpath_var_GCJ=no
11211
if test "$GCC" = yes; then
11212
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'
11214
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'
11216
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
11217
hardcode_libdir_separator_GCJ=:
11218
hardcode_direct_GCJ=yes
11220
# hardcode_minus_L: Not really in the search PATH,
11221
# but as the default location of the library.
11222
hardcode_minus_L_GCJ=yes
11223
export_dynamic_flag_spec_GCJ='${wl}-E'
11227
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11228
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11230
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11232
if test "$with_gnu_ld" = no; then
11233
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
11234
hardcode_libdir_separator_GCJ=:
11236
hardcode_direct_GCJ=yes
11237
export_dynamic_flag_spec_GCJ='${wl}-E'
11239
# hardcode_minus_L: Not really in the search PATH,
11240
# but as the default location of the library.
11241
hardcode_minus_L_GCJ=yes
11246
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11249
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11252
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11255
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11261
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11264
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11267
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11271
if test "$with_gnu_ld" = no; then
11272
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
11273
hardcode_libdir_separator_GCJ=:
11277
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
11278
hardcode_direct_GCJ=no
11279
hardcode_shlibpath_var_GCJ=no
11282
hardcode_direct_GCJ=yes
11283
export_dynamic_flag_spec_GCJ='${wl}-E'
11285
# hardcode_minus_L: Not really in the search PATH,
11286
# but as the default location of the library.
11287
hardcode_minus_L_GCJ=yes
11293
irix5* | irix6* | nonstopux*)
11294
if test "$GCC" = yes; then
11295
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'
11297
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'
11298
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
11300
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
11301
hardcode_libdir_separator_GCJ=:
11302
link_all_deplibs_GCJ=yes
11305
netbsd* | netbsdelf*-gnu)
11306
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11307
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11309
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11311
hardcode_libdir_flag_spec_GCJ='-R$libdir'
11312
hardcode_direct_GCJ=yes
11313
hardcode_shlibpath_var_GCJ=no
11317
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11318
hardcode_direct_GCJ=yes
11319
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
11320
hardcode_libdir_separator_GCJ=:
11321
hardcode_shlibpath_var_GCJ=no
11325
if test -f /usr/libexec/ld.so; then
11326
hardcode_direct_GCJ=yes
11327
hardcode_shlibpath_var_GCJ=no
11328
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11329
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11330
archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11331
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
11332
export_dynamic_flag_spec_GCJ='${wl}-E'
11335
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11336
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11337
hardcode_libdir_flag_spec_GCJ='-R$libdir'
11340
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11341
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
11351
hardcode_libdir_flag_spec_GCJ='-L$libdir'
11352
hardcode_minus_L_GCJ=yes
11353
allow_undefined_flag_GCJ=unsupported
11354
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'
11355
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11359
if test "$GCC" = yes; then
11360
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
11361
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'
11363
allow_undefined_flag_GCJ=' -expect_unresolved \*'
11364
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'
11366
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
11367
hardcode_libdir_separator_GCJ=:
11370
osf4* | osf5*) # as osf3* with the addition of -msym flag
11371
if test "$GCC" = yes; then
11372
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
11373
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'
11374
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
11376
allow_undefined_flag_GCJ=' -expect_unresolved \*'
11377
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'
11378
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~
11379
$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'
11381
# Both c and cxx compiler support -rpath directly
11382
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
11384
hardcode_libdir_separator_GCJ=:
11388
no_undefined_flag_GCJ=' -z text'
11389
if test "$GCC" = yes; then
11391
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11392
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11393
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
11396
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11397
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11398
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
11400
hardcode_libdir_flag_spec_GCJ='-R$libdir'
11401
hardcode_shlibpath_var_GCJ=no
11403
solaris2.[0-5] | solaris2.[0-5].*) ;;
11405
# The compiler driver will combine and reorder linker options,
11406
# but understands `-z linker_flag'. GCC discards it without `$wl',
11407
# but is careful enough not to reorder.
11408
# Supported since Solaris 2.6 (maybe 2.5.1?)
11409
if test "$GCC" = yes; then
11410
whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11412
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
11416
link_all_deplibs_GCJ=yes
11420
if test "x$host_vendor" = xsequent; then
11421
# Use $CC to link under sequent, because it throws in some extra .o
11422
# files that make .init and .fini sections work.
11423
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11425
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11427
hardcode_libdir_flag_spec_GCJ='-L$libdir'
11428
hardcode_direct_GCJ=yes
11429
hardcode_minus_L_GCJ=yes
11430
hardcode_shlibpath_var_GCJ=no
11434
case $host_vendor in
11436
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11437
hardcode_direct_GCJ=yes # is this really true???
11440
## LD is ld it makes a PLAMLIB
11441
## CC just makes a GrossModule.
11442
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11443
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
11444
hardcode_direct_GCJ=no
11447
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11448
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
11451
runpath_var='LD_RUN_PATH'
11452
hardcode_shlibpath_var_GCJ=no
11456
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11457
hardcode_shlibpath_var_GCJ=no
11458
export_dynamic_flag_spec_GCJ='-Bexport'
11462
if test -d /usr/nec; then
11463
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11464
hardcode_shlibpath_var_GCJ=no
11465
runpath_var=LD_RUN_PATH
11466
hardcode_runpath_var=yes
11471
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11472
no_undefined_flag_GCJ='${wl}-z,text'
11473
archive_cmds_need_lc_GCJ=no
11474
hardcode_shlibpath_var_GCJ=no
11475
runpath_var='LD_RUN_PATH'
11477
if test "$GCC" = yes; then
11478
archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11479
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11481
archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11482
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11486
sysv5* | sco3.2v5* | sco5v6*)
11487
# Note: We can NOT use -z defs as we might desire, because we do not
11488
# link with -lc, and that would cause any symbols used from libc to
11489
# always be unresolved, which means just about no library would
11490
# ever link correctly. If we're not using GNU ld we use -z text
11491
# though, which does catch some bad symbols but isn't as heavy-handed
11493
no_undefined_flag_GCJ='${wl}-z,text'
11494
allow_undefined_flag_GCJ='${wl}-z,nodefs'
11495
archive_cmds_need_lc_GCJ=no
11496
hardcode_shlibpath_var_GCJ=no
11497
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11498
hardcode_libdir_separator_GCJ=':'
11499
link_all_deplibs_GCJ=yes
11500
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
11501
runpath_var='LD_RUN_PATH'
11503
if test "$GCC" = yes; then
11504
archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11505
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11507
archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11508
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11513
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11514
hardcode_libdir_flag_spec_GCJ='-L$libdir'
11515
hardcode_shlibpath_var_GCJ=no
11524
{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
11525
echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
11526
test "$ld_shlibs_GCJ" = no && can_build_shared=no
11529
# Do we need to explicitly link libc?
11531
case "x$archive_cmds_need_lc_GCJ" in
11533
# Assume -lc should be added
11534
archive_cmds_need_lc_GCJ=yes
11536
if test "$enable_shared" = yes && test "$GCC" = yes; then
11537
case $archive_cmds_GCJ in
11539
# FIXME: we may have to deal with multi-command sequences.
11542
# Test whether the compiler implicitly links with -lc since on some
11543
# systems, -lgcc has to come before -lc. If gcc already passes -lc
11544
# to ld, don't add -lc before -lgcc.
11545
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11546
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11548
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11550
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11551
(eval $ac_compile) 2>&5
11553
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11554
(exit $ac_status); } 2>conftest.err; then
11557
libobjs=conftest.$ac_objext
11559
wl=$lt_prog_compiler_wl_GCJ
11560
pic_flag=$lt_prog_compiler_pic_GCJ
11566
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
11567
allow_undefined_flag_GCJ=
11568
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11569
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11571
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11572
(exit $ac_status); }
11574
archive_cmds_need_lc_GCJ=no
11576
archive_cmds_need_lc_GCJ=yes
11578
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
11580
cat conftest.err 1>&5
11583
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
11584
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
11591
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11592
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
11593
library_names_spec=
11594
libname_spec='lib$name'
11598
postuninstall_cmds=
11602
shlibpath_overrides_runpath=unknown
11604
dynamic_linker="$host_os ld.so"
11605
sys_lib_dlsearch_path_spec="/lib /usr/lib"
11607
need_lib_prefix=unknown
11608
hardcode_into_libs=no
11610
# when you set need_version to no, make sure it does not cause -set_version
11611
# flags to be left without arguments
11612
need_version=unknown
11617
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11618
shlibpath_var=LIBPATH
11620
# AIX 3 has no versioning support, so we append a major version to the name.
11621
soname_spec='${libname}${release}${shared_ext}$major'
11628
hardcode_into_libs=yes
11629
if test "$host_cpu" = ia64; then
11630
# AIX 5 supports IA64
11631
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11632
shlibpath_var=LD_LIBRARY_PATH
11634
# With GCC up to 2.95.x, collect2 would create an import file
11635
# for dependence libraries. The import file would start with
11636
# the line `#! .'. This would cause the generated library to
11637
# depend on `.', always an invalid library. This was fixed in
11638
# development snapshots of GCC prior to 3.0.
11640
aix4 | aix4.[01] | aix4.[01].*)
11641
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11643
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11646
can_build_shared=no
11650
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11651
# soname into executable. Probably we can add versioning support to
11652
# collect2, so additional links can be useful in future.
11653
if test "$aix_use_runtimelinking" = yes; then
11654
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
11655
# instead of lib<name>.a to let people know that these are not
11656
# typical AIX shared libraries.
11657
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11659
# We preserve .a as extension for shared libraries through AIX4.2
11660
# and later when we are not doing run time linking.
11661
library_names_spec='${libname}${release}.a $libname.a'
11662
soname_spec='${libname}${release}${shared_ext}$major'
11664
shlibpath_var=LIBPATH
11669
library_names_spec='$libname.ixlibrary $libname.a'
11670
# Create ${libname}_ixlibrary.a entries in /sys/libs.
11671
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'
11675
library_names_spec='${libname}${shared_ext}'
11676
dynamic_linker="$host_os ld.so"
11677
shlibpath_var=LIBRARY_PATH
11683
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11684
soname_spec='${libname}${release}${shared_ext}$major'
11685
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11686
shlibpath_var=LD_LIBRARY_PATH
11687
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11688
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11689
# the default ld.so.conf also contains /usr/contrib/lib and
11690
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11691
# libtool to hard-code these into programs
11694
cygwin* | mingw* | pw32*)
11695
version_type=windows
11700
case $GCC,$host_os in
11701
yes,cygwin* | yes,mingw* | yes,pw32*)
11702
library_names_spec='$libname.dll.a'
11703
# DLL is installed to $(libdir)/../bin by postinstall_cmds
11704
postinstall_cmds='base_file=`basename \${file}`~
11705
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11706
dldir=$destdir/`dirname \$dlpath`~
11707
test -d \$dldir || mkdir -p \$dldir~
11708
$install_prog $dir/$dlname \$dldir/$dlname~
11709
chmod a+x \$dldir/$dlname'
11710
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11711
dlpath=$dir/\$dldll~
11713
shlibpath_overrides_runpath=yes
11717
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
11718
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11719
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11722
# MinGW DLLs use traditional 'lib' prefix
11723
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11724
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11725
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11726
# It is most probably a Windows format PATH printed by
11727
# mingw gcc, but we are running on Cygwin. Gcc prints its search
11728
# path with ; separators, and with drive letters. We can handle the
11729
# drive letters (cygwin fileutils understands them), so leave them,
11730
# especially as we might pass files found there to a mingw objdump,
11731
# which wouldn't understand a cygwinified path. Ahh.
11732
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11734
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11738
# pw32 DLLs use 'pw' prefix rather than 'lib'
11739
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11745
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11748
dynamic_linker='Win32 ld.exe'
11749
# FIXME: first we should search . and the directory the executable is in
11753
darwin* | rhapsody*)
11754
dynamic_linker="$host_os dyld"
11755
version_type=darwin
11758
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11759
soname_spec='${libname}${release}${major}$shared_ext'
11760
shlibpath_overrides_runpath=yes
11761
shlibpath_var=DYLD_LIBRARY_PATH
11762
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11764
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11771
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11772
soname_spec='${libname}${release}${shared_ext}$major'
11773
shlibpath_var=LD_LIBRARY_PATH
11780
freebsd* | dragonfly*)
11781
# DragonFly does not have aout. When/if they implement a new
11782
# versioning mechanism, adjust this.
11783
if test -x /usr/bin/objformat; then
11784
objformat=`/usr/bin/objformat`
11787
freebsd[123]*) objformat=aout ;;
11788
*) objformat=elf ;;
11791
version_type=freebsd-$objformat
11792
case $version_type in
11794
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11799
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11803
shlibpath_var=LD_LIBRARY_PATH
11806
shlibpath_overrides_runpath=yes
11808
freebsd3.[01]* | freebsdelf3.[01]*)
11809
shlibpath_overrides_runpath=yes
11810
hardcode_into_libs=yes
11812
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11813
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11814
shlibpath_overrides_runpath=no
11815
hardcode_into_libs=yes
11817
*) # from 4.6 on, and DragonFly
11818
shlibpath_overrides_runpath=yes
11819
hardcode_into_libs=yes
11828
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11829
soname_spec='${libname}${release}${shared_ext}$major'
11830
shlibpath_var=LD_LIBRARY_PATH
11831
hardcode_into_libs=yes
11834
hpux9* | hpux10* | hpux11*)
11835
# Give a soname corresponding to the major version so that dld.sl refuses to
11836
# link against other versions.
11843
hardcode_into_libs=yes
11844
dynamic_linker="$host_os dld.so"
11845
shlibpath_var=LD_LIBRARY_PATH
11846
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11847
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11848
soname_spec='${libname}${release}${shared_ext}$major'
11849
if test "X$HPUX_IA64_MODE" = X32; then
11850
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11852
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11854
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11858
hardcode_into_libs=yes
11859
dynamic_linker="$host_os dld.sl"
11860
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11861
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11862
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11863
soname_spec='${libname}${release}${shared_ext}$major'
11864
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11865
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11869
dynamic_linker="$host_os dld.sl"
11870
shlibpath_var=SHLIB_PATH
11871
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11872
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11873
soname_spec='${libname}${release}${shared_ext}$major'
11876
# HP-UX runs *really* slowly unless shared libraries are mode 555.
11877
postinstall_cmds='chmod 555 $lib'
11884
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11885
soname_spec='${libname}${release}${shared_ext}$major'
11886
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11887
shlibpath_var=LD_LIBRARY_PATH
11888
shlibpath_overrides_runpath=no
11889
hardcode_into_libs=yes
11892
irix5* | irix6* | nonstopux*)
11894
nonstopux*) version_type=nonstopux ;;
11896
if test "$lt_cv_prog_gnu_ld" = yes; then
11904
soname_spec='${libname}${release}${shared_ext}$major'
11905
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11907
irix5* | nonstopux*)
11908
libsuff= shlibsuff=
11911
case $LD in # libtool.m4 will add one of these switches to LD
11912
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11913
libsuff= shlibsuff= libmagic=32-bit;;
11914
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11915
libsuff=32 shlibsuff=N32 libmagic=N32;;
11916
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11917
libsuff=64 shlibsuff=64 libmagic=64-bit;;
11918
*) libsuff= shlibsuff= libmagic=never-match;;
11922
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11923
shlibpath_overrides_runpath=no
11924
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11925
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11926
hardcode_into_libs=yes
11929
# No shared lib support for Linux oldld, aout, or coff.
11930
linux*oldld* | linux*aout* | linux*coff*)
11934
# This must be Linux ELF.
11935
linux* | k*bsd*-gnu)
11939
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11940
soname_spec='${libname}${release}${shared_ext}$major'
11941
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11942
shlibpath_var=LD_LIBRARY_PATH
11943
shlibpath_overrides_runpath=no
11944
# This implies no fast_install, which is unacceptable.
11945
# Some rework will be needed to allow for fast_install
11946
# before this can be enabled.
11947
hardcode_into_libs=yes
11949
# Append ld.so.conf contents to the search path
11950
if test -f /etc/ld.so.conf; then
11951
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
11952
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11955
# We used to test for /lib/ld.so.1 and disable shared libraries on
11956
# powerpc, because MkLinux only supported shared libraries with the
11957
# GNU dynamic linker. Since this was broken with cross compilers,
11958
# most powerpc-linux boxes support dynamic linking these days and
11959
# people can always --disable-shared, the test was removed, and we
11960
# assume the GNU/Linux dynamic linker is in use.
11961
dynamic_linker='GNU/Linux ld.so'
11968
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11969
soname_spec='${libname}${release}${shared_ext}$major'
11970
shlibpath_var=LD_LIBRARY_PATH
11971
shlibpath_overrides_runpath=no
11972
hardcode_into_libs=yes
11973
dynamic_linker='NetBSD ld.elf_so'
11980
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11981
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11982
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11983
dynamic_linker='NetBSD (a.out) ld.so'
11985
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11986
soname_spec='${libname}${release}${shared_ext}$major'
11987
dynamic_linker='NetBSD ld.elf_so'
11989
shlibpath_var=LD_LIBRARY_PATH
11990
shlibpath_overrides_runpath=yes
11991
hardcode_into_libs=yes
11996
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11997
shlibpath_var=LD_LIBRARY_PATH
11998
shlibpath_overrides_runpath=yes
12005
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12006
soname_spec='${libname}${release}${shared_ext}$major'
12007
shlibpath_var=LD_LIBRARY_PATH
12008
shlibpath_overrides_runpath=yes
12013
sys_lib_dlsearch_path_spec="/usr/lib"
12015
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12017
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12018
*) need_version=no ;;
12020
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12021
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12022
shlibpath_var=LD_LIBRARY_PATH
12023
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12025
openbsd2.[89] | openbsd2.[89].*)
12026
shlibpath_overrides_runpath=no
12029
shlibpath_overrides_runpath=yes
12033
shlibpath_overrides_runpath=yes
12038
libname_spec='$name'
12041
library_names_spec='$libname${shared_ext} $libname.a'
12042
dynamic_linker='OS/2 ld.exe'
12043
shlibpath_var=LIBPATH
12046
osf3* | osf4* | osf5*)
12050
soname_spec='${libname}${release}${shared_ext}$major'
12051
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12052
shlibpath_var=LD_LIBRARY_PATH
12053
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12054
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12065
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12066
soname_spec='${libname}${release}${shared_ext}$major'
12067
shlibpath_var=LD_LIBRARY_PATH
12068
shlibpath_overrides_runpath=yes
12069
hardcode_into_libs=yes
12070
# ldd complains unless libraries are executable
12071
postinstall_cmds='chmod +x $lib'
12076
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12077
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12078
shlibpath_var=LD_LIBRARY_PATH
12079
shlibpath_overrides_runpath=yes
12080
if test "$with_gnu_ld" = yes; then
12088
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12089
soname_spec='${libname}${release}${shared_ext}$major'
12090
shlibpath_var=LD_LIBRARY_PATH
12091
case $host_vendor in
12093
shlibpath_overrides_runpath=no
12095
export_dynamic_flag_spec='${wl}-Blargedynsym'
12096
runpath_var=LD_RUN_PATH
12104
shlibpath_overrides_runpath=no
12105
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12111
if test -d /usr/nec ;then
12113
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12114
soname_spec='$libname${shared_ext}.$major'
12115
shlibpath_var=LD_LIBRARY_PATH
12119
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12120
version_type=freebsd-elf
12123
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12124
soname_spec='${libname}${release}${shared_ext}$major'
12125
shlibpath_var=LD_LIBRARY_PATH
12126
hardcode_into_libs=yes
12127
if test "$with_gnu_ld" = yes; then
12128
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12129
shlibpath_overrides_runpath=no
12131
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12132
shlibpath_overrides_runpath=yes
12135
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12139
sys_lib_dlsearch_path_spec='/usr/lib'
12144
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12145
soname_spec='${libname}${release}${shared_ext}$major'
12146
shlibpath_var=LD_LIBRARY_PATH
12153
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12154
echo "${ECHO_T}$dynamic_linker" >&6; }
12155
test "$dynamic_linker" = no && can_build_shared=no
12157
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12158
echo $ECHO_N "(cached) $ECHO_C" >&6
12160
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
12163
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12164
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12165
echo $ECHO_N "(cached) $ECHO_C" >&6
12167
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
12170
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12172
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12173
if test "$GCC" = yes; then
12174
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12177
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12178
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12179
hardcode_action_GCJ=
12180
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
12181
test -n "$runpath_var_GCJ" || \
12182
test "X$hardcode_automatic_GCJ" = "Xyes" ; then
12184
# We can hardcode non-existant directories.
12185
if test "$hardcode_direct_GCJ" != no &&
12186
# If the only mechanism to avoid hardcoding is shlibpath_var, we
12187
# have to relink, otherwise we might link with an installed library
12188
# when we should be linking with a yet-to-be-installed one
12189
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
12190
test "$hardcode_minus_L_GCJ" != no; then
12191
# Linking always hardcodes the temporary library directory.
12192
hardcode_action_GCJ=relink
12194
# We can link without hardcoding, and we can hardcode nonexisting dirs.
12195
hardcode_action_GCJ=immediate
12198
# We cannot hardcode anything, or else we can only hardcode existing
12200
hardcode_action_GCJ=unsupported
12202
{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
12203
echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
12205
if test "$hardcode_action_GCJ" = relink; then
12206
# Fast installation is not supported
12207
enable_fast_install=no
12208
elif test "$shlibpath_overrides_runpath" = yes ||
12209
test "$enable_shared" = no; then
12210
# Fast installation is not necessary
12211
enable_fast_install=needless
12215
# The else clause should only fire when bootstrapping the
12216
# libtool distribution, otherwise you forgot to ship ltmain.sh
12217
# with your package, and you will get complaints that there are
12218
# no rules to generate ltmain.sh.
12219
if test -f "$ltmain"; then
12220
# See if we are running on zsh, and set the options which allow our commands through
12221
# without removal of \ escapes.
12222
if test -n "${ZSH_VERSION+set}" ; then
12223
setopt NO_GLOB_SUBST
12225
# Now quote all the things that may contain metacharacters while being
12226
# careful not to overquote the AC_SUBSTed values. We take copies of the
12227
# variables and quote the copies for generation of the libtool script.
12228
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12230
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12231
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12232
deplibs_check_method reload_flag reload_cmds need_locks \
12233
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12234
lt_cv_sys_global_symbol_to_c_name_address \
12235
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12236
old_postinstall_cmds old_postuninstall_cmds \
12240
lt_prog_compiler_wl_GCJ \
12241
lt_prog_compiler_pic_GCJ \
12242
lt_prog_compiler_static_GCJ \
12243
lt_prog_compiler_no_builtin_flag_GCJ \
12244
export_dynamic_flag_spec_GCJ \
12245
thread_safe_flag_spec_GCJ \
12246
whole_archive_flag_spec_GCJ \
12247
enable_shared_with_static_runtimes_GCJ \
12248
old_archive_cmds_GCJ \
12249
old_archive_from_new_cmds_GCJ \
12250
predep_objects_GCJ \
12251
postdep_objects_GCJ \
12254
compiler_lib_search_path_GCJ \
12255
compiler_lib_search_dirs_GCJ \
12257
archive_expsym_cmds_GCJ \
12258
postinstall_cmds_GCJ \
12259
postuninstall_cmds_GCJ \
12260
old_archive_from_expsyms_cmds_GCJ \
12261
allow_undefined_flag_GCJ \
12262
no_undefined_flag_GCJ \
12263
export_symbols_cmds_GCJ \
12264
hardcode_libdir_flag_spec_GCJ \
12265
hardcode_libdir_flag_spec_ld_GCJ \
12266
hardcode_libdir_separator_GCJ \
12267
hardcode_automatic_GCJ \
12269
module_expsym_cmds_GCJ \
12270
lt_cv_prog_compiler_c_o_GCJ \
12271
fix_srcfile_path_GCJ \
12272
exclude_expsyms_GCJ \
12273
include_expsyms_GCJ; do
12276
old_archive_cmds_GCJ | \
12277
old_archive_from_new_cmds_GCJ | \
12278
archive_cmds_GCJ | \
12279
archive_expsym_cmds_GCJ | \
12280
module_cmds_GCJ | \
12281
module_expsym_cmds_GCJ | \
12282
old_archive_from_expsyms_cmds_GCJ | \
12283
export_symbols_cmds_GCJ | \
12284
extract_expsyms_cmds | reload_cmds | finish_cmds | \
12285
postinstall_cmds | postuninstall_cmds | \
12286
old_postinstall_cmds | old_postuninstall_cmds | \
12287
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12288
# Double-quote double-evaled strings.
12289
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12292
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12298
*'\$0 --fallback-echo"')
12299
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12305
cat <<__EOF__ >> "$cfgfile"
12306
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12308
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12310
# Shell to use when invoking shell scripts.
12313
# Whether or not to build shared libraries.
12314
build_libtool_libs=$enable_shared
12316
# Whether or not to build static libraries.
12317
build_old_libs=$enable_static
12319
# Whether or not to add -lc for building shared libraries.
12320
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
12322
# Whether or not to disallow shared libs when runtime libs are static
12323
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
12325
# Whether or not to optimize for fast installation.
12326
fast_install=$enable_fast_install
12329
host_alias=$host_alias
12333
# The build system.
12334
build_alias=$build_alias
12338
# An echo program that does not interpret backslashes.
12343
AR_FLAGS=$lt_AR_FLAGS
12348
# LTCC compiler flags.
12349
LTCFLAGS=$lt_LTCFLAGS
12351
# A language-specific compiler.
12352
CC=$lt_compiler_GCJ
12354
# Is the compiler the GNU C compiler?
12360
# The linker used to build libraries.
12363
# Whether we need hard or soft links.
12366
# A BSD-compatible nm program.
12369
# A symbol stripping program
12372
# Used to examine libraries when file_magic_cmd begins "file"
12373
MAGIC_CMD=$MAGIC_CMD
12375
# Used on cygwin: DLL creation program.
12378
# Used on cygwin: object dumper.
12381
# Used on cygwin: assembler.
12384
# The name of the directory that contains temporary libtool files.
12387
# How to create reloadable object files.
12388
reload_flag=$lt_reload_flag
12389
reload_cmds=$lt_reload_cmds
12391
# How to pass a linker flag through the compiler.
12392
wl=$lt_lt_prog_compiler_wl_GCJ
12394
# Object file suffix (normally "o").
12395
objext="$ac_objext"
12397
# Old archive suffix (normally "a").
12400
# Shared library suffix (normally ".so").
12401
shrext_cmds='$shrext_cmds'
12403
# Executable file suffix (normally "").
12406
# Additional compiler flags for building library objects.
12407
pic_flag=$lt_lt_prog_compiler_pic_GCJ
12410
# What is the maximum length of a command?
12411
max_cmd_len=$lt_cv_sys_max_cmd_len
12413
# Does compiler simultaneously support -c and -o options?
12414
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
12416
# Must we lock files when doing compilation?
12417
need_locks=$lt_need_locks
12419
# Do we need the lib prefix for modules?
12420
need_lib_prefix=$need_lib_prefix
12422
# Do we need a version for libraries?
12423
need_version=$need_version
12425
# Whether dlopen is supported.
12426
dlopen_support=$enable_dlopen
12428
# Whether dlopen of programs is supported.
12429
dlopen_self=$enable_dlopen_self
12431
# Whether dlopen of statically linked programs is supported.
12432
dlopen_self_static=$enable_dlopen_self_static
12434
# Compiler flag to prevent dynamic linking.
12435
link_static_flag=$lt_lt_prog_compiler_static_GCJ
12437
# Compiler flag to turn off builtin functions.
12438
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
12440
# Compiler flag to allow reflexive dlopens.
12441
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
12443
# Compiler flag to generate shared objects directly from archives.
12444
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
12446
# Compiler flag to generate thread-safe objects.
12447
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
12449
# Library versioning type.
12450
version_type=$version_type
12452
# Format of library name prefix.
12453
libname_spec=$lt_libname_spec
12455
# List of archive names. First name is the real one, the rest are links.
12456
# The last name is the one that the linker finds with -lNAME.
12457
library_names_spec=$lt_library_names_spec
12459
# The coded name of the library, if different from the real name.
12460
soname_spec=$lt_soname_spec
12462
# Commands used to build and install an old-style archive.
12464
old_archive_cmds=$lt_old_archive_cmds_GCJ
12465
old_postinstall_cmds=$lt_old_postinstall_cmds
12466
old_postuninstall_cmds=$lt_old_postuninstall_cmds
12468
# Create an old-style archive from a shared archive.
12469
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
12471
# Create a temporary old-style archive to link instead of a shared archive.
12472
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
12474
# Commands used to build and install a shared archive.
12475
archive_cmds=$lt_archive_cmds_GCJ
12476
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
12477
postinstall_cmds=$lt_postinstall_cmds
12478
postuninstall_cmds=$lt_postuninstall_cmds
12480
# Commands used to build a loadable module (assumed same as above if empty)
12481
module_cmds=$lt_module_cmds_GCJ
12482
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
12484
# Commands to strip libraries.
12485
old_striplib=$lt_old_striplib
12486
striplib=$lt_striplib
12488
# Dependencies to place before the objects being linked to create a
12490
predep_objects=$lt_predep_objects_GCJ
12492
# Dependencies to place after the objects being linked to create a
12494
postdep_objects=$lt_postdep_objects_GCJ
12496
# Dependencies to place before the objects being linked to create a
12498
predeps=$lt_predeps_GCJ
12500
# Dependencies to place after the objects being linked to create a
12502
postdeps=$lt_postdeps_GCJ
12504
# The directories searched by this compiler when creating a shared
12506
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
12508
# The library search path used internally by the compiler when linking
12509
# a shared library.
12510
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
12512
# Method to check whether dependent libraries are shared objects.
12513
deplibs_check_method=$lt_deplibs_check_method
12515
# Command to use when deplibs_check_method == file_magic.
12516
file_magic_cmd=$lt_file_magic_cmd
12518
# Flag that allows shared libraries with undefined symbols to be built.
12519
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
12521
# Flag that forces no undefined symbols.
12522
no_undefined_flag=$lt_no_undefined_flag_GCJ
12524
# Commands used to finish a libtool library installation in a directory.
12525
finish_cmds=$lt_finish_cmds
12527
# Same as above, but a single script fragment to be evaled but not shown.
12528
finish_eval=$lt_finish_eval
12530
# Take the output of nm and produce a listing of raw symbols and C names.
12531
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12533
# Transform the output of nm in a proper C declaration
12534
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12536
# Transform the output of nm in a C name address pair
12537
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12539
# This is the shared library runtime path variable.
12540
runpath_var=$runpath_var
12542
# This is the shared library path variable.
12543
shlibpath_var=$shlibpath_var
12545
# Is shlibpath searched before the hard-coded library search path?
12546
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12548
# How to hardcode a shared library path into an executable.
12549
hardcode_action=$hardcode_action_GCJ
12551
# Whether we should hardcode library paths into libraries.
12552
hardcode_into_libs=$hardcode_into_libs
12554
# Flag to hardcode \$libdir into a binary during linking.
12555
# This must work even if \$libdir does not exist.
12556
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
12558
# If ld is used when linking, flag to hardcode \$libdir into
12559
# a binary during linking. This must work even if \$libdir does
12561
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
12563
# Whether we need a single -rpath flag with a separated argument.
12564
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
12566
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12567
# resulting binary.
12568
hardcode_direct=$hardcode_direct_GCJ
12570
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12571
# resulting binary.
12572
hardcode_minus_L=$hardcode_minus_L_GCJ
12574
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12575
# the resulting binary.
12576
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
12578
# Set to yes if building a shared library automatically hardcodes DIR into the library
12579
# and all subsequent libraries and executables linked against it.
12580
hardcode_automatic=$hardcode_automatic_GCJ
12582
# Variables whose values should be saved in libtool wrapper scripts and
12583
# restored at relink time.
12584
variables_saved_for_relink="$variables_saved_for_relink"
12586
# Whether libtool must link a program against all its dependency libraries.
12587
link_all_deplibs=$link_all_deplibs_GCJ
12589
# Compile-time system search path for libraries
12590
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12592
# Run-time system search path for libraries
12593
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12595
# Fix the shell variable \$srcfile for the compiler.
12596
fix_srcfile_path=$lt_fix_srcfile_path
12598
# Set to yes if exported symbols are required.
12599
always_export_symbols=$always_export_symbols_GCJ
12601
# The commands to list exported symbols.
12602
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
12604
# The commands to extract the exported symbol list from a shared archive.
12605
extract_expsyms_cmds=$lt_extract_expsyms_cmds
12607
# Symbols that should not be listed in the preloaded symbols.
12608
exclude_expsyms=$lt_exclude_expsyms_GCJ
12610
# Symbols that must always be exported.
12611
include_expsyms=$lt_include_expsyms_GCJ
12613
# ### END LIBTOOL TAG CONFIG: $tagname
12619
# If there is no Makefile yet, we rely on a make rule to execute
12620
# `config.status --recheck' to rerun these tests and create the
12621
# libtool script then.
12622
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12623
if test -f "$ltmain_in"; then
12624
test -f Makefile && make "$ltmain"
12630
ac_cpp='$CPP $CPPFLAGS'
12631
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12632
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12633
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12645
# Source file extension for RC test sources.
12648
# Object file extension for compiled RC test sources.
12652
# Code to be used in simple compile tests
12653
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
12655
# Code to be used in simple link tests
12656
lt_simple_link_test_code="$lt_simple_compile_test_code"
12658
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12660
# If no C compiler was specified, use CC.
12663
# If no C compiler flags were specified, use CFLAGS.
12664
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12666
# Allow CC to be a program name with arguments.
12670
# save warnings/boilerplate of simple test code
12671
ac_outfile=conftest.$ac_objext
12672
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12673
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12674
_lt_compiler_boilerplate=`cat conftest.err`
12677
ac_outfile=conftest.$ac_objext
12678
echo "$lt_simple_link_test_code" >conftest.$ac_ext
12679
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12680
_lt_linker_boilerplate=`cat conftest.err`
12684
# Allow CC to be a program name with arguments.
12689
for cc_temp in $compiler""; do
12691
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12692
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12697
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12699
lt_cv_prog_compiler_c_o_RC=yes
12701
# The else clause should only fire when bootstrapping the
12702
# libtool distribution, otherwise you forgot to ship ltmain.sh
12703
# with your package, and you will get complaints that there are
12704
# no rules to generate ltmain.sh.
12705
if test -f "$ltmain"; then
12706
# See if we are running on zsh, and set the options which allow our commands through
12707
# without removal of \ escapes.
12708
if test -n "${ZSH_VERSION+set}" ; then
12709
setopt NO_GLOB_SUBST
12711
# Now quote all the things that may contain metacharacters while being
12712
# careful not to overquote the AC_SUBSTed values. We take copies of the
12713
# variables and quote the copies for generation of the libtool script.
12714
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12716
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12717
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12718
deplibs_check_method reload_flag reload_cmds need_locks \
12719
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12720
lt_cv_sys_global_symbol_to_c_name_address \
12721
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12722
old_postinstall_cmds old_postuninstall_cmds \
12726
lt_prog_compiler_wl_RC \
12727
lt_prog_compiler_pic_RC \
12728
lt_prog_compiler_static_RC \
12729
lt_prog_compiler_no_builtin_flag_RC \
12730
export_dynamic_flag_spec_RC \
12731
thread_safe_flag_spec_RC \
12732
whole_archive_flag_spec_RC \
12733
enable_shared_with_static_runtimes_RC \
12734
old_archive_cmds_RC \
12735
old_archive_from_new_cmds_RC \
12736
predep_objects_RC \
12737
postdep_objects_RC \
12740
compiler_lib_search_path_RC \
12741
compiler_lib_search_dirs_RC \
12743
archive_expsym_cmds_RC \
12744
postinstall_cmds_RC \
12745
postuninstall_cmds_RC \
12746
old_archive_from_expsyms_cmds_RC \
12747
allow_undefined_flag_RC \
12748
no_undefined_flag_RC \
12749
export_symbols_cmds_RC \
12750
hardcode_libdir_flag_spec_RC \
12751
hardcode_libdir_flag_spec_ld_RC \
12752
hardcode_libdir_separator_RC \
12753
hardcode_automatic_RC \
12755
module_expsym_cmds_RC \
12756
lt_cv_prog_compiler_c_o_RC \
12757
fix_srcfile_path_RC \
12758
exclude_expsyms_RC \
12759
include_expsyms_RC; do
12762
old_archive_cmds_RC | \
12763
old_archive_from_new_cmds_RC | \
12764
archive_cmds_RC | \
12765
archive_expsym_cmds_RC | \
12767
module_expsym_cmds_RC | \
12768
old_archive_from_expsyms_cmds_RC | \
12769
export_symbols_cmds_RC | \
12770
extract_expsyms_cmds | reload_cmds | finish_cmds | \
12771
postinstall_cmds | postuninstall_cmds | \
12772
old_postinstall_cmds | old_postuninstall_cmds | \
12773
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12774
# Double-quote double-evaled strings.
12775
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12778
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12784
*'\$0 --fallback-echo"')
12785
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12791
cat <<__EOF__ >> "$cfgfile"
12792
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12794
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12796
# Shell to use when invoking shell scripts.
12799
# Whether or not to build shared libraries.
12800
build_libtool_libs=$enable_shared
12802
# Whether or not to build static libraries.
12803
build_old_libs=$enable_static
12805
# Whether or not to add -lc for building shared libraries.
12806
build_libtool_need_lc=$archive_cmds_need_lc_RC
12808
# Whether or not to disallow shared libs when runtime libs are static
12809
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
12811
# Whether or not to optimize for fast installation.
12812
fast_install=$enable_fast_install
12815
host_alias=$host_alias
12819
# The build system.
12820
build_alias=$build_alias
12824
# An echo program that does not interpret backslashes.
12829
AR_FLAGS=$lt_AR_FLAGS
12834
# LTCC compiler flags.
12835
LTCFLAGS=$lt_LTCFLAGS
12837
# A language-specific compiler.
12840
# Is the compiler the GNU C compiler?
12846
# The linker used to build libraries.
12849
# Whether we need hard or soft links.
12852
# A BSD-compatible nm program.
12855
# A symbol stripping program
12858
# Used to examine libraries when file_magic_cmd begins "file"
12859
MAGIC_CMD=$MAGIC_CMD
12861
# Used on cygwin: DLL creation program.
12864
# Used on cygwin: object dumper.
12867
# Used on cygwin: assembler.
12870
# The name of the directory that contains temporary libtool files.
12873
# How to create reloadable object files.
12874
reload_flag=$lt_reload_flag
12875
reload_cmds=$lt_reload_cmds
12877
# How to pass a linker flag through the compiler.
12878
wl=$lt_lt_prog_compiler_wl_RC
12880
# Object file suffix (normally "o").
12881
objext="$ac_objext"
12883
# Old archive suffix (normally "a").
12886
# Shared library suffix (normally ".so").
12887
shrext_cmds='$shrext_cmds'
12889
# Executable file suffix (normally "").
12892
# Additional compiler flags for building library objects.
12893
pic_flag=$lt_lt_prog_compiler_pic_RC
12896
# What is the maximum length of a command?
12897
max_cmd_len=$lt_cv_sys_max_cmd_len
12899
# Does compiler simultaneously support -c and -o options?
12900
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
12902
# Must we lock files when doing compilation?
12903
need_locks=$lt_need_locks
12905
# Do we need the lib prefix for modules?
12906
need_lib_prefix=$need_lib_prefix
12908
# Do we need a version for libraries?
12909
need_version=$need_version
12911
# Whether dlopen is supported.
12912
dlopen_support=$enable_dlopen
12914
# Whether dlopen of programs is supported.
12915
dlopen_self=$enable_dlopen_self
12917
# Whether dlopen of statically linked programs is supported.
12918
dlopen_self_static=$enable_dlopen_self_static
12920
# Compiler flag to prevent dynamic linking.
12921
link_static_flag=$lt_lt_prog_compiler_static_RC
12923
# Compiler flag to turn off builtin functions.
12924
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
12926
# Compiler flag to allow reflexive dlopens.
12927
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
12929
# Compiler flag to generate shared objects directly from archives.
12930
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
12932
# Compiler flag to generate thread-safe objects.
12933
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
12935
# Library versioning type.
12936
version_type=$version_type
12938
# Format of library name prefix.
12939
libname_spec=$lt_libname_spec
12941
# List of archive names. First name is the real one, the rest are links.
12942
# The last name is the one that the linker finds with -lNAME.
12943
library_names_spec=$lt_library_names_spec
12945
# The coded name of the library, if different from the real name.
12946
soname_spec=$lt_soname_spec
12948
# Commands used to build and install an old-style archive.
12950
old_archive_cmds=$lt_old_archive_cmds_RC
12951
old_postinstall_cmds=$lt_old_postinstall_cmds
12952
old_postuninstall_cmds=$lt_old_postuninstall_cmds
12954
# Create an old-style archive from a shared archive.
12955
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
12957
# Create a temporary old-style archive to link instead of a shared archive.
12958
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
12960
# Commands used to build and install a shared archive.
12961
archive_cmds=$lt_archive_cmds_RC
12962
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
12963
postinstall_cmds=$lt_postinstall_cmds
12964
postuninstall_cmds=$lt_postuninstall_cmds
12966
# Commands used to build a loadable module (assumed same as above if empty)
12967
module_cmds=$lt_module_cmds_RC
12968
module_expsym_cmds=$lt_module_expsym_cmds_RC
12970
# Commands to strip libraries.
12971
old_striplib=$lt_old_striplib
12972
striplib=$lt_striplib
12974
# Dependencies to place before the objects being linked to create a
12976
predep_objects=$lt_predep_objects_RC
12978
# Dependencies to place after the objects being linked to create a
12980
postdep_objects=$lt_postdep_objects_RC
12982
# Dependencies to place before the objects being linked to create a
12984
predeps=$lt_predeps_RC
12986
# Dependencies to place after the objects being linked to create a
12988
postdeps=$lt_postdeps_RC
12990
# The directories searched by this compiler when creating a shared
12992
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
12994
# The library search path used internally by the compiler when linking
12995
# a shared library.
12996
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
12998
# Method to check whether dependent libraries are shared objects.
12999
deplibs_check_method=$lt_deplibs_check_method
13001
# Command to use when deplibs_check_method == file_magic.
13002
file_magic_cmd=$lt_file_magic_cmd
13004
# Flag that allows shared libraries with undefined symbols to be built.
13005
allow_undefined_flag=$lt_allow_undefined_flag_RC
13007
# Flag that forces no undefined symbols.
13008
no_undefined_flag=$lt_no_undefined_flag_RC
13010
# Commands used to finish a libtool library installation in a directory.
13011
finish_cmds=$lt_finish_cmds
13013
# Same as above, but a single script fragment to be evaled but not shown.
13014
finish_eval=$lt_finish_eval
13016
# Take the output of nm and produce a listing of raw symbols and C names.
13017
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13019
# Transform the output of nm in a proper C declaration
13020
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13022
# Transform the output of nm in a C name address pair
13023
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13025
# This is the shared library runtime path variable.
13026
runpath_var=$runpath_var
13028
# This is the shared library path variable.
13029
shlibpath_var=$shlibpath_var
13031
# Is shlibpath searched before the hard-coded library search path?
13032
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13034
# How to hardcode a shared library path into an executable.
13035
hardcode_action=$hardcode_action_RC
13037
# Whether we should hardcode library paths into libraries.
13038
hardcode_into_libs=$hardcode_into_libs
13040
# Flag to hardcode \$libdir into a binary during linking.
13041
# This must work even if \$libdir does not exist.
13042
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
13044
# If ld is used when linking, flag to hardcode \$libdir into
13045
# a binary during linking. This must work even if \$libdir does
13047
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
13049
# Whether we need a single -rpath flag with a separated argument.
13050
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
13052
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13053
# resulting binary.
13054
hardcode_direct=$hardcode_direct_RC
13056
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13057
# resulting binary.
13058
hardcode_minus_L=$hardcode_minus_L_RC
13060
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13061
# the resulting binary.
13062
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
13064
# Set to yes if building a shared library automatically hardcodes DIR into the library
13065
# and all subsequent libraries and executables linked against it.
13066
hardcode_automatic=$hardcode_automatic_RC
13068
# Variables whose values should be saved in libtool wrapper scripts and
13069
# restored at relink time.
13070
variables_saved_for_relink="$variables_saved_for_relink"
13072
# Whether libtool must link a program against all its dependency libraries.
13073
link_all_deplibs=$link_all_deplibs_RC
13075
# Compile-time system search path for libraries
13076
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13078
# Run-time system search path for libraries
13079
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13081
# Fix the shell variable \$srcfile for the compiler.
13082
fix_srcfile_path=$lt_fix_srcfile_path
13084
# Set to yes if exported symbols are required.
13085
always_export_symbols=$always_export_symbols_RC
13087
# The commands to list exported symbols.
13088
export_symbols_cmds=$lt_export_symbols_cmds_RC
13090
# The commands to extract the exported symbol list from a shared archive.
13091
extract_expsyms_cmds=$lt_extract_expsyms_cmds
13093
# Symbols that should not be listed in the preloaded symbols.
13094
exclude_expsyms=$lt_exclude_expsyms_RC
13096
# Symbols that must always be exported.
13097
include_expsyms=$lt_include_expsyms_RC
13099
# ### END LIBTOOL TAG CONFIG: $tagname
13105
# If there is no Makefile yet, we rely on a make rule to execute
13106
# `config.status --recheck' to rerun these tests and create the
13107
# libtool script then.
13108
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13109
if test -f "$ltmain_in"; then
13110
test -f Makefile && make "$ltmain"
13116
ac_cpp='$CPP $CPPFLAGS'
13117
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13118
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13119
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13126
{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
13127
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
13128
{ (exit 1); exit 1; }; }
13132
# Append the new tag name to the list of available tags.
13133
if test -n "$tagname" ; then
13134
available_tags="$available_tags $tagname"
13140
# Now substitute the updated list of available tags.
13141
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
13142
mv "${ofile}T" "$ofile"
13146
{ { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
13147
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
13148
{ (exit 1); exit 1; }; }
13154
# This can be used to rebuild libtool when needed
13155
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
13157
# Always use our own libtool.
13158
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13160
# Prevent multiple expansion
13171
ac_config_headers="$ac_config_headers config.h"
13174
# Checks for programs.
13176
ac_cpp='$CPP $CPPFLAGS'
13177
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13178
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13179
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13180
if test -n "$ac_tool_prefix"; then
13181
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
13182
set dummy ${ac_tool_prefix}gcc; ac_word=$2
13183
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13184
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13185
if test "${ac_cv_prog_CC+set}" = set; then
13186
echo $ECHO_N "(cached) $ECHO_C" >&6
13188
if test -n "$CC"; then
13189
ac_cv_prog_CC="$CC" # Let the user override the test.
13191
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13192
for as_dir in $PATH
13195
test -z "$as_dir" && as_dir=.
13196
for ac_exec_ext in '' $ac_executable_extensions; do
13197
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13198
ac_cv_prog_CC="${ac_tool_prefix}gcc"
13199
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13209
if test -n "$CC"; then
13210
{ echo "$as_me:$LINENO: result: $CC" >&5
13211
echo "${ECHO_T}$CC" >&6; }
13213
{ echo "$as_me:$LINENO: result: no" >&5
13214
echo "${ECHO_T}no" >&6; }
13219
if test -z "$ac_cv_prog_CC"; then
13221
# Extract the first word of "gcc", so it can be a program name with args.
13222
set dummy gcc; ac_word=$2
13223
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13224
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13225
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
13226
echo $ECHO_N "(cached) $ECHO_C" >&6
13228
if test -n "$ac_ct_CC"; then
13229
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13231
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13232
for as_dir in $PATH
13235
test -z "$as_dir" && as_dir=.
13236
for ac_exec_ext in '' $ac_executable_extensions; do
13237
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13238
ac_cv_prog_ac_ct_CC="gcc"
13239
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13248
ac_ct_CC=$ac_cv_prog_ac_ct_CC
13249
if test -n "$ac_ct_CC"; then
13250
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
13251
echo "${ECHO_T}$ac_ct_CC" >&6; }
13253
{ echo "$as_me:$LINENO: result: no" >&5
13254
echo "${ECHO_T}no" >&6; }
13257
if test "x$ac_ct_CC" = x; then
13260
case $cross_compiling:$ac_tool_warned in
13262
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13263
whose name does not start with the host triplet. If you think this
13264
configuration is useful to you, please write to autoconf@gnu.org." >&5
13265
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13266
whose name does not start with the host triplet. If you think this
13267
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13268
ac_tool_warned=yes ;;
13273
CC="$ac_cv_prog_CC"
13276
if test -z "$CC"; then
13277
if test -n "$ac_tool_prefix"; then
13278
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
13279
set dummy ${ac_tool_prefix}cc; ac_word=$2
13280
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13281
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13282
if test "${ac_cv_prog_CC+set}" = set; then
13283
echo $ECHO_N "(cached) $ECHO_C" >&6
13285
if test -n "$CC"; then
13286
ac_cv_prog_CC="$CC" # Let the user override the test.
13288
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13289
for as_dir in $PATH
13292
test -z "$as_dir" && as_dir=.
13293
for ac_exec_ext in '' $ac_executable_extensions; do
13294
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13295
ac_cv_prog_CC="${ac_tool_prefix}cc"
13296
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13306
if test -n "$CC"; then
13307
{ echo "$as_me:$LINENO: result: $CC" >&5
13308
echo "${ECHO_T}$CC" >&6; }
13310
{ echo "$as_me:$LINENO: result: no" >&5
13311
echo "${ECHO_T}no" >&6; }
13317
if test -z "$CC"; then
13318
# Extract the first word of "cc", so it can be a program name with args.
13319
set dummy cc; ac_word=$2
13320
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13321
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13322
if test "${ac_cv_prog_CC+set}" = set; then
13323
echo $ECHO_N "(cached) $ECHO_C" >&6
13325
if test -n "$CC"; then
13326
ac_cv_prog_CC="$CC" # Let the user override the test.
13328
ac_prog_rejected=no
13329
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13330
for as_dir in $PATH
13333
test -z "$as_dir" && as_dir=.
13334
for ac_exec_ext in '' $ac_executable_extensions; do
13335
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13336
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
13337
ac_prog_rejected=yes
13341
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13348
if test $ac_prog_rejected = yes; then
13349
# We found a bogon in the path, so make sure we never use it.
13350
set dummy $ac_cv_prog_CC
13352
if test $# != 0; then
13353
# We chose a different compiler from the bogus one.
13354
# However, it has the same basename, so the bogon will be chosen
13355
# first if we set CC to just the basename; use the full file name.
13357
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
13363
if test -n "$CC"; then
13364
{ echo "$as_me:$LINENO: result: $CC" >&5
13365
echo "${ECHO_T}$CC" >&6; }
13367
{ echo "$as_me:$LINENO: result: no" >&5
13368
echo "${ECHO_T}no" >&6; }
13373
if test -z "$CC"; then
13374
if test -n "$ac_tool_prefix"; then
13375
for ac_prog in cl.exe
13377
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13378
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13379
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13380
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13381
if test "${ac_cv_prog_CC+set}" = set; then
13382
echo $ECHO_N "(cached) $ECHO_C" >&6
13384
if test -n "$CC"; then
13385
ac_cv_prog_CC="$CC" # Let the user override the test.
13387
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13388
for as_dir in $PATH
13391
test -z "$as_dir" && as_dir=.
13392
for ac_exec_ext in '' $ac_executable_extensions; do
13393
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13394
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
13395
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13405
if test -n "$CC"; then
13406
{ echo "$as_me:$LINENO: result: $CC" >&5
13407
echo "${ECHO_T}$CC" >&6; }
13409
{ echo "$as_me:$LINENO: result: no" >&5
13410
echo "${ECHO_T}no" >&6; }
13414
test -n "$CC" && break
13417
if test -z "$CC"; then
13419
for ac_prog in cl.exe
13421
# Extract the first word of "$ac_prog", so it can be a program name with args.
13422
set dummy $ac_prog; ac_word=$2
13423
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13424
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13425
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
13426
echo $ECHO_N "(cached) $ECHO_C" >&6
13428
if test -n "$ac_ct_CC"; then
13429
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13431
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13432
for as_dir in $PATH
13435
test -z "$as_dir" && as_dir=.
13436
for ac_exec_ext in '' $ac_executable_extensions; do
13437
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13438
ac_cv_prog_ac_ct_CC="$ac_prog"
13439
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13448
ac_ct_CC=$ac_cv_prog_ac_ct_CC
13449
if test -n "$ac_ct_CC"; then
13450
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
13451
echo "${ECHO_T}$ac_ct_CC" >&6; }
13453
{ echo "$as_me:$LINENO: result: no" >&5
13454
echo "${ECHO_T}no" >&6; }
13458
test -n "$ac_ct_CC" && break
13461
if test "x$ac_ct_CC" = x; then
13464
case $cross_compiling:$ac_tool_warned in
13466
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13467
whose name does not start with the host triplet. If you think this
13468
configuration is useful to you, please write to autoconf@gnu.org." >&5
13469
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13470
whose name does not start with the host triplet. If you think this
13471
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13472
ac_tool_warned=yes ;;
13481
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
13482
See \`config.log' for more details." >&5
13483
echo "$as_me: error: no acceptable C compiler found in \$PATH
13484
See \`config.log' for more details." >&2;}
13485
{ (exit 1); exit 1; }; }
13487
# Provide some information about the compiler.
13488
echo "$as_me:$LINENO: checking for C compiler version" >&5
13489
ac_compiler=`set X $ac_compile; echo $2`
13490
{ (ac_try="$ac_compiler --version >&5"
13491
case "(($ac_try" in
13492
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13493
*) ac_try_echo=$ac_try;;
13495
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13496
(eval "$ac_compiler --version >&5") 2>&5
13498
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13499
(exit $ac_status); }
13500
{ (ac_try="$ac_compiler -v >&5"
13501
case "(($ac_try" in
13502
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13503
*) ac_try_echo=$ac_try;;
13505
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13506
(eval "$ac_compiler -v >&5") 2>&5
13508
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13509
(exit $ac_status); }
13510
{ (ac_try="$ac_compiler -V >&5"
13511
case "(($ac_try" in
13512
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13513
*) ac_try_echo=$ac_try;;
13515
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13516
(eval "$ac_compiler -V >&5") 2>&5
13518
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13519
(exit $ac_status); }
13521
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
13522
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
13523
if test "${ac_cv_c_compiler_gnu+set}" = set; then
13524
echo $ECHO_N "(cached) $ECHO_C" >&6
13526
cat >conftest.$ac_ext <<_ACEOF
13529
cat confdefs.h >>conftest.$ac_ext
13530
cat >>conftest.$ac_ext <<_ACEOF
13531
/* end confdefs.h. */
13544
rm -f conftest.$ac_objext
13545
if { (ac_try="$ac_compile"
13546
case "(($ac_try" in
13547
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13548
*) ac_try_echo=$ac_try;;
13550
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13551
(eval "$ac_compile") 2>conftest.er1
13553
grep -v '^ *+' conftest.er1 >conftest.err
13555
cat conftest.err >&5
13556
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13557
(exit $ac_status); } && {
13558
test -z "$ac_c_werror_flag" ||
13559
test ! -s conftest.err
13560
} && test -s conftest.$ac_objext; then
13561
ac_compiler_gnu=yes
13563
echo "$as_me: failed program was:" >&5
13564
sed 's/^/| /' conftest.$ac_ext >&5
13569
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13570
ac_cv_c_compiler_gnu=$ac_compiler_gnu
13573
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
13574
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
13575
GCC=`test $ac_compiler_gnu = yes && echo yes`
13576
ac_test_CFLAGS=${CFLAGS+set}
13577
ac_save_CFLAGS=$CFLAGS
13578
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
13579
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
13580
if test "${ac_cv_prog_cc_g+set}" = set; then
13581
echo $ECHO_N "(cached) $ECHO_C" >&6
13583
ac_save_c_werror_flag=$ac_c_werror_flag
13584
ac_c_werror_flag=yes
13587
cat >conftest.$ac_ext <<_ACEOF
13590
cat confdefs.h >>conftest.$ac_ext
13591
cat >>conftest.$ac_ext <<_ACEOF
13592
/* end confdefs.h. */
13602
rm -f conftest.$ac_objext
13603
if { (ac_try="$ac_compile"
13604
case "(($ac_try" in
13605
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13606
*) ac_try_echo=$ac_try;;
13608
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13609
(eval "$ac_compile") 2>conftest.er1
13611
grep -v '^ *+' conftest.er1 >conftest.err
13613
cat conftest.err >&5
13614
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13615
(exit $ac_status); } && {
13616
test -z "$ac_c_werror_flag" ||
13617
test ! -s conftest.err
13618
} && test -s conftest.$ac_objext; then
13619
ac_cv_prog_cc_g=yes
13621
echo "$as_me: failed program was:" >&5
13622
sed 's/^/| /' conftest.$ac_ext >&5
13625
cat >conftest.$ac_ext <<_ACEOF
13628
cat confdefs.h >>conftest.$ac_ext
13629
cat >>conftest.$ac_ext <<_ACEOF
13630
/* end confdefs.h. */
13640
rm -f conftest.$ac_objext
13641
if { (ac_try="$ac_compile"
13642
case "(($ac_try" in
13643
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13644
*) ac_try_echo=$ac_try;;
13646
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13647
(eval "$ac_compile") 2>conftest.er1
13649
grep -v '^ *+' conftest.er1 >conftest.err
13651
cat conftest.err >&5
13652
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13653
(exit $ac_status); } && {
13654
test -z "$ac_c_werror_flag" ||
13655
test ! -s conftest.err
13656
} && test -s conftest.$ac_objext; then
13659
echo "$as_me: failed program was:" >&5
13660
sed 's/^/| /' conftest.$ac_ext >&5
13662
ac_c_werror_flag=$ac_save_c_werror_flag
13664
cat >conftest.$ac_ext <<_ACEOF
13667
cat confdefs.h >>conftest.$ac_ext
13668
cat >>conftest.$ac_ext <<_ACEOF
13669
/* end confdefs.h. */
13679
rm -f conftest.$ac_objext
13680
if { (ac_try="$ac_compile"
13681
case "(($ac_try" in
13682
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13683
*) ac_try_echo=$ac_try;;
13685
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13686
(eval "$ac_compile") 2>conftest.er1
13688
grep -v '^ *+' conftest.er1 >conftest.err
13690
cat conftest.err >&5
13691
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13692
(exit $ac_status); } && {
13693
test -z "$ac_c_werror_flag" ||
13694
test ! -s conftest.err
13695
} && test -s conftest.$ac_objext; then
13696
ac_cv_prog_cc_g=yes
13698
echo "$as_me: failed program was:" >&5
13699
sed 's/^/| /' conftest.$ac_ext >&5
13704
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13707
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13710
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13711
ac_c_werror_flag=$ac_save_c_werror_flag
13713
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
13714
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
13715
if test "$ac_test_CFLAGS" = set; then
13716
CFLAGS=$ac_save_CFLAGS
13717
elif test $ac_cv_prog_cc_g = yes; then
13718
if test "$GCC" = yes; then
13724
if test "$GCC" = yes; then
13730
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
13731
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
13732
if test "${ac_cv_prog_cc_c89+set}" = set; then
13733
echo $ECHO_N "(cached) $ECHO_C" >&6
13735
ac_cv_prog_cc_c89=no
13737
cat >conftest.$ac_ext <<_ACEOF
13740
cat confdefs.h >>conftest.$ac_ext
13741
cat >>conftest.$ac_ext <<_ACEOF
13742
/* end confdefs.h. */
13743
#include <stdarg.h>
13745
#include <sys/types.h>
13746
#include <sys/stat.h>
13747
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
13748
struct buf { int x; };
13749
FILE * (*rcsopen) (struct buf *, struct stat *, int);
13750
static char *e (p, i)
13756
static char *f (char * (*g) (char **, int), char **p, ...)
13761
s = g (p, va_arg (v,int));
13766
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
13767
function prototypes and stuff, but not '\xHH' hex character constants.
13768
These don't provoke an error unfortunately, instead are silently treated
13769
as 'x'. The following induces an error, until -std is added to get
13770
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
13771
array size at least. It's necessary to write '\x00'==0 to get something
13772
that's true only with -std. */
13773
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
13775
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
13776
inside strings and character constants. */
13778
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
13780
int test (int i, double x);
13781
struct s1 {int (*f) (int a);};
13782
struct s2 {int (*f) (double a);};
13783
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13789
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
13794
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
13795
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13797
CC="$ac_save_CC $ac_arg"
13798
rm -f conftest.$ac_objext
13799
if { (ac_try="$ac_compile"
13800
case "(($ac_try" in
13801
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13802
*) ac_try_echo=$ac_try;;
13804
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13805
(eval "$ac_compile") 2>conftest.er1
13807
grep -v '^ *+' conftest.er1 >conftest.err
13809
cat conftest.err >&5
13810
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13811
(exit $ac_status); } && {
13812
test -z "$ac_c_werror_flag" ||
13813
test ! -s conftest.err
13814
} && test -s conftest.$ac_objext; then
13815
ac_cv_prog_cc_c89=$ac_arg
13817
echo "$as_me: failed program was:" >&5
13818
sed 's/^/| /' conftest.$ac_ext >&5
13823
rm -f core conftest.err conftest.$ac_objext
13824
test "x$ac_cv_prog_cc_c89" != "xno" && break
13826
rm -f conftest.$ac_ext
13831
case "x$ac_cv_prog_cc_c89" in
13833
{ echo "$as_me:$LINENO: result: none needed" >&5
13834
echo "${ECHO_T}none needed" >&6; } ;;
13836
{ echo "$as_me:$LINENO: result: unsupported" >&5
13837
echo "${ECHO_T}unsupported" >&6; } ;;
13839
CC="$CC $ac_cv_prog_cc_c89"
13840
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
13841
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
13846
ac_cpp='$CPP $CPPFLAGS'
13847
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13848
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13849
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13851
depcc="$CC" am_compiler_list=
13853
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
13854
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
13855
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
13856
echo $ECHO_N "(cached) $ECHO_C" >&6
13858
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13859
# We make a subdir and do the tests there. Otherwise we can end up
13860
# making bogus files that we don't know about and never remove. For
13861
# instance it was reported that on HP-UX the gcc test will end up
13862
# making a dummy file named `D' -- because `-MD' means `put the output
13865
# Copy depcomp to subdir because otherwise we won't find it if we're
13866
# using a relative directory.
13867
cp "$am_depcomp" conftest.dir
13869
# We will build objects and dependencies in a subdirectory because
13870
# it helps to detect inapplicable dependency modes. For instance
13871
# both Tru64's cc and ICC support -MD to output dependencies as a
13872
# side effect of compilation, but ICC will put the dependencies in
13873
# the current directory while Tru64 will put them in the object
13877
am_cv_CC_dependencies_compiler_type=none
13878
if test "$am_compiler_list" = ""; then
13879
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13881
for depmode in $am_compiler_list; do
13882
# Setup a source with many dependencies, because some compilers
13883
# like to wrap large dependency lists on column 80 (with \), and
13884
# we should not choose a depcomp mode which is confused by this.
13886
# We need to recreate these files for each test, as the compiler may
13887
# overwrite some of them when testing with obscure command lines.
13888
# This happens at least with the AIX C compiler.
13890
for i in 1 2 3 4 5 6; do
13891
echo '#include "conftst'$i'.h"' >> sub/conftest.c
13892
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
13893
# Solaris 8's {/usr,}/bin/sh.
13894
touch sub/conftst$i.h
13896
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13900
# after this tag, mechanisms are not by side-effect, so they'll
13901
# only be used when explicitly requested
13902
if test "x$enable_dependency_tracking" = xyes; then
13910
# We check with `-c' and `-o' for the sake of the "dashmstdout"
13911
# mode. It turns out that the SunPro C++ compiler does not properly
13912
# handle `-M -o', and we need to detect this.
13913
if depmode=$depmode \
13914
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
13915
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13916
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
13917
>/dev/null 2>conftest.err &&
13918
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13919
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13920
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
13921
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13922
# icc doesn't choke on unknown options, it will just issue warnings
13923
# or remarks (even with -Werror). So we grep stderr for any message
13924
# that says an option was ignored or not supported.
13925
# When given -MP, icc 7.0 and 7.1 complain thusly:
13926
# icc: Command line warning: ignoring option '-M'; no argument required
13927
# The diagnosis changed in icc 8.0:
13928
# icc: Command line remark: option '-MP' not supported
13929
if (grep 'ignoring option' conftest.err ||
13930
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13931
am_cv_CC_dependencies_compiler_type=$depmode
13938
rm -rf conftest.dir
13940
am_cv_CC_dependencies_compiler_type=none
13944
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
13945
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
13946
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13949
test "x$enable_dependency_tracking" != xno \
13950
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13951
am__fastdepCC_TRUE=
13952
am__fastdepCC_FALSE='#'
13954
am__fastdepCC_TRUE='#'
13955
am__fastdepCC_FALSE=
13960
ac_cpp='$CPP $CPPFLAGS'
13961
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13962
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13963
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13964
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
13965
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
13966
# On Suns, sometimes $CPP names a directory.
13967
if test -n "$CPP" && test -d "$CPP"; then
13970
if test -z "$CPP"; then
13971
if test "${ac_cv_prog_CPP+set}" = set; then
13972
echo $ECHO_N "(cached) $ECHO_C" >&6
13974
# Double quotes because CPP needs to be expanded
13975
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
13977
ac_preproc_ok=false
13978
for ac_c_preproc_warn_flag in '' yes
13980
# Use a header file that comes with gcc, so configuring glibc
13981
# with a fresh cross-compiler works.
13982
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13983
# <limits.h> exists even on freestanding compilers.
13984
# On the NeXT, cc -E runs the code through the compiler's parser,
13985
# not just through cpp. "Syntax error" is here to catch this case.
13986
cat >conftest.$ac_ext <<_ACEOF
13989
cat confdefs.h >>conftest.$ac_ext
13990
cat >>conftest.$ac_ext <<_ACEOF
13991
/* end confdefs.h. */
13993
# include <limits.h>
13995
# include <assert.h>
13999
if { (ac_try="$ac_cpp conftest.$ac_ext"
14000
case "(($ac_try" in
14001
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14002
*) ac_try_echo=$ac_try;;
14004
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14005
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14007
grep -v '^ *+' conftest.er1 >conftest.err
14009
cat conftest.err >&5
14010
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14011
(exit $ac_status); } >/dev/null && {
14012
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14013
test ! -s conftest.err
14017
echo "$as_me: failed program was:" >&5
14018
sed 's/^/| /' conftest.$ac_ext >&5
14020
# Broken: fails on valid input.
14024
rm -f conftest.err conftest.$ac_ext
14026
# OK, works on sane cases. Now check whether nonexistent headers
14027
# can be detected and how.
14028
cat >conftest.$ac_ext <<_ACEOF
14031
cat confdefs.h >>conftest.$ac_ext
14032
cat >>conftest.$ac_ext <<_ACEOF
14033
/* end confdefs.h. */
14034
#include <ac_nonexistent.h>
14036
if { (ac_try="$ac_cpp conftest.$ac_ext"
14037
case "(($ac_try" in
14038
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14039
*) ac_try_echo=$ac_try;;
14041
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14042
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14044
grep -v '^ *+' conftest.er1 >conftest.err
14046
cat conftest.err >&5
14047
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14048
(exit $ac_status); } >/dev/null && {
14049
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14050
test ! -s conftest.err
14052
# Broken: success on invalid input.
14055
echo "$as_me: failed program was:" >&5
14056
sed 's/^/| /' conftest.$ac_ext >&5
14058
# Passes both tests.
14063
rm -f conftest.err conftest.$ac_ext
14066
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14067
rm -f conftest.err conftest.$ac_ext
14068
if $ac_preproc_ok; then
14073
ac_cv_prog_CPP=$CPP
14076
CPP=$ac_cv_prog_CPP
14078
ac_cv_prog_CPP=$CPP
14080
{ echo "$as_me:$LINENO: result: $CPP" >&5
14081
echo "${ECHO_T}$CPP" >&6; }
14082
ac_preproc_ok=false
14083
for ac_c_preproc_warn_flag in '' yes
14085
# Use a header file that comes with gcc, so configuring glibc
14086
# with a fresh cross-compiler works.
14087
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14088
# <limits.h> exists even on freestanding compilers.
14089
# On the NeXT, cc -E runs the code through the compiler's parser,
14090
# not just through cpp. "Syntax error" is here to catch this case.
14091
cat >conftest.$ac_ext <<_ACEOF
14094
cat confdefs.h >>conftest.$ac_ext
14095
cat >>conftest.$ac_ext <<_ACEOF
14096
/* end confdefs.h. */
14098
# include <limits.h>
14100
# include <assert.h>
14104
if { (ac_try="$ac_cpp conftest.$ac_ext"
14105
case "(($ac_try" in
14106
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14107
*) ac_try_echo=$ac_try;;
14109
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14110
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14112
grep -v '^ *+' conftest.er1 >conftest.err
14114
cat conftest.err >&5
14115
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14116
(exit $ac_status); } >/dev/null && {
14117
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14118
test ! -s conftest.err
14122
echo "$as_me: failed program was:" >&5
14123
sed 's/^/| /' conftest.$ac_ext >&5
14125
# Broken: fails on valid input.
14129
rm -f conftest.err conftest.$ac_ext
14131
# OK, works on sane cases. Now check whether nonexistent headers
14132
# can be detected and how.
14133
cat >conftest.$ac_ext <<_ACEOF
14136
cat confdefs.h >>conftest.$ac_ext
14137
cat >>conftest.$ac_ext <<_ACEOF
14138
/* end confdefs.h. */
14139
#include <ac_nonexistent.h>
14141
if { (ac_try="$ac_cpp conftest.$ac_ext"
14142
case "(($ac_try" in
14143
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14144
*) ac_try_echo=$ac_try;;
14146
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14147
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14149
grep -v '^ *+' conftest.er1 >conftest.err
14151
cat conftest.err >&5
14152
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14153
(exit $ac_status); } >/dev/null && {
14154
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14155
test ! -s conftest.err
14157
# Broken: success on invalid input.
14160
echo "$as_me: failed program was:" >&5
14161
sed 's/^/| /' conftest.$ac_ext >&5
14163
# Passes both tests.
14168
rm -f conftest.err conftest.$ac_ext
14171
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14172
rm -f conftest.err conftest.$ac_ext
14173
if $ac_preproc_ok; then
14176
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
14177
See \`config.log' for more details." >&5
14178
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
14179
See \`config.log' for more details." >&2;}
14180
{ (exit 1); exit 1; }; }
14184
ac_cpp='$CPP $CPPFLAGS'
14185
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14186
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14187
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14189
if test "x$CC" != xcc; then
14190
{ echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
14191
echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
14193
{ echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
14194
echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
14196
set dummy $CC; ac_cc=`echo $2 |
14197
sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
14198
if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
14199
echo $ECHO_N "(cached) $ECHO_C" >&6
14201
cat >conftest.$ac_ext <<_ACEOF
14204
cat confdefs.h >>conftest.$ac_ext
14205
cat >>conftest.$ac_ext <<_ACEOF
14206
/* end confdefs.h. */
14216
# Make sure it works both with $CC and with simple cc.
14217
# We do the test twice because some compilers refuse to overwrite an
14218
# existing .o file with -o, though they will create one.
14219
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
14221
if { (case "(($ac_try" in
14222
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14223
*) ac_try_echo=$ac_try;;
14225
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14226
(eval "$ac_try") 2>&5
14228
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14229
(exit $ac_status); } &&
14230
test -f conftest2.$ac_objext && { (case "(($ac_try" in
14231
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14232
*) ac_try_echo=$ac_try;;
14234
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14235
(eval "$ac_try") 2>&5
14237
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14238
(exit $ac_status); };
14240
eval ac_cv_prog_cc_${ac_cc}_c_o=yes
14241
if test "x$CC" != xcc; then
14242
# Test first that cc exists at all.
14243
if { ac_try='cc -c conftest.$ac_ext >&5'
14244
{ (case "(($ac_try" in
14245
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14246
*) ac_try_echo=$ac_try;;
14248
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14249
(eval "$ac_try") 2>&5
14251
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14252
(exit $ac_status); }; }; then
14253
ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
14255
if { (case "(($ac_try" in
14256
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14257
*) ac_try_echo=$ac_try;;
14259
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14260
(eval "$ac_try") 2>&5
14262
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14263
(exit $ac_status); } &&
14264
test -f conftest2.$ac_objext && { (case "(($ac_try" in
14265
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14266
*) ac_try_echo=$ac_try;;
14268
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14269
(eval "$ac_try") 2>&5
14271
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14272
(exit $ac_status); };
14277
# cc exists but doesn't like -o.
14278
eval ac_cv_prog_cc_${ac_cc}_c_o=no
14283
eval ac_cv_prog_cc_${ac_cc}_c_o=no
14285
rm -f core conftest*
14288
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
14289
{ echo "$as_me:$LINENO: result: yes" >&5
14290
echo "${ECHO_T}yes" >&6; }
14292
{ echo "$as_me:$LINENO: result: no" >&5
14293
echo "${ECHO_T}no" >&6; }
14295
cat >>confdefs.h <<\_ACEOF
14296
#define NO_MINUS_C_MINUS_O 1
14301
# FIXME: we rely on the cache variable name because
14302
# there is no other way.
14304
ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
14305
if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
14306
# Losing compiler, so override with the script.
14307
# FIXME: It is wrong to rewrite CC.
14308
# But if we don't then we get into trouble of one sort or another.
14309
# A longer-term fix would be to have automake use am__CC in this case,
14310
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
14311
CC="$am_aux_dir/compile $CC"
14316
# Checks for header files.
14317
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
14318
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
14319
if test "${ac_cv_header_stdc+set}" = set; then
14320
echo $ECHO_N "(cached) $ECHO_C" >&6
14322
cat >conftest.$ac_ext <<_ACEOF
14325
cat confdefs.h >>conftest.$ac_ext
14326
cat >>conftest.$ac_ext <<_ACEOF
14327
/* end confdefs.h. */
14328
#include <stdlib.h>
14329
#include <stdarg.h>
14330
#include <string.h>
14341
rm -f conftest.$ac_objext
14342
if { (ac_try="$ac_compile"
14343
case "(($ac_try" in
14344
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14345
*) ac_try_echo=$ac_try;;
14347
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14348
(eval "$ac_compile") 2>conftest.er1
14350
grep -v '^ *+' conftest.er1 >conftest.err
14352
cat conftest.err >&5
14353
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14354
(exit $ac_status); } && {
14355
test -z "$ac_c_werror_flag" ||
14356
test ! -s conftest.err
14357
} && test -s conftest.$ac_objext; then
14358
ac_cv_header_stdc=yes
14360
echo "$as_me: failed program was:" >&5
14361
sed 's/^/| /' conftest.$ac_ext >&5
14363
ac_cv_header_stdc=no
14366
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14368
if test $ac_cv_header_stdc = yes; then
14369
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14370
cat >conftest.$ac_ext <<_ACEOF
14373
cat confdefs.h >>conftest.$ac_ext
14374
cat >>conftest.$ac_ext <<_ACEOF
14375
/* end confdefs.h. */
14376
#include <string.h>
14379
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14380
$EGREP "memchr" >/dev/null 2>&1; then
14383
ac_cv_header_stdc=no
14389
if test $ac_cv_header_stdc = yes; then
14390
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14391
cat >conftest.$ac_ext <<_ACEOF
14394
cat confdefs.h >>conftest.$ac_ext
14395
cat >>conftest.$ac_ext <<_ACEOF
14396
/* end confdefs.h. */
14397
#include <stdlib.h>
14400
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14401
$EGREP "free" >/dev/null 2>&1; then
14404
ac_cv_header_stdc=no
14410
if test $ac_cv_header_stdc = yes; then
14411
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14412
if test "$cross_compiling" = yes; then
14415
cat >conftest.$ac_ext <<_ACEOF
14418
cat confdefs.h >>conftest.$ac_ext
14419
cat >>conftest.$ac_ext <<_ACEOF
14420
/* end confdefs.h. */
14422
#include <stdlib.h>
14423
#if ((' ' & 0x0FF) == 0x020)
14424
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14425
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14427
# define ISLOWER(c) \
14428
(('a' <= (c) && (c) <= 'i') \
14429
|| ('j' <= (c) && (c) <= 'r') \
14430
|| ('s' <= (c) && (c) <= 'z'))
14431
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14434
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14439
for (i = 0; i < 256; i++)
14440
if (XOR (islower (i), ISLOWER (i))
14441
|| toupper (i) != TOUPPER (i))
14446
rm -f conftest$ac_exeext
14447
if { (ac_try="$ac_link"
14448
case "(($ac_try" in
14449
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14450
*) ac_try_echo=$ac_try;;
14452
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14453
(eval "$ac_link") 2>&5
14455
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14456
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14457
{ (case "(($ac_try" in
14458
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14459
*) ac_try_echo=$ac_try;;
14461
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14462
(eval "$ac_try") 2>&5
14464
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14465
(exit $ac_status); }; }; then
14468
echo "$as_me: program exited with status $ac_status" >&5
14469
echo "$as_me: failed program was:" >&5
14470
sed 's/^/| /' conftest.$ac_ext >&5
14472
( exit $ac_status )
14473
ac_cv_header_stdc=no
14475
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14481
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
14482
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
14483
if test $ac_cv_header_stdc = yes; then
14485
cat >>confdefs.h <<\_ACEOF
14486
#define STDC_HEADERS 1
14491
{ echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
14492
echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
14493
if test "${ac_cv_header_stdbool_h+set}" = set; then
14494
echo $ECHO_N "(cached) $ECHO_C" >&6
14496
cat >conftest.$ac_ext <<_ACEOF
14499
cat confdefs.h >>conftest.$ac_ext
14500
cat >>conftest.$ac_ext <<_ACEOF
14501
/* end confdefs.h. */
14503
#include <stdbool.h>
14505
"error: bool is not defined"
14508
"error: false is not defined"
14511
"error: false is not 0"
14514
"error: true is not defined"
14517
"error: true is not 1"
14519
#ifndef __bool_true_false_are_defined
14520
"error: __bool_true_false_are_defined is not defined"
14523
struct s { _Bool s: 1; _Bool t; } s;
14525
char a[true == 1 ? 1 : -1];
14526
char b[false == 0 ? 1 : -1];
14527
char c[__bool_true_false_are_defined == 1 ? 1 : -1];
14528
char d[(bool) 0.5 == true ? 1 : -1];
14530
char f[(_Bool) 0.0 == false ? 1 : -1];
14532
char h[sizeof (_Bool)];
14533
char i[sizeof s.t];
14534
enum { j = false, k = true, l = false * true, m = true * 256 };
14536
char o[sizeof n == m * sizeof n[0] ? 1 : -1];
14537
char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
14538
# if defined __xlc__ || defined __GNUC__
14539
/* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
14540
reported by James Lemley on 2005-10-05; see
14541
http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
14542
This test is not quite right, since xlc is allowed to
14543
reject this program, as the initializer for xlcbug is
14544
not one of the forms that C requires support for.
14545
However, doing the test right would require a runtime
14546
test, and that would make cross-compilation harder.
14547
Let us hope that IBM fixes the xlc bug, and also adds
14548
support for this kind of constant expression. In the
14549
meantime, this test will reject xlc, which is OK, since
14550
our stdbool.h substitute should suffice. We also test
14551
this with GCC, where it should work, to detect more
14552
quickly whether someone messes up the test in the
14554
char digs[] = "0123456789";
14555
int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
14557
/* Catch a bug in an HP-UX C compiler. See
14558
http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
14559
http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
14570
/* Refer to every declared value, to avoid compiler optimizations. */
14571
return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
14572
+ !m + !n + !o + !p + !q + !pq);
14578
rm -f conftest.$ac_objext
14579
if { (ac_try="$ac_compile"
14580
case "(($ac_try" in
14581
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14582
*) ac_try_echo=$ac_try;;
14584
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14585
(eval "$ac_compile") 2>conftest.er1
14587
grep -v '^ *+' conftest.er1 >conftest.err
14589
cat conftest.err >&5
14590
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14591
(exit $ac_status); } && {
14592
test -z "$ac_c_werror_flag" ||
14593
test ! -s conftest.err
14594
} && test -s conftest.$ac_objext; then
14595
ac_cv_header_stdbool_h=yes
14597
echo "$as_me: failed program was:" >&5
14598
sed 's/^/| /' conftest.$ac_ext >&5
14600
ac_cv_header_stdbool_h=no
14603
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14605
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
14606
echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
14607
{ echo "$as_me:$LINENO: checking for _Bool" >&5
14608
echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
14609
if test "${ac_cv_type__Bool+set}" = set; then
14610
echo $ECHO_N "(cached) $ECHO_C" >&6
14612
cat >conftest.$ac_ext <<_ACEOF
14615
cat confdefs.h >>conftest.$ac_ext
14616
cat >>conftest.$ac_ext <<_ACEOF
14617
/* end confdefs.h. */
14618
$ac_includes_default
14619
typedef _Bool ac__type_new_;
14623
if ((ac__type_new_ *) 0)
14625
if (sizeof (ac__type_new_))
14631
rm -f conftest.$ac_objext
14632
if { (ac_try="$ac_compile"
14633
case "(($ac_try" in
14634
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14635
*) ac_try_echo=$ac_try;;
14637
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14638
(eval "$ac_compile") 2>conftest.er1
14640
grep -v '^ *+' conftest.er1 >conftest.err
14642
cat conftest.err >&5
14643
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14644
(exit $ac_status); } && {
14645
test -z "$ac_c_werror_flag" ||
14646
test ! -s conftest.err
14647
} && test -s conftest.$ac_objext; then
14648
ac_cv_type__Bool=yes
14650
echo "$as_me: failed program was:" >&5
14651
sed 's/^/| /' conftest.$ac_ext >&5
14653
ac_cv_type__Bool=no
14656
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14658
{ echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
14659
echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
14660
if test $ac_cv_type__Bool = yes; then
14662
cat >>confdefs.h <<_ACEOF
14663
#define HAVE__BOOL 1
14669
if test $ac_cv_header_stdbool_h = yes; then
14671
cat >>confdefs.h <<\_ACEOF
14672
#define HAVE_STDBOOL_H 1
14684
for ac_header in inttypes.h stdint.h stdlib.h string.h sys/time.h unistd.h iconv.h
14686
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14687
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14688
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14689
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14690
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14691
echo $ECHO_N "(cached) $ECHO_C" >&6
14693
ac_res=`eval echo '${'$as_ac_Header'}'`
14694
{ echo "$as_me:$LINENO: result: $ac_res" >&5
14695
echo "${ECHO_T}$ac_res" >&6; }
14697
# Is the header compilable?
14698
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14699
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14700
cat >conftest.$ac_ext <<_ACEOF
14703
cat confdefs.h >>conftest.$ac_ext
14704
cat >>conftest.$ac_ext <<_ACEOF
14705
/* end confdefs.h. */
14706
$ac_includes_default
14707
#include <$ac_header>
14709
rm -f conftest.$ac_objext
14710
if { (ac_try="$ac_compile"
14711
case "(($ac_try" in
14712
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14713
*) ac_try_echo=$ac_try;;
14715
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14716
(eval "$ac_compile") 2>conftest.er1
14718
grep -v '^ *+' conftest.er1 >conftest.err
14720
cat conftest.err >&5
14721
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14722
(exit $ac_status); } && {
14723
test -z "$ac_c_werror_flag" ||
14724
test ! -s conftest.err
14725
} && test -s conftest.$ac_objext; then
14726
ac_header_compiler=yes
14728
echo "$as_me: failed program was:" >&5
14729
sed 's/^/| /' conftest.$ac_ext >&5
14731
ac_header_compiler=no
14734
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14735
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14736
echo "${ECHO_T}$ac_header_compiler" >&6; }
14738
# Is the header present?
14739
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14740
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14741
cat >conftest.$ac_ext <<_ACEOF
14744
cat confdefs.h >>conftest.$ac_ext
14745
cat >>conftest.$ac_ext <<_ACEOF
14746
/* end confdefs.h. */
14747
#include <$ac_header>
14749
if { (ac_try="$ac_cpp conftest.$ac_ext"
14750
case "(($ac_try" in
14751
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14752
*) ac_try_echo=$ac_try;;
14754
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14755
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14757
grep -v '^ *+' conftest.er1 >conftest.err
14759
cat conftest.err >&5
14760
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14761
(exit $ac_status); } >/dev/null && {
14762
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14763
test ! -s conftest.err
14765
ac_header_preproc=yes
14767
echo "$as_me: failed program was:" >&5
14768
sed 's/^/| /' conftest.$ac_ext >&5
14770
ac_header_preproc=no
14773
rm -f conftest.err conftest.$ac_ext
14774
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14775
echo "${ECHO_T}$ac_header_preproc" >&6; }
14777
# So? What about this header?
14778
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14780
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14781
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14782
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14783
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14784
ac_header_preproc=yes
14787
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14788
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14789
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14790
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14791
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14792
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14793
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14794
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14795
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14796
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14797
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14798
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14802
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14803
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14804
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14805
echo $ECHO_N "(cached) $ECHO_C" >&6
14807
eval "$as_ac_Header=\$ac_header_preproc"
14809
ac_res=`eval echo '${'$as_ac_Header'}'`
14810
{ echo "$as_me:$LINENO: result: $ac_res" >&5
14811
echo "${ECHO_T}$ac_res" >&6; }
14814
if test `eval echo '${'$as_ac_Header'}'` = yes; then
14815
cat >>confdefs.h <<_ACEOF
14816
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14824
# Checks for typedefs, structures, and compiler characteristics.
14825
{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14826
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
14827
if test "${ac_cv_c_const+set}" = set; then
14828
echo $ECHO_N "(cached) $ECHO_C" >&6
14830
cat >conftest.$ac_ext <<_ACEOF
14833
cat confdefs.h >>conftest.$ac_ext
14834
cat >>conftest.$ac_ext <<_ACEOF
14835
/* end confdefs.h. */
14840
/* FIXME: Include the comments suggested by Paul. */
14841
#ifndef __cplusplus
14842
/* Ultrix mips cc rejects this. */
14843
typedef int charset[2];
14845
/* SunOS 4.1.1 cc rejects this. */
14846
char const *const *pcpcc;
14848
/* NEC SVR4.0.2 mips cc rejects this. */
14849
struct point {int x, y;};
14850
static struct point const zero = {0,0};
14851
/* AIX XL C 1.02.0.0 rejects this.
14852
It does not let you subtract one const X* pointer from another in
14853
an arm of an if-expression whose if-part is not a constant
14855
const char *g = "string";
14856
pcpcc = &g + (g ? g-g : 0);
14857
/* HPUX 7.0 cc rejects these. */
14859
ppc = (char**) pcpcc;
14860
pcpcc = (char const *const *) ppc;
14861
{ /* SCO 3.2v4 cc rejects this. */
14863
char const *s = 0 ? (char *) 0 : (char const *) 0;
14868
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14869
int x[] = {25, 17};
14870
const int *foo = &x[0];
14873
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14874
typedef const int *iptr;
14878
{ /* AIX XL C 1.02.0.0 rejects this saying
14879
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14880
struct s { int j; const int *ap[3]; };
14881
struct s *b; b->j = 5;
14883
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14884
const int foo = 10;
14885
if (!foo) return 0;
14887
return !cs[0] && !zero.x;
14894
rm -f conftest.$ac_objext
14895
if { (ac_try="$ac_compile"
14896
case "(($ac_try" in
14897
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14898
*) ac_try_echo=$ac_try;;
14900
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14901
(eval "$ac_compile") 2>conftest.er1
14903
grep -v '^ *+' conftest.er1 >conftest.err
14905
cat conftest.err >&5
14906
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14907
(exit $ac_status); } && {
14908
test -z "$ac_c_werror_flag" ||
14909
test ! -s conftest.err
14910
} && test -s conftest.$ac_objext; then
14913
echo "$as_me: failed program was:" >&5
14914
sed 's/^/| /' conftest.$ac_ext >&5
14919
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14921
{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14922
echo "${ECHO_T}$ac_cv_c_const" >&6; }
14923
if test $ac_cv_c_const = no; then
14925
cat >>confdefs.h <<\_ACEOF
14931
{ echo "$as_me:$LINENO: checking for inline" >&5
14932
echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
14933
if test "${ac_cv_c_inline+set}" = set; then
14934
echo $ECHO_N "(cached) $ECHO_C" >&6
14937
for ac_kw in inline __inline__ __inline; do
14938
cat >conftest.$ac_ext <<_ACEOF
14941
cat confdefs.h >>conftest.$ac_ext
14942
cat >>conftest.$ac_ext <<_ACEOF
14943
/* end confdefs.h. */
14944
#ifndef __cplusplus
14946
static $ac_kw foo_t static_foo () {return 0; }
14947
$ac_kw foo_t foo () {return 0; }
14951
rm -f conftest.$ac_objext
14952
if { (ac_try="$ac_compile"
14953
case "(($ac_try" in
14954
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14955
*) ac_try_echo=$ac_try;;
14957
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14958
(eval "$ac_compile") 2>conftest.er1
14960
grep -v '^ *+' conftest.er1 >conftest.err
14962
cat conftest.err >&5
14963
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14964
(exit $ac_status); } && {
14965
test -z "$ac_c_werror_flag" ||
14966
test ! -s conftest.err
14967
} && test -s conftest.$ac_objext; then
14968
ac_cv_c_inline=$ac_kw
14970
echo "$as_me: failed program was:" >&5
14971
sed 's/^/| /' conftest.$ac_ext >&5
14976
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14977
test "$ac_cv_c_inline" != no && break
14981
{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14982
echo "${ECHO_T}$ac_cv_c_inline" >&6; }
14985
case $ac_cv_c_inline in
14988
case $ac_cv_c_inline in
14990
*) ac_val=$ac_cv_c_inline;;
14992
cat >>confdefs.h <<_ACEOF
14993
#ifndef __cplusplus
14994
#define inline $ac_val
15001
{ echo "$as_me:$LINENO: checking for int64_t" >&5
15002
echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
15003
if test "${ac_cv_c_int64_t+set}" = set; then
15004
echo $ECHO_N "(cached) $ECHO_C" >&6
15007
for ac_type in 'int64_t' 'int' 'long int' \
15008
'long long int' 'short int' 'signed char'; do
15009
cat >conftest.$ac_ext <<_ACEOF
15012
cat confdefs.h >>conftest.$ac_ext
15013
cat >>conftest.$ac_ext <<_ACEOF
15014
/* end confdefs.h. */
15015
$ac_includes_default
15019
static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))];
15026
rm -f conftest.$ac_objext
15027
if { (ac_try="$ac_compile"
15028
case "(($ac_try" in
15029
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15030
*) ac_try_echo=$ac_try;;
15032
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15033
(eval "$ac_compile") 2>conftest.er1
15035
grep -v '^ *+' conftest.er1 >conftest.err
15037
cat conftest.err >&5
15038
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15039
(exit $ac_status); } && {
15040
test -z "$ac_c_werror_flag" ||
15041
test ! -s conftest.err
15042
} && test -s conftest.$ac_objext; then
15043
cat >conftest.$ac_ext <<_ACEOF
15046
cat confdefs.h >>conftest.$ac_ext
15047
cat >>conftest.$ac_ext <<_ACEOF
15048
/* end confdefs.h. */
15049
$ac_includes_default
15053
static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1)
15054
< ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))];
15061
rm -f conftest.$ac_objext
15062
if { (ac_try="$ac_compile"
15063
case "(($ac_try" in
15064
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15065
*) ac_try_echo=$ac_try;;
15067
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15068
(eval "$ac_compile") 2>conftest.er1
15070
grep -v '^ *+' conftest.er1 >conftest.err
15072
cat conftest.err >&5
15073
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15074
(exit $ac_status); } && {
15075
test -z "$ac_c_werror_flag" ||
15076
test ! -s conftest.err
15077
} && test -s conftest.$ac_objext; then
15080
echo "$as_me: failed program was:" >&5
15081
sed 's/^/| /' conftest.$ac_ext >&5
15084
int64_t) ac_cv_c_int64_t=yes ;;
15085
*) ac_cv_c_int64_t=$ac_type ;;
15090
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15092
echo "$as_me: failed program was:" >&5
15093
sed 's/^/| /' conftest.$ac_ext >&5
15098
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15099
test "$ac_cv_c_int64_t" != no && break
15102
{ echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5
15103
echo "${ECHO_T}$ac_cv_c_int64_t" >&6; }
15104
case $ac_cv_c_int64_t in #(
15108
cat >>confdefs.h <<_ACEOF
15109
#define int64_t $ac_cv_c_int64_t
15114
{ echo "$as_me:$LINENO: checking for size_t" >&5
15115
echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
15116
if test "${ac_cv_type_size_t+set}" = set; then
15117
echo $ECHO_N "(cached) $ECHO_C" >&6
15119
cat >conftest.$ac_ext <<_ACEOF
15122
cat confdefs.h >>conftest.$ac_ext
15123
cat >>conftest.$ac_ext <<_ACEOF
15124
/* end confdefs.h. */
15125
$ac_includes_default
15126
typedef size_t ac__type_new_;
15130
if ((ac__type_new_ *) 0)
15132
if (sizeof (ac__type_new_))
15138
rm -f conftest.$ac_objext
15139
if { (ac_try="$ac_compile"
15140
case "(($ac_try" in
15141
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15142
*) ac_try_echo=$ac_try;;
15144
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15145
(eval "$ac_compile") 2>conftest.er1
15147
grep -v '^ *+' conftest.er1 >conftest.err
15149
cat conftest.err >&5
15150
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15151
(exit $ac_status); } && {
15152
test -z "$ac_c_werror_flag" ||
15153
test ! -s conftest.err
15154
} && test -s conftest.$ac_objext; then
15155
ac_cv_type_size_t=yes
15157
echo "$as_me: failed program was:" >&5
15158
sed 's/^/| /' conftest.$ac_ext >&5
15160
ac_cv_type_size_t=no
15163
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15165
{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
15166
echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
15167
if test $ac_cv_type_size_t = yes; then
15171
cat >>confdefs.h <<_ACEOF
15172
#define size_t unsigned int
15178
{ echo "$as_me:$LINENO: checking for uint32_t" >&5
15179
echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
15180
if test "${ac_cv_c_uint32_t+set}" = set; then
15181
echo $ECHO_N "(cached) $ECHO_C" >&6
15183
ac_cv_c_uint32_t=no
15184
for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
15185
'unsigned long long int' 'unsigned short int' 'unsigned char'; do
15186
cat >conftest.$ac_ext <<_ACEOF
15189
cat confdefs.h >>conftest.$ac_ext
15190
cat >>conftest.$ac_ext <<_ACEOF
15191
/* end confdefs.h. */
15192
$ac_includes_default
15196
static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
15203
rm -f conftest.$ac_objext
15204
if { (ac_try="$ac_compile"
15205
case "(($ac_try" in
15206
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15207
*) ac_try_echo=$ac_try;;
15209
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15210
(eval "$ac_compile") 2>conftest.er1
15212
grep -v '^ *+' conftest.er1 >conftest.err
15214
cat conftest.err >&5
15215
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15216
(exit $ac_status); } && {
15217
test -z "$ac_c_werror_flag" ||
15218
test ! -s conftest.err
15219
} && test -s conftest.$ac_objext; then
15221
uint32_t) ac_cv_c_uint32_t=yes ;;
15222
*) ac_cv_c_uint32_t=$ac_type ;;
15226
echo "$as_me: failed program was:" >&5
15227
sed 's/^/| /' conftest.$ac_ext >&5
15232
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15233
test "$ac_cv_c_uint32_t" != no && break
15236
{ echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
15237
echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; }
15238
case $ac_cv_c_uint32_t in #(
15242
cat >>confdefs.h <<\_ACEOF
15243
#define _UINT32_T 1
15247
cat >>confdefs.h <<_ACEOF
15248
#define uint32_t $ac_cv_c_uint32_t
15254
{ echo "$as_me:$LINENO: checking for uint8_t" >&5
15255
echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
15256
if test "${ac_cv_c_uint8_t+set}" = set; then
15257
echo $ECHO_N "(cached) $ECHO_C" >&6
15260
for ac_type in 'uint8_t' 'unsigned int' 'unsigned long int' \
15261
'unsigned long long int' 'unsigned short int' 'unsigned char'; do
15262
cat >conftest.$ac_ext <<_ACEOF
15265
cat confdefs.h >>conftest.$ac_ext
15266
cat >>conftest.$ac_ext <<_ACEOF
15267
/* end confdefs.h. */
15268
$ac_includes_default
15272
static int test_array [1 - 2 * !(($ac_type) -1 >> (8 - 1) == 1)];
15279
rm -f conftest.$ac_objext
15280
if { (ac_try="$ac_compile"
15281
case "(($ac_try" in
15282
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15283
*) ac_try_echo=$ac_try;;
15285
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15286
(eval "$ac_compile") 2>conftest.er1
15288
grep -v '^ *+' conftest.er1 >conftest.err
15290
cat conftest.err >&5
15291
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15292
(exit $ac_status); } && {
15293
test -z "$ac_c_werror_flag" ||
15294
test ! -s conftest.err
15295
} && test -s conftest.$ac_objext; then
15297
uint8_t) ac_cv_c_uint8_t=yes ;;
15298
*) ac_cv_c_uint8_t=$ac_type ;;
15302
echo "$as_me: failed program was:" >&5
15303
sed 's/^/| /' conftest.$ac_ext >&5
15308
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15309
test "$ac_cv_c_uint8_t" != no && break
15312
{ echo "$as_me:$LINENO: result: $ac_cv_c_uint8_t" >&5
15313
echo "${ECHO_T}$ac_cv_c_uint8_t" >&6; }
15314
case $ac_cv_c_uint8_t in #(
15318
cat >>confdefs.h <<\_ACEOF
15323
cat >>confdefs.h <<_ACEOF
15324
#define uint8_t $ac_cv_c_uint8_t
15330
# Checks for library functions.
15335
for ac_func in mkdir strcasecmp strdup strtol
15337
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15338
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
15339
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15340
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15341
echo $ECHO_N "(cached) $ECHO_C" >&6
15343
cat >conftest.$ac_ext <<_ACEOF
15346
cat confdefs.h >>conftest.$ac_ext
15347
cat >>conftest.$ac_ext <<_ACEOF
15348
/* end confdefs.h. */
15349
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15350
For example, HP-UX 11i <limits.h> declares gettimeofday. */
15351
#define $ac_func innocuous_$ac_func
15353
/* System header to define __stub macros and hopefully few prototypes,
15354
which can conflict with char $ac_func (); below.
15355
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15356
<limits.h> exists even on freestanding compilers. */
15359
# include <limits.h>
15361
# include <assert.h>
15366
/* Override any GCC internal prototype to avoid an error.
15367
Use char because int might match the return type of a GCC
15368
builtin and then its argument prototype would still apply. */
15373
/* The GNU C library defines this for functions which it implements
15374
to always fail with ENOSYS. Some functions are actually named
15375
something starting with __ and the normal name is an alias. */
15376
#if defined __stub_$ac_func || defined __stub___$ac_func
15383
return $ac_func ();
15388
rm -f conftest.$ac_objext conftest$ac_exeext
15389
if { (ac_try="$ac_link"
15390
case "(($ac_try" in
15391
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15392
*) ac_try_echo=$ac_try;;
15394
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15395
(eval "$ac_link") 2>conftest.er1
15397
grep -v '^ *+' conftest.er1 >conftest.err
15399
cat conftest.err >&5
15400
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15401
(exit $ac_status); } && {
15402
test -z "$ac_c_werror_flag" ||
15403
test ! -s conftest.err
15404
} && test -s conftest$ac_exeext &&
15405
$as_test_x conftest$ac_exeext; then
15406
eval "$as_ac_var=yes"
15408
echo "$as_me: failed program was:" >&5
15409
sed 's/^/| /' conftest.$ac_ext >&5
15411
eval "$as_ac_var=no"
15414
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15415
conftest$ac_exeext conftest.$ac_ext
15417
ac_res=`eval echo '${'$as_ac_var'}'`
15418
{ echo "$as_me:$LINENO: result: $ac_res" >&5
15419
echo "${ECHO_T}$ac_res" >&6; }
15420
if test `eval echo '${'$as_ac_var'}'` = yes; then
15421
cat >>confdefs.h <<_ACEOF
15422
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15429
# Checks for libraries.
15430
{ echo "$as_me:$LINENO: checking for library containing iconv_open" >&5
15431
echo $ECHO_N "checking for library containing iconv_open... $ECHO_C" >&6; }
15432
if test "${ac_cv_search_iconv_open+set}" = set; then
15433
echo $ECHO_N "(cached) $ECHO_C" >&6
15435
ac_func_search_save_LIBS=$LIBS
15436
cat >conftest.$ac_ext <<_ACEOF
15439
cat confdefs.h >>conftest.$ac_ext
15440
cat >>conftest.$ac_ext <<_ACEOF
15441
/* end confdefs.h. */
15443
/* Override any GCC internal prototype to avoid an error.
15444
Use char because int might match the return type of a GCC
15445
builtin and then its argument prototype would still apply. */
15449
char iconv_open ();
15453
return iconv_open ();
15458
for ac_lib in '' iconv; do
15459
if test -z "$ac_lib"; then
15460
ac_res="none required"
15463
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15465
rm -f conftest.$ac_objext conftest$ac_exeext
15466
if { (ac_try="$ac_link"
15467
case "(($ac_try" in
15468
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15469
*) ac_try_echo=$ac_try;;
15471
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15472
(eval "$ac_link") 2>conftest.er1
15474
grep -v '^ *+' conftest.er1 >conftest.err
15476
cat conftest.err >&5
15477
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15478
(exit $ac_status); } && {
15479
test -z "$ac_c_werror_flag" ||
15480
test ! -s conftest.err
15481
} && test -s conftest$ac_exeext &&
15482
$as_test_x conftest$ac_exeext; then
15483
ac_cv_search_iconv_open=$ac_res
15485
echo "$as_me: failed program was:" >&5
15486
sed 's/^/| /' conftest.$ac_ext >&5
15491
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15493
if test "${ac_cv_search_iconv_open+set}" = set; then
15497
if test "${ac_cv_search_iconv_open+set}" = set; then
15500
ac_cv_search_iconv_open=no
15502
rm conftest.$ac_ext
15503
LIBS=$ac_func_search_save_LIBS
15505
{ echo "$as_me:$LINENO: result: $ac_cv_search_iconv_open" >&5
15506
echo "${ECHO_T}$ac_cv_search_iconv_open" >&6; }
15507
ac_res=$ac_cv_search_iconv_open
15508
if test "$ac_res" != no; then
15509
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15511
cat >>confdefs.h <<\_ACEOF
15512
#define CONFIG_ICONV 1
15518
{ echo "$as_me:$LINENO: checking for fabs in -lm" >&5
15519
echo $ECHO_N "checking for fabs in -lm... $ECHO_C" >&6; }
15520
if test "${ac_cv_lib_m_fabs+set}" = set; then
15521
echo $ECHO_N "(cached) $ECHO_C" >&6
15523
ac_check_lib_save_LIBS=$LIBS
15525
cat >conftest.$ac_ext <<_ACEOF
15528
cat confdefs.h >>conftest.$ac_ext
15529
cat >>conftest.$ac_ext <<_ACEOF
15530
/* end confdefs.h. */
15532
/* Override any GCC internal prototype to avoid an error.
15533
Use char because int might match the return type of a GCC
15534
builtin and then its argument prototype would still apply. */
15547
rm -f conftest.$ac_objext conftest$ac_exeext
15548
if { (ac_try="$ac_link"
15549
case "(($ac_try" in
15550
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15551
*) ac_try_echo=$ac_try;;
15553
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15554
(eval "$ac_link") 2>conftest.er1
15556
grep -v '^ *+' conftest.er1 >conftest.err
15558
cat conftest.err >&5
15559
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15560
(exit $ac_status); } && {
15561
test -z "$ac_c_werror_flag" ||
15562
test ! -s conftest.err
15563
} && test -s conftest$ac_exeext &&
15564
$as_test_x conftest$ac_exeext; then
15565
ac_cv_lib_m_fabs=yes
15567
echo "$as_me: failed program was:" >&5
15568
sed 's/^/| /' conftest.$ac_ext >&5
15570
ac_cv_lib_m_fabs=no
15573
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15574
conftest$ac_exeext conftest.$ac_ext
15575
LIBS=$ac_check_lib_save_LIBS
15577
{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_fabs" >&5
15578
echo "${ECHO_T}$ac_cv_lib_m_fabs" >&6; }
15579
if test $ac_cv_lib_m_fabs = yes; then
15580
cat >>confdefs.h <<_ACEOF
15581
#define HAVE_LIBM 1
15589
# Check for libraries via pkg-config
15590
# Check whether --enable-png was given.
15591
if test "${enable_png+set}" = set; then
15592
enableval=$enable_png;
15595
# Check whether --enable-enca was given.
15596
if test "${enable_enca+set}" = set; then
15597
enableval=$enable_enca;
15600
# Check whether --enable-fontconfig was given.
15601
if test "${enable_fontconfig+set}" = set; then
15602
enableval=$enable_fontconfig;
15608
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
15609
if test -n "$ac_tool_prefix"; then
15610
# Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15611
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
15612
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
15613
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15614
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
15615
echo $ECHO_N "(cached) $ECHO_C" >&6
15617
case $PKG_CONFIG in
15619
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
15622
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15623
for as_dir in $PATH
15626
test -z "$as_dir" && as_dir=.
15627
for ac_exec_ext in '' $ac_executable_extensions; do
15628
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15629
ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15630
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15640
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15641
if test -n "$PKG_CONFIG"; then
15642
{ echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
15643
echo "${ECHO_T}$PKG_CONFIG" >&6; }
15645
{ echo "$as_me:$LINENO: result: no" >&5
15646
echo "${ECHO_T}no" >&6; }
15651
if test -z "$ac_cv_path_PKG_CONFIG"; then
15652
ac_pt_PKG_CONFIG=$PKG_CONFIG
15653
# Extract the first word of "pkg-config", so it can be a program name with args.
15654
set dummy pkg-config; ac_word=$2
15655
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
15656
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15657
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
15658
echo $ECHO_N "(cached) $ECHO_C" >&6
15660
case $ac_pt_PKG_CONFIG in
15662
ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
15665
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15666
for as_dir in $PATH
15669
test -z "$as_dir" && as_dir=.
15670
for ac_exec_ext in '' $ac_executable_extensions; do
15671
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15672
ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15673
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15683
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
15684
if test -n "$ac_pt_PKG_CONFIG"; then
15685
{ echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
15686
echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
15688
{ echo "$as_me:$LINENO: result: no" >&5
15689
echo "${ECHO_T}no" >&6; }
15692
if test "x$ac_pt_PKG_CONFIG" = x; then
15695
case $cross_compiling:$ac_tool_warned in
15697
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
15698
whose name does not start with the host triplet. If you think this
15699
configuration is useful to you, please write to autoconf@gnu.org." >&5
15700
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
15701
whose name does not start with the host triplet. If you think this
15702
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
15703
ac_tool_warned=yes ;;
15705
PKG_CONFIG=$ac_pt_PKG_CONFIG
15708
PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
15712
if test -n "$PKG_CONFIG"; then
15713
_pkg_min_version=0.9.0
15714
{ echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
15715
echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
15716
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
15717
{ echo "$as_me:$LINENO: result: yes" >&5
15718
echo "${ECHO_T}yes" >&6; }
15720
{ echo "$as_me:$LINENO: result: no" >&5
15721
echo "${ECHO_T}no" >&6; }
15728
{ echo "$as_me:$LINENO: checking for FREETYPE" >&5
15729
echo $ECHO_N "checking for FREETYPE... $ECHO_C" >&6; }
15731
if test -n "$PKG_CONFIG"; then
15732
if test -n "$FREETYPE_CFLAGS"; then
15733
pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
15735
if test -n "$PKG_CONFIG" && \
15736
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"freetype2 >= 9.10.3\"") >&5
15737
($PKG_CONFIG --exists --print-errors "freetype2 >= 9.10.3") 2>&5
15739
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15740
(exit $ac_status); }; then
15741
pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2 >= 9.10.3" 2>/dev/null`
15749
if test -n "$PKG_CONFIG"; then
15750
if test -n "$FREETYPE_LIBS"; then
15751
pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
15753
if test -n "$PKG_CONFIG" && \
15754
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"freetype2 >= 9.10.3\"") >&5
15755
($PKG_CONFIG --exists --print-errors "freetype2 >= 9.10.3") 2>&5
15757
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15758
(exit $ac_status); }; then
15759
pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2 >= 9.10.3" 2>/dev/null`
15770
if test $pkg_failed = yes; then
15772
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15773
_pkg_short_errors_supported=yes
15775
_pkg_short_errors_supported=no
15777
if test $_pkg_short_errors_supported = yes; then
15778
FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "freetype2 >= 9.10.3"`
15780
FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2 >= 9.10.3"`
15782
# Put the nasty error message in config.log where it belongs
15783
echo "$FREETYPE_PKG_ERRORS" >&5
15785
{ { echo "$as_me:$LINENO: error: Package requirements (freetype2 >= 9.10.3) were not met:
15787
$FREETYPE_PKG_ERRORS
15789
Consider adjusting the PKG_CONFIG_PATH environment variable if you
15790
installed software in a non-standard prefix.
15792
Alternatively, you may set the environment variables FREETYPE_CFLAGS
15793
and FREETYPE_LIBS to avoid the need to call pkg-config.
15794
See the pkg-config man page for more details.
15796
echo "$as_me: error: Package requirements (freetype2 >= 9.10.3) were not met:
15798
$FREETYPE_PKG_ERRORS
15800
Consider adjusting the PKG_CONFIG_PATH environment variable if you
15801
installed software in a non-standard prefix.
15803
Alternatively, you may set the environment variables FREETYPE_CFLAGS
15804
and FREETYPE_LIBS to avoid the need to call pkg-config.
15805
See the pkg-config man page for more details.
15807
{ (exit 1); exit 1; }; }
15808
elif test $pkg_failed = untried; then
15809
{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
15810
is in your PATH or set the PKG_CONFIG environment variable to the full
15811
path to pkg-config.
15813
Alternatively, you may set the environment variables FREETYPE_CFLAGS
15814
and FREETYPE_LIBS to avoid the need to call pkg-config.
15815
See the pkg-config man page for more details.
15817
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15818
See \`config.log' for more details." >&5
15819
echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
15820
is in your PATH or set the PKG_CONFIG environment variable to the full
15821
path to pkg-config.
15823
Alternatively, you may set the environment variables FREETYPE_CFLAGS
15824
and FREETYPE_LIBS to avoid the need to call pkg-config.
15825
See the pkg-config man page for more details.
15827
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15828
See \`config.log' for more details." >&2;}
15829
{ (exit 1); exit 1; }; }
15831
FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
15832
FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
15833
{ echo "$as_me:$LINENO: result: yes" >&5
15834
echo "${ECHO_T}yes" >&6; }
15836
CFLAGS="$CFLAGS $FREETYPE_CFLAGS"
15837
LIBS="$LIBS $FREETYPE_LIBS"
15839
cat >>confdefs.h <<\_ACEOF
15840
#define CONFIG_FREETYPE 1
15846
if test x$enable_fontconfig != xno; then
15849
{ echo "$as_me:$LINENO: checking for FONTCONFIG" >&5
15850
echo $ECHO_N "checking for FONTCONFIG... $ECHO_C" >&6; }
15852
if test -n "$PKG_CONFIG"; then
15853
if test -n "$FONTCONFIG_CFLAGS"; then
15854
pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
15856
if test -n "$PKG_CONFIG" && \
15857
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.4.2\"") >&5
15858
($PKG_CONFIG --exists --print-errors "fontconfig >= 2.4.2") 2>&5
15860
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15861
(exit $ac_status); }; then
15862
pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.4.2" 2>/dev/null`
15870
if test -n "$PKG_CONFIG"; then
15871
if test -n "$FONTCONFIG_LIBS"; then
15872
pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
15874
if test -n "$PKG_CONFIG" && \
15875
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.4.2\"") >&5
15876
($PKG_CONFIG --exists --print-errors "fontconfig >= 2.4.2") 2>&5
15878
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15879
(exit $ac_status); }; then
15880
pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.4.2" 2>/dev/null`
15891
if test $pkg_failed = yes; then
15893
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15894
_pkg_short_errors_supported=yes
15896
_pkg_short_errors_supported=no
15898
if test $_pkg_short_errors_supported = yes; then
15899
FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "fontconfig >= 2.4.2"`
15901
FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.4.2"`
15903
# Put the nasty error message in config.log where it belongs
15904
echo "$FONTCONFIG_PKG_ERRORS" >&5
15906
{ echo "$as_me:$LINENO: result: no" >&5
15907
echo "${ECHO_T}no" >&6; }
15909
elif test $pkg_failed = untried; then
15912
FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
15913
FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
15914
{ echo "$as_me:$LINENO: result: yes" >&5
15915
echo "${ECHO_T}yes" >&6; }
15917
CFLAGS="$CFLAGS $FONTCONFIG_CFLAGS"
15918
LIBS="$LIBS $FONTCONFIG_LIBS"
15920
cat >>confdefs.h <<\_ACEOF
15921
#define CONFIG_FONTCONFIG 1
15929
if test x$enable_enca != xno; then
15932
{ echo "$as_me:$LINENO: checking for ENCA" >&5
15933
echo $ECHO_N "checking for ENCA... $ECHO_C" >&6; }
15935
if test -n "$PKG_CONFIG"; then
15936
if test -n "$ENCA_CFLAGS"; then
15937
pkg_cv_ENCA_CFLAGS="$ENCA_CFLAGS"
15939
if test -n "$PKG_CONFIG" && \
15940
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"enca\"") >&5
15941
($PKG_CONFIG --exists --print-errors "enca") 2>&5
15943
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15944
(exit $ac_status); }; then
15945
pkg_cv_ENCA_CFLAGS=`$PKG_CONFIG --cflags "enca" 2>/dev/null`
15953
if test -n "$PKG_CONFIG"; then
15954
if test -n "$ENCA_LIBS"; then
15955
pkg_cv_ENCA_LIBS="$ENCA_LIBS"
15957
if test -n "$PKG_CONFIG" && \
15958
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"enca\"") >&5
15959
($PKG_CONFIG --exists --print-errors "enca") 2>&5
15961
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15962
(exit $ac_status); }; then
15963
pkg_cv_ENCA_LIBS=`$PKG_CONFIG --libs "enca" 2>/dev/null`
15974
if test $pkg_failed = yes; then
15976
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15977
_pkg_short_errors_supported=yes
15979
_pkg_short_errors_supported=no
15981
if test $_pkg_short_errors_supported = yes; then
15982
ENCA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "enca"`
15984
ENCA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "enca"`
15986
# Put the nasty error message in config.log where it belongs
15987
echo "$ENCA_PKG_ERRORS" >&5
15989
{ echo "$as_me:$LINENO: result: no" >&5
15990
echo "${ECHO_T}no" >&6; }
15992
elif test $pkg_failed = untried; then
15995
ENCA_CFLAGS=$pkg_cv_ENCA_CFLAGS
15996
ENCA_LIBS=$pkg_cv_ENCA_LIBS
15997
{ echo "$as_me:$LINENO: result: yes" >&5
15998
echo "${ECHO_T}yes" >&6; }
16000
CFLAGS="$CFLAGS $ENCA_CFLAGS"
16001
LIBS="$LIBS $ENCA_LIBS"
16003
cat >>confdefs.h <<\_ACEOF
16004
#define CONFIG_ENCA 1
16013
if test x$enable_png = xyes; then
16016
{ echo "$as_me:$LINENO: checking for LIBPNG" >&5
16017
echo $ECHO_N "checking for LIBPNG... $ECHO_C" >&6; }
16019
if test -n "$PKG_CONFIG"; then
16020
if test -n "$LIBPNG_CFLAGS"; then
16021
pkg_cv_LIBPNG_CFLAGS="$LIBPNG_CFLAGS"
16023
if test -n "$PKG_CONFIG" && \
16024
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng >= 1.2.0\"") >&5
16025
($PKG_CONFIG --exists --print-errors "libpng >= 1.2.0") 2>&5
16027
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16028
(exit $ac_status); }; then
16029
pkg_cv_LIBPNG_CFLAGS=`$PKG_CONFIG --cflags "libpng >= 1.2.0" 2>/dev/null`
16037
if test -n "$PKG_CONFIG"; then
16038
if test -n "$LIBPNG_LIBS"; then
16039
pkg_cv_LIBPNG_LIBS="$LIBPNG_LIBS"
16041
if test -n "$PKG_CONFIG" && \
16042
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng >= 1.2.0\"") >&5
16043
($PKG_CONFIG --exists --print-errors "libpng >= 1.2.0") 2>&5
16045
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16046
(exit $ac_status); }; then
16047
pkg_cv_LIBPNG_LIBS=`$PKG_CONFIG --libs "libpng >= 1.2.0" 2>/dev/null`
16058
if test $pkg_failed = yes; then
16060
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16061
_pkg_short_errors_supported=yes
16063
_pkg_short_errors_supported=no
16065
if test $_pkg_short_errors_supported = yes; then
16066
LIBPNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libpng >= 1.2.0"`
16068
LIBPNG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libpng >= 1.2.0"`
16070
# Put the nasty error message in config.log where it belongs
16071
echo "$LIBPNG_PKG_ERRORS" >&5
16073
{ { echo "$as_me:$LINENO: error: Package requirements (libpng >= 1.2.0) were not met:
16077
Consider adjusting the PKG_CONFIG_PATH environment variable if you
16078
installed software in a non-standard prefix.
16080
Alternatively, you may set the environment variables LIBPNG_CFLAGS
16081
and LIBPNG_LIBS to avoid the need to call pkg-config.
16082
See the pkg-config man page for more details.
16084
echo "$as_me: error: Package requirements (libpng >= 1.2.0) were not met:
16088
Consider adjusting the PKG_CONFIG_PATH environment variable if you
16089
installed software in a non-standard prefix.
16091
Alternatively, you may set the environment variables LIBPNG_CFLAGS
16092
and LIBPNG_LIBS to avoid the need to call pkg-config.
16093
See the pkg-config man page for more details.
16095
{ (exit 1); exit 1; }; }
16096
elif test $pkg_failed = untried; then
16097
{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
16098
is in your PATH or set the PKG_CONFIG environment variable to the full
16099
path to pkg-config.
16101
Alternatively, you may set the environment variables LIBPNG_CFLAGS
16102
and LIBPNG_LIBS to avoid the need to call pkg-config.
16103
See the pkg-config man page for more details.
16105
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16106
See \`config.log' for more details." >&5
16107
echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
16108
is in your PATH or set the PKG_CONFIG environment variable to the full
16109
path to pkg-config.
16111
Alternatively, you may set the environment variables LIBPNG_CFLAGS
16112
and LIBPNG_LIBS to avoid the need to call pkg-config.
16113
See the pkg-config man page for more details.
16115
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16116
See \`config.log' for more details." >&2;}
16117
{ (exit 1); exit 1; }; }
16119
LIBPNG_CFLAGS=$pkg_cv_LIBPNG_CFLAGS
16120
LIBPNG_LIBS=$pkg_cv_LIBPNG_LIBS
16121
{ echo "$as_me:$LINENO: result: yes" >&5
16122
echo "${ECHO_T}yes" >&6; }
16124
CFLAGS="$CFLAGS $LIBPNG_CFLAGS"
16125
LIBS="$LIBS $LIBPNG_LIBS"
16127
cat >>confdefs.h <<\_ACEOF
16128
#define CONFIG_LIBPNG 1
16136
if test x$libpng = xtrue; then
16138
HAVE_LIBPNG_FALSE='#'
16140
HAVE_LIBPNG_TRUE='#'
16145
# Add dependent libraries to pkg-config for static linking
16146
PKG_REQUIRES="freetype2 >= 9.6.3"
16147
if test x$enca = xtrue; then
16148
PKG_REQUIRES="enca, ${PKG_REQUIRES}"
16150
if test x$fontconfig = xtrue; then
16151
PKG_REQUIRES="fontconfig >= 2.2.0, ${PKG_REQUIRES}"
16155
# Setup output beautifier.
16158
# Check whether --enable-shave was given.
16159
if test "${enable_shave+set}" = set; then
16160
enableval=$enable_shave;
16168
if test x"$enable_shave" = xyes; then
16169
shavedir="$ac_pwd/shave"
16174
AM_MAKEFLAGS='`test -z $V && echo -s`'
16177
# Extract the first word of "sed", so it can be a program name with args.
16178
set dummy sed; ac_word=$2
16179
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
16180
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16181
if test "${ac_cv_prog_SED+set}" = set; then
16182
echo $ECHO_N "(cached) $ECHO_C" >&6
16184
if test -n "$SED"; then
16185
ac_cv_prog_SED="$SED" # Let the user override the test.
16187
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16188
for as_dir in $PATH
16191
test -z "$as_dir" && as_dir=.
16192
for ac_exec_ext in '' $ac_executable_extensions; do
16193
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16194
ac_cv_prog_SED="sed"
16195
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16202
test -z "$ac_cv_prog_SED" && ac_cv_prog_SED="false"
16205
SED=$ac_cv_prog_SED
16206
if test -n "$SED"; then
16207
{ echo "$as_me:$LINENO: result: $SED" >&5
16208
echo "${ECHO_T}$SED" >&6; }
16210
{ echo "$as_me:$LINENO: result: no" >&5
16211
echo "${ECHO_T}no" >&6; }
16216
SHAVE_SAVED_LIBTOOL=$LIBTOOL
16217
LIBTOOL="${SHELL} ${shavedir}/shave-libtool '${SHAVE_SAVED_LIBTOOL}'"
16221
SHAVE_SAVED_CXX=$CXX
16223
SHAVE_SAVED_F77=$F77
16224
SHAVE_SAVED_OBJC=$OBJC
16225
SHAVE_SAVED_MCS=$MCS
16226
CC="${SHELL} ${shavedir}/shave cc ${SHAVE_SAVED_CC}"
16227
CXX="${SHELL} ${shavedir}/shave cxx ${SHAVE_SAVED_CXX}"
16228
FC="${SHELL} ${shavedir}/shave fc ${SHAVE_SAVED_FC}"
16229
F77="${SHELL} ${shavedir}/shave f77 ${SHAVE_SAVED_F77}"
16230
OBJC="${SHELL} ${shavedir}/shave objc ${SHAVE_SAVED_OBJC}"
16231
MCS="${SHELL} ${shavedir}/shave mcs ${SHAVE_SAVED_MCS}"
16248
# More sensible compile flags
16249
CFLAGS="$CFLAGS -Wall"
16251
ac_config_files="$ac_config_files Makefile libass/Makefile test/Makefile libass.pc shave/shave shave/shave-libtool"
16253
cat >confcache <<\_ACEOF
16254
# This file is a shell script that caches the results of configure
16255
# tests run on this system so they can be shared between configure
16256
# scripts and configure runs, see configure's option --config-cache.
16257
# It is not useful on other systems. If it contains results you don't
16258
# want to keep, you may remove or edit it.
16260
# config.status only pays attention to the cache file if you give it
16261
# the --recheck option to rerun configure.
16263
# `ac_cv_env_foo' variables (set or unset) will be overridden when
16264
# loading this file, other *unset* `ac_cv_foo' will be assigned the
16265
# following values.
16269
# The following way of writing the cache mishandles newlines in values,
16270
# but we know of no workaround that is simple, portable, and efficient.
16271
# So, we kill variables containing newlines.
16272
# Ultrix sh set writes to stderr and can't be redirected directly,
16273
# and sets the high bit in the cache file unless we assign to the vars.
16275
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16276
eval ac_val=\$$ac_var
16280
*_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
16281
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
16284
_ | IFS | as_nl) ;; #(
16285
*) $as_unset $ac_var ;;
16291
case $as_nl`(ac_space=' '; set) 2>&1` in #(
16292
*${as_nl}ac_space=\ *)
16293
# `set' does not quote correctly, so add quotes (double-quote
16294
# substitution turns \\\\ into \\, and sed turns \\ into \).
16297
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16300
# `set' quotes correctly as required by POSIX, so do not add quotes.
16301
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16310
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16312
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16314
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16315
if test -w "$cache_file"; then
16316
test "x$cache_file" != "x/dev/null" &&
16317
{ echo "$as_me:$LINENO: updating cache $cache_file" >&5
16318
echo "$as_me: updating cache $cache_file" >&6;}
16319
cat confcache >$cache_file
16321
{ echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
16322
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16327
test "x$prefix" = xNONE && prefix=$ac_default_prefix
16328
# Let make expand exec_prefix.
16329
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16331
DEFS=-DHAVE_CONFIG_H
16335
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16336
# 1. Remove the extension, and $U if already installed.
16337
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16338
ac_i=`echo "$ac_i" | sed "$ac_script"`
16339
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16340
# will be set to the directory where LIBOBJS objects are built.
16341
ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16342
ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
16344
LIBOBJS=$ac_libobjs
16346
LTLIBOBJS=$ac_ltlibobjs
16349
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16350
{ { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
16351
Usually this means the macro was only invoked conditionally." >&5
16352
echo "$as_me: error: conditional \"AMDEP\" was never defined.
16353
Usually this means the macro was only invoked conditionally." >&2;}
16354
{ (exit 1); exit 1; }; }
16356
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16357
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
16358
Usually this means the macro was only invoked conditionally." >&5
16359
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
16360
Usually this means the macro was only invoked conditionally." >&2;}
16361
{ (exit 1); exit 1; }; }
16363
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16364
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
16365
Usually this means the macro was only invoked conditionally." >&5
16366
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
16367
Usually this means the macro was only invoked conditionally." >&2;}
16368
{ (exit 1); exit 1; }; }
16370
if test -z "${HAVE_LIBPNG_TRUE}" && test -z "${HAVE_LIBPNG_FALSE}"; then
16371
{ { echo "$as_me:$LINENO: error: conditional \"HAVE_LIBPNG\" was never defined.
16372
Usually this means the macro was only invoked conditionally." >&5
16373
echo "$as_me: error: conditional \"HAVE_LIBPNG\" was never defined.
16374
Usually this means the macro was only invoked conditionally." >&2;}
16375
{ (exit 1); exit 1; }; }
16378
: ${CONFIG_STATUS=./config.status}
16379
ac_clean_files_save=$ac_clean_files
16380
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16381
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16382
echo "$as_me: creating $CONFIG_STATUS" >&6;}
16383
cat >$CONFIG_STATUS <<_ACEOF
16385
# Generated by $as_me.
16386
# Run this file to recreate the current configuration.
16387
# Compiler output produced by configure, useful for debugging
16388
# configure, is in config.log if it exists.
16391
ac_cs_recheck=false
16393
SHELL=\${CONFIG_SHELL-$SHELL}
16396
cat >>$CONFIG_STATUS <<\_ACEOF
16397
## --------------------- ##
16398
## M4sh Initialization. ##
16399
## --------------------- ##
16401
# Be more Bourne compatible
16402
DUALCASE=1; export DUALCASE # for MKS sh
16403
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16406
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16407
# is contrary to our usage. Disable this feature.
16408
alias -g '${1+"$@"}'='"$@"'
16409
setopt NO_GLOB_SUBST
16411
case `(set -o) 2>/dev/null` in
16412
*posix*) set -o posix ;;
16421
# Avoid depending upon Character Ranges.
16422
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16423
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16424
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16425
as_cr_digits='0123456789'
16426
as_cr_alnum=$as_cr_Letters$as_cr_digits
16428
# The user is always right.
16429
if test "${PATH_SEPARATOR+set}" != set; then
16430
echo "#! /bin/sh" >conf$$.sh
16431
echo "exit 0" >>conf$$.sh
16433
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16441
# Support unset when possible.
16442
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16450
# We need space, tab and new line, in precisely that order. Quoting is
16451
# there to prevent editors from complaining about space-tab.
16452
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
16453
# splitting by setting IFS to empty value.)
16458
# Find who we are. Look in the path if we contain no directory separator.
16460
*[\\/]* ) as_myself=$0 ;;
16461
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16462
for as_dir in $PATH
16465
test -z "$as_dir" && as_dir=.
16466
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16472
# We did not find ourselves, most probably we were run as `sh COMMAND'
16473
# in which case we are not to be found in the path.
16474
if test "x$as_myself" = x; then
16477
if test ! -f "$as_myself"; then
16478
echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16479
{ (exit 1); exit 1; }
16482
# Work around bugs in pre-3.0 UWIN ksh.
16483
for as_var in ENV MAIL MAILPATH
16484
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
16492
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16493
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16494
LC_TELEPHONE LC_TIME
16496
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16497
eval $as_var=C; export $as_var
16499
($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
16503
# Required to use basename.
16504
if expr a : '\(a\)' >/dev/null 2>&1 &&
16505
test "X`expr 00001 : '.*\(...\)'`" = X001; then
16511
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16512
as_basename=basename
16518
# Name of the executable.
16519
as_me=`$as_basename -- "$0" ||
16520
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16521
X"$0" : 'X\(//\)$' \| \
16522
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16524
sed '/^.*\/\([^/][^/]*\)\/*$/{
16543
as_lineno_1=$LINENO
16544
as_lineno_2=$LINENO
16545
test "x$as_lineno_1" != "x$as_lineno_2" &&
16546
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
16548
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16549
# uniformly replaced by the line number. The first 'sed' inserts a
16550
# line-number line after each line using $LINENO; the second 'sed'
16551
# does the real work. The second script uses 'N' to pair each
16552
# line-number line with the line containing $LINENO, and appends
16553
# trailing '-' during substitution so that $LINENO is not a special
16554
# case at line end.
16555
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16556
# scripts with optimization help from Paolo Bonzini. Blame Lee
16557
# E. McMahon (1931-1989) for sed's syntax. :-)
16569
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
16572
' >$as_me.lineno &&
16573
chmod +x "$as_me.lineno" ||
16574
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
16575
{ (exit 1); exit 1; }; }
16577
# Don't try to exec as it changes $[0], causing all sort of problems
16578
# (the dirname of $[0] is not the place where we might find the
16579
# original and so on. Autoconf is especially sensitive to this).
16580
. "./$as_me.lineno"
16581
# Exit status is that of the last command.
16586
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16592
ECHO_C= ECHO_N= ECHO_T=
16593
case `echo -n x` in
16595
case `echo 'x\c'` in
16596
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
16603
if expr a : '\(a\)' >/dev/null 2>&1 &&
16604
test "X`expr 00001 : '.*\(...\)'`" = X001; then
16610
rm -f conf$$ conf$$.exe conf$$.file
16611
if test -d conf$$.dir; then
16612
rm -f conf$$.dir/conf$$.file
16618
if ln -s conf$$.file conf$$ 2>/dev/null; then
16620
# ... but there are two gotchas:
16621
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16622
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16623
# In both cases, we have to default to `cp -p'.
16624
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16626
elif ln conf$$.file conf$$ 2>/dev/null; then
16631
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16632
rmdir conf$$.dir 2>/dev/null
16634
if mkdir -p . 2>/dev/null; then
16637
test -d ./-p && rmdir ./-p
16641
if test -x / >/dev/null 2>&1; then
16642
as_test_x='test -x'
16644
if ls -dL / >/dev/null 2>&1; then
16651
if test -d "$1"; then
16657
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
16658
???[sx]*):;;*)false;;esac;fi
16662
as_executable_p=$as_test_x
16664
# Sed expression to map a string onto a valid CPP name.
16665
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16667
# Sed expression to map a string onto a valid variable name.
16668
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16673
# Save the log message, to keep $[0] and so on meaningful, and to
16674
# report actual input values of CONFIG_FILES etc. instead of their
16675
# values after options handling.
16677
This file was extended by libass $as_me 0.9.9, which was
16678
generated by GNU Autoconf 2.61. Invocation command line was
16680
CONFIG_FILES = $CONFIG_FILES
16681
CONFIG_HEADERS = $CONFIG_HEADERS
16682
CONFIG_LINKS = $CONFIG_LINKS
16683
CONFIG_COMMANDS = $CONFIG_COMMANDS
16686
on `(hostname || uname -n) 2>/dev/null | sed 1q`
16691
cat >>$CONFIG_STATUS <<_ACEOF
16692
# Files that config.status was made for.
16693
config_files="$ac_config_files"
16694
config_headers="$ac_config_headers"
16695
config_commands="$ac_config_commands"
16699
cat >>$CONFIG_STATUS <<\_ACEOF
16701
\`$as_me' instantiates files from templates according to the
16702
current configuration.
16704
Usage: $0 [OPTIONS] [FILE]...
16706
-h, --help print this help, then exit
16707
-V, --version print version number and configuration settings, then exit
16708
-q, --quiet do not print progress messages
16709
-d, --debug don't remove temporary files
16710
--recheck update $as_me by reconfiguring in the same conditions
16711
--file=FILE[:TEMPLATE]
16712
instantiate the configuration file FILE
16713
--header=FILE[:TEMPLATE]
16714
instantiate the configuration header FILE
16716
Configuration files:
16719
Configuration headers:
16722
Configuration commands:
16725
Report bugs to <bug-autoconf@gnu.org>."
16728
cat >>$CONFIG_STATUS <<_ACEOF
16730
libass config.status 0.9.9
16731
configured by $0, generated by GNU Autoconf 2.61,
16732
with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16734
Copyright (C) 2006 Free Software Foundation, Inc.
16735
This config.status script is free software; the Free Software Foundation
16736
gives unlimited permission to copy, distribute and modify it."
16744
cat >>$CONFIG_STATUS <<\_ACEOF
16745
# If no file are specified by the user, then we need to provide default
16746
# value. By we need to know if files were specified by the user.
16752
ac_option=`expr "X$1" : 'X\([^=]*\)='`
16753
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16764
# Handling of the options.
16765
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16767
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16768
echo "$ac_cs_version"; exit ;;
16769
--debug | --debu | --deb | --de | --d | -d )
16771
--file | --fil | --fi | --f )
16773
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
16774
ac_need_defaults=false;;
16775
--header | --heade | --head | --hea )
16777
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
16778
ac_need_defaults=false;;
16780
# Conflict between --help and --header
16781
{ echo "$as_me: error: ambiguous option: $1
16782
Try \`$0 --help' for more information." >&2
16783
{ (exit 1); exit 1; }; };;
16784
--help | --hel | -h )
16785
echo "$ac_cs_usage"; exit ;;
16786
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
16787
| -silent | --silent | --silen | --sile | --sil | --si | --s)
16790
# This is an error.
16791
-*) { echo "$as_me: error: unrecognized option: $1
16792
Try \`$0 --help' for more information." >&2
16793
{ (exit 1); exit 1; }; } ;;
16795
*) ac_config_targets="$ac_config_targets $1"
16796
ac_need_defaults=false ;;
16802
ac_configure_extra_args=
16804
if $ac_cs_silent; then
16806
ac_configure_extra_args="$ac_configure_extra_args --silent"
16810
cat >>$CONFIG_STATUS <<_ACEOF
16811
if \$ac_cs_recheck; then
16812
echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16813
CONFIG_SHELL=$SHELL
16814
export CONFIG_SHELL
16815
exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16819
cat >>$CONFIG_STATUS <<\_ACEOF
16823
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16824
## Running $as_me. ##
16830
cat >>$CONFIG_STATUS <<_ACEOF
16834
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16838
cat >>$CONFIG_STATUS <<\_ACEOF
16840
# Handling of arguments.
16841
for ac_config_target in $ac_config_targets
16843
case $ac_config_target in
16844
"depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16845
"config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16846
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16847
"libass/Makefile") CONFIG_FILES="$CONFIG_FILES libass/Makefile" ;;
16848
"test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
16849
"libass.pc") CONFIG_FILES="$CONFIG_FILES libass.pc" ;;
16850
"shave/shave") CONFIG_FILES="$CONFIG_FILES shave/shave" ;;
16851
"shave/shave-libtool") CONFIG_FILES="$CONFIG_FILES shave/shave-libtool" ;;
16853
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16854
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16855
{ (exit 1); exit 1; }; };;
16860
# If the user did not use the arguments to specify the items to instantiate,
16861
# then the envvar interface is used. Set only those that are not.
16862
# We use the long form for the default assignment because of an extremely
16863
# bizarre bug on SunOS 4.1.3.
16864
if $ac_need_defaults; then
16865
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16866
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16867
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16870
# Have a temporary directory for convenience. Make it in the build tree
16871
# simply because there is no reason against having it here, and in addition,
16872
# creating and moving files from /tmp can sometimes cause problems.
16873
# Hook for its removal unless debugging.
16874
# Note that there is a small window in which the directory will not be cleaned:
16875
# after its creation but before its name has been assigned to `$tmp'.
16879
trap 'exit_status=$?
16880
{ test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16882
trap '{ (exit 1); exit 1; }' 1 2 13 15
16884
# Create a (secure) tmp directory for tmp files.
16887
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16888
test -n "$tmp" && test -d "$tmp"
16891
tmp=./conf$$-$RANDOM
16892
(umask 077 && mkdir "$tmp")
16895
echo "$me: cannot create a temporary directory in ." >&2
16896
{ (exit 1); exit 1; }
16900
# Set up the sed scripts for CONFIG_FILES section.
16903
# No need to generate the scripts if there are no CONFIG_FILES.
16904
# This happens for instance when ./config.status config.h
16905
if test -n "$CONFIG_FILES"; then
16912
for ac_last_try in false false false false false :; do
16913
cat >conf$$subs.sed <<_ACEOF
16914
SHELL!$SHELL$ac_delim
16915
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
16916
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
16917
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
16918
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
16919
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
16920
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
16921
exec_prefix!$exec_prefix$ac_delim
16922
prefix!$prefix$ac_delim
16923
program_transform_name!$program_transform_name$ac_delim
16924
bindir!$bindir$ac_delim
16925
sbindir!$sbindir$ac_delim
16926
libexecdir!$libexecdir$ac_delim
16927
datarootdir!$datarootdir$ac_delim
16928
datadir!$datadir$ac_delim
16929
sysconfdir!$sysconfdir$ac_delim
16930
sharedstatedir!$sharedstatedir$ac_delim
16931
localstatedir!$localstatedir$ac_delim
16932
includedir!$includedir$ac_delim
16933
oldincludedir!$oldincludedir$ac_delim
16934
docdir!$docdir$ac_delim
16935
infodir!$infodir$ac_delim
16936
htmldir!$htmldir$ac_delim
16937
dvidir!$dvidir$ac_delim
16938
pdfdir!$pdfdir$ac_delim
16939
psdir!$psdir$ac_delim
16940
libdir!$libdir$ac_delim
16941
localedir!$localedir$ac_delim
16942
mandir!$mandir$ac_delim
16943
DEFS!$DEFS$ac_delim
16944
ECHO_C!$ECHO_C$ac_delim
16945
ECHO_N!$ECHO_N$ac_delim
16946
ECHO_T!$ECHO_T$ac_delim
16947
LIBS!$LIBS$ac_delim
16948
build_alias!$build_alias$ac_delim
16949
host_alias!$host_alias$ac_delim
16950
target_alias!$target_alias$ac_delim
16951
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
16952
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
16953
INSTALL_DATA!$INSTALL_DATA$ac_delim
16954
am__isrc!$am__isrc$ac_delim
16955
CYGPATH_W!$CYGPATH_W$ac_delim
16956
PACKAGE!$PACKAGE$ac_delim
16957
VERSION!$VERSION$ac_delim
16958
ACLOCAL!$ACLOCAL$ac_delim
16959
AUTOCONF!$AUTOCONF$ac_delim
16960
AUTOMAKE!$AUTOMAKE$ac_delim
16961
AUTOHEADER!$AUTOHEADER$ac_delim
16962
MAKEINFO!$MAKEINFO$ac_delim
16963
install_sh!$install_sh$ac_delim
16964
STRIP!$STRIP$ac_delim
16965
INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
16966
mkdir_p!$mkdir_p$ac_delim
16968
SET_MAKE!$SET_MAKE$ac_delim
16969
am__leading_dot!$am__leading_dot$ac_delim
16970
AMTAR!$AMTAR$ac_delim
16971
am__tar!$am__tar$ac_delim
16972
am__untar!$am__untar$ac_delim
16973
build!$build$ac_delim
16974
build_cpu!$build_cpu$ac_delim
16975
build_vendor!$build_vendor$ac_delim
16976
build_os!$build_os$ac_delim
16977
host!$host$ac_delim
16978
host_cpu!$host_cpu$ac_delim
16979
host_vendor!$host_vendor$ac_delim
16980
host_os!$host_os$ac_delim
16982
CFLAGS!$CFLAGS$ac_delim
16983
LDFLAGS!$LDFLAGS$ac_delim
16984
CPPFLAGS!$CPPFLAGS$ac_delim
16985
ac_ct_CC!$ac_ct_CC$ac_delim
16986
EXEEXT!$EXEEXT$ac_delim
16987
OBJEXT!$OBJEXT$ac_delim
16988
DEPDIR!$DEPDIR$ac_delim
16989
am__include!$am__include$ac_delim
16990
am__quote!$am__quote$ac_delim
16991
AMDEP_TRUE!$AMDEP_TRUE$ac_delim
16992
AMDEP_FALSE!$AMDEP_FALSE$ac_delim
16993
AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
16994
CCDEPMODE!$CCDEPMODE$ac_delim
16995
am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
16996
am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
16998
GREP!$GREP$ac_delim
16999
EGREP!$EGREP$ac_delim
17000
LN_S!$LN_S$ac_delim
17001
ECHO!$ECHO$ac_delim
17003
RANLIB!$RANLIB$ac_delim
17004
DSYMUTIL!$DSYMUTIL$ac_delim
17005
NMEDIT!$NMEDIT$ac_delim
17007
LIBTOOL!$LIBTOOL$ac_delim
17008
PKG_CONFIG!$PKG_CONFIG$ac_delim
17009
FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
17010
FREETYPE_LIBS!$FREETYPE_LIBS$ac_delim
17013
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
17015
elif $ac_last_try; then
17016
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17017
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17018
{ (exit 1); exit 1; }; }
17020
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17024
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
17025
if test -n "$ac_eof"; then
17026
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
17027
ac_eof=`expr $ac_eof + 1`
17030
cat >>$CONFIG_STATUS <<_ACEOF
17031
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
17032
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17035
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
17036
s/^/s,@/; s/!/@,|#_!!_#|/
17039
s/'"$ac_delim"'$/,g/; t
17041
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
17042
' >>$CONFIG_STATUS <conf$$subs.sed
17043
rm -f conf$$subs.sed
17044
cat >>$CONFIG_STATUS <<_ACEOF
17050
for ac_last_try in false false false false false :; do
17051
cat >conf$$subs.sed <<_ACEOF
17052
FONTCONFIG_CFLAGS!$FONTCONFIG_CFLAGS$ac_delim
17053
FONTCONFIG_LIBS!$FONTCONFIG_LIBS$ac_delim
17054
ENCA_CFLAGS!$ENCA_CFLAGS$ac_delim
17055
ENCA_LIBS!$ENCA_LIBS$ac_delim
17056
LIBPNG_CFLAGS!$LIBPNG_CFLAGS$ac_delim
17057
LIBPNG_LIBS!$LIBPNG_LIBS$ac_delim
17058
HAVE_LIBPNG_TRUE!$HAVE_LIBPNG_TRUE$ac_delim
17059
HAVE_LIBPNG_FALSE!$HAVE_LIBPNG_FALSE$ac_delim
17060
PKG_REQUIRES!$PKG_REQUIRES$ac_delim
17061
shavedir!$shavedir$ac_delim
17062
MAKEFLAGS!$MAKEFLAGS$ac_delim
17063
AM_MAKEFLAGS!$AM_MAKEFLAGS$ac_delim
17067
OBJC!$OBJC$ac_delim
17071
LIBOBJS!$LIBOBJS$ac_delim
17072
LTLIBOBJS!$LTLIBOBJS$ac_delim
17075
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 21; then
17077
elif $ac_last_try; then
17078
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17079
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17080
{ (exit 1); exit 1; }; }
17082
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17086
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
17087
if test -n "$ac_eof"; then
17088
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
17089
ac_eof=`expr $ac_eof + 1`
17092
cat >>$CONFIG_STATUS <<_ACEOF
17093
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
17094
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
17097
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
17098
s/^/s,@/; s/!/@,|#_!!_#|/
17101
s/'"$ac_delim"'$/,g/; t
17103
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
17104
' >>$CONFIG_STATUS <conf$$subs.sed
17105
rm -f conf$$subs.sed
17106
cat >>$CONFIG_STATUS <<_ACEOF
17113
# VPATH may cause trouble with some makes, so we remove $(srcdir),
17114
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17115
# trailing colons and then remove the whole line if VPATH becomes empty
17116
# (actually we leave an empty line to preserve line numbers).
17117
if test "x$srcdir" = x.; then
17118
ac_vpsub='/^[ ]*VPATH[ ]*=/{
17119
s/:*\$(srcdir):*/:/
17120
s/:*\${srcdir}:*/:/
17122
s/^\([^=]*=[ ]*\):*/\1/
17128
cat >>$CONFIG_STATUS <<\_ACEOF
17129
fi # test -n "$CONFIG_FILES"
17132
for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
17135
:[FHLC]) ac_mode=$ac_tag; continue;;
17137
case $ac_mode$ac_tag in
17139
:L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
17140
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
17141
{ (exit 1); exit 1; }; };;
17142
:[FH]-) ac_tag=-:-;;
17143
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17160
-) ac_f="$tmp/stdin";;
17161
*) # Look for the file first in the build tree, then in the source tree
17162
# (if the path is not absolute). The absolute path cannot be DOS-style,
17163
# because $ac_f cannot contain `:'.
17167
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17169
{ { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
17170
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
17171
{ (exit 1); exit 1; }; };;
17173
ac_file_inputs="$ac_file_inputs $ac_f"
17176
# Let's still pretend it is `configure' which instantiates (i.e., don't
17177
# use $as_me), people would be surprised to read:
17178
# /* config.h. Generated by config.status. */
17179
configure_input="Generated from "`IFS=:
17180
echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
17181
if test x"$ac_file" != x-; then
17182
configure_input="$ac_file. $configure_input"
17183
{ echo "$as_me:$LINENO: creating $ac_file" >&5
17184
echo "$as_me: creating $ac_file" >&6;}
17188
*:-:* | *:-) cat >"$tmp/stdin";;
17193
ac_dir=`$as_dirname -- "$ac_file" ||
17194
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17195
X"$ac_file" : 'X\(//\)[^/]' \| \
17196
X"$ac_file" : 'X\(//\)$' \| \
17197
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17199
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17203
/^X\(\/\/\)[^/].*/{
17218
-*) as_dir=./$as_dir;;
17220
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
17224
*\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
17225
*) as_qdir=$as_dir;;
17227
as_dirs="'$as_qdir' $as_dirs"
17228
as_dir=`$as_dirname -- "$as_dir" ||
17229
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17230
X"$as_dir" : 'X\(//\)[^/]' \| \
17231
X"$as_dir" : 'X\(//\)$' \| \
17232
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17234
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17238
/^X\(\/\/\)[^/].*/{
17251
test -d "$as_dir" && break
17253
test -z "$as_dirs" || eval "mkdir $as_dirs"
17254
} || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
17255
echo "$as_me: error: cannot create directory $as_dir" >&2;}
17256
{ (exit 1); exit 1; }; }; }
17260
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17262
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17263
# A ".." for each directory in $ac_dir_suffix.
17264
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
17265
case $ac_top_builddir_sub in
17266
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17267
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17270
ac_abs_top_builddir=$ac_pwd
17271
ac_abs_builddir=$ac_pwd$ac_dir_suffix
17272
# for backward compatibility:
17273
ac_top_builddir=$ac_top_build_prefix
17276
.) # We are building in place.
17278
ac_top_srcdir=$ac_top_builddir_sub
17279
ac_abs_top_srcdir=$ac_pwd ;;
17280
[\\/]* | ?:[\\/]* ) # Absolute name.
17281
ac_srcdir=$srcdir$ac_dir_suffix;
17282
ac_top_srcdir=$srcdir
17283
ac_abs_top_srcdir=$srcdir ;;
17284
*) # Relative name.
17285
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17286
ac_top_srcdir=$ac_top_build_prefix$srcdir
17287
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17289
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17299
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17300
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17302
ac_MKDIR_P=$MKDIR_P
17304
[\\/$]* | ?:[\\/]* ) ;;
17305
*/*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17309
cat >>$CONFIG_STATUS <<\_ACEOF
17310
# If the template does not know about datarootdir, expand it.
17311
# FIXME: This hack should be removed a few years after 2.60.
17312
ac_datarootdir_hack=; ac_datarootdir_seen=
17314
case `sed -n '/datarootdir/ {
17323
' $ac_file_inputs` in
17324
*datarootdir*) ac_datarootdir_seen=yes;;
17325
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17326
{ echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17327
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17329
cat >>$CONFIG_STATUS <<_ACEOF
17330
ac_datarootdir_hack='
17331
s&@datadir@&$datadir&g
17332
s&@docdir@&$docdir&g
17333
s&@infodir@&$infodir&g
17334
s&@localedir@&$localedir&g
17335
s&@mandir@&$mandir&g
17336
s&\\\${datarootdir}&$datarootdir&g' ;;
17340
# Neutralize VPATH when `$srcdir' = `.'.
17341
# Shell code in configure.ac might set extrasub.
17342
# FIXME: do we really want to maintain this feature?
17343
cat >>$CONFIG_STATUS <<_ACEOF
17347
cat >>$CONFIG_STATUS <<\_ACEOF
17349
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17350
s&@configure_input@&$configure_input&;t t
17351
s&@top_builddir@&$ac_top_builddir_sub&;t t
17352
s&@srcdir@&$ac_srcdir&;t t
17353
s&@abs_srcdir@&$ac_abs_srcdir&;t t
17354
s&@top_srcdir@&$ac_top_srcdir&;t t
17355
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17356
s&@builddir@&$ac_builddir&;t t
17357
s&@abs_builddir@&$ac_abs_builddir&;t t
17358
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17359
s&@INSTALL@&$ac_INSTALL&;t t
17360
s&@MKDIR_P@&$ac_MKDIR_P&;t t
17361
$ac_datarootdir_hack
17362
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
17364
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17365
{ ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17366
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17367
{ echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17368
which seems to be undefined. Please make sure it is defined." >&5
17369
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17370
which seems to be undefined. Please make sure it is defined." >&2;}
17374
-) cat "$tmp/out"; rm -f "$tmp/out";;
17375
*) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
17384
# Transform confdefs.h into a sed script `conftest.defines', that
17385
# substitutes the proper values into config.h.in to produce config.h.
17386
rm -f conftest.defines conftest.tail
17387
# First, append a space to every undef/define line, to ease matching.
17388
echo 's/$/ /' >conftest.defines
17389
# Then, protect against being on the right side of a sed subst, or in
17390
# an unquoted here document, in config.status. If some macros were
17391
# called several times there might be several #defines for the same
17392
# symbol, which is useless. But do not sort them, since the last
17393
# AC_DEFINE must be honored.
17394
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17395
# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
17396
# NAME is the cpp macro being defined, VALUE is the value it is being given.
17397
# PARAMS is the parameter list in the macro definition--in most cases, it's
17398
# just an empty string.
17399
ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
17400
ac_dB='\\)[ (].*,\\1define\\2'
17408
s/^[ ]*#[ ]*define[ ][ ]*//
17413
s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
17414
s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
17415
' >>conftest.defines
17417
# Remove the space that was appended to ease matching.
17418
# Then replace #undef with comments. This is necessary, for
17419
# example, in the case of _POSIX_SOURCE, which is predefined and required
17420
# on some systems where configure will not decide to define it.
17421
# (The regexp can be short, since the line contains either #define or #undef.)
17423
s,^[ #]*u.*,/* & */,' >>conftest.defines
17425
# Break up conftest.defines:
17426
ac_max_sed_lines=50
17428
# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
17429
# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
17430
# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
17432
ac_in='$ac_file_inputs'
17433
ac_out='"$tmp/out1"'
17434
ac_nxt='"$tmp/out2"'
17438
# Write a here document:
17439
cat >>$CONFIG_STATUS <<_ACEOF
17440
# First, check the format of the line:
17441
cat >"\$tmp/defines.sed" <<\\CEOF
17442
/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
17443
/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
17447
sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
17449
sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
17450
ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
17451
sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
17452
grep . conftest.tail >/dev/null || break
17453
rm -f conftest.defines
17454
mv conftest.tail conftest.defines
17456
rm -f conftest.defines conftest.tail
17458
echo "ac_result=$ac_in" >>$CONFIG_STATUS
17459
cat >>$CONFIG_STATUS <<\_ACEOF
17460
if test x"$ac_file" != x-; then
17461
echo "/* $configure_input */" >"$tmp/config.h"
17462
cat "$ac_result" >>"$tmp/config.h"
17463
if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
17464
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17465
echo "$as_me: $ac_file is unchanged" >&6;}
17468
mv "$tmp/config.h" $ac_file
17471
echo "/* $configure_input */"
17475
# Compute $ac_file's index in $config_headers.
17478
for _am_header in $config_headers :; do
17479
case $_am_header in
17480
$_am_arg | $_am_arg:* )
17483
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
17486
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17487
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17488
X"$_am_arg" : 'X\(//\)[^/]' \| \
17489
X"$_am_arg" : 'X\(//\)$' \| \
17490
X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17492
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17496
/^X\(\/\/\)[^/].*/{
17508
s/.*/./; q'`/stamp-h$_am_stamp_count
17511
:C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
17512
echo "$as_me: executing $ac_file commands" >&6;}
17517
case $ac_file$ac_mode in
17518
"depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
17519
# Strip MF so we end up with the name of the file.
17520
mf=`echo "$mf" | sed -e 's/:.*$//'`
17521
# Check whether this is an Automake generated Makefile or not.
17522
# We used to match only the files named `Makefile.in', but
17523
# some people rename them; so instead we look at the file content.
17524
# Grep'ing the first line is not enough: some people post-process
17525
# each Makefile.in and add a new line on top of each file to say so.
17526
# Grep'ing the whole file is not good either: AIX grep has a line
17527
# limit of 2048, but all sed's we know have understand at least 4000.
17528
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17529
dirpart=`$as_dirname -- "$mf" ||
17530
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17531
X"$mf" : 'X\(//\)[^/]' \| \
17532
X"$mf" : 'X\(//\)$' \| \
17533
X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17535
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17539
/^X\(\/\/\)[^/].*/{
17555
# Extract the definition of DEPDIR, am__include, and am__quote
17556
# from the Makefile without running `make'.
17557
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17558
test -z "$DEPDIR" && continue
17559
am__include=`sed -n 's/^am__include = //p' < "$mf"`
17560
test -z "am__include" && continue
17561
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17562
# When using ansi2knr, U may be empty or an underscore; expand it
17563
U=`sed -n 's/^U = //p' < "$mf"`
17564
# Find all dependency output files, they are included files with
17565
# $(DEPDIR) in their names. We invoke sed twice because it is the
17566
# simplest approach to changing $(DEPDIR) to its actual value in the
17568
for file in `sed -n "
17569
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17570
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17571
# Make sure the directory exists.
17572
test -f "$dirpart/$file" && continue
17573
fdir=`$as_dirname -- "$file" ||
17574
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17575
X"$file" : 'X\(//\)[^/]' \| \
17576
X"$file" : 'X\(//\)$' \| \
17577
X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17579
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17583
/^X\(\/\/\)[^/].*/{
17596
{ as_dir=$dirpart/$fdir
17598
-*) as_dir=./$as_dir;;
17600
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
17604
*\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
17605
*) as_qdir=$as_dir;;
17607
as_dirs="'$as_qdir' $as_dirs"
17608
as_dir=`$as_dirname -- "$as_dir" ||
17609
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17610
X"$as_dir" : 'X\(//\)[^/]' \| \
17611
X"$as_dir" : 'X\(//\)$' \| \
17612
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17614
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17618
/^X\(\/\/\)[^/].*/{
17631
test -d "$as_dir" && break
17633
test -z "$as_dirs" || eval "mkdir $as_dirs"
17634
} || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
17635
echo "$as_me: error: cannot create directory $as_dir" >&2;}
17636
{ (exit 1); exit 1; }; }; }
17637
# echo "creating $dirpart/$file"
17638
echo '# dummy' > "$dirpart/$file"
17647
{ (exit 0); exit 0; }
17649
chmod +x $CONFIG_STATUS
17650
ac_clean_files=$ac_clean_files_save
17653
# configure is writing to config.log, and then calls config.status.
17654
# config.status does its own redirection, appending to config.log.
17655
# Unfortunately, on DOS this fails, as config.log is still kept open
17656
# by configure, so config.status won't be able to write to it; its
17657
# output is simply discarded. So we exec the FD to /dev/null,
17658
# effectively closing config.log, so it can be properly (re)opened and
17659
# appended to by config.status. When coming back to configure, we
17660
# need to make the FD available again.
17661
if test "$no_create" != yes; then
17663
ac_config_status_args=
17664
test "$silent" = yes &&
17665
ac_config_status_args="$ac_config_status_args --quiet"
17667
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17669
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
17670
# would make configure fail if this is the last instruction.
17671
$ac_cs_success || { (exit 1); exit 1; }